boltdocs 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-UD2LQG2M.mjs → chunk-JGR2ELBA.mjs} +3 -3
- package/dist/client/index.js +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/client/ssr.js +1 -1
- package/dist/client/ssr.mjs +1 -1
- package/dist/node/cli-entry.js +2 -2
- package/dist/node/cli-entry.mjs +1 -1
- package/dist/node/index.js +2 -2
- package/dist/node/index.mjs +1 -1
- package/dist/package-SGBODKXD.mjs +1 -0
- package/package.json +1 -2
- package/src/client/app/mdx-page.tsx +2 -6
- package/src/client/components/mdx/code-block.tsx +4 -2
- package/src/node/mdx/index.ts +0 -1
- package/src/node/mdx/rehype-shiki.ts +2 -2
- package/dist/package-TWC3BMZ7.mjs +0 -1
package/dist/client/ssr.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var wo=Object.defineProperty;var Po=(e,t)=>{for(var o in t)wo(e,o,{get:t[o],enumerable:!0})};import qn from"react";import Jn from"react-dom/server";import{StaticRouter as Xn}from"react-router-dom/server";import et,{useEffect as tt,useState as vo,useMemo as yo}from"react";import Ic from"react-dom/client";import{BrowserRouter as Dc,Routes as Wn,Route as Y}from"react-router-dom";import{ArrowLeft as Wo}from"lucide-react";import st from"react";import{Link as Oo}from"react-aria-components";import{useLocation as Do}from"react-router-dom";import{createContext as No,use as To}from"react";var Ve=No(null);function _(){let e=To(Ve);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}import{useLocation as Ho}from"react-router-dom";import{createContext as ko,use as Lo,useCallback as Ao,useRef as Mo}from"react";import{jsx as So}from"react/jsx-runtime";var rt=ko({preload:()=>{},routes:[]});function Re(){return Lo(rt)}function nt({routes:e,modules:t,children:o}){let r=Mo(null),n=Ao(a=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let i=a.split("#")[0].split("?")[0],l=e.find(s=>s.path===i||i==="/"&&s.path==="");if(l?.filePath){let s=Object.keys(t).find(c=>c.endsWith("/"+l.filePath));s&&t[s]().catch(c=>{console.error(`[boltdocs] Failed to preload route ${a}:`,c)})}},100)},[e,t]);return So(rt.Provider,{value:{preload:n,routes:e},children:o})}import{create as Bo}from"zustand";import{persist as Eo,createJSONStorage as Vo}from"zustand/middleware";var F=Bo()(Eo(e=>({currentLocale:void 0,currentVersion:void 0,hasHydrated:!1,setLocale:t=>e({currentLocale:t}),setVersion:t=>e({currentVersion:t}),setHasHydrated:t=>e({hasHydrated:t})}),{name:"boltdocs-storage",storage:Vo(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}));function me(){let{routes:e}=Re(),t=_(),o=Ho(),r=F(b=>b.currentLocale),n=F(b=>b.currentVersion),a=F(b=>b.hasHydrated),i=e.find(b=>b.path===o.pathname),l=t.i18n?i?.locale||(a?r:void 0)||t.i18n.defaultLocale:void 0,s=t.versions?i?.version||(a?n:void 0)||t.versions.defaultVersion:void 0,c=e.filter(b=>{let B=t.i18n?(b.locale||t.i18n.defaultLocale)===l:!0,x=t.versions?(b.version||t.versions.defaultVersion)===s:!0;if(!(B&&x))return!1;let V=t.i18n;if(V){let G=!!i?.locale,E=!!b.locale;if(e.some(Ce=>Ce!==b&&Ce.filePath===b.filePath&&Ce.version===b.version&&(Ce.locale||V.defaultLocale)===(b.locale||V.defaultLocale))&&G!==E)return!1}return!0}),m=t.i18n?.localeConfigs?.[l]?.label||t.i18n?.locales[l]||l,h=t.versions?.versions.find(b=>b.path===s)?.label||s,y=t.i18n?Object.entries(t.i18n.locales).map(([b,B])=>{let x=t.i18n?.localeConfigs?.[b];return{key:b,label:x?.label||B,isCurrent:b===l}}):[],C=t.versions?t.versions.versions.map(b=>({key:b.path,label:b.label,isCurrent:b.path===s})):[];return{routes:c,allRoutes:e,currentRoute:i,currentLocale:l,currentLocaleLabel:m,availableLocales:y,currentVersion:s,currentVersionLabel:h,availableVersions:C,config:t}}function He(e){let t=_(),{currentLocale:o,currentVersion:r}=me();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let n=t.i18n,a=t.versions;if(!n&&!a)return e;let i=e.startsWith("/docs"),l=e.split("/").filter(Boolean),s=0;l[s]==="docs"&&s++,a&&l.length>s&&a.versions.find(h=>h.path===l[s])&&s++,n&&l.length>s&&n.locales[l[s]]&&s++;let c=l.slice(s),d=[];i&&(d.push("docs"),a&&r&&d.push(r)),n&&o&&o!==n.defaultLocale&&d.push(o),d.push(...c);let m=`/${d.join("/")}`;return m.length>1&&m.endsWith("/")?m.slice(0,-1):m||"/"}import{clsx as zo}from"clsx";import{twMerge as Io}from"tailwind-merge";function p(...e){return Io(zo(e))}import{jsx as at}from"react/jsx-runtime";var Z=st.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:n,onFocus:a,...i}=e,l=He(o??""),{preload:s}=Re();return at(Oo,{...i,ref:t,href:l,onMouseEnter:m=>{n?.(m),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)},onFocus:m=>{a?.(m),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)}})});Z.displayName="Link";var Fo=st.forwardRef((e,t)=>{let{href:o,end:r=!1,className:n,children:a,...i}=e,l=Do(),s=He(o??""),c=r?l.pathname===s:l.pathname.startsWith(s),d=typeof n=="function"?n({isActive:c}):p(n,c&&"active"),m=typeof a=="function"?a({isActive:c}):a;return at(Z,{...i,ref:t,href:o,className:d,children:m})});Fo.displayName="NavLink";import{jsx as ue,jsxs as it}from"react/jsx-runtime";function ze(){return ue("div",{className:"flex items-center justify-center min-h-[60vh] text-center",children:it("div",{className:"space-y-4",children:[ue("span",{className:"text-8xl font-black tracking-tighter text-primary-500/20",children:"404"}),ue("h1",{className:"text-2xl font-bold text-text-main",children:"Page Not Found"}),ue("p",{className:"text-sm text-text-muted max-w-sm mx-auto",children:"The page you're looking for doesn't exist or has been moved."}),it(Z,{href:"/",className:"inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white outline-none transition-all hover:brightness-110 hover:shadow-lg focus-visible:ring-2 focus-visible:ring-primary-500/30",children:[ue(Wo,{size:16})," Go to Home"]})]})})}import{createContext as $o,use as Go,useEffect as lt,useState as Ie}from"react";import{jsx as _o}from"react/jsx-runtime";var ct=$o(void 0);function dt({children:e}){let[t,o]=Ie("system"),[r,n]=Ie("dark"),[a,i]=Ie(!1);lt(()=>{i(!0);let s=localStorage.getItem("boltdocs-theme"),c=s==="light"||s==="dark"||s==="system"?s:"system";o(c);let d=window.matchMedia("(prefers-color-scheme: dark)");((h,y)=>{n(h==="system"?y?"dark":"light":h)})(c,d.matches);let g=h=>{n(y=>(localStorage.getItem("boltdocs-theme")||"system")==="system"?h.matches?"dark":"light":y)};return d.addEventListener("change",g),()=>d.removeEventListener("change",g)},[]),lt(()=>{if(!a)return;let s=window.matchMedia("(prefers-color-scheme: dark)").matches,c=t==="system"?s?"dark":"light":t;n(c);let d=document.documentElement;c==="light"?(d.classList.add("theme-light"),d.dataset.theme="light"):(d.classList.remove("theme-light"),d.dataset.theme="dark")},[t,a]);let l=s=>{o(s),localStorage.setItem("boltdocs-theme",s)};return _o(ct.Provider,{value:{theme:t,resolvedTheme:r,setTheme:l},children:e})}function pt(){let e=Go(ct);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}import Co from"virtual:boltdocs-layout";import{startTransition as Uo}from"react";import{RouterProvider as jo}from"react-aria-components";import{useNavigate as qo,useHref as Jo}from"react-router-dom";import{jsx as Xo}from"react/jsx-runtime";function mt({children:e}){let t=qo();return Xo(jo,{navigate:(o,r)=>{Uo(()=>{t(o,r)})},useHref:Jo,children:e})}import{useLayoutEffect as Ko}from"react";import{useLocation as Yo}from"react-router-dom";function ut(){let{pathname:e,hash:t}=Yo();return Ko(()=>{let o=document.querySelector(".boltdocs-content")||window,r=()=>o===window?window.scrollY:o.scrollTop,n=(a,i="auto")=>{o===window?window.scrollTo({top:a,behavior:i}):o.scrollTo({top:a,behavior:i})};if(t){let a=t.replace("#",""),i=document.getElementById(a);if(i){let s=o===window?0:o.getBoundingClientRect().top,m=i.getBoundingClientRect().top-s-80+r();n(m,"smooth");return}}n(0)},[e,t]),null}import{Outlet as Zo}from"react-router-dom";import Qo from"virtual:boltdocs-layout";import{jsx as ft}from"react/jsx-runtime";function gt(){return ft(Qo,{children:ft(Zo,{})})}import{MDXProvider as rr}from"@mdx-js/react";import{createContext as er,use as tr}from"react";import{jsx as or}from"react/jsx-runtime";var bt=er({});function xt(){return tr(bt)}function ht({components:e,children:t}){return or(bt.Provider,{value:e,children:t})}import{jsx as vt}from"react/jsx-runtime";function yt({Component:e}){let t=xt();return vt(rr,{components:t,children:vt(e,{})})}import{Link as Dn}from"lucide-react";var Qe={};Po(Qe,{Admonition:()=>W,Badge:()=>It,Button:()=>Ct,Card:()=>$t,Cards:()=>Wt,Caution:()=>Yt,CodeBlock:()=>U,ComponentPreview:()=>uo,ComponentProps:()=>co,CopyMarkdown:()=>bo,Danger:()=>Jt,Field:()=>ao,FileTree:()=>eo,Image:()=>lo,Important:()=>Kt,InfoBox:()=>Xt,Link:()=>io,List:()=>Zt,Note:()=>Ut,Tab:()=>Et,Table:()=>so,Tabs:()=>Vt,Tip:()=>jt,Video:()=>zt,Warning:()=>qt});import*as Pe from"react-aria-components";import{cva as nr}from"class-variance-authority";import{Fragment as sr,jsx as Q,jsxs as ar}from"react/jsx-runtime";var we=nr("flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none",{variants:{variant:{primary:"bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg",secondary:"bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong",outline:"bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500",ghost:"bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main",danger:"bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15",success:"bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15",warning:"bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15",info:"bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15",subtle:"bg-primary-500/10 text-primary-500 hover:bg-primary-500/20",link:"bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline"},size:{sm:"min-h-8 px-3.5 text-[0.8125rem] gap-1.5",md:"min-h-10 px-5 text-[0.9375rem] gap-2",lg:"min-h-12 px-7 text-[1.05rem] gap-2.5"},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},iconSize:{sm:"w-8 h-8 p-0",md:"w-10 h-10 p-0",lg:"w-12 h-12 p-0"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:null}},defaultVariants:{variant:"primary",size:"md",rounded:"md"}}),ee=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:n,className:a,variant:i,size:l,rounded:s,iconSize:c,disabled:d,...m})=>{let g=r||!n&&!!t,h=g?Q("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):ar(sr,{children:[t&&o==="left"&&Q("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),Q("span",{className:"flex items-center",children:n}),t&&o==="right"&&Q("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?Q(Pe.Link,{href:e,className:p(we({variant:i,size:l,rounded:s,iconSize:g?c:void 0,disabled:d}),a),...m,children:h}):Q(Pe.Button,{className:p(we({variant:i,size:l,rounded:s,iconSize:g?c:void 0,disabled:d}),a),...m,children:h})};import{jsx as ir}from"react/jsx-runtime";var Ct=({className:e,variant:t,size:o,rounded:r,iconSize:n,disabled:a,...i})=>ir(ee,{className:p("group",we({variant:t,size:o,rounded:r,iconSize:n,disabled:a,className:e})),...i});import*as Me from"react-aria-components";import{Copy as mr,Check as ur,File as fr}from"lucide-react";import{getParameters as Rt}from"codesandbox/lib/api/define.js";function wt(e){let t=e.files||{},o=e.dependencies||{},r=e.devDependencies||{},n=e.title||"codesandbox-project",a=e.description||"Generic Sandbox",i={};for(let[l,s]of Object.entries(t)){let c=typeof s.content=="object"?JSON.stringify(s.content,null,2):s.content;i[l]={content:c,isBinary:s.isBinary??!1}}if(!i["package.json"]){let s=e.template==="vite"||!!r.vite||!!r["@vitejs/plugin-react"]?{dev:"vite",build:"vite build",preview:"vite preview"}:{start:"node index.js"};i["package.json"]={content:JSON.stringify({private:!0,name:n,description:a,type:"module",version:"1.0.0",scripts:e.scripts||s,dependencies:o,devDependencies:r},null,2),isBinary:!1}}return i}function lr(e){let t=wt(e),o=Rt({files:t}),r=new URLSearchParams({parameters:o,installDependencies:"true"});return e.entry&&r.set("file",`/${e.entry}`),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?${r.toString()}`,options:e}}function Pt(e){if(typeof window>"u")return lr(e);let t=wt(e),o=Rt({files:t}),r=e.entry||"src/App.tsx",n=document.createElement("form");n.method="POST",n.target="_blank",n.action="https://codesandbox.io/api/v1/sandboxes/define",n.style.display="none";let a=(l,s)=>{let c=document.createElement("input");c.type="hidden",c.name=l,c.value=s,n.appendChild(c)},i=new URLSearchParams({file:`/${r}`,eslint:"0",codemirror:"1",installDependencies:"true"});return a("query",i.toString()),a("parameters",o),document.body.appendChild(n),n.submit(),document.body.removeChild(n),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?parameters=${o}`,options:e}}var Nt=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement("textarea");return t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),!0}};import{useCallback as Tt,useEffect as cr,useRef as dr,useState as Oe}from"react";function kt(e){let{title:t,sandbox:o}=e,[r,n]=Oe(!1),[a,i]=Oe(!1),[l,s]=Oe(!1),c=dr(null),d=_(),m=Tt(async()=>{let h=c.current?.textContent??"";Nt(h),n(!0),setTimeout(()=>n(!1),2e3)},[]),g=Tt(()=>{let h=c.current?.textContent??"",y=d?.integrations?.sandbox?.config||{},C=typeof o=="object"?o:y,b=C.entry||"src/App.tsx";Pt({title:t??"Code Snippet",...C,files:{...C.files,[b]:{content:h}}})},[t,d,o]);return cr(()=>{let h=c.current?.textContent?.length??0;s(h>120)},[e.children,e.highlightedHtml]),{copied:r,isExpanded:a,setIsExpanded:i,isExpandable:l,preRef:c,handleCopy:m,handleSandbox:g,shouldTruncate:l&&!a}}import{jsx as R,jsxs as I}from"react/jsx-runtime";function z(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var Lt=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...z(e),children:[R("title",{children:"CodeSandbox"}),R("path",{d:"M0 24h24V0H0v2.455h21.546v19.09H2.454V0H0Z"})]});var Ne=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"TypeScript"}),R("path",{fill:"#2563EB",d:"M3.234 9.093V7.318h8.363v1.775H8.479V17.5H6.352V9.093H3.234zm15.263 1.153c-.04-.4-.21-.712-.512-.934-.301-.222-.71-.333-1.228-.333-.351 0-.648.05-.89.149-.242.096-.427.23-.557.403a.969.969 0 0 0-.189.586.838.838 0 0 0 .115.477c.086.136.204.254.353.353.149.097.321.181.517.254.195.07.404.13.626.179l.915.219c.444.1.852.232 1.223.397.371.166.693.37.965.612.271.242.482.527.631.855.152.328.23.704.234 1.129-.004.623-.163 1.163-.478 1.62-.311.454-.762.807-1.352 1.06-.587.248-1.294.372-2.123.372-.822 0-1.538-.126-2.147-.378-.607-.252-1.081-.624-1.422-1.118-.338-.497-.516-1.112-.532-1.845h2.083c.023.342.12.627.293.855.176.226.41.397.701.513a2.8 2.8 0 0 0 1 .168c.364 0 .68-.053.949-.159a1.45 1.45 0 0 0 .631-.442c.15-.189.224-.406.224-.651a.846.846 0 0 0-.204-.577c-.132-.156-.328-.288-.586-.398a5.964 5.964 0 0 0-.94-.298l-1.109-.278c-.858-.21-1.536-.536-2.033-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.491-1.615.335-.461.794-.82 1.377-1.08.584-.258 1.247-.387 1.99-.387.755 0 1.414.13 1.978.388.567.258 1.007.618 1.322 1.079.315.46.477.994.488 1.6h-2.064z"})]}),Te=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"JavaScript"}),R("path",{fill:"#F59E0B",d:"M8.383 7.318h2.127v7.1c0 .656-.147 1.226-.442 1.71a2.924 2.924 0 01-1.218 1.118c-.52.262-1.125.393-1.815.393-.613 0-1.17-.107-1.67-.323a2.67 2.67 0 01-1.183-.994c-.292-.448-.436-1.01-.433-1.686h2.143c.006.269.061.5.164.691.106.19.25.335.432.438.186.1.405.15.657.15.265 0 .488-.057.67-.17.186-.116.327-.285.423-.507.096-.222.145-.496.145-.82v-7.1zm9.43 2.928c-.04-.4-.21-.712-.511-.934-.302-.222-.711-.333-1.228-.333-.352 0-.648.05-.89.149-.242.096-.428.23-.557.403a.969.969 0 00-.19.586.838.838 0 00.115.477c.087.136.204.254.353.353.15.097.322.181.517.254.196.07.405.13.627.179l.915.219c.444.1.851.232 1.223.397.37.166.692.37.964.612s.482.527.631.855a2.7 2.7 0 01.234 1.129c-.003.623-.162 1.163-.477 1.62-.312.454-.763.807-1.353 1.06-.586.248-1.294.372-2.122.372-.822 0-1.538-.126-2.148-.378-.607-.252-1.08-.624-1.422-1.118-.338-.497-.515-1.112-.532-1.845h2.083c.023.342.121.627.293.855.176.226.41.397.702.513.295.112.628.168.999.168.364 0 .68-.053.95-.159.271-.106.482-.253.63-.442.15-.189.224-.406.224-.651a.846.846 0 00-.203-.577c-.133-.156-.329-.288-.587-.398a5.964 5.964 0 00-.94-.298l-1.108-.278c-.859-.21-1.537-.536-2.034-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.492-1.615.334-.461.793-.82 1.377-1.08.583-.258 1.246-.387 1.989-.387.755 0 1.415.13 1.978.388.567.258 1.008.618 1.323 1.079.314.46.477.994.487 1.6h-2.063z"})]}),ke=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"JSON"}),R("path",{fill:"#F59E0B",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),Le=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"CSS"}),R("path",{fill:"#0EA5E9",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),Ae=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"HTML"}),R("path",{fill:"#EA580C",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]});var te=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"React"}),R("path",{fill:"#0E8ADC",d:"M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z"}),R("path",{stroke:"#0E8ADC",d:"M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z"}),R("path",{stroke:"#0E8ADC",d:"M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z"}),R("path",{stroke:"#0E8ADC",d:"M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z"})]}),oe=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"Markdown"}),R("path",{fill:"#60A5FA",d:"M3 15.714V8h2.323l2.322 2.836L9.968 8h2.322v7.714H9.968V11.29l-2.323 2.836-2.322-2.836v4.424H3zm14.516 0l-3.484-3.743h2.323V8h2.322v3.97H21l-3.484 3.744z"})]}),re=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...z(e),children:[R("title",{children:"Shell"}),R("path",{stroke:"#14B8A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.336 17l6-6-6-6M12.336 19h8"})]}),ne=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"YAML"}),R("path",{fill:"#A78BFA",d:"M6.533 5.864h2.755l2.654 5.011h.113l2.654-5.011h2.756l-4.245 7.522V17.5h-2.443v-4.114L6.533 5.864z"})]});import*as ae from"react-aria-components";import{Fragment as pr,jsx as fe,jsxs as De}from"react/jsx-runtime";var At=({className:e,children:t,...o})=>fe(ae.Tooltip,{...o,offset:8,className:r=>p("group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75","data-[placement=top]:slide-in-from-bottom-1","data-[placement=bottom]:slide-in-from-top-1","data-[placement=left]:slide-in-from-right-1","data-[placement=right]:slide-in-from-left-1",typeof e=="function"?e(r):e),children:r=>De(pr,{children:[fe(ae.OverlayArrow,{children:De("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",children:[fe("title",{children:"Arrow"}),fe("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),se=({content:e,children:t,delay:o=500,closeDelay:r=0,...n})=>De(ae.TooltipTrigger,{delay:o,closeDelay:r,children:[t,fe(At,{...n,children:e})]});se.Root=se;se.Content=At;import{jsx as M,jsxs as Fe}from"react/jsx-runtime";var gr={ts:Ne,tsx:te,js:Te,jsx:te,json:ke,css:Le,html:Ae,md:oe,mdx:oe,bash:re,sh:re,yaml:ne,yml:ne};function U(e){let{children:t,sandbox:o,hideSandbox:r=!0,hideCopy:n=!1,highlightedHtml:a,title:i,"data-lang":l,plain:s=!1,...c}=e,g=!!_()?.integrations?.sandbox?.enable&&!r,h=e.lang||l||"",{copied:y,isExpanded:C,setIsExpanded:b,isExpandable:B,preRef:x,handleCopy:V,handleSandbox:G,shouldTruncate:E}=kt(e),Ee=gr[h];return Fe("div",{className:p("group relative overflow-hidden bg-(--color-code-bg)","contain-layout contain-paint",{"my-6 rounded-lg border border-border-subtle":!s,"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":E},e.className),children:[i&&Fe("div",{className:"flex items-center gap-2 border-b border-border-subtle bg-bg-surface/50 px-4 py-2 text-[13px] font-medium text-text-muted",children:[Ee?M(Ee,{size:14}):M(fr,{size:14,className:"opacity-60"}),M("span",{children:i})]}),Fe("div",{className:"absolute top-3 right-4 z-50 flex items-center gap-2 transition-all duration-300 opacity-0 group-hover:opacity-100",children:[g&&M(se,{content:"Open in CodeSandbox",children:M(Me.Button,{onPress:G,className:"grid place-items-center w-8 h-8 bg-transparent text-text-muted outline-none cursor-pointer transition-all duration-200 hover:scale-115 hover:text-sky-400 active:scale-95 [&>svg]:w-5 [&>svg]:h-5 [&>svg]:stroke-2","aria-label":"Open in CodeSandbox",children:M(Lt,{size:20})})}),!n&&M(se,{content:y?"Copied!":"Copy code",children:M(Me.Button,{onPress:V,className:p("grid place-items-center size-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95 [&>svg]:size-4 [&>svg]:stroke-2",y?"text-emerald-400":"text-text-muted hover:text-text-main"),"aria-label":"Copy code",children:y?M(ur,{size:20}):M(mr,{size:20})})})]}),a?M("div",{ref:x,className:"shiki-wrapper [&>pre]:m-0! [&>pre]:rounded-none! [&>pre]:border-none! [&>pre]:bg-inherit! [&>pre>code]:grid! [&>pre>code]:p-5! [&>.shiki.shiki-themes]:bg-transparent!",dangerouslySetInnerHTML:{__html:a}}):M("pre",{ref:x,className:"m-0! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7]",...c,children:t}),B&&M("div",{className:p(E?"absolute bottom-0 inset-x-0 h-24 bg-linear-to-t from-(--color-code-bg) to-transparent flex items-end justify-center pb-4 z-10":"relative flex justify-center py-4"),children:M(Me.Button,{onPress:()=>b(!C),className:"rounded-full bg-bg-surface border border-border-subtle px-5 py-2 text-[0.8125rem] font-medium text-text-main outline-none cursor-pointer transition-all hover:bg-border-subtle hover:-translate-y-px backdrop-blur-md",children:C?"Show less":"Expand code"})})]})}import{Children as vr,isValidElement as yr,useMemo as Cr}from"react";import*as q from"react-aria-components";import{useState as Mt,useRef as br,useEffect as xr,useCallback as hr}from"react";function St({initialIndex:e=0,tabs:t}){let o=t[e]?.props.disabled?t.findIndex(c=>!c.props.disabled):e,[r,n]=Mt(o===-1?0:o),a=br([]),[i,l]=Mt({opacity:0,transform:"translateX(0)",width:0});xr(()=>{let c=a.current[r];c&&l({opacity:1,width:c.offsetWidth,transform:`translateX(${c.offsetLeft}px)`})},[r,t]);let s=hr(c=>{let d=0;if(c.key==="ArrowRight"?d=1:c.key==="ArrowLeft"&&(d=-1),d!==0){let m=(r+d+t.length)%t.length;for(;t[m].props.disabled&&m!==r;)m=(m+d+t.length)%t.length;m!==r&&!t[m].props.disabled&&(n(m),a.current[m]?.focus())}},[r,t]);return{active:r,setActive:n,tabRefs:a,indicatorStyle:i,handleKeyDown:s}}import{cva as Bt}from"class-variance-authority";import{jsx as j,jsxs as We}from"react/jsx-runtime";var Rr=Bt("relative flex items-center border-b border-border-subtle gap-1 overflow-x-auto no-scrollbar",{variants:{size:{default:"px-0",compact:"px-2"}},defaultVariants:{size:"default"}}),wr=Bt("flex items-center gap-2 px-4 py-2.5 text-sm font-medium outline-none transition-all duration-200 cursor-pointer bg-transparent border-none select-none whitespace-nowrap",{variants:{isActive:{true:"text-primary-500",false:"text-text-muted hover:text-text-main"},isDisabled:{true:"opacity-40 pointer-events-none",false:""}},defaultVariants:{isActive:!1,isDisabled:!1}});function Et({children:e}){let t=typeof e=="string"?j(U,{className:"language-bash",children:j("code",{children:e.trim()})}):e;return j("div",{className:"py-4",children:t})}function Vt({defaultIndex:e=0,children:t}){let o=Cr(()=>vr.toArray(t).filter(l=>yr(l)&&l.props?.label),[t]),{active:r,setActive:n,tabRefs:a,indicatorStyle:i}=St({initialIndex:e,tabs:o});return j("div",{className:"my-8 w-full group/tabs",children:We(q.Tabs,{selectedKey:r.toString(),onSelectionChange:l=>n(Number(l)),className:"w-full",children:[We(q.TabList,{"aria-label":"Content Tabs",className:p(Rr()),children:[o.map((l,s)=>{let{label:c,icon:d,disabled:m}=l.props,g=s.toString();return We(q.Tab,{id:g,isDisabled:m,ref:h=>{a.current[s]=h},className:({isSelected:h,isDisabled:y})=>p(wr({isActive:h,isDisabled:y})),children:[!!d&&j("span",{className:"shrink-0 [&>svg]:w-4 [&>svg]:h-4",children:d}),j("span",{children:c})]},g)}),j("div",{className:"absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none",style:i,"aria-hidden":"true"})]}),o.map((l,s)=>j(q.TabPanel,{id:s.toString(),children:o[s]},s))]})})}import{useRef as Pr,useState as Nr,useEffect as Tr}from"react";import{jsx as Ht,jsxs as kr}from"react/jsx-runtime";function zt({src:e,poster:t,alt:o,children:r,controls:n,preload:a="metadata",...i}){let l=Pr(null),[s,c]=Nr(!1);return Tr(()=>{let d=l.current;if(!d)return;let m=new IntersectionObserver(([g])=>{g.isIntersecting&&(c(!0),m.disconnect())},{rootMargin:"200px"});return m.observe(d),()=>m.disconnect()},[]),Ht("div",{ref:l,className:"my-6 overflow-hidden rounded-lg border border-border-subtle",children:s?kr("video",{className:"block w-full h-auto",src:e,poster:t,controls:!0,preload:a,playsInline:!0,...i,children:[r,"Your browser does not support the video tag."]}):Ht("div",{className:"aspect-video bg-bg-surface animate-pulse",role:"img","aria-label":o||"Video"})})}import{cva as Lr}from"class-variance-authority";import{jsx as Mr}from"react/jsx-runtime";var Ar=Lr("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold tracking-tight",{variants:{variant:{default:"bg-bg-surface text-text-muted border-border-subtle",primary:"bg-primary-500/15 text-primary-400 border-primary-500/20",success:"bg-emerald-500/15 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/15 text-amber-400 border-amber-500/20",danger:"bg-red-500/15 text-red-400 border-red-500/20",info:"bg-sky-500/15 text-sky-400 border-sky-500/20"}},defaultVariants:{variant:"default"}});function It({variant:e="default",children:t,className:o="",...r}){return Mr("span",{className:p(Ar({variant:e}),o),...r,children:t})}import{useCallback as Sr,useRef as Ot}from"react";import*as Ft from"react-aria-components";import{cva as Br}from"class-variance-authority";import{Fragment as Vr,jsx as X,jsxs as Dt}from"react/jsx-runtime";var Er=Br("grid gap-4 my-6",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"}},defaultVariants:{cols:3}});function Wt({cols:e=3,children:t,className:o="",...r}){return X("div",{className:p(Er({cols:e}),o),...r,children:t})}function $t({title:e,icon:t,href:o,children:r,className:n="",...a}){let i=Ot(null),l=Ot(null),s=Sr(m=>{let g=i.current||l.current;if(!g)return;let{left:h,top:y}=g.getBoundingClientRect();g.style.setProperty("--x",`${m.clientX-h}px`),g.style.setProperty("--y",`${m.clientY-y}px`)},[]),c=Dt(Vr,{children:[X("div",{className:"pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"radial-gradient(400px circle at var(--x) var(--y), color-mix(in oklch, var(--color-primary-500), transparent 90%), transparent 80%)"}}),t&&X("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-primary-500/10 text-primary-400 text-lg transition-transform duration-300 group-hover:scale-105 group-hover:-rotate-3",children:t}),Dt("div",{className:"space-y-1.5",children:[e&&X("h3",{className:"text-sm font-bold text-text-main",children:e}),r&&X("div",{className:"text-sm text-text-muted leading-relaxed",children:r})]})]}),d=p("group relative block rounded-xl border border-border-subtle bg-bg-surface p-5 outline-none overflow-hidden","transition-all duration-200 hover:border-primary-500/40 hover:shadow-lg hover:shadow-primary-500/5","focus-visible:ring-2 focus-visible:ring-primary-500/30",n);return o?X(Ft.Link,{ref:l,href:o,className:p(d,"no-underline cursor-pointer"),onMouseMove:s,...a,children:c}):X("div",{ref:i,role:"presentation",className:d,onMouseMove:s,...a,children:c})}import{Info as Hr,Lightbulb as zr,AlertTriangle as Ir,ShieldAlert as Or,Bookmark as Dr,Zap as Fr,Flame as Wr}from"lucide-react";import{cva as $r}from"class-variance-authority";import{jsx as N,jsxs as _t}from"react/jsx-runtime";var Gr={note:N(Dr,{size:18}),tip:N(zr,{size:18}),info:N(Hr,{size:18}),warning:N(Ir,{size:18}),danger:N(Or,{size:18}),important:N(Wr,{size:18}),caution:N(Fr,{size:18})},_r={note:"Note",tip:"Tip",info:"Info",warning:"Warning",danger:"Danger",important:"Important",caution:"Caution"},Gt=$r("py-4 px-4 rounded-lg",{variants:{type:{note:"border-primary-400 bg-primary-500/5 text-primary-400",tip:"border-emerald-500 bg-emerald-500/5 text-emerald-500",info:"border-sky-500 bg-sky-500/5 text-sky-500",warning:"border-amber-500 bg-amber-500/5 text-amber-500",danger:"border-red-500 bg-red-500/5 text-red-500",important:"border-orange-500 bg-orange-500/5 text-orange-500",caution:"border-yellow-500 bg-yellow-500/5 text-yellow-500"}},defaultVariants:{type:"note"}});function W({type:e="note",title:t,children:o,className:r="",...n}){return _t("div",{className:p(Gt({type:e}),r),role:e==="warning"||e==="danger"?"alert":"note",...n,children:[_t("div",{className:"flex items-center flex-row gap-2 mb-2",children:[N("span",{className:p("shrink-0",Gt({type:e})),children:Gr[e]}),N("span",{className:"text-sm font-bold tracking-tight text-text-main",children:t||_r[e]})]}),N("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0",children:o})]})}var Ut=e=>N(W,{type:"note",...e}),jt=e=>N(W,{type:"tip",...e}),qt=e=>N(W,{type:"warning",...e}),Jt=e=>N(W,{type:"danger",...e}),Xt=e=>N(W,{type:"info",...e}),Kt=e=>N(W,{type:"important",...e}),Yt=e=>N(W,{type:"caution",...e});import{Children as Ur,isValidElement as jr}from"react";import{Check as qr,ChevronRight as Jr,Circle as Xr}from"lucide-react";import{cva as $e}from"class-variance-authority";import{jsx as J,jsxs as tn}from"react/jsx-runtime";var Kr=$e("my-6 transition-all duration-200",{variants:{variant:{default:"list-disc pl-5 text-text-muted marker:text-primary-500/50",number:"list-decimal pl-5 text-text-muted marker:text-primary-500/50 marker:font-bold",checked:"list-none p-0",arrow:"list-none p-0",bubble:"list-none p-0"},cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"},isGrid:{true:"grid gap-x-8 gap-y-3",false:"space-y-2"},dense:{true:"space-y-1",false:"space-y-2"}},compoundVariants:[{variant:"default",dense:!0,className:"space-y-0.5"}],defaultVariants:{variant:"default",cols:1,isGrid:!1,dense:!1}}),Yr=$e("group flex items-start gap-3 text-sm leading-relaxed transition-all duration-200",{variants:{variant:{default:"",number:"",checked:"hover:translate-x-0.5",arrow:"hover:translate-x-0.5",bubble:"hover:translate-x-0.5"},dense:{true:"py-0",false:"py-0.5"}},defaultVariants:{variant:"default",dense:!1}}),Zr=$e("mt-1 shrink-0 flex items-center justify-center transition-transform group-hover:scale-110",{variants:{variant:{bubble:"h-5 w-5 rounded-full bg-primary-500/10 text-primary-500 text-[10px] font-bold",default:""}},defaultVariants:{variant:"default"}});function Qr({icon:e,children:t,variant:o,dense:r}){return tn("li",{className:p(Yr({variant:o,dense:r})),children:[e&&J("span",{className:p(Zr({variant:o==="bubble"?"bubble":"default"})),children:e}),J("div",{className:"flex-1 text-text-muted group-hover:text-text-main transition-colors",children:t})]})}var en={checked:e=>J(qr,{size:14,className:p("text-emerald-500 shrink-0",e)}),arrow:e=>J(Jr,{size:14,className:p("text-primary-400 shrink-0",e)}),bubble:e=>J(Xr,{size:6,fill:"currentColor",className:p("text-primary-500 shrink-0",e)}),default:()=>null,number:()=>null};function Zt({variant:e="default",cols:t=1,dense:o=!1,children:r,className:n,...a}){let i=t!==void 0&&Number(t)>1,l=en[e],s=Kr({variant:e,cols:t,dense:o,isGrid:i,className:n}),c=e==="number"?"ol":"ul";return e==="default"||e==="number"?J(c,{className:s,...a,children:r}):J("ul",{className:s,...a,children:Ur.map(r,d=>{if(!jr(d))return d;let m=d,g=m.type==="li"?m.props.children:m.props.children||d;return J(Qr,{icon:l(),variant:e,dense:o,children:g})})})}import{Children as Ge,isValidElement as Je,useMemo as on}from"react";import*as O from"react-aria-components";import{Folder as rn,FileText as nn,File as sn,FileCode as an,FileImage as ln,ChevronRight as cn}from"lucide-react";import{jsx as T,jsxs as je}from"react/jsx-runtime";var ie=16,ge=2,dn={ts:Ne,tsx:te,js:Te,jsx:te,json:ke,css:Le,html:Ae,md:oe,mdx:oe,bash:re,sh:re,yaml:ne,yml:ne},_e={CODE:/\.(ts|tsx|js|jsx|json|mjs|cjs|astro|vue|svelte)$/i,TEXT:/\.(md|mdx|txt)$/i,IMAGE:/\.(png|jpg|jpeg|svg|gif)$/i};function qe(e){return typeof e=="string"?e:typeof e=="number"?e.toString():Array.isArray(e)?e.map(qe).join(""):Je(e)&&e.props&&typeof e.props=="object"&&"children"in e.props?qe(e.props.children):""}function pn(e,t){let o=e.toLowerCase(),r="shrink-0 transition-colors duration-200";if(t)return T(rn,{size:ie,strokeWidth:ge,className:p(r,"text-primary-400"),fill:"currentColor",fillOpacity:.15});let n=o.split(".").pop()||"",a=dn[n];if(a)return T(a,{size:ie});let i=p(r,"text-text-dim group-hover:text-text-main");return _e.CODE.test(o)?T(an,{size:ie,strokeWidth:ge,className:i}):_e.TEXT.test(o)?T(nn,{size:ie,strokeWidth:ge,className:i}):_e.IMAGE.test(o)?T(ln,{size:ie,strokeWidth:ge,className:i}):T(sn,{size:ie,strokeWidth:ge,className:i})}function Ue(e,t){if(!Je(e))return!1;let o=e.type;if(typeof o=="string")return o===t;if(typeof o=="function")return o.name===t||o.name?.toLowerCase()===t;let r=e.props;return r?.originalType===t||r?.mdxType===t}function mn(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function Se(e,t="root"){if(!Je(e))return[];let o=[];if(Ue(e,"ul"))return Ge.forEach(e.props.children,(r,n)=>{o.push(...Se(r,`${t}-${n}`))}),o;if(Ue(e,"li")){let r=Ge.toArray(e.props.children),n=r.findIndex(y=>Ue(y,"ul")),a=n!==-1,i=a?r.slice(0,n):r,l=a?r.slice(n):[],s=qe(i),{name:c,comment:d}=mn(s),m=c.endsWith("/"),g=m?c.slice(0,-1):c,h=a||m;return o.push({id:`${t}-${g}`,name:g,comment:d,isFolder:h,children:a?Se(l[0],`${t}-${g}`):void 0}),o}return e.props&&typeof e.props=="object"&&"children"in e.props&&Ge.forEach(e.props.children,(r,n)=>{o.push(...Se(r,`${t}-${n}`))}),o}function Qt({item:e}){return je(O.TreeItem,{id:e.id,textValue:e.name,className:"outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md",children:[T(O.TreeItemContent,{children:({isExpanded:t,hasChildItems:o})=>je("div",{className:"flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer",children:[T("div",{style:{width:"calc((var(--tree-item-level) - 1) * 1rem)"},className:"shrink-0"}),o?T(O.Button,{slot:"chevron",className:"outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors",children:T(cn,{size:14,strokeWidth:3,className:p("transition-transform duration-200",t&&"rotate-90")})}):T("div",{className:"w-[18px]"}),pn(e.name,e.isFolder),T("span",{className:p("text-sm transition-colors truncate select-none",e.isFolder?"font-semibold text-text-main":"text-text-muted group-hover:text-text-main"),children:e.name}),e.comment&&je("span",{className:"ml-2 text-xs italic text-text-dim opacity-70 group-hover:opacity-100 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis font-sans",children:["//"," ",e.comment]})]})}),e.children&&T(O.Collection,{items:e.children,children:t=>T(Qt,{item:t})})]})}function eo({children:e}){let t=on(()=>Se(e),[e]);return T("div",{className:"my-8",children:T(O.Tree,{items:t,"aria-label":"File Tree",className:p("rounded-xl border border-border-subtle bg-bg-surface/50 p-4 font-mono text-sm shadow-sm backdrop-blur-sm outline-none","max-h-[500px] overflow-y-auto scrollbar-thin scrollbar-thumb-border-subtle","focus-visible:ring-2 focus-visible:ring-primary-500/20"),children:o=>T(Qt,{item:o})})})}import*as be from"react-aria-components";import{useState as to,useMemo as oo}from"react";function ro({data:e,sortable:t=!1,paginated:o=!1,pageSize:r=10}){let[n,a]=to(null),[i,l]=to(1),s=oo(()=>{if(!e)return[];let g=[...e];return t&&n!==null&&g.sort((h,y)=>{let C=h[n.key],b=y[n.key],B=typeof C=="string"?C:"",x=typeof b=="string"?b:"";return B<x?n.direction==="asc"?-1:1:B>x?n.direction==="asc"?1:-1:0}),g},[e,n,t]),c=Math.ceil(s.length/r),d=oo(()=>{if(!o)return s;let g=(i-1)*r;return s.slice(g,g+r)},[s,o,i,r]);return{sortConfig:n,currentPage:i,setCurrentPage:l,totalPages:c,paginatedData:d,requestSort:g=>{if(!t)return;let h="asc";n&&n.key===g&&n.direction==="asc"&&(h="desc"),a({key:g,direction:h})}}}import{ChevronUp as un,ChevronDown as no,ChevronLeft as fn,ChevronRight as gn,ChevronsLeft as bn,ChevronsRight as xn}from"lucide-react";import{Fragment as hn,jsx as P,jsxs as le}from"react/jsx-runtime";function so({headers:e,data:t,children:o,className:r="",sortable:n=!1,paginated:a=!1,pageSize:i=10}){let{sortConfig:l,currentPage:s,setCurrentPage:c,totalPages:d,paginatedData:m,requestSort:g}=ro({data:t,sortable:n,paginated:a,pageSize:i}),h=C=>n?l?.key!==C?P(no,{size:14,className:"ml-1 opacity-30"}):l.direction==="asc"?P(un,{size:14,className:"ml-1 text-primary-400"}):P(no,{size:14,className:"ml-1 text-primary-400"}):null,y=o||le(hn,{children:[e&&P("thead",{children:P("tr",{children:e.map((C,b)=>P("th",{onClick:()=>g(b),className:p("text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm",n&&"cursor-pointer select-none hover:text-primary-400 transition-colors"),children:le("div",{className:"flex items-center",children:[C,h(b)]})},b))})}),m&&P("tbody",{children:m.map((C,b)=>P("tr",{className:"transition-colors hover:bg-bg-surface",children:C.map((B,x)=>P("td",{className:"px-3 py-2 border-b border-border-subtle text-sm text-text-muted",children:B},x))},b))})]});return le("div",{className:p("my-6 rounded-lg border border-border-subtle overflow-hidden",r),children:[P("div",{className:"overflow-x-auto",children:P("table",{className:"w-full border-collapse text-sm",children:y})}),a&&d>1&&le("div",{className:"flex items-center justify-between border-t border-border-subtle px-4 py-3",children:[le("span",{className:"text-xs text-text-muted",children:["Page ",s," of ",d]}),le("div",{className:"flex items-center gap-1",children:[P(be.Button,{onPress:()=>c(1),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:P(bn,{size:16})}),P(be.Button,{onPress:()=>c(C=>Math.max(C-1,1)),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:P(fn,{size:16})}),P(be.Button,{onPress:()=>c(C=>Math.min(C+1,d)),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:P(gn,{size:16})}),P(be.Button,{onPress:()=>c(d),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:P(xn,{size:16})})]})]})]})}import{jsx as ce,jsxs as xe}from"react/jsx-runtime";function ao({name:e,type:t,defaultValue:o,required:r=!1,children:n,id:a,className:i=""}){return xe("article",{className:p("group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300","hover:border-primary-500/30 hover:shadow-lg hover:shadow-primary-500/5",i),id:a,children:[xe("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[xe("div",{className:"flex flex-wrap items-center gap-2.5",children:[ce("code",{className:"inline-flex items-center rounded-md bg-primary-500/10 px-2.5 py-1 font-mono text-sm font-bold text-primary-400 border border-primary-500/20 shadow-sm transition-colors group-hover:bg-primary-500/15",children:e}),t&&ce("span",{className:"rounded-md bg-bg-muted/80 border border-border-subtle px-2 py-0.5 text-[11px] font-semibold text-text-muted uppercase tracking-wider shadow-sm",children:t}),r&&xe("div",{className:"flex items-center gap-1.5 rounded-full bg-red-500/10 px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-red-400 border border-red-500/20 shadow-sm",children:[ce("span",{className:"h-1 w-1 rounded-full bg-red-400 animate-pulse"}),"Required"]})]}),o&&xe("div",{className:"flex items-center gap-2 text-[11px] text-text-muted bg-bg-muted/30 px-2.5 py-1 rounded-md border border-border-subtle/50",children:[ce("span",{className:"font-semibold opacity-60 uppercase tracking-tighter",children:"Default"}),ce("code",{className:"font-mono text-text-main font-medium",children:o})]})]}),ce("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30",children:n})]})}import{jsx as vn}from"react/jsx-runtime";function io({to:e,children:t,className:o="",...r}){let n=e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")),a=p("text-blue-600 hover:text-blue-800 hover:underline cursor-pointer",o);return vn(Z,{href:e,className:a,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...r,children:t})}import{jsx as yn}from"react/jsx-runtime";function lo({src:e,alt:t,theme:o,...r}){let{theme:n}=pt();return o&&o!==n?null:yn("img",{src:e,alt:t||"",...r})}import{jsx as k,jsxs as he}from"react/jsx-runtime";function co({title:e,props:t,className:o=""}){return he("div",{className:p("my-6",o),children:[e&&k("h3",{className:"text-base font-bold text-text-main mb-3",children:e}),k("div",{className:"overflow-x-auto rounded-lg border border-border-subtle",children:he("table",{className:"w-full border-collapse text-sm",children:[k("thead",{children:he("tr",{children:[k("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Property"}),k("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Type"}),k("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Default"}),k("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Description"})]})}),k("tbody",{children:t.map((r,n)=>he("tr",{className:"transition-colors hover:bg-bg-surface",children:[he("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:[k("code",{className:"rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400",children:r.name}),r.required&&k("span",{className:"ml-1 text-red-400 font-bold",children:"*"})]}),k("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:k("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted",children:r.type})}),k("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:r.defaultValue?k("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400",children:r.defaultValue}):k("span",{className:"text-text-dim",children:"\u2014"})}),k("td",{className:"px-4 py-2.5 border-b border-border-subtle text-text-muted",children:r.description})]},`${r.name}-${n}`))})]})})]})}import{useMemo as po}from"react";function mo(e){let{code:t,children:o,preview:r}=e,n=po(()=>(t??(typeof o=="string"?o:"")).trim(),[t,o]),a=po(()=>r??(typeof o!="string"?o:null),[r,o]);return{initialCode:n,previewElement:a}}import{jsx as Xe,jsxs as Cn}from"react/jsx-runtime";function uo(e){let{highlightedHtml:t,hideCode:o=!1,hideSandbox:r=!1,hideCopy:n=!1,sandboxOptions:a={}}=e,{initialCode:i,previewElement:l}=mo(e);return Cn("div",{className:"my-6 overflow-hidden rounded-xl border border-border-subtle",children:[Xe("div",{className:"flex items-center justify-center p-8 bg-bg-surface",children:l}),!o&&Xe("div",{className:"border-t border-border-subtle",children:Xe(U,{hideSandbox:r,hideCopy:n,title:a.title,lang:"tsx",highlightedHtml:t,plain:!0,children:i})})]})}import{useState as Vn}from"react";import{Copy as go,Check as Hn,ExternalLink as zn,ChevronDown as In}from"lucide-react";import{jsx as Rn}from"react/jsx-runtime";var Ke=({children:e,className:t,vertical:o=!1})=>Rn("div",{className:p("inline-flex",o?"flex-col":"flex-row",!o&&["[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-l-full","[&>*:last-child]:rounded-r-full"],t?.includes("rounded-xl")&&["[&>*:first-child]:rounded-l-xl","[&>*:last-child]:rounded-r-xl"],t?.includes("rounded-lg")&&["[&>*:first-child]:rounded-l-lg","[&>*:last-child]:rounded-r-lg"]],o&&["[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-t-full","[&>*:last-child]:rounded-b-full"]],t),children:e});import{Check as Pn,ChevronRight as Nn,Dot as Tn}from"lucide-react";import fo from"react";import*as w from"react-aria-components";import*as de from"react-aria-components";import{jsx as Ye,jsxs as wn}from"react/jsx-runtime";var Ze=({children:e,className:t,showArrow:o,...r})=>wn(de.Popover,{offset:8,...r,className:de.composeRenderProps(t,n=>p("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none",n)),children:[o&&Ye(de.OverlayArrow,{className:"group",children:Ye("svg",{viewBox:"0 0 12 12",className:"block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90","aria-hidden":"true",children:Ye("path",{d:"M0 0 L6 6 L12 0"})})}),e]});import{Fragment as Bn,jsx as H,jsxs as ve}from"react/jsx-runtime";function kn(e){let[t,o]=fo.Children.toArray(e.children).slice(0,2);return ve(w.MenuTrigger,{...e,children:[t,H(Ze,{placement:e.placement,className:"min-w-35",children:o})]})}function Ln(e){let[t,o]=fo.Children.toArray(e.children).slice(0,2);return ve(w.SubmenuTrigger,{...e,children:[t,H(Ze,{offset:-4,crossOffset:-4,children:o})]})}function S(e){return H(w.Menu,{...e,className:w.composeRenderProps(e.className,t=>p("p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75",t))})}function An(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return H(w.MenuItem,{...e,textValue:t,className:w.composeRenderProps(e.className,(o,{isFocused:r,isPressed:n,isDisabled:a})=>p("group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none","text-text-main text-[12px]",{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":r,"bg-bg-surface-elevanted":n,"opacity-40 grayscale pointer-events-none":a},o)),children:w.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:n,hasSubmenu:a})=>ve(Bn,{children:[r!=="none"&&ve("span",{className:"flex items-center size-4 shrink-0 justify-center",children:[n&&r==="multiple"&&H(Pn,{className:"size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),n&&r==="single"&&H(Tn,{className:"size-5 text-primary-500 animate-in zoom-in-50 duration-200"})]}),H("div",{className:"flex flex-row w-full transition-colors items-center gap-2 py-1 px-1",children:o}),a&&H(Nn,{className:"size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function Mn({title:e,...t}){return ve(w.MenuSection,{...t,className:p("flex flex-col gap-0.5",t.className),children:[e&&H(w.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),H(w.Collection,{items:t.items,children:t.children})]})}function Sn(e){return H(w.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}S.Root=S;S.Item=An;S.Trigger=kn;S.SubTrigger=Ln;S.Section=Mn;S.Separator=Sn;import{jsx as En}from"react/jsx-runtime";function L({className:e,variant:t="rect",...o}){return En("div",{className:p("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}import{Separator as Zl}from"react-aria-components";import{ToggleButton as ec}from"react-aria-components";import{jsx as D,jsxs as ye}from"react/jsx-runtime";var On=e=>{let[t,o]=Vn(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)},handleOpenRaw:()=>{let a=new Blob([e],{type:"text/plain;charset=utf-8"}),i=URL.createObjectURL(a);window.open(i,"_blank")}}};function bo({content:e,mdxRaw:t,config:o}){let r=t||e||"",{copied:n,handleCopy:a,handleOpenRaw:i}=On(r),l=o!==!1,s=typeof o=="object"&&o.text||"Copy Markdown";return!l||!r?null:D("div",{className:"relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200",children:ye(Ke,{className:"rounded-xl border border-border-subtle bg-bg-surface/40 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:shadow-lg hover:shadow-primary-500/5 group overflow-hidden",children:[D(ee,{variant:"ghost",onPress:a,icon:n?D(Hn,{size:16}):D(go,{size:16}),iconPosition:"left",className:p("px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 border-none shrink-0","text-text-main transition-all duration-300 hover:bg-primary-500/5",n&&"text-emerald-500 hover:bg-emerald-500/5"),children:n?"Copied!":s}),ye(S.Trigger,{placement:"bottom end",children:[D(ee,{variant:"ghost",isIconOnly:!0,icon:D(In,{size:14}),className:p("px-3.5 h-9 border-l border-border-subtle/50 text-text-muted rounded-none bg-transparent shrink-0","transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500")}),ye(S.Root,{className:"w-52",children:[ye(S.Item,{onAction:a,children:[D(go,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),D("span",{className:"font-medium text-[0.8125rem]",children:"Copy Markdown"})]}),ye(S.Item,{onAction:i,children:[D(zn,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),D("span",{className:"font-medium text-[0.8125rem]",children:"View as Markdown"})]})]})]})]})})}import{jsx as A,jsxs as K}from"react/jsx-runtime";function xo(){return A("div",{className:p("w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in"),children:K("div",{className:"mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10",children:[K("div",{className:"flex gap-2",children:[A(L,{className:"h-3 w-16"}),A(L,{className:"h-3 w-24"})]}),A(L,{className:"h-10 w-[60%] sm:h-12"}),K("div",{className:"space-y-3",children:[A(L,{className:"h-4 w-full"}),A(L,{className:"h-4 w-[95%]"}),A(L,{className:"h-4 w-[40%]"})]}),K("div",{className:"space-y-6 pt-4",children:[A(L,{className:"h-7 w-32"}),K("div",{className:"space-y-3",children:[A(L,{className:"h-4 w-full"}),A(L,{className:"h-4 w-[98%]"}),A(L,{className:"h-4 w-[92%]"}),A(L,{className:"h-4 w-[60%]"})]})]}),A(L,{className:"h-32 w-full rounded-lg bg-bg-muted/50"}),K("div",{className:"space-y-6 pt-4",children:[A(L,{className:"h-7 w-48"}),K("div",{className:"space-y-3",children:[A(L,{className:"h-4 w-full"}),A(L,{className:"h-4 w-[85%]"})]})]})]})})}import{jsx as $,jsxs as Fn}from"react/jsx-runtime";var pe=({level:e,id:t,children:o,...r})=>{let n=`h${e}`;return Fn(n,{id:t,...r,className:"boltdocs-heading",children:[o,t&&$("a",{href:`#${t}`,className:"header-anchor","aria-label":"Anchor",children:$(Dn,{size:16})})]})},ho={...Qe,Loading:xo,h1:e=>$(pe,{level:1,...e}),h2:e=>$(pe,{level:2,...e}),h3:e=>$(pe,{level:3,...e}),h4:e=>$(pe,{level:4,...e}),h5:e=>$(pe,{level:5,...e}),h6:e=>$(pe,{level:6,...e}),pre:e=>$(U,{...e,children:e.children})};import $n from"virtual:boltdocs-mdx-components";import{useLocation as Gn}from"react-router-dom";import{Fragment as jn,jsx as v,jsxs as Be}from"react/jsx-runtime";function _n(){let{currentLocale:e,config:t}=me();return tt(()=>{if(!t.i18n)return;let o=t.i18n.localeConfigs?.[e];document.documentElement.lang=o?.htmlLang||e||"en",document.documentElement.dir=o?.direction||"ltr"},[e,t.i18n]),null}function Un(){let e=Gn(),{config:t}=me(),o=F(i=>i.setLocale),r=F(i=>i.setVersion),n=F(i=>i.currentLocale),a=F(i=>i.currentVersion);return tt(()=>{let i=e.pathname.split("/").filter(Boolean),l=0,s=t.versions?.defaultVersion,c=t.i18n?.defaultLocale;if(i[l]==="docs"&&l++,t.versions&&i.length>l){let d=t.versions.versions.find(m=>m.path===i[l]);d&&(s=d.path,l++)}t.i18n&&i.length>l&&t.i18n.locales[i[l]]?c=i[l]:t.i18n&&i.length===0&&(c=n||t.i18n.defaultLocale),c!==n&&o(c),s!==a&&r(s)},[e.pathname,t,o,r,n,a]),null}function Ro({initialRoutes:e,initialConfig:t,docsDirName:o,modules:r,hot:n,homePage:a,externalPages:i,externalLayout:l,components:s={}}){let[c,d]=vo(e),[m,g]=vo(t),h=i||{},y=l||Co,C=yo(()=>c.filter(x=>!(a&&(x.path==="/"||x.path===""))&&!h[x.path===""?"/":x.path]).map(x=>{let V=Object.keys(r).find(E=>E===`/${o}/${x.filePath}`||E.endsWith(`/${o}/${x.filePath}`)||E.endsWith(`/${o}\\${x.filePath.replace(/\\/g,"/")}`)),G=V?r[V]:null;return{...x,Component:et.lazy(async()=>G?await G():{default:ze})}}),[c,r,o,a,h]);tt(()=>{n&&(n.on("boltdocs:routes-update",x=>{d(x)}),n.on("boltdocs:config-update",x=>{g(x)}))},[n]);let b=yo(()=>({...ho,...$n,...s}),[s]),B=b.Loading;return v(dt,{children:v(ht,{components:b,children:v(Ve.Provider,{value:m,children:v(mt,{children:Be(nt,{routes:c,modules:r,children:[v(ut,{}),v(Un,{}),v(_n,{}),Be(Wn,{children:[v(Y,{element:v(gt,{}),children:C.map(x=>v(Y,{path:x.path===""?"/":x.path,element:v(et.Suspense,{fallback:v(B,{}),children:v(yt,{Component:x.Component})})},x.path))},"docs-layout"),a&&Be(jn,{children:[v(Y,{path:"/",element:v(y,{children:v(a,{})})}),m.i18n&&Object.keys(m.i18n.locales).map(x=>v(Y,{path:`/${x}`,element:v(y,{children:v(a,{})})},`home-${x}`))]}),Object.entries(h).map(([x,V])=>{let G=x==="/"?"":x;return Be(et.Fragment,{children:[v(Y,{path:x,element:v(y,{children:v(V,{})})}),m.i18n&&Object.keys(m.i18n.locales).map(E=>v(Y,{path:`/${E}${G}`,element:v(y,{children:v(V,{})})},`${x}-${E}`))]},x)}),v(Y,{path:"*",element:v(Co,{children:v(ze,{})})})]})]})})})})})}import{jsx as ot}from"react/jsx-runtime";async function ld(e){let{path:t,routes:o,config:r,modules:n,homePage:a,externalPages:i,docsDirName:l}=e,s={};for(let[d,m]of Object.entries(n))s[d]=()=>Promise.resolve(m);return Jn.renderToString(ot(qn.StrictMode,{children:ot(Xn,{location:t,children:ot(Ro,{initialRoutes:o,initialConfig:r,docsDirName:l,modules:s,homePage:a,externalPages:i})})}))}export{ld as render};
|
|
1
|
+
var wo=Object.defineProperty;var Po=(e,t)=>{for(var o in t)wo(e,o,{get:t[o],enumerable:!0})};import qn from"react";import Jn from"react-dom/server";import{StaticRouter as Xn}from"react-router-dom/server";import Qe,{useEffect as et,useState as vo,useMemo as yo}from"react";import zc from"react-dom/client";import{BrowserRouter as Oc,Routes as Wn,Route as Z}from"react-router-dom";import{ArrowLeft as Wo}from"lucide-react";import at from"react";import{Link as Oo}from"react-aria-components";import{useLocation as Do}from"react-router-dom";import{createContext as No,use as To}from"react";var Ee=No(null);function _(){let e=To(Ee);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}import{useLocation as Ho}from"react-router-dom";import{createContext as ko,use as Lo,useCallback as Ao,useRef as Mo}from"react";import{jsx as So}from"react/jsx-runtime";var nt=ko({preload:()=>{},routes:[]});function Re(){return Lo(nt)}function st({routes:e,modules:t,children:o}){let r=Mo(null),n=Ao(a=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let i=a.split("#")[0].split("?")[0],l=e.find(s=>s.path===i||i==="/"&&s.path==="");if(l?.filePath){let s=Object.keys(t).find(c=>c.endsWith("/"+l.filePath));s&&t[s]().catch(c=>{console.error(`[boltdocs] Failed to preload route ${a}:`,c)})}},100)},[e,t]);return So(nt.Provider,{value:{preload:n,routes:e},children:o})}import{create as Bo}from"zustand";import{persist as Eo,createJSONStorage as Vo}from"zustand/middleware";var W=Bo()(Eo(e=>({currentLocale:void 0,currentVersion:void 0,hasHydrated:!1,setLocale:t=>e({currentLocale:t}),setVersion:t=>e({currentVersion:t}),setHasHydrated:t=>e({hasHydrated:t})}),{name:"boltdocs-storage",storage:Vo(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}));function ue(){let{routes:e}=Re(),t=_(),o=Ho(),r=W(g=>g.currentLocale),n=W(g=>g.currentVersion),a=W(g=>g.hasHydrated),i=e.find(g=>g.path===o.pathname),l=t.i18n?i?.locale||(a?r:void 0)||t.i18n.defaultLocale:void 0,s=t.versions?i?.version||(a?n:void 0)||t.versions.defaultVersion:void 0,c=e.filter(g=>{let S=t.i18n?(g.locale||t.i18n.defaultLocale)===l:!0,x=t.versions?(g.version||t.versions.defaultVersion)===s:!0;if(!(S&&x))return!1;let E=t.i18n;if(E){let F=!!i?.locale,V=!!g.locale;if(e.some(X=>X!==g&&X.filePath===g.filePath&&X.version===g.version&&(X.locale||E.defaultLocale)===(g.locale||E.defaultLocale))&&F!==V)return!1}return!0}),p=t.i18n?.localeConfigs?.[l]?.label||t.i18n?.locales[l]||l,h=t.versions?.versions.find(g=>g.path===s)?.label||s,y=t.i18n?Object.entries(t.i18n.locales).map(([g,S])=>{let x=t.i18n?.localeConfigs?.[g];return{key:g,label:x?.label||S,isCurrent:g===l}}):[],C=t.versions?t.versions.versions.map(g=>({key:g.path,label:g.label,isCurrent:g.path===s})):[];return{routes:c,allRoutes:e,currentRoute:i,currentLocale:l,currentLocaleLabel:p,availableLocales:y,currentVersion:s,currentVersionLabel:h,availableVersions:C,config:t}}function Ve(e){let t=_(),{currentLocale:o,currentVersion:r}=ue();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let n=t.i18n,a=t.versions;if(!n&&!a)return e;let i=e.startsWith("/docs"),l=e.split("/").filter(Boolean),s=0;l[s]==="docs"&&s++,a&&l.length>s&&a.versions.find(h=>h.path===l[s])&&s++,n&&l.length>s&&n.locales[l[s]]&&s++;let c=l.slice(s),d=[];i&&(d.push("docs"),a&&r&&d.push(r)),n&&o&&o!==n.defaultLocale&&d.push(o),d.push(...c);let p=`/${d.join("/")}`;return p.length>1&&p.endsWith("/")?p.slice(0,-1):p||"/"}import{clsx as zo}from"clsx";import{twMerge as Io}from"tailwind-merge";function m(...e){return Io(zo(e))}import{jsx as it}from"react/jsx-runtime";var Q=at.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:n,onFocus:a,...i}=e,l=Ve(o??""),{preload:s}=Re();return it(Oo,{...i,ref:t,href:l,onMouseEnter:p=>{n?.(p),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)},onFocus:p=>{a?.(p),r==="hover"&&typeof l=="string"&&l.startsWith("/")&&s(l)}})});Q.displayName="Link";var Fo=at.forwardRef((e,t)=>{let{href:o,end:r=!1,className:n,children:a,...i}=e,l=Do(),s=Ve(o??""),c=r?l.pathname===s:l.pathname.startsWith(s),d=typeof n=="function"?n({isActive:c}):m(n,c&&"active"),p=typeof a=="function"?a({isActive:c}):a;return it(Q,{...i,ref:t,href:o,className:d,children:p})});Fo.displayName="NavLink";import{jsx as fe,jsxs as lt}from"react/jsx-runtime";function He(){return fe("div",{className:"flex items-center justify-center min-h-[60vh] text-center",children:lt("div",{className:"space-y-4",children:[fe("span",{className:"text-8xl font-black tracking-tighter text-primary-500/20",children:"404"}),fe("h1",{className:"text-2xl font-bold text-text-main",children:"Page Not Found"}),fe("p",{className:"text-sm text-text-muted max-w-sm mx-auto",children:"The page you're looking for doesn't exist or has been moved."}),lt(Q,{href:"/",className:"inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white outline-none transition-all hover:brightness-110 hover:shadow-lg focus-visible:ring-2 focus-visible:ring-primary-500/30",children:[fe(Wo,{size:16})," Go to Home"]})]})})}import{createContext as $o,use as Go,useEffect as ct,useState as ze}from"react";import{jsx as _o}from"react/jsx-runtime";var dt=$o(void 0);function pt({children:e}){let[t,o]=ze("system"),[r,n]=ze("dark"),[a,i]=ze(!1);ct(()=>{i(!0);let s=localStorage.getItem("boltdocs-theme"),c=s==="light"||s==="dark"||s==="system"?s:"system";o(c);let d=window.matchMedia("(prefers-color-scheme: dark)");((h,y)=>{n(h==="system"?y?"dark":"light":h)})(c,d.matches);let b=h=>{n(y=>(localStorage.getItem("boltdocs-theme")||"system")==="system"?h.matches?"dark":"light":y)};return d.addEventListener("change",b),()=>d.removeEventListener("change",b)},[]),ct(()=>{if(!a)return;let s=window.matchMedia("(prefers-color-scheme: dark)").matches,c=t==="system"?s?"dark":"light":t;n(c);let d=document.documentElement;c==="light"?(d.classList.add("theme-light"),d.dataset.theme="light"):(d.classList.remove("theme-light"),d.dataset.theme="dark")},[t,a]);let l=s=>{o(s),localStorage.setItem("boltdocs-theme",s)};return _o(dt.Provider,{value:{theme:t,resolvedTheme:r,setTheme:l},children:e})}function mt(){let e=Go(dt);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}import Co from"virtual:boltdocs-layout";import{startTransition as Uo}from"react";import{RouterProvider as jo}from"react-aria-components";import{useNavigate as qo,useHref as Jo}from"react-router-dom";import{jsx as Xo}from"react/jsx-runtime";function ut({children:e}){let t=qo();return Xo(jo,{navigate:(o,r)=>{Uo(()=>{t(o,r)})},useHref:Jo,children:e})}import{useLayoutEffect as Ko}from"react";import{useLocation as Yo}from"react-router-dom";function ft(){let{pathname:e,hash:t}=Yo();return Ko(()=>{let o=document.querySelector(".boltdocs-content")||window,r=()=>o===window?window.scrollY:o.scrollTop,n=(a,i="auto")=>{o===window?window.scrollTo({top:a,behavior:i}):o.scrollTo({top:a,behavior:i})};if(t){let a=t.replace("#",""),i=document.getElementById(a);if(i){let s=o===window?0:o.getBoundingClientRect().top,p=i.getBoundingClientRect().top-s-80+r();n(p,"smooth");return}}n(0)},[e,t]),null}import{Outlet as Zo}from"react-router-dom";import Qo from"virtual:boltdocs-layout";import{jsx as gt}from"react/jsx-runtime";function bt(){return gt(Qo,{children:gt(Zo,{})})}import{createContext as er,use as tr}from"react";import{jsx as or}from"react/jsx-runtime";var xt=er({});function ht(){return tr(xt)}function vt({components:e,children:t}){return or(xt.Provider,{value:e,children:t})}import{jsx as rr}from"react/jsx-runtime";function yt({Component:e}){let t=ht();return rr(e,{components:t})}import{Link as Dn}from"lucide-react";var Ze={};Po(Ze,{Admonition:()=>$,Badge:()=>It,Button:()=>Ct,Card:()=>$t,Cards:()=>Wt,Caution:()=>Yt,CodeBlock:()=>U,ComponentPreview:()=>uo,ComponentProps:()=>co,CopyMarkdown:()=>bo,Danger:()=>Jt,Field:()=>ao,FileTree:()=>eo,Image:()=>lo,Important:()=>Kt,InfoBox:()=>Xt,Link:()=>io,List:()=>Zt,Note:()=>Ut,Tab:()=>Et,Table:()=>so,Tabs:()=>Vt,Tip:()=>jt,Video:()=>zt,Warning:()=>qt});import*as Pe from"react-aria-components";import{cva as nr}from"class-variance-authority";import{Fragment as sr,jsx as ee,jsxs as ar}from"react/jsx-runtime";var we=nr("flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none",{variants:{variant:{primary:"bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg",secondary:"bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong",outline:"bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500",ghost:"bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main",danger:"bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15",success:"bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15",warning:"bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15",info:"bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15",subtle:"bg-primary-500/10 text-primary-500 hover:bg-primary-500/20",link:"bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline"},size:{sm:"min-h-8 px-3.5 text-[0.8125rem] gap-1.5",md:"min-h-10 px-5 text-[0.9375rem] gap-2",lg:"min-h-12 px-7 text-[1.05rem] gap-2.5"},rounded:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},iconSize:{sm:"w-8 h-8 p-0",md:"w-10 h-10 p-0",lg:"w-12 h-12 p-0"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:null}},defaultVariants:{variant:"primary",size:"md",rounded:"md"}}),te=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:n,className:a,variant:i,size:l,rounded:s,iconSize:c,disabled:d,...p})=>{let b=r||!n&&!!t,h=b?ee("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):ar(sr,{children:[t&&o==="left"&&ee("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),ee("span",{className:"flex items-center",children:n}),t&&o==="right"&&ee("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?ee(Pe.Link,{href:e,className:m(we({variant:i,size:l,rounded:s,iconSize:b?c:void 0,disabled:d}),a),...p,children:h}):ee(Pe.Button,{className:m(we({variant:i,size:l,rounded:s,iconSize:b?c:void 0,disabled:d}),a),...p,children:h})};import{jsx as ir}from"react/jsx-runtime";var Ct=({className:e,variant:t,size:o,rounded:r,iconSize:n,disabled:a,...i})=>ir(te,{className:m("group",we({variant:t,size:o,rounded:r,iconSize:n,disabled:a,className:e})),...i});import*as Me from"react-aria-components";import{Copy as mr,Check as ur,File as fr}from"lucide-react";import{getParameters as Rt}from"codesandbox/lib/api/define.js";function wt(e){let t=e.files||{},o=e.dependencies||{},r=e.devDependencies||{},n=e.title||"codesandbox-project",a=e.description||"Generic Sandbox",i={};for(let[l,s]of Object.entries(t)){let c=typeof s.content=="object"?JSON.stringify(s.content,null,2):s.content;i[l]={content:c,isBinary:s.isBinary??!1}}if(!i["package.json"]){let s=e.template==="vite"||!!r.vite||!!r["@vitejs/plugin-react"]?{dev:"vite",build:"vite build",preview:"vite preview"}:{start:"node index.js"};i["package.json"]={content:JSON.stringify({private:!0,name:n,description:a,type:"module",version:"1.0.0",scripts:e.scripts||s,dependencies:o,devDependencies:r},null,2),isBinary:!1}}return i}function lr(e){let t=wt(e),o=Rt({files:t}),r=new URLSearchParams({parameters:o,installDependencies:"true"});return e.entry&&r.set("file",`/${e.entry}`),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?${r.toString()}`,options:e}}function Pt(e){if(typeof window>"u")return lr(e);let t=wt(e),o=Rt({files:t}),r=e.entry||"src/App.tsx",n=document.createElement("form");n.method="POST",n.target="_blank",n.action="https://codesandbox.io/api/v1/sandboxes/define",n.style.display="none";let a=(l,s)=>{let c=document.createElement("input");c.type="hidden",c.name=l,c.value=s,n.appendChild(c)},i=new URLSearchParams({file:`/${r}`,eslint:"0",codemirror:"1",installDependencies:"true"});return a("query",i.toString()),a("parameters",o),document.body.appendChild(n),n.submit(),document.body.removeChild(n),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?parameters=${o}`,options:e}}var Nt=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement("textarea");return t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),!0}};import{useCallback as Tt,useEffect as cr,useRef as dr,useState as Ie}from"react";function kt(e){let{title:t,sandbox:o}=e,[r,n]=Ie(!1),[a,i]=Ie(!1),[l,s]=Ie(!1),c=dr(null),d=_(),p=Tt(async()=>{let h=c.current?.textContent??"";Nt(h),n(!0),setTimeout(()=>n(!1),2e3)},[]),b=Tt(()=>{let h=c.current?.textContent??"",y=d?.integrations?.sandbox?.config||{},C=typeof o=="object"?o:y,g=C.entry||"src/App.tsx";Pt({title:t??"Code Snippet",...C,files:{...C.files,[g]:{content:h}}})},[t,d,o]);return cr(()=>{let h=c.current?.textContent?.length??0;s(h>120)},[e.children,e.highlightedHtml]),{copied:r,isExpanded:a,setIsExpanded:i,isExpandable:l,preRef:c,handleCopy:p,handleSandbox:b,shouldTruncate:l&&!a}}import{jsx as R,jsxs as I}from"react/jsx-runtime";function z(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var Lt=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...z(e),children:[R("title",{children:"CodeSandbox"}),R("path",{d:"M0 24h24V0H0v2.455h21.546v19.09H2.454V0H0Z"})]});var Ne=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"TypeScript"}),R("path",{fill:"#2563EB",d:"M3.234 9.093V7.318h8.363v1.775H8.479V17.5H6.352V9.093H3.234zm15.263 1.153c-.04-.4-.21-.712-.512-.934-.301-.222-.71-.333-1.228-.333-.351 0-.648.05-.89.149-.242.096-.427.23-.557.403a.969.969 0 0 0-.189.586.838.838 0 0 0 .115.477c.086.136.204.254.353.353.149.097.321.181.517.254.195.07.404.13.626.179l.915.219c.444.1.852.232 1.223.397.371.166.693.37.965.612.271.242.482.527.631.855.152.328.23.704.234 1.129-.004.623-.163 1.163-.478 1.62-.311.454-.762.807-1.352 1.06-.587.248-1.294.372-2.123.372-.822 0-1.538-.126-2.147-.378-.607-.252-1.081-.624-1.422-1.118-.338-.497-.516-1.112-.532-1.845h2.083c.023.342.12.627.293.855.176.226.41.397.701.513a2.8 2.8 0 0 0 1 .168c.364 0 .68-.053.949-.159a1.45 1.45 0 0 0 .631-.442c.15-.189.224-.406.224-.651a.846.846 0 0 0-.204-.577c-.132-.156-.328-.288-.586-.398a5.964 5.964 0 0 0-.94-.298l-1.109-.278c-.858-.21-1.536-.536-2.033-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.491-1.615.335-.461.794-.82 1.377-1.08.584-.258 1.247-.387 1.99-.387.755 0 1.414.13 1.978.388.567.258 1.007.618 1.322 1.079.315.46.477.994.488 1.6h-2.064z"})]}),Te=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"JavaScript"}),R("path",{fill:"#F59E0B",d:"M8.383 7.318h2.127v7.1c0 .656-.147 1.226-.442 1.71a2.924 2.924 0 01-1.218 1.118c-.52.262-1.125.393-1.815.393-.613 0-1.17-.107-1.67-.323a2.67 2.67 0 01-1.183-.994c-.292-.448-.436-1.01-.433-1.686h2.143c.006.269.061.5.164.691.106.19.25.335.432.438.186.1.405.15.657.15.265 0 .488-.057.67-.17.186-.116.327-.285.423-.507.096-.222.145-.496.145-.82v-7.1zm9.43 2.928c-.04-.4-.21-.712-.511-.934-.302-.222-.711-.333-1.228-.333-.352 0-.648.05-.89.149-.242.096-.428.23-.557.403a.969.969 0 00-.19.586.838.838 0 00.115.477c.087.136.204.254.353.353.15.097.322.181.517.254.196.07.405.13.627.179l.915.219c.444.1.851.232 1.223.397.37.166.692.37.964.612s.482.527.631.855a2.7 2.7 0 01.234 1.129c-.003.623-.162 1.163-.477 1.62-.312.454-.763.807-1.353 1.06-.586.248-1.294.372-2.122.372-.822 0-1.538-.126-2.148-.378-.607-.252-1.08-.624-1.422-1.118-.338-.497-.515-1.112-.532-1.845h2.083c.023.342.121.627.293.855.176.226.41.397.702.513.295.112.628.168.999.168.364 0 .68-.053.95-.159.271-.106.482-.253.63-.442.15-.189.224-.406.224-.651a.846.846 0 00-.203-.577c-.133-.156-.329-.288-.587-.398a5.964 5.964 0 00-.94-.298l-1.108-.278c-.859-.21-1.537-.536-2.034-.98-.497-.444-.744-1.042-.74-1.795-.004-.616.16-1.155.492-1.615.334-.461.793-.82 1.377-1.08.583-.258 1.246-.387 1.989-.387.755 0 1.415.13 1.978.388.567.258 1.008.618 1.323 1.079.314.46.477.994.487 1.6h-2.063z"})]}),ke=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"JSON"}),R("path",{fill:"#F59E0B",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),Le=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"CSS"}),R("path",{fill:"#0EA5E9",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]}),Ae=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"HTML"}),R("path",{fill:"#EA580C",d:"M4.778 6.667A2.667 2.667 0 017.444 4a.889.889 0 010 1.778.889.889 0 00-.888.889v3.5c0 .701-.273 1.35-.73 1.833.457.483.73 1.132.73 1.832v3.501c0 .491.398.89.888.89a.889.889 0 010 1.777 2.667 2.667 0 01-2.666-2.667v-3.5a.889.889 0 00-.674-.863l-.43-.108a.889.889 0 010-1.724l.43-.108a.889.889 0 00.674-.862V6.667zm14.222 0A2.667 2.667 0 0016.333 4a.889.889 0 000 1.778c.491 0 .89.398.89.889v3.5c0 .701.272 1.35.729 1.833a2.664 2.664 0 00-.73 1.832v3.501a.889.889 0 01-.889.89.889.889 0 000 1.777A2.667 2.667 0 0019 17.333v-3.5c0-.408.278-.764.673-.863l.431-.108a.889.889 0 000-1.724l-.43-.108a.889.889 0 01-.674-.862V6.667z"})]});var oe=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"React"}),R("path",{fill:"#0E8ADC",d:"M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z"}),R("path",{stroke:"#0E8ADC",d:"M12 15.436c4.97 0 9-1.538 9-3.436s-4.03-3.436-9-3.436S3 10.102 3 12s4.03 3.436 9 3.436z"}),R("path",{stroke:"#0E8ADC",d:"M9.024 13.718c2.485 4.305 5.832 7.025 7.476 6.076 1.644-.949.961-5.208-1.524-9.512C12.491 5.977 9.144 3.257 7.5 4.206c-1.644.949-.961 5.208 1.524 9.512z"}),R("path",{stroke:"#0E8ADC",d:"M9.024 10.282c-2.485 4.304-3.168 8.563-1.524 9.512 1.644.95 4.99-1.771 7.476-6.076 2.485-4.304 3.168-8.563 1.524-9.512-1.644-.95-4.99 1.771-7.476 6.076z"})]}),re=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"Markdown"}),R("path",{fill:"#60A5FA",d:"M3 15.714V8h2.323l2.322 2.836L9.968 8h2.322v7.714H9.968V11.29l-2.323 2.836-2.322-2.836v4.424H3zm14.516 0l-3.484-3.743h2.323V8h2.322v3.97H21l-3.484 3.744z"})]}),ne=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...z(e),children:[R("title",{children:"Shell"}),R("path",{stroke:"#14B8A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.336 17l6-6-6-6M12.336 19h8"})]}),se=e=>I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...z(e),children:[R("title",{children:"YAML"}),R("path",{fill:"#A78BFA",d:"M6.533 5.864h2.755l2.654 5.011h.113l2.654-5.011h2.756l-4.245 7.522V17.5h-2.443v-4.114L6.533 5.864z"})]});import*as ie from"react-aria-components";import{Fragment as pr,jsx as ge,jsxs as Oe}from"react/jsx-runtime";var At=({className:e,children:t,...o})=>ge(ie.Tooltip,{...o,offset:8,className:r=>m("group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75","data-[placement=top]:slide-in-from-bottom-1","data-[placement=bottom]:slide-in-from-top-1","data-[placement=left]:slide-in-from-right-1","data-[placement=right]:slide-in-from-left-1",typeof e=="function"?e(r):e),children:r=>Oe(pr,{children:[ge(ie.OverlayArrow,{children:Oe("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",children:[ge("title",{children:"Arrow"}),ge("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),ae=({content:e,children:t,delay:o=500,closeDelay:r=0,...n})=>Oe(ie.TooltipTrigger,{delay:o,closeDelay:r,children:[t,ge(At,{...n,children:e})]});ae.Root=ae;ae.Content=At;import{jsx as M,jsxs as De}from"react/jsx-runtime";var gr={ts:Ne,tsx:oe,js:Te,jsx:oe,json:ke,css:Le,html:Ae,md:re,mdx:re,bash:ne,sh:ne,yaml:se,yml:se};function U(e){let{children:t,sandbox:o,hideSandbox:r=!0,hideCopy:n=!1,highlightedHtml:a,"data-highlighted-html":i,title:l,"data-lang":s,plain:c=!1,...d}=e,p=a||i,y=!!_()?.integrations?.sandbox?.enable&&!r,C=e.lang||s||"",{copied:g,isExpanded:S,setIsExpanded:x,isExpandable:E,preRef:F,handleCopy:V,handleSandbox:ot,shouldTruncate:X}=kt(e),rt=gr[C];return De("div",{className:m("group relative overflow-hidden bg-(--color-code-bg)","contain-layout contain-paint",{"my-6 rounded-lg border border-border-subtle":!c,"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":X},e.className),children:[l&&De("div",{className:"flex items-center gap-2 border-b border-border-subtle bg-bg-surface/50 px-4 py-2 text-[13px] font-medium text-text-muted",children:[rt?M(rt,{size:14}):M(fr,{size:14,className:"opacity-60"}),M("span",{children:l})]}),De("div",{className:"absolute top-3 right-4 z-50 flex items-center gap-2 transition-all duration-300 opacity-0 group-hover:opacity-100",children:[y&&M(ae,{content:"Open in CodeSandbox",children:M(Me.Button,{onPress:ot,className:"grid place-items-center w-8 h-8 bg-transparent text-text-muted outline-none cursor-pointer transition-all duration-200 hover:scale-115 hover:text-sky-400 active:scale-95 [&>svg]:w-5 [&>svg]:h-5 [&>svg]:stroke-2","aria-label":"Open in CodeSandbox",children:M(Lt,{size:20})})}),!n&&M(ae,{content:g?"Copied!":"Copy code",children:M(Me.Button,{onPress:V,className:m("grid place-items-center size-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95 [&>svg]:size-4 [&>svg]:stroke-2",g?"text-emerald-400":"text-text-muted hover:text-text-main"),"aria-label":"Copy code",children:g?M(ur,{size:20}):M(mr,{size:20})})})]}),p?M("div",{ref:F,className:"shiki-wrapper [&>pre]:m-0! [&>pre]:rounded-none! [&>pre]:border-none! [&>pre]:bg-inherit! [&>pre>code]:grid! [&>pre>code]:p-5! [&>.shiki.shiki-themes]:bg-transparent!",dangerouslySetInnerHTML:{__html:p}}):M("pre",{ref:F,className:"m-0! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7]",...d,children:t}),E&&M("div",{className:m(X?"absolute bottom-0 inset-x-0 h-24 bg-linear-to-t from-(--color-code-bg) to-transparent flex items-end justify-center pb-4 z-10":"relative flex justify-center py-4"),children:M(Me.Button,{onPress:()=>x(!S),className:"rounded-full bg-bg-surface border border-border-subtle px-5 py-2 text-[0.8125rem] font-medium text-text-main outline-none cursor-pointer transition-all hover:bg-border-subtle hover:-translate-y-px backdrop-blur-md",children:S?"Show less":"Expand code"})})]})}import{Children as vr,isValidElement as yr,useMemo as Cr}from"react";import*as q from"react-aria-components";import{useState as Mt,useRef as br,useEffect as xr,useCallback as hr}from"react";function St({initialIndex:e=0,tabs:t}){let o=t[e]?.props.disabled?t.findIndex(c=>!c.props.disabled):e,[r,n]=Mt(o===-1?0:o),a=br([]),[i,l]=Mt({opacity:0,transform:"translateX(0)",width:0});xr(()=>{let c=a.current[r];c&&l({opacity:1,width:c.offsetWidth,transform:`translateX(${c.offsetLeft}px)`})},[r,t]);let s=hr(c=>{let d=0;if(c.key==="ArrowRight"?d=1:c.key==="ArrowLeft"&&(d=-1),d!==0){let p=(r+d+t.length)%t.length;for(;t[p].props.disabled&&p!==r;)p=(p+d+t.length)%t.length;p!==r&&!t[p].props.disabled&&(n(p),a.current[p]?.focus())}},[r,t]);return{active:r,setActive:n,tabRefs:a,indicatorStyle:i,handleKeyDown:s}}import{cva as Bt}from"class-variance-authority";import{jsx as j,jsxs as Fe}from"react/jsx-runtime";var Rr=Bt("relative flex items-center border-b border-border-subtle gap-1 overflow-x-auto no-scrollbar",{variants:{size:{default:"px-0",compact:"px-2"}},defaultVariants:{size:"default"}}),wr=Bt("flex items-center gap-2 px-4 py-2.5 text-sm font-medium outline-none transition-all duration-200 cursor-pointer bg-transparent border-none select-none whitespace-nowrap",{variants:{isActive:{true:"text-primary-500",false:"text-text-muted hover:text-text-main"},isDisabled:{true:"opacity-40 pointer-events-none",false:""}},defaultVariants:{isActive:!1,isDisabled:!1}});function Et({children:e}){let t=typeof e=="string"?j(U,{className:"language-bash",children:j("code",{children:e.trim()})}):e;return j("div",{className:"py-4",children:t})}function Vt({defaultIndex:e=0,children:t}){let o=Cr(()=>vr.toArray(t).filter(l=>yr(l)&&l.props?.label),[t]),{active:r,setActive:n,tabRefs:a,indicatorStyle:i}=St({initialIndex:e,tabs:o});return j("div",{className:"my-8 w-full group/tabs",children:Fe(q.Tabs,{selectedKey:r.toString(),onSelectionChange:l=>n(Number(l)),className:"w-full",children:[Fe(q.TabList,{"aria-label":"Content Tabs",className:m(Rr()),children:[o.map((l,s)=>{let{label:c,icon:d,disabled:p}=l.props,b=s.toString();return Fe(q.Tab,{id:b,isDisabled:p,ref:h=>{a.current[s]=h},className:({isSelected:h,isDisabled:y})=>m(wr({isActive:h,isDisabled:y})),children:[!!d&&j("span",{className:"shrink-0 [&>svg]:w-4 [&>svg]:h-4",children:d}),j("span",{children:c})]},b)}),j("div",{className:"absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none",style:i,"aria-hidden":"true"})]}),o.map((l,s)=>j(q.TabPanel,{id:s.toString(),children:o[s]},s))]})})}import{useRef as Pr,useState as Nr,useEffect as Tr}from"react";import{jsx as Ht,jsxs as kr}from"react/jsx-runtime";function zt({src:e,poster:t,alt:o,children:r,controls:n,preload:a="metadata",...i}){let l=Pr(null),[s,c]=Nr(!1);return Tr(()=>{let d=l.current;if(!d)return;let p=new IntersectionObserver(([b])=>{b.isIntersecting&&(c(!0),p.disconnect())},{rootMargin:"200px"});return p.observe(d),()=>p.disconnect()},[]),Ht("div",{ref:l,className:"my-6 overflow-hidden rounded-lg border border-border-subtle",children:s?kr("video",{className:"block w-full h-auto",src:e,poster:t,controls:!0,preload:a,playsInline:!0,...i,children:[r,"Your browser does not support the video tag."]}):Ht("div",{className:"aspect-video bg-bg-surface animate-pulse",role:"img","aria-label":o||"Video"})})}import{cva as Lr}from"class-variance-authority";import{jsx as Mr}from"react/jsx-runtime";var Ar=Lr("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold tracking-tight",{variants:{variant:{default:"bg-bg-surface text-text-muted border-border-subtle",primary:"bg-primary-500/15 text-primary-400 border-primary-500/20",success:"bg-emerald-500/15 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/15 text-amber-400 border-amber-500/20",danger:"bg-red-500/15 text-red-400 border-red-500/20",info:"bg-sky-500/15 text-sky-400 border-sky-500/20"}},defaultVariants:{variant:"default"}});function It({variant:e="default",children:t,className:o="",...r}){return Mr("span",{className:m(Ar({variant:e}),o),...r,children:t})}import{useCallback as Sr,useRef as Ot}from"react";import*as Ft from"react-aria-components";import{cva as Br}from"class-variance-authority";import{Fragment as Vr,jsx as K,jsxs as Dt}from"react/jsx-runtime";var Er=Br("grid gap-4 my-6",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"}},defaultVariants:{cols:3}});function Wt({cols:e=3,children:t,className:o="",...r}){return K("div",{className:m(Er({cols:e}),o),...r,children:t})}function $t({title:e,icon:t,href:o,children:r,className:n="",...a}){let i=Ot(null),l=Ot(null),s=Sr(p=>{let b=i.current||l.current;if(!b)return;let{left:h,top:y}=b.getBoundingClientRect();b.style.setProperty("--x",`${p.clientX-h}px`),b.style.setProperty("--y",`${p.clientY-y}px`)},[]),c=Dt(Vr,{children:[K("div",{className:"pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"radial-gradient(400px circle at var(--x) var(--y), color-mix(in oklch, var(--color-primary-500), transparent 90%), transparent 80%)"}}),t&&K("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-primary-500/10 text-primary-400 text-lg transition-transform duration-300 group-hover:scale-105 group-hover:-rotate-3",children:t}),Dt("div",{className:"space-y-1.5",children:[e&&K("h3",{className:"text-sm font-bold text-text-main",children:e}),r&&K("div",{className:"text-sm text-text-muted leading-relaxed",children:r})]})]}),d=m("group relative block rounded-xl border border-border-subtle bg-bg-surface p-5 outline-none overflow-hidden","transition-all duration-200 hover:border-primary-500/40 hover:shadow-lg hover:shadow-primary-500/5","focus-visible:ring-2 focus-visible:ring-primary-500/30",n);return o?K(Ft.Link,{ref:l,href:o,className:m(d,"no-underline cursor-pointer"),onMouseMove:s,...a,children:c}):K("div",{ref:i,role:"presentation",className:d,onMouseMove:s,...a,children:c})}import{Info as Hr,Lightbulb as zr,AlertTriangle as Ir,ShieldAlert as Or,Bookmark as Dr,Zap as Fr,Flame as Wr}from"lucide-react";import{cva as $r}from"class-variance-authority";import{jsx as N,jsxs as _t}from"react/jsx-runtime";var Gr={note:N(Dr,{size:18}),tip:N(zr,{size:18}),info:N(Hr,{size:18}),warning:N(Ir,{size:18}),danger:N(Or,{size:18}),important:N(Wr,{size:18}),caution:N(Fr,{size:18})},_r={note:"Note",tip:"Tip",info:"Info",warning:"Warning",danger:"Danger",important:"Important",caution:"Caution"},Gt=$r("py-4 px-4 rounded-lg",{variants:{type:{note:"border-primary-400 bg-primary-500/5 text-primary-400",tip:"border-emerald-500 bg-emerald-500/5 text-emerald-500",info:"border-sky-500 bg-sky-500/5 text-sky-500",warning:"border-amber-500 bg-amber-500/5 text-amber-500",danger:"border-red-500 bg-red-500/5 text-red-500",important:"border-orange-500 bg-orange-500/5 text-orange-500",caution:"border-yellow-500 bg-yellow-500/5 text-yellow-500"}},defaultVariants:{type:"note"}});function $({type:e="note",title:t,children:o,className:r="",...n}){return _t("div",{className:m(Gt({type:e}),r),role:e==="warning"||e==="danger"?"alert":"note",...n,children:[_t("div",{className:"flex items-center flex-row gap-2 mb-2",children:[N("span",{className:m("shrink-0",Gt({type:e})),children:Gr[e]}),N("span",{className:"text-sm font-bold tracking-tight text-text-main",children:t||_r[e]})]}),N("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0",children:o})]})}var Ut=e=>N($,{type:"note",...e}),jt=e=>N($,{type:"tip",...e}),qt=e=>N($,{type:"warning",...e}),Jt=e=>N($,{type:"danger",...e}),Xt=e=>N($,{type:"info",...e}),Kt=e=>N($,{type:"important",...e}),Yt=e=>N($,{type:"caution",...e});import{Children as Ur,isValidElement as jr}from"react";import{Check as qr,ChevronRight as Jr,Circle as Xr}from"lucide-react";import{cva as We}from"class-variance-authority";import{jsx as J,jsxs as tn}from"react/jsx-runtime";var Kr=We("my-6 transition-all duration-200",{variants:{variant:{default:"list-disc pl-5 text-text-muted marker:text-primary-500/50",number:"list-decimal pl-5 text-text-muted marker:text-primary-500/50 marker:font-bold",checked:"list-none p-0",arrow:"list-none p-0",bubble:"list-none p-0"},cols:{1:"grid-cols-1",2:"grid-cols-1 sm:grid-cols-2",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"},isGrid:{true:"grid gap-x-8 gap-y-3",false:"space-y-2"},dense:{true:"space-y-1",false:"space-y-2"}},compoundVariants:[{variant:"default",dense:!0,className:"space-y-0.5"}],defaultVariants:{variant:"default",cols:1,isGrid:!1,dense:!1}}),Yr=We("group flex items-start gap-3 text-sm leading-relaxed transition-all duration-200",{variants:{variant:{default:"",number:"",checked:"hover:translate-x-0.5",arrow:"hover:translate-x-0.5",bubble:"hover:translate-x-0.5"},dense:{true:"py-0",false:"py-0.5"}},defaultVariants:{variant:"default",dense:!1}}),Zr=We("mt-1 shrink-0 flex items-center justify-center transition-transform group-hover:scale-110",{variants:{variant:{bubble:"h-5 w-5 rounded-full bg-primary-500/10 text-primary-500 text-[10px] font-bold",default:""}},defaultVariants:{variant:"default"}});function Qr({icon:e,children:t,variant:o,dense:r}){return tn("li",{className:m(Yr({variant:o,dense:r})),children:[e&&J("span",{className:m(Zr({variant:o==="bubble"?"bubble":"default"})),children:e}),J("div",{className:"flex-1 text-text-muted group-hover:text-text-main transition-colors",children:t})]})}var en={checked:e=>J(qr,{size:14,className:m("text-emerald-500 shrink-0",e)}),arrow:e=>J(Jr,{size:14,className:m("text-primary-400 shrink-0",e)}),bubble:e=>J(Xr,{size:6,fill:"currentColor",className:m("text-primary-500 shrink-0",e)}),default:()=>null,number:()=>null};function Zt({variant:e="default",cols:t=1,dense:o=!1,children:r,className:n,...a}){let i=t!==void 0&&Number(t)>1,l=en[e],s=Kr({variant:e,cols:t,dense:o,isGrid:i,className:n}),c=e==="number"?"ol":"ul";return e==="default"||e==="number"?J(c,{className:s,...a,children:r}):J("ul",{className:s,...a,children:Ur.map(r,d=>{if(!jr(d))return d;let p=d,b=p.type==="li"?p.props.children:p.props.children||d;return J(Qr,{icon:l(),variant:e,dense:o,children:b})})})}import{Children as $e,isValidElement as qe,useMemo as on}from"react";import*as O from"react-aria-components";import{Folder as rn,FileText as nn,File as sn,FileCode as an,FileImage as ln,ChevronRight as cn}from"lucide-react";import{jsx as T,jsxs as Ue}from"react/jsx-runtime";var le=16,be=2,dn={ts:Ne,tsx:oe,js:Te,jsx:oe,json:ke,css:Le,html:Ae,md:re,mdx:re,bash:ne,sh:ne,yaml:se,yml:se},Ge={CODE:/\.(ts|tsx|js|jsx|json|mjs|cjs|astro|vue|svelte)$/i,TEXT:/\.(md|mdx|txt)$/i,IMAGE:/\.(png|jpg|jpeg|svg|gif)$/i};function je(e){return typeof e=="string"?e:typeof e=="number"?e.toString():Array.isArray(e)?e.map(je).join(""):qe(e)&&e.props&&typeof e.props=="object"&&"children"in e.props?je(e.props.children):""}function pn(e,t){let o=e.toLowerCase(),r="shrink-0 transition-colors duration-200";if(t)return T(rn,{size:le,strokeWidth:be,className:m(r,"text-primary-400"),fill:"currentColor",fillOpacity:.15});let n=o.split(".").pop()||"",a=dn[n];if(a)return T(a,{size:le});let i=m(r,"text-text-dim group-hover:text-text-main");return Ge.CODE.test(o)?T(an,{size:le,strokeWidth:be,className:i}):Ge.TEXT.test(o)?T(nn,{size:le,strokeWidth:be,className:i}):Ge.IMAGE.test(o)?T(ln,{size:le,strokeWidth:be,className:i}):T(sn,{size:le,strokeWidth:be,className:i})}function _e(e,t){if(!qe(e))return!1;let o=e.type;if(typeof o=="string")return o===t;if(typeof o=="function")return o.name===t||o.name?.toLowerCase()===t;let r=e.props;return r?.originalType===t||r?.mdxType===t}function mn(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function Se(e,t="root"){if(!qe(e))return[];let o=[];if(_e(e,"ul"))return $e.forEach(e.props.children,(r,n)=>{o.push(...Se(r,`${t}-${n}`))}),o;if(_e(e,"li")){let r=$e.toArray(e.props.children),n=r.findIndex(y=>_e(y,"ul")),a=n!==-1,i=a?r.slice(0,n):r,l=a?r.slice(n):[],s=je(i),{name:c,comment:d}=mn(s),p=c.endsWith("/"),b=p?c.slice(0,-1):c,h=a||p;return o.push({id:`${t}-${b}`,name:b,comment:d,isFolder:h,children:a?Se(l[0],`${t}-${b}`):void 0}),o}return e.props&&typeof e.props=="object"&&"children"in e.props&&$e.forEach(e.props.children,(r,n)=>{o.push(...Se(r,`${t}-${n}`))}),o}function Qt({item:e}){return Ue(O.TreeItem,{id:e.id,textValue:e.name,className:"outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md",children:[T(O.TreeItemContent,{children:({isExpanded:t,hasChildItems:o})=>Ue("div",{className:"flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer",children:[T("div",{style:{width:"calc((var(--tree-item-level) - 1) * 1rem)"},className:"shrink-0"}),o?T(O.Button,{slot:"chevron",className:"outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors",children:T(cn,{size:14,strokeWidth:3,className:m("transition-transform duration-200",t&&"rotate-90")})}):T("div",{className:"w-[18px]"}),pn(e.name,e.isFolder),T("span",{className:m("text-sm transition-colors truncate select-none",e.isFolder?"font-semibold text-text-main":"text-text-muted group-hover:text-text-main"),children:e.name}),e.comment&&Ue("span",{className:"ml-2 text-xs italic text-text-dim opacity-70 group-hover:opacity-100 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis font-sans",children:["//"," ",e.comment]})]})}),e.children&&T(O.Collection,{items:e.children,children:t=>T(Qt,{item:t})})]})}function eo({children:e}){let t=on(()=>Se(e),[e]);return T("div",{className:"my-8",children:T(O.Tree,{items:t,"aria-label":"File Tree",className:m("rounded-xl border border-border-subtle bg-bg-surface/50 p-4 font-mono text-sm shadow-sm backdrop-blur-sm outline-none","max-h-[500px] overflow-y-auto scrollbar-thin scrollbar-thumb-border-subtle","focus-visible:ring-2 focus-visible:ring-primary-500/20"),children:o=>T(Qt,{item:o})})})}import*as xe from"react-aria-components";import{useState as to,useMemo as oo}from"react";function ro({data:e,sortable:t=!1,paginated:o=!1,pageSize:r=10}){let[n,a]=to(null),[i,l]=to(1),s=oo(()=>{if(!e)return[];let b=[...e];return t&&n!==null&&b.sort((h,y)=>{let C=h[n.key],g=y[n.key],S=typeof C=="string"?C:"",x=typeof g=="string"?g:"";return S<x?n.direction==="asc"?-1:1:S>x?n.direction==="asc"?1:-1:0}),b},[e,n,t]),c=Math.ceil(s.length/r),d=oo(()=>{if(!o)return s;let b=(i-1)*r;return s.slice(b,b+r)},[s,o,i,r]);return{sortConfig:n,currentPage:i,setCurrentPage:l,totalPages:c,paginatedData:d,requestSort:b=>{if(!t)return;let h="asc";n&&n.key===b&&n.direction==="asc"&&(h="desc"),a({key:b,direction:h})}}}import{ChevronUp as un,ChevronDown as no,ChevronLeft as fn,ChevronRight as gn,ChevronsLeft as bn,ChevronsRight as xn}from"lucide-react";import{Fragment as hn,jsx as P,jsxs as ce}from"react/jsx-runtime";function so({headers:e,data:t,children:o,className:r="",sortable:n=!1,paginated:a=!1,pageSize:i=10}){let{sortConfig:l,currentPage:s,setCurrentPage:c,totalPages:d,paginatedData:p,requestSort:b}=ro({data:t,sortable:n,paginated:a,pageSize:i}),h=C=>n?l?.key!==C?P(no,{size:14,className:"ml-1 opacity-30"}):l.direction==="asc"?P(un,{size:14,className:"ml-1 text-primary-400"}):P(no,{size:14,className:"ml-1 text-primary-400"}):null,y=o||ce(hn,{children:[e&&P("thead",{children:P("tr",{children:e.map((C,g)=>P("th",{onClick:()=>b(g),className:m("text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm",n&&"cursor-pointer select-none hover:text-primary-400 transition-colors"),children:ce("div",{className:"flex items-center",children:[C,h(g)]})},g))})}),p&&P("tbody",{children:p.map((C,g)=>P("tr",{className:"transition-colors hover:bg-bg-surface",children:C.map((S,x)=>P("td",{className:"px-3 py-2 border-b border-border-subtle text-sm text-text-muted",children:S},x))},g))})]});return ce("div",{className:m("my-6 rounded-lg border border-border-subtle overflow-hidden",r),children:[P("div",{className:"overflow-x-auto",children:P("table",{className:"w-full border-collapse text-sm",children:y})}),a&&d>1&&ce("div",{className:"flex items-center justify-between border-t border-border-subtle px-4 py-3",children:[ce("span",{className:"text-xs text-text-muted",children:["Page ",s," of ",d]}),ce("div",{className:"flex items-center gap-1",children:[P(xe.Button,{onPress:()=>c(1),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:P(bn,{size:16})}),P(xe.Button,{onPress:()=>c(C=>Math.max(C-1,1)),isDisabled:s===1,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:P(fn,{size:16})}),P(xe.Button,{onPress:()=>c(C=>Math.min(C+1,d)),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:P(gn,{size:16})}),P(xe.Button,{onPress:()=>c(d),isDisabled:s===d,className:"grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer",children:P(xn,{size:16})})]})]})]})}import{jsx as de,jsxs as he}from"react/jsx-runtime";function ao({name:e,type:t,defaultValue:o,required:r=!1,children:n,id:a,className:i=""}){return he("article",{className:m("group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300","hover:border-primary-500/30 hover:shadow-lg hover:shadow-primary-500/5",i),id:a,children:[he("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[he("div",{className:"flex flex-wrap items-center gap-2.5",children:[de("code",{className:"inline-flex items-center rounded-md bg-primary-500/10 px-2.5 py-1 font-mono text-sm font-bold text-primary-400 border border-primary-500/20 shadow-sm transition-colors group-hover:bg-primary-500/15",children:e}),t&&de("span",{className:"rounded-md bg-bg-muted/80 border border-border-subtle px-2 py-0.5 text-[11px] font-semibold text-text-muted uppercase tracking-wider shadow-sm",children:t}),r&&he("div",{className:"flex items-center gap-1.5 rounded-full bg-red-500/10 px-2.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-red-400 border border-red-500/20 shadow-sm",children:[de("span",{className:"h-1 w-1 rounded-full bg-red-400 animate-pulse"}),"Required"]})]}),o&&he("div",{className:"flex items-center gap-2 text-[11px] text-text-muted bg-bg-muted/30 px-2.5 py-1 rounded-md border border-border-subtle/50",children:[de("span",{className:"font-semibold opacity-60 uppercase tracking-tighter",children:"Default"}),de("code",{className:"font-mono text-text-main font-medium",children:o})]})]}),de("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30",children:n})]})}import{jsx as vn}from"react/jsx-runtime";function io({to:e,children:t,className:o="",...r}){let n=e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")),a=m("text-blue-600 hover:text-blue-800 hover:underline cursor-pointer",o);return vn(Q,{href:e,className:a,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...r,children:t})}import{jsx as yn}from"react/jsx-runtime";function lo({src:e,alt:t,theme:o,...r}){let{theme:n}=mt();return o&&o!==n?null:yn("img",{src:e,alt:t||"",...r})}import{jsx as k,jsxs as ve}from"react/jsx-runtime";function co({title:e,props:t,className:o=""}){return ve("div",{className:m("my-6",o),children:[e&&k("h3",{className:"text-base font-bold text-text-main mb-3",children:e}),k("div",{className:"overflow-x-auto rounded-lg border border-border-subtle",children:ve("table",{className:"w-full border-collapse text-sm",children:[k("thead",{children:ve("tr",{children:[k("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Property"}),k("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Type"}),k("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Default"}),k("th",{className:"text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted",children:"Description"})]})}),k("tbody",{children:t.map((r,n)=>ve("tr",{className:"transition-colors hover:bg-bg-surface",children:[ve("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:[k("code",{className:"rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400",children:r.name}),r.required&&k("span",{className:"ml-1 text-red-400 font-bold",children:"*"})]}),k("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:k("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted",children:r.type})}),k("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:r.defaultValue?k("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400",children:r.defaultValue}):k("span",{className:"text-text-dim",children:"\u2014"})}),k("td",{className:"px-4 py-2.5 border-b border-border-subtle text-text-muted",children:r.description})]},`${r.name}-${n}`))})]})})]})}import{useMemo as po}from"react";function mo(e){let{code:t,children:o,preview:r}=e,n=po(()=>(t??(typeof o=="string"?o:"")).trim(),[t,o]),a=po(()=>r??(typeof o!="string"?o:null),[r,o]);return{initialCode:n,previewElement:a}}import{jsx as Je,jsxs as Cn}from"react/jsx-runtime";function uo(e){let{highlightedHtml:t,hideCode:o=!1,hideSandbox:r=!1,hideCopy:n=!1,sandboxOptions:a={}}=e,{initialCode:i,previewElement:l}=mo(e);return Cn("div",{className:"my-6 overflow-hidden rounded-xl border border-border-subtle",children:[Je("div",{className:"flex items-center justify-center p-8 bg-bg-surface",children:l}),!o&&Je("div",{className:"border-t border-border-subtle",children:Je(U,{hideSandbox:r,hideCopy:n,title:a.title,lang:"tsx",highlightedHtml:t,plain:!0,children:i})})]})}import{useState as Vn}from"react";import{Copy as go,Check as Hn,ExternalLink as zn,ChevronDown as In}from"lucide-react";import{jsx as Rn}from"react/jsx-runtime";var Xe=({children:e,className:t,vertical:o=!1})=>Rn("div",{className:m("inline-flex",o?"flex-col":"flex-row",!o&&["[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-l-full","[&>*:last-child]:rounded-r-full"],t?.includes("rounded-xl")&&["[&>*:first-child]:rounded-l-xl","[&>*:last-child]:rounded-r-xl"],t?.includes("rounded-lg")&&["[&>*:first-child]:rounded-l-lg","[&>*:last-child]:rounded-r-lg"]],o&&["[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-t-full","[&>*:last-child]:rounded-b-full"]],t),children:e});import{Check as Pn,ChevronRight as Nn,Dot as Tn}from"lucide-react";import fo from"react";import*as w from"react-aria-components";import*as pe from"react-aria-components";import{jsx as Ke,jsxs as wn}from"react/jsx-runtime";var Ye=({children:e,className:t,showArrow:o,...r})=>wn(pe.Popover,{offset:8,...r,className:pe.composeRenderProps(t,n=>m("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none",n)),children:[o&&Ke(pe.OverlayArrow,{className:"group",children:Ke("svg",{viewBox:"0 0 12 12",className:"block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90","aria-hidden":"true",children:Ke("path",{d:"M0 0 L6 6 L12 0"})})}),e]});import{Fragment as Bn,jsx as H,jsxs as ye}from"react/jsx-runtime";function kn(e){let[t,o]=fo.Children.toArray(e.children).slice(0,2);return ye(w.MenuTrigger,{...e,children:[t,H(Ye,{placement:e.placement,className:"min-w-35",children:o})]})}function Ln(e){let[t,o]=fo.Children.toArray(e.children).slice(0,2);return ye(w.SubmenuTrigger,{...e,children:[t,H(Ye,{offset:-4,crossOffset:-4,children:o})]})}function B(e){return H(w.Menu,{...e,className:w.composeRenderProps(e.className,t=>m("p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75",t))})}function An(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return H(w.MenuItem,{...e,textValue:t,className:w.composeRenderProps(e.className,(o,{isFocused:r,isPressed:n,isDisabled:a})=>m("group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none","text-text-main text-[12px]",{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":r,"bg-bg-surface-elevanted":n,"opacity-40 grayscale pointer-events-none":a},o)),children:w.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:n,hasSubmenu:a})=>ye(Bn,{children:[r!=="none"&&ye("span",{className:"flex items-center size-4 shrink-0 justify-center",children:[n&&r==="multiple"&&H(Pn,{className:"size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),n&&r==="single"&&H(Tn,{className:"size-5 text-primary-500 animate-in zoom-in-50 duration-200"})]}),H("div",{className:"flex flex-row w-full transition-colors items-center gap-2 py-1 px-1",children:o}),a&&H(Nn,{className:"size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function Mn({title:e,...t}){return ye(w.MenuSection,{...t,className:m("flex flex-col gap-0.5",t.className),children:[e&&H(w.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),H(w.Collection,{items:t.items,children:t.children})]})}function Sn(e){return H(w.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}B.Root=B;B.Item=An;B.Trigger=kn;B.SubTrigger=Ln;B.Section=Mn;B.Separator=Sn;import{jsx as En}from"react/jsx-runtime";function L({className:e,variant:t="rect",...o}){return En("div",{className:m("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}import{Separator as Yl}from"react-aria-components";import{ToggleButton as Ql}from"react-aria-components";import{jsx as D,jsxs as Ce}from"react/jsx-runtime";var On=e=>{let[t,o]=Vn(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)},handleOpenRaw:()=>{let a=new Blob([e],{type:"text/plain;charset=utf-8"}),i=URL.createObjectURL(a);window.open(i,"_blank")}}};function bo({content:e,mdxRaw:t,config:o}){let r=t||e||"",{copied:n,handleCopy:a,handleOpenRaw:i}=On(r),l=o!==!1,s=typeof o=="object"&&o.text||"Copy Markdown";return!l||!r?null:D("div",{className:"relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200",children:Ce(Xe,{className:"rounded-xl border border-border-subtle bg-bg-surface/40 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:shadow-lg hover:shadow-primary-500/5 group overflow-hidden",children:[D(te,{variant:"ghost",onPress:a,icon:n?D(Hn,{size:16}):D(go,{size:16}),iconPosition:"left",className:m("px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 border-none shrink-0","text-text-main transition-all duration-300 hover:bg-primary-500/5",n&&"text-emerald-500 hover:bg-emerald-500/5"),children:n?"Copied!":s}),Ce(B.Trigger,{placement:"bottom end",children:[D(te,{variant:"ghost",isIconOnly:!0,icon:D(In,{size:14}),className:m("px-3.5 h-9 border-l border-border-subtle/50 text-text-muted rounded-none bg-transparent shrink-0","transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500")}),Ce(B.Root,{className:"w-52",children:[Ce(B.Item,{onAction:a,children:[D(go,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),D("span",{className:"font-medium text-[0.8125rem]",children:"Copy Markdown"})]}),Ce(B.Item,{onAction:i,children:[D(zn,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),D("span",{className:"font-medium text-[0.8125rem]",children:"View as Markdown"})]})]})]})]})})}import{jsx as A,jsxs as Y}from"react/jsx-runtime";function xo(){return A("div",{className:m("w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in"),children:Y("div",{className:"mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10",children:[Y("div",{className:"flex gap-2",children:[A(L,{className:"h-3 w-16"}),A(L,{className:"h-3 w-24"})]}),A(L,{className:"h-10 w-[60%] sm:h-12"}),Y("div",{className:"space-y-3",children:[A(L,{className:"h-4 w-full"}),A(L,{className:"h-4 w-[95%]"}),A(L,{className:"h-4 w-[40%]"})]}),Y("div",{className:"space-y-6 pt-4",children:[A(L,{className:"h-7 w-32"}),Y("div",{className:"space-y-3",children:[A(L,{className:"h-4 w-full"}),A(L,{className:"h-4 w-[98%]"}),A(L,{className:"h-4 w-[92%]"}),A(L,{className:"h-4 w-[60%]"})]})]}),A(L,{className:"h-32 w-full rounded-lg bg-bg-muted/50"}),Y("div",{className:"space-y-6 pt-4",children:[A(L,{className:"h-7 w-48"}),Y("div",{className:"space-y-3",children:[A(L,{className:"h-4 w-full"}),A(L,{className:"h-4 w-[85%]"})]})]})]})})}import{jsx as G,jsxs as Fn}from"react/jsx-runtime";var me=({level:e,id:t,children:o,...r})=>{let n=`h${e}`;return Fn(n,{id:t,...r,className:"boltdocs-heading",children:[o,t&&G("a",{href:`#${t}`,className:"header-anchor","aria-label":"Anchor",children:G(Dn,{size:16})})]})},ho={...Ze,Loading:xo,h1:e=>G(me,{level:1,...e}),h2:e=>G(me,{level:2,...e}),h3:e=>G(me,{level:3,...e}),h4:e=>G(me,{level:4,...e}),h5:e=>G(me,{level:5,...e}),h6:e=>G(me,{level:6,...e}),pre:e=>G(U,{...e,children:e.children})};import $n from"virtual:boltdocs-mdx-components";import{useLocation as Gn}from"react-router-dom";import{Fragment as jn,jsx as v,jsxs as Be}from"react/jsx-runtime";function _n(){let{currentLocale:e,config:t}=ue();return et(()=>{if(!t.i18n)return;let o=t.i18n.localeConfigs?.[e];document.documentElement.lang=o?.htmlLang||e||"en",document.documentElement.dir=o?.direction||"ltr"},[e,t.i18n]),null}function Un(){let e=Gn(),{config:t}=ue(),o=W(i=>i.setLocale),r=W(i=>i.setVersion),n=W(i=>i.currentLocale),a=W(i=>i.currentVersion);return et(()=>{let i=e.pathname.split("/").filter(Boolean),l=0,s=t.versions?.defaultVersion,c=t.i18n?.defaultLocale;if(i[l]==="docs"&&l++,t.versions&&i.length>l){let d=t.versions.versions.find(p=>p.path===i[l]);d&&(s=d.path,l++)}t.i18n&&i.length>l&&t.i18n.locales[i[l]]?c=i[l]:t.i18n&&i.length===0&&(c=n||t.i18n.defaultLocale),c!==n&&o(c),s!==a&&r(s)},[e.pathname,t,o,r,n,a]),null}function Ro({initialRoutes:e,initialConfig:t,docsDirName:o,modules:r,hot:n,homePage:a,externalPages:i,externalLayout:l,components:s={}}){let[c,d]=vo(e),[p,b]=vo(t),h=i||{},y=l||Co,C=yo(()=>c.filter(x=>!(a&&(x.path==="/"||x.path===""))&&!h[x.path===""?"/":x.path]).map(x=>{let E=Object.keys(r).find(V=>V===`/${o}/${x.filePath}`||V.endsWith(`/${o}/${x.filePath}`)||V.endsWith(`/${o}\\${x.filePath.replace(/\\/g,"/")}`)),F=E?r[E]:null;return{...x,Component:Qe.lazy(async()=>F?await F():{default:He})}}),[c,r,o,a,h]);et(()=>{n&&(n.on("boltdocs:routes-update",x=>{d(x)}),n.on("boltdocs:config-update",x=>{b(x)}))},[n]);let g=yo(()=>({...ho,...$n,...s}),[s]),S=g.Loading;return v(pt,{children:v(vt,{components:g,children:v(Ee.Provider,{value:p,children:v(ut,{children:Be(st,{routes:c,modules:r,children:[v(ft,{}),v(Un,{}),v(_n,{}),Be(Wn,{children:[v(Z,{element:v(bt,{}),children:C.map(x=>v(Z,{path:x.path===""?"/":x.path,element:v(Qe.Suspense,{fallback:v(S,{}),children:v(yt,{Component:x.Component})})},x.path))},"docs-layout"),a&&Be(jn,{children:[v(Z,{path:"/",element:v(y,{children:v(a,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(x=>v(Z,{path:`/${x}`,element:v(y,{children:v(a,{})})},`home-${x}`))]}),Object.entries(h).map(([x,E])=>{let F=x==="/"?"":x;return Be(Qe.Fragment,{children:[v(Z,{path:x,element:v(y,{children:v(E,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(V=>v(Z,{path:`/${V}${F}`,element:v(y,{children:v(E,{})})},`${x}-${V}`))]},x)}),v(Z,{path:"*",element:v(Co,{children:v(He,{})})})]})]})})})})})}import{jsx as tt}from"react/jsx-runtime";async function id(e){let{path:t,routes:o,config:r,modules:n,homePage:a,externalPages:i,docsDirName:l}=e,s={};for(let[d,p]of Object.entries(n))s[d]=()=>Promise.resolve(p);return Jn.renderToString(tt(qn.StrictMode,{children:tt(Xn,{location:t,children:tt(Ro,{initialRoutes:o,initialConfig:r,docsDirName:l,modules:s,homePage:a,externalPages:i})})}))}export{id as render};
|