boltdocs 2.2.0 → 2.3.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 (81) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/bin/boltdocs.js +2 -2
  3. package/dist/base-ui/index.d.mts +3 -3
  4. package/dist/base-ui/index.d.ts +3 -3
  5. package/dist/base-ui/index.js +1 -1
  6. package/dist/base-ui/index.mjs +1 -1
  7. package/dist/{cache-CRAZ55X7.mjs → cache-P6WK424C.mjs} +1 -1
  8. package/dist/chunk-22NXDNP4.mjs +74 -0
  9. package/dist/chunk-2HUVMMJU.mjs +1 -0
  10. package/dist/chunk-2Z5T6EAU.mjs +1 -0
  11. package/dist/chunk-CRZGOE32.mjs +1 -0
  12. package/dist/chunk-HA6543SL.mjs +1 -0
  13. package/dist/{chunk-ZK2266IZ.mjs → chunk-RPUERTVC.mjs} +1 -1
  14. package/dist/{chunk-MZBG4N4W.mjs → chunk-URTD6E6S.mjs} +1 -1
  15. package/dist/chunk-W2NB4T6V.mjs +1 -0
  16. package/dist/chunk-Y4RRHPXC.mjs +1 -0
  17. package/dist/client/index.d.mts +1 -1
  18. package/dist/client/index.d.ts +1 -1
  19. package/dist/client/index.js +1 -1
  20. package/dist/client/index.mjs +1 -1
  21. package/dist/client/ssr.js +1 -1
  22. package/dist/client/ssr.mjs +1 -1
  23. package/dist/hooks/index.d.mts +7 -15
  24. package/dist/hooks/index.d.ts +7 -15
  25. package/dist/hooks/index.js +1 -1
  26. package/dist/hooks/index.mjs +1 -1
  27. package/dist/{loading-chS3pm9W.d.ts → loading-B7X5Wchs.d.ts} +3 -5
  28. package/dist/{loading-BqGrFWO5.d.mts → loading-WuaQbsKb.d.mts} +3 -5
  29. package/dist/mdx/index.js +1 -1
  30. package/dist/mdx/index.mjs +1 -1
  31. package/dist/node/cli-entry.js +27 -23
  32. package/dist/node/cli-entry.mjs +5 -1
  33. package/dist/node/index.js +10 -10
  34. package/dist/node/index.mjs +1 -1
  35. package/dist/primitives/index.d.mts +2 -2
  36. package/dist/primitives/index.d.ts +2 -2
  37. package/dist/primitives/index.js +1 -1
  38. package/dist/primitives/index.mjs +1 -1
  39. package/dist/search-dialog-ZRXBAQJ5.mjs +1 -0
  40. package/package.json +2 -1
  41. package/src/client/app/theme-context.tsx +14 -7
  42. package/src/client/components/default-layout.tsx +6 -2
  43. package/src/client/components/primitives/navbar.tsx +3 -3
  44. package/src/client/components/primitives/search-dialog.tsx +4 -4
  45. package/src/client/components/primitives/sidebar.tsx +3 -2
  46. package/src/client/components/primitives/skeleton.tsx +26 -0
  47. package/src/client/components/ui-base/loading.tsx +43 -73
  48. package/src/client/components/ui-base/navbar.tsx +8 -6
  49. package/src/client/components/ui-base/page-nav.tsx +2 -1
  50. package/src/client/components/ui-base/powered-by.tsx +4 -1
  51. package/src/client/components/ui-base/search-dialog.tsx +16 -5
  52. package/src/client/components/ui-base/sidebar.tsx +4 -2
  53. package/src/client/hooks/use-i18n.ts +3 -2
  54. package/src/client/hooks/use-localized-to.ts +6 -5
  55. package/src/client/hooks/use-page-nav.ts +27 -6
  56. package/src/client/hooks/use-routes.ts +2 -1
  57. package/src/client/hooks/use-search.ts +81 -59
  58. package/src/client/hooks/use-sidebar.ts +2 -1
  59. package/src/client/store/use-boltdocs-store.ts +6 -5
  60. package/src/client/theme/neutral.css +29 -0
  61. package/src/node/{cli.ts → cli/build.ts} +17 -23
  62. package/src/node/cli/dev.ts +22 -0
  63. package/src/node/cli/doctor.ts +243 -0
  64. package/src/node/cli/index.ts +9 -0
  65. package/src/node/cli/ui.ts +54 -0
  66. package/src/node/cli-entry.ts +16 -16
  67. package/src/node/config.ts +1 -1
  68. package/src/node/plugin/entry.ts +1 -1
  69. package/src/node/plugin/index.ts +24 -10
  70. package/src/node/routes/parser.ts +9 -9
  71. package/src/node/search/index.ts +55 -0
  72. package/src/node/ssg/index.ts +14 -6
  73. package/src/node/ssg/robots.ts +7 -4
  74. package/dist/chunk-5D6XPYQ3.mjs +0 -74
  75. package/dist/chunk-6QXCKZAT.mjs +0 -1
  76. package/dist/chunk-H4M6P3DM.mjs +0 -1
  77. package/dist/chunk-JXHNX2WN.mjs +0 -1
  78. package/dist/chunk-Q3MLYTIQ.mjs +0 -1
  79. package/dist/chunk-RSII2UPE.mjs +0 -1
  80. package/dist/chunk-ZRJ55GGF.mjs +0 -1
  81. package/dist/search-dialog-MA5AISC7.mjs +0 -1
@@ -1 +1 @@
1
- "use strict";var Ms=Object.create;var Bt=Object.defineProperty;var Es=Object.getOwnPropertyDescriptor;var Os=Object.getOwnPropertyNames;var Vs=Object.getPrototypeOf,Ds=Object.prototype.hasOwnProperty;var w=(e,t)=>()=>(e&&(t=e(e=0)),t);var zo=(e,t)=>{for(var o in t)Bt(e,o,{get:t[o],enumerable:!0})},Lr=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Os(t))!Ds.call(e,n)&&n!==o&&Bt(e,n,{get:()=>t[n],enumerable:!(r=Es(t,n))||r.enumerable});return e};var I=(e,t,o)=>(o=e!=null?Ms(Vs(e)):{},Lr(t||!e||!e.__esModule?Bt(o,"default",{value:e,enumerable:!0}):o,e)),Hs=e=>Lr(Bt({},"__esModule",{value:!0}),e);var i=w(()=>{"use strict"});function D(){let e=(0,At.use)($o);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}var At,$o,me=w(()=>{"use strict";i();At=require("react"),$o=(0,At.createContext)(null)});function Mt(){return(0,Ee.use)(kr)}function Sr({routes:e,modules:t,children:o}){let r=(0,Ee.useRef)(null),n=(0,Ee.useCallback)(s=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let a=s.split("#")[0].split("?")[0],c=e.find(l=>l.path===a||a==="/"&&l.path==="");if(c?.filePath){let l=Object.keys(t).find(d=>d.endsWith("/"+c.filePath));l&&t[l]().catch(d=>{console.error(`[boltdocs] Failed to preload route ${s}:`,d)})}},100)},[e,t]);return(0,Ir.jsx)(kr.Provider,{value:{preload:n,routes:e},children:o})}var Ee,Ir,kr,Et=w(()=>{"use strict";i();Ee=require("react"),Ir=require("react/jsx-runtime"),kr=(0,Ee.createContext)({preload:()=>{},routes:[]})});var Br,Ot,Q,bt=w(()=>{"use strict";i();Br=require("zustand"),Ot=require("zustand/middleware"),Q=(0,Br.create)()((0,Ot.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,Ot.createJSONStorage)(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}))});function T(){let{routes:e}=Mt(),t=D(),o=(0,Ar.useLocation)(),r=Q(g=>g.currentLocale),n=Q(g=>g.currentVersion),s=Q(g=>g.hasHydrated),a=e.find(g=>g.path===o.pathname),c=t.i18n?a?.locale||(s?r:void 0)||t.i18n.defaultLocale:void 0,l=t.versions?a?.version||(s?n:void 0)||t.versions.defaultVersion:void 0,d=e.filter(g=>{let S=t.i18n?(g.locale||t.i18n.defaultLocale)===c:!0,Z=t.versions?(g.version||t.versions.defaultVersion)===l:!0;if(!(S&&Z))return!1;let ce=t.i18n;if(ce){let Bs=!!a?.locale,As=!!g.locale;if(e.some(It=>It!==g&&It.filePath===g.filePath&&It.version===g.version&&(It.locale||ce.defaultLocale)===(g.locale||ce.defaultLocale))&&Bs!==As)return!1}return!0}),u=t.i18n?.localeConfigs?.[c]?.label||t.i18n?.locales[c]||c,h=t.versions?.versions.find(g=>g.path===l)?.label||l,v=t.i18n?Object.entries(t.i18n.locales).map(([g,S])=>{let Z=t.i18n?.localeConfigs?.[g];return{key:g,label:Z?.label||S,isCurrent:g===c}}):[],x=t.versions?t.versions.versions.map(g=>({key:g.path,label:g.label,isCurrent:g.path===l})):[];return{routes:d,allRoutes:e,currentRoute:a,currentLocale:c,currentLocaleLabel:u,availableLocales:v,currentVersion:l,currentVersionLabel:h,availableVersions:x,config:t}}var Ar,J=w(()=>{"use strict";i();Ar=require("react-router-dom");me();Et();bt()});function ht(e){let t=D(),{currentLocale:o,currentVersion:r}=T();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let n=t.i18n,s=t.versions;if(!n&&!s)return e;let a=e.startsWith("/docs"),c=e.split("/").filter(Boolean),l=0;c[l]==="docs"&&l++,s&&c.length>l&&s.versions.find(h=>h.path===c[l])&&l++,n&&c.length>l&&n.locales[c[l]]&&l++;let d=c.slice(l),m=[];a&&(m.push("docs"),s&&r&&m.push(r)),n&&o&&o!==n.defaultLocale&&m.push(o),m.push(...d);let u=`/${m.join("/")}`;return u.length>1&&u.endsWith("/")?u.slice(0,-1):u||"/"}var Fo=w(()=>{"use strict";i();me();J()});function p(...e){return(0,Er.twMerge)((0,Mr.clsx)(e))}var Mr,Er,P=w(()=>{"use strict";i();Mr=require("clsx"),Er=require("tailwind-merge")});var Wo,Or,Vr,_o,K,zs,Ue=w(()=>{"use strict";i();Wo=I(require("react")),Or=require("react-aria-components"),Vr=require("react-router-dom");Fo();Et();P();_o=require("react/jsx-runtime"),K=Wo.default.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:n,onFocus:s,...a}=e,c=ht(o??""),{preload:l}=Mt();return(0,_o.jsx)(Or.Link,{...a,ref:t,href:c,onMouseEnter:u=>{n?.(u),r==="hover"&&typeof c=="string"&&c.startsWith("/")&&l(c)},onFocus:u=>{s?.(u),r==="hover"&&typeof c=="string"&&c.startsWith("/")&&l(c)}})});K.displayName="Link";zs=Wo.default.forwardRef((e,t)=>{let{href:o,end:r=!1,className:n,children:s,...a}=e,c=(0,Vr.useLocation)(),l=ht(o??""),d=r?c.pathname===l:c.pathname.startsWith(l),m=typeof n=="function"?n({isActive:d}):p(n,d&&"active"),u=typeof s=="function"?s({isActive:d}):s;return(0,_o.jsx)(K,{...a,ref:t,href:o,className:m,children:u})});zs.displayName="NavLink"});var zt,on,de,Ht,ue,$t=w(()=>{"use strict";i();zt=I(require("react-aria-components"));P();on=require("class-variance-authority"),de=require("react/jsx-runtime"),Ht=(0,on.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"}}),ue=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:n,className:s,variant:a,size:c,rounded:l,iconSize:d,disabled:m,...u})=>{let f=r||!n&&!!t,h=f?(0,de.jsx)("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):(0,de.jsxs)(de.Fragment,{children:[t&&o==="left"&&(0,de.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),(0,de.jsx)("span",{className:"flex items-center",children:n}),t&&o==="right"&&(0,de.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?(0,de.jsx)(zt.Link,{href:e,className:p(Ht({variant:a,size:c,rounded:l,iconSize:f?d:void 0,disabled:m}),s),...u,children:h}):(0,de.jsx)(zt.Button,{className:p(Ht({variant:a,size:c,rounded:l,iconSize:f?d:void 0,disabled:m}),s),...u,children:h})}});function vt(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var H,Gt,ln,cn,mn,pn,Ut=w(()=>{"use strict";i();H=require("react/jsx-runtime");Gt=e=>(0,H.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...vt(e),children:[(0,H.jsx)("title",{children:"GitHub"}),(0,H.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"})]}),ln=e=>(0,H.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...vt(e),children:[(0,H.jsx)("title",{children:"Discord"}),(0,H.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"})]}),cn=e=>(0,H.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...vt(e),children:[(0,H.jsx)("title",{children:"X"}),(0,H.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"})]}),mn=e=>(0,H.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...vt(e),children:[(0,H.jsx)("title",{children:"CodeSandbox"}),(0,H.jsx)("path",{d:"M0 24h24V0H0v2.455h21.546v19.09H2.454V0H0Z"})]}),pn=e=>(0,H.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...vt(e),children:[(0,H.jsx)("title",{children:"Bluesky"}),(0,H.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"})]})});var qe,ne,Fs,Ko,Xo=w(()=>{"use strict";i();qe=I(require("react-aria-components"));P();ne=require("react/jsx-runtime"),Fs=({className:e,children:t,...o})=>(0,ne.jsx)(qe.Tooltip,{...o,offset:8,className:r=>p("group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none","data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100","data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75","data-[placement=top]:slide-in-from-bottom-1","data-[placement=bottom]:slide-in-from-top-1","data-[placement=left]:slide-in-from-right-1","data-[placement=right]:slide-in-from-left-1",typeof e=="function"?e(r):e),children:r=>(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(qe.OverlayArrow,{children:(0,ne.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,ne.jsx)("title",{children:"Arrow"}),(0,ne.jsx)("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),Ko=({content:e,children:t,delay:o=500,closeDelay:r=0,...n})=>(0,ne.jsxs)(qe.TooltipTrigger,{delay:o,closeDelay:r,children:[t,(0,ne.jsx)(Fs,{...n,children:e})]})});var vo,Nn,ke,R,ti,oi,ri,ni,si,ii,ai,li,ci,mi,pi,di,ui,fi,gi,U,yo=w(()=>{"use strict";i();vo=require("react");Co();Nn=require("react-aria-components"),ke=require("lucide-react");Ut();R=require("react/jsx-runtime"),ti=({children:e,className:t,...o})=>(0,R.jsx)("header",{className:p("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}),oi=({children:e,className:t})=>(0,R.jsx)("div",{className:p("mx-auto flex lg:h-navbar max-w-(--breakpoint-3xl) items-center justify-between px-4 md:px-6",t),children:e}),ri=({children:e,className:t})=>(0,R.jsx)("div",{className:p("flex items-center gap-4",t),children:e}),ni=({children:e,className:t})=>(0,R.jsx)("div",{className:p("flex items-center gap-2 md:gap-4",t),children:e}),si=({children:e,className:t})=>(0,R.jsx)("div",{className:p("hidden lg:flex flex-1 justify-center items-center gap-4 px-4",t),children:e}),ii=({src:e,alt:t,width:o=24,height:r=24,className:n})=>(0,R.jsx)(K,{href:"/",className:p("flex items-center gap-2 shrink-0 outline-none",n),children:e?(0,R.jsx)("img",{src:e,alt:t,width:o,height:r,className:"h-6 w-6 object-contain"}):null}),ai=({children:e,className:t})=>(0,R.jsx)("span",{className:p("text-lg font-bold tracking-tight hidden sm:inline-block",t),children:e}),li=({children:e,className:t})=>(0,R.jsx)("nav",{className:p("hidden md:flex items-center gap-6 text-sm font-medium",t),children:e}),ci=({label:e,href:t,active:o,to:r,className:n})=>(0,R.jsxs)(K,{href:t,target:r==="external"?"_blank":void 0,className:p("transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm",{"text-primary-500 font-bold":o,"text-text-muted hover:text-text-main font-medium":!o},n),children:[e,r==="external"&&(0,R.jsx)("span",{className:"ml-1 inline-block",children:(0,R.jsx)(ke.ExternalLink,{size:12})})]}),mi=({className:e,onPress:t})=>{let[o,r]=(0,vo.useState)(!1),n=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);return(0,vo.useEffect)(()=>{r(!0)},[]),(0,R.jsxs)(Nn.Button,{onPress:t,className:p("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-colors hover:border-border-strong hover:text-text-main","focus-visible:ring-2 focus-visible:ring-primary-500/30","w-full max-w-[320px] justify-between",e),children:[(0,R.jsxs)("div",{className:"flex items-center gap-2",children:[(0,R.jsx)(ke.Search,{size:16}),(0,R.jsx)("span",{className:"hidden sm:inline-block",children:"Search docs..."})]}),(0,R.jsxs)("div",{className:"hidden sm:flex items-center gap-1 pointer-events-none select-none",children:[(0,R.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,R.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"})]})]})},pi=({className:e,theme:t,onThemeChange:o})=>(0,R.jsx)(tt.ToggleButton,{isSelected:t==="dark",onChange:o,className:p("rounded-md p-2 text-text-muted outline-none cursor-pointer transition-colors","hover:bg-bg-surface hover:text-text-main","focus-visible:ring-2 focus-visible:ring-primary-500/30",e),"aria-label":"Toggle theme",children:t==="dark"?(0,R.jsx)(ke.Sun,{size:20}):(0,R.jsx)(ke.Moon,{size:20})}),di=({label:e,className:t,onPress:o,isCurrent:r})=>(0,R.jsx)(Ce,{onAction:o,className:p(r&&"bg-primary-500 text-white font-medium hover:bg-primary-600 focus:bg-primary-600 focus:text-white",t),children:e}),ui=({name:e})=>{if(e==="github")return(0,R.jsx)(Gt,{});if(e==="discord")return(0,R.jsx)(ln,{});if(e==="x")return(0,R.jsx)(cn,{});if(e==="bluesky")return(0,R.jsx)(pn,{})},fi=({icon:e,link:t,className:o})=>(0,R.jsx)(K,{href:t,target:"_blank",rel:"noopener noreferrer",className:p("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,R.jsx)(ui,{name:e})}),gi=({className:e})=>(0,R.jsx)(tt.Separator,{orientation:"vertical",className:p("h-6 w-px bg-border-subtle mx-1",e)}),U={NavbarRoot:ti,NavbarLeft:ri,NavbarRight:ni,NavbarCenter:si,NavbarLogo:ii,Title:ai,Links:li,Link:ci,SearchTrigger:mi,Theme:pi,Item:di,Socials:fi,Split:gi,Content:oi}});var wt,bi,tr,wn=w(()=>{"use strict";i();wt=I(require("react-aria-components")),bi=require("lucide-react");P();tr=require("react/jsx-runtime")});var $,De,L,or,rr,nr,sr,ir,ar,lr,cr,Lc,mr=w(()=>{"use strict";i();$=I(require("react-aria-components")),De=require("lucide-react");P();L=require("react/jsx-runtime"),or=({children:e,isOpen:t,onOpenChange:o,className:r})=>(0,L.jsx)($.ModalOverlay,{isOpen:t,onOpenChange:o,isDismissable:!0,className:p("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,L.jsx)($.Modal,{className:p("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,L.jsx)($.Dialog,{className:"flex flex-col max-h-[70vh] focus:outline-none",children:e})})}),rr=({children:e,className:t,onSelectionChange:o,...r})=>(0,L.jsx)("div",{className:t,children:(0,L.jsx)($.Autocomplete,{...r,onSelectionChange:o,className:"flex flex-col min-h-0",children:e})}),nr=({className:e,...t})=>(0,L.jsxs)($.SearchField,{className:"flex items-center gap-3 border-b border-border-subtle px-4 py-4",autoFocus:!0,children:[(0,L.jsx)(De.Search,{className:"h-5 w-5 text-text-muted"}),(0,L.jsx)($.Input,{...t,className:p("w-full bg-transparent text-lg text-text-main placeholder-text-muted outline-none",e),placeholder:"Search documentation..."}),(0,L.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,L.jsx)("kbd",{className:"font-sans",children:"ESC"})})]}),sr=({children:e,className:t,...o})=>(0,L.jsx)($.ListBox,{...o,className:p("flex-1 overflow-y-auto p-2 outline-none",t),children:e}),ir=({children:e,className:t,...o})=>(0,L.jsx)($.ListBoxItem,{...o,className:p("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,L.jsxs)(L.Fragment,{children:[e,(r.isFocused||r.isSelected)&&(0,L.jsxs)("div",{className:"ml-auto opacity-50 flex items-center gap-1",children:[(0,L.jsx)("span",{className:"text-[10px]",children:"Select"}),(0,L.jsx)(De.CornerDownLeft,{size:10})]})]})}),ar=({isHeading:e,className:t})=>(0,L.jsx)("div",{className:p("shrink-0",t),children:e?(0,L.jsx)(De.Hash,{size:18}):(0,L.jsx)(De.FileText,{size:18})}),lr=({children:e,className:t})=>(0,L.jsx)("span",{className:p("block font-medium truncate flex-1 text-sm",t),children:e}),cr=({children:e,className:t})=>(0,L.jsx)("span",{className:p("ml-2 text-xs opacity-70 truncate hidden sm:inline group-focus:opacity-100",t),children:e}),Lc={Root:or,Autocomplete:rr,Input:nr,List:sr,Item:Object.assign(ir,{Icon:ar,Title:lr,Bio:cr})}});function Tn(e,t){let o=(0,Ro.useRef)(e);(0,Ro.useEffect)(()=>{o.current!==e&&(t(e),o.current=e)},[e,t])}var Ro,Ln=w(()=>{"use strict";i();Ro=require("react")});function pr(e){return e.startsWith("#")?e.slice(1):null}var kn=w(()=>{"use strict";i()});function hi(){let e=(0,k.use)(ur);if(!e)throw new Error("Component must be used under the <AnchorProvider /> component.");return e}function xi(e){let[t,o]=(0,k.useState)({isOverflowing:!1,isAtBottom:!1});return(0,k.useEffect)(()=>{let r=e.current;if(!r)return;let n=()=>{let a=r.scrollHeight>r.clientHeight,c=r.scrollHeight-r.scrollTop<=r.clientHeight+2;o({isOverflowing:a,isAtBottom:c})};n(),r.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n);let s=new MutationObserver(n);return s.observe(r,{childList:!0,subtree:!0}),()=>{r.removeEventListener("scroll",n),window.removeEventListener("resize",n),s.disconnect()}},[e]),t}function Bn(){let e=hi();return(0,k.useMemo)(()=>{let t;for(let o of e)o.active&&(!t||o.t>t.t)&&(t=o);return t?.id},[e])}function An({containerRef:e,children:t}){return(0,Re.jsx)(In.Provider,{value:e,children:t})}function Mn({toc:e,single:t=!1,children:o}){let r=(0,k.useMemo)(()=>new dr,[]),[n,s]=(0,k.useState)(r.items);return r.single=t,(0,k.useEffect)(()=>{r.setItems(e)},[r,e]),(0,k.useEffect)(()=>(r.watch({rootMargin:"0px",threshold:.98}),r.onChange=()=>s([...r.items]),()=>{r.unwatch()}),[r]),(0,Re.jsx)(ur.Provider,{value:n,children:o})}var k,Sn,Re,ur,In,dr,vi,yi,En,Ci,Ri,Pi,Ni,Fe,fr=w(()=>{"use strict";i();k=require("react"),Sn=I(require("scroll-into-view-if-needed"));P();Ln();kn();Re=require("react/jsx-runtime"),ur=(0,k.createContext)(null),In=(0,k.createContext)(null),dr=class{items=[];single=!1;observer=null;onChange;callback(t){if(t.length===0)return;let o=!1;if(this.items=this.items.map(r=>{let n=t.find(a=>a.target.id===r.id),s=n?n.isIntersecting:r.active&&!r.fallback;return this.single&&o&&(s=!1),r.active!==s&&(r={...r,t:Date.now(),active:s,fallback:!1}),s&&(o=!0),r}),!o&&t[0].rootBounds){let r=t[0].rootBounds.top,n=Number.MAX_VALUE,s=-1;for(let a=0;a<this.items.length;a++){let c=document.getElementById(this.items[a].id);if(!c)continue;let l=Math.abs(r-c.getBoundingClientRect().top);l<n&&(s=a,n=l)}s!==-1&&(this.items[s]={...this.items[s],active:!0,fallback:!0,t:Date.now()})}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=pr(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}};vi=({children:e,className:t})=>(0,Re.jsx)("nav",{className:p("sticky top-navbar hidden xl:flex flex-col shrink-0","w-toc","py-8 pl-6 pr-4",t),children:e}),yi=({children:e,className:t,...o})=>(0,Re.jsx)("div",{className:p("mb-4 text-xs font-bold uppercase tracking-wider text-text-main",t),...o,children:e}),En=({children:e,className:t,ref:o,...r})=>{let n=(0,k.useRef)(null);(0,k.useImperativeHandle)(o,()=>n.current);let{isOverflowing:s,isAtBottom:a}=xi(n);return(0,Re.jsx)("div",{ref:n,className:p("relative overflow-y-auto boltdocs-otp-content",s&&!a&&"mask-[linear-gradient(to_bottom,black_85%,transparent_100%)]",t),...r,children:e})};En.displayName="OnThisPageContent";Ci=({children:e,className:t})=>(0,Re.jsx)("ul",{className:p("relative space-y-1 text-sm border-l border-border-subtle",t),children:e}),Ri=({level:e,children:t,className:o})=>(0,Re.jsx)("li",{className:p(e===3&&"pl-3",o),children:t}),Pi=({children:e,href:t,active:o,onClick:r,className:n})=>{let s=(0,k.use)(ur),a=(0,k.use)(In),c=t?pr(t):null,l=(0,k.useRef)(null),[d,m]=(0,k.useState)(o);return Tn(c&&s?s.find(u=>u.id===c)?.active:null,u=>{u!==null&&u!==d&&(m(!!u),u&&l.current&&a?.current&&(0,Sn.default)(l.current,{behavior:"smooth",block:"center",inline:"center",scrollMode:"if-needed",boundary:a.current}))}),(0,k.useEffect)(()=>{o!==void 0&&m(o)},[o]),(0,Re.jsx)("a",{ref:l,href:t,onClick:r,"data-active":d,className:p("block py-1 pl-4 text-[13px] outline-none transition-colors hover:text-text-main",d?"text-primary-500 font-medium":"text-text-muted",n),children:e})},Ni=({style:e,className:t})=>(0,Re.jsx)("div",{className:p("absolute -left-px w-0.5 rounded-full bg-primary-500 transition-all duration-300",t),style:e}),Fe={OnThisPageRoot:vi,OnThisPageHeader:yi,OnThisPageContent:En,OnThisPageList:Ci,OnThisPageItem:Ri,OnThisPageLink:Pi,OnThisPageIndicator:Ni}});var On,Po,ie,wi,Ti,Li,ki,Si,He,gr=w(()=>{"use strict";i();On=I(require("react-aria-components")),Po=require("lucide-react");P();ie=require("react/jsx-runtime"),wi=({children:e,className:t})=>(0,ie.jsx)("nav",{className:p("grid grid-cols-1 sm:grid-cols-2 gap-4 mt-12 pt-8 border-t border-border-subtle",t),children:e}),Ti=({children:e,to:t,direction:o,className:r})=>{let n=o==="next";return(0,ie.jsxs)(On.Link,{href:t,className:p("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,ie.jsx)(Po.ChevronLeft,{className:"mr-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:-translate-x-1"}),(0,ie.jsx)("div",{className:"flex flex-col gap-1 flex-1",children:e}),n&&(0,ie.jsx)(Po.ChevronRight,{className:"ml-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:translate-x-1"})]})},Li=({children:e,className:t})=>(0,ie.jsx)("span",{className:p("text-xs font-medium uppercase tracking-wider text-text-muted",t),children:e}),ki=({children:e,className:t})=>(0,ie.jsx)("span",{className:p("text-base font-bold text-text-main truncate",t),children:e}),Si=({children:e})=>(0,ie.jsx)(ie.Fragment,{children:e}),He={PageNavRoot:wi,PageNavLink:Object.assign(Ti,{Title:Li,Description:ki,Icon:Si})}});var ot,Ii,Bi,Ai,Mi,Ei,br,hr=w(()=>{"use strict";i();P();ot=require("react/jsx-runtime"),Ii=({children:e,className:t="",...o})=>(0,ot.jsx)("div",{className:p("w-full",t),...o,children:e}),Bi=({children:e,className:t=""})=>(0,ot.jsx)("div",{role:"tablist",className:p("relative flex flex-row items-center border-b border-border-subtle",t),children:e}),Ai=({children:e,id:t,selected:o,className:r="",...n})=>(0,ot.jsx)("button",{role:"tab","aria-selected":o,className:p("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}),Mi=({children:e,className:t=""})=>(0,ot.jsx)("div",{className:p("p-4 outline-none",t),children:e}),Ei=({className:e="",style:t})=>(0,ot.jsx)("div",{className:p("absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300",e),style:t}),br={TabsRoot:Ii,TabsList:Bi,TabsItem:Ai,TabsContent:Mi,TabsIndicator:Ei}});var Vn,Dn,F,Oi,Vi,Di,Hi,zi,rt,xr=w(()=>{"use strict";i();Ue();Vn=I(require("react-aria-components")),Dn=require("lucide-react");P();F=require("react/jsx-runtime"),Oi=({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,s=r.getTime()-n.getTime();if(Math.ceil(s/(1e3*60*60*24))===0)return null}let o=typeof e=="string"?e:e?.text;return(0,F.jsx)("span",{className:p("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})},Vi=({children:e,className:t})=>(0,F.jsx)("aside",{className:p("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,F.jsx)("nav",{className:"flex-1 space-y-6",children:e})}),Di=({children:e,title:t,icon:o,isOpen:r=!0,onToggle:n,className:s})=>(0,F.jsxs)("div",{className:p("space-y-1",s),children:[t&&(0,F.jsxs)(Vn.Button,{onPress:n,className:p("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,F.jsxs)("div",{className:"flex items-center gap-2",children:[o&&(0,F.jsx)(o,{size:14}),t]}),(0,F.jsx)(Dn.ChevronRight,{size:14,className:p("transition-transform duration-200",r&&"rotate-90")})]}),r&&(0,F.jsx)("div",{className:"space-y-0.5",children:e})]}),Hi=({children:e,className:t})=>(0,F.jsx)("div",{className:p(t),children:e}),zi=({label:e,href:t,active:o,icon:r,badge:n,className:s})=>(0,F.jsxs)(K,{href:t,className:p("group flex items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none transition-colors","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",s),children:[r&&(0,F.jsx)(r,{size:16,className:p(o?"text-primary-500":"text-text-muted group-hover:text-text-main")}),(0,F.jsx)("span",{className:"truncate",children:e}),n&&(0,F.jsx)(Oi,{badge:n})]}),rt={SidebarRoot:Vi,SidebarGroup:Di,SidebarGroupItem:Hi,SidebarLink:zi}});var nt,Hn,Tt,zn,vr,yr,$n,Cr=w(()=>{"use strict";i();nt=require("react-aria-components"),Hn=require("lucide-react");P();Tt=require("react/jsx-runtime"),zn=({children:e,className:t,...o})=>(0,Tt.jsx)(nt.Breadcrumbs,{className:p("flex items-center gap-1.5 pl-0! mb-0 text-sm text-text-muted",t),...o,children:e}),vr=({children:e,className:t,...o})=>(0,Tt.jsx)(nt.Breadcrumb,{className:p("flex items-center mb-0 gap-1.5",t),...o,children:e}),yr=({children:e,href:t,className:o,...r})=>(0,Tt.jsx)(nt.Link,{href:t,className:p("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}),$n=({className:e})=>(0,Tt.jsx)(Hn.ChevronRight,{size:14,className:p("shrink-0 text-text-dim",e)})});var Wn,Fn,_n=w(()=>{"use strict";i();P();Wn=require("react/jsx-runtime"),Fn=({children:e,className:t,vertical:o=!1})=>(0,Wn.jsx)("div",{className:p("inline-flex",o?"flex-col":"flex-row",!o&&["[&>*:not(:first-child)]:-ml-px","[&>*:first-child]:rounded-r-none","[&>*:last-child]:rounded-l-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-l-full","[&>*:last-child]:rounded-r-full"],t?.includes("rounded-xl")&&["[&>*:first-child]:rounded-l-xl","[&>*:last-child]:rounded-r-xl"],t?.includes("rounded-lg")&&["[&>*:first-child]:rounded-l-lg","[&>*:last-child]:rounded-r-lg"]],o&&["[&>*:not(:first-child)]:-mt-px","[&>*:first-child]:rounded-b-none","[&>*:last-child]:rounded-t-none","[&>*:not(:first-child):not(:last-child)]:rounded-none",t?.includes("rounded-full")&&["[&>*:first-child]:rounded-t-full","[&>*:last-child]:rounded-b-full"]],t),children:e})});var it,st,Rr,Pr=w(()=>{"use strict";"use client";i();it=I(require("react-aria-components"));P();st=require("react/jsx-runtime"),Rr=({children:e,className:t,showArrow:o,...r})=>(0,st.jsxs)(it.Popover,{offset:8,...r,className:it.composeRenderProps(t,n=>p("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none","entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95 fill-mode-forwards",n)),children:[o&&(0,st.jsx)(it.OverlayArrow,{className:"group",children:(0,st.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,st.jsx)("path",{d:"M0 0 L6 6 L12 0"})})}),e]})});function Ye(e){let[t,o]=Nr.default.Children.toArray(e.children).slice(0,2);return(0,O.jsxs)(V.MenuTrigger,{...e,children:[t,(0,O.jsx)(Rr,{placement:e.placement,className:"min-w-[200px]",children:o})]})}function $i(e){let[t,o]=Nr.default.Children.toArray(e.children).slice(0,2);return(0,O.jsxs)(V.SubmenuTrigger,{...e,children:[t,(0,O.jsx)(Rr,{offset:-4,crossOffset:-4,children:o})]})}function et(e){return(0,O.jsx)(V.Menu,{...e,className:V.composeRenderProps(e.className,t=>p("p-1.5 outline-none max-h-[inherit] overflow-auto",t))})}function Ce(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return(0,O.jsx)(V.MenuItem,{...e,textValue:t,className:V.composeRenderProps(e.className,(o,{isFocused:r,isPressed:n,isDisabled:s})=>p("group relative flex flex-row items-center gap-2.5 px-3 py-1.5 rounded-lg outline-none cursor-default transition-all duration-200","text-text-main text-[0.8125rem]",r&&"bg-primary-500/10 text-primary-600 shadow-sm",n&&"scale-[0.98] bg-primary-500/15",s&&"opacity-40 grayscale pointer-events-none",o)),children:V.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:n,hasSubmenu:s})=>(0,O.jsxs)(O.Fragment,{children:[r!=="none"&&(0,O.jsxs)("span",{className:"flex items-center w-4 h-4 shrink-0 justify-center",children:[n&&r==="multiple"&&(0,O.jsx)(at.Check,{className:"w-3.5 h-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),n&&r==="single"&&(0,O.jsx)(at.Dot,{className:"w-6 h-6 text-primary-500 animate-in zoom-in-50 duration-200"})]}),(0,O.jsx)("div",{className:"flex-1 flex flex-row items-center gap-2.5 truncate font-medium",children:o}),s&&(0,O.jsx)(at.ChevronRight,{className:"w-4 h-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function Fi({title:e,...t}){return(0,O.jsxs)(V.MenuSection,{...t,className:p("flex flex-col gap-0.5",t.className),children:[e&&(0,O.jsx)(V.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),(0,O.jsx)(V.Collection,{items:t.items,children:t.children})]})}function Wi(e){return(0,O.jsx)(V.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}var at,Nr,V,O,Se,No=w(()=>{"use strict";"use client";i();at=require("lucide-react"),Nr=I(require("react")),V=I(require("react-aria-components"));Pr();P();O=require("react/jsx-runtime");Se={Root:et,Item:Ce,Trigger:Ye,SubTrigger:$i,Section:Fi,Separator:Wi}});var tt,Co=w(()=>{"use strict";i();yo();wn();mr();fr();gr();hr();xr();Cr();$t();_n();No();Pr();Xo();Ue();tt=require("react-aria-components");P()});function cs(e){let{currentLocale:t,currentVersion:o}=T(),[r,n]=(0,kt.useState)(!1),[s,a]=(0,kt.useState)(""),c=(0,kt.useMemo)(()=>{let l=e.filter(f=>{let h=!t||f.locale===t,v=!o||f.version===o;return h&&v});if(!s)return l.slice(0,10).map(f=>({id:f.path,title:f.title,path:f.path,bio:f.description||"",groupTitle:f.groupTitle}));let d=[],m=s.toLowerCase();for(let f of l)if(f.title?.toLowerCase().includes(m)&&d.push({id:f.path,title:f.title,path:f.path,bio:f.description||"",groupTitle:f.groupTitle}),f.headings)for(let h of f.headings)h.text.toLowerCase().includes(m)&&d.push({id:`${f.path}#${h.id}`,title:h.text,path:`${f.path}#${h.id}`,bio:`Heading in ${f.title}`,groupTitle:f.title,isHeading:!0});let u=new Set;return d.filter(f=>u.has(f.path)?!1:(u.add(f.path),!0)).slice(0,10)},[e,s,t,o]);return{isOpen:r,setIsOpen:n,query:s,setQuery:a,list:c,input:{value:s,onChange:l=>a(l.target.value)}}}var kt,ms=w(()=>{"use strict";i();kt=require("react");J()});var ds={};zo(ds,{SearchDialog:()=>ta});function ta({routes:e}){let{isOpen:t,setIsOpen:o,query:r,setQuery:n,list:s}=cs(e),a=(0,ps.useNavigate)();(0,So.useEffect)(()=>{let l=d=>{(/Mac/.test(navigator.userAgent)?d.metaKey:d.ctrlKey)&&(d.key==="k"||d.key==="j")&&(d.preventDefault(),o(f=>!f))};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[o]);let c=(0,So.useCallback)(l=>{let d=String(l);if(o(!1),d.includes("#")){let[m,u]=d.split("#");a(m),setTimeout(()=>{let f=document.getElementById(u);f&&f.scrollIntoView({behavior:"smooth"})},100)}else a(d)},[a,o]);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(U.SearchTrigger,{onPress:()=>o(!0)}),(0,q.jsx)(or,{isOpen:t,onOpenChange:o,children:(0,q.jsxs)(rr,{onSelectionChange:c,children:[(0,q.jsx)(nr,{value:r,onChange:l=>n(l.target.value)}),(0,q.jsx)(sr,{items:s,children:l=>(0,q.jsxs)(ir,{onPress:()=>c(l.id),textValue:l.title,children:[(0,q.jsx)(ar,{isHeading:l.isHeading}),(0,q.jsxs)("div",{className:"flex flex-col justify-center gap-0.5",children:[(0,q.jsx)(lr,{children:l.title}),(0,q.jsx)(cr,{children:l.groupTitle})]})]},l.id)})]})})]})}var So,ps,q,us=w(()=>{"use strict";i();So=require("react");ms();mr();yo();ps=require("react-router-dom"),q=require("react/jsx-runtime")});var ca={};zo(ca,{Admonition:()=>ge,Badge:()=>Qt,Breadcrumbs:()=>Oo,Button:()=>Ft,Card:()=>Yt,Cards:()=>Jt,Caution:()=>io,CodeBlock:()=>xe,ComponentPreview:()=>xo,ComponentProps:()=>ho,CopyMarkdown:()=>lt,Danger:()=>ro,DefaultLayout:()=>Is,DocsLayout:()=>ze,ErrorBoundary:()=>gt,Field:()=>fo,FileTree:()=>po,Head:()=>Eo,Image:()=>bo,Important:()=>so,InfoBox:()=>no,Link:()=>go,List:()=>co,Loading:()=>To,Navbar:()=>Bo,NotFound:()=>xt,Note:()=>eo,OnThisPage:()=>Mo,PageNav:()=>Vo,ProgressBar:()=>Ho,Sidebar:()=>Ao,Tab:()=>Kt,Table:()=>uo,Tabs:()=>Xt,Tip:()=>to,Video:()=>Zt,Warning:()=>oo,createBoltdocsApp:()=>Xn,defineSandbox:()=>qo,embedSandbox:()=>nn,openSandbox:()=>_t,useConfig:()=>D,useMdxComponents:()=>je,useRoutes:()=>T,useTheme:()=>Oe});module.exports=Hs(ca);i();i();var j=I(require("react")),qn=I(require("react-dom/client")),le=require("react-router-dom");i();var Dr=require("lucide-react");Ue();var Te=require("react/jsx-runtime");function xt(){return(0,Te.jsx)("div",{className:"flex items-center justify-center min-h-[60vh] text-center",children:(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsx)("span",{className:"text-8xl font-black tracking-tighter text-primary-500/20",children:"404"}),(0,Te.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Page Not Found"}),(0,Te.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,Te.jsxs)(K,{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,Te.jsx)(Dr.ArrowLeft,{size:16})," Go to Home"]})]})})}i();var pe=require("react"),$r=require("react/jsx-runtime"),Hr=(0,pe.createContext)(void 0);function zr({children:e}){let[t,o]=(0,pe.useState)("system"),[r,n]=(0,pe.useState)("dark"),[s,a]=(0,pe.useState)(!1);(0,pe.useEffect)(()=>{a(!0);let l=localStorage.getItem("boltdocs-theme"),d=l==="light"||l==="dark"||l==="system"?l:"system";o(d);let m=window.matchMedia("(prefers-color-scheme: dark)");((h,v)=>{n(h==="system"?v?"dark":"light":h)})(d,m.matches);let f=h=>{n(v=>(localStorage.getItem("boltdocs-theme")||"system")==="system"?h.matches?"dark":"light":v)};return m.addEventListener("change",f),()=>m.removeEventListener("change",f)},[]),(0,pe.useEffect)(()=>{if(!s)return;let l=window.matchMedia("(prefers-color-scheme: dark)").matches,d=t==="system"?l?"dark":"light":t;n(d);let m=document.documentElement;d==="light"?(m.classList.add("theme-light"),m.dataset.theme="light"):(m.classList.remove("theme-light"),m.dataset.theme="dark")},[t,s]);let c=l=>{o(l),localStorage.setItem("boltdocs-theme",l)};return(0,$r.jsx)(Hr.Provider,{value:{theme:t,resolvedTheme:r,setTheme:c},children:e})}function Oe(){let e=(0,pe.use)(Hr);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}var mt=I(require("virtual:boltdocs-layout"));Et();i();var Fr=require("react"),Wr=require("react-aria-components"),Vt=require("react-router-dom"),Gr=require("react/jsx-runtime");function _r({children:e}){let t=(0,Vt.useNavigate)();return(0,Gr.jsx)(Wr.RouterProvider,{navigate:(o,r)=>{(0,Fr.startTransition)(()=>{t(o,r)})},useHref:Vt.useHref,children:e})}me();i();var Ur=require("react"),jr=require("react-router-dom");function qr(){let{pathname:e,hash:t}=(0,jr.useLocation)();return(0,Ur.useLayoutEffect)(()=>{let o=document.querySelector(".boltdocs-content");if(o){if(t){let r=t.replace("#",""),n=document.getElementById(r);if(n){let a=o.getBoundingClientRect().top,d=n.getBoundingClientRect().top-a-80+o.scrollTop;o.scrollTo({top:d,behavior:"smooth"});return}}o.scrollTo(0,0)}},[e,t]),null}i();var Kr=require("react-router-dom"),Xr=I(require("virtual:boltdocs-layout")),Go=require("react/jsx-runtime");function Zr(){return(0,Go.jsx)(Xr.default,{children:(0,Go.jsx)(Kr.Outlet,{})})}i();var en=require("@mdx-js/react");i();var Dt=require("react"),Yr=require("react/jsx-runtime"),Qr=(0,Dt.createContext)({});function je(){return(0,Dt.useContext)(Qr)}function Jr({components:e,children:t}){return(0,Yr.jsx)(Qr.Provider,{value:e,children:t})}var Uo=require("react/jsx-runtime");function tn({Component:e}){let t=je();return(0,Uo.jsx)(en.MDXProvider,{components:t,children:(0,Uo.jsx)(e,{})})}i();var Un=require("lucide-react");var wr={};zo(wr,{Admonition:()=>ge,Badge:()=>Qt,Button:()=>Ft,Card:()=>Yt,Cards:()=>Jt,Caution:()=>io,CodeBlock:()=>xe,ComponentPreview:()=>xo,ComponentProps:()=>ho,CopyMarkdown:()=>lt,Danger:()=>ro,Field:()=>fo,FileTree:()=>po,Image:()=>bo,Important:()=>so,InfoBox:()=>no,Link:()=>go,List:()=>co,Note:()=>eo,Tab:()=>Kt,Table:()=>uo,Tabs:()=>Xt,Tip:()=>to,Video:()=>Zt,Warning:()=>oo});i();i();$t();P();var rn=require("react/jsx-runtime"),Ft=({className:e,variant:t,size:o,rounded:r,iconSize:n,disabled:s,...a})=>(0,rn.jsx)(ue,{className:p("group",Ht({variant:t,size:o,rounded:r,iconSize:n,disabled:s,className:e})),...a});i();var jt=I(require("react-aria-components")),qt=require("lucide-react");P();i();me();i();var Wt=require("codesandbox/lib/api/define.js");function jo(e){let t=e.files||{},o=e.dependencies||{},r=e.devDependencies||{},n=e.title||"codesandbox-project",s=e.description||"Generic Sandbox",a={};for(let[c,l]of Object.entries(t)){let d=typeof l.content=="object"?JSON.stringify(l.content,null,2):l.content;a[c]={content:d,isBinary:l.isBinary??!1}}if(!a["package.json"]){let l=e.template==="vite"||!!r.vite||!!r["@vitejs/plugin-react"]?{dev:"vite",build:"vite build",preview:"vite preview"}:{start:"node index.js"};a["package.json"]={content:JSON.stringify({private:!0,name:n,description:s,type:"module",version:"1.0.0",scripts:e.scripts||l,dependencies:o,devDependencies:r},null,2),isBinary:!1}}return a}function qo(e){let t=jo(e),o=(0,Wt.getParameters)({files:t}),r=new URLSearchParams({parameters:o,installDependencies:"true"});return e.entry&&r.set("file",`/${e.entry}`),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?${r.toString()}`,options:e}}function _t(e){if(typeof window>"u")return qo(e);let t=jo(e),o=(0,Wt.getParameters)({files:t}),r=e.entry||"src/App.tsx",n=document.createElement("form");n.method="POST",n.target="_blank",n.action="https://codesandbox.io/api/v1/sandboxes/define",n.style.display="none";let s=(c,l)=>{let d=document.createElement("input");d.type="hidden",d.name=c,d.value=l,n.appendChild(d)},a=new URLSearchParams({file:`/${r}`,eslint:"0",codemirror:"1",installDependencies:"true"});return s("query",a.toString()),s("parameters",o),document.body.appendChild(n),n.submit(),document.body.removeChild(n),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?parameters=${o}`,options:e}}function nn(e){let t=jo(e),o=(0,Wt.getParameters)({files:t}),r=e.embed||{},n=new URLSearchParams({parameters:o,embed:"1"});return r.view&&n.set("view",r.view),r.theme&&n.set("theme",r.theme),r.hideNavigation&&n.set("hidenavigation","1"),e.entry&&n.set("file",`/${e.entry}`),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?${n.toString()}`,options:e}}i();var sn=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 fe=require("react");function an(e){let{title:t,sandbox:o}=e,[r,n]=(0,fe.useState)(!1),[s,a]=(0,fe.useState)(!1),[c,l]=(0,fe.useState)(!1),d=(0,fe.useRef)(null),m=D(),u=(0,fe.useCallback)(async()=>{let h=d.current?.textContent??"";sn(h),n(!0),setTimeout(()=>n(!1),2e3)},[]),f=(0,fe.useCallback)(()=>{let h=d.current?.textContent??"",v=m?.integrations?.sandbox?.config||{},x=typeof o=="object"?o:v,g=x.entry||"src/App.tsx";_t({title:t??"Code Snippet",...x,files:{...x.files,[g]:{content:h}}})},[t,m,o]);return(0,fe.useEffect)(()=>{let h=d.current?.textContent?.length??0;l(h>120)},[e.children,e.highlightedHtml]),{copied:r,isExpanded:s,setIsExpanded:a,isExpandable:c,preRef:d,handleCopy:u,handleSandbox:f,shouldTruncate:c&&!s}}me();Ut();Xo();var G=require("react/jsx-runtime");function xe(e){let{children:t,sandbox:o,hideSandbox:r=!0,hideCopy:n=!1,highlightedHtml:s,...a}=e,d=!!D()?.integrations?.sandbox?.enable&&!r,{copied:m,isExpanded:u,setIsExpanded:f,isExpandable:h,preRef:v,handleCopy:x,handleSandbox:g,shouldTruncate:S}=an(e);return(0,G.jsxs)("div",{className:p("group relative my-6 overflow-hidden rounded-lg border border-border-subtle bg-(--color-code-bg)",S&&"[&>pre]:max-h-[250px] [&>pre]:overflow-hidden"),children:[(0,G.jsxs)("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:[d&&(0,G.jsx)(Ko,{content:"Open in CodeSandbox",children:(0,G.jsx)(jt.Button,{onPress:g,className:"grid place-items-center w-8 h-8 bg-transparent text-text-muted outline-none cursor-pointer transition-all duration-200 hover:scale-115 hover:text-sky-400 active:scale-95 [&>svg]:w-5 [&>svg]:h-5 [&>svg]:stroke-2","aria-label":"Open in CodeSandbox",children:(0,G.jsx)(mn,{size:20})})}),!n&&(0,G.jsx)(Ko,{content:m?"Copied!":"Copy code",children:(0,G.jsx)(jt.Button,{onPress:x,className:p("grid place-items-center w-8 h-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-115 active:scale-95 [&>svg]:w-5 [&>svg]:h-5 [&>svg]:stroke-2",m?"text-emerald-400":"text-text-muted hover:text-text-main"),"aria-label":"Copy code",children:m?(0,G.jsx)(qt.Check,{size:20}):(0,G.jsx)(qt.Copy,{size:20})})})]}),s?(0,G.jsx)("div",{ref:v,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:s}}):(0,G.jsx)("pre",{ref:v,className:"m-0! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7]",...a,children:t}),h&&(0,G.jsx)("div",{className:p(S?"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,G.jsx)(jt.Button,{onPress:()=>f(!u),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:u?"Show less":"Expand code"})})]})}i();var Ke=require("react"),Ve=I(require("react-aria-components"));i();var Le=require("react");function dn({initialIndex:e=0,tabs:t}){let o=t[e]?.props.disabled?t.findIndex(d=>!d.props.disabled):e,[r,n]=(0,Le.useState)(o===-1?0:o),s=(0,Le.useRef)([]),[a,c]=(0,Le.useState)({opacity:0,transform:"translateX(0)",width:0});(0,Le.useEffect)(()=>{let d=s.current[r];d&&c({opacity:1,width:d.offsetWidth,transform:`translateX(${d.offsetLeft}px)`})},[r,t]);let l=(0,Le.useCallback)(d=>{let m=0;if(d.key==="ArrowRight"?m=1:d.key==="ArrowLeft"&&(m=-1),m!==0){let u=(r+m+t.length)%t.length;for(;t[u].props.disabled&&u!==r;)u=(u+m+t.length)%t.length;u!==r&&!t[u].props.disabled&&(n(u),s.current[u]?.focus())}},[r,t]);return{active:r,setActive:n,tabRefs:s,indicatorStyle:a,handleKeyDown:l}}P();var Zo=require("class-variance-authority"),Y=require("react/jsx-runtime"),Ws=(0,Zo.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"}}),_s=(0,Zo.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 Kt({children:e}){let t=typeof e=="string"?(0,Y.jsx)(xe,{className:"language-bash",children:(0,Y.jsx)("code",{children:e.trim()})}):e;return(0,Y.jsx)("div",{className:"py-4",children:t})}function Xt({defaultIndex:e=0,children:t}){let o=(0,Ke.useMemo)(()=>Ke.Children.toArray(t).filter(c=>(0,Ke.isValidElement)(c)&&c.props?.label),[t]),{active:r,setActive:n,tabRefs:s,indicatorStyle:a}=dn({initialIndex:e,tabs:o});return(0,Y.jsx)("div",{className:"my-8 w-full group/tabs",children:(0,Y.jsxs)(Ve.Tabs,{selectedKey:r.toString(),onSelectionChange:c=>n(Number(c)),className:"w-full",children:[(0,Y.jsxs)(Ve.TabList,{"aria-label":"Content Tabs",className:p(Ws()),children:[o.map((c,l)=>{let{label:d,icon:m,disabled:u}=c.props,f=l.toString();return(0,Y.jsxs)(Ve.Tab,{id:f,isDisabled:u,ref:h=>{s.current[l]=h},className:({isSelected:h,isDisabled:v})=>p(_s({isActive:h,isDisabled:v})),children:[!!m&&(0,Y.jsx)("span",{className:"shrink-0 [&>svg]:w-4 [&>svg]:h-4",children:m}),(0,Y.jsx)("span",{children:d})]},f)}),(0,Y.jsx)("div",{className:"absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none",style:a,"aria-hidden":"true"})]}),o.map((c,l)=>(0,Y.jsx)(Ve.TabPanel,{id:l.toString(),children:o[l]},l))]})})}i();var Xe=require("react"),yt=require("react/jsx-runtime");function Zt({src:e,poster:t,alt:o,children:r,controls:n,preload:s="metadata",...a}){let c=(0,Xe.useRef)(null),[l,d]=(0,Xe.useState)(!1);return(0,Xe.useEffect)(()=>{let m=c.current;if(!m)return;let u=new IntersectionObserver(([f])=>{f.isIntersecting&&(d(!0),u.disconnect())},{rootMargin:"200px"});return u.observe(m),()=>u.disconnect()},[]),(0,yt.jsx)("div",{ref:c,className:"my-6 overflow-hidden rounded-lg border border-border-subtle",children:l?(0,yt.jsxs)("video",{className:"block w-full h-auto",src:e,poster:t,controls:!0,preload:s,playsInline:!0,...a,children:[r,"Your browser does not support the video tag."]}):(0,yt.jsx)("div",{className:"aspect-video bg-bg-surface animate-pulse",role:"img","aria-label":o||"Video"})})}i();P();var un=require("class-variance-authority"),fn=require("react/jsx-runtime"),Gs=(0,un.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 Qt({variant:e="default",children:t,className:o="",...r}){return(0,fn.jsx)("span",{className:p(Gs({variant:e}),o),...r,children:t})}i();var Ct=require("react"),gn=I(require("react-aria-components"));P();var bn=require("class-variance-authority"),ee=require("react/jsx-runtime"),Us=(0,bn.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 Jt({cols:e=3,children:t,className:o="",...r}){return(0,ee.jsx)("div",{className:p(Us({cols:e}),o),...r,children:t})}function Yt({title:e,icon:t,href:o,children:r,className:n="",...s}){let a=(0,Ct.useRef)(null),c=(0,Ct.useRef)(null),l=(0,Ct.useCallback)(u=>{let f=a.current||c.current;if(!f)return;let{left:h,top:v}=f.getBoundingClientRect();f.style.setProperty("--x",`${u.clientX-h}px`),f.style.setProperty("--y",`${u.clientY-v}px`)},[]),d=(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.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,ee.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,ee.jsxs)("div",{className:"space-y-1.5",children:[e&&(0,ee.jsx)("h3",{className:"text-sm font-bold text-text-main",children:e}),r&&(0,ee.jsx)("div",{className:"text-sm text-text-muted leading-relaxed",children:r})]})]}),m=p("group relative block rounded-xl border border-border-subtle bg-bg-surface p-5 outline-none overflow-hidden","transition-all duration-200 hover:border-primary-500/40 hover:shadow-lg hover:shadow-primary-500/5","focus-visible:ring-2 focus-visible:ring-primary-500/30",n);return o?(0,ee.jsx)(gn.Link,{ref:c,href:o,className:p(m,"no-underline cursor-pointer"),onMouseMove:l,...s,children:d}):(0,ee.jsx)("div",{ref:a,role:"presentation",className:m,onMouseMove:l,...s,children:d})}i();var X=require("lucide-react");P();var xn=require("class-variance-authority"),M=require("react/jsx-runtime"),js={note:(0,M.jsx)(X.Bookmark,{size:18}),tip:(0,M.jsx)(X.Lightbulb,{size:18}),info:(0,M.jsx)(X.Info,{size:18}),warning:(0,M.jsx)(X.AlertTriangle,{size:18}),danger:(0,M.jsx)(X.ShieldAlert,{size:18}),important:(0,M.jsx)(X.Flame,{size:18}),caution:(0,M.jsx)(X.Zap,{size:18})},qs={note:"Note",tip:"Tip",info:"Info",warning:"Warning",danger:"Danger",important:"Important",caution:"Caution"},hn=(0,xn.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 ge({type:e="note",title:t,children:o,className:r="",...n}){return(0,M.jsxs)("div",{className:p(hn({type:e}),r),role:e==="warning"||e==="danger"?"alert":"note",...n,children:[(0,M.jsxs)("div",{className:"flex items-center flex-row gap-2 mb-2",children:[(0,M.jsx)("span",{className:p("shrink-0",hn({type:e})),children:js[e]}),(0,M.jsx)("span",{className:"text-sm font-bold tracking-tight text-text-main",children:t||qs[e]})]}),(0,M.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0",children:o})]})}var eo=e=>(0,M.jsx)(ge,{type:"note",...e}),to=e=>(0,M.jsx)(ge,{type:"tip",...e}),oo=e=>(0,M.jsx)(ge,{type:"warning",...e}),ro=e=>(0,M.jsx)(ge,{type:"danger",...e}),no=e=>(0,M.jsx)(ge,{type:"info",...e}),so=e=>(0,M.jsx)(ge,{type:"important",...e}),io=e=>(0,M.jsx)(ge,{type:"caution",...e});i();var ao=require("react"),Ze=require("lucide-react");P();var lo=require("class-variance-authority"),be=require("react/jsx-runtime"),Ks=(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}}),Xs=(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}}),Zs=(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 Qs({icon:e,children:t,variant:o,dense:r}){return(0,be.jsxs)("li",{className:p(Xs({variant:o,dense:r})),children:[e&&(0,be.jsx)("span",{className:p(Zs({variant:o==="bubble"?"bubble":"default"})),children:e}),(0,be.jsx)("div",{className:"flex-1 text-text-muted group-hover:text-text-main transition-colors",children:t})]})}var Js={checked:e=>(0,be.jsx)(Ze.Check,{size:14,className:p("text-emerald-500 shrink-0",e)}),arrow:e=>(0,be.jsx)(Ze.ChevronRight,{size:14,className:p("text-primary-400 shrink-0",e)}),bubble:e=>(0,be.jsx)(Ze.Circle,{size:6,fill:"currentColor",className:p("text-primary-500 shrink-0",e)}),default:()=>null,number:()=>null};function co({variant:e="default",cols:t=1,dense:o=!1,children:r,className:n,...s}){let a=t!==void 0&&Number(t)>1,c=Js[e],l=Ks({variant:e,cols:t,dense:o,isGrid:a,className:n}),d=e==="number"?"ol":"ul";return e==="default"||e==="number"?(0,be.jsx)(d,{className:l,...s,children:r}):(0,be.jsx)("ul",{className:l,...s,children:ao.Children.map(r,m=>{if(!(0,ao.isValidElement)(m))return m;let u=m,f=u.type==="li"?u.props.children:u.props.children||m;return(0,be.jsx)(Qs,{icon:c(),variant:e,dense:o,children:f})})})}i();var ve=require("react"),ye=I(require("react-aria-components")),se=require("lucide-react");P();var E=require("react/jsx-runtime"),Rt=16,Pt=2,Qo={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 Yo(e){return typeof e=="string"?e:typeof e=="number"?e.toString():Array.isArray(e)?e.map(Yo).join(""):(0,ve.isValidElement)(e)&&e.props&&typeof e.props=="object"&&"children"in e.props?Yo(e.props.children):""}function Ys(e,t){let o=e.toLowerCase(),r="shrink-0 transition-colors duration-200";if(t)return(0,E.jsx)(se.Folder,{size:Rt,strokeWidth:Pt,className:p(r,"text-primary-400"),fill:"currentColor",fillOpacity:.15});let n=p(r,"text-text-dim group-hover:text-text-main");return Qo.CODE.test(o)?(0,E.jsx)(se.FileCode,{size:Rt,strokeWidth:Pt,className:n}):Qo.TEXT.test(o)?(0,E.jsx)(se.FileText,{size:Rt,strokeWidth:Pt,className:n}):Qo.IMAGE.test(o)?(0,E.jsx)(se.FileImage,{size:Rt,strokeWidth:Pt,className:n}):(0,E.jsx)(se.File,{size:Rt,strokeWidth:Pt,className:n})}function Jo(e,t){if(!(0,ve.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 ei(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function mo(e,t="root"){if(!(0,ve.isValidElement)(e))return[];let o=[];if(Jo(e,"ul"))return ve.Children.forEach(e.props.children,(r,n)=>{o.push(...mo(r,`${t}-${n}`))}),o;if(Jo(e,"li")){let r=ve.Children.toArray(e.props.children),n=r.findIndex(v=>Jo(v,"ul")),s=n!==-1,a=s?r.slice(0,n):r,c=s?r.slice(n):[],l=Yo(a),{name:d,comment:m}=ei(l),u=d.endsWith("/"),f=u?d.slice(0,-1):d,h=s||u;return o.push({id:`${t}-${f}`,name:f,comment:m,isFolder:h,children:s?mo(c[0],`${t}-${f}`):void 0}),o}return e.props&&typeof e.props=="object"&&"children"in e.props&&ve.Children.forEach(e.props.children,(r,n)=>{o.push(...mo(r,`${t}-${n}`))}),o}function vn({item:e}){return(0,E.jsxs)(ye.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,E.jsx)(ye.TreeItemContent,{children:({isExpanded:t,hasChildItems:o})=>(0,E.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,E.jsx)("div",{style:{width:"calc((var(--tree-item-level) - 1) * 1rem)"},className:"shrink-0"}),o?(0,E.jsx)(ye.Button,{slot:"chevron",className:"outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors",children:(0,E.jsx)(se.ChevronRight,{size:14,strokeWidth:3,className:p("transition-transform duration-200",t&&"rotate-90")})}):(0,E.jsx)("div",{className:"w-[18px]"}),Ys(e.name,e.isFolder),(0,E.jsx)("span",{className:p("text-sm transition-colors truncate select-none",e.isFolder?"font-semibold text-text-main":"text-text-muted group-hover:text-text-main"),children:e.name}),e.comment&&(0,E.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,E.jsx)(ye.Collection,{items:e.children,children:t=>(0,E.jsx)(vn,{item:t})})]})}function po({children:e}){let t=(0,ve.useMemo)(()=>mo(e),[e]);return(0,E.jsx)("div",{className:"my-8",children:(0,E.jsx)(ye.Tree,{items:t,"aria-label":"File Tree",className:p("rounded-xl border border-border-subtle bg-bg-surface/50 p-4 font-mono text-sm shadow-sm backdrop-blur-sm outline-none","max-h-[500px] overflow-y-auto scrollbar-thin scrollbar-thumb-border-subtle","focus-visible:ring-2 focus-visible:ring-primary-500/20"),children:o=>(0,E.jsx)(vn,{item:o})})})}i();var Nt=I(require("react-aria-components"));i();var Qe=require("react");function yn({data:e,sortable:t=!1,paginated:o=!1,pageSize:r=10}){let[n,s]=(0,Qe.useState)(null),[a,c]=(0,Qe.useState)(1),l=(0,Qe.useMemo)(()=>{if(!e)return[];let f=[...e];return t&&n!==null&&f.sort((h,v)=>{let x=h[n.key],g=v[n.key],S=typeof x=="string"?x:"",Z=typeof g=="string"?g:"";return S<Z?n.direction==="asc"?-1:1:S>Z?n.direction==="asc"?1:-1:0}),f},[e,n,t]),d=Math.ceil(l.length/r),m=(0,Qe.useMemo)(()=>{if(!o)return l;let f=(a-1)*r;return l.slice(f,f+r)},[l,o,a,r]);return{sortConfig:n,currentPage:a,setCurrentPage:c,totalPages:d,paginatedData:m,requestSort:f=>{if(!t)return;let h="asc";n&&n.key===f&&n.direction==="asc"&&(h="desc"),s({key:f,direction:h})}}}var te=require("lucide-react");P();var N=require("react/jsx-runtime");function uo({headers:e,data:t,children:o,className:r="",sortable:n=!1,paginated:s=!1,pageSize:a=10}){let{sortConfig:c,currentPage:l,setCurrentPage:d,totalPages:m,paginatedData:u,requestSort:f}=yn({data:t,sortable:n,paginated:s,pageSize:a}),h=x=>n?c?.key!==x?(0,N.jsx)(te.ChevronDown,{size:14,className:"ml-1 opacity-30"}):c.direction==="asc"?(0,N.jsx)(te.ChevronUp,{size:14,className:"ml-1 text-primary-400"}):(0,N.jsx)(te.ChevronDown,{size:14,className:"ml-1 text-primary-400"}):null,v=o||(0,N.jsxs)(N.Fragment,{children:[e&&(0,N.jsx)("thead",{children:(0,N.jsx)("tr",{children:e.map((x,g)=>(0,N.jsx)("th",{onClick:()=>f(g),className:p("text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm",n&&"cursor-pointer select-none hover:text-primary-400 transition-colors"),children:(0,N.jsxs)("div",{className:"flex items-center",children:[x,h(g)]})},g))})}),u&&(0,N.jsx)("tbody",{children:u.map((x,g)=>(0,N.jsx)("tr",{className:"transition-colors hover:bg-bg-surface",children:x.map((S,Z)=>(0,N.jsx)("td",{className:"px-3 py-2 border-b border-border-subtle text-sm text-text-muted",children:S},Z))},g))})]});return(0,N.jsxs)("div",{className:p("my-6 rounded-lg border border-border-subtle overflow-hidden",r),children:[(0,N.jsx)("div",{className:"overflow-x-auto",children:(0,N.jsx)("table",{className:"w-full border-collapse text-sm",children:v})}),s&&m>1&&(0,N.jsxs)("div",{className:"flex items-center justify-between border-t border-border-subtle px-4 py-3",children:[(0,N.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",l," of ",m]}),(0,N.jsxs)("div",{className:"flex items-center gap-1",children:[(0,N.jsx)(Nt.Button,{onPress:()=>d(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,N.jsx)(te.ChevronsLeft,{size:16})}),(0,N.jsx)(Nt.Button,{onPress:()=>d(x=>Math.max(x-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,N.jsx)(te.ChevronLeft,{size:16})}),(0,N.jsx)(Nt.Button,{onPress:()=>d(x=>Math.min(x+1,m)),isDisabled:l===m,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,N.jsx)(te.ChevronRight,{size:16})}),(0,N.jsx)(Nt.Button,{onPress:()=>d(m),isDisabled:l===m,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,N.jsx)(te.ChevronsRight,{size:16})})]})]})]})}i();P();var oe=require("react/jsx-runtime");function fo({name:e,type:t,defaultValue:o,required:r=!1,children:n,id:s,className:a=""}){return(0,oe.jsxs)("article",{className:p("group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300","hover:border-primary-500/30 hover:shadow-lg hover:shadow-primary-500/5",a),id:s,children:[(0,oe.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,oe.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,oe.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,oe.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,oe.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,oe.jsx)("span",{className:"h-1 w-1 rounded-full bg-red-400 animate-pulse"}),"Required"]})]}),o&&(0,oe.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,oe.jsx)("span",{className:"font-semibold opacity-60 uppercase tracking-tighter",children:"Default"}),(0,oe.jsx)("code",{className:"font-mono text-text-main font-medium",children:o})]})]}),(0,oe.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30",children:n})]})}i();Ue();P();var Cn=require("react/jsx-runtime");function go({to:e,children:t,className:o="",...r}){let n=e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")),s=p("text-blue-600 hover:text-blue-800 hover:underline cursor-pointer",o);return(0,Cn.jsx)(K,{href:e,className:s,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...r,children:t})}i();var Rn=require("react/jsx-runtime");function bo({src:e,alt:t,theme:o,...r}){let{theme:n}=Oe();return o&&o!==n?null:(0,Rn.jsx)("img",{src:e,alt:t||"",...r})}i();P();var B=require("react/jsx-runtime");function ho({title:e,props:t,className:o=""}){return(0,B.jsxs)("div",{className:p("my-6",o),children:[e&&(0,B.jsx)("h3",{className:"text-base font-bold text-text-main mb-3",children:e}),(0,B.jsx)("div",{className:"overflow-x-auto rounded-lg border border-border-subtle",children:(0,B.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,B.jsx)("thead",{children:(0,B.jsxs)("tr",{children:[(0,B.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,B.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,B.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,B.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,B.jsx)("tbody",{children:t.map((r,n)=>(0,B.jsxs)("tr",{className:"transition-colors hover:bg-bg-surface",children:[(0,B.jsxs)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:[(0,B.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,B.jsx)("span",{className:"ml-1 text-red-400 font-bold",children:"*"})]}),(0,B.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:(0,B.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted",children:r.type})}),(0,B.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:r.defaultValue?(0,B.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400",children:r.defaultValue}):(0,B.jsx)("span",{className:"text-text-dim",children:"\u2014"})}),(0,B.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle text-text-muted",children:r.description})]},`${r.name}-${n}`))})]})})]})}i();i();var er=require("react");function Pn(e){let{code:t,children:o,preview:r}=e,n=(0,er.useMemo)(()=>(t??(typeof o=="string"?o:"")).trim(),[t,o]),s=(0,er.useMemo)(()=>r??(typeof o!="string"?o:null),[r,o]);return{initialCode:n,previewElement:s}}var Je=require("react/jsx-runtime");function xo(e){let{highlightedHtml:t,hideCode:o=!1,hideSandbox:r=!1,hideCopy:n=!1,sandboxOptions:s={}}=e,{initialCode:a,previewElement:c}=Pn(e);return(0,Je.jsxs)("div",{className:"my-6 overflow-hidden rounded-xl border border-border-subtle",children:[(0,Je.jsx)("div",{className:"flex items-center justify-center p-8 bg-bg-surface",children:c}),!o&&(0,Je.jsx)("div",{className:"border-t border-border-subtle",children:(0,Je.jsx)(xe,{hideSandbox:r,hideCopy:n,title:s.title,lang:"tsx",highlightedHtml:t,children:a})})]})}i();var Gn=require("react"),Ie=require("lucide-react");Co();var z=require("react/jsx-runtime"),_i=e=>{let[t,o]=(0,Gn.useState)(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)},handleOpenRaw:()=>{let s=new Blob([e],{type:"text/plain;charset=utf-8"}),a=URL.createObjectURL(s);window.open(a,"_blank")}}};function lt({content:e,mdxRaw:t,config:o}){let r=t||e||"",{copied:n,handleCopy:s,handleOpenRaw:a}=_i(r),c=o!==!1,l=typeof o=="object"&&o.text||"Copy Markdown";return!c||!r?null:(0,z.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,z.jsxs)(Fn,{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,z.jsx)(ue,{variant:"ghost",onPress:s,icon:n?(0,z.jsx)(Ie.Check,{size:16}):(0,z.jsx)(Ie.Copy,{size:16}),iconPosition:"left",className:p("px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 border-none shrink-0","text-text-main transition-all duration-300 hover:bg-primary-500/5",n&&"text-emerald-500 hover:bg-emerald-500/5"),children:n?"Copied!":l}),(0,z.jsxs)(Ye,{placement:"bottom end",children:[(0,z.jsx)(ue,{variant:"ghost",isIconOnly:!0,icon:(0,z.jsx)(Ie.ChevronDown,{size:14}),className:p("px-3.5 h-9 border-l border-border-subtle/50 text-text-muted rounded-none bg-transparent shrink-0","transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500")}),(0,z.jsxs)(et,{className:"w-52",children:[(0,z.jsxs)(Ce,{onAction:s,className:"flex flex-row items-start gap-2.5 group",children:[(0,z.jsx)(Ie.Copy,{size:16,className:"w-4 h-4 shrink-0 mt-0.5 transition-transform duration-200 group-hover:-translate-y-0.5 text-text-muted group-hover:text-primary-500"}),(0,z.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"Copy Markdown"})]}),(0,z.jsxs)(Ce,{onAction:a,className:"flex flex-row items-start gap-2.5 group",children:[(0,z.jsx)(Ie.ExternalLink,{size:16,className:"w-4 h-4 shrink-0 mt-0.5 transition-transform duration-200 group-hover:-translate-y-0.5 text-text-muted group-hover:text-primary-500"}),(0,z.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"View as Markdown"})]})]})]})]})})}i();var wo=require("react"),re=require("react/jsx-runtime");function To(){let[e,t]=(0,wo.useState)(0);(0,wo.useEffect)(()=>{let r=0,n=!0,s=setInterval(()=>{n?(r+=1,r>=100&&(r=100,n=!1)):(r-=1,r<=0&&(r=0,n=!0)),t(r)},20);return()=>clearInterval(s)},[]);let o=`inset(${100-e}% 0 0 0)`;return(0,re.jsx)("div",{className:"flex flex-col items-center justify-center min-h-[60vh] p-4 text-center",children:(0,re.jsx)("div",{className:"relative group",children:(0,re.jsxs)("div",{className:"relative inline-block",children:[(0,re.jsxs)("svg",{className:"w-24 h-auto opacity-10 filter grayscale brightness-50",viewBox:"0 0 60 51",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",children:[(0,re.jsx)("title",{children:"Loading indicator background"}),(0,re.jsx)("path",{d:"M29.4449 0H19.4449V16.5L29.4449 6.5V0Z",fill:"currentColor"}),(0,re.jsx)("path",{d:"M26.9449 22.7265C26.9449 22.5077 21.2201 27.0658 16.9449 28.5C13.7491 29.5721 12.3156 29.5038 8.94486 29.5C5.59532 29.4963 0 28.5 0 28.5C0 28.5 5.57953 28.5146 8.94486 27.5C12.5409 26.4158 14.8203 25.5843 17.9449 23.5C23.3445 19.898 29.4449 11.5 29.4449 11.5L29.9449 18C29.9449 18 33.5825 15.8308 36.4449 15C39.4452 14.1291 44.4449 14 44.4449 14C44.4449 14 36.9449 19 34.4449 21.5C31.5322 24.4126 29.8582 26.9017 29.4449 31C29.1217 34.2041 29.4771 36.4508 31.4449 39C33.5792 41.765 35.952 43.0183 39.4449 43C42.677 42.9831 45.3003 42.4182 47.4449 40C49.7406 37.4113 50.2495 34.4466 49.9449 31C49.6603 27.7804 48.4876 25.4953 45.9449 23.5C43.2931 21.4191 36.4449 24 36.4449 24L47.9449 15C47.9449 15 51.5761 16.771 53.4449 18.5C55.711 20.5967 56.7467 22.1546 57.9449 25C59.1784 27.9295 59.4832 29.8216 59.4449 33C59.4089 35.9867 59.179 37.78 57.9449 40.5C56.8475 42.9185 55.8511 44.6507 53.9449 46.5C51.9236 48.4609 50.5803 49.0076 47.9449 50C45.5414 50.9051 44.0131 51 41.4449 51C38.8766 51 37.3235 50.9685 34.9449 50C32.4851 48.9985 29.4449 46 29.4449 46V51H19.4449V37.9904L22.9449 31.4226L26.9449 22.7265Z",fill:"currentColor"})]}),(0,re.jsxs)("svg",{className:"absolute top-0 left-0 w-24 h-auto text-primary-500 drop-shadow-[0_0_20px_rgba(var(--primary-rgb),0.5)] transition-[clip-path] duration-100 ease-linear",style:{clipPath:o},viewBox:"0 0 60 51",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",children:[(0,re.jsx)("title",{children:"Loading indicator animated fill"}),(0,re.jsx)("path",{d:"M29.4449 0H19.4449V16.5L29.4449 6.5V0Z",fill:"currentColor"}),(0,re.jsx)("path",{d:"M26.9449 22.7265C26.9449 22.5077 21.2201 27.0658 16.9449 28.5C13.7491 29.5721 12.3156 29.5038 8.94486 29.5C5.59532 29.4963 0 28.5 0 28.5C0 28.5 5.57953 28.5146 8.94486 27.5C12.5409 26.4158 14.8203 25.5843 17.9449 23.5C23.3445 19.898 29.4449 11.5 29.4449 11.5L29.9449 18C29.9449 18 33.5825 15.8308 36.4449 15C39.4452 14.1291 44.4449 14 44.4449 14C44.4449 14 36.9449 19 34.4449 21.5C31.5322 24.4126 29.8582 26.9017 29.4449 31C29.1217 34.2041 29.4771 36.4508 31.4449 39C33.5792 41.765 35.952 43.0183 39.4449 43C42.677 42.9831 45.3003 42.4182 47.4449 40C49.7406 37.4113 50.2495 34.4466 49.9449 31C49.6603 27.7804 48.4876 25.4953 45.9449 23.5C43.2931 21.4191 36.4449 24 36.4449 24L47.9449 15C47.9449 15 51.5761 16.771 53.4449 18.5C55.711 20.5967 56.7467 22.1546 57.9449 25C59.1784 27.9295 59.4832 29.8216 59.4449 33C59.4089 35.9867 59.179 37.78 57.9449 40.5C56.8475 42.9185 55.8511 44.6507 53.9449 46.5C51.9236 48.4609 50.5803 49.0076 47.9449 50C45.5414 50.9051 44.0131 51 41.4449 51C38.8766 51 37.3235 50.9685 34.9449 50C32.4851 48.9985 29.4449 46 29.4449 46V51H19.4449V37.9904L22.9449 31.4226L26.9449 22.7265Z",fill:"currentColor"})]})]})})})}var ae=require("react/jsx-runtime"),ct=({level:e,id:t,children:o,...r})=>{let n=`h${e}`;return(0,ae.jsxs)(n,{id:t,...r,className:"boltdocs-heading",children:[o,t&&(0,ae.jsx)("a",{href:`#${t}`,className:"header-anchor","aria-label":"Anchor",children:(0,ae.jsx)(Un.Link,{size:16})})]})},jn={...wr,Loading:To,h1:e=>(0,ae.jsx)(ct,{level:1,...e}),h2:e=>(0,ae.jsx)(ct,{level:2,...e}),h3:e=>(0,ae.jsx)(ct,{level:3,...e}),h4:e=>(0,ae.jsx)(ct,{level:4,...e}),h5:e=>(0,ae.jsx)(ct,{level:5,...e}),h6:e=>(0,ae.jsx)(ct,{level:6,...e}),pre:e=>(0,ae.jsx)(xe,{...e,children:e.children})};J();var Kn=require("react-router-dom");bt();var C=require("react/jsx-runtime");function Gi(){let{currentLocale:e,config:t}=T();return(0,j.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 Ui(){let e=(0,Kn.useLocation)(),{config:t}=T(),o=Q(a=>a.setLocale),r=Q(a=>a.setVersion),n=Q(a=>a.currentLocale),s=Q(a=>a.currentVersion);return(0,j.useEffect)(()=>{let a=e.pathname.split("/").filter(Boolean),c=0,l=t.versions?.defaultVersion,d=t.i18n?.defaultLocale;if(a[c]==="docs"&&c++,t.versions&&a.length>c){let m=t.versions.versions.find(u=>u.path===a[c]);m&&(l=m.path,c++)}t.i18n&&a.length>c&&t.i18n.locales[a[c]]?d=a[c]:t.i18n&&a.length===0&&(d=n||t.i18n.defaultLocale),d!==n&&o(d),l!==s&&r(l)},[e.pathname,t,o,r,n,s]),null}function ji({initialRoutes:e,initialConfig:t,docsDirName:o,modules:r,hot:n,homePage:s,externalPages:a,components:c={}}){let[l,d]=(0,j.useState)(e),[m,u]=(0,j.useState)(t),f=a||{},h=(0,j.useMemo)(()=>l.filter(g=>!(s&&(g.path==="/"||g.path===""))&&!f[g.path===""?"/":g.path]).map(g=>{let S=Object.keys(r).find(ce=>ce===`/${o}/${g.filePath}`||ce.endsWith(`/${o}/${g.filePath}`)||ce.endsWith(`/${o}\\${g.filePath.replace(/\\/g,"/")}`)),Z=S?r[S]:null;return{...g,Component:j.default.lazy(async()=>Z?await Z():{default:xt})}}),[l,r,o,s,f]);(0,j.useEffect)(()=>{n&&(n.on("boltdocs:routes-update",g=>{d(g)}),n.on("boltdocs:config-update",g=>{u(g)}))},[n]);let v=(0,j.useMemo)(()=>({...jn,...c}),[c]),x=v.Loading;return(0,C.jsx)(zr,{children:(0,C.jsx)(Jr,{components:v,children:(0,C.jsx)($o.Provider,{value:m,children:(0,C.jsx)(_r,{children:(0,C.jsxs)(Sr,{routes:l,modules:r,children:[(0,C.jsx)(qr,{}),(0,C.jsx)(Ui,{}),(0,C.jsx)(Gi,{}),(0,C.jsxs)(le.Routes,{children:[(0,C.jsx)(le.Route,{element:(0,C.jsx)(Zr,{}),children:h.map(g=>(0,C.jsx)(le.Route,{path:g.path===""?"/":g.path,element:(0,C.jsx)(j.default.Suspense,{fallback:(0,C.jsx)(x,{}),children:(0,C.jsx)(tn,{Component:g.Component})})},g.path))},"docs-layout"),s&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(le.Route,{path:"/",element:(0,C.jsx)(mt.default,{children:(0,C.jsx)(s,{})})}),m.i18n&&Object.keys(m.i18n.locales).map(g=>(0,C.jsx)(le.Route,{path:`/${g}`,element:(0,C.jsx)(mt.default,{children:(0,C.jsx)(s,{})})},`home-${g}`))]}),Object.entries(f).map(([g,S])=>{let Z=g==="/"?"":g;return(0,C.jsxs)(j.default.Fragment,{children:[(0,C.jsx)(le.Route,{path:g,element:(0,C.jsx)(mt.default,{children:(0,C.jsx)(S,{})})}),m.i18n&&Object.keys(m.i18n.locales).map(ce=>(0,C.jsx)(le.Route,{path:`/${ce}${Z}`,element:(0,C.jsx)(mt.default,{children:(0,C.jsx)(S,{})})},`${g}-${ce}`))]},g)}),(0,C.jsx)(le.Route,{path:"*",element:(0,C.jsx)(mt.default,{children:(0,C.jsx)(xt,{})})})]})]})})})})})}function Xn(e){let{target:t,routes:o,docsDirName:r,config:n,modules:s,hot:a,homePage:c,externalPages:l,components:d}=e,m=document.querySelector(t);if(!m)throw new Error(`[boltdocs] Mount target "${t}" not found in document.`);let u=(0,C.jsx)(j.default.StrictMode,{children:(0,C.jsx)(le.BrowserRouter,{children:(0,C.jsx)(ji,{initialRoutes:o,initialConfig:n,docsDirName:r,modules:s,hot:a,homePage:c,externalPages:l,components:d})})});m.innerHTML="",qn.default.createRoot(m).render(u)}me();J();i();P();var We=require("react/jsx-runtime");function qi({children:e,className:t,style:o}){return(0,We.jsx)("div",{className:p("h-screen flex flex-col overflow-hidden bg-bg-main text-text-main",t),style:o,children:e})}function Ki({children:e,className:t,style:o}){return(0,We.jsx)("div",{className:p("mx-auto flex flex-1 w-full max-w-(--breakpoint-3xl) bg-bg-main overflow-hidden",t),style:o,children:e})}function Xi({children:e,className:t,style:o}){return(0,We.jsx)("main",{className:p("boltdocs-content flex-1 min-w-0 overflow-y-auto",t),style:o,children:(0,We.jsx)("div",{className:"boltdocs-page mx-auto max-w-content-max pt-4 pb-20 px-4 sm:px-8",children:e})})}function Zi({children:e,className:t,style:o}){return(0,We.jsx)("div",{className:p("flex items-center justify-between mb-10",t),style:o,children:e})}function Qi({children:e,className:t,style:o}){return(0,We.jsx)("div",{className:p("mt-20",t),style:o,children:e})}var ze=Object.assign(qi,{Body:Ki,Content:Xi,ContentHeader:Zi,ContentFooter:Qi});i();i();var Io=require("react");i();var Zn=require("react-router-dom");me();i();function Be(e,t){return e?typeof e=="string"?e:t&&e[t]?e[t]:Object.values(e)[0]||"":""}J();function Qn(){let e=D(),{theme:t}=Oe(),o=(0,Zn.useLocation)(),{currentLocale:r}=T(),n=e.theme||{},s=Be(n.title,r)||"Boltdocs",a=n.navbar||[],c=n.socialLinks||[],l=n.githubRepo,d=a.map(v=>{let x=v.href||v.to||v.link||"";return{label:Be(v.label||v.text,r),href:x,active:o.pathname===x,to:x.startsWith("http")||x.startsWith("//")?"external":void 0,items:v.items?.map(g=>({label:Be(g.label||g.text,r),href:g.href||g.link||g.to||""}))}}),m=n.logo,u=m?typeof m=="string"?m:t==="dark"?m.dark:m.light:null,f={alt:(m&&typeof m=="object"?m.alt:void 0)||s,width:m&&typeof m=="object"?m.width:void 0,height:m&&typeof m=="object"?m.height:void 0},h=l?`https://github.com/${l}`:null;return{links:d,title:s,logo:u,logoProps:f,github:h,social:c,config:e,theme:t}}i();var Jn=require("react-router-dom");i();function $e(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}J();bt();function Yn(){let e=(0,Jn.useNavigate)(),t=T(),{allRoutes:o,currentRoute:r,currentVersion:n,currentLocale:s,config:a}=t,c=a.versions,l=Q(u=>u.setVersion),d=u=>{if(!c||u===n)return;l(u);let f=`/docs/${u}`;if(r){let h=$e(r.filePath,r.version,r.locale),v=o.find(x=>$e(x.filePath,x.version,x.locale)===h&&(x.version||c.defaultVersion)===u&&(s?x.locale===s:!x.locale));if(v)f=v.path;else{let x=o.find(g=>$e(g.filePath,g.version,g.locale)==="index.md"&&(g.version||c.defaultVersion)===u&&(s?g.locale===s:!g.locale));f=x?x.path:`/docs/${u}${s?`/${s}`:""}`}}e(f)},m=t.availableVersions.map(u=>({...u,label:u.label,value:u.key}));return{currentVersion:n,currentVersionLabel:t.currentVersionLabel,availableVersions:m,handleVersionChange:d}}i();var es=require("react-router-dom");J();bt();function ts(){let e=(0,es.useNavigate)(),t=T(),{allRoutes:o,currentRoute:r,currentLocale:n,config:s}=t,a=s.i18n,c=Q(f=>f.setLocale),l=f=>{if(!a||f===n)return;c(f);let h="/";if(r){let v=$e(r.filePath,r.version,r.locale),x=o.find(g=>$e(g.filePath,g.version,g.locale)===v&&(g.locale||a.defaultLocale)===f&&g.version===r.version);if(x)h=x.path;else{let g=o.find(S=>$e(S.filePath,S.version,S.locale)==="index.md"&&(S.locale||a.defaultLocale)===f&&S.version===r.version);h=g?g.path:f===a.defaultLocale?r.version?`/${r.version}`:"/":r.version?`/${r.version}/${f}`:`/${f}`}}else{let v=o.find(x=>(x.filePath==="index.mdx"||x.filePath==="index.md")&&(x.locale||a.defaultLocale)===f&&!x.version);v?h=v.path:h=f===a.defaultLocale?"/":`/${f}`}e(h)},m=s.i18n?.localeConfigs?.[n]?.label||s.i18n?.locales[n]||n,u=s.i18n?Object.entries(s.i18n.locales).map(([f,h])=>{let v=s.i18n?.localeConfigs?.[f];return{key:f,label:v?.label||h,value:f,isCurrent:f===n}}):[];return{currentLocale:n,currentLocaleLabel:m,availableLocales:u,handleLocaleChange:l}}J();yo();i();var Lo=require("react"),Ae=require("lucide-react");var os=require("react-aria-components");No();var W=require("react/jsx-runtime");function rs(){let{theme:e,setTheme:t}=Oe(),[o,r]=(0,Lo.useState)(!1);return(0,Lo.useEffect)(()=>{r(!0)},[]),o?(0,W.jsxs)(Ye,{placement:"bottom right",children:[(0,W.jsx)(os.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,W.jsx)(e==="system"?Ae.Monitor:e==="dark"?Ae.Moon:Ae.Sun,{size:20,className:"animate-in fade-in zoom-in duration-300"})}),(0,W.jsxs)(et,{selectionMode:"single",selectedKeys:[e],onSelectionChange:s=>{let a=Array.from(s)[0];t(a)},children:[(0,W.jsxs)(Ce,{id:"light",children:[(0,W.jsx)(Ae.Sun,{size:16}),(0,W.jsx)("span",{children:"Light"})]}),(0,W.jsxs)(Ce,{id:"dark",children:[(0,W.jsx)(Ae.Moon,{size:16}),(0,W.jsx)("span",{children:"Dark"})]}),(0,W.jsxs)(Ce,{id:"system",children:[(0,W.jsx)(Ae.Monitor,{size:16}),(0,W.jsx)("span",{children:"System"})]})]})]}):(0,W.jsx)("div",{className:"h-9 w-9"})}i();var ko=require("react");i();var Ji="https://api.github.com";async function ns(e,t,o=Ji){let r=new Headers;t&&r.append("authorization",t);let s=await(await fetch(`${o}/repos/${e}`,{headers:r})).json();return s.stargazers_count!==void 0?Yi(s.stargazers_count):"0"}var Yi=e=>Intl.NumberFormat("en",{notation:"compact",compactDisplay:"short"}).format(e);Ut();var Lt=require("react/jsx-runtime");function ss({repo:e}){let[t,o]=(0,ko.useState)(null);return(0,ko.useEffect)(()=>{e&&ns(e).then(r=>o(r)).catch(()=>o("0"))},[e]),(0,Lt.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,Lt.jsx)(Gt,{className:"h-4 w-4"}),t&&(0,Lt.jsx)("span",{className:"tabular-nums",children:t})]})}i();i();var is=require("react-router-dom"),pt=require("react");function as(e=[],t=[]){let o=(0,is.useLocation)(),r=(0,pt.useRef)([]),[n,s]=(0,pt.useState)({opacity:0,transform:"translateX(0) scaleX(0)",width:0}),c=t.find(m=>m.path===o.pathname)?.tab?.toLowerCase(),l=e.findIndex(m=>m.id.toLowerCase()===c),d=l===-1?0:l;return(0,pt.useEffect)(()=>{let m=r.current[d];m&&s({opacity:1,width:m.offsetWidth,transform:`translateX(${m.offsetLeft}px)`})},[d,e.length,o.pathname]),{tabs:e,activeIndex:d,indicatorStyle:n,tabRefs:r,activeTabId:c}}hr();Ue();var ea=I(require("lucide-react"));J();var Pe=require("react/jsx-runtime");function ls({tabs:e,routes:t}){let{currentLocale:o}=T(),{indicatorStyle:r,tabRefs:n,activeIndex:s}=as(e,t),a=c=>{if(!c)return null;if(c.trim().startsWith("<svg"))return(0,Pe.jsx)("span",{className:"h-4 w-4",dangerouslySetInnerHTML:{__html:c}});let l=ea[c];return l?(0,Pe.jsx)(l,{size:16}):(0,Pe.jsx)("img",{src:c,alt:"",className:"h-4 w-4 object-contain"})};return(0,Pe.jsx)("div",{className:"mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6",children:(0,Pe.jsxs)(br.TabsList,{className:"border-none py-0",children:[e.map((c,l)=>{let d=l===s,m=t.find(f=>f.tab&&f.tab.toLowerCase()===c.id.toLowerCase()),u=m?m.path:"#";return(0,Pe.jsxs)(K,{href:u,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 ${d?"text-primary-500":"text-text-muted hover:text-text-main"}`,children:[a(c.icon),(0,Pe.jsx)("span",{children:Be(c.text,o)})]},c.id)}),(0,Pe.jsx)(br.TabsIndicator,{style:r})]})})}var fs=require("react-router-dom");No();$t();var St=require("lucide-react");Fo();var y=require("react/jsx-runtime"),oa=(0,Io.lazy)(()=>Promise.resolve().then(()=>(us(),ds)).then(e=>({default:e.SearchDialog})));function Bo(){let{links:e,title:t,logo:o,logoProps:r,github:n,social:s,config:a}=Qn(),{routes:c,allRoutes:l,currentVersion:d,currentLocale:m}=T(),{pathname:u}=(0,fs.useLocation)(),f=a.theme||{},h=f?.tabs&&f.tabs.length>0;return(0,y.jsxs)(U.NavbarRoot,{className:h?"border-b-0":"",children:[(0,y.jsxs)(U.Content,{children:[(0,y.jsxs)(U.NavbarLeft,{children:[(0,y.jsx)(U.NavbarLogo,{src:o??"",alt:r?.alt||t,width:r?.width??24,height:r?.height??24}),(0,y.jsx)(U.Title,{children:t}),a.versions&&d&&(0,y.jsx)(na,{}),(0,y.jsx)(U.Links,{children:e.map(v=>(0,y.jsx)(ra,{link:v},v.href))})]}),(0,y.jsx)(U.NavbarCenter,{children:(0,y.jsx)(Io.Suspense,{fallback:(0,y.jsx)("div",{className:"h-9 w-32 animate-pulse rounded-md bg-bg-surface"}),children:(0,y.jsx)(oa,{routes:c||[]})})}),(0,y.jsxs)(U.NavbarRight,{children:[a.i18n&&m&&(0,y.jsx)(sa,{}),(0,y.jsx)(U.Split,{}),(0,y.jsx)(rs,{}),n&&(0,y.jsx)(ss,{repo:f?.githubRepo??""}),s.length>0&&(0,y.jsx)(U.Split,{}),(0,y.jsx)("div",{className:"flex items-center gap-1",children:s.map(({icon:v,link:x})=>(0,y.jsx)(U.Socials,{icon:v,link:x,className:"p-1.5"},x))})]})]}),u!=="/"&&h&&f?.tabs&&(0,y.jsx)("div",{className:"w-full border-b border-border-subtle bg-bg-main",children:(0,y.jsx)(ls,{tabs:f.tabs,routes:l||c||[]})})]})}function ra({link:e}){let t=ht(e.href);return(0,y.jsx)(U.Link,{...e,href:t})}function na(){let{currentVersionLabel:e,availableVersions:t,handleVersionChange:o}=Yn();return t.length===0?null:(0,y.jsxs)(Se.Trigger,{children:[(0,y.jsx)(ue,{variant:"outline",size:"sm",rounded:"lg",iconPosition:"right",icon:(0,y.jsx)(St.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)(Se.Root,{children:(0,y.jsx)(Se.Section,{items:t,children:r=>(0,y.jsx)(Se.Item,{onPress:()=>o(r.value),children:r.label},`${r.value??""}`)})})]})}function sa(){let{currentLocale:e,availableLocales:t,handleLocaleChange:o}=ts();return t.length===0?null:(0,y.jsxs)(Se.Trigger,{children:[(0,y.jsx)(ue,{variant:"outline",size:"sm",rounded:"lg",iconPosition:"right",icon:(0,y.jsx)(St.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)(St.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)(Se.Root,{children:(0,y.jsx)(Se.Section,{items:t,children:r=>(0,y.jsx)(Se.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??""}`)})})]})}i();var dt=require("react");i();var gs=require("react-router-dom");me();function bs(e){let t=D(),o=(0,gs.useLocation)(),r=u=>u.endsWith("/")&&u.length>1?u.slice(0,-1):u,n=r(o.pathname),s=e.find(u=>r(u.path)===n),a=s?.tab?.toLowerCase(),c=a?e.filter(u=>!u.tab||u.tab.toLowerCase()===a):e,l=[],d=new Map;for(let u of c)u.group?(d.has(u.group)||d.set(u.group,{slug:u.group,title:u.groupTitle||u.group,routes:[],icon:u.groupIcon}),d.get(u.group).routes.push(u)):l.push(u);return{groups:Array.from(d.values()),ungrouped:l,activeRoute:s,activePath:n,config:t}}xr();i();var hs=require("lucide-react"),_e=require("react/jsx-runtime");function xs(){return(0,_e.jsx)("div",{className:"flex items-center justify-center mt-10 mb-4 px-4 w-full",children:(0,_e.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,_e.jsx)(hs.Zap,{className:"w-3.5 h-3.5 text-text-muted group-hover:text-primary-500 transition-colors duration-300",fill:"currentColor"}),(0,_e.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,_e.jsx)("strong",{className:"font-bold text-text-main/80 group-hover:text-text-main",children:"Boltdocs"})]})]})})}var ia=I(require("lucide-react")),Ne=require("react/jsx-runtime");function vs(e){return e&&ia[e]||void 0}function aa({group:e,activePath:t,getIcon:o}){let r=(0,dt.useMemo)(()=>e.routes.some(a=>a.path===t),[e.routes,t]),[n,s]=(0,dt.useState)(!0);return(0,dt.useEffect)(()=>{r&&s(!0)},[r]),(0,Ne.jsx)(rt.SidebarGroup,{title:e.title,isOpen:n,onToggle:()=>s(!n),children:e.routes.map(a=>{let c=t===(a.path.endsWith("/")?a.path.slice(0,-1):a.path);return(0,Ne.jsx)(rt.SidebarLink,{label:a.title,href:a.path,active:c,icon:o(a.icon),badge:a.badge},a.path)})})}function Ao({routes:e,config:t}){let{groups:o,ungrouped:r,activePath:n}=bs(e),s=t.theme||{};return(0,Ne.jsxs)(rt.SidebarRoot,{children:[r.length>0&&(0,Ne.jsx)(rt.SidebarGroup,{className:"mb-6",children:r.map(a=>{let c=n===(a.path.endsWith("/")?a.path.slice(0,-1):a.path);return(0,Ne.jsx)(rt.SidebarLink,{label:a.title,href:a.path,active:c,icon:vs(a.icon),badge:a.badge},a.path)})}),o.map(a=>(0,Ne.jsx)(aa,{group:a,activePath:n,getIcon:vs},a.slug)),s?.poweredBy&&(0,Ne.jsx)("div",{className:"mt-auto pt-8",children:(0,Ne.jsx)(xs,{})})]})}i();fr();var he=I(require("react"));i();var ys=require("react");function Cs(e=[]){let[t,o]=(0,ys.useState)(null);return{headings:e,activeId:t,setActiveId:o}}var ut=require("lucide-react"),A=require("react/jsx-runtime");function Mo({headings:e=[],editLink:t,communityHelp:o,filePath:r}){let{headings:n}=Cs(e),s=he.default.useMemo(()=>n.map(a=>({title:a.text,url:`#${a.id}`,depth:a.level})),[n]);return n.length===0?null:(0,A.jsx)(Mn,{toc:s,children:(0,A.jsx)(la,{headings:n,editLink:t,communityHelp:o,filePath:r})})}function la({headings:e,editLink:t,communityHelp:o,filePath:r}){let n=Bn(),[s,a]=(0,he.useState)({opacity:0}),c=(0,he.useRef)(null),l=(0,he.useRef)(null);(0,he.useEffect)(()=>{if(!n||!c.current)return;let m=c.current.querySelector(`a[href="#${n}"]`);m&&a({transform:`translateY(${m.offsetTop}px)`,height:`${m.offsetHeight}px`,opacity:1})},[n]);let d=(0,he.useCallback)((m,u)=>{m.preventDefault();let f=document.getElementById(u);f&&(f.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",`#${u}`))},[]);return(0,A.jsxs)(Fe.OnThisPageRoot,{children:[(0,A.jsxs)(Fe.OnThisPageHeader,{className:"flex flex-row gap-x-2",children:[(0,A.jsx)(ut.TextAlignStart,{size:16}),"On this page"]}),(0,A.jsx)(An,{containerRef:l,children:(0,A.jsxs)(Fe.OnThisPageContent,{className:"max-h-[450px] boltdocs-otp-scroll-area",ref:l,children:[(0,A.jsx)(Fe.OnThisPageIndicator,{style:s}),(0,A.jsx)("ul",{className:"relative space-y-2 border-l border-border-subtle",ref:c,children:e.map(m=>(0,A.jsx)(Fe.OnThisPageItem,{level:m.level,children:(0,A.jsx)(Fe.OnThisPageLink,{href:`#${m.id}`,active:n===m.id,onClick:u=>d(u,m.id),className:"pl-4",children:m.text})},m.id))})]})}),(t||o)&&(0,A.jsxs)("div",{className:"mt-8 pt-8 border-t border-border-subtle space-y-4",children:[(0,A.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-text-main",children:"Need help?"}),(0,A.jsxs)("ul",{className:"space-y-3",children:[t&&r&&(0,A.jsx)("li",{children:(0,A.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,A.jsx)(ut.Pencil,{size:16}),"Edit this page"]})}),o&&(0,A.jsx)("li",{children:(0,A.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,A.jsx)(ut.CircleHelp,{size:16}),"Community help"]})})]})]})]})}i();var Rs=require("react"),Ps=require("react-router-dom");function Eo({siteTitle:e,siteDescription:t,routes:o}){let r=(0,Ps.useLocation)();return(0,Rs.useEffect)(()=>{let n=o.find(d=>d.path===r.pathname),s=n?.title,a=n?.description||t||"";document.title=s?`${s} | ${e}`:e;let c=document.querySelector('meta[name="description"]');c||(c=document.createElement("meta"),c.name="description",document.head.appendChild(c)),c.content=a,Ge("property","og:title",document.title),Ge("property","og:description",a),Ge("property","og:type","article"),Ge("property","og:url",window.location.href),Ge("name","twitter:card","summary"),Ge("name","twitter:title",document.title),Ge("name","twitter:description",a);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 Ge(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}i();i();J();function Ns(){let{currentRoute:e}=T(),t=[];return e&&(e.groupTitle&&t.push({label:e.groupTitle}),t.push({label:e.title,href:e.path})),{crumbs:t,activeRoute:e}}var ws=require("lucide-react");Cr();P();me();var Me=require("react/jsx-runtime");function Oo(){let{crumbs:e,activeRoute:t}=Ns(),r=D().theme||{};return e.length===0||!r?.breadcrumbs?null:(0,Me.jsxs)(zn,{children:[(0,Me.jsx)(vr,{children:(0,Me.jsx)(yr,{href:"/",children:(0,Me.jsx)(ws.Home,{size:14})})}),e.map((n,s)=>(0,Me.jsxs)(vr,{children:[(0,Me.jsx)($n,{}),(0,Me.jsx)(yr,{href:n.href,className:p({"font-medium text-text-main":n.href===t?.path}),children:n.label})]},`crumb-${n.href}-${n.label}-${s}`))]})}i();i();J();function Ts(){let{routes:e}=T(),t=window.location.pathname,o=e.findIndex(a=>a.path===t),r=e[o],n=o>0?e[o-1]:null,s=o<e.length-1?e[o+1]:null;return{prevPage:n,nextPage:s,currentRoute:r}}gr();var we=require("react/jsx-runtime");function Vo(){let{prevPage:e,nextPage:t}=Ts();return!e&&!t?null:(0,we.jsxs)(He.PageNavRoot,{children:[e?(0,we.jsxs)(He.PageNavLink,{to:e.path,direction:"prev",children:[(0,we.jsx)(He.PageNavLink.Title,{children:"Previous"}),(0,we.jsx)(He.PageNavLink.Description,{children:e.title})]}):(0,we.jsx)("div",{}),t&&(0,we.jsxs)(He.PageNavLink,{to:t.path,direction:"next",children:[(0,we.jsx)(He.PageNavLink.Title,{children:"Next"}),(0,we.jsx)(He.PageNavLink.Description,{children:t.title})]})]})}i();var Do=require("react"),Ls=require("react-aria-components"),Tr=require("react/jsx-runtime");function Ho(){let[e,t]=(0,Do.useState)(0);return(0,Do.useEffect)(()=>{let o=null,r,n=()=>{if(!o)return;let{scrollTop:a,scrollHeight:c,clientHeight:l}=o;if(c<=l){t(0);return}let d=a/(c-l)*100;t(Math.min(100,Math.max(0,d)))},s=()=>(o=document.querySelector(".boltdocs-content"),o?(o.addEventListener("scroll",n),n(),r&&clearInterval(r),!0):!1);return s()||(r=setInterval(s,100)),()=>{o&&o.removeEventListener("scroll",n),r&&clearInterval(r)}},[]),(0,Tr.jsx)(Ls.ProgressBar,{value:e,"aria-label":"Reading progress",className:"fixed top-0 left-0 right-0 z-999 h-0.5 bg-transparent w-full pointer-events-none",children:({percentage:o})=>(0,Tr.jsx)("div",{className:"h-full bg-primary-500 transition-[width] duration-300 ease-out shadow-[0_0_8px_rgba(var(--primary-rgb),0.4)]",style:{width:`${o}%`}})})}i();var ks=require("react");Co();var ft=require("react/jsx-runtime"),gt=class extends ks.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,ft.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[40vh] text-center gap-4 px-4",children:[(0,ft.jsx)("div",{className:"text-lg font-bold text-red-400",children:"Something went wrong"}),(0,ft.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,ft.jsx)(ue,{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}};J();me();var Ss=require("react-router-dom");var _=require("react/jsx-runtime");function Is({children:e}){let{routes:t,allRoutes:o,currentRoute:r,currentLocale:n}=T(),{pathname:s}=(0,Ss.useLocation)(),a=D(),l=je().CopyMarkdown||lt,d=s==="/"||s==="";return(0,_.jsxs)(ze,{children:[(0,_.jsx)(Ho,{}),(0,_.jsx)(Eo,{siteTitle:Be(a.theme?.title,n)||"Boltdocs",siteDescription:Be(a.theme?.description,n)||"",routes:o}),(0,_.jsx)(Bo,{}),(0,_.jsxs)(ze.Body,{children:[!d&&(0,_.jsx)(Ao,{routes:t,config:a}),(0,_.jsxs)(ze.Content,{children:[!d&&(0,_.jsxs)(ze.ContentHeader,{children:[(0,_.jsx)(Oo,{}),(0,_.jsx)(l,{mdxRaw:r?._rawContent,route:r,config:a.theme?.copyMarkdown})]}),(0,_.jsx)(gt,{children:e}),!d&&(0,_.jsx)(ze.ContentFooter,{children:(0,_.jsx)(Vo,{})})]}),!d&&(0,_.jsx)(Mo,{headings:r?.headings,editLink:a.theme?.editLink,communityHelp:a.theme?.communityHelp,filePath:r?.filePath})]})]})}
1
+ "use strict";var Vs=Object.create;var At=Object.defineProperty;var Hs=Object.getOwnPropertyDescriptor;var zs=Object.getOwnPropertyNames;var $s=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty;var w=(e,t)=>()=>(e&&(t=e(e=0)),t);var zo=(e,t)=>{for(var o in t)At(e,o,{get:t[o],enumerable:!0})},Lr=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zs(t))!Fs.call(e,n)&&n!==o&&At(e,n,{get:()=>t[n],enumerable:!(r=Hs(t,n))||r.enumerable});return e};var I=(e,t,o)=>(o=e!=null?Vs($s(e)):{},Lr(t||!e||!e.__esModule?At(o,"default",{value:e,enumerable:!0}):o,e)),Ws=e=>Lr(At({},"__esModule",{value:!0}),e);var a=w(()=>{"use strict"});function H(){let e=(0,Mt.use)($o);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}var Mt,$o,de=w(()=>{"use strict";a();Mt=require("react"),$o=(0,Mt.createContext)(null)});function Et(){return(0,Oe.use)(Sr)}function Ir({routes:e,modules:t,children:o}){let r=(0,Oe.useRef)(null),n=(0,Oe.useCallback)(s=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{let i=s.split("#")[0].split("?")[0],c=e.find(l=>l.path===i||i==="/"&&l.path==="");if(c?.filePath){let l=Object.keys(t).find(p=>p.endsWith("/"+c.filePath));l&&t[l]().catch(p=>{console.error(`[boltdocs] Failed to preload route ${s}:`,p)})}},100)},[e,t]);return(0,Br.jsx)(Sr.Provider,{value:{preload:n,routes:e},children:o})}var Oe,Br,Sr,Ot=w(()=>{"use strict";a();Oe=require("react"),Br=require("react/jsx-runtime"),Sr=(0,Oe.createContext)({preload:()=>{},routes:[]})});var Ar,Dt,Y,xt=w(()=>{"use strict";a();Ar=require("zustand"),Dt=require("zustand/middleware"),Y=(0,Ar.create)()((0,Dt.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,Dt.createJSONStorage)(()=>localStorage),partialize:e=>({currentLocale:e.currentLocale,currentVersion:e.currentVersion}),onRehydrateStorage:()=>e=>{e?.setHasHydrated(!0)}}))});function k(){let{routes:e}=Et(),t=H(),o=(0,Mr.useLocation)(),r=Y(f=>f.currentLocale),n=Y(f=>f.currentVersion),s=Y(f=>f.hasHydrated),i=e.find(f=>f.path===o.pathname),c=t.i18n?i?.locale||(s?r:void 0)||t.i18n.defaultLocale:void 0,l=t.versions?i?.version||(s?n:void 0)||t.versions.defaultVersion:void 0,p=e.filter(f=>{let T=t.i18n?(f.locale||t.i18n.defaultLocale)===c:!0,Q=t.versions?(f.version||t.versions.defaultVersion)===l:!0;if(!(T&&Q))return!1;let me=t.i18n;if(me){let Os=!!i?.locale,Ds=!!f.locale;if(e.some(Bt=>Bt!==f&&Bt.filePath===f.filePath&&Bt.version===f.version&&(Bt.locale||me.defaultLocale)===(f.locale||me.defaultLocale))&&Os!==Ds)return!1}return!0}),u=t.i18n?.localeConfigs?.[c]?.label||t.i18n?.locales[c]||c,h=t.versions?.versions.find(f=>f.path===l)?.label||l,x=t.i18n?Object.entries(t.i18n.locales).map(([f,T])=>{let Q=t.i18n?.localeConfigs?.[f];return{key:f,label:Q?.label||T,isCurrent:f===c}}):[],v=t.versions?t.versions.versions.map(f=>({key:f.path,label:f.label,isCurrent:f.path===l})):[];return{routes:p,allRoutes:e,currentRoute:i,currentLocale:c,currentLocaleLabel:u,availableLocales:x,currentVersion:l,currentVersionLabel:h,availableVersions:v,config:t}}var Mr,ee=w(()=>{"use strict";a();Mr=require("react-router-dom");de();Ot();xt()});function vt(e){let t=H(),{currentLocale:o,currentVersion:r}=k();if(!t||typeof e!="string"||e.startsWith("http")||e.startsWith("//"))return e;let n=t.i18n,s=t.versions;if(!n&&!s)return e;let i=e.startsWith("/docs"),c=e.split("/").filter(Boolean),l=0;c[l]==="docs"&&l++,s&&c.length>l&&s.versions.find(h=>h.path===c[l])&&l++,n&&c.length>l&&n.locales[c[l]]&&l++;let p=c.slice(l),m=[];i&&(m.push("docs"),s&&r&&m.push(r)),n&&o&&o!==n.defaultLocale&&m.push(o),m.push(...p);let u=`/${m.join("/")}`;return u.length>1&&u.endsWith("/")?u.slice(0,-1):u||"/"}var Fo=w(()=>{"use strict";a();de();ee()});function d(...e){return(0,Or.twMerge)((0,Er.clsx)(e))}var Er,Or,N=w(()=>{"use strict";a();Er=require("clsx"),Or=require("tailwind-merge")});var Wo,Dr,Vr,Go,Z,Gs,qe=w(()=>{"use strict";a();Wo=I(require("react")),Dr=require("react-aria-components"),Vr=require("react-router-dom");Fo();Ot();N();Go=require("react/jsx-runtime"),Z=Wo.default.forwardRef((e,t)=>{let{href:o,prefetch:r="hover",onMouseEnter:n,onFocus:s,...i}=e,c=vt(o??""),{preload:l}=Et();return(0,Go.jsx)(Dr.Link,{...i,ref:t,href:c,onMouseEnter:u=>{n?.(u),r==="hover"&&typeof c=="string"&&c.startsWith("/")&&l(c)},onFocus:u=>{s?.(u),r==="hover"&&typeof c=="string"&&c.startsWith("/")&&l(c)}})});Z.displayName="Link";Gs=Wo.default.forwardRef((e,t)=>{let{href:o,end:r=!1,className:n,children:s,...i}=e,c=(0,Vr.useLocation)(),l=vt(o??""),p=r?c.pathname===l:c.pathname.startsWith(l),m=typeof n=="function"?n({isActive:p}):d(n,p&&"active"),u=typeof s=="function"?s({isActive:p}):s;return(0,Go.jsx)(Z,{...i,ref:t,href:o,className:m,children:u})});Gs.displayName="NavLink"});var $t,rn,ue,zt,fe,Ft=w(()=>{"use strict";a();$t=I(require("react-aria-components"));N();rn=require("class-variance-authority"),ue=require("react/jsx-runtime"),zt=(0,rn.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"}}),fe=({href:e,icon:t,iconPosition:o="left",isIconOnly:r,children:n,className:s,variant:i,size:c,rounded:l,iconSize:p,disabled:m,...u})=>{let g=r||!n&&!!t,h=g?(0,ue.jsx)("span",{className:"inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]",children:t}):(0,ue.jsxs)(ue.Fragment,{children:[t&&o==="left"&&(0,ue.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t}),(0,ue.jsx)("span",{className:"flex items-center",children:n}),t&&o==="right"&&(0,ue.jsx)("span",{className:"inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]",children:t})]});return e?(0,ue.jsx)($t.Link,{href:e,className:d(zt({variant:i,size:c,rounded:l,iconSize:g?p:void 0,disabled:m}),s),...u,children:h}):(0,ue.jsx)($t.Button,{className:d(zt({variant:i,size:c,rounded:l,iconSize:g?p:void 0,disabled:m}),s),...u,children:h})}});function Ct(e){let{size:t=20,...o}=e;return{...o,width:t,height:t}}var z,Ut,cn,mn,dn,pn,jt=w(()=>{"use strict";a();z=require("react/jsx-runtime");Ut=e=>(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...Ct(e),children:[(0,z.jsx)("title",{children:"GitHub"}),(0,z.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"})]}),cn=e=>(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...Ct(e),children:[(0,z.jsx)("title",{children:"Discord"}),(0,z.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"})]}),mn=e=>(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...Ct(e),children:[(0,z.jsx)("title",{children:"X"}),(0,z.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"})]}),dn=e=>(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...Ct(e),children:[(0,z.jsx)("title",{children:"CodeSandbox"}),(0,z.jsx)("path",{d:"M0 24h24V0H0v2.455h21.546v19.09H2.454V0H0Z"})]}),pn=e=>(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...Ct(e),children:[(0,z.jsx)("title",{children:"Bluesky"}),(0,z.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"})]})});var Xe,se,Us,Ko,Xo=w(()=>{"use strict";a();Xe=I(require("react-aria-components"));N();se=require("react/jsx-runtime"),Us=({className:e,children:t,...o})=>(0,se.jsx)(Xe.Tooltip,{...o,offset:8,className:r=>d("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,se.jsxs)(se.Fragment,{children:[(0,se.jsx)(Xe.OverlayArrow,{children:(0,se.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,se.jsx)("title",{children:"Arrow"}),(0,se.jsx)("path",{d:"M0 0 L4 4 L8 0"})]})}),typeof t=="function"?t(r):t]})}),Ko=({content:e,children:t,delay:o=500,closeDelay:r=0,...n})=>(0,se.jsxs)(Xe.TooltipTrigger,{delay:o,closeDelay:r,children:[t,(0,se.jsx)(Us,{...n,children:e})]})});var yo,wn,Se,R,sa,aa,ia,la,ca,ma,da,pa,ua,fa,ga,ba,ha,xa,va,q,Co=w(()=>{"use strict";a();yo=require("react");Ro();wn=require("react-aria-components"),Se=require("lucide-react");jt();R=require("react/jsx-runtime"),sa=({children:e,className:t,...o})=>(0,R.jsx)("header",{className:d("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}),aa=({children:e,className:t})=>(0,R.jsx)("div",{className:d("mx-auto flex lg:h-navbar max-w-(--breakpoint-3xl) items-center justify-between px-4 md:px-6",t),children:e}),ia=({children:e,className:t})=>(0,R.jsx)("div",{className:d("flex items-center gap-4",t),children:e}),la=({children:e,className:t})=>(0,R.jsx)("div",{className:d("flex items-center gap-2 md:gap-4",t),children:e}),ca=({children:e,className:t})=>(0,R.jsx)("div",{className:d("hidden lg:flex flex-1 justify-center items-center gap-4 px-4",t),children:e}),ma=({src:e,alt:t,width:o=24,height:r=24,className:n})=>(0,R.jsx)(Z,{href:"/",className:d("flex items-center gap-2 shrink-0 outline-none",n),children:e?(0,R.jsx)("img",{src:e,alt:t,width:o,height:r,className:"h-6 w-6 object-contain"}):null}),da=({children:e,className:t})=>(0,R.jsx)("span",{className:d("text-lg font-bold tracking-tight hidden sm:inline-block",t),children:e}),pa=({children:e,className:t})=>(0,R.jsx)("nav",{className:d("hidden md:flex items-center gap-6 text-sm font-medium",t),children:e}),ua=({label:e,href:t,active:o,to:r,className:n})=>(0,R.jsxs)(Z,{href:t,target:r==="external"?"_blank":void 0,className:d("transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm",{"text-primary-500 font-bold":o,"text-text-muted hover:text-text-main font-medium":!o},n),children:[e,r==="external"&&(0,R.jsx)("span",{className:"ml-1 inline-block",children:(0,R.jsx)(Se.ExternalLink,{size:12})})]}),fa=({className:e,onPress:t})=>{let[o,r]=(0,yo.useState)(!1),n=o&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);return(0,yo.useEffect)(()=>{r(!0)},[]),(0,R.jsxs)(wn.Button,{onPress:t,className:d("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-[320px] justify-between",e),children:[(0,R.jsxs)("div",{className:"flex items-center gap-2",children:[(0,R.jsx)(Se.Search,{size:16}),(0,R.jsx)("span",{className:"hidden sm:inline-block",children:"Search docs..."})]}),(0,R.jsxs)("div",{className:"hidden sm:flex items-center gap-1 pointer-events-none select-none",children:[(0,R.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,R.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"})]})]})},ga=({className:e,theme:t,onThemeChange:o})=>(0,R.jsx)(rt.ToggleButton,{isSelected:t==="dark",onChange:o,className:d("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,R.jsx)(Se.Sun,{size:20}):(0,R.jsx)(Se.Moon,{size:20})}),ba=({label:e,className:t,onPress:o,isCurrent:r})=>(0,R.jsx)(Re,{onAction:o,className:d(r&&"bg-primary-500 text-white font-medium hover:bg-primary-600 focus:bg-primary-600 focus:text-white",t),children:e}),ha=({name:e})=>{if(e==="github")return(0,R.jsx)(Ut,{});if(e==="discord")return(0,R.jsx)(cn,{});if(e==="x")return(0,R.jsx)(mn,{});if(e==="bluesky")return(0,R.jsx)(pn,{})},xa=({icon:e,link:t,className:o})=>(0,R.jsx)(Z,{href:t,target:"_blank",rel:"noopener noreferrer",className:d("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,R.jsx)(ha,{name:e})}),va=({className:e})=>(0,R.jsx)(rt.Separator,{orientation:"vertical",className:d("h-6 w-px bg-border-subtle mx-1",e)}),q={NavbarRoot:sa,NavbarLeft:ia,NavbarRight:la,NavbarCenter:ca,NavbarLogo:ma,Title:da,Links:pa,Link:ua,SearchTrigger:fa,Theme:ga,Item:ba,Socials:xa,Split:va,Content:aa}});var kt,ya,tr,Tn=w(()=>{"use strict";a();kt=I(require("react-aria-components")),ya=require("lucide-react");N();tr=require("react/jsx-runtime")});var F,He,L,or,rr,nr,sr,ar,ir,lr,cr,Bc,mr=w(()=>{"use strict";a();F=I(require("react-aria-components")),He=require("lucide-react");N();L=require("react/jsx-runtime"),or=({children:e,isOpen:t,onOpenChange:o,className:r})=>(0,L.jsx)(F.ModalOverlay,{isOpen:t,onOpenChange:o,isDismissable:!0,className:d("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,L.jsx)(F.Modal,{className:d("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,L.jsx)(F.Dialog,{className:"flex flex-col max-h-[70vh] focus:outline-none",children:e})})}),rr=({children:e,className:t,onSelectionChange:o,...r})=>(0,L.jsx)("div",{className:t,children:(0,L.jsx)(F.Autocomplete,{...r,onSelectionChange:o,className:"flex flex-col min-h-0",children:e})}),nr=({className:e,...t})=>(0,L.jsxs)(F.SearchField,{className:"flex items-center gap-3 border-b border-border-subtle px-4 py-4",autoFocus:!0,children:[(0,L.jsx)(He.Search,{className:"h-5 w-5 text-text-muted"}),(0,L.jsx)(F.Input,{...t,className:d("w-full bg-transparent text-lg text-text-main placeholder-text-muted outline-none",e),placeholder:"Search documentation..."}),(0,L.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,L.jsx)("kbd",{className:"font-sans",children:"ESC"})})]}),sr=({children:e,className:t,...o})=>(0,L.jsx)(F.ListBox,{...o,className:d("flex-1 overflow-y-auto p-2 outline-none",t),children:e}),ar=({children:e,className:t,...o})=>(0,L.jsx)(F.ListBoxItem,{...o,className:d("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,L.jsxs)(L.Fragment,{children:[e,(r.isFocused||r.isSelected)&&(0,L.jsxs)("div",{className:"ml-auto opacity-50 flex items-center gap-1",children:[(0,L.jsx)("span",{className:"text-[10px]",children:"Select"}),(0,L.jsx)(He.CornerDownLeft,{size:10})]})]})}),ir=({isHeading:e,className:t})=>(0,L.jsx)("div",{className:d("shrink-0",t),children:e?(0,L.jsx)(He.Hash,{size:18}):(0,L.jsx)(He.FileText,{size:18})}),lr=({children:e,className:t})=>(0,L.jsx)("span",{className:d("block font-medium truncate flex-1 text-sm",t),children:e}),cr=({children:e,className:t})=>(0,L.jsx)("span",{className:d("ml-2 text-xs opacity-70 truncate hidden sm:inline group-focus:opacity-100",t),children:e}),Bc={Root:or,Autocomplete:rr,Input:nr,List:sr,Item:Object.assign(ar,{Icon:ir,Title:lr,Bio:cr})}});function kn(e,t){let o=(0,No.useRef)(e);(0,No.useEffect)(()=>{o.current!==e&&(t(e),o.current=e)},[e,t])}var No,Ln=w(()=>{"use strict";a();No=require("react")});function dr(e){return e.startsWith("#")?e.slice(1):null}var Sn=w(()=>{"use strict";a()});function Ca(){let e=(0,B.use)(ur);if(!e)throw new Error("Component must be used under the <AnchorProvider /> component.");return e}function Ra(e){let[t,o]=(0,B.useState)({isOverflowing:!1,isAtBottom:!1});return(0,B.useEffect)(()=>{let r=e.current;if(!r)return;let n=()=>{let i=r.scrollHeight>r.clientHeight,c=r.scrollHeight-r.scrollTop<=r.clientHeight+2;o({isOverflowing:i,isAtBottom:c})};n(),r.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n);let s=new MutationObserver(n);return s.observe(r,{childList:!0,subtree:!0}),()=>{r.removeEventListener("scroll",n),window.removeEventListener("resize",n),s.disconnect()}},[e]),t}function An(){let e=Ca();return(0,B.useMemo)(()=>{let t;for(let o of e)o.active&&(!t||o.t>t.t)&&(t=o);return t?.id},[e])}function Mn({containerRef:e,children:t}){return(0,Ne.jsx)(Bn.Provider,{value:e,children:t})}function En({toc:e,single:t=!1,children:o}){let r=(0,B.useMemo)(()=>new pr,[]),[n,s]=(0,B.useState)(r.items);return r.single=t,(0,B.useEffect)(()=>{r.setItems(e)},[r,e]),(0,B.useEffect)(()=>(r.watch({rootMargin:"0px",threshold:.98}),r.onChange=()=>s([...r.items]),()=>{r.unwatch()}),[r]),(0,Ne.jsx)(ur.Provider,{value:n,children:o})}var B,In,Ne,ur,Bn,pr,Na,Pa,On,wa,Ta,ka,La,Ge,fr=w(()=>{"use strict";a();B=require("react"),In=I(require("scroll-into-view-if-needed"));N();Ln();Sn();Ne=require("react/jsx-runtime"),ur=(0,B.createContext)(null),Bn=(0,B.createContext)(null),pr=class{items=[];single=!1;observer=null;onChange;callback(t){if(t.length===0)return;let o=!1;if(this.items=this.items.map(r=>{let n=t.find(i=>i.target.id===r.id),s=n?n.isIntersecting:r.active&&!r.fallback;return this.single&&o&&(s=!1),r.active!==s&&(r={...r,t:Date.now(),active:s,fallback:!1}),s&&(o=!0),r}),!o&&t[0].rootBounds){let r=t[0].rootBounds.top,n=Number.MAX_VALUE,s=-1;for(let i=0;i<this.items.length;i++){let c=document.getElementById(this.items[i].id);if(!c)continue;let l=Math.abs(r-c.getBoundingClientRect().top);l<n&&(s=i,n=l)}s!==-1&&(this.items[s]={...this.items[s],active:!0,fallback:!0,t:Date.now()})}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=dr(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}};Na=({children:e,className:t})=>(0,Ne.jsx)("nav",{className:d("sticky top-navbar hidden xl:flex flex-col shrink-0","w-toc","py-8 pl-6 pr-4",t),children:e}),Pa=({children:e,className:t,...o})=>(0,Ne.jsx)("div",{className:d("mb-4 text-xs font-bold uppercase tracking-wider text-text-main",t),...o,children:e}),On=({children:e,className:t,ref:o,...r})=>{let n=(0,B.useRef)(null);(0,B.useImperativeHandle)(o,()=>n.current);let{isOverflowing:s,isAtBottom:i}=Ra(n);return(0,Ne.jsx)("div",{ref:n,className:d("relative overflow-y-auto boltdocs-otp-content",s&&!i&&"mask-[linear-gradient(to_bottom,black_85%,transparent_100%)]",t),...r,children:e})};On.displayName="OnThisPageContent";wa=({children:e,className:t})=>(0,Ne.jsx)("ul",{className:d("relative space-y-1 text-sm border-l border-border-subtle",t),children:e}),Ta=({level:e,children:t,className:o})=>(0,Ne.jsx)("li",{className:d(e===3&&"pl-3",o),children:t}),ka=({children:e,href:t,active:o,onClick:r,className:n})=>{let s=(0,B.use)(ur),i=(0,B.use)(Bn),c=t?dr(t):null,l=(0,B.useRef)(null),[p,m]=(0,B.useState)(o);return kn(c&&s?s.find(u=>u.id===c)?.active:null,u=>{u!==null&&u!==p&&(m(!!u),u&&l.current&&i?.current&&(0,In.default)(l.current,{behavior:"smooth",block:"center",inline:"center",scrollMode:"if-needed",boundary:i.current}))}),(0,B.useEffect)(()=>{o!==void 0&&m(o)},[o]),(0,Ne.jsx)("a",{ref:l,href:t,onClick:r,"data-active":p,className:d("block py-1 pl-4 text-[13px] outline-none transition-colors hover:text-text-main",p?"text-primary-500 font-medium":"text-text-muted",n),children:e})},La=({style:e,className:t})=>(0,Ne.jsx)("div",{className:d("absolute -left-px w-0.5 rounded-full bg-primary-500 transition-all duration-300",t),style:e}),Ge={OnThisPageRoot:Na,OnThisPageHeader:Pa,OnThisPageContent:On,OnThisPageList:wa,OnThisPageItem:Ta,OnThisPageLink:ka,OnThisPageIndicator:La}});var Dn,Po,ie,Sa,Ia,Ba,Aa,Ma,ze,gr=w(()=>{"use strict";a();Dn=I(require("react-aria-components")),Po=require("lucide-react");N();ie=require("react/jsx-runtime"),Sa=({children:e,className:t})=>(0,ie.jsx)("nav",{className:d("grid grid-cols-1 sm:grid-cols-2 gap-4 mt-12 pt-8 border-t border-border-subtle",t),children:e}),Ia=({children:e,to:t,direction:o,className:r})=>{let n=o==="next";return(0,ie.jsxs)(Dn.Link,{href:t,className:d("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,ie.jsx)(Po.ChevronLeft,{className:"mr-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:-translate-x-1"}),(0,ie.jsx)("div",{className:"flex flex-col gap-1 flex-1",children:e}),n&&(0,ie.jsx)(Po.ChevronRight,{className:"ml-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:translate-x-1"})]})},Ba=({children:e,className:t})=>(0,ie.jsx)("span",{className:d("text-xs font-medium uppercase tracking-wider text-text-muted",t),children:e}),Aa=({children:e,className:t})=>(0,ie.jsx)("span",{className:d("text-base font-bold text-text-main truncate",t),children:e}),Ma=({children:e})=>(0,ie.jsx)(ie.Fragment,{children:e}),ze={PageNavRoot:Sa,PageNavLink:Object.assign(Ia,{Title:Ba,Description:Aa,Icon:Ma})}});var nt,Ea,Oa,Da,Va,Ha,br,hr=w(()=>{"use strict";a();N();nt=require("react/jsx-runtime"),Ea=({children:e,className:t="",...o})=>(0,nt.jsx)("div",{className:d("w-full",t),...o,children:e}),Oa=({children:e,className:t=""})=>(0,nt.jsx)("div",{role:"tablist",className:d("relative flex flex-row items-center border-b border-border-subtle",t),children:e}),Da=({children:e,id:t,selected:o,className:r="",...n})=>(0,nt.jsx)("button",{role:"tab","aria-selected":o,className:d("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}),Va=({children:e,className:t=""})=>(0,nt.jsx)("div",{className:d("p-4 outline-none",t),children:e}),Ha=({className:e="",style:t})=>(0,nt.jsx)("div",{className:d("absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300",e),style:t}),br={TabsRoot:Ea,TabsList:Oa,TabsItem:Da,TabsContent:Va,TabsIndicator:Ha}});var Vn,Hn,W,za,$a,Fa,Wa,Ga,st,xr=w(()=>{"use strict";a();qe();Vn=I(require("react-aria-components")),Hn=require("lucide-react");N();W=require("react/jsx-runtime"),za=({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,s=r.getTime()-n.getTime();if(Math.ceil(s/(1e3*60*60*24))===0)return null}let o=typeof e=="string"?e:e?.text;return(0,W.jsx)("span",{className:d("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})},$a=({children:e,className:t})=>(0,W.jsx)("aside",{className:d("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,W.jsx)("nav",{className:"flex-1 space-y-6",children:e})}),Fa=({children:e,title:t,icon:o,isOpen:r=!0,onToggle:n,className:s})=>(0,W.jsxs)("div",{className:d("space-y-1",s),children:[t&&(0,W.jsxs)(Vn.Button,{onPress:n,className:d("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,W.jsxs)("div",{className:"flex items-center gap-2",children:[o&&(0,W.jsx)(o,{size:14}),t]}),(0,W.jsx)(Hn.ChevronRight,{size:14,className:d("transition-transform duration-200",r&&"rotate-90")})]}),r&&(0,W.jsx)("div",{className:"space-y-0.5",children:e})]}),Wa=({children:e,className:t})=>(0,W.jsx)("div",{className:d(t),children:e}),Ga=({label:e,href:t,active:o,icon:r,badge:n,className:s})=>(0,W.jsxs)(Z,{href:t,className:d("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",s),children:[r&&(0,W.jsx)(r,{size:16,className:d(o?"text-primary-500":"text-text-muted group-hover:text-text-main")}),(0,W.jsx)("span",{className:"truncate",children:e}),n&&(0,W.jsx)(za,{badge:n})]}),st={SidebarRoot:$a,SidebarGroup:Fa,SidebarGroupItem:Wa,SidebarLink:Ga}});var at,zn,Lt,$n,vr,yr,Fn,Cr=w(()=>{"use strict";a();at=require("react-aria-components"),zn=require("lucide-react");N();Lt=require("react/jsx-runtime"),$n=({children:e,className:t,...o})=>(0,Lt.jsx)(at.Breadcrumbs,{className:d("flex items-center gap-1.5 pl-0! mb-0 text-sm text-text-muted",t),...o,children:e}),vr=({children:e,className:t,...o})=>(0,Lt.jsx)(at.Breadcrumb,{className:d("flex items-center mb-0 gap-1.5",t),...o,children:e}),yr=({children:e,href:t,className:o,...r})=>(0,Lt.jsx)(at.Link,{href:t,className:d("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}),Fn=({className:e})=>(0,Lt.jsx)(zn.ChevronRight,{size:14,className:d("shrink-0 text-text-dim",e)})});var Gn,Wn,_n=w(()=>{"use strict";a();N();Gn=require("react/jsx-runtime"),Wn=({children:e,className:t,vertical:o=!1})=>(0,Gn.jsx)("div",{className:d("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 lt,it,Rr,Nr=w(()=>{"use strict";"use client";a();lt=I(require("react-aria-components"));N();it=require("react/jsx-runtime"),Rr=({children:e,className:t,showArrow:o,...r})=>(0,it.jsxs)(lt.Popover,{offset:8,...r,className:lt.composeRenderProps(t,n=>d("z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none","entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95 fill-mode-forwards",n)),children:[o&&(0,it.jsx)(lt.OverlayArrow,{className:"group",children:(0,it.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,it.jsx)("path",{d:"M0 0 L6 6 L12 0"})})}),e]})});function tt(e){let[t,o]=Pr.default.Children.toArray(e.children).slice(0,2);return(0,D.jsxs)(V.MenuTrigger,{...e,children:[t,(0,D.jsx)(Rr,{placement:e.placement,className:"min-w-[200px]",children:o})]})}function _a(e){let[t,o]=Pr.default.Children.toArray(e.children).slice(0,2);return(0,D.jsxs)(V.SubmenuTrigger,{...e,children:[t,(0,D.jsx)(Rr,{offset:-4,crossOffset:-4,children:o})]})}function ot(e){return(0,D.jsx)(V.Menu,{...e,className:V.composeRenderProps(e.className,t=>d("p-1.5 outline-none max-h-[inherit] overflow-auto",t))})}function Re(e){let t=e.textValue||(typeof e.children=="string"?e.children:void 0);return(0,D.jsx)(V.MenuItem,{...e,textValue:t,className:V.composeRenderProps(e.className,(o,{isFocused:r,isPressed:n,isDisabled:s})=>d("group relative flex flex-row items-center gap-2.5 px-3 py-1.5 rounded-lg outline-none cursor-default transition-all duration-200","text-text-main text-[0.8125rem]",r&&"bg-primary-500/10 text-primary-600 shadow-sm",n&&"scale-[0.98] bg-primary-500/15",s&&"opacity-40 grayscale pointer-events-none",o)),children:V.composeRenderProps(e.children,(o,{selectionMode:r,isSelected:n,hasSubmenu:s})=>(0,D.jsxs)(D.Fragment,{children:[r!=="none"&&(0,D.jsxs)("span",{className:"flex items-center w-4 h-4 shrink-0 justify-center",children:[n&&r==="multiple"&&(0,D.jsx)(ct.Check,{className:"w-3.5 h-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200"}),n&&r==="single"&&(0,D.jsx)(ct.Dot,{className:"w-6 h-6 text-primary-500 animate-in zoom-in-50 duration-200"})]}),(0,D.jsx)("div",{className:"flex-1 flex flex-row items-center gap-2.5 truncate font-medium",children:o}),s&&(0,D.jsx)(ct.ChevronRight,{className:"w-4 h-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors"})]}))})}function Ua({title:e,...t}){return(0,D.jsxs)(V.MenuSection,{...t,className:d("flex flex-col gap-0.5",t.className),children:[e&&(0,D.jsx)(V.Header,{className:"px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none",children:e}),(0,D.jsx)(V.Collection,{items:t.items,children:t.children})]})}function ja(e){return(0,D.jsx)(V.Separator,{...e,className:"mx-2 my-1.5 border-t border-border-subtle/50"})}var ct,Pr,V,D,Ie,wo=w(()=>{"use strict";"use client";a();ct=require("lucide-react"),Pr=I(require("react")),V=I(require("react-aria-components"));Nr();N();D=require("react/jsx-runtime");Ie={Root:ot,Item:Re,Trigger:tt,SubTrigger:_a,Section:Ua,Separator:ja}});var rt,Ro=w(()=>{"use strict";a();Co();Tn();mr();fr();gr();hr();xr();Cr();Ft();_n();wo();Nr();Xo();qe();rt=require("react-aria-components");N()});function ps(e){let{currentLocale:t,currentVersion:o}=k(),[r,n]=(0,We.useState)(!1),[s,i]=(0,We.useState)(""),[c,l]=(0,We.useState)(null);(0,We.useEffect)(()=>{if(!r||c)return;let m=new ds.Index({preset:"match",tokenize:"full",resolution:9,cache:!0});for(let u of Tr.default)m.add(u.id,`${u.title} ${u.content}`);l(m)},[r,c]);let p=(0,We.useMemo)(()=>{if(!s)return e.filter(h=>{let x=!t||h.locale===t,v=!o||h.version===o;return x&&v}).slice(0,10).map(h=>({id:h.path,title:h.title,path:h.path,bio:h.description||"",groupTitle:h.groupTitle}));if(!c)return[];let m=c.search(s,{limit:20,suggest:!0}),u=[],g=new Set;for(let h of m){let x=Tr.default.find(T=>T.id===h);if(!x)continue;let v=!t||x.locale===t,f=!o||x.version===o;!v||!f||g.has(x.url)||(g.add(x.url),u.push({id:x.url,title:x.title,path:x.url,bio:x.display,groupTitle:x.display.split(" > ")[0],isHeading:x.url.includes("#")}))}return u.slice(0,10)},[s,c,t,o,e]);return{isOpen:r,setIsOpen:n,query:s,setQuery:i,list:p,input:{value:s,onChange:m=>i(m.target.value)}}}var We,ds,Tr,us=w(()=>{"use strict";a();We=require("react"),ds=require("flexsearch");ee();Tr=I(require("virtual:boltdocs-search"))});var gs={};zo(gs,{SearchDialog:()=>si});function si({routes:e}){let{isOpen:t,setIsOpen:o,query:r,setQuery:n,list:s}=ps(e),i=(0,fs.useNavigate)();(0,So.useEffect)(()=>{let l=p=>{(/Mac/.test(navigator.userAgent)?p.metaKey:p.ctrlKey)&&(p.key==="k"||p.key==="j")&&(p.preventDefault(),o(g=>!g))};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[o]);let c=(0,So.useCallback)(l=>{let p=String(l);if(o(!1),p.includes("#")){let[m,u]=p.split("#");i(m),setTimeout(()=>{let g=document.getElementById(u);g&&g.scrollIntoView({behavior:"smooth"})},100)}else i(p)},[i,o]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(q.SearchTrigger,{onPress:()=>o(!0)}),(0,X.jsx)(or,{isOpen:t,onOpenChange:o,children:(0,X.jsxs)(rr,{onSelectionChange:c,children:[(0,X.jsx)(nr,{value:r,onChange:l=>n(l.target.value)}),(0,X.jsx)(sr,{items:s,children:l=>(0,X.jsxs)(ar,{onPress:()=>c(l.id),textValue:l.title,children:[(0,X.jsx)(ir,{isHeading:l.isHeading}),(0,X.jsxs)("div",{className:"flex flex-col justify-center gap-0.5",children:[(0,X.jsx)(lr,{children:l.title}),(0,X.jsx)(cr,{children:l.bio})]})]},l.id)})]})})]})}var So,fs,X,bs=w(()=>{"use strict";a();So=require("react");us();mr();Co();fs=require("react-router-dom"),X=require("react/jsx-runtime")});var ui={};zo(ui,{Admonition:()=>be,Badge:()=>Qt,Breadcrumbs:()=>Oo,Button:()=>Wt,Card:()=>eo,Cards:()=>Yt,Caution:()=>io,CodeBlock:()=>ve,ComponentPreview:()=>vo,ComponentProps:()=>xo,CopyMarkdown:()=>mt,Danger:()=>no,DefaultLayout:()=>Es,DocsLayout:()=>$e,ErrorBoundary:()=>ht,Field:()=>go,FileTree:()=>uo,Head:()=>Eo,Image:()=>ho,Important:()=>ao,InfoBox:()=>so,Link:()=>bo,List:()=>mo,Loading:()=>To,Navbar:()=>Bo,NotFound:()=>yt,Note:()=>to,OnThisPage:()=>Mo,PageNav:()=>Do,ProgressBar:()=>Ho,Sidebar:()=>Ao,Tab:()=>Xt,Table:()=>fo,Tabs:()=>Zt,Tip:()=>oo,Video:()=>Jt,Warning:()=>ro,createBoltdocsApp:()=>Jn,defineSandbox:()=>qo,embedSandbox:()=>sn,openSandbox:()=>_t,useConfig:()=>H,useMdxComponents:()=>Ke,useRoutes:()=>k,useTheme:()=>De});module.exports=Ws(ui);a();a();var K=I(require("react")),Xn=I(require("react-dom/client")),ce=require("react-router-dom");a();var Hr=require("lucide-react");qe();var ke=require("react/jsx-runtime");function yt(){return(0,ke.jsx)("div",{className:"flex items-center justify-center min-h-[60vh] text-center",children:(0,ke.jsxs)("div",{className:"space-y-4",children:[(0,ke.jsx)("span",{className:"text-8xl font-black tracking-tighter text-primary-500/20",children:"404"}),(0,ke.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Page Not Found"}),(0,ke.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,ke.jsxs)(Z,{href:"/",className:"inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white outline-none transition-all hover:brightness-110 hover:shadow-lg focus-visible:ring-2 focus-visible:ring-primary-500/30",children:[(0,ke.jsx)(Hr.ArrowLeft,{size:16})," Go to Home"]})]})})}a();var pe=require("react"),Fr=require("react/jsx-runtime"),zr=(0,pe.createContext)(void 0);function $r({children:e}){let[t,o]=(0,pe.useState)("system"),[r,n]=(0,pe.useState)("dark"),[s,i]=(0,pe.useState)(!1);(0,pe.useEffect)(()=>{i(!0);let l=localStorage.getItem("boltdocs-theme"),p=l==="light"||l==="dark"||l==="system"?l:"system";o(p);let m=window.matchMedia("(prefers-color-scheme: dark)");((h,x)=>{n(h==="system"?x?"dark":"light":h)})(p,m.matches);let g=h=>{n(x=>(localStorage.getItem("boltdocs-theme")||"system")==="system"?h.matches?"dark":"light":x)};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)},[]),(0,pe.useEffect)(()=>{if(!s)return;let l=window.matchMedia("(prefers-color-scheme: dark)").matches,p=t==="system"?l?"dark":"light":t;n(p);let m=document.documentElement;p==="light"?(m.classList.add("theme-light"),m.dataset.theme="light"):(m.classList.remove("theme-light"),m.dataset.theme="dark")},[t,s]);let c=l=>{o(l),localStorage.setItem("boltdocs-theme",l)};return(0,Fr.jsx)(zr.Provider,{value:{theme:t,resolvedTheme:r,setTheme:c},children:e})}function De(){let e=(0,pe.use)(zr);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}var pt=I(require("virtual:boltdocs-layout"));Ot();a();var Wr=require("react"),Gr=require("react-aria-components"),Vt=require("react-router-dom"),Ur=require("react/jsx-runtime");function _r({children:e}){let t=(0,Vt.useNavigate)();return(0,Ur.jsx)(Gr.RouterProvider,{navigate:(o,r)=>{(0,Wr.startTransition)(()=>{t(o,r)})},useHref:Vt.useHref,children:e})}de();a();var jr=require("react"),qr=require("react-router-dom");function Kr(){let{pathname:e,hash:t}=(0,qr.useLocation)();return(0,jr.useLayoutEffect)(()=>{let o=document.querySelector(".boltdocs-content");if(o){if(t){let r=t.replace("#",""),n=document.getElementById(r);if(n){let i=o.getBoundingClientRect().top,p=n.getBoundingClientRect().top-i-80+o.scrollTop;o.scrollTo({top:p,behavior:"smooth"});return}}o.scrollTo(0,0)}},[e,t]),null}a();var Xr=require("react-router-dom"),Zr=I(require("virtual:boltdocs-layout")),_o=require("react/jsx-runtime");function Jr(){return(0,_o.jsx)(Zr.default,{children:(0,_o.jsx)(Xr.Outlet,{})})}a();var tn=require("@mdx-js/react");a();var Ht=require("react"),en=require("react/jsx-runtime"),Qr=(0,Ht.createContext)({});function Ke(){return(0,Ht.useContext)(Qr)}function Yr({components:e,children:t}){return(0,en.jsx)(Qr.Provider,{value:e,children:t})}var Uo=require("react/jsx-runtime");function on({Component:e}){let t=Ke();return(0,Uo.jsx)(tn.MDXProvider,{components:t,children:(0,Uo.jsx)(e,{})})}a();var qn=require("lucide-react");var wr={};zo(wr,{Admonition:()=>be,Badge:()=>Qt,Button:()=>Wt,Card:()=>eo,Cards:()=>Yt,Caution:()=>io,CodeBlock:()=>ve,ComponentPreview:()=>vo,ComponentProps:()=>xo,CopyMarkdown:()=>mt,Danger:()=>no,Field:()=>go,FileTree:()=>uo,Image:()=>ho,Important:()=>ao,InfoBox:()=>so,Link:()=>bo,List:()=>mo,Note:()=>to,Tab:()=>Xt,Table:()=>fo,Tabs:()=>Zt,Tip:()=>oo,Video:()=>Jt,Warning:()=>ro});a();a();Ft();N();var nn=require("react/jsx-runtime"),Wt=({className:e,variant:t,size:o,rounded:r,iconSize:n,disabled:s,...i})=>(0,nn.jsx)(fe,{className:d("group",zt({variant:t,size:o,rounded:r,iconSize:n,disabled:s,className:e})),...i});a();var qt=I(require("react-aria-components")),Kt=require("lucide-react");N();a();de();a();var Gt=require("codesandbox/lib/api/define.js");function jo(e){let t=e.files||{},o=e.dependencies||{},r=e.devDependencies||{},n=e.title||"codesandbox-project",s=e.description||"Generic Sandbox",i={};for(let[c,l]of Object.entries(t)){let p=typeof l.content=="object"?JSON.stringify(l.content,null,2):l.content;i[c]={content:p,isBinary:l.isBinary??!1}}if(!i["package.json"]){let l=e.template==="vite"||!!r.vite||!!r["@vitejs/plugin-react"]?{dev:"vite",build:"vite build",preview:"vite preview"}:{start:"node index.js"};i["package.json"]={content:JSON.stringify({private:!0,name:n,description:s,type:"module",version:"1.0.0",scripts:e.scripts||l,dependencies:o,devDependencies:r},null,2),isBinary:!1}}return i}function qo(e){let t=jo(e),o=(0,Gt.getParameters)({files:t}),r=new URLSearchParams({parameters:o,installDependencies:"true"});return e.entry&&r.set("file",`/${e.entry}`),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?${r.toString()}`,options:e}}function _t(e){if(typeof window>"u")return qo(e);let t=jo(e),o=(0,Gt.getParameters)({files:t}),r=e.entry||"src/App.tsx",n=document.createElement("form");n.method="POST",n.target="_blank",n.action="https://codesandbox.io/api/v1/sandboxes/define",n.style.display="none";let s=(c,l)=>{let p=document.createElement("input");p.type="hidden",p.name=c,p.value=l,n.appendChild(p)},i=new URLSearchParams({file:`/${r}`,eslint:"0",codemirror:"1",installDependencies:"true"});return s("query",i.toString()),s("parameters",o),document.body.appendChild(n),n.submit(),document.body.removeChild(n),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?parameters=${o}`,options:e}}function sn(e){let t=jo(e),o=(0,Gt.getParameters)({files:t}),r=e.embed||{},n=new URLSearchParams({parameters:o,embed:"1"});return r.view&&n.set("view",r.view),r.theme&&n.set("theme",r.theme),r.hideNavigation&&n.set("hidenavigation","1"),e.entry&&n.set("file",`/${e.entry}`),{parameters:o,url:`https://codesandbox.io/api/v1/sandboxes/define?${n.toString()}`,options:e}}a();var an=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 ge=require("react");function ln(e){let{title:t,sandbox:o}=e,[r,n]=(0,ge.useState)(!1),[s,i]=(0,ge.useState)(!1),[c,l]=(0,ge.useState)(!1),p=(0,ge.useRef)(null),m=H(),u=(0,ge.useCallback)(async()=>{let h=p.current?.textContent??"";an(h),n(!0),setTimeout(()=>n(!1),2e3)},[]),g=(0,ge.useCallback)(()=>{let h=p.current?.textContent??"",x=m?.integrations?.sandbox?.config||{},v=typeof o=="object"?o:x,f=v.entry||"src/App.tsx";_t({title:t??"Code Snippet",...v,files:{...v.files,[f]:{content:h}}})},[t,m,o]);return(0,ge.useEffect)(()=>{let h=p.current?.textContent?.length??0;l(h>120)},[e.children,e.highlightedHtml]),{copied:r,isExpanded:s,setIsExpanded:i,isExpandable:c,preRef:p,handleCopy:u,handleSandbox:g,shouldTruncate:c&&!s}}de();jt();Xo();var j=require("react/jsx-runtime");function ve(e){let{children:t,sandbox:o,hideSandbox:r=!0,hideCopy:n=!1,highlightedHtml:s,...i}=e,p=!!H()?.integrations?.sandbox?.enable&&!r,{copied:m,isExpanded:u,setIsExpanded:g,isExpandable:h,preRef:x,handleCopy:v,handleSandbox:f,shouldTruncate:T}=ln(e);return(0,j.jsxs)("div",{className:d("group relative my-6 overflow-hidden rounded-lg border border-border-subtle bg-(--color-code-bg)",T&&"[&>pre]:max-h-[250px] [&>pre]:overflow-hidden"),children:[(0,j.jsxs)("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:[p&&(0,j.jsx)(Ko,{content:"Open in CodeSandbox",children:(0,j.jsx)(qt.Button,{onPress:f,className:"grid place-items-center w-8 h-8 bg-transparent text-text-muted outline-none cursor-pointer transition-all duration-200 hover:scale-115 hover:text-sky-400 active:scale-95 [&>svg]:w-5 [&>svg]:h-5 [&>svg]:stroke-2","aria-label":"Open in CodeSandbox",children:(0,j.jsx)(dn,{size:20})})}),!n&&(0,j.jsx)(Ko,{content:m?"Copied!":"Copy code",children:(0,j.jsx)(qt.Button,{onPress:v,className:d("grid place-items-center w-8 h-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-115 active:scale-95 [&>svg]:w-5 [&>svg]:h-5 [&>svg]:stroke-2",m?"text-emerald-400":"text-text-muted hover:text-text-main"),"aria-label":"Copy code",children:m?(0,j.jsx)(Kt.Check,{size:20}):(0,j.jsx)(Kt.Copy,{size:20})})})]}),s?(0,j.jsx)("div",{ref:x,className:"shiki-wrapper [&>pre]:m-0! [&>pre]:rounded-none! [&>pre]:border-none! [&>pre]:bg-inherit! [&>pre>code]:grid! [&>pre>code]:p-5! [&>.shiki.shiki-themes]:bg-transparent!",dangerouslySetInnerHTML:{__html:s}}):(0,j.jsx)("pre",{ref:x,className:"m-0! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7]",...i,children:t}),h&&(0,j.jsx)("div",{className:d(T?"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,j.jsx)(qt.Button,{onPress:()=>g(!u),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:u?"Show less":"Expand code"})})]})}a();var Ze=require("react"),Ve=I(require("react-aria-components"));a();var Le=require("react");function un({initialIndex:e=0,tabs:t}){let o=t[e]?.props.disabled?t.findIndex(p=>!p.props.disabled):e,[r,n]=(0,Le.useState)(o===-1?0:o),s=(0,Le.useRef)([]),[i,c]=(0,Le.useState)({opacity:0,transform:"translateX(0)",width:0});(0,Le.useEffect)(()=>{let p=s.current[r];p&&c({opacity:1,width:p.offsetWidth,transform:`translateX(${p.offsetLeft}px)`})},[r,t]);let l=(0,Le.useCallback)(p=>{let m=0;if(p.key==="ArrowRight"?m=1:p.key==="ArrowLeft"&&(m=-1),m!==0){let u=(r+m+t.length)%t.length;for(;t[u].props.disabled&&u!==r;)u=(u+m+t.length)%t.length;u!==r&&!t[u].props.disabled&&(n(u),s.current[u]?.focus())}},[r,t]);return{active:r,setActive:n,tabRefs:s,indicatorStyle:i,handleKeyDown:l}}N();var Zo=require("class-variance-authority"),te=require("react/jsx-runtime"),js=(0,Zo.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"}}),qs=(0,Zo.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 Xt({children:e}){let t=typeof e=="string"?(0,te.jsx)(ve,{className:"language-bash",children:(0,te.jsx)("code",{children:e.trim()})}):e;return(0,te.jsx)("div",{className:"py-4",children:t})}function Zt({defaultIndex:e=0,children:t}){let o=(0,Ze.useMemo)(()=>Ze.Children.toArray(t).filter(c=>(0,Ze.isValidElement)(c)&&c.props?.label),[t]),{active:r,setActive:n,tabRefs:s,indicatorStyle:i}=un({initialIndex:e,tabs:o});return(0,te.jsx)("div",{className:"my-8 w-full group/tabs",children:(0,te.jsxs)(Ve.Tabs,{selectedKey:r.toString(),onSelectionChange:c=>n(Number(c)),className:"w-full",children:[(0,te.jsxs)(Ve.TabList,{"aria-label":"Content Tabs",className:d(js()),children:[o.map((c,l)=>{let{label:p,icon:m,disabled:u}=c.props,g=l.toString();return(0,te.jsxs)(Ve.Tab,{id:g,isDisabled:u,ref:h=>{s.current[l]=h},className:({isSelected:h,isDisabled:x})=>d(qs({isActive:h,isDisabled:x})),children:[!!m&&(0,te.jsx)("span",{className:"shrink-0 [&>svg]:w-4 [&>svg]:h-4",children:m}),(0,te.jsx)("span",{children:p})]},g)}),(0,te.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((c,l)=>(0,te.jsx)(Ve.TabPanel,{id:l.toString(),children:o[l]},l))]})})}a();var Je=require("react"),Rt=require("react/jsx-runtime");function Jt({src:e,poster:t,alt:o,children:r,controls:n,preload:s="metadata",...i}){let c=(0,Je.useRef)(null),[l,p]=(0,Je.useState)(!1);return(0,Je.useEffect)(()=>{let m=c.current;if(!m)return;let u=new IntersectionObserver(([g])=>{g.isIntersecting&&(p(!0),u.disconnect())},{rootMargin:"200px"});return u.observe(m),()=>u.disconnect()},[]),(0,Rt.jsx)("div",{ref:c,className:"my-6 overflow-hidden rounded-lg border border-border-subtle",children:l?(0,Rt.jsxs)("video",{className:"block w-full h-auto",src:e,poster:t,controls:!0,preload:s,playsInline:!0,...i,children:[r,"Your browser does not support the video tag."]}):(0,Rt.jsx)("div",{className:"aspect-video bg-bg-surface animate-pulse",role:"img","aria-label":o||"Video"})})}a();N();var fn=require("class-variance-authority"),gn=require("react/jsx-runtime"),Ks=(0,fn.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 Qt({variant:e="default",children:t,className:o="",...r}){return(0,gn.jsx)("span",{className:d(Ks({variant:e}),o),...r,children:t})}a();var Nt=require("react"),bn=I(require("react-aria-components"));N();var hn=require("class-variance-authority"),oe=require("react/jsx-runtime"),Xs=(0,hn.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 Yt({cols:e=3,children:t,className:o="",...r}){return(0,oe.jsx)("div",{className:d(Xs({cols:e}),o),...r,children:t})}function eo({title:e,icon:t,href:o,children:r,className:n="",...s}){let i=(0,Nt.useRef)(null),c=(0,Nt.useRef)(null),l=(0,Nt.useCallback)(u=>{let g=i.current||c.current;if(!g)return;let{left:h,top:x}=g.getBoundingClientRect();g.style.setProperty("--x",`${u.clientX-h}px`),g.style.setProperty("--y",`${u.clientY-x}px`)},[]),p=(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.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,oe.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,oe.jsxs)("div",{className:"space-y-1.5",children:[e&&(0,oe.jsx)("h3",{className:"text-sm font-bold text-text-main",children:e}),r&&(0,oe.jsx)("div",{className:"text-sm text-text-muted leading-relaxed",children:r})]})]}),m=d("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,oe.jsx)(bn.Link,{ref:c,href:o,className:d(m,"no-underline cursor-pointer"),onMouseMove:l,...s,children:p}):(0,oe.jsx)("div",{ref:i,role:"presentation",className:m,onMouseMove:l,...s,children:p})}a();var J=require("lucide-react");N();var vn=require("class-variance-authority"),E=require("react/jsx-runtime"),Zs={note:(0,E.jsx)(J.Bookmark,{size:18}),tip:(0,E.jsx)(J.Lightbulb,{size:18}),info:(0,E.jsx)(J.Info,{size:18}),warning:(0,E.jsx)(J.AlertTriangle,{size:18}),danger:(0,E.jsx)(J.ShieldAlert,{size:18}),important:(0,E.jsx)(J.Flame,{size:18}),caution:(0,E.jsx)(J.Zap,{size:18})},Js={note:"Note",tip:"Tip",info:"Info",warning:"Warning",danger:"Danger",important:"Important",caution:"Caution"},xn=(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 be({type:e="note",title:t,children:o,className:r="",...n}){return(0,E.jsxs)("div",{className:d(xn({type:e}),r),role:e==="warning"||e==="danger"?"alert":"note",...n,children:[(0,E.jsxs)("div",{className:"flex items-center flex-row gap-2 mb-2",children:[(0,E.jsx)("span",{className:d("shrink-0",xn({type:e})),children:Zs[e]}),(0,E.jsx)("span",{className:"text-sm font-bold tracking-tight text-text-main",children:t||Js[e]})]}),(0,E.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0",children:o})]})}var to=e=>(0,E.jsx)(be,{type:"note",...e}),oo=e=>(0,E.jsx)(be,{type:"tip",...e}),ro=e=>(0,E.jsx)(be,{type:"warning",...e}),no=e=>(0,E.jsx)(be,{type:"danger",...e}),so=e=>(0,E.jsx)(be,{type:"info",...e}),ao=e=>(0,E.jsx)(be,{type:"important",...e}),io=e=>(0,E.jsx)(be,{type:"caution",...e});a();var lo=require("react"),Qe=require("lucide-react");N();var co=require("class-variance-authority"),he=require("react/jsx-runtime"),Qs=(0,co.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}}),Ys=(0,co.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}}),ea=(0,co.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 ta({icon:e,children:t,variant:o,dense:r}){return(0,he.jsxs)("li",{className:d(Ys({variant:o,dense:r})),children:[e&&(0,he.jsx)("span",{className:d(ea({variant:o==="bubble"?"bubble":"default"})),children:e}),(0,he.jsx)("div",{className:"flex-1 text-text-muted group-hover:text-text-main transition-colors",children:t})]})}var oa={checked:e=>(0,he.jsx)(Qe.Check,{size:14,className:d("text-emerald-500 shrink-0",e)}),arrow:e=>(0,he.jsx)(Qe.ChevronRight,{size:14,className:d("text-primary-400 shrink-0",e)}),bubble:e=>(0,he.jsx)(Qe.Circle,{size:6,fill:"currentColor",className:d("text-primary-500 shrink-0",e)}),default:()=>null,number:()=>null};function mo({variant:e="default",cols:t=1,dense:o=!1,children:r,className:n,...s}){let i=t!==void 0&&Number(t)>1,c=oa[e],l=Qs({variant:e,cols:t,dense:o,isGrid:i,className:n}),p=e==="number"?"ol":"ul";return e==="default"||e==="number"?(0,he.jsx)(p,{className:l,...s,children:r}):(0,he.jsx)("ul",{className:l,...s,children:lo.Children.map(r,m=>{if(!(0,lo.isValidElement)(m))return m;let u=m,g=u.type==="li"?u.props.children:u.props.children||m;return(0,he.jsx)(ta,{icon:c(),variant:e,dense:o,children:g})})})}a();var ye=require("react"),Ce=I(require("react-aria-components")),ae=require("lucide-react");N();var O=require("react/jsx-runtime"),Pt=16,wt=2,Jo={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 Yo(e){return typeof e=="string"?e:typeof e=="number"?e.toString():Array.isArray(e)?e.map(Yo).join(""):(0,ye.isValidElement)(e)&&e.props&&typeof e.props=="object"&&"children"in e.props?Yo(e.props.children):""}function ra(e,t){let o=e.toLowerCase(),r="shrink-0 transition-colors duration-200";if(t)return(0,O.jsx)(ae.Folder,{size:Pt,strokeWidth:wt,className:d(r,"text-primary-400"),fill:"currentColor",fillOpacity:.15});let n=d(r,"text-text-dim group-hover:text-text-main");return Jo.CODE.test(o)?(0,O.jsx)(ae.FileCode,{size:Pt,strokeWidth:wt,className:n}):Jo.TEXT.test(o)?(0,O.jsx)(ae.FileText,{size:Pt,strokeWidth:wt,className:n}):Jo.IMAGE.test(o)?(0,O.jsx)(ae.FileImage,{size:Pt,strokeWidth:wt,className:n}):(0,O.jsx)(ae.File,{size:Pt,strokeWidth:wt,className:n})}function Qo(e,t){if(!(0,ye.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 po(e,t="root"){if(!(0,ye.isValidElement)(e))return[];let o=[];if(Qo(e,"ul"))return ye.Children.forEach(e.props.children,(r,n)=>{o.push(...po(r,`${t}-${n}`))}),o;if(Qo(e,"li")){let r=ye.Children.toArray(e.props.children),n=r.findIndex(x=>Qo(x,"ul")),s=n!==-1,i=s?r.slice(0,n):r,c=s?r.slice(n):[],l=Yo(i),{name:p,comment:m}=na(l),u=p.endsWith("/"),g=u?p.slice(0,-1):p,h=s||u;return o.push({id:`${t}-${g}`,name:g,comment:m,isFolder:h,children:s?po(c[0],`${t}-${g}`):void 0}),o}return e.props&&typeof e.props=="object"&&"children"in e.props&&ye.Children.forEach(e.props.children,(r,n)=>{o.push(...po(r,`${t}-${n}`))}),o}function yn({item:e}){return(0,O.jsxs)(Ce.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,O.jsx)(Ce.TreeItemContent,{children:({isExpanded:t,hasChildItems:o})=>(0,O.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,O.jsx)("div",{style:{width:"calc((var(--tree-item-level) - 1) * 1rem)"},className:"shrink-0"}),o?(0,O.jsx)(Ce.Button,{slot:"chevron",className:"outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors",children:(0,O.jsx)(ae.ChevronRight,{size:14,strokeWidth:3,className:d("transition-transform duration-200",t&&"rotate-90")})}):(0,O.jsx)("div",{className:"w-[18px]"}),ra(e.name,e.isFolder),(0,O.jsx)("span",{className:d("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,O.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,O.jsx)(Ce.Collection,{items:e.children,children:t=>(0,O.jsx)(yn,{item:t})})]})}function uo({children:e}){let t=(0,ye.useMemo)(()=>po(e),[e]);return(0,O.jsx)("div",{className:"my-8",children:(0,O.jsx)(Ce.Tree,{items:t,"aria-label":"File Tree",className:d("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,O.jsx)(yn,{item:o})})})}a();var Tt=I(require("react-aria-components"));a();var Ye=require("react");function Cn({data:e,sortable:t=!1,paginated:o=!1,pageSize:r=10}){let[n,s]=(0,Ye.useState)(null),[i,c]=(0,Ye.useState)(1),l=(0,Ye.useMemo)(()=>{if(!e)return[];let g=[...e];return t&&n!==null&&g.sort((h,x)=>{let v=h[n.key],f=x[n.key],T=typeof v=="string"?v:"",Q=typeof f=="string"?f:"";return T<Q?n.direction==="asc"?-1:1:T>Q?n.direction==="asc"?1:-1:0}),g},[e,n,t]),p=Math.ceil(l.length/r),m=(0,Ye.useMemo)(()=>{if(!o)return l;let g=(i-1)*r;return l.slice(g,g+r)},[l,o,i,r]);return{sortConfig:n,currentPage:i,setCurrentPage:c,totalPages:p,paginatedData:m,requestSort:g=>{if(!t)return;let h="asc";n&&n.key===g&&n.direction==="asc"&&(h="desc"),s({key:g,direction:h})}}}var re=require("lucide-react");N();var P=require("react/jsx-runtime");function fo({headers:e,data:t,children:o,className:r="",sortable:n=!1,paginated:s=!1,pageSize:i=10}){let{sortConfig:c,currentPage:l,setCurrentPage:p,totalPages:m,paginatedData:u,requestSort:g}=Cn({data:t,sortable:n,paginated:s,pageSize:i}),h=v=>n?c?.key!==v?(0,P.jsx)(re.ChevronDown,{size:14,className:"ml-1 opacity-30"}):c.direction==="asc"?(0,P.jsx)(re.ChevronUp,{size:14,className:"ml-1 text-primary-400"}):(0,P.jsx)(re.ChevronDown,{size:14,className:"ml-1 text-primary-400"}):null,x=o||(0,P.jsxs)(P.Fragment,{children:[e&&(0,P.jsx)("thead",{children:(0,P.jsx)("tr",{children:e.map((v,f)=>(0,P.jsx)("th",{onClick:()=>g(f),className:d("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,P.jsxs)("div",{className:"flex items-center",children:[v,h(f)]})},f))})}),u&&(0,P.jsx)("tbody",{children:u.map((v,f)=>(0,P.jsx)("tr",{className:"transition-colors hover:bg-bg-surface",children:v.map((T,Q)=>(0,P.jsx)("td",{className:"px-3 py-2 border-b border-border-subtle text-sm text-text-muted",children:T},Q))},f))})]});return(0,P.jsxs)("div",{className:d("my-6 rounded-lg border border-border-subtle overflow-hidden",r),children:[(0,P.jsx)("div",{className:"overflow-x-auto",children:(0,P.jsx)("table",{className:"w-full border-collapse text-sm",children:x})}),s&&m>1&&(0,P.jsxs)("div",{className:"flex items-center justify-between border-t border-border-subtle px-4 py-3",children:[(0,P.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",l," of ",m]}),(0,P.jsxs)("div",{className:"flex items-center gap-1",children:[(0,P.jsx)(Tt.Button,{onPress:()=>p(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,P.jsx)(re.ChevronsLeft,{size:16})}),(0,P.jsx)(Tt.Button,{onPress:()=>p(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,P.jsx)(re.ChevronLeft,{size:16})}),(0,P.jsx)(Tt.Button,{onPress:()=>p(v=>Math.min(v+1,m)),isDisabled:l===m,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,P.jsx)(re.ChevronRight,{size:16})}),(0,P.jsx)(Tt.Button,{onPress:()=>p(m),isDisabled:l===m,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,P.jsx)(re.ChevronsRight,{size:16})})]})]})]})}a();N();var ne=require("react/jsx-runtime");function go({name:e,type:t,defaultValue:o,required:r=!1,children:n,id:s,className:i=""}){return(0,ne.jsxs)("article",{className:d("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:s,children:[(0,ne.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,ne.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,ne.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,ne.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,ne.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,ne.jsx)("span",{className:"h-1 w-1 rounded-full bg-red-400 animate-pulse"}),"Required"]})]}),o&&(0,ne.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,ne.jsx)("span",{className:"font-semibold opacity-60 uppercase tracking-tighter",children:"Default"}),(0,ne.jsx)("code",{className:"font-mono text-text-main font-medium",children:o})]})]}),(0,ne.jsx)("div",{className:"text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30",children:n})]})}a();qe();N();var Rn=require("react/jsx-runtime");function bo({to:e,children:t,className:o="",...r}){let n=e&&(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")),s=d("text-blue-600 hover:text-blue-800 hover:underline cursor-pointer",o);return(0,Rn.jsx)(Z,{href:e,className:s,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...r,children:t})}a();var Nn=require("react/jsx-runtime");function ho({src:e,alt:t,theme:o,...r}){let{theme:n}=De();return o&&o!==n?null:(0,Nn.jsx)("img",{src:e,alt:t||"",...r})}a();N();var A=require("react/jsx-runtime");function xo({title:e,props:t,className:o=""}){return(0,A.jsxs)("div",{className:d("my-6",o),children:[e&&(0,A.jsx)("h3",{className:"text-base font-bold text-text-main mb-3",children:e}),(0,A.jsx)("div",{className:"overflow-x-auto rounded-lg border border-border-subtle",children:(0,A.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.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,A.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,A.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,A.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,A.jsx)("tbody",{children:t.map((r,n)=>(0,A.jsxs)("tr",{className:"transition-colors hover:bg-bg-surface",children:[(0,A.jsxs)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:[(0,A.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,A.jsx)("span",{className:"ml-1 text-red-400 font-bold",children:"*"})]}),(0,A.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:(0,A.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted",children:r.type})}),(0,A.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle",children:r.defaultValue?(0,A.jsx)("code",{className:"rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400",children:r.defaultValue}):(0,A.jsx)("span",{className:"text-text-dim",children:"\u2014"})}),(0,A.jsx)("td",{className:"px-4 py-2.5 border-b border-border-subtle text-text-muted",children:r.description})]},`${r.name}-${n}`))})]})})]})}a();a();var er=require("react");function Pn(e){let{code:t,children:o,preview:r}=e,n=(0,er.useMemo)(()=>(t??(typeof o=="string"?o:"")).trim(),[t,o]),s=(0,er.useMemo)(()=>r??(typeof o!="string"?o:null),[r,o]);return{initialCode:n,previewElement:s}}var et=require("react/jsx-runtime");function vo(e){let{highlightedHtml:t,hideCode:o=!1,hideSandbox:r=!1,hideCopy:n=!1,sandboxOptions:s={}}=e,{initialCode:i,previewElement:c}=Pn(e);return(0,et.jsxs)("div",{className:"my-6 overflow-hidden rounded-xl border border-border-subtle",children:[(0,et.jsx)("div",{className:"flex items-center justify-center p-8 bg-bg-surface",children:c}),!o&&(0,et.jsx)("div",{className:"border-t border-border-subtle",children:(0,et.jsx)(ve,{hideSandbox:r,hideCopy:n,title:s.title,lang:"tsx",highlightedHtml:t,children:i})})]})}a();var Un=require("react"),Be=require("lucide-react");Ro();var $=require("react/jsx-runtime"),qa=e=>{let[t,o]=(0,Un.useState)(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)},handleOpenRaw:()=>{let s=new Blob([e],{type:"text/plain;charset=utf-8"}),i=URL.createObjectURL(s);window.open(i,"_blank")}}};function mt({content:e,mdxRaw:t,config:o}){let r=t||e||"",{copied:n,handleCopy:s,handleOpenRaw:i}=qa(r),c=o!==!1,l=typeof o=="object"&&o.text||"Copy Markdown";return!c||!r?null:(0,$.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,$.jsxs)(Wn,{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,$.jsx)(fe,{variant:"ghost",onPress:s,icon:n?(0,$.jsx)(Be.Check,{size:16}):(0,$.jsx)(Be.Copy,{size:16}),iconPosition:"left",className:d("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,$.jsxs)(tt,{placement:"bottom end",children:[(0,$.jsx)(fe,{variant:"ghost",isIconOnly:!0,icon:(0,$.jsx)(Be.ChevronDown,{size:14}),className:d("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,$.jsxs)(ot,{className:"w-52",children:[(0,$.jsxs)(Re,{onAction:s,className:"flex flex-row items-start gap-2.5 group",children:[(0,$.jsx)(Be.Copy,{size:16,className:"w-4 h-4 shrink-0 mt-0.5 transition-transform duration-200 group-hover:-translate-y-0.5 text-text-muted group-hover:text-primary-500"}),(0,$.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"Copy Markdown"})]}),(0,$.jsxs)(Re,{onAction:i,className:"flex flex-row items-start gap-2.5 group",children:[(0,$.jsx)(Be.ExternalLink,{size:16,className:"w-4 h-4 shrink-0 mt-0.5 transition-transform duration-200 group-hover:-translate-y-0.5 text-text-muted group-hover:text-primary-500"}),(0,$.jsx)("span",{className:"font-medium text-[0.8125rem]",children:"View as Markdown"})]})]})]})]})})}a();N();a();N();var jn=require("react/jsx-runtime");function G({className:e,variant:t="rect",...o}){return(0,jn.jsx)("div",{className:d("animate-pulse bg-bg-muted",t==="circle"?"rounded-full":"rounded-md",e),...o})}var S=require("react/jsx-runtime");function To(){return(0,S.jsx)("div",{className:d("w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in"),children:(0,S.jsxs)("div",{className:"mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10",children:[(0,S.jsxs)("div",{className:"flex gap-2",children:[(0,S.jsx)(G,{className:"h-3 w-16"}),(0,S.jsx)(G,{className:"h-3 w-24"})]}),(0,S.jsx)(G,{className:"h-10 w-[60%] sm:h-12"}),(0,S.jsxs)("div",{className:"space-y-3",children:[(0,S.jsx)(G,{className:"h-4 w-full"}),(0,S.jsx)(G,{className:"h-4 w-[95%]"}),(0,S.jsx)(G,{className:"h-4 w-[40%]"})]}),(0,S.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,S.jsx)(G,{className:"h-7 w-32"}),(0,S.jsxs)("div",{className:"space-y-3",children:[(0,S.jsx)(G,{className:"h-4 w-full"}),(0,S.jsx)(G,{className:"h-4 w-[98%]"}),(0,S.jsx)(G,{className:"h-4 w-[92%]"}),(0,S.jsx)(G,{className:"h-4 w-[60%]"})]})]}),(0,S.jsx)(G,{className:"h-32 w-full rounded-lg bg-bg-muted/50"}),(0,S.jsxs)("div",{className:"space-y-6 pt-4",children:[(0,S.jsx)(G,{className:"h-7 w-48"}),(0,S.jsxs)("div",{className:"space-y-3",children:[(0,S.jsx)(G,{className:"h-4 w-full"}),(0,S.jsx)(G,{className:"h-4 w-[85%]"})]})]})]})})}var le=require("react/jsx-runtime"),dt=({level:e,id:t,children:o,...r})=>{let n=`h${e}`;return(0,le.jsxs)(n,{id:t,...r,className:"boltdocs-heading",children:[o,t&&(0,le.jsx)("a",{href:`#${t}`,className:"header-anchor","aria-label":"Anchor",children:(0,le.jsx)(qn.Link,{size:16})})]})},Kn={...wr,Loading:To,h1:e=>(0,le.jsx)(dt,{level:1,...e}),h2:e=>(0,le.jsx)(dt,{level:2,...e}),h3:e=>(0,le.jsx)(dt,{level:3,...e}),h4:e=>(0,le.jsx)(dt,{level:4,...e}),h5:e=>(0,le.jsx)(dt,{level:5,...e}),h6:e=>(0,le.jsx)(dt,{level:6,...e}),pre:e=>(0,le.jsx)(ve,{...e,children:e.children})};ee();var Zn=require("react-router-dom");xt();var C=require("react/jsx-runtime");function Ka(){let{currentLocale:e,config:t}=k();return(0,K.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 Xa(){let e=(0,Zn.useLocation)(),{config:t}=k(),o=Y(i=>i.setLocale),r=Y(i=>i.setVersion),n=Y(i=>i.currentLocale),s=Y(i=>i.currentVersion);return(0,K.useEffect)(()=>{let i=e.pathname.split("/").filter(Boolean),c=0,l=t.versions?.defaultVersion,p=t.i18n?.defaultLocale;if(i[c]==="docs"&&c++,t.versions&&i.length>c){let m=t.versions.versions.find(u=>u.path===i[c]);m&&(l=m.path,c++)}t.i18n&&i.length>c&&t.i18n.locales[i[c]]?p=i[c]:t.i18n&&i.length===0&&(p=n||t.i18n.defaultLocale),p!==n&&o(p),l!==s&&r(l)},[e.pathname,t,o,r,n,s]),null}function Za({initialRoutes:e,initialConfig:t,docsDirName:o,modules:r,hot:n,homePage:s,externalPages:i,components:c={}}){let[l,p]=(0,K.useState)(e),[m,u]=(0,K.useState)(t),g=i||{},h=(0,K.useMemo)(()=>l.filter(f=>!(s&&(f.path==="/"||f.path===""))&&!g[f.path===""?"/":f.path]).map(f=>{let T=Object.keys(r).find(me=>me===`/${o}/${f.filePath}`||me.endsWith(`/${o}/${f.filePath}`)||me.endsWith(`/${o}\\${f.filePath.replace(/\\/g,"/")}`)),Q=T?r[T]:null;return{...f,Component:K.default.lazy(async()=>Q?await Q():{default:yt})}}),[l,r,o,s,g]);(0,K.useEffect)(()=>{n&&(n.on("boltdocs:routes-update",f=>{p(f)}),n.on("boltdocs:config-update",f=>{u(f)}))},[n]);let x=(0,K.useMemo)(()=>({...Kn,...c}),[c]),v=x.Loading;return(0,C.jsx)($r,{children:(0,C.jsx)(Yr,{components:x,children:(0,C.jsx)($o.Provider,{value:m,children:(0,C.jsx)(_r,{children:(0,C.jsxs)(Ir,{routes:l,modules:r,children:[(0,C.jsx)(Kr,{}),(0,C.jsx)(Xa,{}),(0,C.jsx)(Ka,{}),(0,C.jsxs)(ce.Routes,{children:[(0,C.jsx)(ce.Route,{element:(0,C.jsx)(Jr,{}),children:h.map(f=>(0,C.jsx)(ce.Route,{path:f.path===""?"/":f.path,element:(0,C.jsx)(K.default.Suspense,{fallback:(0,C.jsx)(v,{}),children:(0,C.jsx)(on,{Component:f.Component})})},f.path))},"docs-layout"),s&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ce.Route,{path:"/",element:(0,C.jsx)(pt.default,{children:(0,C.jsx)(s,{})})}),m.i18n&&Object.keys(m.i18n.locales).map(f=>(0,C.jsx)(ce.Route,{path:`/${f}`,element:(0,C.jsx)(pt.default,{children:(0,C.jsx)(s,{})})},`home-${f}`))]}),Object.entries(g).map(([f,T])=>{let Q=f==="/"?"":f;return(0,C.jsxs)(K.default.Fragment,{children:[(0,C.jsx)(ce.Route,{path:f,element:(0,C.jsx)(pt.default,{children:(0,C.jsx)(T,{})})}),m.i18n&&Object.keys(m.i18n.locales).map(me=>(0,C.jsx)(ce.Route,{path:`/${me}${Q}`,element:(0,C.jsx)(pt.default,{children:(0,C.jsx)(T,{})})},`${f}-${me}`))]},f)}),(0,C.jsx)(ce.Route,{path:"*",element:(0,C.jsx)(pt.default,{children:(0,C.jsx)(yt,{})})})]})]})})})})})}function Jn(e){let{target:t,routes:o,docsDirName:r,config:n,modules:s,hot:i,homePage:c,externalPages:l,components:p}=e,m=document.querySelector(t);if(!m)throw new Error(`[boltdocs] Mount target "${t}" not found in document.`);let u=(0,C.jsx)(K.default.StrictMode,{children:(0,C.jsx)(ce.BrowserRouter,{children:(0,C.jsx)(Za,{initialRoutes:o,initialConfig:n,docsDirName:r,modules:s,hot:i,homePage:c,externalPages:l,components:p})})});m.innerHTML="",Xn.default.createRoot(m).render(u)}de();ee();a();N();var _e=require("react/jsx-runtime");function Ja({children:e,className:t,style:o}){return(0,_e.jsx)("div",{className:d("h-screen flex flex-col overflow-hidden bg-bg-main text-text-main",t),style:o,children:e})}function Qa({children:e,className:t,style:o}){return(0,_e.jsx)("div",{className:d("mx-auto flex flex-1 w-full max-w-(--breakpoint-3xl) bg-bg-main overflow-hidden",t),style:o,children:e})}function Ya({children:e,className:t,style:o}){return(0,_e.jsx)("main",{className:d("boltdocs-content flex-1 min-w-0 overflow-y-auto",t),style:o,children:(0,_e.jsx)("div",{className:"boltdocs-page mx-auto max-w-content-max pt-4 pb-20 px-4 sm:px-8",children:e})})}function ei({children:e,className:t,style:o}){return(0,_e.jsx)("div",{className:d("flex items-center justify-between mb-10",t),style:o,children:e})}function ti({children:e,className:t,style:o}){return(0,_e.jsx)("div",{className:d("mt-20",t),style:o,children:e})}var $e=Object.assign(Ja,{Body:Qa,Content:Ya,ContentHeader:ei,ContentFooter:ti});a();a();var Io=require("react");a();var Qn=require("react-router-dom");de();a();function Ae(e,t){return e?typeof e=="string"?e:t&&e[t]?e[t]:Object.values(e)[0]||"":""}ee();function Yn(){let e=H(),{theme:t}=De(),o=(0,Qn.useLocation)(),{currentLocale:r}=k(),n=e.theme||{},s=Ae(n.title,r)||"Boltdocs",i=n.navbar||[],c=n.socialLinks||[],l=n.githubRepo,p=i.map(x=>{let v=x.href||x.to||x.link||"";return{label:Ae(x.label||x.text,r),href:v,active:o.pathname===v,to:v.startsWith("http")||v.startsWith("//")?"external":void 0,items:x.items?.map(f=>({label:Ae(f.label||f.text,r),href:f.href||f.link||f.to||""}))}}),m=n.logo,u=m?typeof m=="string"?m:t==="dark"?m.dark:m.light:null,g={alt:(m&&typeof m=="object"?m.alt:void 0)||s,width:m&&typeof m=="object"?m.width:void 0,height:m&&typeof m=="object"?m.height:void 0},h=l?`https://github.com/${l}`:null;return{links:p,title:s,logo:u,logoProps:g,github:h,social:c,config:e,theme:t}}a();var es=require("react-router-dom");a();function Fe(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}ee();xt();function ts(){let e=(0,es.useNavigate)(),t=k(),{allRoutes:o,currentRoute:r,currentVersion:n,currentLocale:s,config:i}=t,c=i.versions,l=Y(u=>u.setVersion),p=u=>{if(!c||u===n)return;l(u);let g=`/docs/${u}`;if(r){let h=Fe(r.filePath,r.version,r.locale),x=o.find(v=>Fe(v.filePath,v.version,v.locale)===h&&(v.version||c.defaultVersion)===u&&(s?v.locale===s:!v.locale));if(x)g=x.path;else{let v=o.find(f=>Fe(f.filePath,f.version,f.locale)==="index.md"&&(f.version||c.defaultVersion)===u&&(s?f.locale===s:!f.locale));g=v?v.path:`/docs/${u}${s?`/${s}`:""}`}}e(g)},m=t.availableVersions.map(u=>({...u,label:u.label,value:u.key}));return{currentVersion:n,currentVersionLabel:t.currentVersionLabel,availableVersions:m,handleVersionChange:p}}a();var os=require("react-router-dom");ee();xt();function rs(){let e=(0,os.useNavigate)(),t=k(),{allRoutes:o,currentRoute:r,currentLocale:n,config:s}=t,i=s.i18n,c=Y(g=>g.setLocale),l=g=>{if(!i||g===n)return;c(g);let h="/";if(r){let x=Fe(r.filePath,r.version,r.locale),v=o.find(f=>Fe(f.filePath,f.version,f.locale)===x&&(f.locale||i.defaultLocale)===g&&f.version===r.version);if(v)h=v.path;else{let f=o.find(T=>Fe(T.filePath,T.version,T.locale)==="index.md"&&(T.locale||i.defaultLocale)===g&&T.version===r.version);h=f?f.path:g===i.defaultLocale?r.version?`/${r.version}`:"/":r.version?`/${r.version}/${g}`:`/${g}`}}else{let x=o.find(v=>(v.filePath==="index.mdx"||v.filePath==="index.md")&&(v.locale||i.defaultLocale)===g&&!v.version);x?h=x.path:h=g===i.defaultLocale?"/":`/${g}`}e(h)},m=s.i18n?.localeConfigs?.[n]?.label||s.i18n?.locales[n]||n,u=s.i18n?Object.entries(s.i18n.locales).map(([g,h])=>{let x=s.i18n?.localeConfigs?.[g];return{key:g,label:x?.label||h,value:g,isCurrent:g===n}}):[];return{currentLocale:n,currentLocaleLabel:m,availableLocales:u,handleLocaleChange:l}}ee();Co();a();var ko=require("react"),Me=require("lucide-react");var ns=require("react-aria-components");wo();var _=require("react/jsx-runtime");function ss(){let{theme:e,setTheme:t}=De(),[o,r]=(0,ko.useState)(!1);return(0,ko.useEffect)(()=>{r(!0)},[]),o?(0,_.jsxs)(tt,{placement:"bottom right",children:[(0,_.jsx)(ns.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,_.jsx)(e==="system"?Me.Monitor:e==="dark"?Me.Moon:Me.Sun,{size:20,className:"animate-in fade-in zoom-in duration-300"})}),(0,_.jsxs)(ot,{selectionMode:"single",selectedKeys:[e],onSelectionChange:s=>{let i=Array.from(s)[0];t(i)},children:[(0,_.jsxs)(Re,{id:"light",children:[(0,_.jsx)(Me.Sun,{size:16}),(0,_.jsx)("span",{children:"Light"})]}),(0,_.jsxs)(Re,{id:"dark",children:[(0,_.jsx)(Me.Moon,{size:16}),(0,_.jsx)("span",{children:"Dark"})]}),(0,_.jsxs)(Re,{id:"system",children:[(0,_.jsx)(Me.Monitor,{size:16}),(0,_.jsx)("span",{children:"System"})]})]})]}):(0,_.jsx)("div",{className:"h-9 w-9"})}a();var Lo=require("react");a();var oi="https://api.github.com";async function as(e,t,o=oi){let r=new Headers;t&&r.append("authorization",t);let s=await(await fetch(`${o}/repos/${e}`,{headers:r})).json();return s.stargazers_count!==void 0?ri(s.stargazers_count):"0"}var ri=e=>Intl.NumberFormat("en",{notation:"compact",compactDisplay:"short"}).format(e);jt();var St=require("react/jsx-runtime");function is({repo:e}){let[t,o]=(0,Lo.useState)(null);return(0,Lo.useEffect)(()=>{e&&as(e).then(r=>o(r)).catch(()=>o("0"))},[e]),(0,St.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,St.jsx)(Ut,{className:"h-4 w-4"}),t&&(0,St.jsx)("span",{className:"tabular-nums",children:t})]})}a();a();var ls=require("react-router-dom"),ut=require("react");function cs(e=[],t=[]){let o=(0,ls.useLocation)(),r=(0,ut.useRef)([]),[n,s]=(0,ut.useState)({opacity:0,transform:"translateX(0) scaleX(0)",width:0}),c=t.find(m=>m.path===o.pathname)?.tab?.toLowerCase(),l=e.findIndex(m=>m.id.toLowerCase()===c),p=l===-1?0:l;return(0,ut.useEffect)(()=>{let m=r.current[p];m&&s({opacity:1,width:m.offsetWidth,transform:`translateX(${m.offsetLeft}px)`})},[p,e.length,o.pathname]),{tabs:e,activeIndex:p,indicatorStyle:n,tabRefs:r,activeTabId:c}}hr();qe();var ni=I(require("lucide-react"));ee();var Pe=require("react/jsx-runtime");function ms({tabs:e,routes:t}){let{currentLocale:o}=k(),{indicatorStyle:r,tabRefs:n,activeIndex:s}=cs(e,t),i=c=>{if(!c)return null;if(c.trim().startsWith("<svg"))return(0,Pe.jsx)("span",{className:"h-4 w-4",dangerouslySetInnerHTML:{__html:c}});let l=ni[c];return l?(0,Pe.jsx)(l,{size:16}):(0,Pe.jsx)("img",{src:c,alt:"",className:"h-4 w-4 object-contain"})};return(0,Pe.jsx)("div",{className:"mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6",children:(0,Pe.jsxs)(br.TabsList,{className:"border-none py-0",children:[e.map((c,l)=>{let p=l===s,m=t.find(g=>g.tab&&g.tab.toLowerCase()===c.id.toLowerCase()),u=m?m.path:"#";return(0,Pe.jsxs)(Z,{href:u,ref:g=>{n.current[l]=g},className:`relative flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors outline-none ${p?"text-primary-500":"text-text-muted hover:text-text-main"}`,children:[i(c.icon),(0,Pe.jsx)("span",{children:Ae(c.text,o)})]},c.id)}),(0,Pe.jsx)(br.TabsIndicator,{style:r})]})})}var hs=require("react-router-dom");wo();Ft();var It=require("lucide-react");Fo();var y=require("react/jsx-runtime"),ai=(0,Io.lazy)(()=>Promise.resolve().then(()=>(bs(),gs)).then(e=>({default:e.SearchDialog})));function Bo(){let{links:e,title:t,logo:o,logoProps:r,github:n,social:s,config:i}=Yn(),{routes:c,allRoutes:l,currentVersion:p,currentLocale:m}=k(),{pathname:u}=(0,hs.useLocation)(),g=i.theme||{},h=g?.tabs&&g.tabs.length>0;return(0,y.jsxs)(q.NavbarRoot,{className:h?"border-b-0":"",children:[(0,y.jsxs)(q.Content,{children:[(0,y.jsxs)(q.NavbarLeft,{children:[o&&(0,y.jsx)(q.NavbarLogo,{src:o,alt:r?.alt||t,width:r?.width??24,height:r?.height??24}),(0,y.jsx)(q.Title,{children:t}),i.versions&&p&&(0,y.jsx)(li,{}),(0,y.jsx)(q.Links,{children:e.map(x=>(0,y.jsx)(ii,{link:x},x.href))})]}),(0,y.jsx)(q.NavbarCenter,{children:(0,y.jsx)(Io.Suspense,{fallback:(0,y.jsx)("div",{className:"h-9 w-32 animate-pulse rounded-md bg-bg-surface"}),children:(0,y.jsx)(ai,{routes:c||[]})})}),(0,y.jsxs)(q.NavbarRight,{children:[i.i18n&&m&&(0,y.jsx)(ci,{}),(0,y.jsx)(q.Split,{}),(0,y.jsx)(ss,{}),n&&(0,y.jsx)(is,{repo:g?.githubRepo??""}),s.length>0&&(0,y.jsx)(q.Split,{}),(0,y.jsx)("div",{className:"flex items-center gap-1",children:s.map(({icon:x,link:v})=>(0,y.jsx)(q.Socials,{icon:x,link:v,className:"p-1.5"},v))})]})]}),u!=="/"&&h&&g?.tabs&&(0,y.jsx)("div",{className:"w-full border-b border-border-subtle bg-bg-main",children:(0,y.jsx)(ms,{tabs:g.tabs,routes:l||c||[]})})]})}function ii({link:e}){let t=vt(e.href);return(0,y.jsx)(q.Link,{...e,href:t})}function li(){let{currentVersionLabel:e,availableVersions:t,handleVersionChange:o}=ts();return t.length===0?null:(0,y.jsxs)(Ie.Trigger,{children:[(0,y.jsx)(fe,{variant:"outline",size:"sm",rounded:"lg",iconPosition:"right",icon:(0,y.jsx)(It.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)(Ie.Root,{children:(0,y.jsx)(Ie.Section,{items:t,children:r=>(0,y.jsx)(Ie.Item,{onPress:()=>o(r.value),children:r.label},`${r.value??""}`)})})]})}function ci(){let{currentLocale:e,availableLocales:t,handleLocaleChange:o}=rs();return t.length===0?null:(0,y.jsxs)(Ie.Trigger,{children:[(0,y.jsx)(fe,{variant:"outline",size:"sm",rounded:"lg",iconPosition:"right",icon:(0,y.jsx)(It.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)(It.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)(Ie.Root,{children:(0,y.jsx)(Ie.Section,{items:t,children:r=>(0,y.jsx)(Ie.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??""}`)})})]})}a();var ft=require("react");a();var xs=require("react-router-dom");de();function vs(e){let t=H(),o=(0,xs.useLocation)(),r=u=>u.endsWith("/")&&u.length>1?u.slice(0,-1):u,n=r(o.pathname),s=e.find(u=>r(u.path)===n),i=s?.tab?.toLowerCase(),c=i?e.filter(u=>!u.tab||u.tab.toLowerCase()===i):e,l=[],p=new Map;for(let u of c)u.group?(p.has(u.group)||p.set(u.group,{slug:u.group,title:u.groupTitle||u.group,routes:[],icon:u.groupIcon}),p.get(u.group).routes.push(u)):l.push(u);return{groups:Array.from(p.values()),ungrouped:l,activeRoute:s,activePath:n,config:t}}xr();a();var ys=require("lucide-react"),Ue=require("react/jsx-runtime");function Cs(){return(0,Ue.jsx)("div",{className:"flex items-center justify-center mt-10 mb-4 px-4 w-full",children:(0,Ue.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,Ue.jsx)(ys.Zap,{className:"w-3.5 h-3.5 text-text-muted group-hover:text-primary-500 transition-colors duration-300",fill:"currentColor"}),(0,Ue.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,Ue.jsx)("strong",{className:"font-bold text-text-main/80 group-hover:text-text-main",children:"Boltdocs"})]})]})})}var mi=I(require("lucide-react")),we=require("react/jsx-runtime");function Rs(e){return e&&mi[e]||void 0}function di({group:e,activePath:t,getIcon:o}){let r=(0,ft.useMemo)(()=>e.routes.some(i=>i.path===t),[e.routes,t]),[n,s]=(0,ft.useState)(!0);return(0,ft.useEffect)(()=>{r&&s(!0)},[r]),(0,we.jsx)(st.SidebarGroup,{title:e.title,isOpen:n,onToggle:()=>s(!n),children:e.routes.map(i=>{let c=t===(i.path.endsWith("/")?i.path.slice(0,-1):i.path);return(0,we.jsx)(st.SidebarLink,{label:i.title,href:i.path,active:c,icon:o(i.icon),badge:i.badge},i.path)})})}function Ao({routes:e,config:t}){let{groups:o,ungrouped:r,activePath:n}=vs(e),s=t.theme||{};return(0,we.jsxs)(st.SidebarRoot,{children:[r.length>0&&(0,we.jsx)(st.SidebarGroup,{className:"mb-6",children:r.map(i=>{let c=n===(i.path.endsWith("/")?i.path.slice(0,-1):i.path);return(0,we.jsx)(st.SidebarLink,{label:i.title,href:i.path,active:c,icon:Rs(i.icon),badge:i.badge},i.path)})}),o.map(i=>(0,we.jsx)(di,{group:i,activePath:n,getIcon:Rs},i.slug)),s?.poweredBy&&(0,we.jsx)("div",{className:"mt-auto pt-8",children:(0,we.jsx)(Cs,{})})]})}a();fr();var xe=I(require("react"));a();var Ns=require("react");function Ps(e=[]){let[t,o]=(0,Ns.useState)(null);return{headings:e,activeId:t,setActiveId:o}}var gt=require("lucide-react"),M=require("react/jsx-runtime");function Mo({headings:e=[],editLink:t,communityHelp:o,filePath:r}){let{headings:n}=Ps(e),s=xe.default.useMemo(()=>n.map(i=>({title:i.text,url:`#${i.id}`,depth:i.level})),[n]);return n.length===0?null:(0,M.jsx)(En,{toc:s,children:(0,M.jsx)(pi,{headings:n,editLink:t,communityHelp:o,filePath:r})})}function pi({headings:e,editLink:t,communityHelp:o,filePath:r}){let n=An(),[s,i]=(0,xe.useState)({opacity:0}),c=(0,xe.useRef)(null),l=(0,xe.useRef)(null);(0,xe.useEffect)(()=>{if(!n||!c.current)return;let m=c.current.querySelector(`a[href="#${n}"]`);m&&i({transform:`translateY(${m.offsetTop}px)`,height:`${m.offsetHeight}px`,opacity:1})},[n]);let p=(0,xe.useCallback)((m,u)=>{m.preventDefault();let g=document.getElementById(u);g&&(g.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",`#${u}`))},[]);return(0,M.jsxs)(Ge.OnThisPageRoot,{children:[(0,M.jsxs)(Ge.OnThisPageHeader,{className:"flex flex-row gap-x-2",children:[(0,M.jsx)(gt.TextAlignStart,{size:16}),"On this page"]}),(0,M.jsx)(Mn,{containerRef:l,children:(0,M.jsxs)(Ge.OnThisPageContent,{className:"max-h-[450px] boltdocs-otp-scroll-area",ref:l,children:[(0,M.jsx)(Ge.OnThisPageIndicator,{style:s}),(0,M.jsx)("ul",{className:"relative space-y-2 border-l border-border-subtle",ref:c,children:e.map(m=>(0,M.jsx)(Ge.OnThisPageItem,{level:m.level,children:(0,M.jsx)(Ge.OnThisPageLink,{href:`#${m.id}`,active:n===m.id,onClick:u=>p(u,m.id),className:"pl-4",children:m.text})},m.id))})]})}),(t||o)&&(0,M.jsxs)("div",{className:"mt-8 pt-8 border-t border-border-subtle space-y-4",children:[(0,M.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-text-main",children:"Need help?"}),(0,M.jsxs)("ul",{className:"space-y-3",children:[t&&r&&(0,M.jsx)("li",{children:(0,M.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,M.jsx)(gt.Pencil,{size:16}),"Edit this page"]})}),o&&(0,M.jsx)("li",{children:(0,M.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,M.jsx)(gt.CircleHelp,{size:16}),"Community help"]})})]})]})]})}a();var ws=require("react"),Ts=require("react-router-dom");function Eo({siteTitle:e,siteDescription:t,routes:o}){let r=(0,Ts.useLocation)();return(0,ws.useEffect)(()=>{let n=o.find(p=>p.path===r.pathname),s=n?.title,i=n?.description||t||"";document.title=s?`${s} | ${e}`:e;let c=document.querySelector('meta[name="description"]');c||(c=document.createElement("meta"),c.name="description",document.head.appendChild(c)),c.content=i,je("property","og:title",document.title),je("property","og:description",i),je("property","og:type","article"),je("property","og:url",window.location.href),je("name","twitter:card","summary"),je("name","twitter:title",document.title),je("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 je(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}a();a();ee();function ks(){let{currentRoute:e}=k(),t=[];return e&&(e.groupTitle&&t.push({label:e.groupTitle}),t.push({label:e.title,href:e.path})),{crumbs:t,activeRoute:e}}var Ls=require("lucide-react");Cr();N();de();var Ee=require("react/jsx-runtime");function Oo(){let{crumbs:e,activeRoute:t}=ks(),r=H().theme||{};return e.length===0||!r?.breadcrumbs?null:(0,Ee.jsxs)($n,{children:[(0,Ee.jsx)(vr,{children:(0,Ee.jsx)(yr,{href:"/",children:(0,Ee.jsx)(Ls.Home,{size:14})})}),e.map((n,s)=>(0,Ee.jsxs)(vr,{children:[(0,Ee.jsx)(Fn,{}),(0,Ee.jsx)(yr,{href:n.href,className:d({"font-medium text-text-main":n.href===t?.path}),children:n.label})]},`crumb-${n.href}-${n.label}-${s}`))]})}a();a();var Ss=require("react-router-dom");ee();function Is(){let{routes:e,currentRoute:t}=k(),o=(0,Ss.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),s=n.findIndex(l=>l.path===o.pathname),i=s>0?n[s-1]:null,c=s!==-1&&s<n.length-1?n[s+1]:null;return{prevPage:i,nextPage:c,currentRoute:t}}gr();var Te=require("react/jsx-runtime");function Do(){let{prevPage:e,nextPage:t}=Is();return!e&&!t?null:(0,Te.jsxs)(ze.PageNavRoot,{className:"animate-in fade-in slide-in-from-bottom-4 duration-700",children:[e?(0,Te.jsxs)(ze.PageNavLink,{to:e.path,direction:"prev",children:[(0,Te.jsx)(ze.PageNavLink.Title,{children:"Previous"}),(0,Te.jsx)(ze.PageNavLink.Description,{children:e.title})]}):(0,Te.jsx)("div",{}),t&&(0,Te.jsxs)(ze.PageNavLink,{to:t.path,direction:"next",children:[(0,Te.jsx)(ze.PageNavLink.Title,{children:"Next"}),(0,Te.jsx)(ze.PageNavLink.Description,{children:t.title})]})]})}a();var Vo=require("react"),Bs=require("react-aria-components"),kr=require("react/jsx-runtime");function Ho(){let[e,t]=(0,Vo.useState)(0);return(0,Vo.useEffect)(()=>{let o=null,r,n=()=>{if(!o)return;let{scrollTop:i,scrollHeight:c,clientHeight:l}=o;if(c<=l){t(0);return}let p=i/(c-l)*100;t(Math.min(100,Math.max(0,p)))},s=()=>(o=document.querySelector(".boltdocs-content"),o?(o.addEventListener("scroll",n),n(),r&&clearInterval(r),!0):!1);return s()||(r=setInterval(s,100)),()=>{o&&o.removeEventListener("scroll",n),r&&clearInterval(r)}},[]),(0,kr.jsx)(Bs.ProgressBar,{value:e,"aria-label":"Reading progress",className:"fixed top-0 left-0 right-0 z-999 h-0.5 bg-transparent w-full pointer-events-none",children:({percentage:o})=>(0,kr.jsx)("div",{className:"h-full bg-primary-500 transition-[width] duration-300 ease-out shadow-[0_0_8px_rgba(var(--primary-rgb),0.4)]",style:{width:`${o}%`}})})}a();var As=require("react");Ro();var bt=require("react/jsx-runtime"),ht=class extends As.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,bt.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[40vh] text-center gap-4 px-4",children:[(0,bt.jsx)("div",{className:"text-lg font-bold text-red-400",children:"Something went wrong"}),(0,bt.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,bt.jsx)(fe,{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}};ee();de();var Ms=require("react-router-dom");var U=require("react/jsx-runtime");function Es({children:e}){let{routes:t,allRoutes:o,currentRoute:r,currentLocale:n}=k(),{pathname:s}=(0,Ms.useLocation)(),i=H(),l=Ke().CopyMarkdown||mt,p=s==="/"||s==="";return(0,U.jsxs)($e,{children:[(0,U.jsx)(Ho,{}),(0,U.jsx)(Eo,{siteTitle:Ae(i.theme?.title,n)||"Boltdocs",siteDescription:Ae(i.theme?.description,n)||"",routes:o}),(0,U.jsx)(Bo,{}),(0,U.jsxs)($e.Body,{children:[!p&&(0,U.jsx)(Ao,{routes:t,config:i}),(0,U.jsxs)($e.Content,{children:[!p&&(0,U.jsxs)($e.ContentHeader,{children:[(0,U.jsx)(Oo,{}),(0,U.jsx)(l,{mdxRaw:r?._rawContent,route:r,config:i.theme?.copyMarkdown})]}),(0,U.jsx)(ht,{children:e}),!p&&(0,U.jsx)($e.ContentFooter,{children:(0,U.jsx)(Do,{})})]}),!p&&(0,U.jsx)(Mo,{headings:r?.headings,editLink:i.theme?.editLink,communityHelp:i.theme?.communityHelp,filePath:r?.filePath})]})]})}