boltdocs 2.5.5 → 2.6.0

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.
Files changed (166) hide show
  1. package/bin/boltdocs.js +2 -2
  2. package/dist/client/index.cjs +6 -0
  3. package/dist/client/index.d.cts +1560 -0
  4. package/dist/client/index.d.ts +1219 -922
  5. package/dist/client/index.js +6 -1
  6. package/dist/client/theme/neutral.css +428 -0
  7. package/dist/node/cli-entry.cjs +8 -0
  8. package/dist/node/cli-entry.d.cts +2 -0
  9. package/dist/node/cli-entry.d.mts +2 -1
  10. package/dist/node/cli-entry.mjs +7 -5
  11. package/dist/node/index.cjs +6 -0
  12. package/dist/node/index.d.cts +519 -0
  13. package/dist/node/index.d.mts +374 -422
  14. package/dist/node/index.mjs +6 -1
  15. package/dist/node-BgvNl2Ay.mjs +89 -0
  16. package/dist/node-vkbb0MK7.cjs +89 -0
  17. package/dist/package-CR0HF9x3.mjs +6 -0
  18. package/dist/package-Dgmsc_l5.cjs +6 -0
  19. package/dist/search-dialog-3lvKsbVG.js +6 -0
  20. package/dist/search-dialog-DMK5OpgH.cjs +6 -0
  21. package/dist/use-search-C9bxCqfF.js +6 -0
  22. package/dist/use-search-DcfZSunO.cjs +6 -0
  23. package/package.json +26 -25
  24. package/src/client/app/config-context.tsx +38 -5
  25. package/src/client/app/doc-page.tsx +34 -0
  26. package/src/client/app/mdx-component.tsx +2 -3
  27. package/src/client/app/mdx-components-context.tsx +27 -2
  28. package/src/client/app/routes-context.tsx +34 -0
  29. package/src/client/app/scroll-handler.tsx +7 -4
  30. package/src/client/app/theme-context.tsx +71 -67
  31. package/src/client/components/default-layout.tsx +34 -33
  32. package/src/client/components/docs-layout.tsx +1 -2
  33. package/src/client/components/icons-dev.tsx +36 -5
  34. package/src/client/components/mdx/admonition.tsx +11 -27
  35. package/src/client/components/mdx/badge.tsx +1 -1
  36. package/src/client/components/mdx/button.tsx +3 -3
  37. package/src/client/components/mdx/card.tsx +1 -1
  38. package/src/client/components/mdx/code-block.tsx +90 -80
  39. package/src/client/components/mdx/component-preview.tsx +1 -5
  40. package/src/client/components/mdx/component-props.tsx +1 -1
  41. package/src/client/components/mdx/field.tsx +4 -5
  42. package/src/client/components/mdx/file-tree.tsx +6 -3
  43. package/src/client/components/mdx/hooks/use-code-block.ts +2 -2
  44. package/src/client/components/mdx/image.tsx +1 -1
  45. package/src/client/components/mdx/link.tsx +2 -2
  46. package/src/client/components/mdx/list.tsx +1 -1
  47. package/src/client/components/mdx/table.tsx +1 -1
  48. package/src/client/components/mdx/tabs.tsx +1 -1
  49. package/src/client/components/primitives/breadcrumbs.tsx +1 -7
  50. package/src/client/components/primitives/button-group.tsx +1 -1
  51. package/src/client/components/primitives/button.tsx +1 -1
  52. package/src/client/components/primitives/code-block.tsx +113 -0
  53. package/src/client/components/primitives/link.tsx +23 -41
  54. package/src/client/components/primitives/menu.tsx +5 -6
  55. package/src/client/components/primitives/navbar.tsx +6 -18
  56. package/src/client/components/primitives/navigation-menu.tsx +4 -4
  57. package/src/client/components/primitives/on-this-page.tsx +6 -10
  58. package/src/client/components/primitives/page-nav.tsx +4 -9
  59. package/src/client/components/primitives/popover.tsx +1 -1
  60. package/src/client/components/primitives/search-dialog.tsx +3 -6
  61. package/src/client/components/primitives/sidebar.tsx +80 -22
  62. package/src/client/components/primitives/skeleton.tsx +1 -1
  63. package/src/client/components/primitives/tabs.tsx +4 -11
  64. package/src/client/components/primitives/tooltip.tsx +3 -3
  65. package/src/client/components/ui-base/breadcrumbs.tsx +4 -6
  66. package/src/client/components/ui-base/copy-markdown.tsx +2 -7
  67. package/src/client/components/ui-base/github-stars.tsx +2 -2
  68. package/src/client/components/ui-base/head.tsx +58 -51
  69. package/src/client/components/ui-base/loading.tsx +2 -2
  70. package/src/client/components/ui-base/navbar.tsx +12 -14
  71. package/src/client/components/ui-base/not-found.tsx +1 -1
  72. package/src/client/components/ui-base/on-this-page.tsx +6 -6
  73. package/src/client/components/ui-base/page-nav.tsx +4 -8
  74. package/src/client/components/ui-base/search-dialog.tsx +10 -8
  75. package/src/client/components/ui-base/sidebar.tsx +76 -23
  76. package/src/client/components/ui-base/tabs.tsx +9 -8
  77. package/src/client/components/ui-base/theme-toggle.tsx +2 -2
  78. package/src/client/hooks/use-i18n.ts +3 -3
  79. package/src/client/hooks/use-localized-to.ts +1 -1
  80. package/src/client/hooks/use-navbar.ts +8 -6
  81. package/src/client/hooks/use-routes.ts +19 -11
  82. package/src/client/hooks/use-search.ts +1 -1
  83. package/src/client/hooks/use-sidebar.ts +48 -2
  84. package/src/client/hooks/use-tabs.ts +6 -2
  85. package/src/client/hooks/use-version.ts +3 -3
  86. package/src/client/index.ts +22 -22
  87. package/src/client/ssg/boltdocs-shell.tsx +127 -0
  88. package/src/client/ssg/create-routes.tsx +179 -0
  89. package/src/client/ssg/index.ts +3 -0
  90. package/src/client/ssg/mdx-page.tsx +37 -0
  91. package/src/client/store/boltdocs-context.tsx +66 -0
  92. package/src/client/theme/neutral.css +90 -50
  93. package/src/client/types.ts +5 -33
  94. package/src/client/utils/react-to-text.ts +34 -0
  95. package/CHANGELOG.md +0 -98
  96. package/dist/cache-3FOEPC2P.mjs +0 -1
  97. package/dist/chunk-5B5NKOW6.mjs +0 -77
  98. package/dist/chunk-J2PTDWZM.mjs +0 -1
  99. package/dist/chunk-TP5KMRD3.mjs +0 -1
  100. package/dist/chunk-Y4RE5KI7.mjs +0 -1
  101. package/dist/client/index.d.mts +0 -1263
  102. package/dist/client/index.mjs +0 -1
  103. package/dist/client/ssr.d.mts +0 -78
  104. package/dist/client/ssr.d.ts +0 -78
  105. package/dist/client/ssr.js +0 -1
  106. package/dist/client/ssr.mjs +0 -1
  107. package/dist/node/cli-entry.d.ts +0 -1
  108. package/dist/node/cli-entry.js +0 -82
  109. package/dist/node/index.d.ts +0 -567
  110. package/dist/node/index.js +0 -77
  111. package/dist/package-QFIAETHR.mjs +0 -1
  112. package/dist/search-dialog-O6VLVSOA.mjs +0 -1
  113. package/src/client/app/index.tsx +0 -345
  114. package/src/client/app/mdx-page.tsx +0 -15
  115. package/src/client/app/preload.tsx +0 -66
  116. package/src/client/app/router.tsx +0 -30
  117. package/src/client/integrations/codesandbox.ts +0 -179
  118. package/src/client/integrations/index.ts +0 -1
  119. package/src/client/ssr.tsx +0 -65
  120. package/src/client/store/use-boltdocs-store.ts +0 -44
  121. package/src/node/cache.ts +0 -408
  122. package/src/node/cli/build.ts +0 -53
  123. package/src/node/cli/dev.ts +0 -22
  124. package/src/node/cli/doctor.ts +0 -243
  125. package/src/node/cli/index.ts +0 -9
  126. package/src/node/cli/ui.ts +0 -54
  127. package/src/node/cli-entry.ts +0 -24
  128. package/src/node/config.ts +0 -382
  129. package/src/node/errors.ts +0 -44
  130. package/src/node/index.ts +0 -84
  131. package/src/node/mdx/cache.ts +0 -12
  132. package/src/node/mdx/highlighter.ts +0 -47
  133. package/src/node/mdx/index.ts +0 -122
  134. package/src/node/mdx/rehype-shiki.ts +0 -62
  135. package/src/node/mdx/remark-code-meta.ts +0 -35
  136. package/src/node/mdx/remark-shiki.ts +0 -61
  137. package/src/node/plugin/entry.ts +0 -87
  138. package/src/node/plugin/html.ts +0 -99
  139. package/src/node/plugin/index.ts +0 -478
  140. package/src/node/plugin/types.ts +0 -9
  141. package/src/node/plugins/index.ts +0 -17
  142. package/src/node/plugins/plugin-errors.ts +0 -62
  143. package/src/node/plugins/plugin-lifecycle.ts +0 -117
  144. package/src/node/plugins/plugin-sandbox.ts +0 -59
  145. package/src/node/plugins/plugin-store.ts +0 -54
  146. package/src/node/plugins/plugin-types.ts +0 -107
  147. package/src/node/plugins/plugin-validator.ts +0 -105
  148. package/src/node/routes/cache.ts +0 -28
  149. package/src/node/routes/index.ts +0 -293
  150. package/src/node/routes/parser.ts +0 -262
  151. package/src/node/routes/sorter.ts +0 -42
  152. package/src/node/routes/types.ts +0 -61
  153. package/src/node/schema/config.ts +0 -195
  154. package/src/node/schema/frontmatter.ts +0 -17
  155. package/src/node/search/index.ts +0 -55
  156. package/src/node/security/constants/index.ts +0 -10
  157. package/src/node/security/csp.ts +0 -31
  158. package/src/node/security/headers.ts +0 -27
  159. package/src/node/ssg/index.ts +0 -205
  160. package/src/node/ssg/meta.ts +0 -33
  161. package/src/node/ssg/options.ts +0 -15
  162. package/src/node/ssg/robots.ts +0 -53
  163. package/src/node/ssg/sitemap.ts +0 -55
  164. package/src/node/utils.ts +0 -349
  165. package/tsconfig.json +0 -26
  166. package/tsup.config.ts +0 -56
@@ -1 +1,6 @@
1
- "use strict";var Os=Object.create;var Xt=Object.defineProperty;var Ds=Object.getOwnPropertyDescriptor;var zs=Object.getOwnPropertyNames;var $s=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty;var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var vr=(e,t)=>{for(var o in t)Xt(e,o,{get:t[o],enumerable:!0})},Ur=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zs(t))!Fs.call(e,n)&&n!==o&&Xt(e,n,{get:()=>t[n],enumerable:!(r=Ds(t,n))||r.enumerable});return e};var I=(e,t,o)=>(o=e!=null?Os($s(e)):{},Ur(t||!e||!e.__esModule?Xt(o,"default",{value:e,enumerable:!0}):o,e)),Ws=e=>Ur(Xt({},"__esModule",{value:!0}),e);var s=k(()=>{"use strict"});function F(){let e=(0,Jt.use)(yr);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}var Jt,yr,Pe=k(()=>{"use strict";s();Jt=require("react"),yr=(0,Jt.createContext)(null)});function Yt(){return(0,Ue.use)(jr)}function Kr({routes:e,modules:t,children:o}){let r=(0,Ue.useRef)(null),n=(0,Ue.useCallback)(a=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let i=a.split("#")[0].split("?")[0],m=e.find(l=>l.path===i||i==="/"&&l.path==="");if(m?.filePath){let l=Object.keys(t).find(u=>u.endsWith("/"+m.filePath));l&&t[l]().catch(u=>{console.error(`[boltdocs] Failed to preload route ${a}:`,u)})}},100)},[e,t]);return(0,qr.jsx)(jr.Provider,{value:{preload:n,routes:e},children:o})}var Ue,qr,jr,Zt=k(()=>{"use strict";s();Ue=require("react"),qr=require("react/jsx-runtime"),jr=(0,Ue.createContext)({preload:()=>{},routes:[]})});var Xr,Qt,le,Mt=k(()=>{"use strict";s();Xr=require("zustand"),Qt=require("zustand/middleware"),le=(0,Xr.create)()((0,Qt.persist)(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:(0,Qt.createJSONStorage)(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}))});function A(){let{routes:e}=Yt(),t=F(),o=(0,Jr.useLocation)(),r=le(h=>h.currentLocale),n=le(h=>h.currentVersion),a=le(h=>h.hasHydrated),i=e.find(h=>h.path===o.pathname),m=t.i18n?i?.locale||(a?r:void 0)||t.i18n.defaultLocale:void 0,l=t.versions?i?.version||(a?n:void 0)||t.versions.defaultVersion:void 0,u=e.filter(h=>{let S=t.i18n?(h.locale||t.i18n.defaultLocale)===m:!0,R=t.versions?(h.version||t.versions.defaultVersion)===l:!0;if(!(S&&R))return!1;let Q=t.i18n;if(Q){let Ie=!!i?.locale,ie=!!h.locale;if(e.some(be=>be!==h&&be.filePath===h.filePath&&be.version===h.version&&(be.locale||Q.defaultLocale)===(h.locale||Q.defaultLocale))&&Ie!==ie)return!1}return!0}),p=t.i18n?.localeConfigs?.[m]?.label||t.i18n?.locales[m]||m,b=t.versions?.versions.find(h=>h.path===l)?.label||l,x=t.i18n?Object.entries(t.i18n.locales).map(([h,S])=>{let R=t.i18n?.localeConfigs?.[h];return{key:h,label:R?.label||S,isCurrent:h===m}}):[],v=t.versions?t.versions.versions.map(h=>({key:h.path,label:h.label,isCurrent:h.path===l})):[];return{routes:u,allRoutes:e,currentRoute:i,currentLocale:m,currentLocaleLabel:p,availableLocales:x,currentVersion:l,currentVersionLabel:b,availableVersions:v,config:t}}var Jr,ce=k(()=>{"use strict";s();Jr=require("react-router-dom");Pe();Zt();Mt()});function tt(e){let t=F(),{currentLocale:o,currentVersion:r}=A();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"),m=e.split("/").filter(Boolean),l=0;m[l]==="docs"&&l++,a&&m.length>l&&a.versions.find(b=>b.path===m[l])&&l++,n&&m.length>l&&n.locales[m[l]]&&l++;let u=m.slice(l),d=[];i&&(d.push("docs"),a&&r&&d.push(r)),n&&o&&o!==n.defaultLocale&&d.push(o),d.push(...u);let p=`/${d.join("/")}`;return p.length>1&&p.endsWith("/")?p.slice(0,-1):p||"/"}var eo=k(()=>{"use strict";s();Pe();ce()});function c(...e){return(0,Zr.twMerge)((0,Yr.clsx)(e))}var Yr,Zr,N=k(()=>{"use strict";s();Yr=require("clsx"),Zr=require("tailwind-merge")});var Cr,Qr,en,Pr,W,Rr,ot=k(()=>{"use strict";s();Cr=I(require("react")),Qr=require("react-aria-components"),en=require("react-router-dom");eo();Zt();N();Pr=require("react/jsx-runtime"),W=Cr.default.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:n,onFocus:a,...i}=e,m=tt(o??""),{preload:l}=Yt();return(0,Pr.jsx)(Qr.Link,{...i,ref:t,href:m,onMouseEnter:p=>{n?.(p),r==="hover"&&typeof m=="string"&&m.startsWith("/")&&l(m)},onFocus:p=>{a?.(p),r==="hover"&&typeof m=="string"&&m.startsWith("/")&&l(m)}})});W.displayName="Link";Rr=Cr.default.forwardRef((e,t)=>{let{href:o,end:r=!1,className:n,children:a,...i}=e,m=(0,en.useLocation)(),l=tt(o??""),u=r?m.pathname===l:m.pathname.startsWith(l),d=typeof n=="function"?n({isActive:u}):c(n,u&&"active"),p=typeof a=="function"?a({isActive:u}):a;return(0,Pr.jsx)(W,{...i,ref:t,href:o,className:d,children:p})});Rr.displayName="NavLink"});var no,Cn,we,ro,me,Vt=k(()=>{"use strict";s();no=I(require("react-aria-components"));N();Cn=require("class-variance-authority"),we=require("react/jsx-runtime"),ro=(0,Cn.cva)("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"}}),me=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:n,className:a,variant:i,size:m,rounded:l,iconSize:u,disabled:d,...p})=>{let f=r||!n&&!!t,b=f?(0,we.jsx)("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):(0,we.jsxs)(we.Fragment,{children:[t&&o==="left"&&(0,we.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),(0,we.jsx)("span",{className:"flex items-center",children:n}),t&&o==="right"&&(0,we.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?(0,we.jsx)(no.Link,{href:e,className:c(ro({variant:i,size:m,rounded:l,iconSize:f?u:void 0,disabled:d}),a),...p,children:b}):(0,we.jsx)(no.Button,{className:c(ro({variant:i,size:m,rounded:l,iconSize:f?u:void 0,disabled:d}),a),...p,children:b})}});function pe(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var C,ao,wn,Tn,Ln,io,lo,co,mo,po,ct,mt,pt,dt,Ht=k(()=>{"use strict";s();C=require("react/jsx-runtime");ao=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...pe(e),children:[(0,C.jsx)("title",{children:"GitHub"}),(0,C.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]}),wn=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...pe(e),children:[(0,C.jsx)("title",{children:"Discord"}),(0,C.jsx)("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z"})]}),Tn=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...pe(e),children:[(0,C.jsx)("title",{children:"X"}),(0,C.jsx)("path",{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"})]}),Ln=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...pe(e),children:[(0,C.jsx)("title",{children:"Bluesky"}),(0,C.jsx)("path",{d:"M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026"})]}),io=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...pe(e),children:[(0,C.jsx)("title",{children:"TypeScript"}),(0,C.jsx)("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"})]}),lo=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...pe(e),children:[(0,C.jsx)("title",{children:"JavaScript"}),(0,C.jsx)("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"})]}),co=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...pe(e),children:[(0,C.jsx)("title",{children:"JSON"}),(0,C.jsx)("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"})]}),mo=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...pe(e),children:[(0,C.jsx)("title",{children:"CSS"}),(0,C.jsx)("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"})]}),po=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...pe(e),children:[(0,C.jsx)("title",{children:"HTML"}),(0,C.jsx)("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"})]}),ct=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...pe(e),children:[(0,C.jsx)("title",{children:"React"}),(0,C.jsx)("path",{fill:"#0E8ADC",d:"M12 13.677a1.677 1.677 0 100-3.354 1.677 1.677 0 000 3.354z"}),(0,C.jsx)("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"}),(0,C.jsx)("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"}),(0,C.jsx)("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"})]}),mt=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...pe(e),children:[(0,C.jsx)("title",{children:"Markdown"}),(0,C.jsx)("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"})]}),pt=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...pe(e),children:[(0,C.jsx)("title",{children:"Shell"}),(0,C.jsx)("path",{stroke:"#14B8A6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4.336 17l6-6-6-6M12.336 19h8"})]}),dt=e=>(0,C.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...pe(e),children:[(0,C.jsx)("title",{children:"YAML"}),(0,C.jsx)("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"})]})});var ut,xe,kn,rt,wr=k(()=>{"use strict";s();ut=I(require("react-aria-components"));N();xe=require("react/jsx-runtime"),kn=({className:e,children:t,...o})=>(0,xe.jsx)(ut.Tooltip,{...o,offset:8,className:r=>c("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=>(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(ut.OverlayArrow,{children:(0,xe.jsxs)("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:[(0,xe.jsx)("title",{children:"Arrow"}),(0,xe.jsx)("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),rt=({content:e,children:t,delay:o=500,closeDelay:r=0,...n})=>(0,xe.jsxs)(ut.TooltipTrigger,{delay:o,closeDelay:r,children:[t,(0,xe.jsx)(kn,{...n,children:e})]});rt.Root=rt;rt.Content=kn});var Oo,Fn,qe,w,_,sa,aa,ia,la,ca,ma,pa,da,ua,fa,ga,ha,ba,ee,Ft=k(()=>{"use strict";s();Oo=require("react");Do();Fn=require("react-aria-components"),qe=require("lucide-react");Ht();w=require("react/jsx-runtime"),_=({children:e,className:t,...o})=>(0,w.jsx)("header",{className:c("boltdocs-navbar sticky top-0 z-50 w-full border-b border-border-subtle bg-bg-main/80 backdrop-blur-md",t),...o,children:e}),sa=({children:e,className:t})=>(0,w.jsx)("div",{className:c("mx-auto flex lg:h-navbar max-w-(--breakpoint-3xl) items-center justify-between px-4 md:px-6",t),children:e}),aa=({children:e,className:t})=>(0,w.jsx)("div",{className:c("flex flex-1 items-center justify-start gap-4 min-w-0",t),children:e}),ia=({children:e,className:t})=>(0,w.jsx)("div",{className:c("flex flex-1 items-center justify-end gap-2 md:gap-4 min-w-0",t),children:e}),la=({children:e,className:t})=>(0,w.jsx)("div",{className:c("hidden lg:flex flex-1 justify-center items-center gap-4 px-4 min-w-0 w-full",t),children:e}),ca=({src:e,alt:t,width:o=24,height:r=24,className:n})=>(0,w.jsx)(W,{href:"/",className:c("flex items-center gap-2 shrink-0 outline-none",n),children:e?(0,w.jsx)("img",{src:e,alt:t,width:o,height:r,className:"h-6 w-6 object-contain"}):null}),ma=({children:e,className:t})=>(0,w.jsx)(W,{href:"/",children:(0,w.jsx)("span",{className:c("text-lg font-bold tracking-tight hidden sm:inline-block",t),children:e})}),pa=({children:e,className:t})=>(0,w.jsx)("nav",{className:c("hidden md:flex items-center gap-6 text-sm font-medium",t),children:e}),da=({label:e,href:t,active:o,to:r,className:n})=>(0,w.jsxs)(W,{href:t,target:r==="external"?"_blank":void 0,className:c("transition-colors outline-none font-medium focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm",{"text-primary-500":o,"text-text-muted hover:text-text-main":!o},n),children:[e,r==="external"&&(0,w.jsx)("span",{className:"ml-1 inline-block",children:(0,w.jsx)(qe.ExternalLink,{size:12})})]}),ua=({className:e,onPress:t})=>{let[o,r]=(0,Oo.useState)(!1),n=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);return(0,Oo.useEffect)(()=>{r(!0)},[]),(0,w.jsxs)(Fn.Button,{onPress:t,className:c("flex items-center gap-2 rounded-full border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-muted outline-none cursor-pointer","transition-all duration-200 hover:border-border-strong hover:text-text-main hover:bg-bg-muted hover:shadow-sm active:scale-[0.98]","focus-visible:ring-2 focus-visible:ring-primary-500/30","w-full max-w-[720px] justify-between",e),children:[(0,w.jsxs)("div",{className:"flex items-center gap-2",children:[(0,w.jsx)(qe.Search,{size:16}),(0,w.jsx)("span",{className:"hidden sm:inline-block",children:"Search docs..."})]}),(0,w.jsxs)("div",{className:"hidden sm:flex items-center gap-1 pointer-events-none select-none",children:[(0,w.jsx)("kbd",{className:"flex h-5 items-center justify-center rounded border border-border-subtle bg-bg-main px-1.5 font-mono text-[10px] font-medium",children:n?"\u2318":"Ctrl"}),(0,w.jsx)("kbd",{className:"flex h-5 w-5 items-center justify-center rounded border border-border-subtle bg-bg-main font-mono text-[10px] font-medium",children:"K"})]})]})},fa=({className:e,theme:t,onThemeChange:o})=>(0,w.jsx)(Mr.ToggleButton,{isSelected:t==="dark",onChange:o,className:c("rounded-md p-2 text-text-muted outline-none cursor-pointer","transition-all duration-300 hover:bg-bg-surface hover:text-text-main hover:rotate-12 active:scale-90","focus-visible:ring-2 focus-visible:ring-primary-500/30",e),"aria-label":"Toggle theme",children:t==="dark"?(0,w.jsx)(qe.Sun,{size:20}):(0,w.jsx)(qe.Moon,{size:20})}),ga=({name:e})=>{if(e==="github")return(0,w.jsx)(ao,{});if(e==="discord")return(0,w.jsx)(wn,{});if(e==="x")return(0,w.jsx)(Tn,{});if(e==="bluesky")return(0,w.jsx)(Ln,{})},ha=({icon:e,link:t,className:o})=>(0,w.jsx)(W,{href:t,target:"_blank",rel:"noopener noreferrer",className:c("rounded-md p-2 text-text-muted outline-none transition-colors","hover:bg-bg-surface hover:text-text-main","focus-visible:ring-2 focus-visible:ring-primary-500/30",o),children:(0,w.jsx)(ga,{name:e})}),ba=({className:e})=>(0,w.jsx)(Br.Separator,{orientation:"vertical",className:c("h-6 w-px bg-border-subtle mx-1",e)});_.Root=_;_.Left=aa;_.Right=ia;_.Center=la;_.Logo=ca;_.Title=ma;_.Links=pa;_.Link=da;_.SearchTrigger=ua;_.Theme=fa;_.Socials=ha;_.Split=ba;_.Content=sa;ee=_});var Ve,Wn,te,nt,va,ya,Ca,Er=k(()=>{"use strict";s();Ve=I(require("react-aria-components")),Wn=require("lucide-react");N();te=require("react/jsx-runtime"),nt=({children:e,className:t,...o})=>(0,te.jsx)("nav",{className:c("relative flex items-center",t),...o,children:e}),va=({children:e,className:t})=>(0,te.jsx)("div",{className:c("flex list-none items-center gap-1",t),children:e}),ya=({children:e,label:t,className:o})=>(0,te.jsxs)(Ve.MenuTrigger,{children:[(0,te.jsxs)(Ve.Button,{className:c("flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium outline-none transition-colors cursor-pointer","text-text-muted hover:bg-bg-surface hover:text-text-main","focus-visible:ring-2 focus-visible:ring-primary-500/30",o),children:[t,(0,te.jsx)(Wn.ChevronDown,{size:14,className:"transition-transform"})]}),(0,te.jsx)(Ve.Popover,{placement:"bottom start",className:"entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95 fill-mode-forwards",children:(0,te.jsx)(Ve.Menu,{className:"w-56 outline-none rounded-xl border border-border-subtle bg-bg-surface p-2 shadow-xl ring-1 ring-border-strong/5",children:e})})]}),Ca=({label:e,href:t,description:o,className:r,children:n,...a})=>(0,te.jsx)(Ve.MenuItem,{href:t,className:c("block rounded-lg px-3 py-2 text-sm outline-none cursor-pointer transition-colors","hover:bg-bg-muted focus:bg-bg-muted",r),...a,children:n||(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)("div",{className:"font-semibold text-text-main",children:e}),o&&(0,te.jsx)("div",{className:"text-xs text-text-muted line-clamp-1 mt-0.5",children:o})]})});nt.Root=nt;nt.List=va;nt.Item=ya;nt.Link=Ca});var X,Xe,B,U,Pa,Na,wa,Ta,La,ka,Sa,zo=k(()=>{"use strict";s();X=I(require("react-aria-components")),Xe=require("lucide-react");N();B=require("react/jsx-runtime"),U=({children:e,isOpen:t,onOpenChange:o,className:r})=>(0,B.jsx)(X.ModalOverlay,{isOpen:t,onOpenChange:o,isDismissable:!0,className:c("fixed inset-0 z-100 bg-black/40 backdrop-blur-sm px-4 py-4 sm:py-20","entering:animate-in entering:fade-in exiting:animate-out exiting:fade-out"),children:(0,B.jsx)(X.Modal,{className:c("mx-auto w-full max-w-2xl overflow-hidden rounded-xl border border-border-subtle bg-bg-surface shadow-2xl ring-1 ring-black/5 outline-none","entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95",r),children:(0,B.jsx)(X.Dialog,{className:"flex flex-col max-h-[70vh] focus:outline-none",children:e})})}),Pa=({children:e,className:t,onSelectionChange:o,...r})=>(0,B.jsx)("div",{className:t,children:(0,B.jsx)(X.Autocomplete,{...r,onSelectionChange:o,className:"flex flex-col min-h-0",children:e})}),Na=({className:e,...t})=>(0,B.jsxs)(X.SearchField,{className:"flex items-center gap-3 border-b border-border-subtle px-4 py-4",autoFocus:!0,children:[(0,B.jsx)(Xe.Search,{className:"h-5 w-5 text-text-muted"}),(0,B.jsx)(X.Input,{...t,className:c("w-full bg-transparent text-lg text-text-main placeholder-text-muted outline-none",e),placeholder:"Search documentation..."}),(0,B.jsx)("div",{className:"flex items-center gap-1.5 rounded-md border border-border-subtle bg-bg-main px-1.5 py-1 text-[10px] font-medium text-text-muted",children:(0,B.jsx)("kbd",{className:"font-sans",children:"ESC"})})]}),wa=({children:e,className:t,...o})=>(0,B.jsx)(X.ListBox,{...o,className:c("flex-1 overflow-y-auto p-2 outline-none",t),children:e}),Ta=({children:e,className:t,...o})=>(0,B.jsx)(X.ListBoxItem,{...o,className:c("group flex items-center gap-3 rounded-lg p-3 text-left outline-none cursor-pointer transition-colors","text-text-muted hover:bg-bg-main hover:text-text-main focus:bg-primary-500 focus:text-white selected:bg-primary-500 selected:text-white",t),children:r=>(0,B.jsxs)(B.Fragment,{children:[e,(r.isFocused||r.isSelected)&&(0,B.jsxs)("div",{className:"ml-auto opacity-50 flex items-center gap-1",children:[(0,B.jsx)("span",{className:"text-[10px]",children:"Select"}),(0,B.jsx)(Xe.CornerDownLeft,{size:10})]})]})}),La=({isHeading:e,className:t})=>(0,B.jsx)("div",{className:c("shrink-0",t),children:e?(0,B.jsx)(Xe.Hash,{size:18}):(0,B.jsx)(Xe.FileText,{size:18})}),ka=({children:e,className:t})=>(0,B.jsx)("span",{className:c("block font-medium truncate flex-1 text-sm",t),children:e}),Sa=({children:e,className:t})=>(0,B.jsx)("span",{className:c("ml-2 text-xs opacity-70 truncate hidden sm:inline group-focus:opacity-100",t),children:e});U.Root=U;U.Autocomplete=Pa;U.Input=Na;U.List=wa;U.Item=Object.assign(Ta,{Icon:La,Title:ka,Bio:Sa})});function Gn(e,t){let o=(0,$o.useRef)(e);(0,$o.useEffect)(()=>{o.current!==e&&(t(e),o.current=e)},[e,t])}var $o,_n=k(()=>{"use strict";s();$o=require("react")});function Vr(e){return e.startsWith("#")?e.slice(1):null}var Fo,Un=k(()=>{"use strict";s();Fo=class{items=[];single=!1;observer=null;onChange;callback(t){if(t.length===0)return;for(let r of t){let n=this.items.find(a=>a.id===r.target.id);if(n){n.active=r.isIntersecting;let a=100;n.fallback=!r.isIntersecting&&r.boundingClientRect.top<a}}let o=-1;for(let r=this.items.length-1;r>=0;r--)if(this.items[r].fallback){o=r;break}o===-1&&this.items.length>0&&(o=0),this.items=this.items.map((r,n)=>({...r,active:n===o,t:n===o?Date.now():r.t})),this.onChange?.()}setItems(t){let o=this.observer;if(o)for(let r of this.items){let n=document.getElementById(r.id);n&&o.unobserve(n)}this.items=[];for(let r of t){let n=Vr(r.url);n&&this.items.push({id:n,active:!1,fallback:!1,t:0,original:r})}this.watchItems(),typeof window<"u"&&(setTimeout(()=>this.watchItems(),100),setTimeout(()=>this.watchItems(),500),setTimeout(()=>this.watchItems(),1e3)),this.onChange?.()}watch(t){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),t),this.watchItems())}watchItems(){if(this.observer)for(let t of this.items){let o=document.getElementById(t.id);o&&this.observer.observe(o)}}unwatch(){this.observer?.disconnect(),this.observer=null}}});function Wo(){let e=(0,V.use)(Hr);if(!e)throw new Error("Component must be used under the <AnchorProvider /> component.");return e}function Go(){let e=Wo();return(0,V.useMemo)(()=>{let t;for(let o of e)o.active&&(!t||o.t>t.t)&&(t=o);return t?.id},[e])}function qn(){let e=Wo();return(0,V.useMemo)(()=>{let t=[];for(let o of e)o.active&&t.push(o.id);return t},[e])}function _o({containerRef:e,children:t}){return(0,He.jsx)(Kn.Provider,{value:e,children:t})}function Uo({toc:e,single:t=!1,children:o}){let r=(0,V.useMemo)(()=>new Fo,[]),[n,a]=(0,V.useState)(r.items);return r.single=t,(0,V.useEffect)(()=>{r.setItems(e)},[r,e]),(0,V.useEffect)(()=>(r.watch({rootMargin:"-100px 0% 0% 0%",threshold:0}),r.onChange=()=>a([...r.items]),()=>{r.unwatch()}),[r]),(0,He.jsx)(Hr.Provider,{value:n,children:o})}var V,jn,He,Hr,Kn,j,Aa,Xn,Ba,Ma,Ea,Va,jo=k(()=>{"use strict";s();V=require("react"),jn=I(require("scroll-into-view-if-needed"));N();_n();Un();He=require("react/jsx-runtime"),Hr=(0,V.createContext)(null),Kn=(0,V.createContext)(null);j=({children:e,className:t})=>(0,He.jsx)("nav",{className:c("sticky top-navbar hidden xl:flex flex-col shrink-0","w-toc","py-8 pl-6 pr-4",t),children:e}),Aa=({children:e,className:t,...o})=>(0,He.jsx)("div",{className:c("mb-4 text-xs font-bold uppercase tracking-wider text-text-main",t),...o,children:e}),Xn=({children:e,className:t,ref:o,...r})=>{let n=(0,V.useRef)(null);return(0,V.useImperativeHandle)(o,()=>n.current),(0,He.jsx)("div",{ref:n,className:c("relative overflow-y-auto boltdocs-otp-content",t),...r,children:e})};Xn.displayName="OnThisPageContent";Ba=({children:e,className:t})=>(0,He.jsx)("ul",{className:c("relative space-y-1 text-sm border-l border-border-subtle",t),children:e}),Ma=({level:e,children:t,className:o})=>(0,He.jsx)("li",{className:c(e===3&&"pl-3",o),children:t}),Ea=({children:e,href:t,active:o,onClick:r,className:n})=>{let a=(0,V.use)(Hr),i=(0,V.use)(Kn),m=t?Vr(t):null,l=(0,V.useRef)(null),[u,d]=(0,V.useState)(o);return Gn(m&&a?a.find(p=>p.id===m)?.active:null,p=>{p!==null&&p!==u&&(d(!!p),p&&l.current&&i?.current&&(0,jn.default)(l.current,{behavior:"smooth",block:"center",inline:"center",scrollMode:"if-needed",boundary:i.current}))}),(0,V.useEffect)(()=>{o!==void 0&&d(o)},[o]),(0,He.jsx)("a",{ref:l,href:t,onClick:r,"data-active":u,className:c("block py-1 pl-4 text-[13px] outline-none transition-colors hover:text-text-main",u?"text-primary-500 font-medium":"text-text-muted",n),children:e})},Va=({style:e,className:t})=>(0,He.jsx)("div",{className:c("absolute -left-px w-0.5 rounded-full bg-primary-500 transition-all duration-300",t),style:e});j.Root=j;j.Header=Aa;j.Content=Xn;j.List=Ba;j.Item=Ma;j.Link=Ea;j.Indicator=Va});var Jn,Ko,ye,J,Oa,Da,za,$a,qo=k(()=>{"use strict";s();Jn=I(require("react-aria-components")),Ko=require("lucide-react");N();ye=require("react/jsx-runtime"),J=({children:e,className:t})=>(0,ye.jsx)("nav",{className:c("grid grid-cols-1 sm:grid-cols-2 gap-4 mt-12 pt-8 border-t border-border-subtle",t),children:e}),Oa=({children:e,to:t,direction:o,className:r})=>{let n=o==="next";return(0,ye.jsxs)(Jn.Link,{href:t,className:c("flex group items-center p-4 rounded-xl border border-border-subtle bg-bg-surface outline-none","transition-all hover:bg-bg-main hover:border-primary-500 hover:shadow-lg","focus-visible:ring-2 focus-visible:ring-primary-500/30",n?"text-right justify-end":"text-left justify-start",r),children:[!n&&(0,ye.jsx)(Ko.ChevronLeft,{className:"mr-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:-translate-x-1"}),(0,ye.jsx)("div",{className:"flex flex-col gap-1 flex-1",children:e}),n&&(0,ye.jsx)(Ko.ChevronRight,{className:"ml-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:translate-x-1"})]})},Da=({children:e,className:t})=>(0,ye.jsx)("span",{className:c("text-xs font-medium uppercase tracking-wider text-text-muted",t),children:e}),za=({children:e,className:t})=>(0,ye.jsx)("span",{className:c("text-base font-bold text-text-main truncate",t),children:e}),$a=({children:e})=>(0,ye.jsx)(ye.Fragment,{children:e});J.Root=J;J.Link=Oa;J.Title=Da;J.Description=za;J.Icon=$a});var Ct,ke,Wa,Ga,_a,Ua,Xo=k(()=>{"use strict";s();N();Ct=require("react/jsx-runtime"),ke=({children:e,className:t="",...o})=>(0,Ct.jsx)("div",{className:c("w-full",t),...o,children:e}),Wa=({children:e,className:t=""})=>(0,Ct.jsx)("div",{role:"tablist",className:c("relative flex flex-row items-center border-b border-border-subtle",t),children:e}),Ga=({children:e,id:t,selected:o,className:r="",...n})=>(0,Ct.jsx)("button",{role:"tab","aria-selected":o,className:c("flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors outline-none cursor-pointer bg-transparent border-none",o?"text-primary-500":"text-text-muted hover:text-text-main",r),...n,children:e}),_a=({children:e,className:t=""})=>(0,Ct.jsx)("div",{className:c("p-4 outline-none",t),children:e}),Ua=({className:e="",style:t})=>(0,Ct.jsx)("div",{className:c("absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300",e),style:t});ke.Root=ke;ke.List=Wa;ke.Item=Ga;ke.Content=_a;ke.Indicator=Ua});var Yn,Zn,Y,Ka,he,qa,Xa,Ja,Jo=k(()=>{"use strict";s();ot();Yn=I(require("react-aria-components")),Zn=require("lucide-react");N();Y=require("react/jsx-runtime"),Ka=({badge:e})=>{let t={new:"bg-primary-500/20 text-primary-500",updated:"bg-gray-500/20 text-gray-500",deprecated:"bg-red-500/20 text-red-500"};if(typeof e=="object"&&e?.expires){let r=new Date(e.expires),n=new Date,a=r.getTime()-n.getTime();if(Math.ceil(a/(1e3*60*60*24))===0)return null}let o=typeof e=="string"?e:e?.text;return(0,Y.jsx)("span",{className:c("ml-auto flex h-4.5 items-center rounded-full text-[9px] font-medium px-1.5 py-0.5 text-center whitespace-nowrap",t[o]||t.new),children:o})},he=({children:e,className:t})=>(0,Y.jsx)("aside",{className:c("boltdocs-sidebar sticky top-navbar hidden lg:flex flex-col shrink-0","w-sidebar h-full","overflow-y-auto border-r border-border-subtle bg-bg-main","py-6 px-4",t),children:(0,Y.jsx)("nav",{className:"flex-1 space-y-6",children:e})}),qa=({children:e,title:t,icon:o,isOpen:r=!0,onToggle:n,className:a})=>(0,Y.jsxs)("div",{className:c("space-y-1",a),children:[t&&(0,Y.jsxs)(Yn.Button,{onPress:n,className:c("flex w-full items-center justify-between px-2 py-1.5 text-xs font-bold uppercase tracking-wider outline-none cursor-pointer","text-text-muted hover:text-text-main transition-colors","focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md"),children:[(0,Y.jsxs)("div",{className:"flex items-center gap-2",children:[o&&(0,Y.jsx)(o,{size:14}),t]}),(0,Y.jsx)(Zn.ChevronRight,{size:14,className:c("transition-transform duration-200",r&&"rotate-90")})]}),r&&(0,Y.jsx)("div",{className:"space-y-0.5",children:e})]}),Xa=({children:e,className:t})=>(0,Y.jsx)("div",{className:c(t),children:e}),Ja=({label:e,href:t,active:o,icon:r,badge:n,className:a})=>(0,Y.jsxs)(W,{href:t,className:c("group flex items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none","transition-all duration-200 ease-in-out","focus-visible:ring-2 focus-visible:ring-primary-500/30",o?"bg-primary-500/10 text-primary-500 font-medium":"text-text-muted hover:bg-bg-surface hover:text-text-main hover:translate-x-1",a),children:[r&&(0,Y.jsx)(r,{size:16,className:c(o?"text-primary-500":"text-text-muted group-hover:text-text-main")}),(0,Y.jsx)("span",{className:"truncate",children:e}),n&&(0,Y.jsx)(Ka,{badge:n})]});he.Root=he;he.Group=qa;he.GroupItem=Xa;he.Link=Ja});var Rt,Qn,Wt,ae,Za,Qa,ei,Yo=k(()=>{"use strict";s();Rt=require("react-aria-components"),Qn=require("lucide-react");N();Wt=require("react/jsx-runtime"),ae=({children:e,className:t,...o})=>(0,Wt.jsx)(Rt.Breadcrumbs,{className:c("flex items-center gap-1.5 pl-0! mb-0 text-sm text-text-muted",t),...o,children:e}),Za=({children:e,className:t,...o})=>(0,Wt.jsx)(Rt.Breadcrumb,{className:c("flex items-center mb-0 gap-1.5",t),...o,children:e}),Qa=({children:e,href:t,className:o,...r})=>(0,Wt.jsx)(Rt.Link,{href:t,className:c("transition-colors outline-none hover:text-text-main focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm","current:font-medium current:text-text-main current:pointer-events-none cursor-pointer",o),...r,children:e}),ei=({className:e})=>(0,Wt.jsx)(Qn.ChevronRight,{size:14,className:c("shrink-0 text-text-dim",e)});ae.Root=ae;ae.Item=Za;ae.Link=Qa;ae.Separator=ei});var es,Gt,Or=k(()=>{"use strict";s();N();es=require("react/jsx-runtime"),Gt=({children:e,className:t,vertical:o=!1})=>(0,es.jsx)("div",{className:c("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})});var Nt,Pt,_t,Dr=k(()=>{"use strict";"use client";s();Nt=I(require("react-aria-components"));N();Pt=require("react/jsx-runtime"),_t=({children:e,className:t,showArrow:o,...r})=>(0,Pt.jsxs)(Nt.Popover,{offset:8,...r,className:Nt.composeRenderProps(t,n=>c("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&&(0,Pt.jsx)(Nt.OverlayArrow,{className:"group",children:(0,Pt.jsx)("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:(0,Pt.jsx)("path",{d:"M0 0 L6 6 L12 0"})})}),e]})});function oi(e){let[t,o]=zr.default.Children.toArray(e.children).slice(0,2);return(0,z.jsxs)($.MenuTrigger,{...e,children:[t,(0,z.jsx)(_t,{placement:e.placement,className:"min-w-35",children:o})]})}function ri(e){let[t,o]=zr.default.Children.toArray(e.children).slice(0,2);return(0,z.jsxs)($.SubmenuTrigger,{...e,children:[t,(0,z.jsx)(_t,{offset:-4,crossOffset:-4,children:o})]})}function T(e){return(0,z.jsx)($.Menu,{...e,className:$.composeRenderProps(e.className,t=>c("p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75",t))})}function ni(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return(0,z.jsx)($.MenuItem,{...e,textValue:t,className:$.composeRenderProps(e.className,(o,{isFocused:r,isPressed:n,isDisabled:a})=>c("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:$.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:n,hasSubmenu:a})=>(0,z.jsxs)(z.Fragment,{children:[r!=="none"&&(0,z.jsxs)("span",{className:"flex items-center size-4 shrink-0 justify-center",children:[n&&r==="multiple"&&(0,z.jsx)(wt.Check,{className:"size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),n&&r==="single"&&(0,z.jsx)(wt.Dot,{className:"size-5 text-primary-500 animate-in zoom-in-50 duration-200"})]}),(0,z.jsx)("div",{className:"flex flex-row w-full transition-colors items-center gap-2 py-1 px-1",children:o}),a&&(0,z.jsx)(wt.ChevronRight,{className:"size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function si({title:e,...t}){return(0,z.jsxs)($.MenuSection,{...t,className:c("flex flex-col gap-0.5",t.className),children:[e&&(0,z.jsx)($.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),(0,z.jsx)($.Collection,{items:t.items,children:t.children})]})}function ai(e){return(0,z.jsx)($.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}var wt,zr,$,z,Ut=k(()=>{"use strict";"use client";s();wt=require("lucide-react"),zr=I(require("react")),$=I(require("react-aria-components"));Dr();N();z=require("react/jsx-runtime");T.Root=T;T.Item=ni;T.Trigger=oi;T.SubTrigger=ri;T.Section=si;T.Separator=ai});function G({className:e,variant:t="rect",...o}){return(0,ts.jsx)("div",{className:c("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}var ts,$r=k(()=>{"use strict";s();N();ts=require("react/jsx-runtime")});var Br,Mr,Do=k(()=>{"use strict";s();Ft();Er();zo();jo();qo();Xo();Jo();Yo();Vt();Or();Ut();ot();Br=require("react-aria-components"),Mr=require("react-aria-components");N()});function tr(e){let{currentLocale:t,currentVersion:o}=A(),[r,n]=(0,Ye.useState)(!1),[a,i]=(0,Ye.useState)(""),[m,l]=(0,Ye.useState)(null);(0,Ye.useEffect)(()=>{if(!r||m)return;let d=new ps.Index({preset:"match",tokenize:"full",resolution:9,cache:!0});for(let p of Gr.default)d.add(p.id,`${p.title} ${p.content}`);l(d)},[r,m]);let u=(0,Ye.useMemo)(()=>{if(!a)return e.filter(b=>{let x=!t||b.locale===t,v=!o||b.version===o;return x&&v}).slice(0,10).map(b=>({id:b.path,title:b.title,path:b.path,bio:b.description||"",groupTitle:b.groupTitle}));if(!m)return[];let d=m.search(a,{limit:20,suggest:!0}),p=[],f=new Set;for(let b of d){let x=Gr.default.find(S=>S.id===b);if(!x)continue;let v=!t||x.locale===t,h=!o||x.version===o;!v||!h||f.has(x.url)||(f.add(x.url),p.push({id:x.url,title:x.title,path:x.url,bio:x.display,groupTitle:x.display.split(" > ")[0],isHeading:x.url.includes("#")}))}return p.slice(0,10)},[a,m,t,o,e]);return{isOpen:r,setIsOpen:n,query:a,setQuery:i,list:u,input:{value:a,onChange:d=>i(d.target.value)}}}var Ye,ps,Gr,_r=k(()=>{"use strict";s();Ye=require("react"),ps=require("flexsearch");ce();Gr=I(require("virtual:boltdocs-search"))});var Ns={};vr(Ns,{SearchDialog:()=>yi});function yi({routes:e}){let{isOpen:t,setIsOpen:o,query:r,setQuery:n,list:a}=tr(e),i=(0,Ps.useNavigate)();(0,pr.useEffect)(()=>{let l=u=>{(/Mac/.test(navigator.userAgent)?u.metaKey:u.ctrlKey)&&(u.key==="k"||u.key==="j")&&(u.preventDefault(),o(f=>!f))};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[o]);let m=(0,pr.useCallback)(l=>{let u=String(l);if(o(!1),u.includes("#")){let[d,p]=u.split("#");i(d),setTimeout(()=>{let f=document.getElementById(p);f&&f.scrollIntoView({behavior:"smooth"})},100)}else i(u)},[i,o]);return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(ee.SearchTrigger,{onPress:()=>o(!0)}),(0,re.jsx)(U.Root,{isOpen:t,onOpenChange:o,children:(0,re.jsxs)(U.Autocomplete,{onSelectionChange:m,children:[(0,re.jsx)(U.Input,{value:r,onChange:l=>n(l.target.value)}),(0,re.jsx)(U.List,{items:a,children:l=>(0,re.jsxs)(U.Item,{onPress:()=>m(l.id),textValue:l.title,children:[(0,re.jsx)(U.Item.Icon,{isHeading:l.isHeading}),(0,re.jsxs)("div",{className:"flex flex-col justify-center gap-0.5",children:[(0,re.jsx)(U.Item.Title,{children:l.title}),(0,re.jsx)(U.Item.Bio,{children:l.bio})]})]},l.id)})]})})]})}var pr,Ps,re,ws=k(()=>{"use strict";s();pr=require("react");_r();zo();Ft();Ps=require("react-router-dom"),re=require("react/jsx-runtime")});var ki={};vr(ki,{Admonition:()=>Te,AnchorProvider:()=>Uo,Badge:()=>ho,Breadcrumbs:()=>br,Button:()=>so,ButtonGroup:()=>Gt,Card:()=>xo,Cards:()=>bo,Caution:()=>wo,CodeBlock:()=>Be,ComponentPreview:()=>Ho,ComponentProps:()=>Vo,CopyMarkdown:()=>Tt,Danger:()=>Ro,DefaultLayout:()=>Vs,DocsLayout:()=>Qe,ErrorBoundary:()=>Bt,Field:()=>Bo,FileTree:()=>Io,Head:()=>hr,Image:()=>Eo,Important:()=>No,InfoBox:()=>Po,Link:()=>Mo,List:()=>ko,Loading:()=>Zo,Navbar:()=>ur,NotFound:()=>Et,Note:()=>vo,OnThisPage:()=>gr,PageNav:()=>xr,PrimitiveBreadcrumbs:()=>ae,PrimitiveButton:()=>me,PrimitiveLink:()=>W,PrimitiveMenu:()=>T,PrimitiveNavLink:()=>Rr,PrimitiveNavbar:()=>_,PrimitiveNavigationMenu:()=>nt,PrimitiveOnThisPage:()=>j,PrimitivePageNav:()=>J,PrimitivePopover:()=>_t,PrimitiveSidebar:()=>he,PrimitiveSkeleton:()=>G,PrimitiveTabs:()=>ke,PrimitiveTooltip:()=>rt,ScrollProvider:()=>_o,SearchDialogPrimitive:()=>U,Sidebar:()=>fr,Tab:()=>uo,Table:()=>Ao,Tabs:()=>fo,Tip:()=>yo,Video:()=>go,Warning:()=>Co,cn:()=>c,createBoltdocsApp:()=>ls,useActiveAnchor:()=>Go,useActiveAnchors:()=>qn,useBreadcrumbs:()=>ir,useConfig:()=>F,useI18n:()=>sr,useItems:()=>Wo,useLocalizedTo:()=>tt,useLocation:()=>lr,useMdxComponents:()=>lt,useNavbar:()=>Qo,useOnThisPage:()=>or,usePageNav:()=>ar,useRoutes:()=>A,useSearch:()=>tr,useSidebar:()=>er,useTabs:()=>rr,useTheme:()=>je,useVersion:()=>nr});module.exports=Ws(ki);s();s();var oe=I(require("react")),ss=I(require("react-dom/client")),Re=require("react-router-dom");s();var tn=require("lucide-react");ot();var $e=require("react/jsx-runtime");function Et(){return(0,$e.jsx)("div",{className:"flex items-center justify-center min-h-[60vh] text-center",children:(0,$e.jsxs)("div",{className:"space-y-4",children:[(0,$e.jsx)("span",{className:"text-8xl font-black tracking-tighter text-primary-500/20",children:"404"}),(0,$e.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Page Not Found"}),(0,$e.jsx)("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."}),(0,$e.jsxs)(W,{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:[(0,$e.jsx)(tn.ArrowLeft,{size:16})," Go to Home"]})]})})}s();var Ne=require("react"),nn=require("react/jsx-runtime"),on=(0,Ne.createContext)(void 0);function rn({children:e}){let[t,o]=(0,Ne.useState)("system"),[r,n]=(0,Ne.useState)("dark"),[a,i]=(0,Ne.useState)(!1);(0,Ne.useEffect)(()=>{i(!0);let l=localStorage.getItem("boltdocs-theme"),u=l==="light"||l==="dark"||l==="system"?l:"system";o(u);let d=window.matchMedia("(prefers-color-scheme: dark)");((b,x)=>{n(b==="system"?x?"dark":"light":b)})(u,d.matches);let f=b=>{n(x=>(localStorage.getItem("boltdocs-theme")||"system")==="system"?b.matches?"dark":"light":x)};return d.addEventListener("change",f),()=>d.removeEventListener("change",f)},[]),(0,Ne.useEffect)(()=>{if(!a)return;let l=window.matchMedia("(prefers-color-scheme: dark)").matches,u=t==="system"?l?"dark":"light":t;n(u);let d=document.documentElement;u==="light"?(d.classList.add("theme-light"),d.dataset.theme="light"):(d.classList.remove("theme-light"),d.dataset.theme="dark")},[t,a]);let m=l=>{o(l),localStorage.setItem("boltdocs-theme",l)};return(0,nn.jsx)(on.Provider,{value:{theme:t,resolvedTheme:r,setTheme:m},children:e})}function je(){let e=(0,Ne.use)(on);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}var Wr=I(require("virtual:boltdocs-layout"));Zt();s();var sn=require("react"),an=require("react-aria-components"),to=require("react-router-dom"),cn=require("react/jsx-runtime");function ln({children:e}){let t=(0,to.useNavigate)();return(0,cn.jsx)(an.RouterProvider,{navigate:(o,r)=>{(0,sn.startTransition)(()=>{t(o,r)})},useHref:to.useHref,children:e})}Pe();s();var mn=require("react"),pn=require("react-router-dom");function dn(){let{pathname:e,hash:t}=(0,pn.useLocation)();return(0,mn.useLayoutEffect)(()=>{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 l=o===window?0:o.getBoundingClientRect().top,p=i.getBoundingClientRect().top-l-80+r();n(p,"smooth");return}}n(0)},[e,t]),null}s();var un=require("react-router-dom"),fn=I(require("virtual:boltdocs-layout")),Nr=require("react/jsx-runtime");function gn(){return(0,Nr.jsx)(fn.default,{children:(0,Nr.jsx)(un.Outlet,{})})}s();s();var oo=require("react"),xn=require("react/jsx-runtime"),hn=(0,oo.createContext)({});function lt(){return(0,oo.use)(hn)}function bn({components:e,children:t}){return(0,xn.jsx)(hn.Provider,{value:e,children:t})}var yn=require("react/jsx-runtime");function vn({Component:e}){let t=lt();return(0,yn.jsx)(e,{components:t})}s();var rs=require("lucide-react");var Fr={};vr(Fr,{Admonition:()=>Te,Badge:()=>ho,Button:()=>so,Card:()=>xo,Cards:()=>bo,Caution:()=>wo,CodeBlock:()=>Be,ComponentPreview:()=>Ho,ComponentProps:()=>Vo,CopyMarkdown:()=>Tt,Danger:()=>Ro,Field:()=>Bo,FileTree:()=>Io,Image:()=>Eo,Important:()=>No,InfoBox:()=>Po,Link:()=>Mo,List:()=>ko,Note:()=>vo,Tab:()=>uo,Table:()=>Ao,Tabs:()=>fo,Tip:()=>yo,Video:()=>go,Warning:()=>Co});s();s();Vt();N();var Rn=require("react/jsx-runtime"),so=({className:e,variant:t,size:o,rounded:r,iconSize:n,disabled:a,...i})=>(0,Rn.jsx)(me,{className:c("group",ro({variant:t,size:o,rounded:r,iconSize:n,disabled:a,className:e})),...i});s();var Tr=I(require("react-aria-components")),ft=require("lucide-react");N();s();Pe();s();var Pn=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}};var Ae=require("react");function Nn(e){let{title:t}=e,[o,r]=(0,Ae.useState)(!1),[n,a]=(0,Ae.useState)(!1),[i,m]=(0,Ae.useState)(!1),l=(0,Ae.useRef)(null),u=F(),d=(0,Ae.useCallback)(async()=>{let p=l.current?.textContent??"";Pn(p),r(!0),setTimeout(()=>r(!1),2e3)},[]);return(0,Ae.useEffect)(()=>{let p=l.current?.textContent?.length??0;m(p>120)},[e.children,e.highlightedHtml]),{copied:o,isExpanded:n,setIsExpanded:a,isExpandable:i,preRef:l,handleCopy:d,shouldTruncate:i&&!n}}Pe();Ht();wr();var q=require("react/jsx-runtime"),_s={ts:io,tsx:ct,js:lo,jsx:ct,json:co,css:mo,html:po,md:mt,mdx:mt,bash:pt,sh:pt,yaml:dt,yml:dt};function Be(e){let{children:t,hideCopy:o=!1,highlightedHtml:r,"data-highlighted-html":n,title:a,"data-lang":i,plain:m=!1,...l}=e,u=r||n,d=F(),p=e.lang||i||"",{copied:f,isExpanded:b,setIsExpanded:x,isExpandable:v,preRef:h,handleCopy:S,shouldTruncate:R}=Nn(e),Q=_s[p];return(0,q.jsxs)("div",{className:c("group relative overflow-hidden bg-(--color-code-bg)","contain-layout contain-paint",{"my-6 rounded-lg border border-border-subtle":!m,"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":R},e.className),children:[a&&(0,q.jsxs)("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:[Q?(0,q.jsx)(Q,{size:14}):(0,q.jsx)(ft.File,{size:14,className:"opacity-60"}),(0,q.jsx)("span",{children:a})]}),(0,q.jsx)("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:!o&&(0,q.jsx)(rt,{content:f?"Copied!":"Copy code",children:(0,q.jsx)(Tr.Button,{onPress:S,className:c("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",f?"text-emerald-400":"text-text-muted hover:text-text-main"),"aria-label":"Copy code",children:f?(0,q.jsx)(ft.Check,{size:20}):(0,q.jsx)(ft.Copy,{size:20})})})}),u?(0,q.jsx)("div",{ref:h,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:u}}):(0,q.jsx)("pre",{ref:h,className:"m-0! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7]",...l,children:t}),v&&(0,q.jsx)("div",{className:c(R?"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:(0,q.jsx)(Tr.Button,{onPress:()=>x(!b),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:b?"Show less":"Expand code"})})]})}s();var gt=require("react"),Ke=I(require("react-aria-components"));s();var Fe=require("react");function Sn({initialIndex:e=0,tabs:t}){let o=t[e]?.props.disabled?t.findIndex(u=>!u.props.disabled):e,[r,n]=(0,Fe.useState)(o===-1?0:o),a=(0,Fe.useRef)([]),[i,m]=(0,Fe.useState)({opacity:0,transform:"translateX(0)",width:0});(0,Fe.useEffect)(()=>{let u=a.current[r];u&&m({opacity:1,width:u.offsetWidth,transform:`translateX(${u.offsetLeft}px)`})},[r,t]);let l=(0,Fe.useCallback)(u=>{let d=0;if(u.key==="ArrowRight"?d=1:u.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:l}}N();var Lr=require("class-variance-authority"),de=require("react/jsx-runtime"),Us=(0,Lr.cva)("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"}}),js=(0,Lr.cva)("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 uo({children:e}){let t=typeof e=="string"?(0,de.jsx)(Be,{className:"language-bash",children:(0,de.jsx)("code",{children:e.trim()})}):e;return(0,de.jsx)("div",{className:"py-4",children:t})}function fo({defaultIndex:e=0,children:t}){let o=(0,gt.useMemo)(()=>gt.Children.toArray(t).filter(m=>(0,gt.isValidElement)(m)&&m.props?.label),[t]),{active:r,setActive:n,tabRefs:a,indicatorStyle:i}=Sn({initialIndex:e,tabs:o});return(0,de.jsx)("div",{className:"my-8 w-full group/tabs",children:(0,de.jsxs)(Ke.Tabs,{selectedKey:r.toString(),onSelectionChange:m=>n(Number(m)),className:"w-full",children:[(0,de.jsxs)(Ke.TabList,{"aria-label":"Content Tabs",className:c(Us()),children:[o.map((m,l)=>{let{label:u,icon:d,disabled:p}=m.props,f=l.toString();return(0,de.jsxs)(Ke.Tab,{id:f,isDisabled:p,ref:b=>{a.current[l]=b},className:({isSelected:b,isDisabled:x})=>c(js({isActive:b,isDisabled:x})),children:[!!d&&(0,de.jsx)("span",{className:"shrink-0 [&>svg]:w-4 [&>svg]:h-4",children:d}),(0,de.jsx)("span",{children:u})]},f)}),(0,de.jsx)("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((m,l)=>(0,de.jsx)(Ke.TabPanel,{id:l.toString(),children:o[l]},l))]})})}s();var ht=require("react"),Ot=require("react/jsx-runtime");function go({src:e,poster:t,alt:o,children:r,controls:n,preload:a="metadata",...i}){let m=(0,ht.useRef)(null),[l,u]=(0,ht.useState)(!1);return(0,ht.useEffect)(()=>{let d=m.current;if(!d)return;let p=new IntersectionObserver(([f])=>{f.isIntersecting&&(u(!0),p.disconnect())},{rootMargin:"200px"});return p.observe(d),()=>p.disconnect()},[]),(0,Ot.jsx)("div",{ref:m,className:"my-6 overflow-hidden rounded-lg border border-border-subtle",children:l?(0,Ot.jsxs)("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."]}):(0,Ot.jsx)("div",{className:"aspect-video bg-bg-surface animate-pulse",role:"img","aria-label":o||"Video"})})}s();N();var In=require("class-variance-authority"),An=require("react/jsx-runtime"),Ks=(0,In.cva)("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 ho({variant:e="default",children:t,className:o="",...r}){return(0,An.jsx)("span",{className:c(Ks({variant:e}),o),...r,children:t})}s();var Dt=require("react"),Bn=I(require("react-aria-components"));N();var Mn=require("class-variance-authority"),ue=require("react/jsx-runtime"),qs=(0,Mn.cva)("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 bo({cols:e=3,children:t,className:o="",...r}){return(0,ue.jsx)("div",{className:c(qs({cols:e}),o),...r,children:t})}function xo({title:e,icon:t,href:o,children:r,className:n="",...a}){let i=(0,Dt.useRef)(null),m=(0,Dt.useRef)(null),l=(0,Dt.useCallback)(p=>{let f=i.current||m.current;if(!f)return;let{left:b,top:x}=f.getBoundingClientRect();f.style.setProperty("--x",`${p.clientX-b}px`),f.style.setProperty("--y",`${p.clientY-x}px`)},[]),u=(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("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&&(0,ue.jsx)("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}),(0,ue.jsxs)("div",{className:"space-y-1.5",children:[e&&(0,ue.jsx)("h3",{className:"text-sm font-bold text-text-main",children:e}),r&&(0,ue.jsx)("div",{className:"text-sm text-text-muted leading-relaxed",children:r})]})]}),d=c("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?(0,ue.jsx)(Bn.Link,{ref:m,href:o,className:c(d,"no-underline cursor-pointer"),onMouseMove:l,...a,children:u}):(0,ue.jsx)("div",{ref:i,role:"presentation",className:d,onMouseMove:l,...a,children:u})}s();var se=require("lucide-react");N();var Vn=require("class-variance-authority"),D=require("react/jsx-runtime"),Xs={note:(0,D.jsx)(se.Bookmark,{size:18}),tip:(0,D.jsx)(se.Lightbulb,{size:18}),info:(0,D.jsx)(se.Info,{size:18}),warning:(0,D.jsx)(se.AlertTriangle,{size:18}),danger:(0,D.jsx)(se.ShieldAlert,{size:18}),important:(0,D.jsx)(se.Flame,{size:18}),caution:(0,D.jsx)(se.Zap,{size:18})},Js={note:"Note",tip:"Tip",info:"Info",warning:"Warning",danger:"Danger",important:"Important",caution:"Caution"},En=(0,Vn.cva)("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 Te({type:e="note",title:t,children:o,className:r="",...n}){return(0,D.jsxs)("div",{className:c(En({type:e}),r),role:e==="warning"||e==="danger"?"alert":"note",...n,children:[(0,D.jsxs)("div",{className:"flex items-center flex-row gap-2 mb-2",children:[(0,D.jsx)("span",{className:c("shrink-0",En({type:e})),children:Xs[e]}),(0,D.jsx)("span",{className:"text-sm font-bold tracking-tight text-text-main",children:t||Js[e]})]}),(0,D.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0",children:o})]})}var vo=e=>(0,D.jsx)(Te,{type:"note",...e}),yo=e=>(0,D.jsx)(Te,{type:"tip",...e}),Co=e=>(0,D.jsx)(Te,{type:"warning",...e}),Ro=e=>(0,D.jsx)(Te,{type:"danger",...e}),Po=e=>(0,D.jsx)(Te,{type:"info",...e}),No=e=>(0,D.jsx)(Te,{type:"important",...e}),wo=e=>(0,D.jsx)(Te,{type:"caution",...e});s();var To=require("react"),bt=require("lucide-react");N();var Lo=require("class-variance-authority"),Le=require("react/jsx-runtime"),Ys=(0,Lo.cva)("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}}),Zs=(0,Lo.cva)("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}}),Qs=(0,Lo.cva)("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 ea({icon:e,children:t,variant:o,dense:r}){return(0,Le.jsxs)("li",{className:c(Zs({variant:o,dense:r})),children:[e&&(0,Le.jsx)("span",{className:c(Qs({variant:o==="bubble"?"bubble":"default"})),children:e}),(0,Le.jsx)("div",{className:"flex-1 text-text-muted group-hover:text-text-main transition-colors",children:t})]})}var ta={checked:e=>(0,Le.jsx)(bt.Check,{size:14,className:c("text-emerald-500 shrink-0",e)}),arrow:e=>(0,Le.jsx)(bt.ChevronRight,{size:14,className:c("text-primary-400 shrink-0",e)}),bubble:e=>(0,Le.jsx)(bt.Circle,{size:6,fill:"currentColor",className:c("text-primary-500 shrink-0",e)}),default:()=>null,number:()=>null};function ko({variant:e="default",cols:t=1,dense:o=!1,children:r,className:n,...a}){let i=t!==void 0&&Number(t)>1,m=ta[e],l=Ys({variant:e,cols:t,dense:o,isGrid:i,className:n}),u=e==="number"?"ol":"ul";return e==="default"||e==="number"?(0,Le.jsx)(u,{className:l,...a,children:r}):(0,Le.jsx)("ul",{className:l,...a,children:To.Children.map(r,d=>{if(!(0,To.isValidElement)(d))return d;let p=d,f=p.type==="li"?p.props.children:p.props.children||d;return(0,Le.jsx)(ea,{icon:m(),variant:e,dense:o,children:f})})})}s();var Me=require("react"),Ee=I(require("react-aria-components")),ve=require("lucide-react");N();Ht();var H=require("react/jsx-runtime"),xt=16,zt=2,oa={ts:io,tsx:ct,js:lo,jsx:ct,json:co,css:mo,html:po,md:mt,mdx:mt,bash:pt,sh:pt,yaml:dt,yml:dt},kr={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 Ir(e){return typeof e=="string"?e:typeof e=="number"?e.toString():Array.isArray(e)?e.map(Ir).join(""):(0,Me.isValidElement)(e)&&e.props&&typeof e.props=="object"&&"children"in e.props?Ir(e.props.children):""}function ra(e,t){let o=e.toLowerCase(),r="shrink-0 transition-colors duration-200";if(t)return(0,H.jsx)(ve.Folder,{size:xt,strokeWidth:zt,className:c(r,"text-primary-400"),fill:"currentColor",fillOpacity:.15});let n=o.split(".").pop()||"",a=oa[n];if(a)return(0,H.jsx)(a,{size:xt});let i=c(r,"text-text-dim group-hover:text-text-main");return kr.CODE.test(o)?(0,H.jsx)(ve.FileCode,{size:xt,strokeWidth:zt,className:i}):kr.TEXT.test(o)?(0,H.jsx)(ve.FileText,{size:xt,strokeWidth:zt,className:i}):kr.IMAGE.test(o)?(0,H.jsx)(ve.FileImage,{size:xt,strokeWidth:zt,className:i}):(0,H.jsx)(ve.File,{size:xt,strokeWidth:zt,className:i})}function Sr(e,t){if(!(0,Me.isValidElement)(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 na(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function So(e,t="root"){if(!(0,Me.isValidElement)(e))return[];let o=[];if(Sr(e,"ul"))return Me.Children.forEach(e.props.children,(r,n)=>{o.push(...So(r,`${t}-${n}`))}),o;if(Sr(e,"li")){let r=Me.Children.toArray(e.props.children),n=r.findIndex(x=>Sr(x,"ul")),a=n!==-1,i=a?r.slice(0,n):r,m=a?r.slice(n):[],l=Ir(i),{name:u,comment:d}=na(l),p=u.endsWith("/"),f=p?u.slice(0,-1):u,b=a||p;return o.push({id:`${t}-${f}`,name:f,comment:d,isFolder:b,children:a?So(m[0],`${t}-${f}`):void 0}),o}return e.props&&typeof e.props=="object"&&"children"in e.props&&Me.Children.forEach(e.props.children,(r,n)=>{o.push(...So(r,`${t}-${n}`))}),o}function Hn({item:e}){return(0,H.jsxs)(Ee.TreeItem,{id:e.id,textValue:e.name,className:"outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md",children:[(0,H.jsx)(Ee.TreeItemContent,{children:({isExpanded:t,hasChildItems:o})=>(0,H.jsxs)("div",{className:"flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer",children:[(0,H.jsx)("div",{style:{width:"calc((var(--tree-item-level) - 1) * 1rem)"},className:"shrink-0"}),o?(0,H.jsx)(Ee.Button,{slot:"chevron",className:"outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors",children:(0,H.jsx)(ve.ChevronRight,{size:14,strokeWidth:3,className:c("transition-transform duration-200",t&&"rotate-90")})}):(0,H.jsx)("div",{className:"w-[18px]"}),ra(e.name,e.isFolder),(0,H.jsx)("span",{className:c("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&&(0,H.jsxs)("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&&(0,H.jsx)(Ee.Collection,{items:e.children,children:t=>(0,H.jsx)(Hn,{item:t})})]})}function Io({children:e}){let t=(0,Me.useMemo)(()=>So(e),[e]);return(0,H.jsx)("div",{className:"my-8",children:(0,H.jsx)(Ee.Tree,{items:t,"aria-label":"File Tree",className:c("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=>(0,H.jsx)(Hn,{item:o})})})}s();var $t=I(require("react-aria-components"));s();var vt=require("react");function On({data:e,sortable:t=!1,paginated:o=!1,pageSize:r=10}){let[n,a]=(0,vt.useState)(null),[i,m]=(0,vt.useState)(1),l=(0,vt.useMemo)(()=>{if(!e)return[];let f=[...e];return t&&n!==null&&f.sort((b,x)=>{let v=b[n.key],h=x[n.key],S=typeof v=="string"?v:"",R=typeof h=="string"?h:"";return S<R?n.direction==="asc"?-1:1:S>R?n.direction==="asc"?1:-1:0}),f},[e,n,t]),u=Math.ceil(l.length/r),d=(0,vt.useMemo)(()=>{if(!o)return l;let f=(i-1)*r;return l.slice(f,f+r)},[l,o,i,r]);return{sortConfig:n,currentPage:i,setCurrentPage:m,totalPages:u,paginatedData:d,requestSort:f=>{if(!t)return;let b="asc";n&&n.key===f&&n.direction==="asc"&&(b="desc"),a({key:f,direction:b})}}}var fe=require("lucide-react");N();var L=require("react/jsx-runtime");function Ao({headers:e,data:t,children:o,className:r="",sortable:n=!1,paginated:a=!1,pageSize:i=10}){let{sortConfig:m,currentPage:l,setCurrentPage:u,totalPages:d,paginatedData:p,requestSort:f}=On({data:t,sortable:n,paginated:a,pageSize:i}),b=v=>n?m?.key!==v?(0,L.jsx)(fe.ChevronDown,{size:14,className:"ml-1 opacity-30"}):m.direction==="asc"?(0,L.jsx)(fe.ChevronUp,{size:14,className:"ml-1 text-primary-400"}):(0,L.jsx)(fe.ChevronDown,{size:14,className:"ml-1 text-primary-400"}):null,x=o||(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsx)("thead",{children:(0,L.jsx)("tr",{children:e.map((v,h)=>(0,L.jsx)("th",{onClick:()=>f(h),className:c("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:(0,L.jsxs)("div",{className:"flex items-center",children:[v,b(h)]})},h))})}),p&&(0,L.jsx)("tbody",{children:p.map((v,h)=>(0,L.jsx)("tr",{className:"transition-colors hover:bg-bg-surface",children:v.map((S,R)=>(0,L.jsx)("td",{className:"px-3 py-2 border-b border-border-subtle text-sm text-text-muted",children:S},R))},h))})]});return(0,L.jsxs)("div",{className:c("my-6 rounded-lg border border-border-subtle overflow-hidden",r),children:[(0,L.jsx)("div",{className:"overflow-x-auto",children:(0,L.jsx)("table",{className:"w-full border-collapse text-sm",children:x})}),a&&d>1&&(0,L.jsxs)("div",{className:"flex items-center justify-between border-t border-border-subtle px-4 py-3",children:[(0,L.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",l," of ",d]}),(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)($t.Button,{onPress:()=>u(1),isDisabled:l===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:(0,L.jsx)(fe.ChevronsLeft,{size:16})}),(0,L.jsx)($t.Button,{onPress:()=>u(v=>Math.max(v-1,1)),isDisabled:l===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:(0,L.jsx)(fe.ChevronLeft,{size:16})}),(0,L.jsx)($t.Button,{onPress:()=>u(v=>Math.min(v+1,d)),isDisabled:l===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:(0,L.jsx)(fe.ChevronRight,{size:16})}),(0,L.jsx)($t.Button,{onPress:()=>u(d),isDisabled:l===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:(0,L.jsx)(fe.ChevronsRight,{size:16})})]})]})]})}s();N();var ge=require("react/jsx-runtime");function Bo({name:e,type:t,defaultValue:o,required:r=!1,children:n,id:a,className:i=""}){return(0,ge.jsxs)("article",{className:c("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:[(0,ge.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,ge.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,ge.jsx)("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&&(0,ge.jsx)("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&&(0,ge.jsxs)("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:[(0,ge.jsx)("span",{className:"h-1 w-1 rounded-full bg-red-400 animate-pulse"}),"Required"]})]}),o&&(0,ge.jsxs)("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:[(0,ge.jsx)("span",{className:"font-semibold opacity-60 uppercase tracking-tighter",children:"Default"}),(0,ge.jsx)("code",{className:"font-mono text-text-main font-medium",children:o})]})]}),(0,ge.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30",children:n})]})}s();ot();N();var Dn=require("react/jsx-runtime");function Mo({to:e,children:t,className:o="",...r}){let n=e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")),a=c("text-blue-600 hover:text-blue-800 hover:underline cursor-pointer",o);return(0,Dn.jsx)(W,{href:e,className:a,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...r,children:t})}s();var zn=require("react/jsx-runtime");function Eo({src:e,alt:t,theme:o,...r}){let{theme:n}=je();return o&&o!==n?null:(0,zn.jsx)("img",{src:e,alt:t||"",...r})}s();N();var E=require("react/jsx-runtime");function Vo({title:e,props:t,className:o=""}){return(0,E.jsxs)("div",{className:c("my-6",o),children:[e&&(0,E.jsx)("h3",{className:"text-base font-bold text-text-main mb-3",children:e}),(0,E.jsx)("div",{className:"overflow-x-auto rounded-lg border border-border-subtle",children:(0,E.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,E.jsx)("thead",{children:(0,E.jsxs)("tr",{children:[(0,E.jsx)("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"}),(0,E.jsx)("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"}),(0,E.jsx)("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"}),(0,E.jsx)("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"})]})}),(0,E.jsx)("tbody",{children:t.map((r,n)=>(0,E.jsxs)("tr",{className:"transition-colors hover:bg-bg-surface",children:[(0,E.jsxs)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:[(0,E.jsx)("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&&(0,E.jsx)("span",{className:"ml-1 text-red-400 font-bold",children:"*"})]}),(0,E.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:(0,E.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted",children:r.type})}),(0,E.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:r.defaultValue?(0,E.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400",children:r.defaultValue}):(0,E.jsx)("span",{className:"text-text-dim",children:"\u2014"})}),(0,E.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle text-text-muted",children:r.description})]},`${r.name}-${n}`))})]})})]})}s();s();var Ar=require("react");function $n(e){let{code:t,children:o,preview:r}=e,n=(0,Ar.useMemo)(()=>(t??(typeof o=="string"?o:"")).trim(),[t,o]),a=(0,Ar.useMemo)(()=>r??(typeof o!="string"?o:null),[r,o]);return{initialCode:n,previewElement:a}}var yt=require("react/jsx-runtime");function Ho(e){let{highlightedHtml:t,hideCode:o=!1,hideCopy:r=!1}=e,{initialCode:n,previewElement:a}=$n(e);return(0,yt.jsxs)("div",{className:"my-6 overflow-hidden rounded-xl border border-border-subtle",children:[(0,yt.jsx)("div",{className:"flex items-center justify-center p-8 bg-bg-surface",children:a}),!o&&(0,yt.jsx)("div",{className:"border-t border-border-subtle",children:(0,yt.jsx)(Be,{hideCopy:r,lang:"tsx",highlightedHtml:t,plain:!0,children:n})})]})}s();var os=require("react"),We=require("lucide-react");Do();var K=require("react/jsx-runtime"),ii=e=>{let[t,o]=(0,os.useState)(!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 Tt({content:e,mdxRaw:t,config:o}){let r=t||e||"",{copied:n,handleCopy:a,handleOpenRaw:i}=ii(r),m=o!==!1,l=typeof o=="object"&&o.text||"Copy Markdown";return!m||!r?null:(0,K.jsx)("div",{className:"relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200",children:(0,K.jsxs)(Gt,{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:[(0,K.jsx)(me,{variant:"ghost",onPress:a,icon:n?(0,K.jsx)(We.Check,{size:16}):(0,K.jsx)(We.Copy,{size:16}),iconPosition:"left",className:c("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!":l}),(0,K.jsxs)(T.Trigger,{placement:"bottom end",children:[(0,K.jsx)(me,{variant:"ghost",isIconOnly:!0,icon:(0,K.jsx)(We.ChevronDown,{size:14}),className:c("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")}),(0,K.jsxs)(T.Root,{className:"w-52",children:[(0,K.jsxs)(T.Item,{onAction:a,children:[(0,K.jsx)(We.Copy,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),(0,K.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"Copy Markdown"})]}),(0,K.jsxs)(T.Item,{onAction:i,children:[(0,K.jsx)(We.ExternalLink,{size:16,className:"size-4 mt-0.5 text-text-muted group-hover:text-primary-500"}),(0,K.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"View as Markdown"})]})]})]})]})})}s();N();$r();var M=require("react/jsx-runtime");function Zo(){return(0,M.jsx)("div",{className:c("w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in"),children:(0,M.jsxs)("div",{className:"mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10",children:[(0,M.jsxs)("div",{className:"flex gap-2",children:[(0,M.jsx)(G,{className:"h-3 w-16"}),(0,M.jsx)(G,{className:"h-3 w-24"})]}),(0,M.jsx)(G,{className:"h-10 w-[60%] sm:h-12"}),(0,M.jsxs)("div",{className:"space-y-3",children:[(0,M.jsx)(G,{className:"h-4 w-full"}),(0,M.jsx)(G,{className:"h-4 w-[95%]"}),(0,M.jsx)(G,{className:"h-4 w-[40%]"})]}),(0,M.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,M.jsx)(G,{className:"h-7 w-32"}),(0,M.jsxs)("div",{className:"space-y-3",children:[(0,M.jsx)(G,{className:"h-4 w-full"}),(0,M.jsx)(G,{className:"h-4 w-[98%]"}),(0,M.jsx)(G,{className:"h-4 w-[92%]"}),(0,M.jsx)(G,{className:"h-4 w-[60%]"})]})]}),(0,M.jsx)(G,{className:"h-32 w-full rounded-lg bg-bg-muted/50"}),(0,M.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,M.jsx)(G,{className:"h-7 w-48"}),(0,M.jsxs)("div",{className:"space-y-3",children:[(0,M.jsx)(G,{className:"h-4 w-full"}),(0,M.jsx)(G,{className:"h-4 w-[85%]"})]})]})]})})}var Ce=require("react/jsx-runtime"),Lt=({level:e,id:t,children:o,...r})=>{let n=`h${e}`;return(0,Ce.jsxs)(n,{id:t,...r,className:"boltdocs-heading",children:[o,t&&(0,Ce.jsx)("a",{href:`#${t}`,className:"header-anchor","aria-label":"Anchor",children:(0,Ce.jsx)(rs.Link,{size:16})})]})},ns={...Fr,Loading:Zo,h1:e=>(0,Ce.jsx)(Lt,{level:1,...e}),h2:e=>(0,Ce.jsx)(Lt,{level:2,...e}),h3:e=>(0,Ce.jsx)(Lt,{level:3,...e}),h4:e=>(0,Ce.jsx)(Lt,{level:4,...e}),h5:e=>(0,Ce.jsx)(Lt,{level:5,...e}),h6:e=>(0,Ce.jsx)(Lt,{level:6,...e}),pre:e=>(0,Ce.jsx)(Be,{...e,children:e.children})};var as=I(require("virtual:boltdocs-mdx-components"));ce();var is=require("react-router-dom");Mt();var P=require("react/jsx-runtime");function li(){let{currentLocale:e,config:t}=A();return(0,oe.useEffect)(()=>{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 ci(){let e=(0,is.useLocation)(),{config:t}=A(),o=le(i=>i.setLocale),r=le(i=>i.setVersion),n=le(i=>i.currentLocale),a=le(i=>i.currentVersion);return(0,oe.useEffect)(()=>{let i=e.pathname.split("/").filter(Boolean),m=0,l=t.versions?.defaultVersion,u=t.i18n?.defaultLocale;if(i[m]==="docs"&&m++,t.versions&&i.length>m){let d=t.versions.versions.find(p=>p.path===i[m]);d&&(l=d.path,m++)}t.i18n&&i.length>m&&t.i18n.locales[i[m]]?u=i[m]:t.i18n&&i.length===0&&(u=n||t.i18n.defaultLocale),u!==n&&o(u),l!==a&&r(l)},[e.pathname,t,o,r,n,a]),null}function mi({initialRoutes:e,initialConfig:t,docsDirName:o,modules:r,hot:n,homePage:a,externalPages:i,externalLayout:m,components:l={}}){let[u,d]=(0,oe.useState)(e),[p,f]=(0,oe.useState)(t),b=i||{},x=m||Wr.default,v=(0,oe.useMemo)(()=>u.filter(R=>!(a&&(R.path==="/"||R.path===""))&&!b[R.path===""?"/":R.path]).map(R=>{let Q=Object.keys(r).find(ie=>ie===`/${o}/${R.filePath}`||ie.endsWith(`/${o}/${R.filePath}`)||ie.endsWith(`/${o}\\${R.filePath.replace(/\\/g,"/")}`)),Ie=Q?r[Q]:null;return{...R,Component:oe.default.lazy(async()=>Ie?await Ie():{default:Et})}}),[u,r,o,a,b]);(0,oe.useEffect)(()=>{n&&(n.on("boltdocs:routes-update",R=>{d(R)}),n.on("boltdocs:config-update",R=>{f(R)}))},[n]);let h=(0,oe.useMemo)(()=>({...ns,...as.default,...l}),[l]),S=h.Loading;return(0,P.jsx)(rn,{children:(0,P.jsx)(bn,{components:h,children:(0,P.jsx)(yr.Provider,{value:p,children:(0,P.jsx)(ln,{children:(0,P.jsxs)(Kr,{routes:u,modules:r,children:[(0,P.jsx)(dn,{}),(0,P.jsx)(ci,{}),(0,P.jsx)(li,{}),(0,P.jsxs)(Re.Routes,{children:[(0,P.jsx)(Re.Route,{element:(0,P.jsx)(gn,{}),children:v.map(R=>(0,P.jsx)(Re.Route,{path:R.path===""?"/":R.path,element:(0,P.jsx)(oe.default.Suspense,{fallback:(0,P.jsx)(S,{}),children:(0,P.jsx)(vn,{Component:R.Component})})},R.path))},"docs-layout"),a&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Re.Route,{path:"/",element:(0,P.jsx)(x,{children:(0,P.jsx)(a,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(R=>(0,P.jsx)(Re.Route,{path:`/${R}`,element:(0,P.jsx)(x,{children:(0,P.jsx)(a,{})})},`home-${R}`))]}),Object.entries(b).map(([R,Q])=>{let Ie=R==="/"?"":R;return(0,P.jsxs)(oe.default.Fragment,{children:[(0,P.jsx)(Re.Route,{path:R,element:(0,P.jsx)(x,{children:(0,P.jsx)(Q,{})})}),p.i18n&&Object.keys(p.i18n.locales).map(ie=>(0,P.jsx)(Re.Route,{path:`/${ie}${Ie}`,element:(0,P.jsx)(x,{children:(0,P.jsx)(Q,{})})},`${R}-${ie}`))]},R)}),(0,P.jsx)(Re.Route,{path:"*",element:(0,P.jsx)(Wr.default,{children:(0,P.jsx)(Et,{})})})]})]})})})})})}function ls(e){let{target:t,routes:o,docsDirName:r,config:n,modules:a,hot:i,homePage:m,externalPages:l,externalLayout:u,components:d}=e,p=document.querySelector(t);if(!p)throw new Error(`[boltdocs] Mount target "${t}" not found in document.`);let f=(0,P.jsx)(oe.default.StrictMode,{children:(0,P.jsx)(Re.BrowserRouter,{children:(0,P.jsx)(mi,{initialRoutes:o,initialConfig:n,docsDirName:r,modules:a,hot:i,homePage:m,externalPages:l,externalLayout:u,components:d})})});p.innerHTML="",ss.default.createRoot(p).render(f)}Pe();ce();s();s();var cs=require("react-router-dom");Pe();s();function Je(e,t){return e?typeof e=="string"?e:t&&e[t]?e[t]:Object.values(e)[0]||"":""}ce();function Qo(){let e=F(),{theme:t}=je(),o=(0,cs.useLocation)(),{currentLocale:r}=A(),n=e.theme||{},a=Je(n.title,r)||"Boltdocs",i=n.navbar||[],m=n.socialLinks||[],l=n.githubRepo,u=i.map(x=>{let v=x.href||x.to||x.link||"",h=S=>{let R=o.pathname;if(R===S)return!0;if(!S||S==="/")return R==="/";let Q=qt=>{let be=qt.split("/").filter(Boolean),et=0;return e.i18n?.locales&&be[et]&&e.i18n.locales[be[et]]&&et++,e.versions?.versions&&be[et]&&e.versions.versions.some(Hs=>Hs.path===be[et])&&et++,be.slice(et)},Ie=Q(S),ie=Q(R);return Ie.length===0?ie.length===0:ie.length<Ie.length?!1:Ie.every((qt,be)=>ie[be]===qt)};return{label:Je(x.label||x.text,r),href:v,active:h(v),to:v.startsWith("http")||v.startsWith("//")?"external":void 0}}),d=n.logo,p=d?typeof d=="string"?d:t==="dark"?d.dark:d.light:null,f={alt:(d&&typeof d=="object"?d.alt:void 0)||a,width:d&&typeof d=="object"?d.width:void 0,height:d&&typeof d=="object"?d.height:void 0},b=l?`https://github.com/${l}`:null;return{links:u,title:a,logo:p,logoProps:f,github:b,social:m,config:e,theme:t}}s();var ms=require("react-router-dom");Pe();function er(e){let t=F(),o=(0,ms.useLocation)(),r=p=>p.endsWith("/")&&p.length>1?p.slice(0,-1):p,n=r(o.pathname),a=e.find(p=>r(p.path)===n),i=a?.tab?.toLowerCase(),m=i?e.filter(p=>!p.tab||p.tab.toLowerCase()===i):e,l=[],u=new Map;for(let p of m)p.group?(u.has(p.group)||u.set(p.group,{slug:p.group,title:p.groupTitle||p.group,routes:[],icon:p.groupIcon}),u.get(p.group).routes.push(p)):l.push(p);return{groups:Array.from(u.values()),ungrouped:l,activeRoute:a,activePath:n,config:t}}_r();s();var ds=require("react");function or(e=[]){let[t,o]=(0,ds.useState)(null);return{headings:e,activeId:t,setActiveId:o}}s();var us=require("react-router-dom"),kt=require("react");function rr(e=[],t=[]){let o=(0,us.useLocation)(),r=(0,kt.useRef)([]),[n,a]=(0,kt.useState)({opacity:0,transform:"translateX(0) scaleX(0)",width:0}),m=t.find(d=>d.path===o.pathname)?.tab?.toLowerCase(),l=e.findIndex(d=>d.id.toLowerCase()===m),u=l===-1?0:l;return(0,kt.useEffect)(()=>{let d=r.current[u];d&&a({opacity:1,width:d.offsetWidth,transform:`translateX(${d.offsetLeft}px)`})},[u,e.length,o.pathname]),{tabs:e,activeIndex:u,indicatorStyle:n,tabRefs:r,activeTabId:m}}s();var fs=require("react-router-dom");s();function Ze(e,t,o){let r=e;return t&&(r===t||r.startsWith(t+"/"))&&(r=r===t?"index.md":r.slice(t.length+1)),o&&(r===o||r.startsWith(o+"/"))&&(r=r===o?"index.md":r.slice(o.length+1)),r}ce();Mt();function nr(){let e=(0,fs.useNavigate)(),t=A(),{allRoutes:o,currentRoute:r,currentVersion:n,currentLocale:a,config:i}=t,m=i.versions,l=le(p=>p.setVersion),u=p=>{if(!m||p===n)return;l(p);let f=`/docs/${p}`;if(r){let b=Ze(r.filePath,r.version,r.locale),x=o.find(v=>Ze(v.filePath,v.version,v.locale)===b&&(v.version||m.defaultVersion)===p&&(a?v.locale===a:!v.locale));if(x)f=x.path;else{let v=o.find(h=>Ze(h.filePath,h.version,h.locale)==="index.md"&&(h.version||m.defaultVersion)===p&&(a?h.locale===a:!h.locale));f=v?v.path:`/docs/${p}${a?`/${a}`:""}`}}e(f)},d=t.availableVersions.map(p=>({...p,label:p.label,value:p.key}));return{currentVersion:n,currentVersionLabel:t.currentVersionLabel,availableVersions:d,handleVersionChange:u}}s();var gs=require("react-router-dom");ce();Mt();function sr(){let e=(0,gs.useNavigate)(),t=A(),{allRoutes:o,currentRoute:r,currentLocale:n,config:a}=t,i=a.i18n,m=le(f=>f.setLocale),l=f=>{if(!i||f===n)return;m(f);let b="/";if(r){let x=Ze(r.filePath,r.version,r.locale),v=o.find(h=>Ze(h.filePath,h.version,h.locale)===x&&(h.locale||i.defaultLocale)===f&&h.version===r.version);if(v)b=v.path;else{let h=o.find(S=>Ze(S.filePath,S.version,S.locale)==="index.md"&&(S.locale||i.defaultLocale)===f&&S.version===r.version);b=h?h.path:f===i.defaultLocale?r.version?`/${r.version}`:"/":r.version?`/${r.version}/${f}`:`/${f}`}}else{let x=o.find(v=>(v.filePath==="index.mdx"||v.filePath==="index.md")&&(v.locale||i.defaultLocale)===f&&!v.version);x?b=x.path:b=f===i.defaultLocale?"/":`/${f}`}e(b)},d=a.i18n?.localeConfigs?.[n]?.label||a.i18n?.locales[n]||n,p=a.i18n?Object.entries(a.i18n.locales).map(([f,b])=>{let x=a.i18n?.localeConfigs?.[f];return{key:f,label:x?.label||b,value:f,isCurrent:f===n}}):[];return{currentLocale:n,currentLocaleLabel:d,availableLocales:p,handleLocaleChange:l}}s();var hs=require("react-router-dom");ce();function ar(){let{routes:e,currentRoute:t}=A(),o=(0,hs.useLocation)();if(!t)return{prevPage:null,nextPage:null,currentRoute:null};let r=t.tab?.toLowerCase(),n=r?e.filter(l=>l.tab?.toLowerCase()===r):e.filter(l=>!l.tab),a=n.findIndex(l=>l.path===o.pathname),i=a>0?n[a-1]:null,m=a!==-1&&a<n.length-1?n[a+1]:null;return{prevPage:i,nextPage:m,currentRoute:t}}s();ce();function ir(){let{currentRoute:e}=A(),t=[];return e&&(e.groupTitle&&t.push({label:e.groupTitle}),t.push({label:e.title,href:e.path})),{crumbs:t,activeRoute:e}}eo();s();var bs=require("react-router-dom"),lr=()=>(0,bs.useLocation)();s();N();var st=require("react/jsx-runtime");function pi({children:e,className:t,style:o}){return(0,st.jsx)("div",{className:c("h-screen flex flex-col overflow-hidden bg-bg-main text-text-main",t),style:o,children:e})}function di({children:e,className:t,style:o}){return(0,st.jsx)("div",{className:c("mx-auto flex flex-1 w-full max-w-(--breakpoint-3xl) bg-bg-main overflow-hidden",t),style:o,children:e})}function ui({children:e,className:t,style:o}){return(0,st.jsx)("main",{className:c("boltdocs-content flex-1 min-w-0 overflow-y-auto","contain-layout",t),style:o,children:e})}function fi({children:e,className:t,style:o}){let{pathname:r}=lr();return(0,st.jsx)("div",{className:c("boltdocs-page mx-auto pt-4 pb-20 px-4 sm:px-8",{"max-w-content-max":r.includes("/docs/")},t),style:o,children:e})}function gi({children:e,className:t,style:o}){return(0,st.jsx)("div",{className:c("flex items-center justify-between mb-10",t),style:o,children:e})}function hi({children:e,className:t,style:o}){return(0,st.jsx)("div",{className:c("mt-20",t),style:o,children:e})}var Qe=Object.assign(pi,{Body:di,Content:ui,ContentMdx:fi,ContentHeader:gi,ContentFooter:hi});s();s();var dr=require("react");ce();Ft();s();var cr=require("react"),Ge=require("lucide-react");var xs=require("react-aria-components");Ut();var Z=require("react/jsx-runtime");function vs(){let{theme:e,setTheme:t}=je(),[o,r]=(0,cr.useState)(!1);if((0,cr.useEffect)(()=>{r(!0)},[]),!o)return(0,Z.jsx)("div",{className:"h-9 w-9"});let n=e==="system"?Ge.Monitor:e==="dark"?Ge.Moon:Ge.Sun;return(0,Z.jsxs)(T.Trigger,{placement:"bottom right",children:[(0,Z.jsx)(xs.Button,{className:"flex h-9 w-9 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-bg-surface hover:text-text-main outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Selection theme",children:(0,Z.jsx)(n,{size:20,className:"animate-in fade-in zoom-in duration-300"})}),(0,Z.jsxs)(T.Root,{selectionMode:"single",selectedKeys:[e],onSelectionChange:a=>{let i=Array.from(a)[0];t(i)},children:[(0,Z.jsxs)(T.Item,{id:"light",children:[(0,Z.jsx)(Ge.Sun,{size:16}),(0,Z.jsx)("span",{children:"Light"})]}),(0,Z.jsxs)(T.Item,{id:"dark",children:[(0,Z.jsx)(Ge.Moon,{size:16}),(0,Z.jsx)("span",{children:"Dark"})]}),(0,Z.jsxs)(T.Item,{id:"system",children:[(0,Z.jsx)(Ge.Monitor,{size:16}),(0,Z.jsx)("span",{children:"System"})]})]})]})}s();var mr=require("react");s();var bi="https://api.github.com";async function ys(e,t,o=bi){let r=new Headers;t&&r.append("authorization",t);let a=await(await fetch(`${o}/repos/${e}`,{headers:r})).json();return a.stargazers_count!==void 0?xi(a.stargazers_count):"0"}var xi=e=>Intl.NumberFormat("en",{notation:"compact",compactDisplay:"short"}).format(e);Ht();var jt=require("react/jsx-runtime");function Cs({repo:e}){let[t,o]=(0,mr.useState)(null);return(0,mr.useEffect)(()=>{e&&ys(e).then(r=>o(r)).catch(()=>o("0"))},[e]),(0,jt.jsxs)("a",{href:`https://github.com/${e}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs font-medium text-text-muted transition-all hover:bg-bg-main hover:border-border-strong hover:text-text-main",children:[(0,jt.jsx)(ao,{className:"h-4 w-4"}),t&&(0,jt.jsx)("span",{className:"tabular-nums",children:t})]})}s();Xo();ot();var vi=I(require("lucide-react"));ce();var Oe=require("react/jsx-runtime");function Rs({tabs:e,routes:t}){let{currentLocale:o}=A(),{indicatorStyle:r,tabRefs:n,activeIndex:a}=rr(e,t),i=m=>{if(!m)return null;if(m.trim().startsWith("<svg"))return(0,Oe.jsx)("span",{className:"h-4 w-4",dangerouslySetInnerHTML:{__html:m}});let l=vi[m];return l?(0,Oe.jsx)(l,{size:16}):(0,Oe.jsx)("img",{src:m,alt:"",className:"h-4 w-4 object-contain"})};return(0,Oe.jsx)("div",{className:"mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6",children:(0,Oe.jsxs)(ke.List,{className:"border-none py-0",children:[e.map((m,l)=>{let u=l===a,d=t.find(f=>f.tab&&f.tab.toLowerCase()===m.id.toLowerCase()),p=d?d.path:"#";return(0,Oe.jsxs)(W,{href:p,ref:f=>{n.current[l]=f},className:`relative flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors outline-none ${u?"text-primary-500":"text-text-muted hover:text-text-main"}`,children:[i(m.icon),(0,Oe.jsx)("span",{children:Je(m.text,o)})]},m.id)}),(0,Oe.jsx)(ke.Indicator,{style:r})]})})}var Ts=require("react-router-dom");Ut();Vt();var Kt=require("lucide-react");eo();var y=require("react/jsx-runtime"),Ci=(0,dr.lazy)(()=>Promise.resolve().then(()=>(ws(),Ns)).then(e=>({default:e.SearchDialog})));function ur(){let{links:e,title:t,logo:o,logoProps:r,github:n,social:a,config:i}=Qo(),{routes:m,allRoutes:l,currentVersion:u,currentLocale:d}=A(),{pathname:p}=(0,Ts.useLocation)(),f=i.theme||{},b=p.startsWith("/docs"),x=f?.tabs&&f.tabs.length>0;return(0,y.jsxs)(ee.Root,{className:x?"border-b-0":"",children:[(0,y.jsxs)(ee.Content,{children:[(0,y.jsxs)(ee.Left,{children:[o&&(0,y.jsx)(ee.Logo,{src:o,alt:r?.alt||t,width:r?.width??24,height:r?.height??24}),(0,y.jsx)(ee.Title,{children:t}),i.versions&&u&&(0,y.jsx)(Pi,{})]}),(0,y.jsx)(ee.Center,{children:(0,y.jsx)(dr.Suspense,{fallback:(0,y.jsx)("div",{className:"h-9 w-32 animate-pulse rounded-md bg-bg-surface"}),children:(0,y.jsx)(Ci,{routes:m||[]})})}),(0,y.jsxs)(ee.Right,{children:[(0,y.jsx)(ee.Links,{children:e.map(v=>(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(Ri,{link:v},v.href)}))}),i.i18n&&d&&(0,y.jsx)(Ni,{}),(0,y.jsx)(ee.Split,{}),(0,y.jsx)(vs,{}),n&&(0,y.jsx)(Cs,{repo:f?.githubRepo??""}),a.length>0&&(0,y.jsx)(ee.Split,{}),(0,y.jsx)("div",{className:"flex items-center gap-1",children:a.map(({icon:v,link:h})=>(0,y.jsx)(ee.Socials,{icon:v,link:h,className:"p-1.5"},h))})]})]}),b&&x&&f?.tabs&&(0,y.jsx)("div",{className:"w-full border-b border-border-subtle bg-bg-main",children:(0,y.jsx)(Rs,{tabs:f.tabs,routes:l||m||[]})})]})}function Ri({link:e}){let t=tt(e.href||"");return(0,y.jsx)(ee.Link,{...e,href:t})}function Pi(){let{currentVersionLabel:e,availableVersions:t,handleVersionChange:o}=nr();return t.length===0?null:(0,y.jsxs)(T.Trigger,{children:[(0,y.jsx)(me,{variant:"outline",size:"sm",rounded:"lg",iconPosition:"right",icon:(0,y.jsx)(Kt.ChevronDown,{className:"w-3.5 h-3.5 text-text-muted/60"}),className:"h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5",children:(0,y.jsx)("span",{className:"font-semibold text-[0.8125rem]",children:e})}),(0,y.jsx)(T.Root,{children:(0,y.jsx)(T.Section,{items:t,children:r=>(0,y.jsx)(T.Item,{onPress:()=>o(r.value),children:r.label},`${r.value??""}`)})})]})}function Ni(){let{currentLocale:e,availableLocales:t,handleLocaleChange:o}=sr();return t.length===0?null:(0,y.jsxs)(T.Trigger,{children:[(0,y.jsx)(me,{variant:"outline",size:"sm",rounded:"lg",iconPosition:"right",icon:(0,y.jsx)(Kt.ChevronDown,{className:"w-3.5 h-3.5 text-text-muted/60"}),className:"h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5 px-2.5",children:(0,y.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,y.jsx)(Kt.Languages,{className:"w-3.5 h-3.5 text-primary-500"}),(0,y.jsx)("span",{className:"font-bold text-[0.75rem] tracking-wider uppercase opacity-90",children:e||"en"})]})}),(0,y.jsx)(T.Root,{children:(0,y.jsx)(T.Section,{items:t,children:r=>(0,y.jsx)(T.Item,{onPress:()=>o(r.value),children:(0,y.jsxs)("div",{className:"flex items-center justify-between w-full gap-4",children:[(0,y.jsx)("span",{children:r.label}),(0,y.jsx)("span",{className:"text-[10px] font-bold opacity-40 uppercase tracking-tighter",children:r.value})]})},`${r.value??""}`)})})]})}s();var St=require("react");Jo();s();var Ls=require("lucide-react"),at=require("react/jsx-runtime");function ks(){return(0,at.jsx)("div",{className:"flex items-center justify-center mt-10 mb-4 px-4 w-full",children:(0,at.jsxs)("a",{href:"https://github.com/jesusalcaladev/boltdocs",target:"_blank",rel:"noopener noreferrer",className:"group relative flex items-center gap-2 px-4 py-2 rounded-full border border-border-subtle bg-bg-surface/50 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:bg-bg-surface hover:shadow-xl hover:shadow-primary-500/5 select-none",children:[(0,at.jsx)(Ls.Zap,{className:"w-3.5 h-3.5 text-text-muted group-hover:text-primary-500 transition-colors duration-300",fill:"currentColor"}),(0,at.jsxs)("span",{className:"text-[11px] font-medium text-text-muted group-hover:text-text-main transition-colors duration-300 tracking-wide",children:["Powered by"," ",(0,at.jsx)("strong",{className:"font-bold text-text-main/80 group-hover:text-text-main",children:"Boltdocs"})]})]})})}var wi=I(require("lucide-react")),De=require("react/jsx-runtime");function Ss(e){return e&&wi[e]||void 0}function Ti({group:e,activePath:t,getIcon:o}){let r=(0,St.useMemo)(()=>e.routes.some(i=>i.path===t),[e.routes,t]),[n,a]=(0,St.useState)(!0);return(0,St.useEffect)(()=>{r&&a(!0)},[r]),(0,De.jsx)(he.Group,{title:e.title,isOpen:n,onToggle:()=>a(!n),children:e.routes.map(i=>{let m=t===(i.path.endsWith("/")?i.path.slice(0,-1):i.path);return(0,De.jsx)(he.Link,{label:i.title,href:i.path,active:m,icon:o(i.icon),badge:i.badge},i.path)})})}function fr({routes:e,config:t}){let{groups:o,ungrouped:r,activePath:n}=er(e),a=t.theme||{};return(0,De.jsxs)(he.Root,{children:[r.length>0&&(0,De.jsx)(he.Group,{className:"mb-6",children:r.map(i=>{let m=n===(i.path.endsWith("/")?i.path.slice(0,-1):i.path);return(0,De.jsx)(he.Link,{label:i.title,href:i.path,active:m,icon:Ss(i.icon),badge:i.badge},i.path)})}),o.map(i=>(0,De.jsx)(Ti,{group:i,activePath:n,getIcon:Ss},i.slug)),a?.poweredBy&&(0,De.jsx)("div",{className:"mt-auto pt-8",children:(0,De.jsx)(ks,{})})]})}s();jo();var Se=I(require("react"));var It=require("lucide-react"),O=require("react/jsx-runtime");function gr({headings:e=[],editLink:t,communityHelp:o,filePath:r}){let{headings:n}=or(e),a=Se.default.useMemo(()=>n.map(i=>({title:i.text,url:`#${i.id}`,depth:i.level})),[n]);return n.length===0?null:(0,O.jsx)(Uo,{toc:a,children:(0,O.jsx)(Li,{headings:n,editLink:t,communityHelp:o,filePath:r})})}function Li({headings:e,editLink:t,communityHelp:o,filePath:r}){let n=Go(),[a,i]=(0,Se.useState)({opacity:0}),m=(0,Se.useRef)(null),l=(0,Se.useRef)(null);(0,Se.useEffect)(()=>{if(!n||!m.current)return;let d=m.current.querySelector(`a[href="#${n}"]`);d&&i({transform:`translateY(${d.offsetTop}px)`,height:`${d.offsetHeight}px`,opacity:1})},[n]);let u=(0,Se.useCallback)((d,p)=>{d.preventDefault();let f=document.getElementById(p);f&&(f.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",`#${p}`))},[]);return(0,O.jsxs)(j.Root,{children:[(0,O.jsxs)(j.Header,{className:"flex flex-row gap-x-2",children:[(0,O.jsx)(It.TextAlignStart,{size:16}),"On this page"]}),(0,O.jsx)(_o,{containerRef:l,children:(0,O.jsxs)(j.Content,{className:"max-h-[450px] boltdocs-otp-scroll-area",ref:l,children:[(0,O.jsx)(j.Indicator,{style:a}),(0,O.jsx)("ul",{className:"relative space-y-2 border-l border-border-subtle",ref:m,children:e.map(d=>(0,O.jsx)(j.Item,{level:d.level,children:(0,O.jsx)(j.Link,{href:`#${d.id}`,active:n===d.id,onClick:p=>u(p,d.id),className:"pl-4",children:d.text})},d.id))})]})}),(t||o)&&(0,O.jsxs)("div",{className:"mt-8 pt-8 border-t border-border-subtle space-y-4",children:[(0,O.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-text-main",children:"Need help?"}),(0,O.jsxs)("ul",{className:"space-y-3",children:[t&&r&&(0,O.jsx)("li",{children:(0,O.jsxs)("a",{href:t.replace(":path",r),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors",children:[(0,O.jsx)(It.Pencil,{size:16}),"Edit this page"]})}),o&&(0,O.jsx)("li",{children:(0,O.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors",children:[(0,O.jsx)(It.CircleHelp,{size:16}),"Community help"]})})]})]})]})}s();var Is=require("react"),As=require("react-router-dom");function hr({siteTitle:e,siteDescription:t,routes:o}){let r=(0,As.useLocation)();return(0,Is.useEffect)(()=>{let n=o.find(u=>u.path===r.pathname),a=n?.title,i=n?.description||t||"";document.title=a?`${a} | ${e}`:e;let m=document.querySelector('meta[name="description"]');m||(m=document.createElement("meta"),m.name="description",document.head.appendChild(m)),m.content=i,it("property","og:title",document.title),it("property","og:description",i),it("property","og:type","article"),it("property","og:url",window.location.href),it("name","twitter:card","summary"),it("name","twitter:title",document.title),it("name","twitter:description",i);let l=document.querySelector('link[rel="canonical"]');l||(l=document.createElement("link"),l.rel="canonical",document.head.appendChild(l)),l.href=window.location.origin+r.pathname},[r.pathname,e,t,o]),null}function it(e,t,o){let r=document.querySelector(`meta[${e}="${t}"]`);r||(r=document.createElement("meta"),r.setAttribute(e,t),document.head.appendChild(r)),r.content=o}s();var Bs=require("lucide-react");Yo();N();Pe();var _e=require("react/jsx-runtime");function br(){let{crumbs:e,activeRoute:t}=ir(),r=F().theme||{};return e.length===0||!r?.breadcrumbs?null:(0,_e.jsxs)(ae.Root,{children:[(0,_e.jsx)(ae.Item,{children:(0,_e.jsx)(ae.Link,{href:"/",children:(0,_e.jsx)(Bs.Home,{size:14})})}),e.map((n,a)=>(0,_e.jsxs)(ae.Item,{children:[(0,_e.jsx)(ae.Separator,{}),(0,_e.jsx)(ae.Link,{href:n.href,className:c({"font-medium text-text-main":n.href===t?.path}),children:n.label})]},`crumb-${n.href}-${n.label}-${a}`))]})}s();qo();var ze=require("react/jsx-runtime");function xr(){let{prevPage:e,nextPage:t}=ar();return!e&&!t?null:(0,ze.jsxs)(J.Root,{className:"animate-in fade-in slide-in-from-bottom-4 duration-700",children:[e?(0,ze.jsxs)(J.Link,{to:e.path,direction:"prev",children:[(0,ze.jsx)(J.Title,{children:"Previous"}),(0,ze.jsx)(J.Description,{children:e.title})]}):(0,ze.jsx)("div",{}),t&&(0,ze.jsxs)(J.Link,{to:t.path,direction:"next",children:[(0,ze.jsx)(J.Title,{children:"Next"}),(0,ze.jsx)(J.Description,{children:t.title})]})]})}s();var Ms=require("react");Do();var At=require("react/jsx-runtime"),Bt=class extends Ms.Component{state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error in Boltdocs Layout:",t,o)}render(){return this.state.hasError?this.props.fallback||(0,At.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[40vh] text-center gap-4 px-4",children:[(0,At.jsx)("div",{className:"text-lg font-bold text-red-400",children:"Something went wrong"}),(0,At.jsx)("p",{className:"text-sm text-text-muted max-w-md",children:this.state.error?.message||"An unexpected error occurred while rendering this page."}),(0,At.jsx)(me,{className:"rounded-lg border border-border-subtle bg-bg-surface px-5 py-2 text-sm font-medium text-text-main transition-colors hover:bg-bg-muted cursor-pointer",onPress:()=>this.setState({hasError:!1}),children:"Try again"})]}):this.props.children}};ce();Pe();var Es=require("react-router-dom");var ne=require("react/jsx-runtime");function Vs({children:e}){let{routes:t,allRoutes:o,currentRoute:r,currentLocale:n}=A(),{pathname:a}=(0,Es.useLocation)(),i=F(),l=lt().CopyMarkdown||Tt,u=a==="/"||a==="";return(0,ne.jsxs)(Qe,{children:[(0,ne.jsx)(hr,{siteTitle:Je(i.theme?.title,n)||"Boltdocs",siteDescription:Je(i.theme?.description,n)||"",routes:o}),(0,ne.jsx)(ur,{}),(0,ne.jsxs)(Qe.Body,{children:[!u&&(0,ne.jsx)(fr,{routes:t,config:i}),(0,ne.jsxs)(Qe.Content,{children:[!u&&(0,ne.jsxs)(Qe.ContentHeader,{children:[(0,ne.jsx)(br,{}),(0,ne.jsx)(l,{mdxRaw:r?._rawContent,route:r,config:i.theme?.copyMarkdown})]}),(0,ne.jsx)(Bt,{children:e}),!u&&(0,ne.jsx)(Qe.ContentFooter,{children:(0,ne.jsx)(xr,{})})]}),!u&&(0,ne.jsx)(gr,{headings:r?.headings,editLink:i.theme?.editLink,communityHelp:i.theme?.communityHelp,filePath:r?.filePath})]})]})}Ft();Er();zo();jo();qo();Xo();Jo();Yo();Vt();Or();Ut();Dr();wr();ot();$r();N();
1
+ /**
2
+ * Boltdocs - https://boltdocs.vercel.app
3
+ * Copyright (c) 2026 Jesus Alcala
4
+ * Licensed under the MIT License.
5
+ */
6
+ import{A as e,B as t,C as n,D as r,E as i,F as a,H as o,I as s,L as c,M as l,N as u,O as d,P as f,R as p,S as m,T as h,U as g,V as _,_ as ee,a as v,b as y,c as te,d as b,f as ne,g as re,h as ie,i as ae,j as x,k as oe,l as S,m as se,n as C,o as w,p as ce,r as T,s as E,t as le,u as ue,v as D,w as de,x as fe,y as O,z as k}from"../use-search-C9bxCqfF.js";import{Outlet as pe,useLoaderData as me,useLocation as A,useNavigate as he}from"react-router-dom";import ge from"virtual:boltdocs-layout";import{Children as j,Component as _e,Suspense as ve,createContext as ye,isValidElement as M,lazy as be,use as xe,useCallback as N,useEffect as P,useLayoutEffect as Se,useMemo as F,useRef as I,useState as L}from"react";import{Fragment as R,jsx as z,jsxs as B}from"react/jsx-runtime";import*as V from"react-aria-components";import{Button as Ce,RouterProvider as we}from"react-aria-components";import{Helmet as Te,HelmetProvider as Ee}from"react-helmet-async";import*as De from"lucide-react";import{AlertTriangle as Oe,ArrowLeft as ke,Bookmark as Ae,Check as je,ChevronDown as H,ChevronLeft as Me,ChevronRight as U,ChevronUp as Ne,ChevronsLeft as Pe,ChevronsRight as Fe,Circle as Ie,CircleHelp as Le,Copy as W,ExternalLink as Re,File as ze,FileCode as Be,FileImage as Ve,FileText as He,Flame as Ue,Folder as We,Home as Ge,Info as Ke,Languages as qe,Lightbulb as Je,Link as Ye,Monitor as Xe,Moon as Ze,Pencil as Qe,ShieldAlert as $e,Sun as et,TextAlignStart as tt,Zap as nt}from"lucide-react";import{cva as G}from"class-variance-authority";import rt from"virtual:boltdocs-mdx-components";import it from"virtual:boltdocs-icons";var at=Object.defineProperty,ot=(e,t)=>{let n={};for(var r in e)at(n,r,{get:e[r],enumerable:!0});return t||at(n,Symbol.toStringTag,{value:`Module`}),n};function st(e){return e}const ct=Symbol.for(`__BDOCS_MDX_COMPONENTS_CONTEXT__`),lt=Symbol.for(`__BDOCS_MDX_COMPONENTS_INSTANCE__`),ut=globalThis[ct]||(globalThis[ct]=ye({}));function dt(){let e=xe(ut);return(!e||Object.keys(e).length===0)&&globalThis[lt]?globalThis[lt]:e}function ft({components:e,children:t}){return typeof globalThis<`u`&&(globalThis[lt]=e),z(ut.Provider,{value:e,children:t})}function pt({route:e,content:t,mdxComponents:n}){let r=dt(),i=F(()=>({...r,...n}),[r,n]);return t?z(ge,{route:e,children:z(t,{components:i})}):null}function mt({MDXComponent:e,mdxComponents:t}){let n=me(),r=e||n?.MDXComponent,i=t||n?.mdxComponents;return r?z(pt,{route:{path:n.path,filePath:n.filePath,title:n.frontmatter.title,description:n.frontmatter.description,headings:n.headings,locale:n.locale,version:n.version,group:n.group,groupTitle:n.groupTitle},content:r,mdxComponents:i}):null}const ht=Symbol.for(`__BDOCS_THEME_CONTEXT__`),gt=Symbol.for(`__BDOCS_THEME_INSTANCE__`),_t=`boltdocs-theme-change`,vt=globalThis[ht]||(globalThis[ht]=ye(void 0));function yt({children:e}){let[t,n]=L(`system`),[r,i]=L(`dark`),a=e=>{let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=e===`dark`||e===`system`&&t.matches,r=window.document.documentElement;r.classList.toggle(`dark`,n),r.dataset.theme=n?`dark`:`light`,i(n?`dark`:`light`)};P(()=>{let e=localStorage.getItem(`boltdocs-theme`);e?(n(e),a(e)):a(`system`);let t=window.matchMedia(`(prefers-color-scheme: dark)`),r=()=>{(localStorage.getItem(`boltdocs-theme`)||`system`)===`system`&&a(`system`)};return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[]);let o={theme:t,resolvedTheme:r,setTheme:e=>{n(e),localStorage.setItem(`boltdocs-theme`,e),a(e),typeof window<`u`&&window.dispatchEvent(new CustomEvent(_t,{detail:e}))}};return typeof globalThis<`u`&&(globalThis[gt]=o),z(vt.Provider,{value:o,children:e})}function K(){let e=xe(vt),[,t]=L({});if(P(()=>{if(e)return;let n=()=>t({});return window.addEventListener(_t,n),()=>window.removeEventListener(_t,n)},[e]),!e&&typeof globalThis<`u`&&globalThis[gt])return globalThis[gt];if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function bt(){let{pathname:e,hash:t}=A();return Se(()=>{let e=document.querySelector(`.boltdocs-content`)||window,n=()=>e===window?window.scrollY:e.scrollTop,r=(t,n=`auto`)=>{e===window?window.scrollTo({top:t,behavior:n}):e.scrollTo({top:t,behavior:n})};if(t){let i=t.replace(`#`,``),a=document.getElementById(i);if(a){let t=e===window?0:e.getBoundingClientRect().top;r(a.getBoundingClientRect().top-t-80+n(),`smooth`);return}}r(0)},[e,t]),null}const xt=({className:e,variant:t,size:n,rounded:r,iconSize:i,disabled:a,...o})=>z(c,{className:k(`group`,p({variant:t,size:n,rounded:r,iconSize:i,disabled:a,className:e})),...o}),St=(e,t)=>{if(e==null||typeof e==`boolean`)return``;if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e))return e.map(e=>St(e,t)).join(``);if(M(e)){let n=t?.get(e.type);return n?n(e.props):St(e.props.children,t)}return``},Ct=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}};function wt(e){let{title:t}=e,[n,r]=L(!1),[i,a]=L(!1),[o,s]=L(!1),c=I(null);_();let l=N(async()=>{Ct(c.current?.textContent??``),r(!0),setTimeout(()=>r(!1),2e3)},[]);return P(()=>{s((c.current?.textContent?.length??0)>120)},[e.children,e.highlightedHtml]),{copied:n,isExpanded:i,setIsExpanded:a,isExpandable:o,preRef:c,handleCopy:l,shouldTruncate:o&&!i}}const Tt=({children:e,className:t,plain:n=!1,...r})=>z(`div`,{className:k(`not-prose boltdocs-code-block`,`group relative overflow-hidden bg-(--color-code-bg)`,`contain-layout contain-paint`,{"my-6 rounded-lg border border-border-subtle":!n},t),...r,children:e}),Et=({children:e,className:t,...n})=>z(`div`,{className:k(`flex h-9 items-center justify-between px-4 py-1.5`,`border-b border-border-subtle bg-bg-surface/50`,`text-[13px] font-medium text-text-muted`,t),...n,children:e}),Dt=({children:e,className:t,...n})=>z(`div`,{className:k(`flex items-center space-x-2`,t),...n,children:e}),Ot=({className:e,children:t,shouldTruncate:n=!1,...r})=>z(`div`,{className:k(`relative`,{"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":n},e),...r,children:t}),kt={ts:a,tsx:l,js:oe,jsx:l,json:e,css:r,html:h,md:x,mdx:x,bash:f,sh:f,yaml:s,yml:s,rs:u,rust:u,toml:i},At=({copied:e,handleCopy:t})=>z(de,{content:e?`Copied!`:`Copy code`,children:z(Ce,{onPress:t,className:k(`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`,e?`text-emerald-400`:`text-text-muted hover:text-text-main`),"aria-label":`Copy code`,children:z(e?je:W,{size:20})})});function q(e){let{children:t,hideCopy:n=!1,highlightedHtml:r,"data-highlighted-html":i,title:a,"data-title":o,"data-lang":s,plain:c=!1,...l}=e,u=r||i,d=a||o,f=e.lang||s||``,{copied:p,isExpanded:m,setIsExpanded:h,isExpandable:g,preRef:_,handleCopy:ee,shouldTruncate:v}=wt(e),y=kt[f];return B(Tt,{plain:c,className:e.className,children:[(d||!n)&&B(Et,{children:[z(Dt,{children:d&&B(R,{children:[y?z(y,{size:14}):z(ze,{size:14,className:`opacity-60`}),z(`span`,{children:d})]})}),!n&&z(At,{copied:p,handleCopy:ee})]}),B(Ot,{shouldTruncate:v,children:[u?z(`div`,{ref:_,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:u}}):z(`pre`,{ref:_,className:`m-0! p-5! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7] overflow-x-auto`,...l,children:St(t)}),g&&z(`div`,{className:k(v?`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:z(Ce,{onPress:()=>h(!m),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:m?`Show less`:`Expand code`})})]})]})}function jt({initialIndex:e=0,tabs:t}){let n=t[e]?.props.disabled?t.findIndex(e=>!e.props.disabled):e,[r,i]=L(n===-1?0:n),a=I([]),[o,s]=L({opacity:0,transform:`translateX(0)`,width:0});return P(()=>{let e=a.current[r];e&&s({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[r,t]),{active:r,setActive:i,tabRefs:a,indicatorStyle:o,handleKeyDown:N(e=>{let n=0;if(e.key===`ArrowRight`?n=1:e.key===`ArrowLeft`&&(n=-1),n!==0){let e=(r+n+t.length)%t.length;for(;t[e].props.disabled&&e!==r;)e=(e+n+t.length)%t.length;e!==r&&!t[e].props.disabled&&(i(e),a.current[e]?.focus())}},[r,t])}}const Mt=G(`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`}}),Nt=G(`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 Pt({children:e}){return z(`div`,{className:`py-4`,children:typeof e==`string`?z(q,{className:`language-bash`,children:z(`code`,{children:e.trim()})}):e})}function Ft({defaultIndex:e=0,children:t}){let n=F(()=>j.toArray(t).filter(e=>M(e)&&e.props?.label),[t]),{active:r,setActive:i,tabRefs:a,indicatorStyle:o}=jt({initialIndex:e,tabs:n});return z(`div`,{className:`my-8 w-full group/tabs`,children:B(V.Tabs,{selectedKey:r.toString(),onSelectionChange:e=>i(Number(e)),className:`w-full`,children:[B(V.TabList,{"aria-label":`Content Tabs`,className:k(Mt()),children:[n.map((e,t)=>{let{label:n,icon:r,disabled:i}=e.props,o=t.toString();return B(V.Tab,{id:o,isDisabled:i,ref:e=>{a.current[t]=e},className:({isSelected:e,isDisabled:t})=>k(Nt({isActive:e,isDisabled:t})),children:[!!r&&z(`span`,{className:`shrink-0 [&>svg]:w-4 [&>svg]:h-4`,children:r}),z(`span`,{children:n})]},o)}),z(`div`,{className:`absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none`,style:o,"aria-hidden":`true`})]}),n.map((e,t)=>z(V.TabPanel,{id:t.toString(),children:n[t]},t))]})})}function It({src:e,poster:t,alt:n,children:r,controls:i,preload:a=`metadata`,...o}){let s=I(null),[c,l]=L(!1);return P(()=>{let e=s.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(l(!0),t.disconnect())},{rootMargin:`200px`});return t.observe(e),()=>t.disconnect()},[]),z(`div`,{ref:s,className:`my-6 overflow-hidden rounded-lg border border-border-subtle`,children:c?B(`video`,{className:`block w-full h-auto`,src:e,poster:t,controls:!0,preload:a,playsInline:!0,...o,children:[r,`Your browser does not support the video tag.`]}):z(`div`,{className:`aspect-video bg-bg-surface animate-pulse`,role:`img`,"aria-label":n||`Video`})})}const Lt=G(`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 Rt({variant:e=`default`,children:t,className:n=``,...r}){return z(`span`,{className:k(Lt({variant:e}),n),...r,children:t})}const zt=G(`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 Bt({cols:e=3,children:t,className:n=``,...r}){return z(`div`,{className:k(zt({cols:e}),n),...r,children:t})}function Vt({title:e,icon:t,href:n,children:r,className:i=``,...a}){let o=I(null),s=I(null),c=N(e=>{let t=o.current||s.current;if(!t)return;let{left:n,top:r}=t.getBoundingClientRect();t.style.setProperty(`--x`,`${e.clientX-n}px`),t.style.setProperty(`--y`,`${e.clientY-r}px`)},[]),l=B(R,{children:[z(`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&&z(`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}),B(`div`,{className:`space-y-1.5`,children:[e&&z(`h3`,{className:`text-sm font-bold text-text-main`,children:e}),r&&z(`div`,{className:`text-sm text-text-muted leading-relaxed`,children:r})]})]}),u=k(`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`,i);return n?z(V.Link,{ref:s,href:n,className:k(u,`no-underline cursor-pointer`),onMouseMove:c,...a,children:l}):z(`div`,{ref:o,role:`presentation`,className:u,onMouseMove:c,...a,children:l})}const Ht={note:z(Ae,{size:18}),tip:z(Je,{size:18}),info:z(Ke,{size:18}),warning:z(Oe,{size:18}),danger:z($e,{size:18}),important:z(Ue,{size:18}),caution:z(nt,{size:18})},Ut=G(`py-4 px-4 rounded-lg flex items-center gap-3 border-[1px] flex-row`,{variants:{type:{note:`border-primary-200 dark:border-primary-800 bg-primary-500/5 text-primary-400`,tip:`border-emerald-200 dark:border-emerald-800 bg-emerald-500/5 text-emerald-500`,info:`border-sky-200 dark:border-sky-800 bg-sky-500/5 text-sky-500`,warning:`border-amber-200 dark:border-amber-800 bg-amber-500/5 text-amber-500`,danger:`border-red-200 dark:border-red-800/70 bg-red-500/5 text-red-500`,important:`border-orange-200 dark:border-orange-800/70 bg-orange-500/5 text-orange-500`,caution:`border-yellow-200 dark:border-yellow-800/70 bg-yellow-500/5 text-yellow-500`}},defaultVariants:{type:`note`}});function J({type:e=`note`,title:t,children:n,className:r=``,...i}){return B(`div`,{className:k(Ut({type:e}),r),role:e===`warning`||e===`danger`?`alert`:`note`,...i,children:[Ht[e],z(`div`,{className:`text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0`,children:n})]})}const Wt=e=>z(J,{type:`note`,...e}),Gt=e=>z(J,{type:`tip`,...e}),Kt=e=>z(J,{type:`warning`,...e}),qt=e=>z(J,{type:`danger`,...e}),Jt=e=>z(J,{type:`info`,...e}),Yt=e=>z(J,{type:`important`,...e}),Xt=e=>z(J,{type:`caution`,...e}),Zt=G(`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}}),Qt=G(`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}}),$t=G(`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 en({icon:e,children:t,variant:n,dense:r}){return B(`li`,{className:k(Qt({variant:n,dense:r})),children:[e&&z(`span`,{className:k($t({variant:n===`bubble`?`bubble`:`default`})),children:e}),z(`div`,{className:`flex-1 text-text-muted group-hover:text-text-main transition-colors`,children:t})]})}const tn={checked:e=>z(je,{size:14,className:k(`text-emerald-500 shrink-0`,e)}),arrow:e=>z(U,{size:14,className:k(`text-primary-400 shrink-0`,e)}),bubble:e=>z(Ie,{size:6,fill:`currentColor`,className:k(`text-primary-500 shrink-0`,e)}),default:()=>null,number:()=>null};function nn({variant:e=`default`,cols:t=1,dense:n=!1,children:r,className:i,...a}){let o=t!==void 0&&Number(t)>1,s=tn[e],c=Zt({variant:e,cols:t,dense:n,isGrid:o,className:i});return e===`default`||e===`number`?z(e===`number`?`ol`:`ul`,{className:c,...a,children:r}):z(`ul`,{className:c,...a,children:j.map(r,t=>{if(!M(t))return t;let r=t,i=r.type===`li`?r.props.children:r.props.children||t;return z(en,{icon:s(),variant:e,dense:n,children:i})})})}const rn={ts:a,tsx:l,js:oe,jsx:l,json:e,css:r,html:h,md:x,mdx:x,bash:f,sh:f,yaml:s,yml:s},an={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 on(e){return typeof e==`string`?e:typeof e==`number`?e.toString():Array.isArray(e)?e.map(on).join(``):M(e)&&e.props&&typeof e.props==`object`&&`children`in e.props?on(e.props.children):``}function sn(e,t){let n=e.toLowerCase(),r=`shrink-0 transition-colors duration-200`;if(t)return z(We,{size:16,strokeWidth:2,className:k(r,`text-primary-400`),fill:`currentColor`,fillOpacity:.15});let i=rn[n.split(`.`).pop()||``];if(i)return z(i,{size:16});let a=k(r,`text-text-dim group-hover:text-text-main`);return an.CODE.test(n)?z(Be,{size:16,strokeWidth:2,className:a}):an.TEXT.test(n)?z(He,{size:16,strokeWidth:2,className:a}):an.IMAGE.test(n)?z(Ve,{size:16,strokeWidth:2,className:a}):z(ze,{size:16,strokeWidth:2,className:a})}function cn(e,t){if(!M(e))return!1;let n=e.type;if(typeof n==`string`)return n===t;if(typeof n==`function`)return n.name===t||n.name?.toLowerCase()===t;let r=e.props;return r?.originalType===t||r?.mdxType===t}function ln(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function Y(e,t=`root`){if(!M(e))return[];let n=[];if(cn(e,`ul`))return j.forEach(e.props.children,(e,r)=>{n.push(...Y(e,`${t}-${r}`))}),n;if(cn(e,`li`)){let r=j.toArray(e.props.children),i=r.findIndex(e=>cn(e,`ul`)),a=i!==-1,o=a?r.slice(0,i):r,s=a?r.slice(i):[],{name:c,comment:l}=ln(on(o)),u=c.endsWith(`/`),d=u?c.slice(0,-1):c,f=a||u;return n.push({id:`${t}-${d}`,name:d,comment:l,isFolder:f,children:a?Y(s[0],`${t}-${d}`):void 0}),n}return e.props&&typeof e.props==`object`&&`children`in e.props&&j.forEach(e.props.children,(e,r)=>{n.push(...Y(e,`${t}-${r}`))}),n}function un({item:e}){return B(V.TreeItem,{id:e.id,textValue:e.name,className:`outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md`,children:[z(V.TreeItemContent,{children:({isExpanded:t,hasChildItems:n})=>B(`div`,{className:`flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer`,children:[z(`div`,{style:{width:`calc((var(--tree-item-level) - 1) * 1rem)`},className:`shrink-0`}),n?z(V.Button,{slot:`chevron`,className:`outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors`,children:z(U,{size:14,strokeWidth:3,className:k(`transition-transform duration-200`,t&&`rotate-90`)})}):z(`div`,{className:`w-[18px]`}),sn(e.name,e.isFolder),z(`span`,{className:k(`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&&B(`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&&z(V.Collection,{items:e.children,children:e=>z(un,{item:e})})]})}function dn({children:e}){let t=F(()=>Y(e),[e]);return z(`div`,{className:`my-8`,children:z(V.Tree,{items:t,"aria-label":`File Tree`,className:k(`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:e=>z(un,{item:e})})})}function fn({data:e,sortable:t=!1,paginated:n=!1,pageSize:r=10}){let[i,a]=L(null),[o,s]=L(1),c=F(()=>{if(!e)return[];let n=[...e];return t&&i!==null&&n.sort((e,t)=>{let n=e[i.key],r=t[i.key],a=typeof n==`string`?n:``,o=typeof r==`string`?r:``;return a<o?i.direction===`asc`?-1:1:a>o?i.direction===`asc`?1:-1:0}),n},[e,i,t]);return{sortConfig:i,currentPage:o,setCurrentPage:s,totalPages:Math.ceil(c.length/r),paginatedData:F(()=>{if(!n)return c;let e=(o-1)*r;return c.slice(e,e+r)},[c,n,o,r]),requestSort:e=>{if(!t)return;let n=`asc`;i&&i.key===e&&i.direction===`asc`&&(n=`desc`),a({key:e,direction:n})}}}function pn({headers:e,data:t,children:n,className:r=``,sortable:i=!1,paginated:a=!1,pageSize:o=10}){let{sortConfig:s,currentPage:c,setCurrentPage:l,totalPages:u,paginatedData:d,requestSort:f}=fn({data:t,sortable:i,paginated:a,pageSize:o}),p=e=>i?s?.key===e?s.direction===`asc`?z(Ne,{size:14,className:`ml-1 text-primary-400`}):z(H,{size:14,className:`ml-1 text-primary-400`}):z(H,{size:14,className:`ml-1 opacity-30`}):null,m=n||B(R,{children:[e&&z(`thead`,{children:z(`tr`,{children:e.map((e,t)=>z(`th`,{onClick:()=>f(t),className:k(`text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm`,i&&`cursor-pointer select-none hover:text-primary-400 transition-colors`),children:B(`div`,{className:`flex items-center`,children:[e,p(t)]})},t))})}),d&&z(`tbody`,{children:d.map((e,t)=>z(`tr`,{className:`transition-colors hover:bg-bg-surface`,children:e.map((e,t)=>z(`td`,{className:`px-3 py-2 border-b border-border-subtle text-sm text-text-muted`,children:e},t))},t))})]});return B(`div`,{className:k(`my-6 rounded-lg border border-border-subtle overflow-hidden`,r),children:[z(`div`,{className:`overflow-x-auto`,children:z(`table`,{className:`w-full border-collapse text-sm`,children:m})}),a&&u>1&&B(`div`,{className:`flex items-center justify-between border-t border-border-subtle px-4 py-3`,children:[B(`span`,{className:`text-xs text-text-muted`,children:[`Page `,c,` of `,u]}),B(`div`,{className:`flex items-center gap-1`,children:[z(V.Button,{onPress:()=>l(1),isDisabled:c===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:z(Pe,{size:16})}),z(V.Button,{onPress:()=>l(e=>Math.max(e-1,1)),isDisabled:c===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:z(Me,{size:16})}),z(V.Button,{onPress:()=>l(e=>Math.min(e+1,u)),isDisabled:c===u,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:z(U,{size:16})}),z(V.Button,{onPress:()=>l(u),isDisabled:c===u,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:z(Fe,{size:16})})]})]})]})}function mn({name:e,type:t,defaultValue:n,required:r=!1,children:i,id:a,className:o=``}){return B(`article`,{className:k(`group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300`,o),id:a,children:[B(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4`,children:[B(`div`,{className:`flex flex-wrap items-center gap-2.5`,children:[z(`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`,children:e}),t&&z(`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 shadow-sm`,children:t}),r&&B(`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 text-red-400 border border-red-500/20 shadow-sm`,children:[z(`span`,{className:`h-1 w-1 rounded-full bg-red-400 animate-pulse`}),`Required`]})]}),n&&B(`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:[z(`span`,{className:`font-semibold opacity-60 uppercase tracking-tighter`,children:`Default`}),z(`code`,{className:`font-mono text-text-main font-medium`,children:n})]})]}),z(`div`,{className:`text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30`,children:i})]})}function hn({to:e,children:t,className:n=``,...r}){let i=e&&(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`));return z(O,{href:e,className:k(`text-blue-600 hover:text-blue-800 hover:underline cursor-pointer`,n),target:i?`_blank`:void 0,rel:i?`noopener noreferrer`:void 0,...r,children:t})}function gn({src:e,alt:t,theme:n,...r}){let{theme:i}=K();return n&&n!==i?null:z(`img`,{src:e,alt:t||``,...r})}function _n({title:e,props:t,className:n=``}){return B(`div`,{className:k(`my-6`,n),children:[e&&z(`h3`,{className:`text-base font-bold text-text-main mb-3`,children:e}),z(`div`,{className:`overflow-x-auto rounded-lg border border-border-subtle`,children:B(`table`,{className:`w-full border-collapse text-sm`,children:[z(`thead`,{children:B(`tr`,{children:[z(`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`}),z(`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`}),z(`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`}),z(`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`})]})}),z(`tbody`,{children:t.map((e,t)=>B(`tr`,{className:`transition-colors hover:bg-bg-surface`,children:[B(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:[z(`code`,{className:`rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400`,children:e.name}),e.required&&z(`span`,{className:`ml-1 text-red-400 font-bold`,children:`*`})]}),z(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:z(`code`,{className:`rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted`,children:e.type})}),z(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:e.defaultValue?z(`code`,{className:`rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400`,children:e.defaultValue}):z(`span`,{className:`text-text-dim`,children:`—`})}),z(`td`,{className:`px-4 py-2.5 border-b border-border-subtle text-text-muted`,children:e.description})]},`${e.name}-${t}`))})]})})]})}function vn(e){let{code:t,children:n,preview:r}=e;return{initialCode:F(()=>(t??(typeof n==`string`?n:``)).trim(),[t,n]),previewElement:F(()=>r??(typeof n==`string`?null:n),[r,n])}}function yn(e){let{highlightedHtml:t,hideCode:n=!1,hideCopy:r=!1}=e,{initialCode:i,previewElement:a}=vn(e);return B(`div`,{className:`my-6 overflow-hidden rounded-xl border border-border-subtle`,children:[z(`div`,{className:`flex items-center justify-center p-8 bg-bg-surface`,children:a}),!n&&z(`div`,{className:`border-t border-border-subtle`,children:z(q,{hideCopy:r,lang:`tsx`,highlightedHtml:t,plain:!0,children:i})})]})}const bn=e=>{let[t,n]=L(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)},handleOpenRaw:()=>{let t=new Blob([e],{type:`text/plain;charset=utf-8`}),n=URL.createObjectURL(t);window.open(n,`_blank`)}}};function xn({content:e,mdxRaw:t,config:n}){let r=t||e||``,{copied:i,handleCopy:a,handleOpenRaw:o}=bn(r),s=n!==!1,l=typeof n==`object`&&n.text||`Copy Markdown`;return!s||!r?null:z(`div`,{className:`relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200`,children:B(v,{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:[z(c,{variant:`ghost`,onPress:a,icon:z(i?je:W,{size:16}),iconPosition:`left`,className:k(`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`,i&&`text-emerald-500 hover:bg-emerald-500/5`),children:i?`Copied!`:l}),B(T.Trigger,{placement:`bottom end`,children:[z(c,{variant:`ghost`,isIconOnly:!0,icon:z(H,{size:14}),className:k(`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`)}),B(T.Root,{className:`w-52`,children:[B(T.Item,{onAction:a,children:[z(W,{size:16,className:`size-4 mt-0.5 text-text-muted group-hover:text-primary-500`}),z(`span`,{className:`font-medium text-[0.8125rem]`,children:`Copy Markdown`})]}),B(T.Item,{onAction:o,children:[z(Re,{size:16,className:`size-4 mt-0.5 text-text-muted group-hover:text-primary-500`}),z(`span`,{className:`font-medium text-[0.8125rem]`,children:`View as Markdown`})]})]})]})]})})}var Sn=ot({Admonition:()=>J,Badge:()=>Rt,Button:()=>xt,Card:()=>Vt,Cards:()=>Bt,Caution:()=>Xt,CodeBlock:()=>q,ComponentPreview:()=>yn,ComponentProps:()=>_n,CopyMarkdown:()=>xn,Danger:()=>qt,Field:()=>mn,FileTree:()=>dn,Image:()=>gn,Important:()=>Yt,InfoBox:()=>Jt,Link:()=>hn,List:()=>nn,Note:()=>Wt,Tab:()=>Pt,Table:()=>pn,Tabs:()=>Ft,Tip:()=>Gt,Video:()=>It,Warning:()=>Kt});function Cn(){return z(`div`,{className:k(`w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in`),children:B(`div`,{className:`mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10`,children:[B(`div`,{className:`flex gap-2`,children:[z(C,{className:`h-3 w-16`}),z(C,{className:`h-3 w-24`})]}),z(C,{className:`h-10 w-[60%] sm:h-12`}),B(`div`,{className:`space-y-3`,children:[z(C,{className:`h-4 w-full`}),z(C,{className:`h-4 w-[95%]`}),z(C,{className:`h-4 w-[40%]`})]}),B(`div`,{className:`space-y-6 pt-4`,children:[z(C,{className:`h-7 w-32`}),B(`div`,{className:`space-y-3`,children:[z(C,{className:`h-4 w-full`}),z(C,{className:`h-4 w-[98%]`}),z(C,{className:`h-4 w-[92%]`}),z(C,{className:`h-4 w-[60%]`})]})]}),z(C,{className:`h-32 w-full rounded-lg bg-bg-muted/50`}),B(`div`,{className:`space-y-6 pt-4`,children:[z(C,{className:`h-7 w-48`}),B(`div`,{className:`space-y-3`,children:[z(C,{className:`h-4 w-full`}),z(C,{className:`h-4 w-[85%]`})]})]})]})})}const X=({level:e,id:t,children:n,...r})=>B(`h${e}`,{id:t,...r,className:`boltdocs-heading`,children:[n,t&&z(`a`,{href:`#${t}`,className:`header-anchor`,"aria-label":`Anchor`,children:z(Ye,{size:16})})]}),wn={...Sn,Loading:Cn,h1:e=>z(X,{level:1,...e}),h2:e=>z(X,{level:2,...e}),h3:e=>z(X,{level:3,...e}),h4:e=>z(X,{level:4,...e}),h5:e=>z(X,{level:5,...e}),h6:e=>z(X,{level:6,...e}),pre:e=>z(q,{...e,children:e.children})};function Tn({config:e}){let{currentLocale:t}=g();return P(()=>{if(!e.i18n||typeof document>`u`)return;let n=t||e.i18n.defaultLocale,r=e.i18n.localeConfigs?.[n];document.documentElement.lang=r?.htmlLang||n||`en`,document.documentElement.dir=r?.direction||`ltr`},[t,e.i18n]),null}function En({config:e}){let t=A(),{setLocale:n,setVersion:r,currentLocale:i,currentVersion:a}=g();return P(()=>{let o=t.pathname.split(`/`).filter(Boolean),s=0,c=e.versions?.defaultVersion,l=e.i18n?.defaultLocale;if(o[s]===`docs`&&s++,e.versions&&o.length>s){let t=e.versions.versions.find(e=>e.path===o[s]);t&&(c=t.path,s++)}e.i18n&&o.length>s&&e.i18n.locales[o[s]]?l=o[s]:e.i18n&&o.length===0&&(l=i||e.i18n.defaultLocale),l!==i&&n(l||``),c!==a&&r(c??``)},[t.pathname,e,n,r,i,a]),null}function Dn({config:e,routes:r,components:i={}}){let a=F(()=>({...wn,...rt,...i}),[i]),s=he();return z(Ee,{children:z(o,{children:z(yt,{children:z(ft,{components:a,children:z(t.Provider,{value:e,children:z(n,{routes:r,children:B(we,{navigate:s,children:[z(bt,{}),z(En,{config:e}),z(Tn,{config:e}),z(pe,{})]})})})})})})})}function On(){return z(`div`,{className:`flex items-center justify-center min-h-[60vh] text-center`,children:B(`div`,{className:`space-y-4`,children:[z(`span`,{className:`text-8xl font-black tracking-tighter text-primary-500/20`,children:`404`}),z(`h1`,{className:`text-2xl font-bold text-text-main`,children:`Page Not Found`}),z(`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.`}),B(O,{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:[z(ke,{size:16}),` Go to Home`]})]})})}function kn(e,t){let n=t.replace(/\\/g,`/`);return Object.keys(e).find(e=>e.endsWith(`/${n}`)||e.endsWith(n))}function An(e){let{routesData:t,config:n,mdxModules:r,Layout:i,homePage:a,externalPages:o,externalLayout:s,components:c}=e,l=s||i,u=e=>{let t=n.base||`/`;return e.startsWith(t)?e:`${t===`/`?``:t.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`||`/`},d=[...t.map(e=>{let t=kn(r,e.filePath),n=t?r[t]?.default:null,i=u(e.path===``?`/`:e.path);return{path:i,element:z(mt,{MDXComponent:n,mdxComponents:c}),loader:async()=>({path:i,frontmatter:{title:e.title,description:e.description||``},headings:e.headings||[],filePath:e.filePath,locale:e.locale,version:e.version,group:e.group,groupTitle:e.groupTitle}),getStaticPaths:()=>[i]}})];if(a){let e=[u(`/`)];n.i18n&&Object.keys(n.i18n.locales).forEach(t=>{e.push(u(`/${t}`))}),e.forEach(e=>{d.find(t=>t.path===e)||d.push({path:e,element:z(l,{children:z(a,{})}),getStaticPaths:()=>[e]})})}return o&&Object.entries(o).forEach(([e,t])=>{let r=u(e);d.find(e=>e.path===r)||(d.push({path:r,element:z(l,{children:z(t,{})}),getStaticPaths:()=>[r]}),n.i18n&&Object.keys(n.i18n.locales).forEach(n=>{let r=u(`/${n}${e===`/`?``:e}`);d.find(e=>e.path===r)||d.push({path:r,element:z(l,{children:z(t,{})}),getStaticPaths:()=>[r]})}))}),d.push({path:`*`,element:z(l,{children:z(On,{})})}),[{element:z(Dn,{config:n,routes:[...t],components:c}),children:d}]}function Z(e,t){return e?typeof e==`string`?e:t&&e[t]?e[t]:Object.values(e)[0]||``:``}function jn(){let e=_(),{theme:t,resolvedTheme:n}=K(),r=A(),{currentLocale:i}=m(),a=e.theme||{},o=Z(a.title,i)||`Boltdocs`,s=a.navbar||[],c=a.socialLinks||[],l=a.githubRepo,u=s.map(t=>{let n=t.href||t.to||t.link||``;return{label:Z(t.label||t.text,i),href:n,active:(t=>{let n=r.pathname;if(n===t)return!0;if(!t||t===`/`)return n===`/`;let i=t=>{let n=t.split(`/`).filter(Boolean),r=0;return e.i18n?.locales&&n[r]&&e.i18n.locales[n[r]]&&r++,e.versions?.versions&&n[r]&&e.versions.versions.some(e=>e.path===n[r])&&r++,n.slice(r)},a=i(t),o=i(n);return a.length===0?o.length===0:o.length<a.length?!1:a.every((e,t)=>o[t]===e)})(n),to:n.startsWith(`http`)||n.startsWith(`//`)?`external`:void 0}}),d=a.logo;return{links:u,title:o,logo:d?typeof d==`string`?d:n===`dark`?d.dark:d.light:null,logoProps:{alt:(d&&typeof d==`object`?d.alt:void 0)||o,width:d&&typeof d==`object`?d.width:void 0,height:d&&typeof d==`object`?d.height:void 0},github:l?`https://github.com/${l}`:null,social:c,config:e,theme:t}}function Mn(e){let t=_(),n=A(),r=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e,i=r(n.pathname),a=e.find(e=>r(e.path)===i),o=a?.tab?.toLowerCase(),s=o?e.filter(e=>!e.tab||e.tab.toLowerCase()===o):e,c=[],l=new Map;for(let e of s)e.group?(l.has(e.group)||l.set(e.group,{slug:e.group,title:e.groupTitle||e.group,routes:[],icon:e.groupIcon}),l.get(e.group).routes.push(e)):c.push(e);return{groups:Array.from(l.values()).map(e=>{let t=new Map,n=new Map;for(let r of e.routes)r.subRouteGroup&&((r.path.endsWith(`/${r.subRouteGroup}`)||r.path.endsWith(`/${r.subRouteGroup}/`))&&!t.has(r.subRouteGroup)?t.set(r.subRouteGroup,r):(n.has(r.subRouteGroup)||n.set(r.subRouteGroup,[]),n.get(r.subRouteGroup).push(r)));let r=[],i=new Set;for(let a of e.routes)if(a.subRouteGroup){if(!i.has(a.subRouteGroup)){i.add(a.subRouteGroup);let e=t.get(a.subRouteGroup),o=n.get(a.subRouteGroup)||[];e?r.push({...e,subRoutes:o}):r.push(...o)}}else r.push(a);return{...e,routes:r}}),ungrouped:c,activeRoute:a,activePath:i,config:t}}function Nn(e=[]){let[t,n]=L(null);return{headings:e,activeId:t,setActiveId:n}}function Pn(e=[],t=[]){let n=A(),r=I([]),[i,a]=L({opacity:0,transform:`translateX(0) scaleX(0)`,width:0}),o=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e,s=o(n.pathname),c=t.find(e=>o(e.path)===s)?.tab?.toLowerCase(),l=e.findIndex(e=>e.id.toLowerCase()===c),u=l===-1?0:l;return P(()=>{let e=r.current[u];e&&a({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[u,e.length,n.pathname]),{tabs:e,activeIndex:u,indicatorStyle:i,tabRefs:r,activeTabId:c}}function Q(e,t,n){let r=e;return t&&(r===t||r.startsWith(t+`/`))&&(r=r===t?`index.md`:r.slice(t.length+1)),n&&(r===n||r.startsWith(n+`/`))&&(r=r===n?`index.md`:r.slice(n.length+1)),r}function Fn(){let e=he(),t=m(),{allRoutes:n,currentRoute:r,currentVersion:i,currentLocale:a,config:o}=t,s=o.versions,{setVersion:c}=g(),l=t=>{if(!s||t===i)return;c(t);let o=`/docs/${t}`;if(r){let e=Q(r.filePath,r.version,r.locale),i=n.find(n=>Q(n.filePath,n.version,n.locale)===e&&(n.version||s.defaultVersion)===t&&(a?n.locale===a:!n.locale));if(i)o=i.path;else{let e=n.find(e=>Q(e.filePath,e.version,e.locale)===`index.md`&&(e.version||s.defaultVersion)===t&&(a?e.locale===a:!e.locale));o=e?e.path:`/docs/${t}${a?`/${a}`:``}`}}e(o)},u=t.availableVersions.map(e=>({...e,label:e.label,value:e.key}));return{currentVersion:i,currentVersionLabel:t.currentVersionLabel,availableVersions:u,handleVersionChange:l}}function In(){let e=he(),{allRoutes:t,currentRoute:n,currentLocale:r,config:i}=m(),a=i.i18n,{setLocale:o}=g();return{currentLocale:r,currentLocaleLabel:i.i18n?.localeConfigs?.[r]?.label||i.i18n?.locales[r]||r,availableLocales:i.i18n?Object.entries(i.i18n.locales).map(([e,t])=>({key:e,label:i.i18n?.localeConfigs?.[e]?.label||t,value:e,isCurrent:e===r})):[],handleLocaleChange:i=>{if(!a||i===r)return;o(i);let s=`/`;if(n){let e=Q(n.filePath,n.version,n.locale),r=t.find(t=>Q(t.filePath,t.version,t.locale)===e&&(t.locale||a.defaultLocale)===i&&t.version===n.version);if(r)s=r.path;else{let e=t.find(e=>Q(e.filePath,e.version,e.locale)===`index.md`&&(e.locale||a.defaultLocale)===i&&e.version===n.version);s=e?e.path:i===a.defaultLocale?n.version?`/${n.version}`:`/`:n.version?`/${n.version}/${i}`:`/${i}`}}else{let e=t.find(e=>(e.filePath===`index.mdx`||e.filePath===`index.md`)&&(e.locale||a.defaultLocale)===i&&!e.version);s=e?e.path:i===a.defaultLocale?`/`:`/${i}`}e(s)}}}function Ln(){let{routes:e,currentRoute:t}=m(),n=A();if(!t)return{prevPage:null,nextPage:null,currentRoute:null};let r=t.tab?.toLowerCase(),i=r?e.filter(e=>e.tab?.toLowerCase()===r):e.filter(e=>!e.tab),a=i.findIndex(e=>e.path===n.pathname);return{prevPage:a>0?i[a-1]:null,nextPage:a!==-1&&a<i.length-1?i[a+1]:null,currentRoute:t}}function Rn(){let{currentRoute:e}=m(),t=[];return e&&(e.groupTitle&&t.push({label:e.groupTitle}),t.push({label:e.title,href:e.path})),{crumbs:t,activeRoute:e}}const zn=()=>A();function Bn({children:e,className:t,style:n}){return z(`div`,{className:k(`h-screen flex flex-col overflow-hidden bg-bg-main text-text-main`,t),style:n,children:e})}function Vn({children:e,className:t,style:n}){return z(`div`,{className:k(`mx-auto flex flex-1 w-full max-w-(--breakpoint-3xl) bg-bg-main overflow-hidden`,t),style:n,children:e})}function Hn({children:e,className:t,style:n}){return z(`main`,{className:k(`boltdocs-content flex-1 min-w-0 overflow-y-auto`,`contain-layout`,t),style:n,children:e})}function Un({children:e,className:t,style:n}){let{pathname:r}=zn();return z(`div`,{className:k(`boltdocs-page mx-auto pt-4 pb-20 px-4 sm:px-8`,{"max-w-content-max":r.includes(`/docs/`)},t),style:n,children:e})}function Wn({children:e,className:t,style:n}){return z(`div`,{className:k(`flex items-center justify-between mb-10`,t),style:n,children:e})}function Gn({children:e,className:t,style:n}){return z(`div`,{className:k(`mt-20`,t),style:n,children:e})}const $=Object.assign(Bn,{Body:Vn,Content:Hn,ContentMdx:Un,ContentHeader:Wn,ContentFooter:Gn});function Kn(){let{theme:e,setTheme:t}=K(),[n,r]=L(!1);if(P(()=>{r(!0)},[]),!n)return z(`div`,{className:`h-9 w-9`});let i=e===`system`?Xe:e===`dark`?Ze:et;return B(T.Trigger,{placement:`bottom right`,children:[z(Ce,{className:`flex h-9 w-9 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-bg-surface hover:text-text-main outline-none focus-visible:ring-2 focus-visible:ring-primary-500`,"aria-label":`Selection theme`,children:z(i,{size:20,className:`animate-in fade-in zoom-in duration-300`})}),B(T.Root,{selectionMode:`single`,selectedKeys:[e],onSelectionChange:e=>{let n=Array.from(e)[0];t(n)},children:[B(T.Item,{id:`light`,children:[z(et,{size:16}),z(`span`,{children:`Light`})]}),B(T.Item,{id:`dark`,children:[z(Ze,{size:16}),z(`span`,{children:`Dark`})]}),B(T.Item,{id:`system`,children:[z(Xe,{size:16}),z(`span`,{children:`System`})]})]})]})}async function qn(e,t,n=`https://api.github.com`){let r=new Headers;t&&r.append(`authorization`,t);let i=await(await fetch(`${n}/repos/${e}`,{headers:r})).json();return i.stargazers_count===void 0?`0`:Jn(i.stargazers_count)}const Jn=e=>Intl.NumberFormat(`en`,{notation:`compact`,compactDisplay:`short`}).format(e);function Yn({repo:e}){let[t,n]=L(null);return P(()=>{e&&qn(e).then(e=>n(e)).catch(()=>n(`0`))},[e]),B(`a`,{href:`https://github.com/${e}`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs font-medium text-text-muted transition-all hover:bg-bg-main hover:border-border-strong hover:text-text-main`,children:[z(d,{className:`h-4 w-4`}),t&&z(`span`,{className:`tabular-nums`,children:t})]})}function Xn({tabs:e,routes:t}){let{currentLocale:n}=m(),{indicatorStyle:r,tabRefs:i,activeIndex:a}=Pn(e,t),o=e=>{if(!e)return null;if(e.trim().startsWith(`<svg`))return z(`span`,{className:`h-4 w-4`,dangerouslySetInnerHTML:{__html:e}});let t=De[e];return t?z(t,{size:16}):z(`img`,{src:e,alt:``,className:`h-4 w-4 object-contain`})};return z(`div`,{className:`mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6`,children:B(te.List,{className:`border-none py-0`,children:[e.map((e,r)=>{let s=r===a,c=t.find(t=>t.tab&&t.tab.toLowerCase()===e.id.toLowerCase());return B(O,{href:c?c.path:`#`,ref:e=>{i.current[r]=e},className:`relative flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors outline-none ${s?`text-primary-500`:`text-text-muted hover:text-text-main`}`,children:[o(e.icon),z(`span`,{children:Z(e.text,n)})]},e.id)}),z(te.Indicator,{style:r})]})})}const Zn=be(()=>import(`../search-dialog-3lvKsbVG.js`).then(e=>({default:e.SearchDialog})));function Qn(){let{links:e,title:t,logo:n,logoProps:r,github:i,social:a,config:o}=jn(),{routes:s,allRoutes:c,currentVersion:l,currentLocale:u}=m(),{pathname:d}=A(),f=o.theme||{},p=d.startsWith(`/docs`),h=f?.tabs&&f.tabs.length>0;return B(D.Root,{className:h?`border-b-0`:``,children:[B(D.Content,{children:[B(D.Left,{children:[n&&z(D.Logo,{src:n,alt:r?.alt||t,width:r?.width??24,height:r?.height??24}),z(D.Title,{children:t}),o.versions&&l&&z(er,{})]}),z(D.Center,{children:z(ve,{fallback:z(`div`,{className:`h-9 w-32 animate-pulse rounded-md bg-bg-surface`}),children:z(Zn,{routes:s||[]})})}),B(D.Right,{children:[z(D.Links,{children:e.map(e=>z($n,{link:e},e.href))}),o.i18n&&u&&z(tr,{}),z(D.Split,{}),z(Kn,{}),i&&z(Yn,{repo:f?.githubRepo??``}),a.length>0&&z(D.Split,{}),z(`div`,{className:`flex items-center gap-1`,children:a.map(({icon:e,link:t})=>z(D.Socials,{icon:e,link:t,className:`p-1.5`},t))})]})]}),p&&h&&f?.tabs&&z(`div`,{className:`w-full border-b border-border-subtle bg-bg-main`,children:z(Xn,{tabs:f.tabs,routes:c||s||[]})})]})}function $n({link:e}){let t=fe(e.href||``);return z(D.Link,{...e,href:t})}function er(){let{currentVersionLabel:e,availableVersions:t,handleVersionChange:n}=Fn();return t.length===0?null:B(T.Trigger,{children:[z(c,{variant:`outline`,size:`sm`,rounded:`lg`,iconPosition:`right`,icon:z(H,{className:`w-3.5 h-3.5 text-text-muted/60`}),className:`h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5`,children:z(`span`,{className:`font-semibold text-[0.8125rem]`,children:e})}),z(T.Root,{children:z(T.Section,{items:t,children:e=>z(T.Item,{onPress:()=>n(e.value),children:e.label},`${e.value??``}`)})})]})}function tr(){let{currentLocale:e,availableLocales:t,handleLocaleChange:n}=In();return t.length===0?null:B(T.Trigger,{children:[z(c,{variant:`outline`,size:`sm`,rounded:`lg`,iconPosition:`right`,icon:z(H,{className:`w-3.5 h-3.5 text-text-muted/60`}),className:`h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5 px-2.5`,children:B(`div`,{className:`flex items-center gap-1.5`,children:[z(qe,{className:`w-3.5 h-3.5 text-primary-500`}),z(`span`,{className:`font-bold text-[0.75rem] uppercase opacity-90`,children:e||`en`})]})}),z(T.Root,{children:z(T.Section,{items:t,children:e=>z(T.Item,{onPress:()=>n(e.value),children:B(`div`,{className:`flex items-center justify-between w-full gap-4`,children:[z(`span`,{children:e.label}),z(`span`,{className:`text-[10px] font-bold opacity-40 uppercase tracking-tighter`,children:e.value})]})},`${e.value??``}`)})})]})}function nr(){return z(`div`,{className:`flex items-center justify-center mt-10 mb-4 px-4 w-full`,children:B(`a`,{href:`https://github.com/jesusalcaladev/boltdocs`,target:`_blank`,rel:`noopener noreferrer`,className:`group relative flex items-center gap-2 px-4 py-2 rounded-full border border-border-subtle bg-bg-surface/50 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:bg-bg-surface hover:shadow-xl hover:shadow-primary-500/5 select-none`,children:[z(nt,{className:`w-3.5 h-3.5 text-text-muted group-hover:text-primary-500 transition-colors duration-300`,fill:`currentColor`}),B(`span`,{className:`text-[11px] font-medium text-text-muted group-hover:text-text-main transition-colors duration-300 tracking-wide`,children:[`Powered by`,` `,z(`strong`,{className:`font-bold text-text-main/80 group-hover:text-text-main`,children:`Boltdocs`})]})]})})}function rr(e){if(!e)return;let t={...De,...it};return t[e]||t[e+`Icon`]||void 0}function ir({route:e,activePath:t,getIcon:n}){let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path),i=F(()=>e.subRoutes?.some(e=>e.path===t),[e.subRoutes,t]),[a,o]=L(i||r);return P(()=>{(i||r)&&o(!0)},[i,r]),z(E.SubGroup,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge,isOpen:a,onToggle:()=>o(!a),children:e.subRoutes?.map(e=>{let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return z(E.Link,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge},e.path)})})}function ar({group:e,activePath:t,getIcon:n}){return z(E.Group,{title:e.title,icon:n(e.icon),children:e.routes.map(e=>{if(e.subRoutes&&e.subRoutes.length>0)return z(ir,{route:e,activePath:t,getIcon:n},e.path);let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return z(E.Link,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge},e.path)})})}function or({routes:e,config:t}){let{groups:n,ungrouped:r,activePath:i}=Mn(e),a=t.theme||{};return B(E.Root,{children:[r.length>0&&z(E.Group,{className:`mb-6`,children:r.map(e=>{let t=i===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return z(E.Link,{label:e.title,href:e.path,active:t,icon:rr(e.icon),badge:e.badge},e.path)})}),n.map(e=>z(ar,{group:e,activePath:i,getIcon:rr},e.slug)),a?.poweredBy&&z(`div`,{className:`mt-auto pt-8`,children:z(nr,{})})]})}function sr({headings:e=[],editLink:t,communityHelp:n,filePath:r}){let{headings:i}=Nn(e),a=F(()=>i.map(e=>({title:e.text,url:`#${e.id}`,depth:e.level})),[i]);return i.length===0?null:z(ue,{toc:a,children:z(cr,{headings:i,editLink:t,communityHelp:n,filePath:r})})}function cr({headings:e,editLink:t,communityHelp:n,filePath:r}){let i=ce(),[a,o]=L({opacity:0}),s=I(null),c=I(null);P(()=>{if(!i||!s.current)return;let e=s.current.querySelector(`a[href="#${i}"]`);e&&o({transform:`translateY(${e.offsetTop}px)`,height:`${e.offsetHeight}px`,opacity:1})},[i]);let l=N((e,t)=>{e.preventDefault();let n=document.getElementById(t);n&&(n.scrollIntoView({behavior:`smooth`}),window.history.pushState(null,``,`#${t}`))},[]);return B(b.Root,{children:[B(b.Header,{className:`flex flex-row gap-x-2`,children:[z(tt,{size:16}),`On this page`]}),z(ne,{containerRef:c,children:B(b.Content,{className:`max-h-[450px] boltdocs-otp-scroll-area`,ref:c,children:[z(b.Indicator,{style:a}),z(`ul`,{className:`relative space-y-2 border-l border-border-subtle`,ref:s,children:e.map(e=>z(b.Item,{level:e.level,children:z(b.Link,{href:`#${e.id}`,active:i===e.id,onClick:t=>l(t,e.id),className:`pl-4`,children:e.text})},e.id))})]})}),(t||n)&&B(`div`,{className:`mt-8 pt-8 border-t border-border-subtle space-y-4`,children:[z(`p`,{className:`text-xs font-bold uppercase text-text-main`,children:`Need help?`}),B(`ul`,{className:`space-y-3`,children:[t&&r&&z(`li`,{children:B(`a`,{href:t.replace(`:path`,r),target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors`,children:[z(Qe,{size:16}),`Edit this page`]})}),n&&z(`li`,{children:B(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors`,children:[z(Le,{size:16}),`Community help`]})})]})]})]})}function lr({siteTitle:e,siteDescription:t,routes:n}){let r=A(),i=_(),a=n?.find?.(e=>e.path===r.pathname),o=a?.title,s=a?.description||t||``,c=o?`${o} | ${e}`:e,l=a?.seo||{},u=i?.seo?.metatags||{},d=i?.seo?.thumbnails?.background,f=l[`og:image`]||d;return B(Te,{children:[z(`title`,{children:c}),z(`meta`,{name:`description`,content:s}),z(`meta`,{property:`og:title`,content:c}),z(`meta`,{property:`og:description`,content:s}),z(`meta`,{property:`og:type`,content:`article`}),typeof window<`u`&&z(`meta`,{property:`og:url`,content:window.location.href}),typeof window<`u`&&z(`link`,{rel:`canonical`,href:window.location.origin+r.pathname}),z(`meta`,{name:`twitter:card`,content:`summary`}),z(`meta`,{name:`twitter:title`,content:c}),z(`meta`,{name:`twitter:description`,content:s}),f&&z(`meta`,{name:`twitter:image`,content:f}),f&&z(`meta`,{property:`og:image`,content:f}),z(`meta`,{name:`generator`,content:`Boltdocs`}),Object.entries(u).map(([e,t])=>e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?z(`meta`,{property:e,content:t},e):z(`meta`,{name:e,content:t},e)),Object.entries(l).map(([e,t])=>e===`noindex`&&t===!0?z(`meta`,{name:`robots`,content:`noindex`},`noindex`):e===`robots`?z(`meta`,{name:`robots`,content:t},`robots`):e===`canonical`?z(`link`,{rel:`canonical`,href:t},`canonical`):e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?z(`meta`,{property:e,content:t},e):z(`meta`,{name:e,content:t},e))]})}function ur(){let{crumbs:e,activeRoute:t}=Rn(),n=_().theme||{};return e.length===0||!n?.breadcrumbs?null:B(w.Root,{children:[z(w.Item,{children:z(w.Link,{href:`/`,children:z(Ge,{size:14})})}),e.map((e,n)=>B(w.Item,{children:[z(w.Separator,{}),z(w.Link,{href:e.href,className:k({"font-medium text-text-main":e.href===t?.path}),children:e.label})]},`crumb-${e.href}-${e.label}-${n}`))]})}function dr(){let{prevPage:e,nextPage:t}=Ln();return!e&&!t?null:B(S.Root,{className:`animate-in fade-in slide-in-from-bottom-4 duration-700`,children:[e?B(S.Link,{to:e.path,direction:`prev`,children:[z(S.Title,{children:`Previous`}),z(S.Description,{children:e.title})]}):z(`div`,{}),t&&B(S.Link,{to:t.path,direction:`next`,children:[z(S.Title,{children:`Next`}),z(S.Description,{children:t.title})]})]})}var fr=class extends _e{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Uncaught error in Boltdocs Layout:`,e,t)}render(){return this.state.hasError?this.props.fallback||B(`div`,{className:`flex flex-col items-center justify-center min-h-[40vh] text-center gap-4 px-4`,children:[z(`div`,{className:`text-lg font-bold text-red-400`,children:`Something went wrong`}),z(`p`,{className:`text-sm text-text-muted max-w-md`,children:this.state.error?.message||`An unexpected error occurred while rendering this page.`}),z(c,{className:`rounded-lg border border-border-subtle bg-bg-surface px-5 py-2 text-sm font-medium text-text-main transition-colors hover:bg-bg-muted cursor-pointer`,onPress:()=>this.setState({hasError:!1}),children:`Try again`})]}):this.props.children}};function pr({children:e}){let{routes:t,allRoutes:n,currentRoute:r,currentLocale:i}=m(),{pathname:a}=A(),o=_(),s=dt().CopyMarkdown||xn,c=a.startsWith(`/docs`);return B($,{children:[z(lr,{siteTitle:Z(o.theme?.title,i)||`Boltdocs`,siteDescription:Z(o.theme?.description,i)||``,routes:n}),z(Qn,{}),B($.Body,{children:[c&&z(or,{routes:t,config:o}),z($.Content,{children:B($.ContentMdx,{children:[c&&B($.ContentHeader,{children:[z(ur,{}),z(s,{mdxRaw:r?._rawContent,route:r,config:o.theme?.copyMarkdown})]}),z(fr,{children:e}),c&&z($.ContentFooter,{children:z(dr,{})})]})}),c&&z(sr,{headings:r?.headings,editLink:o.theme?.editLink,communityHelp:o.theme?.communityHelp,filePath:r?.filePath})]})]})}export{J as Admonition,ue as AnchorProvider,Rt as Badge,Dn as BoltdocsShell,ur as Breadcrumbs,xt as Button,v as ButtonGroup,Vt as Card,Bt as Cards,Xt as Caution,q as CodeBlock,yn as ComponentPreview,_n as ComponentProps,xn as CopyMarkdown,qt as Danger,pr as DefaultLayout,$ as DocsLayout,fr as ErrorBoundary,mn as Field,dn as FileTree,lr as Head,gn as Image,Yt as Important,Jt as InfoBox,hn as Link,nn as List,Cn as Loading,mt as MdxPage,Qn as Navbar,On as NotFound,Wt as Note,sr as OnThisPage,dr as PageNav,w as PrimitiveBreadcrumbs,c as PrimitiveButton,O as PrimitiveLink,T as PrimitiveMenu,y as PrimitiveNavLink,D as PrimitiveNavbar,ee as PrimitiveNavigationMenu,b as PrimitiveOnThisPage,S as PrimitivePageNav,ae as PrimitivePopover,E as PrimitiveSidebar,C as PrimitiveSkeleton,te as PrimitiveTabs,de as PrimitiveTooltip,ne as ScrollProvider,re as SearchDialogPrimitive,or as Sidebar,Pt as Tab,pn as Table,Ft as Tabs,Gt as Tip,It as Video,Kt as Warning,k as cn,An as createRoutes,st as defineConfig,ce as useActiveAnchor,se as useActiveAnchors,Rn as useBreadcrumbs,_ as useConfig,In as useI18n,ie as useItems,fe as useLocalizedTo,zn as useLocation,dt as useMdxComponents,jn as useNavbar,Nn as useOnThisPage,Ln as usePageNav,m as useRoutes,le as useSearch,Mn as useSidebar,Pn as useTabs,K as useTheme,Fn as useVersion};