zudoku 0.0.0-f3858d6 → 0.0.0-f3f5bb50

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 (2153) hide show
  1. package/README.md +141 -0
  2. package/cli.js +10 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +23 -10
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -2
  9. package/dist/app/entry.client.js +54 -5
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -8
  12. package/dist/app/entry.server.js +20 -18
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +37 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +4 -3
  18. package/dist/app/main.js +54 -49
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +12 -11
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +18 -2
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +20 -6
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/analytics/lib.js +1 -1
  40. package/dist/cli/common/analytics/lib.js.map +1 -1
  41. package/dist/cli/common/logger.js +8 -0
  42. package/dist/cli/common/logger.js.map +1 -1
  43. package/dist/cli/common/machine-id/lib.js +3 -1
  44. package/dist/cli/common/machine-id/lib.js.map +1 -1
  45. package/dist/cli/common/outdated.js +4 -2
  46. package/dist/cli/common/outdated.js.map +1 -1
  47. package/dist/cli/common/output.js +2 -3
  48. package/dist/cli/common/output.js.map +1 -1
  49. package/dist/cli/common/utils/box.js +2 -2
  50. package/dist/cli/common/utils/box.js.map +1 -1
  51. package/dist/cli/common/utils/ports.d.ts +1 -1
  52. package/dist/cli/common/utils/ports.js +16 -15
  53. package/dist/cli/common/utils/ports.js.map +1 -1
  54. package/dist/cli/common/validators/lib.js +1 -1
  55. package/dist/cli/common/validators/lib.js.map +1 -1
  56. package/dist/cli/dev/handler.d.ts +1 -0
  57. package/dist/cli/dev/handler.js +14 -15
  58. package/dist/cli/dev/handler.js.map +1 -1
  59. package/dist/cli/preview/handler.d.ts +3 -0
  60. package/dist/cli/preview/handler.js +35 -0
  61. package/dist/cli/preview/handler.js.map +1 -0
  62. package/dist/codegen.d.ts +3 -0
  63. package/dist/codegen.js +45 -0
  64. package/dist/codegen.js.map +1 -0
  65. package/dist/config/config.d.ts +29 -13
  66. package/dist/config/file-exists.d.ts +1 -0
  67. package/dist/config/file-exists.js +5 -0
  68. package/dist/config/file-exists.js.map +1 -0
  69. package/dist/config/loader.d.ts +21 -0
  70. package/dist/config/loader.js +141 -0
  71. package/dist/config/loader.js.map +1 -0
  72. package/dist/config/validators/BuildSchema.d.ts +36 -0
  73. package/dist/config/validators/BuildSchema.js +25 -0
  74. package/dist/config/validators/BuildSchema.js.map +1 -0
  75. package/dist/config/validators/InputNavigationSchema.d.ts +7486 -0
  76. package/dist/config/validators/InputNavigationSchema.js +77 -0
  77. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  78. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  79. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  80. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  81. package/dist/config/validators/NavigationSchema.js +98 -0
  82. package/dist/config/validators/NavigationSchema.js.map +1 -0
  83. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  84. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  85. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  86. package/dist/config/validators/auth.d.ts +2 -2
  87. package/dist/config/validators/auth.js +1 -1
  88. package/dist/config/validators/auth.js.map +1 -1
  89. package/dist/config/validators/icon-types.d.ts +2 -0
  90. package/dist/config/validators/icon-types.js +1834 -0
  91. package/dist/config/validators/icon-types.js.map +1 -0
  92. package/dist/config/validators/validate.d.ts +667 -1479
  93. package/dist/config/validators/validate.js +357 -136
  94. package/dist/config/validators/validate.js.map +1 -1
  95. package/dist/config/validators/validate.test.js +140 -0
  96. package/dist/config/validators/validate.test.js.map +1 -0
  97. package/dist/flat-config.d.ts +331 -0
  98. package/dist/index.d.ts +10 -5
  99. package/dist/index.js +6 -1
  100. package/dist/index.js.map +1 -1
  101. package/dist/lib/MissingIcon.d.ts +2 -0
  102. package/dist/lib/MissingIcon.js +7 -0
  103. package/dist/lib/MissingIcon.js.map +1 -0
  104. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  105. package/dist/lib/assets/language-icons/csharp.js +4 -0
  106. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  107. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  108. package/dist/lib/assets/language-icons/css.js +4 -0
  109. package/dist/lib/assets/language-icons/css.js.map +1 -0
  110. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  111. package/dist/lib/assets/language-icons/go.js +4 -0
  112. package/dist/lib/assets/language-icons/go.js.map +1 -0
  113. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  114. package/dist/lib/assets/language-icons/graphql.js +4 -0
  115. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  116. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  117. package/dist/lib/assets/language-icons/html.js +4 -0
  118. package/dist/lib/assets/language-icons/html.js.map +1 -0
  119. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  120. package/dist/lib/assets/language-icons/java.js +4 -0
  121. package/dist/lib/assets/language-icons/java.js.map +1 -0
  122. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  123. package/dist/lib/assets/language-icons/javascript.js +4 -0
  124. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  125. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  126. package/dist/lib/assets/language-icons/json.js +4 -0
  127. package/dist/lib/assets/language-icons/json.js.map +1 -0
  128. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  129. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  130. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  131. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  132. package/dist/lib/assets/language-icons/markdown.js +4 -0
  133. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  134. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  135. package/dist/lib/assets/language-icons/mdx.js +4 -0
  136. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  137. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  138. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  139. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  140. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  141. package/dist/lib/assets/language-icons/php.js +4 -0
  142. package/dist/lib/assets/language-icons/php.js.map +1 -0
  143. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  144. package/dist/lib/assets/language-icons/python.js +4 -0
  145. package/dist/lib/assets/language-icons/python.js.map +1 -0
  146. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  147. package/dist/lib/assets/language-icons/react.js +4 -0
  148. package/dist/lib/assets/language-icons/react.js.map +1 -0
  149. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  150. package/dist/lib/assets/language-icons/ruby.js +4 -0
  151. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  152. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  153. package/dist/lib/assets/language-icons/rust.js +4 -0
  154. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  155. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  156. package/dist/lib/assets/language-icons/shell.js +4 -0
  157. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  158. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  159. package/dist/lib/assets/language-icons/swift.js +4 -0
  160. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  161. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  162. package/dist/lib/assets/language-icons/toml.js +4 -0
  163. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  164. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  165. package/dist/lib/assets/language-icons/typescript.js +4 -0
  166. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  167. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  168. package/dist/lib/assets/language-icons/xml.js +4 -0
  169. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  170. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  171. package/dist/lib/assets/language-icons/yaml.js +4 -0
  172. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  173. package/dist/lib/auth/issuer.d.ts +2 -0
  174. package/dist/lib/auth/issuer.js +37 -0
  175. package/dist/lib/auth/issuer.js.map +1 -0
  176. package/dist/lib/auth/issuer.test.js +95 -0
  177. package/dist/lib/auth/issuer.test.js.map +1 -0
  178. package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
  179. package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
  180. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  181. package/dist/lib/authentication/authentication.d.ts +6 -7
  182. package/dist/lib/authentication/components/CallbackHandler.js +27 -31
  183. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  184. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  185. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  186. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  187. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  188. package/dist/lib/authentication/components/SignIn.js +6 -2
  189. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  190. package/dist/lib/authentication/components/SignOut.js +2 -2
  191. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  192. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  193. package/dist/lib/authentication/components/SignUp.js +4 -1
  194. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  195. package/dist/lib/authentication/errors.d.ts +6 -12
  196. package/dist/lib/authentication/errors.js +2 -1
  197. package/dist/lib/authentication/errors.js.map +1 -1
  198. package/dist/lib/authentication/hook.d.ts +13 -4
  199. package/dist/lib/authentication/hook.js +12 -4
  200. package/dist/lib/authentication/hook.js.map +1 -1
  201. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  202. package/dist/lib/authentication/providers/auth0.js +16 -14
  203. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  204. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  205. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  206. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  207. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  208. package/dist/lib/authentication/providers/clerk.js +111 -49
  209. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  210. package/dist/lib/authentication/providers/openid.d.ts +26 -21
  211. package/dist/lib/authentication/providers/openid.js +112 -73
  212. package/dist/lib/authentication/providers/openid.js.map +1 -1
  213. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  214. package/dist/lib/authentication/providers/supabase.js +109 -0
  215. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  216. package/dist/lib/authentication/state.d.ts +24 -19
  217. package/dist/lib/authentication/state.js +47 -7
  218. package/dist/lib/authentication/state.js.map +1 -1
  219. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  220. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  221. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  222. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  223. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  224. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  225. package/dist/lib/components/AnchorLink.d.ts +2 -2
  226. package/dist/lib/components/AnchorLink.js +9 -5
  227. package/dist/lib/components/AnchorLink.js.map +1 -1
  228. package/dist/lib/components/Autocomplete.d.ts +13 -0
  229. package/dist/lib/components/Autocomplete.js +47 -0
  230. package/dist/lib/components/Autocomplete.js.map +1 -0
  231. package/dist/lib/components/Banner.js +2 -2
  232. package/dist/lib/components/Banner.js.map +1 -1
  233. package/dist/lib/components/Bootstrap.d.ts +5 -3
  234. package/dist/lib/components/Bootstrap.js +13 -6
  235. package/dist/lib/components/Bootstrap.js.map +1 -1
  236. package/dist/lib/components/BuildCheck.d.ts +5 -0
  237. package/dist/lib/components/BuildCheck.js +45 -0
  238. package/dist/lib/components/BuildCheck.js.map +1 -0
  239. package/dist/lib/components/CategoryHeading.js +1 -1
  240. package/dist/lib/components/CategoryHeading.js.map +1 -1
  241. package/dist/lib/components/ClientOnly.d.ts +4 -2
  242. package/dist/lib/components/ClientOnly.js +1 -1
  243. package/dist/lib/components/ClientOnly.js.map +1 -1
  244. package/dist/lib/components/DeveloperHint.js +2 -1
  245. package/dist/lib/components/DeveloperHint.js.map +1 -1
  246. package/dist/lib/components/ErrorPage.js +2 -2
  247. package/dist/lib/components/ErrorPage.js.map +1 -1
  248. package/dist/lib/components/Footer.d.ts +1 -0
  249. package/dist/lib/components/Footer.js +32 -0
  250. package/dist/lib/components/Footer.js.map +1 -0
  251. package/dist/lib/components/Framed.d.ts +7 -0
  252. package/dist/lib/components/Framed.js +26 -0
  253. package/dist/lib/components/Framed.js.map +1 -0
  254. package/dist/lib/components/Header.js +32 -18
  255. package/dist/lib/components/Header.js.map +1 -1
  256. package/dist/lib/components/Heading.d.ts +10 -6
  257. package/dist/lib/components/Heading.js +8 -3
  258. package/dist/lib/components/Heading.js.map +1 -1
  259. package/dist/lib/components/InlineCode.d.ts +2 -1
  260. package/dist/lib/components/InlineCode.js +2 -9
  261. package/dist/lib/components/InlineCode.js.map +1 -1
  262. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  263. package/dist/lib/components/LanguageIcon.js +118 -0
  264. package/dist/lib/components/LanguageIcon.js.map +1 -0
  265. package/dist/lib/components/Layout.js +10 -24
  266. package/dist/lib/components/Layout.js.map +1 -1
  267. package/dist/lib/components/Main.d.ts +2 -0
  268. package/dist/lib/components/Main.js +18 -0
  269. package/dist/lib/components/Main.js.map +1 -0
  270. package/dist/lib/components/Markdown.d.ts +4 -3
  271. package/dist/lib/components/Markdown.js +14 -14
  272. package/dist/lib/components/Markdown.js.map +1 -1
  273. package/dist/lib/components/Meta.d.ts +2 -0
  274. package/dist/lib/components/Meta.js +11 -0
  275. package/dist/lib/components/Meta.js.map +1 -0
  276. package/dist/lib/components/MobileTopNavigation.js +19 -7
  277. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  278. package/dist/lib/components/NotFoundPage.js +3 -3
  279. package/dist/lib/components/NotFoundPage.js.map +1 -1
  280. package/dist/lib/components/PageProgress.d.ts +1 -0
  281. package/dist/lib/components/PageProgress.js +20 -0
  282. package/dist/lib/components/PageProgress.js.map +1 -0
  283. package/dist/lib/components/Pagination.d.ts +11 -0
  284. package/dist/lib/components/Pagination.js +10 -0
  285. package/dist/lib/components/Pagination.js.map +1 -0
  286. package/dist/lib/components/PathRenderer.d.ts +11 -0
  287. package/dist/lib/components/PathRenderer.js +28 -0
  288. package/dist/lib/components/PathRenderer.js.map +1 -0
  289. package/dist/lib/components/Search.d.ts +3 -1
  290. package/dist/lib/components/Search.js +10 -4
  291. package/dist/lib/components/Search.js.map +1 -1
  292. package/dist/lib/components/Slot.d.ts +17 -0
  293. package/dist/lib/components/Slot.js +24 -0
  294. package/dist/lib/components/Slot.js.map +1 -0
  295. package/dist/lib/components/Slot.test.d.ts +1 -0
  296. package/dist/lib/components/Slot.test.js +172 -0
  297. package/dist/lib/components/Slot.test.js.map +1 -0
  298. package/dist/lib/components/StatusPage.d.ts +7 -0
  299. package/dist/lib/components/StatusPage.js +75 -0
  300. package/dist/lib/components/StatusPage.js.map +1 -0
  301. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  302. package/dist/lib/components/ThemeSwitch.js +16 -0
  303. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  304. package/dist/lib/components/TopNavigation.d.ts +7 -0
  305. package/dist/lib/components/TopNavigation.js +56 -30
  306. package/dist/lib/components/TopNavigation.js.map +1 -1
  307. package/dist/lib/components/Typography.d.ts +5 -0
  308. package/dist/lib/components/Typography.js +8 -0
  309. package/dist/lib/components/Typography.js.map +1 -0
  310. package/dist/lib/components/Zudoku.d.ts +7 -0
  311. package/dist/lib/components/Zudoku.js +58 -0
  312. package/dist/lib/components/Zudoku.js.map +1 -0
  313. package/dist/lib/components/cache.d.ts +13 -0
  314. package/dist/lib/components/cache.js +20 -0
  315. package/dist/lib/components/cache.js.map +1 -0
  316. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  317. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  318. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  319. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  320. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  321. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  322. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  323. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  324. package/dist/lib/components/context/SlotProvider.js +83 -0
  325. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  326. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  327. package/dist/lib/components/context/ViewportAnchorContext.js +30 -24
  328. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  329. package/dist/lib/components/context/ZudokuContext.d.ts +9 -12
  330. package/dist/lib/components/context/ZudokuContext.js +64 -31
  331. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  332. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  333. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  334. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  335. package/dist/lib/components/index.d.ts +66 -24
  336. package/dist/lib/components/index.js +31 -15
  337. package/dist/lib/components/index.js.map +1 -1
  338. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  339. package/dist/lib/components/navigation/Navigation.js +12 -0
  340. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  341. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  342. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  343. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  344. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  345. package/dist/lib/components/navigation/NavigationCategory.js +66 -0
  346. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  347. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  348. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  349. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  350. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  351. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  352. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  353. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  354. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  355. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  356. package/dist/lib/components/navigation/Toc.js +46 -0
  357. package/dist/lib/components/navigation/Toc.js.map +1 -0
  358. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  359. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  360. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  361. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  362. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  363. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  364. package/dist/lib/components/navigation/utils.d.ts +16 -8
  365. package/dist/lib/components/navigation/utils.js +59 -28
  366. package/dist/lib/components/navigation/utils.js.map +1 -1
  367. package/dist/lib/core/RouteGuard.d.ts +2 -0
  368. package/dist/lib/core/RouteGuard.js +52 -0
  369. package/dist/lib/core/RouteGuard.js.map +1 -0
  370. package/dist/lib/core/ZudokuContext.d.ts +115 -0
  371. package/dist/lib/core/ZudokuContext.js +104 -0
  372. package/dist/lib/core/ZudokuContext.js.map +1 -0
  373. package/dist/lib/core/__internal.d.ts +37 -0
  374. package/dist/lib/core/__internal.js +26 -0
  375. package/dist/lib/core/__internal.js.map +1 -0
  376. package/dist/lib/core/plugins.d.ts +37 -19
  377. package/dist/lib/core/plugins.js +4 -0
  378. package/dist/lib/core/plugins.js.map +1 -1
  379. package/dist/lib/core/router.d.ts +1 -0
  380. package/dist/lib/core/router.js +2 -0
  381. package/dist/lib/core/router.js.map +1 -0
  382. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  383. package/dist/lib/errors/ErrorAlert.js +12 -4
  384. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  385. package/dist/lib/errors/RouterError.js +1 -1
  386. package/dist/lib/errors/RouterError.js.map +1 -1
  387. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  388. package/dist/lib/errors/TopLevelError.js +1 -2
  389. package/dist/lib/errors/TopLevelError.js.map +1 -1
  390. package/dist/lib/hooks/index.d.ts +28 -0
  391. package/dist/lib/hooks/index.js +16 -0
  392. package/dist/lib/hooks/index.js.map +1 -0
  393. package/dist/lib/hooks/useEvent.d.ts +11 -0
  394. package/dist/lib/hooks/useEvent.js +19 -0
  395. package/dist/lib/hooks/useEvent.js.map +1 -0
  396. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  397. package/dist/lib/hooks/useEvent.test.js +102 -0
  398. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  399. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  400. package/dist/lib/hooks/useHotkey.js +58 -0
  401. package/dist/lib/hooks/useHotkey.js.map +1 -0
  402. package/dist/lib/icons.d.ts +1 -0
  403. package/dist/lib/icons.js +1 -0
  404. package/dist/lib/icons.js.map +1 -1
  405. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  406. package/dist/lib/oas/graphql/circular.js +43 -0
  407. package/dist/lib/oas/graphql/circular.js.map +1 -0
  408. package/dist/lib/oas/graphql/index.d.ts +25 -1
  409. package/dist/lib/oas/graphql/index.js +218 -70
  410. package/dist/lib/oas/graphql/index.js.map +1 -1
  411. package/dist/lib/oas/parser/dereference/index.js +10 -4
  412. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  413. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  414. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  415. package/dist/lib/oas/parser/index.d.ts +8 -3
  416. package/dist/lib/oas/parser/index.js +8 -24
  417. package/dist/lib/oas/parser/index.js.map +1 -1
  418. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  419. package/dist/lib/oas/parser/upgrade/index.js +84 -31
  420. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  421. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  422. package/dist/lib/plugins/api-catalog/Catalog.js +32 -0
  423. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  424. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  425. package/dist/lib/plugins/api-catalog/index.js +46 -0
  426. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  427. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  428. package/dist/lib/plugins/api-keys/CreateApiKey.js +26 -8
  429. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  430. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  431. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  432. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  433. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  434. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  435. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  436. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +148 -27
  437. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  438. package/dist/lib/plugins/api-keys/index.d.ts +33 -18
  439. package/dist/lib/plugins/api-keys/index.js +65 -31
  440. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  441. package/dist/lib/plugins/custom-pages/index.d.ts +6 -6
  442. package/dist/lib/plugins/custom-pages/index.js +18 -11
  443. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  444. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -2
  445. package/dist/lib/plugins/markdown/MdxPage.js +43 -10
  446. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  447. package/dist/lib/plugins/markdown/index.d.ts +14 -4
  448. package/dist/lib/plugins/markdown/index.js +9 -26
  449. package/dist/lib/plugins/markdown/index.js.map +1 -1
  450. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  451. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  452. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  453. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  454. package/dist/lib/plugins/openapi/ColorizedParam.js +32 -14
  455. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  456. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  457. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  458. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  459. package/dist/lib/plugins/openapi/OasProvider.js +30 -0
  460. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  461. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -4
  462. package/dist/lib/plugins/openapi/OperationList.js +117 -31
  463. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  464. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  465. package/dist/lib/plugins/openapi/OperationListItem.js +16 -8
  466. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  467. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  468. package/dist/lib/plugins/openapi/ParamInfos.js +47 -0
  469. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  470. package/dist/lib/plugins/openapi/ParameterList.d.ts +4 -3
  471. package/dist/lib/plugins/openapi/ParameterList.js +4 -3
  472. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  473. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  474. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  475. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  476. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +5 -4
  477. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +17 -4
  478. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  479. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +4 -5
  480. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  481. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  482. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  483. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  484. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  485. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  486. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  487. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  488. package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -3
  489. package/dist/lib/plugins/openapi/Sidecar.js +89 -118
  490. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  491. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  492. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  493. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +7 -0
  494. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  495. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  496. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  497. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  498. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  499. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  500. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  501. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  502. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  503. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  504. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  505. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  506. package/dist/lib/plugins/openapi/client/createServer.js +6 -4
  507. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  508. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  509. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  510. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  511. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  512. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  513. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  514. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  515. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  516. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  517. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  518. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  519. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  520. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  521. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  522. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  523. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  524. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  525. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  526. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  527. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  528. package/dist/lib/plugins/openapi/graphql/gql.js +5 -13
  529. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  530. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +143 -25
  531. package/dist/lib/plugins/openapi/graphql/graphql.js +240 -662
  532. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  533. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  534. package/dist/lib/plugins/openapi/index.js +107 -104
  535. package/dist/lib/plugins/openapi/index.js.map +1 -1
  536. package/dist/lib/plugins/openapi/interfaces.d.ts +58 -4
  537. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  538. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  539. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  540. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  541. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  542. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  543. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  544. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
  545. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  546. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  547. package/dist/lib/plugins/openapi/playground/Headers.js +108 -7
  548. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  549. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  550. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  551. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  552. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  553. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  554. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  555. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  556. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  557. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  558. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  559. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  560. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  561. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -7
  562. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  563. package/dist/lib/plugins/openapi/playground/Playground.d.ts +32 -2
  564. package/dist/lib/plugins/openapi/playground/Playground.js +170 -85
  565. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  566. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  567. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  568. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -4
  569. package/dist/lib/plugins/openapi/playground/QueryParams.js +43 -22
  570. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  571. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  572. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  573. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  574. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  575. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  576. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  577. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  578. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  579. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  580. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  581. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  582. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  583. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  584. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  585. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  586. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  587. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  588. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  589. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  590. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  591. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  592. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  593. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  594. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  595. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
  596. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +103 -0
  597. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  598. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
  599. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
  600. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  601. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  602. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  603. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  604. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  605. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  606. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  607. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  608. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  609. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  610. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  611. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  612. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  613. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  614. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +195 -0
  615. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  616. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  617. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  618. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  619. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  620. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +160 -0
  621. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  622. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  623. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  624. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  625. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  626. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  627. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  628. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  629. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  630. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  631. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
  632. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
  633. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
  634. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.d.ts +4 -0
  635. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
  636. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
  637. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +4 -0
  638. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
  639. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
  640. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  641. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  642. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  643. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +8 -0
  644. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +36 -0
  645. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  646. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -2
  647. package/dist/lib/plugins/openapi/schema/SchemaView.js +45 -51
  648. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  649. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +4 -0
  650. package/dist/lib/plugins/openapi/schema/UnionView.js +30 -0
  651. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  652. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  653. package/dist/lib/plugins/openapi/schema/union-helpers.js +48 -0
  654. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  655. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -7
  656. package/dist/lib/plugins/openapi/schema/utils.js +16 -10
  657. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  658. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  659. package/dist/lib/plugins/openapi/state.js +18 -0
  660. package/dist/lib/plugins/openapi/state.js.map +1 -0
  661. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  662. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  663. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  664. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  665. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +25 -0
  666. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  667. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +2 -3
  668. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +79 -39
  669. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  670. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  671. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  672. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  673. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  674. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  675. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  676. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  677. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  678. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  679. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  680. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  681. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  682. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  683. package/dist/lib/plugins/redirect/index.js +2 -2
  684. package/dist/lib/plugins/redirect/index.js.map +1 -1
  685. package/dist/lib/plugins/search-inkeep/index.d.ts +8 -6
  686. package/dist/lib/plugins/search-inkeep/index.js +49 -7
  687. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  688. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
  689. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  690. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  691. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  692. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  693. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  694. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  695. package/dist/lib/plugins/search-pagefind/ResultList.js +42 -0
  696. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  697. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  698. package/dist/lib/plugins/search-pagefind/get-results.js +41 -0
  699. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  700. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  701. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  702. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  703. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  704. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  705. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  706. package/dist/lib/shiki.d.ts +32 -0
  707. package/dist/lib/shiki.js +104 -0
  708. package/dist/lib/shiki.js.map +1 -0
  709. package/dist/lib/ui/Accordion.d.ts +7 -0
  710. package/dist/lib/ui/Accordion.js +14 -0
  711. package/dist/lib/ui/Accordion.js.map +1 -0
  712. package/dist/lib/ui/ActionButton.d.ts +4 -0
  713. package/dist/lib/ui/ActionButton.js +10 -0
  714. package/dist/lib/ui/ActionButton.js.map +1 -0
  715. package/dist/lib/ui/Alert.d.ts +9 -0
  716. package/dist/lib/ui/Alert.js +25 -0
  717. package/dist/lib/ui/Alert.js.map +1 -0
  718. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  719. package/dist/lib/ui/AlertDialog.js +27 -0
  720. package/dist/lib/ui/AlertDialog.js.map +1 -0
  721. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  722. package/dist/lib/ui/AspectRatio.js +4 -0
  723. package/dist/lib/ui/AspectRatio.js.map +1 -0
  724. package/dist/lib/ui/Badge.d.ts +9 -0
  725. package/dist/lib/ui/Badge.js +22 -0
  726. package/dist/lib/ui/Badge.js.map +1 -0
  727. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  728. package/dist/lib/ui/Breadcrumb.js +24 -0
  729. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  730. package/dist/lib/ui/Button.d.ts +4 -5
  731. package/dist/lib/ui/Button.js +9 -6
  732. package/dist/lib/ui/Button.js.map +1 -1
  733. package/dist/lib/ui/Callout.d.ts +2 -1
  734. package/dist/lib/ui/Callout.js +3 -2
  735. package/dist/lib/ui/Callout.js.map +1 -1
  736. package/dist/lib/ui/Card.js +1 -1
  737. package/dist/lib/ui/Card.js.map +1 -1
  738. package/dist/lib/ui/Carousel.d.ts +18 -0
  739. package/dist/lib/ui/Carousel.js +99 -0
  740. package/dist/lib/ui/Carousel.js.map +1 -0
  741. package/dist/lib/ui/Checkbox.d.ts +4 -0
  742. package/dist/lib/ui/Checkbox.js +9 -0
  743. package/dist/lib/ui/Checkbox.js.map +1 -0
  744. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  745. package/dist/lib/ui/CodeBlock.js +18 -0
  746. package/dist/lib/ui/CodeBlock.js.map +1 -0
  747. package/dist/lib/ui/Collapsible.d.ts +5 -0
  748. package/dist/lib/ui/Collapsible.js +6 -0
  749. package/dist/lib/ui/Collapsible.js.map +1 -0
  750. package/dist/lib/ui/Command.d.ts +94 -0
  751. package/dist/lib/ui/Command.js +31 -0
  752. package/dist/lib/ui/Command.js.map +1 -0
  753. package/dist/lib/ui/Dialog.d.ts +21 -0
  754. package/dist/lib/ui/Dialog.js +23 -0
  755. package/dist/lib/ui/Dialog.js.map +1 -0
  756. package/dist/lib/ui/DropdownMenu.js +4 -4
  757. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  758. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  759. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  760. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  761. package/dist/lib/ui/Form.d.ts +23 -0
  762. package/dist/lib/ui/Form.js +63 -0
  763. package/dist/lib/ui/Form.js.map +1 -0
  764. package/dist/lib/ui/HoverCard.d.ts +6 -0
  765. package/dist/lib/ui/HoverCard.js +10 -0
  766. package/dist/lib/ui/HoverCard.js.map +1 -0
  767. package/dist/lib/ui/Input.d.ts +1 -2
  768. package/dist/lib/ui/Input.js +1 -1
  769. package/dist/lib/ui/Input.js.map +1 -1
  770. package/dist/lib/ui/Label.d.ts +5 -0
  771. package/dist/lib/ui/Label.js +10 -0
  772. package/dist/lib/ui/Label.js.map +1 -0
  773. package/dist/lib/ui/Pagination.d.ts +28 -0
  774. package/dist/lib/ui/Pagination.js +24 -0
  775. package/dist/lib/ui/Pagination.js.map +1 -0
  776. package/dist/lib/ui/Popover.d.ts +6 -0
  777. package/dist/lib/ui/Popover.js +10 -0
  778. package/dist/lib/ui/Popover.js.map +1 -0
  779. package/dist/lib/ui/Progress.d.ts +4 -0
  780. package/dist/lib/ui/Progress.js +8 -0
  781. package/dist/lib/ui/Progress.js.map +1 -0
  782. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  783. package/dist/lib/ui/RadioGroup.js +15 -0
  784. package/dist/lib/ui/RadioGroup.js.map +1 -0
  785. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  786. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  787. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  788. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  789. package/dist/lib/ui/ScrollArea.js +12 -0
  790. package/dist/lib/ui/ScrollArea.js.map +1 -0
  791. package/dist/lib/ui/Secret.d.ts +12 -0
  792. package/dist/lib/ui/Secret.js +23 -0
  793. package/dist/lib/ui/Secret.js.map +1 -0
  794. package/dist/lib/ui/Select.js +27 -0
  795. package/dist/lib/ui/Select.js.map +1 -0
  796. package/dist/lib/ui/Skeleton.d.ts +2 -0
  797. package/dist/lib/ui/Skeleton.js +7 -0
  798. package/dist/lib/ui/Skeleton.js.map +1 -0
  799. package/dist/lib/ui/Slider.d.ts +4 -0
  800. package/dist/lib/ui/Slider.js +8 -0
  801. package/dist/lib/ui/Slider.js.map +1 -0
  802. package/dist/lib/ui/Stepper.d.ts +3 -0
  803. package/dist/lib/ui/Stepper.js +7 -0
  804. package/dist/lib/ui/Stepper.js.map +1 -0
  805. package/dist/lib/ui/Switch.d.ts +4 -0
  806. package/dist/lib/ui/Switch.js +8 -0
  807. package/dist/lib/ui/Switch.js.map +1 -0
  808. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
  809. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  810. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  811. package/dist/lib/ui/Tabs.js +2 -2
  812. package/dist/lib/ui/Tabs.js.map +1 -1
  813. package/dist/lib/ui/Textarea.d.ts +4 -0
  814. package/dist/lib/ui/Textarea.js +9 -0
  815. package/dist/lib/ui/Textarea.js.map +1 -0
  816. package/dist/lib/ui/Toggle.d.ts +12 -0
  817. package/dist/lib/ui/Toggle.js +26 -0
  818. package/dist/lib/ui/Toggle.js.map +1 -0
  819. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  820. package/dist/lib/ui/ToggleGroup.js +21 -0
  821. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  822. package/dist/lib/ui/Tooltip.d.ts +8 -0
  823. package/dist/lib/ui/Tooltip.js +12 -0
  824. package/dist/lib/ui/Tooltip.js.map +1 -0
  825. package/dist/lib/ui/Value.d.ts +5 -0
  826. package/dist/lib/ui/Value.js +13 -0
  827. package/dist/lib/ui/Value.js.map +1 -0
  828. package/dist/lib/ui/util.d.ts +2 -0
  829. package/dist/lib/ui/util.js +3 -0
  830. package/dist/lib/ui/util.js.map +1 -0
  831. package/dist/lib/util/MdxComponents.d.ts +38 -21
  832. package/dist/lib/util/MdxComponents.js +23 -17
  833. package/dist/lib/util/MdxComponents.js.map +1 -1
  834. package/dist/lib/util/cn.js.map +1 -1
  835. package/dist/lib/util/createVariantComponent.d.ts +3 -3
  836. package/dist/lib/util/createVariantComponent.js.map +1 -1
  837. package/dist/lib/util/detectOS.d.ts +1 -0
  838. package/dist/lib/util/detectOS.js +11 -0
  839. package/dist/lib/util/detectOS.js.map +1 -0
  840. package/dist/lib/util/ensureArray.d.ts +1 -0
  841. package/dist/lib/util/ensureArray.js +2 -0
  842. package/dist/lib/util/ensureArray.js.map +1 -0
  843. package/dist/lib/util/groupBy.js +1 -0
  844. package/dist/lib/util/groupBy.js.map +1 -1
  845. package/dist/lib/util/humanFileSize.d.ts +6 -0
  846. package/dist/lib/util/humanFileSize.js +14 -0
  847. package/dist/lib/util/humanFileSize.js.map +1 -0
  848. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  849. package/dist/lib/util/humanFileSize.test.js +22 -0
  850. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  851. package/dist/lib/util/invariant.d.ts +10 -0
  852. package/dist/lib/util/invariant.js +10 -4
  853. package/dist/lib/util/invariant.js.map +1 -1
  854. package/dist/lib/util/joinPath.d.ts +3 -0
  855. package/dist/lib/util/joinPath.js +3 -0
  856. package/dist/lib/util/joinPath.js.map +1 -1
  857. package/dist/lib/util/joinUrl.d.ts +1 -0
  858. package/dist/lib/util/joinUrl.js +40 -0
  859. package/dist/lib/util/joinUrl.js.map +1 -0
  860. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  861. package/dist/lib/util/joinUrl.test.js +43 -0
  862. package/dist/lib/util/joinUrl.test.js.map +1 -0
  863. package/dist/lib/util/os.d.ts +2 -0
  864. package/dist/lib/util/os.js +21 -0
  865. package/dist/lib/util/os.js.map +1 -0
  866. package/dist/lib/util/pastellize.js +2 -2
  867. package/dist/lib/util/pastellize.js.map +1 -1
  868. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  869. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  870. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  871. package/dist/lib/util/traverse.d.ts +3 -0
  872. package/dist/lib/util/traverse.js +23 -0
  873. package/dist/lib/util/traverse.js.map +1 -0
  874. package/dist/lib/util/types.d.ts +7 -0
  875. package/dist/lib/util/types.js +2 -0
  876. package/dist/lib/util/types.js.map +1 -0
  877. package/dist/lib/util/url.d.ts +4 -0
  878. package/dist/lib/util/url.js +13 -0
  879. package/dist/lib/util/url.js.map +1 -0
  880. package/dist/lib/util/url.test.d.ts +1 -0
  881. package/dist/lib/util/url.test.js +26 -0
  882. package/dist/lib/util/url.test.js.map +1 -0
  883. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  884. package/dist/lib/util/useCopyToClipboard.js +11 -0
  885. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  886. package/dist/lib/util/useExposedProps.d.ts +9 -0
  887. package/dist/lib/util/useExposedProps.js +9 -0
  888. package/dist/lib/util/useExposedProps.js.map +1 -0
  889. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  890. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  891. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  892. package/dist/lib/util/useLatest.d.ts +1 -0
  893. package/dist/lib/util/useLatest.js +15 -0
  894. package/dist/lib/util/useLatest.js.map +1 -0
  895. package/dist/lib/util/useOnScreen.d.ts +5 -0
  896. package/dist/lib/util/useOnScreen.js +19 -0
  897. package/dist/lib/util/useOnScreen.js.map +1 -0
  898. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  899. package/dist/lib/util/useScrollToAnchor.js +45 -38
  900. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  901. package/dist/lib/util/useScrollToTop.js +7 -5
  902. package/dist/lib/util/useScrollToTop.js.map +1 -1
  903. package/dist/ts.js +3 -3
  904. package/dist/ts.js.map +1 -1
  905. package/dist/vite/api/SchemaManager.d.ts +36 -0
  906. package/dist/vite/api/SchemaManager.js +141 -0
  907. package/dist/vite/api/SchemaManager.js.map +1 -0
  908. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  909. package/dist/vite/api/SchemaManager.test.js +106 -0
  910. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  911. package/dist/vite/api/schema-codegen.d.ts +12 -0
  912. package/dist/vite/api/schema-codegen.js +115 -0
  913. package/dist/vite/api/schema-codegen.js.map +1 -0
  914. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  915. package/dist/vite/api/schema-codegen.test.js +395 -0
  916. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  917. package/dist/vite/build.js +59 -15
  918. package/dist/vite/build.js.map +1 -1
  919. package/dist/vite/config.d.ts +2 -16
  920. package/dist/vite/config.js +121 -148
  921. package/dist/vite/config.js.map +1 -1
  922. package/dist/vite/config.test.js +12 -6
  923. package/dist/vite/config.test.js.map +1 -1
  924. package/dist/vite/create-pagefind-index.d.ts +4 -0
  925. package/dist/vite/create-pagefind-index.js +12 -0
  926. package/dist/vite/create-pagefind-index.js.map +1 -0
  927. package/dist/vite/css/collect.d.ts +2 -0
  928. package/dist/vite/css/collect.js +27 -0
  929. package/dist/vite/css/collect.js.map +1 -0
  930. package/dist/vite/css/plugin.d.ts +4 -0
  931. package/dist/vite/css/plugin.js +91 -0
  932. package/dist/vite/css/plugin.js.map +1 -0
  933. package/dist/vite/dev-server.d.ts +5 -3
  934. package/dist/vite/dev-server.js +83 -24
  935. package/dist/vite/dev-server.js.map +1 -1
  936. package/dist/vite/error-handler.d.ts +3 -3
  937. package/dist/vite/error-handler.js +1 -1
  938. package/dist/vite/error-handler.js.map +1 -1
  939. package/dist/vite/html.d.ts +7 -3
  940. package/dist/vite/html.js +15 -11
  941. package/dist/vite/html.js.map +1 -1
  942. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  943. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  944. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  945. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  946. package/dist/vite/mdx/remark-last-modified.js +28 -0
  947. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  948. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  949. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  950. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  951. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  952. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  953. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  954. package/dist/vite/mdx/remark-static-generation.d.ts +3 -0
  955. package/dist/vite/mdx/remark-static-generation.js +125 -0
  956. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  957. package/dist/vite/mdx/utils.d.ts +2 -0
  958. package/dist/vite/mdx/utils.js +31 -0
  959. package/dist/vite/mdx/utils.js.map +1 -0
  960. package/dist/vite/output.d.ts +113 -0
  961. package/dist/vite/output.js +60 -0
  962. package/dist/vite/output.js.map +1 -0
  963. package/dist/vite/plugin-api-keys.d.ts +2 -3
  964. package/dist/vite/plugin-api-keys.js +14 -8
  965. package/dist/vite/plugin-api-keys.js.map +1 -1
  966. package/dist/vite/plugin-api.d.ts +1 -2
  967. package/dist/vite/plugin-api.js +147 -33
  968. package/dist/vite/plugin-api.js.map +1 -1
  969. package/dist/vite/plugin-auth.d.ts +2 -3
  970. package/dist/vite/plugin-auth.js +11 -7
  971. package/dist/vite/plugin-auth.js.map +1 -1
  972. package/dist/vite/plugin-component.d.ts +2 -3
  973. package/dist/vite/plugin-component.js +25 -14
  974. package/dist/vite/plugin-component.js.map +1 -1
  975. package/dist/vite/plugin-config-reload.d.ts +3 -4
  976. package/dist/vite/plugin-config-reload.js +31 -25
  977. package/dist/vite/plugin-config-reload.js.map +1 -1
  978. package/dist/vite/plugin-config.d.ts +2 -4
  979. package/dist/vite/plugin-config.js +28 -3
  980. package/dist/vite/plugin-config.js.map +1 -1
  981. package/dist/vite/plugin-custom-pages.d.ts +2 -3
  982. package/dist/vite/plugin-custom-pages.js +8 -7
  983. package/dist/vite/plugin-custom-pages.js.map +1 -1
  984. package/dist/vite/plugin-docs.d.ts +2 -3
  985. package/dist/vite/plugin-docs.js +73 -37
  986. package/dist/vite/plugin-docs.js.map +1 -1
  987. package/dist/vite/plugin-frontmatter.js +34 -25
  988. package/dist/vite/plugin-frontmatter.js.map +1 -1
  989. package/dist/vite/plugin-mdx.d.ts +2 -9
  990. package/dist/vite/plugin-mdx.js +67 -21
  991. package/dist/vite/plugin-mdx.js.map +1 -1
  992. package/dist/vite/plugin-metadata.d.ts +1 -1
  993. package/dist/vite/plugin-navigation.d.ts +4 -0
  994. package/dist/vite/plugin-navigation.js +63 -0
  995. package/dist/vite/plugin-navigation.js.map +1 -0
  996. package/dist/vite/plugin-redirect.d.ts +2 -3
  997. package/dist/vite/plugin-redirect.js +7 -6
  998. package/dist/vite/plugin-redirect.js.map +1 -1
  999. package/dist/vite/plugin-search.d.ts +2 -0
  1000. package/dist/vite/plugin-search.js +31 -0
  1001. package/dist/vite/plugin-search.js.map +1 -0
  1002. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  1003. package/dist/vite/plugin-shiki-register.js +39 -0
  1004. package/dist/vite/plugin-shiki-register.js.map +1 -0
  1005. package/dist/vite/plugin-theme.d.ts +8 -0
  1006. package/dist/vite/plugin-theme.js +274 -0
  1007. package/dist/vite/plugin-theme.js.map +1 -0
  1008. package/dist/vite/plugin-theme.test.d.ts +1 -0
  1009. package/dist/vite/plugin-theme.test.js +314 -0
  1010. package/dist/vite/plugin-theme.test.js.map +1 -0
  1011. package/dist/vite/plugin.d.ts +2 -4
  1012. package/dist/vite/plugin.js +25 -20
  1013. package/dist/vite/plugin.js.map +1 -1
  1014. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  1015. package/dist/vite/prerender/FileWritingResponse.js +53 -0
  1016. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  1017. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  1018. package/dist/vite/prerender/InMemoryResponse.js +34 -0
  1019. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  1020. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  1021. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  1022. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  1023. package/dist/vite/prerender/prerender.d.ts +15 -0
  1024. package/dist/vite/prerender/prerender.js +109 -0
  1025. package/dist/vite/prerender/prerender.js.map +1 -0
  1026. package/dist/vite/prerender/worker.d.ts +13 -0
  1027. package/dist/vite/prerender/worker.js +63 -0
  1028. package/dist/vite/prerender/worker.js.map +1 -0
  1029. package/dist/vite/reporter.d.ts +3 -0
  1030. package/dist/vite/reporter.js +33 -0
  1031. package/dist/vite/reporter.js.map +1 -0
  1032. package/dist/vite/shadcn-registry.d.ts +20 -0
  1033. package/dist/vite/shadcn-registry.js +29 -0
  1034. package/dist/vite/shadcn-registry.js.map +1 -0
  1035. package/dist/vite/sitemap.d.ts +1 -1
  1036. package/dist/vite/sitemap.js +16 -14
  1037. package/dist/vite/sitemap.js.map +1 -1
  1038. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  1039. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  1040. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  1041. package/dist/zuplo/policy-types.d.ts +33 -0
  1042. package/dist/zuplo/policy-types.js +7 -0
  1043. package/dist/zuplo/policy-types.js.map +1 -0
  1044. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  1045. package/dist/zuplo/with-zuplo-processors.js +26 -0
  1046. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  1047. package/dist/zuplo/with-zuplo.d.ts +6 -0
  1048. package/dist/zuplo/with-zuplo.js +10 -0
  1049. package/dist/zuplo/with-zuplo.js.map +1 -0
  1050. package/lib/Button-B3o-2Xdf.js +51 -0
  1051. package/lib/Button-B3o-2Xdf.js.map +1 -0
  1052. package/lib/Card-CMDQUPM4.js +61 -0
  1053. package/lib/Card-CMDQUPM4.js.map +1 -0
  1054. package/lib/CategoryHeading-DCpZu3yG.js +17 -0
  1055. package/lib/CategoryHeading-DCpZu3yG.js.map +1 -0
  1056. package/lib/ClientOnly-E7hGysn1.js +11 -0
  1057. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  1058. package/lib/CodeBlock-q0m9kVNg.js +178 -0
  1059. package/lib/CodeBlock-q0m9kVNg.js.map +1 -0
  1060. package/lib/Command-CUSlH0gJ.js +134 -0
  1061. package/lib/Command-CUSlH0gJ.js.map +1 -0
  1062. package/lib/Dialog-BmgXWOaz.js +114 -0
  1063. package/lib/Dialog-BmgXWOaz.js.map +1 -0
  1064. package/lib/Drawer-DJ05s2pH.js +1133 -0
  1065. package/lib/Drawer-DJ05s2pH.js.map +1 -0
  1066. package/lib/ErrorAlert-B5bWlc6g.js +15524 -0
  1067. package/lib/ErrorAlert-B5bWlc6g.js.map +1 -0
  1068. package/lib/MdxPage-DfV9gO5W.js +111 -0
  1069. package/lib/MdxPage-DfV9gO5W.js.map +1 -0
  1070. package/lib/OAuthErrorPage--ME5Z5lv.js +150 -0
  1071. package/lib/OAuthErrorPage--ME5Z5lv.js.map +1 -0
  1072. package/lib/OasProvider-BzRWdNM5.js +36 -0
  1073. package/lib/OasProvider-BzRWdNM5.js.map +1 -0
  1074. package/lib/OperationList-D8ln4zHk.js +5166 -0
  1075. package/lib/OperationList-D8ln4zHk.js.map +1 -0
  1076. package/lib/Pagination-BdZkD63H.js +37 -0
  1077. package/lib/Pagination-BdZkD63H.js.map +1 -0
  1078. package/lib/RouteGuard-BIksrt_C.js +56 -0
  1079. package/lib/RouteGuard-BIksrt_C.js.map +1 -0
  1080. package/lib/RouterError-ByzmULgw.js +41 -0
  1081. package/lib/RouterError-ByzmULgw.js.map +1 -0
  1082. package/lib/SchemaList-DtQZ98Lm.js +150 -0
  1083. package/lib/SchemaList-DtQZ98Lm.js.map +1 -0
  1084. package/lib/SchemaView-OqVwN4ss.js +429 -0
  1085. package/lib/SchemaView-OqVwN4ss.js.map +1 -0
  1086. package/lib/Select-DWh0wSay.js +273 -0
  1087. package/lib/Select-DWh0wSay.js.map +1 -0
  1088. package/lib/SignUp-BT5JGYmO.js +56 -0
  1089. package/lib/SignUp-BT5JGYmO.js.map +1 -0
  1090. package/lib/Spinner-mNLZ6awP.js +7 -0
  1091. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  1092. package/lib/SyntaxHighlight-HG0uqk4-.js +10307 -0
  1093. package/lib/SyntaxHighlight-HG0uqk4-.js.map +1 -0
  1094. package/lib/Toc-DyGMFrpl.js +92 -0
  1095. package/lib/Toc-DyGMFrpl.js.map +1 -0
  1096. package/lib/ZudokuContext-BR-lnR7O.js +1285 -0
  1097. package/lib/ZudokuContext-BR-lnR7O.js.map +1 -0
  1098. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
  1099. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
  1100. package/lib/circular-CMUzw2Qb.js +14934 -0
  1101. package/lib/circular-CMUzw2Qb.js.map +1 -0
  1102. package/lib/clsx-OuTLNxxd.js +17 -0
  1103. package/lib/clsx-OuTLNxxd.js.map +1 -0
  1104. package/lib/cn-dYga0KKN.js +2731 -0
  1105. package/lib/cn-dYga0KKN.js.map +1 -0
  1106. package/lib/createServer-CcYGmc40.js +12490 -0
  1107. package/lib/createServer-CcYGmc40.js.map +1 -0
  1108. package/lib/csharp-CabCCCDp.js +53 -0
  1109. package/lib/csharp-CabCCCDp.js.map +1 -0
  1110. package/lib/css-CF7cXhs2.js +54 -0
  1111. package/lib/css-CF7cXhs2.js.map +1 -0
  1112. package/lib/errors-9AR8czip.js +45 -0
  1113. package/lib/errors-9AR8czip.js.map +1 -0
  1114. package/lib/go-C4nlDCdp.js +25 -0
  1115. package/lib/go-C4nlDCdp.js.map +1 -0
  1116. package/lib/graphql-CPc-jI7m.js +25 -0
  1117. package/lib/graphql-CPc-jI7m.js.map +1 -0
  1118. package/lib/hook-B4Q30zMI.js +247 -0
  1119. package/lib/hook-B4Q30zMI.js.map +1 -0
  1120. package/lib/html-_lthdH3f.js +33 -0
  1121. package/lib/html-_lthdH3f.js.map +1 -0
  1122. package/lib/index-BtvWYC68.js +2094 -0
  1123. package/lib/index-BtvWYC68.js.map +1 -0
  1124. package/lib/index-CaqZFmdz.js +1058 -0
  1125. package/lib/index-CaqZFmdz.js.map +1 -0
  1126. package/lib/index-CmREBlkc.js +3395 -0
  1127. package/lib/index-CmREBlkc.js.map +1 -0
  1128. package/lib/index-CrcNWbel.js +316 -0
  1129. package/lib/index-CrcNWbel.js.map +1 -0
  1130. package/lib/index-DI5SPFK9.js +36 -0
  1131. package/lib/index-DI5SPFK9.js.map +1 -0
  1132. package/lib/index-DmNq2fbN.js +4827 -0
  1133. package/lib/index-DmNq2fbN.js.map +1 -0
  1134. package/lib/index.esm-BnYHxCYC.js +683 -0
  1135. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  1136. package/lib/index.esm-CdzlRw50.js +1254 -0
  1137. package/lib/index.esm-CdzlRw50.js.map +1 -0
  1138. package/lib/invariant-Bm-FVUQE.js +44 -0
  1139. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  1140. package/lib/java-l3-f6PoB.js +53 -0
  1141. package/lib/java-l3-f6PoB.js.map +1 -0
  1142. package/lib/javascript-C2R9WsTw.js +10 -0
  1143. package/lib/javascript-C2R9WsTw.js.map +1 -0
  1144. package/lib/json-CJ6aS-pT.js +25 -0
  1145. package/lib/json-CJ6aS-pT.js.map +1 -0
  1146. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  1147. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  1148. package/lib/kotlin-DCMKi-U7.js +37 -0
  1149. package/lib/kotlin-DCMKi-U7.js.map +1 -0
  1150. package/lib/markdown-C4aFmlmR.js +25 -0
  1151. package/lib/markdown-C4aFmlmR.js.map +1 -0
  1152. package/lib/mdx-pWVkS1_U.js +32 -0
  1153. package/lib/mdx-pWVkS1_U.js.map +1 -0
  1154. package/lib/mutation-CiMUdKRU.js +196 -0
  1155. package/lib/mutation-CiMUdKRU.js.map +1 -0
  1156. package/lib/objectivec-J4XevKta.js +32 -0
  1157. package/lib/objectivec-J4XevKta.js.map +1 -0
  1158. package/lib/php-CThYsN0i.js +25 -0
  1159. package/lib/php-CThYsN0i.js.map +1 -0
  1160. package/lib/processors/removeExtensions.js +11 -0
  1161. package/lib/processors/removeExtensions.js.map +1 -0
  1162. package/lib/processors/removeParameters.js +47 -0
  1163. package/lib/processors/removeParameters.js.map +1 -0
  1164. package/lib/processors/removePaths.js +28 -0
  1165. package/lib/processors/removePaths.js.map +1 -0
  1166. package/lib/processors/traverse.js +17 -0
  1167. package/lib/processors/traverse.js.map +1 -0
  1168. package/lib/python-DRrVWlBo.js +32 -0
  1169. package/lib/python-DRrVWlBo.js.map +1 -0
  1170. package/lib/react-B7gnFkUi.js +24 -0
  1171. package/lib/react-B7gnFkUi.js.map +1 -0
  1172. package/lib/ruby-Cl8yMwfe.js +25 -0
  1173. package/lib/ruby-Cl8yMwfe.js.map +1 -0
  1174. package/lib/rust-BcsOJwqO.js +25 -0
  1175. package/lib/rust-BcsOJwqO.js.map +1 -0
  1176. package/lib/shell-BNUr7LQH.js +25 -0
  1177. package/lib/shell-BNUr7LQH.js.map +1 -0
  1178. package/lib/swift-DoJpb4mH.js +25 -0
  1179. package/lib/swift-DoJpb4mH.js.map +1 -0
  1180. package/lib/toml-DrOGwOUK.js +32 -0
  1181. package/lib/toml-DrOGwOUK.js.map +1 -0
  1182. package/lib/typescript-D9w2ZJcO.js +32 -0
  1183. package/lib/typescript-D9w2ZJcO.js.map +1 -0
  1184. package/lib/ui/Accordion.js +47 -0
  1185. package/lib/ui/Accordion.js.map +1 -0
  1186. package/lib/ui/ActionButton.js +25 -0
  1187. package/lib/ui/ActionButton.js.map +1 -0
  1188. package/lib/ui/Alert.js +67 -0
  1189. package/lib/ui/Alert.js.map +1 -0
  1190. package/lib/ui/AlertDialog.js +114 -0
  1191. package/lib/ui/AlertDialog.js.map +1 -0
  1192. package/lib/ui/AspectRatio.js +6 -0
  1193. package/lib/ui/AspectRatio.js.map +1 -0
  1194. package/lib/ui/Badge.js +28 -0
  1195. package/lib/ui/Badge.js.map +1 -0
  1196. package/lib/ui/Breadcrumb.js +95 -0
  1197. package/lib/ui/Breadcrumb.js.map +1 -0
  1198. package/lib/ui/Button.js +52 -0
  1199. package/lib/ui/Button.js.map +1 -0
  1200. package/lib/ui/Callout.js +97 -0
  1201. package/lib/ui/Callout.js.map +1 -0
  1202. package/lib/ui/Card.js +62 -0
  1203. package/lib/ui/Card.js.map +1 -0
  1204. package/lib/ui/Carousel.js +1416 -0
  1205. package/lib/ui/Carousel.js.map +1 -0
  1206. package/lib/ui/Checkbox.js +29 -0
  1207. package/lib/ui/Checkbox.js.map +1 -0
  1208. package/lib/ui/CodeBlock.js +10 -0
  1209. package/lib/ui/CodeBlock.js.map +1 -0
  1210. package/lib/ui/Collapsible.js +8 -0
  1211. package/lib/ui/Collapsible.js.map +1 -0
  1212. package/lib/ui/Command.js +150 -0
  1213. package/lib/ui/Command.js.map +1 -0
  1214. package/lib/ui/Dialog.js +116 -0
  1215. package/lib/ui/Dialog.js.map +1 -0
  1216. package/lib/ui/Drawer.js +17 -0
  1217. package/lib/ui/Drawer.js.map +1 -0
  1218. package/lib/ui/DropdownMenu.js +145 -0
  1219. package/lib/ui/DropdownMenu.js.map +1 -0
  1220. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  1221. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  1222. package/lib/ui/Form.js +95 -0
  1223. package/lib/ui/Form.js.map +1 -0
  1224. package/lib/ui/HoverCard.js +24 -0
  1225. package/lib/ui/HoverCard.js.map +1 -0
  1226. package/lib/ui/Input.js +22 -0
  1227. package/lib/ui/Input.js.map +1 -0
  1228. package/lib/ui/Label.js +20 -0
  1229. package/lib/ui/Label.js.map +1 -0
  1230. package/lib/ui/Pagination.js +105 -0
  1231. package/lib/ui/Pagination.js.map +1 -0
  1232. package/lib/ui/Popover.js +24 -0
  1233. package/lib/ui/Popover.js.map +1 -0
  1234. package/lib/ui/Progress.js +27 -0
  1235. package/lib/ui/Progress.js.map +1 -0
  1236. package/lib/ui/RadioGroup.js +32 -0
  1237. package/lib/ui/RadioGroup.js.map +1 -0
  1238. package/lib/ui/ReactComponentDoc.js +28 -0
  1239. package/lib/ui/ReactComponentDoc.js.map +1 -0
  1240. package/lib/ui/ScrollArea.js +39 -0
  1241. package/lib/ui/ScrollArea.js.map +1 -0
  1242. package/lib/ui/Secret.js +96 -0
  1243. package/lib/ui/Secret.js.map +1 -0
  1244. package/lib/ui/Select.js +122 -0
  1245. package/lib/ui/Select.js.map +1 -0
  1246. package/lib/ui/Skeleton.js +18 -0
  1247. package/lib/ui/Skeleton.js.map +1 -0
  1248. package/lib/ui/Slider.js +24 -0
  1249. package/lib/ui/Slider.js.map +1 -0
  1250. package/lib/ui/Stepper.js +6 -0
  1251. package/lib/ui/Stepper.js.map +1 -0
  1252. package/lib/ui/Switch.js +28 -0
  1253. package/lib/ui/Switch.js.map +1 -0
  1254. package/lib/ui/SyntaxHighlight.js +11 -0
  1255. package/lib/ui/SyntaxHighlight.js.map +1 -0
  1256. package/lib/ui/Tabs.js +47 -0
  1257. package/lib/ui/Tabs.js.map +1 -0
  1258. package/lib/ui/Textarea.js +21 -0
  1259. package/lib/ui/Textarea.js.map +1 -0
  1260. package/lib/ui/Toggle.js +38 -0
  1261. package/lib/ui/Toggle.js.map +1 -0
  1262. package/lib/ui/ToggleGroup.js +42 -0
  1263. package/lib/ui/ToggleGroup.js.map +1 -0
  1264. package/lib/ui/Tooltip.js +31 -0
  1265. package/lib/ui/Tooltip.js.map +1 -0
  1266. package/lib/ui/Value.js +39 -0
  1267. package/lib/ui/Value.js.map +1 -0
  1268. package/lib/ui/util.js +6 -0
  1269. package/lib/ui/util.js.map +1 -0
  1270. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1271. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1272. package/lib/useExposedProps-BH9aq4MD.js +113 -0
  1273. package/lib/useExposedProps-BH9aq4MD.js.map +1 -0
  1274. package/lib/useLatest-hmRS46UF.js +11 -0
  1275. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1276. package/lib/xml-D7S4OK52.js +25 -0
  1277. package/lib/xml-D7S4OK52.js.map +1 -0
  1278. package/lib/yaml-BIWMCqHB.js +32 -0
  1279. package/lib/yaml-BIWMCqHB.js.map +1 -0
  1280. package/lib/zudoku.__internal.js +2981 -0
  1281. package/lib/zudoku.__internal.js.map +1 -0
  1282. package/lib/zudoku.auth-auth0.js +32 -30
  1283. package/lib/zudoku.auth-auth0.js.map +1 -1
  1284. package/lib/zudoku.auth-azureb2c.js +137 -0
  1285. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1286. package/lib/zudoku.auth-clerk.js +111 -60
  1287. package/lib/zudoku.auth-clerk.js.map +1 -1
  1288. package/lib/zudoku.auth-openid.js +604 -633
  1289. package/lib/zudoku.auth-openid.js.map +1 -1
  1290. package/lib/zudoku.auth-supabase.js +98 -0
  1291. package/lib/zudoku.auth-supabase.js.map +1 -0
  1292. package/lib/zudoku.components.js +27 -3443
  1293. package/lib/zudoku.components.js.map +1 -1
  1294. package/lib/zudoku.hooks.js +27 -0
  1295. package/lib/zudoku.hooks.js.map +1 -0
  1296. package/lib/zudoku.icons.js +10 -0
  1297. package/lib/zudoku.icons.js.map +1 -1
  1298. package/lib/zudoku.plugin-api-catalog.js +125 -0
  1299. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1300. package/lib/zudoku.plugin-api-keys.js +739 -200
  1301. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1302. package/lib/zudoku.plugin-custom-pages.js +15 -9
  1303. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1304. package/lib/zudoku.plugin-markdown.js +20 -93
  1305. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1306. package/lib/zudoku.plugin-openapi.js +9 -11
  1307. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1308. package/lib/zudoku.plugin-redirect.js +4 -4
  1309. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1310. package/lib/zudoku.plugin-search-inkeep.js +61 -40
  1311. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1312. package/lib/zudoku.plugin-search-pagefind.js +325 -0
  1313. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1314. package/lib/zudoku.plugins.js +15 -0
  1315. package/lib/zudoku.plugins.js.map +1 -0
  1316. package/lib/zudoku.router.js +123 -0
  1317. package/lib/zudoku.router.js.map +1 -0
  1318. package/package.json +192 -90
  1319. package/src/app/ZuploBuildConfig.ts +33 -0
  1320. package/src/app/defaultTheme.css +73 -0
  1321. package/src/app/demo-cdn.html +31 -31
  1322. package/src/app/demo.html +1 -1
  1323. package/src/app/demo.tsx +26 -12
  1324. package/src/app/entry.client.tsx +71 -6
  1325. package/src/app/entry.server.tsx +84 -69
  1326. package/src/app/env.ts +43 -0
  1327. package/src/app/font.geist.css +73 -0
  1328. package/src/app/main.css +168 -131
  1329. package/src/app/main.tsx +89 -57
  1330. package/src/app/sentry.ts +24 -0
  1331. package/src/app/standalone.tsx +15 -13
  1332. package/src/lib/MissingIcon.tsx +22 -0
  1333. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1334. package/src/lib/assets/language-icons/css.tsx +36 -0
  1335. package/src/lib/assets/language-icons/go.tsx +19 -0
  1336. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1337. package/src/lib/assets/language-icons/html.tsx +24 -0
  1338. package/src/lib/assets/language-icons/java.tsx +35 -0
  1339. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1340. package/src/lib/assets/language-icons/json.tsx +19 -0
  1341. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1342. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1343. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1344. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1345. package/src/lib/assets/language-icons/php.tsx +19 -0
  1346. package/src/lib/assets/language-icons/python.tsx +23 -0
  1347. package/src/lib/assets/language-icons/react.tsx +21 -0
  1348. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1349. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1350. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1351. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1352. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1353. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1354. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1355. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1356. package/src/lib/auth/issuer.test.ts +121 -0
  1357. package/src/lib/auth/issuer.ts +41 -0
  1358. package/src/lib/authentication/AuthenticationPlugin.tsx +6 -3
  1359. package/src/lib/authentication/authentication.ts +9 -10
  1360. package/src/lib/authentication/components/CallbackHandler.tsx +36 -50
  1361. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1362. package/src/lib/authentication/components/SignIn.tsx +28 -2
  1363. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1364. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1365. package/src/lib/authentication/errors.ts +27 -13
  1366. package/src/lib/authentication/hook.ts +15 -4
  1367. package/src/lib/authentication/providers/auth0.tsx +29 -19
  1368. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1369. package/src/lib/authentication/providers/clerk.tsx +131 -54
  1370. package/src/lib/authentication/providers/openid.tsx +169 -88
  1371. package/src/lib/authentication/providers/supabase.tsx +151 -0
  1372. package/src/lib/authentication/state.ts +86 -25
  1373. package/src/lib/authentication/use-broadcast/LICENSE.md +18 -0
  1374. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1375. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1376. package/src/lib/components/AnchorLink.tsx +13 -8
  1377. package/src/lib/components/Autocomplete.tsx +114 -0
  1378. package/src/lib/components/Banner.tsx +3 -3
  1379. package/src/lib/components/Bootstrap.tsx +44 -16
  1380. package/src/lib/components/BuildCheck.tsx +86 -0
  1381. package/src/lib/components/CategoryHeading.tsx +4 -1
  1382. package/src/lib/components/ClientOnly.tsx +6 -3
  1383. package/src/lib/components/DeveloperHint.tsx +6 -1
  1384. package/src/lib/components/ErrorPage.tsx +3 -3
  1385. package/src/lib/components/Footer.tsx +136 -0
  1386. package/src/lib/components/Framed.tsx +51 -0
  1387. package/src/lib/components/Header.tsx +122 -76
  1388. package/src/lib/components/Heading.tsx +27 -20
  1389. package/src/lib/components/InlineCode.tsx +13 -16
  1390. package/src/lib/components/LanguageIcon.tsx +136 -0
  1391. package/src/lib/components/Layout.tsx +25 -68
  1392. package/src/lib/components/Main.tsx +51 -0
  1393. package/src/lib/components/Markdown.tsx +45 -30
  1394. package/src/lib/components/Meta.tsx +45 -0
  1395. package/src/lib/components/MobileTopNavigation.tsx +97 -29
  1396. package/src/lib/components/NotFoundPage.tsx +7 -6
  1397. package/src/lib/components/PageProgress.tsx +28 -0
  1398. package/src/lib/components/Pagination.tsx +45 -0
  1399. package/src/lib/components/PathRenderer.tsx +61 -0
  1400. package/src/lib/components/Search.tsx +20 -9
  1401. package/src/lib/components/Slot.test.tsx +465 -0
  1402. package/src/lib/components/Slot.tsx +64 -0
  1403. package/src/lib/components/StatusPage.tsx +96 -0
  1404. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1405. package/src/lib/components/TopNavigation.tsx +92 -49
  1406. package/src/lib/components/Typography.tsx +14 -0
  1407. package/src/lib/components/Zudoku.tsx +119 -0
  1408. package/src/lib/components/cache.ts +23 -0
  1409. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1410. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1411. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1412. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1413. package/src/lib/components/context/ViewportAnchorContext.tsx +35 -37
  1414. package/src/lib/components/context/ZudokuContext.ts +79 -38
  1415. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1416. package/src/lib/components/index.ts +34 -17
  1417. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1418. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  1419. package/src/lib/components/navigation/NavigationCategory.tsx +153 -0
  1420. package/src/lib/components/navigation/NavigationItem.tsx +161 -0
  1421. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  1422. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1423. package/src/lib/components/navigation/Toc.tsx +126 -0
  1424. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1425. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1426. package/src/lib/components/navigation/utils.ts +83 -43
  1427. package/src/lib/core/RouteGuard.tsx +96 -0
  1428. package/src/lib/core/ZudokuContext.ts +246 -0
  1429. package/src/lib/core/__internal.tsx +30 -0
  1430. package/src/lib/core/plugins.ts +55 -24
  1431. package/src/lib/core/router.ts +1 -0
  1432. package/src/lib/errors/ErrorAlert.tsx +29 -17
  1433. package/src/lib/errors/RouterError.tsx +1 -1
  1434. package/src/lib/errors/TopLevelError.tsx +2 -4
  1435. package/src/lib/hooks/index.ts +16 -0
  1436. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1437. package/src/lib/hooks/useEvent.ts +41 -0
  1438. package/src/lib/hooks/useHotkey.ts +70 -0
  1439. package/src/lib/icons.ts +1 -0
  1440. package/src/lib/oas/graphql/circular.ts +58 -0
  1441. package/src/lib/oas/graphql/index.ts +300 -105
  1442. package/src/lib/oas/parser/dereference/index.ts +12 -5
  1443. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1444. package/src/lib/oas/parser/index.ts +16 -32
  1445. package/src/lib/oas/parser/upgrade/index.ts +105 -39
  1446. package/src/lib/plugins/api-catalog/Catalog.tsx +80 -0
  1447. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1448. package/src/lib/plugins/api-keys/CreateApiKey.tsx +79 -49
  1449. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1450. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1451. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +457 -119
  1452. package/src/lib/plugins/api-keys/index.tsx +150 -66
  1453. package/src/lib/plugins/custom-pages/index.tsx +27 -17
  1454. package/src/lib/plugins/markdown/MdxPage.tsx +120 -61
  1455. package/src/lib/plugins/markdown/index.tsx +33 -43
  1456. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1457. package/src/lib/plugins/openapi/ColorizedParam.tsx +51 -23
  1458. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1459. package/src/lib/plugins/openapi/OasProvider.tsx +52 -0
  1460. package/src/lib/plugins/openapi/OperationList.tsx +237 -75
  1461. package/src/lib/plugins/openapi/OperationListItem.tsx +111 -84
  1462. package/src/lib/plugins/openapi/ParamInfos.tsx +91 -0
  1463. package/src/lib/plugins/openapi/ParameterList.tsx +7 -5
  1464. package/src/lib/plugins/openapi/ParameterListItem.tsx +88 -41
  1465. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +32 -5
  1466. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +16 -33
  1467. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1468. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1469. package/src/lib/plugins/openapi/Sidecar.tsx +157 -174
  1470. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1471. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  1472. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1473. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1474. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1475. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1476. package/src/lib/plugins/openapi/client/createServer.ts +9 -4
  1477. package/src/lib/plugins/openapi/client/useCreateQuery.ts +46 -0
  1478. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1479. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1480. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1481. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1482. package/src/lib/plugins/openapi/context.tsx +2 -2
  1483. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +12 -20
  1484. package/src/lib/plugins/openapi/graphql/gql.ts +38 -31
  1485. package/src/lib/plugins/openapi/graphql/graphql.ts +390 -683
  1486. package/src/lib/plugins/openapi/index.tsx +162 -134
  1487. package/src/lib/plugins/openapi/interfaces.ts +61 -4
  1488. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1489. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1490. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +59 -0
  1491. package/src/lib/plugins/openapi/playground/Headers.tsx +284 -53
  1492. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1493. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1494. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1495. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1496. package/src/lib/plugins/openapi/playground/PathParams.tsx +38 -64
  1497. package/src/lib/plugins/openapi/playground/Playground.tsx +407 -289
  1498. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +8 -4
  1499. package/src/lib/plugins/openapi/playground/QueryParams.tsx +134 -90
  1500. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1501. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1502. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1503. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1504. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1505. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1506. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1507. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1508. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +271 -0
  1509. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
  1510. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1511. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1512. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1513. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +223 -0
  1514. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1515. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +183 -0
  1516. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1517. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1518. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1519. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1520. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.tsx +36 -0
  1521. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.tsx +25 -0
  1522. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +35 -0
  1523. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1524. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +141 -0
  1525. package/src/lib/plugins/openapi/schema/SchemaView.tsx +107 -139
  1526. package/src/lib/plugins/openapi/schema/UnionView.tsx +123 -0
  1527. package/src/lib/plugins/openapi/schema/union-helpers.ts +96 -0
  1528. package/src/lib/plugins/openapi/schema/utils.ts +30 -13
  1529. package/src/lib/plugins/openapi/state.ts +36 -0
  1530. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1531. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +39 -0
  1532. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -45
  1533. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1534. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1535. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1536. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1537. package/src/lib/plugins/redirect/index.tsx +6 -10
  1538. package/src/lib/plugins/search-inkeep/index.tsx +83 -32
  1539. package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
  1540. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +163 -0
  1541. package/src/lib/plugins/search-pagefind/ResultList.tsx +113 -0
  1542. package/src/lib/plugins/search-pagefind/get-results.tsx +74 -0
  1543. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1544. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1545. package/src/lib/shiki.ts +138 -0
  1546. package/src/lib/ui/Accordion.tsx +56 -0
  1547. package/src/lib/ui/ActionButton.tsx +30 -0
  1548. package/src/lib/ui/Alert.tsx +65 -0
  1549. package/src/lib/ui/AlertDialog.tsx +139 -0
  1550. package/src/lib/ui/AspectRatio.tsx +5 -0
  1551. package/src/lib/ui/Badge.tsx +37 -0
  1552. package/src/lib/ui/Breadcrumb.tsx +116 -0
  1553. package/src/lib/ui/Button.tsx +13 -8
  1554. package/src/lib/ui/Callout.tsx +30 -10
  1555. package/src/lib/ui/Card.tsx +1 -1
  1556. package/src/lib/ui/Carousel.tsx +261 -0
  1557. package/src/lib/ui/Checkbox.tsx +29 -0
  1558. package/src/lib/ui/CodeBlock.tsx +82 -0
  1559. package/src/lib/ui/Collapsible.tsx +9 -0
  1560. package/src/lib/ui/Command.tsx +191 -0
  1561. package/src/lib/ui/Dialog.tsx +132 -0
  1562. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1563. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1564. package/src/lib/ui/Form.tsx +177 -0
  1565. package/src/lib/ui/HoverCard.tsx +27 -0
  1566. package/src/lib/ui/Input.tsx +2 -3
  1567. package/src/lib/ui/Label.tsx +24 -0
  1568. package/src/lib/ui/Pagination.tsx +116 -0
  1569. package/src/lib/ui/Popover.tsx +29 -0
  1570. package/src/lib/ui/Progress.tsx +26 -0
  1571. package/src/lib/ui/RadioGroup.tsx +42 -0
  1572. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1573. package/src/lib/ui/ScrollArea.tsx +46 -0
  1574. package/src/lib/ui/Secret.tsx +106 -0
  1575. package/src/lib/ui/Select.tsx +157 -0
  1576. package/src/lib/ui/Skeleton.tsx +15 -0
  1577. package/src/lib/ui/Slider.tsx +26 -0
  1578. package/src/lib/ui/Stepper.tsx +8 -0
  1579. package/src/lib/ui/Switch.tsx +27 -0
  1580. package/src/lib/ui/SyntaxHighlight.tsx +35 -0
  1581. package/src/lib/ui/Tabs.tsx +2 -2
  1582. package/src/lib/ui/Textarea.tsx +23 -0
  1583. package/src/lib/ui/Toggle.tsx +43 -0
  1584. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1585. package/src/lib/ui/Tooltip.tsx +43 -0
  1586. package/src/lib/ui/Value.tsx +42 -0
  1587. package/src/lib/ui/util.tsx +3 -0
  1588. package/src/lib/util/MdxComponents.tsx +60 -26
  1589. package/src/lib/util/cn.ts +1 -1
  1590. package/src/lib/util/createVariantComponent.tsx +3 -3
  1591. package/src/lib/util/detectOS.ts +9 -0
  1592. package/src/lib/util/ensureArray.ts +3 -0
  1593. package/src/lib/util/groupBy.ts +1 -0
  1594. package/src/lib/util/humanFileSize.test.ts +24 -0
  1595. package/src/lib/util/humanFileSize.ts +15 -0
  1596. package/src/lib/util/invariant.ts +18 -3
  1597. package/src/lib/util/joinPath.tsx +3 -0
  1598. package/src/lib/util/joinUrl.test.ts +62 -0
  1599. package/src/lib/util/joinUrl.ts +57 -0
  1600. package/src/lib/util/os.ts +18 -0
  1601. package/src/lib/util/pastellize.ts +2 -2
  1602. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1603. package/src/lib/util/traverse.ts +34 -0
  1604. package/src/lib/util/types.ts +7 -0
  1605. package/src/lib/util/url.test.ts +51 -0
  1606. package/src/lib/util/url.ts +18 -0
  1607. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1608. package/src/lib/util/useExposedProps.tsx +27 -0
  1609. package/src/lib/util/useIsomorphicLayoutEffect.ts +6 -0
  1610. package/src/lib/util/useLatest.ts +18 -0
  1611. package/src/lib/util/useOnScreen.ts +34 -0
  1612. package/src/lib/util/useScrollToAnchor.ts +51 -40
  1613. package/src/lib/util/useScrollToTop.ts +9 -4
  1614. package/src/shiki/langs/abap.js +1 -0
  1615. package/src/shiki/langs/actionscript-3.js +1 -0
  1616. package/src/shiki/langs/ada.js +1 -0
  1617. package/src/shiki/langs/angular-expression.js +1 -0
  1618. package/src/shiki/langs/angular-html.js +1 -0
  1619. package/src/shiki/langs/angular-inline-style.js +1 -0
  1620. package/src/shiki/langs/angular-inline-template.js +1 -0
  1621. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1622. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1623. package/src/shiki/langs/angular-template.js +1 -0
  1624. package/src/shiki/langs/angular-ts.js +1 -0
  1625. package/src/shiki/langs/apache.js +1 -0
  1626. package/src/shiki/langs/apex.js +1 -0
  1627. package/src/shiki/langs/apl.js +1 -0
  1628. package/src/shiki/langs/applescript.js +1 -0
  1629. package/src/shiki/langs/ara.js +1 -0
  1630. package/src/shiki/langs/asciidoc.js +1 -0
  1631. package/src/shiki/langs/asm.js +1 -0
  1632. package/src/shiki/langs/astro.js +1 -0
  1633. package/src/shiki/langs/awk.js +1 -0
  1634. package/src/shiki/langs/ballerina.js +1 -0
  1635. package/src/shiki/langs/bat.js +1 -0
  1636. package/src/shiki/langs/beancount.js +1 -0
  1637. package/src/shiki/langs/berry.js +1 -0
  1638. package/src/shiki/langs/bibtex.js +1 -0
  1639. package/src/shiki/langs/bicep.js +1 -0
  1640. package/src/shiki/langs/blade.js +1 -0
  1641. package/src/shiki/langs/bsl.js +1 -0
  1642. package/src/shiki/langs/c.js +1 -0
  1643. package/src/shiki/langs/cadence.js +1 -0
  1644. package/src/shiki/langs/cairo.js +1 -0
  1645. package/src/shiki/langs/clarity.js +1 -0
  1646. package/src/shiki/langs/clojure.js +1 -0
  1647. package/src/shiki/langs/cmake.js +1 -0
  1648. package/src/shiki/langs/cobol.js +1 -0
  1649. package/src/shiki/langs/codeowners.js +1 -0
  1650. package/src/shiki/langs/codeql.js +1 -0
  1651. package/src/shiki/langs/coffee.js +1 -0
  1652. package/src/shiki/langs/common-lisp.js +1 -0
  1653. package/src/shiki/langs/coq.js +1 -0
  1654. package/src/shiki/langs/cpp-macro.js +1 -0
  1655. package/src/shiki/langs/cpp.js +1 -0
  1656. package/src/shiki/langs/crystal.js +1 -0
  1657. package/src/shiki/langs/csharp.js +1 -0
  1658. package/src/shiki/langs/css.js +1 -0
  1659. package/src/shiki/langs/csv.js +1 -0
  1660. package/src/shiki/langs/cue.js +1 -0
  1661. package/src/shiki/langs/cypher.js +1 -0
  1662. package/src/shiki/langs/d.js +1 -0
  1663. package/src/shiki/langs/dart.js +1 -0
  1664. package/src/shiki/langs/dax.js +1 -0
  1665. package/src/shiki/langs/desktop.js +1 -0
  1666. package/src/shiki/langs/diff.js +1 -0
  1667. package/src/shiki/langs/docker.js +1 -0
  1668. package/src/shiki/langs/dotenv.js +1 -0
  1669. package/src/shiki/langs/dream-maker.js +1 -0
  1670. package/src/shiki/langs/edge.js +1 -0
  1671. package/src/shiki/langs/elixir.js +1 -0
  1672. package/src/shiki/langs/elm.js +1 -0
  1673. package/src/shiki/langs/emacs-lisp.js +1 -0
  1674. package/src/shiki/langs/erb.js +1 -0
  1675. package/src/shiki/langs/erlang.js +1 -0
  1676. package/src/shiki/langs/es-tag-css.js +1 -0
  1677. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1678. package/src/shiki/langs/es-tag-html.js +1 -0
  1679. package/src/shiki/langs/es-tag-sql.js +1 -0
  1680. package/src/shiki/langs/es-tag-xml.js +1 -0
  1681. package/src/shiki/langs/fennel.js +1 -0
  1682. package/src/shiki/langs/fish.js +1 -0
  1683. package/src/shiki/langs/fluent.js +1 -0
  1684. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1685. package/src/shiki/langs/fortran-free-form.js +1 -0
  1686. package/src/shiki/langs/fsharp.js +1 -0
  1687. package/src/shiki/langs/gdresource.js +1 -0
  1688. package/src/shiki/langs/gdscript.js +1 -0
  1689. package/src/shiki/langs/gdshader.js +1 -0
  1690. package/src/shiki/langs/genie.js +1 -0
  1691. package/src/shiki/langs/gherkin.js +1 -0
  1692. package/src/shiki/langs/git-commit.js +1 -0
  1693. package/src/shiki/langs/git-rebase.js +1 -0
  1694. package/src/shiki/langs/gleam.js +1 -0
  1695. package/src/shiki/langs/glimmer-js.js +1 -0
  1696. package/src/shiki/langs/glimmer-ts.js +1 -0
  1697. package/src/shiki/langs/glsl.js +1 -0
  1698. package/src/shiki/langs/gnuplot.js +1 -0
  1699. package/src/shiki/langs/go.js +1 -0
  1700. package/src/shiki/langs/graphql.js +1 -0
  1701. package/src/shiki/langs/groovy.js +1 -0
  1702. package/src/shiki/langs/hack.js +1 -0
  1703. package/src/shiki/langs/haml.js +1 -0
  1704. package/src/shiki/langs/handlebars.js +1 -0
  1705. package/src/shiki/langs/haskell.js +1 -0
  1706. package/src/shiki/langs/haxe.js +1 -0
  1707. package/src/shiki/langs/hcl.js +1 -0
  1708. package/src/shiki/langs/hjson.js +1 -0
  1709. package/src/shiki/langs/hlsl.js +1 -0
  1710. package/src/shiki/langs/html-derivative.js +1 -0
  1711. package/src/shiki/langs/html.js +1 -0
  1712. package/src/shiki/langs/http.js +1 -0
  1713. package/src/shiki/langs/hxml.js +1 -0
  1714. package/src/shiki/langs/hy.js +1 -0
  1715. package/src/shiki/langs/imba.js +1 -0
  1716. package/src/shiki/langs/ini.js +1 -0
  1717. package/src/shiki/langs/java.js +1 -0
  1718. package/src/shiki/langs/javascript.js +1 -0
  1719. package/src/shiki/langs/jinja-html.js +1 -0
  1720. package/src/shiki/langs/jinja.js +1 -0
  1721. package/src/shiki/langs/jison.js +1 -0
  1722. package/src/shiki/langs/json.js +1 -0
  1723. package/src/shiki/langs/json5.js +1 -0
  1724. package/src/shiki/langs/jsonc.js +1 -0
  1725. package/src/shiki/langs/jsonl.js +1 -0
  1726. package/src/shiki/langs/jsonnet.js +1 -0
  1727. package/src/shiki/langs/jssm.js +1 -0
  1728. package/src/shiki/langs/jsx.js +1 -0
  1729. package/src/shiki/langs/julia.js +1 -0
  1730. package/src/shiki/langs/kotlin.js +1 -0
  1731. package/src/shiki/langs/kusto.js +1 -0
  1732. package/src/shiki/langs/latex.js +1 -0
  1733. package/src/shiki/langs/lean.js +1 -0
  1734. package/src/shiki/langs/less.js +1 -0
  1735. package/src/shiki/langs/liquid.js +1 -0
  1736. package/src/shiki/langs/llvm.js +1 -0
  1737. package/src/shiki/langs/log.js +1 -0
  1738. package/src/shiki/langs/logo.js +1 -0
  1739. package/src/shiki/langs/lua.js +1 -0
  1740. package/src/shiki/langs/luau.js +1 -0
  1741. package/src/shiki/langs/make.js +1 -0
  1742. package/src/shiki/langs/markdown-vue.js +1 -0
  1743. package/src/shiki/langs/markdown.js +1 -0
  1744. package/src/shiki/langs/marko.js +1 -0
  1745. package/src/shiki/langs/matlab.js +1 -0
  1746. package/src/shiki/langs/mdc.js +1 -0
  1747. package/src/shiki/langs/mdx.js +1 -0
  1748. package/src/shiki/langs/mermaid.js +1 -0
  1749. package/src/shiki/langs/mipsasm.js +1 -0
  1750. package/src/shiki/langs/mojo.js +1 -0
  1751. package/src/shiki/langs/move.js +1 -0
  1752. package/src/shiki/langs/narrat.js +1 -0
  1753. package/src/shiki/langs/nextflow.js +1 -0
  1754. package/src/shiki/langs/nginx.js +1 -0
  1755. package/src/shiki/langs/nim.js +1 -0
  1756. package/src/shiki/langs/nix.js +1 -0
  1757. package/src/shiki/langs/nushell.js +1 -0
  1758. package/src/shiki/langs/objective-c.js +1 -0
  1759. package/src/shiki/langs/objective-cpp.js +1 -0
  1760. package/src/shiki/langs/ocaml.js +1 -0
  1761. package/src/shiki/langs/pascal.js +1 -0
  1762. package/src/shiki/langs/perl.js +1 -0
  1763. package/src/shiki/langs/php.js +1 -0
  1764. package/src/shiki/langs/plsql.js +1 -0
  1765. package/src/shiki/langs/po.js +1 -0
  1766. package/src/shiki/langs/polar.js +1 -0
  1767. package/src/shiki/langs/postcss.js +1 -0
  1768. package/src/shiki/langs/powerquery.js +1 -0
  1769. package/src/shiki/langs/powershell.js +1 -0
  1770. package/src/shiki/langs/prisma.js +1 -0
  1771. package/src/shiki/langs/prolog.js +1 -0
  1772. package/src/shiki/langs/proto.js +1 -0
  1773. package/src/shiki/langs/pug.js +1 -0
  1774. package/src/shiki/langs/puppet.js +1 -0
  1775. package/src/shiki/langs/purescript.js +1 -0
  1776. package/src/shiki/langs/python.js +1 -0
  1777. package/src/shiki/langs/qml.js +1 -0
  1778. package/src/shiki/langs/qmldir.js +1 -0
  1779. package/src/shiki/langs/qss.js +1 -0
  1780. package/src/shiki/langs/r.js +1 -0
  1781. package/src/shiki/langs/racket.js +1 -0
  1782. package/src/shiki/langs/raku.js +1 -0
  1783. package/src/shiki/langs/razor.js +1 -0
  1784. package/src/shiki/langs/reg.js +1 -0
  1785. package/src/shiki/langs/regexp.js +1 -0
  1786. package/src/shiki/langs/rel.js +1 -0
  1787. package/src/shiki/langs/riscv.js +1 -0
  1788. package/src/shiki/langs/rst.js +1 -0
  1789. package/src/shiki/langs/ruby.js +1 -0
  1790. package/src/shiki/langs/rust.js +1 -0
  1791. package/src/shiki/langs/sas.js +1 -0
  1792. package/src/shiki/langs/sass.js +1 -0
  1793. package/src/shiki/langs/scala.js +1 -0
  1794. package/src/shiki/langs/scheme.js +1 -0
  1795. package/src/shiki/langs/scss.js +1 -0
  1796. package/src/shiki/langs/sdbl.js +1 -0
  1797. package/src/shiki/langs/shaderlab.js +1 -0
  1798. package/src/shiki/langs/shellscript.js +1 -0
  1799. package/src/shiki/langs/shellsession.js +1 -0
  1800. package/src/shiki/langs/smalltalk.js +1 -0
  1801. package/src/shiki/langs/solidity.js +1 -0
  1802. package/src/shiki/langs/soy.js +1 -0
  1803. package/src/shiki/langs/sparql.js +1 -0
  1804. package/src/shiki/langs/splunk.js +1 -0
  1805. package/src/shiki/langs/sql.js +1 -0
  1806. package/src/shiki/langs/ssh-config.js +1 -0
  1807. package/src/shiki/langs/stata.js +1 -0
  1808. package/src/shiki/langs/stylus.js +1 -0
  1809. package/src/shiki/langs/svelte.js +1 -0
  1810. package/src/shiki/langs/swift.js +1 -0
  1811. package/src/shiki/langs/system-verilog.js +1 -0
  1812. package/src/shiki/langs/systemd.js +1 -0
  1813. package/src/shiki/langs/talonscript.js +1 -0
  1814. package/src/shiki/langs/tasl.js +1 -0
  1815. package/src/shiki/langs/tcl.js +1 -0
  1816. package/src/shiki/langs/templ.js +1 -0
  1817. package/src/shiki/langs/terraform.js +1 -0
  1818. package/src/shiki/langs/tex.js +1 -0
  1819. package/src/shiki/langs/toml.js +1 -0
  1820. package/src/shiki/langs/ts-tags.js +1 -0
  1821. package/src/shiki/langs/tsv.js +1 -0
  1822. package/src/shiki/langs/tsx.js +1 -0
  1823. package/src/shiki/langs/turtle.js +1 -0
  1824. package/src/shiki/langs/twig.js +1 -0
  1825. package/src/shiki/langs/typescript.js +1 -0
  1826. package/src/shiki/langs/typespec.js +1 -0
  1827. package/src/shiki/langs/typst.js +1 -0
  1828. package/src/shiki/langs/v.js +1 -0
  1829. package/src/shiki/langs/vala.js +1 -0
  1830. package/src/shiki/langs/vb.js +1 -0
  1831. package/src/shiki/langs/verilog.js +1 -0
  1832. package/src/shiki/langs/vhdl.js +1 -0
  1833. package/src/shiki/langs/viml.js +1 -0
  1834. package/src/shiki/langs/vue-directives.js +1 -0
  1835. package/src/shiki/langs/vue-html.js +1 -0
  1836. package/src/shiki/langs/vue-interpolations.js +1 -0
  1837. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1838. package/src/shiki/langs/vue-vine.js +1 -0
  1839. package/src/shiki/langs/vue.js +1 -0
  1840. package/src/shiki/langs/vyper.js +1 -0
  1841. package/src/shiki/langs/wasm.js +1 -0
  1842. package/src/shiki/langs/wenyan.js +1 -0
  1843. package/src/shiki/langs/wgsl.js +1 -0
  1844. package/src/shiki/langs/wikitext.js +1 -0
  1845. package/src/shiki/langs/wit.js +1 -0
  1846. package/src/shiki/langs/wolfram.js +1 -0
  1847. package/src/shiki/langs/xml.js +1 -0
  1848. package/src/shiki/langs/xsl.js +1 -0
  1849. package/src/shiki/langs/yaml.js +1 -0
  1850. package/src/shiki/langs/zenscript.js +1 -0
  1851. package/src/shiki/langs/zig.js +1 -0
  1852. package/src/shiki/themes/andromeeda.js +1 -0
  1853. package/src/shiki/themes/aurora-x.js +1 -0
  1854. package/src/shiki/themes/ayu-dark.js +1 -0
  1855. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1856. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1857. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1858. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1859. package/src/shiki/themes/dark-plus.js +1 -0
  1860. package/src/shiki/themes/dracula-soft.js +1 -0
  1861. package/src/shiki/themes/dracula.js +1 -0
  1862. package/src/shiki/themes/everforest-dark.js +1 -0
  1863. package/src/shiki/themes/everforest-light.js +1 -0
  1864. package/src/shiki/themes/github-dark-default.js +1 -0
  1865. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1866. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1867. package/src/shiki/themes/github-dark.js +1 -0
  1868. package/src/shiki/themes/github-light-default.js +1 -0
  1869. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1870. package/src/shiki/themes/github-light.js +1 -0
  1871. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1872. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1873. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1874. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1875. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1876. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1877. package/src/shiki/themes/houston.js +1 -0
  1878. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1879. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1880. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1881. package/src/shiki/themes/laserwave.js +1 -0
  1882. package/src/shiki/themes/light-plus.js +1 -0
  1883. package/src/shiki/themes/material-theme-darker.js +1 -0
  1884. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1885. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1886. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1887. package/src/shiki/themes/material-theme.js +1 -0
  1888. package/src/shiki/themes/min-dark.js +1 -0
  1889. package/src/shiki/themes/min-light.js +1 -0
  1890. package/src/shiki/themes/monokai.js +1 -0
  1891. package/src/shiki/themes/night-owl.js +1 -0
  1892. package/src/shiki/themes/nord.js +1 -0
  1893. package/src/shiki/themes/one-dark-pro.js +1 -0
  1894. package/src/shiki/themes/one-light.js +1 -0
  1895. package/src/shiki/themes/plastic.js +1 -0
  1896. package/src/shiki/themes/poimandres.js +1 -0
  1897. package/src/shiki/themes/red.js +1 -0
  1898. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1899. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1900. package/src/shiki/themes/rose-pine.js +1 -0
  1901. package/src/shiki/themes/slack-dark.js +1 -0
  1902. package/src/shiki/themes/slack-ochin.js +1 -0
  1903. package/src/shiki/themes/snazzy-light.js +1 -0
  1904. package/src/shiki/themes/solarized-dark.js +1 -0
  1905. package/src/shiki/themes/solarized-light.js +1 -0
  1906. package/src/shiki/themes/synthwave-84.js +1 -0
  1907. package/src/shiki/themes/tokyo-night.js +1 -0
  1908. package/src/shiki/themes/vesper.js +1 -0
  1909. package/src/shiki/themes/vitesse-black.js +1 -0
  1910. package/src/shiki/themes/vitesse-dark.js +1 -0
  1911. package/src/shiki/themes/vitesse-light.js +1 -0
  1912. package/LICENSE.md +0 -9
  1913. package/client.d.ts +0 -1
  1914. package/dist/app/tailwind.d.ts +0 -3
  1915. package/dist/app/tailwind.js +0 -65
  1916. package/dist/app/tailwind.js.map +0 -1
  1917. package/dist/config/validators/InputSidebarSchema.d.ts +0 -186
  1918. package/dist/config/validators/InputSidebarSchema.js +0 -73
  1919. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1920. package/dist/config/validators/SidebarSchema.d.ts +0 -23
  1921. package/dist/config/validators/SidebarSchema.js +0 -78
  1922. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1923. package/dist/internal.d.ts +0 -1
  1924. package/dist/internal.js +0 -2
  1925. package/dist/internal.js.map +0 -1
  1926. package/dist/lib/components/DevPortal.d.ts +0 -7
  1927. package/dist/lib/components/DevPortal.js +0 -54
  1928. package/dist/lib/components/DevPortal.js.map +0 -1
  1929. package/dist/lib/components/Dialog.d.ts +0 -19
  1930. package/dist/lib/components/Dialog.js +0 -23
  1931. package/dist/lib/components/Dialog.js.map +0 -1
  1932. package/dist/lib/components/Select.js +0 -27
  1933. package/dist/lib/components/Select.js.map +0 -1
  1934. package/dist/lib/components/SlotletProvider.d.ts +0 -12
  1935. package/dist/lib/components/SlotletProvider.js +0 -20
  1936. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1937. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1938. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1939. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1940. package/dist/lib/components/context/PluginSystem.js +0 -2
  1941. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1942. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1943. package/dist/lib/components/context/ThemeContext.js +0 -7
  1944. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1945. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1946. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1947. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1948. package/dist/lib/components/navigation/Sidebar.d.ts +0 -1
  1949. package/dist/lib/components/navigation/Sidebar.js +0 -14
  1950. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1951. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
  1952. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  1953. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1954. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1955. package/dist/lib/components/navigation/SidebarCategory.js +0 -39
  1956. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1957. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
  1958. package/dist/lib/components/navigation/SidebarItem.js +0 -41
  1959. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1960. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  1961. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  1962. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1963. package/dist/lib/core/DevPortalContext.d.ts +0 -75
  1964. package/dist/lib/core/DevPortalContext.js +0 -49
  1965. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1966. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1967. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1968. package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
  1969. package/dist/lib/plugins/markdown/resolver.js +0 -75
  1970. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1971. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1972. package/dist/lib/plugins/openapi/Route.js +0 -8
  1973. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1974. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1975. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1976. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1977. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1978. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1979. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1980. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1981. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1982. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1983. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1984. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1985. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1986. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1987. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1988. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1989. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1990. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1991. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -9
  1992. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1993. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1994. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -6
  1995. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1996. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1997. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -7
  1998. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1999. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  2000. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  2001. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  2002. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  2003. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  2004. package/dist/lib/plugins/openapi-worker.js +0 -2
  2005. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  2006. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  2007. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  2008. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  2009. package/dist/lib/themeToggle.d.ts +0 -1
  2010. package/dist/lib/themeToggle.js +0 -7
  2011. package/dist/lib/themeToggle.js.map +0 -1
  2012. package/dist/lib/ui/Note.d.ts +0 -8
  2013. package/dist/lib/ui/Note.js +0 -23
  2014. package/dist/lib/ui/Note.js.map +0 -1
  2015. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  2016. package/dist/lib/util/createWaitForNotify.js +0 -15
  2017. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  2018. package/dist/vite/plugin-custom-css.d.ts +0 -6
  2019. package/dist/vite/plugin-custom-css.js +0 -55
  2020. package/dist/vite/plugin-custom-css.js.map +0 -1
  2021. package/dist/vite/plugin-docs.test.js +0 -30
  2022. package/dist/vite/plugin-docs.test.js.map +0 -1
  2023. package/dist/vite/plugin-html-transform.d.ts +0 -2
  2024. package/dist/vite/plugin-html-transform.js +0 -15
  2025. package/dist/vite/plugin-html-transform.js.map +0 -1
  2026. package/dist/vite/plugin-sidebar.d.ts +0 -3
  2027. package/dist/vite/plugin-sidebar.js +0 -49
  2028. package/dist/vite/plugin-sidebar.js.map +0 -1
  2029. package/dist/vite/prerender.d.ts +0 -21
  2030. package/dist/vite/prerender.js +0 -88
  2031. package/dist/vite/prerender.js.map +0 -1
  2032. package/lib/AnchorLink-DovtSBJk.js +0 -705
  2033. package/lib/AnchorLink-DovtSBJk.js.map +0 -1
  2034. package/lib/AuthenticationPlugin-Cnqy9csQ.js +0 -55
  2035. package/lib/AuthenticationPlugin-Cnqy9csQ.js.map +0 -1
  2036. package/lib/CategoryHeading-C7VfgpFZ.js +0 -10
  2037. package/lib/CategoryHeading-C7VfgpFZ.js.map +0 -1
  2038. package/lib/DeveloperHint-CNyuFROc.js +0 -16
  2039. package/lib/DeveloperHint-CNyuFROc.js.map +0 -1
  2040. package/lib/ErrorPage-CUz-Zzmx.js +0 -16
  2041. package/lib/ErrorPage-CUz-Zzmx.js.map +0 -1
  2042. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  2043. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  2044. package/lib/Input-x-t53FyR.js +0 -2229
  2045. package/lib/Input-x-t53FyR.js.map +0 -1
  2046. package/lib/Markdown-C-0TaxoY.js +0 -20441
  2047. package/lib/Markdown-C-0TaxoY.js.map +0 -1
  2048. package/lib/MdxPage-C5I9c7R1.js +0 -173
  2049. package/lib/MdxPage-C5I9c7R1.js.map +0 -1
  2050. package/lib/OperationList-qsBOguHS.js +0 -601
  2051. package/lib/OperationList-qsBOguHS.js.map +0 -1
  2052. package/lib/Route-DlKvXPAO.js +0 -13
  2053. package/lib/Route-DlKvXPAO.js.map +0 -1
  2054. package/lib/SidebarBadge-DaA0-bFW.js +0 -503
  2055. package/lib/SidebarBadge-DaA0-bFW.js.map +0 -1
  2056. package/lib/SlotletProvider-BGEs7yyu.js +0 -240
  2057. package/lib/SlotletProvider-BGEs7yyu.js.map +0 -1
  2058. package/lib/Spinner-3cQDBVGr.js +0 -7
  2059. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  2060. package/lib/ZudokuContext-DSipF8sq.js +0 -1222
  2061. package/lib/ZudokuContext-DSipF8sq.js.map +0 -1
  2062. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  2063. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  2064. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  2065. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  2066. package/lib/assets/worker-DaFlmuyf.js +0 -18111
  2067. package/lib/assets/worker-DaFlmuyf.js.map +0 -1
  2068. package/lib/index-BIl-R3aH.js +0 -5952
  2069. package/lib/index-BIl-R3aH.js.map +0 -1
  2070. package/lib/index-CKmSo0py.js +0 -124
  2071. package/lib/index-CKmSo0py.js.map +0 -1
  2072. package/lib/index-CkwDvuPt.js +0 -4820
  2073. package/lib/index-CkwDvuPt.js.map +0 -1
  2074. package/lib/index-D06ATMgg.js +0 -2094
  2075. package/lib/index-D06ATMgg.js.map +0 -1
  2076. package/lib/index-DJqnphbT.js +0 -35
  2077. package/lib/index-DJqnphbT.js.map +0 -1
  2078. package/lib/index-Dssw7Gff.js +0 -2867
  2079. package/lib/index-Dssw7Gff.js.map +0 -1
  2080. package/lib/index-SrtqdZ3j.js +0 -1781
  2081. package/lib/index-SrtqdZ3j.js.map +0 -1
  2082. package/lib/jsx-runtime-B6kdoens.js +0 -635
  2083. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  2084. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  2085. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  2086. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  2087. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  2088. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  2089. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  2090. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  2091. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  2092. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  2093. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  2094. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  2095. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  2096. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  2097. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  2098. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  2099. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  2100. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  2101. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  2102. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  2103. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  2104. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  2105. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  2106. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  2107. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  2108. package/lib/router-Oe6YmY6B.js +0 -3024
  2109. package/lib/router-Oe6YmY6B.js.map +0 -1
  2110. package/lib/state-CsuHT8ZO.js +0 -183
  2111. package/lib/state-CsuHT8ZO.js.map +0 -1
  2112. package/lib/urql-core-KJnLL26g.js +0 -1455
  2113. package/lib/urql-core-KJnLL26g.js.map +0 -1
  2114. package/lib/zudoku.openapi-worker.js +0 -16255
  2115. package/lib/zudoku.openapi-worker.js.map +0 -1
  2116. package/src/app/tailwind.ts +0 -68
  2117. package/src/lib/components/DevPortal.tsx +0 -111
  2118. package/src/lib/components/Dialog.tsx +0 -119
  2119. package/src/lib/components/Select.tsx +0 -157
  2120. package/src/lib/components/SlotletProvider.tsx +0 -46
  2121. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  2122. package/src/lib/components/context/PluginSystem.ts +0 -0
  2123. package/src/lib/components/context/ThemeContext.tsx +0 -8
  2124. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  2125. package/src/lib/components/navigation/Sidebar.tsx +0 -39
  2126. package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
  2127. package/src/lib/components/navigation/SidebarCategory.tsx +0 -129
  2128. package/src/lib/components/navigation/SidebarItem.tsx +0 -128
  2129. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
  2130. package/src/lib/core/DevPortalContext.ts +0 -136
  2131. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  2132. package/src/lib/plugins/markdown/resolver.ts +0 -92
  2133. package/src/lib/plugins/openapi/Route.tsx +0 -20
  2134. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  2135. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  2136. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  2137. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  2138. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  2139. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  2140. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -47
  2141. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -54
  2142. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -30
  2143. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  2144. package/src/lib/plugins/openapi-worker.ts +0 -1
  2145. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  2146. package/src/lib/themeToggle.ts +0 -7
  2147. package/src/lib/ui/Note.tsx +0 -58
  2148. package/src/lib/util/createWaitForNotify.ts +0 -18
  2149. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  2150. /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
  2151. /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
  2152. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  2153. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -1,3446 +1,30 @@
1
- var Ba = Object.defineProperty;
2
- var hn = (e) => {
3
- throw TypeError(e);
4
- };
5
- var Ha = (e, t, n) => t in e ? Ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ae = (e, t, n) => Ha(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || hn("Cannot " + n);
7
- var v = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? hn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (pn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
- var ut = (e, t, n, r) => ({
9
- set _(o) {
10
- X(e, t, o, n);
11
- },
12
- get _() {
13
- return v(e, t, r);
14
- }
15
- });
16
- import { a as In, H as kt, M as Ua, A as za, u as Ka } from "./AnchorLink-DovtSBJk.js";
17
- import { e as qa, f as Qa, R as Va, N as gt, L as yt, g as Ga, O as An, u as Wa, b as $t } from "./index-SrtqdZ3j.js";
18
- import { E as kn, S as xe, a as Ya, R as Xa } from "./SlotletProvider-BGEs7yyu.js";
19
- import { j as a } from "./jsx-runtime-B6kdoens.js";
20
- import { M as Ja, f as Za, c as $n, p as Fn, A as eo, d as rt, j as to, b as A, k as no, F as ro, D as ao, C as oo, P as qe, i as Ft, q as so, s as Ln, R as io, S as lo, t as co, h as uo, r as Bn, m as fo, a as vt, u as Hn, V as Un, n as mn, B as Nt } from "./index-Dssw7Gff.js";
21
- import { a as O, c as zn, b as ho, T as po, d as mo, V as go, u as Lt, e as vo, C as wo } from "./Markdown-C-0TaxoY.js";
22
- import * as h from "react";
23
- import p, { StrictMode as Kn, createContext as qn, Component as xo, createElement as gn, isValidElement as yo, useState as Ie, useMemo as mt, useLayoutEffect as bo, useEffect as Ce, useCallback as Qn, Suspense as Bt, memo as Vn, useContext as So, Fragment as Co, useRef as Ht, forwardRef as Mo } from "react";
24
- import { a as Ut } from "./index-DJqnphbT.js";
25
- import { B as Ro } from "./router-Oe6YmY6B.js";
26
- import { a as Tt, R as Eo, T as Do, C as Po } from "./index-CKmSo0py.js";
27
- import { S as Gn, g as Wn, Q as jo, n as se, m as vn, i as wn, j as be, k as No, l as To, o as _o, p as Oo, q as xn, r as yn, t as Io, h as bn, v as Sn, w as Ao, x as Ze, b as Ae, y as Yn, z as ko, d as $o, Z as Fo, A as Lo, B as Bo } from "./ZudokuContext-DSipF8sq.js";
28
- import { ChevronRightIcon as Xn, CheckIcon as Ho, DotIcon as Uo, CircleXIcon as zo, SearchIcon as Ko, MenuIcon as qo, MoonStarIcon as Qo, SunIcon as Vo, ExternalLinkIcon as Go, PanelLeftIcon as Wo } from "lucide-react";
29
- import { c as Jn, P as bt, R as Yo, I as Xo, O as Jo, C as Zo, T as es, a as ts, b as ns, D as rs, d as as, e as os, S as Mt } from "./SidebarBadge-DaA0-bFW.js";
30
- import { S as ss } from "./Spinner-3cQDBVGr.js";
31
- function is({ error: e }) {
32
- return /* @__PURE__ */ a.jsx(kn, { error: e });
33
- }
34
- var at = {};
35
- const ls = /* @__PURE__ */ Ut(Ro), cs = /* @__PURE__ */ Ut(qa), us = /* @__PURE__ */ Ut(Qa);
36
- Object.defineProperty(at, "__esModule", { value: !0 });
37
- var ds = p, we = ls, zt = cs, Se = us;
38
- function fs(e) {
39
- if (e && e.__esModule) return e;
40
- var t = /* @__PURE__ */ Object.create(null);
41
- return e && Object.keys(e).forEach(function(n) {
42
- if (n !== "default") {
43
- var r = Object.getOwnPropertyDescriptor(e, n);
44
- Object.defineProperty(t, n, r.get ? r : {
45
- enumerable: !0,
46
- get: function() {
47
- return e[n];
48
- }
49
- });
50
- }
51
- }), t.default = e, Object.freeze(t);
52
- }
53
- var ge = /* @__PURE__ */ fs(ds);
54
- function hs({
55
- basename: e,
56
- children: t,
57
- location: n = "/",
58
- future: r
59
- }) {
60
- typeof n == "string" && (n = Se.parsePath(n));
61
- let o = we.Action.Pop, s = {
62
- pathname: n.pathname || "/",
63
- search: n.search || "",
64
- hash: n.hash || "",
65
- state: n.state != null ? n.state : null,
66
- key: n.key || "default"
67
- }, i = Zn();
68
- return /* @__PURE__ */ ge.createElement(Se.Router, {
69
- basename: e,
70
- children: t,
71
- location: s,
72
- navigationType: o,
73
- navigator: i,
74
- future: r,
75
- static: !0
76
- });
77
- }
78
- function ps({
79
- context: e,
80
- router: t,
81
- hydrate: n = !0,
82
- nonce: r
83
- }) {
84
- t && e || (process.env.NODE_ENV !== "production" ? we.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : we.UNSAFE_invariant(!1));
85
- let o = {
86
- router: t,
87
- navigator: Zn(),
88
- static: !0,
89
- staticContext: e,
90
- basename: e.basename || "/"
91
- }, s = /* @__PURE__ */ new Map(), i = "";
92
- if (n !== !1) {
93
- let u = {
94
- loaderData: e.loaderData,
95
- actionData: e.actionData,
96
- errors: gs(e.errors)
97
- };
98
- i = `window.__staticRouterHydrationData = JSON.parse(${Ss(JSON.stringify(JSON.stringify(u)))});`;
99
- }
100
- let {
101
- state: l
102
- } = o.router;
103
- return /* @__PURE__ */ ge.createElement(ge.Fragment, null, /* @__PURE__ */ ge.createElement(Se.UNSAFE_DataRouterContext.Provider, {
104
- value: o
105
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_DataRouterStateContext.Provider, {
106
- value: l
107
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_FetchersContext.Provider, {
108
- value: s
109
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_ViewTransitionContext.Provider, {
110
- value: {
111
- isTransitioning: !1
112
- }
113
- }, /* @__PURE__ */ ge.createElement(Se.Router, {
114
- basename: o.basename,
115
- location: l.location,
116
- navigationType: l.historyAction,
117
- navigator: o.navigator,
118
- static: o.static,
119
- future: {
120
- v7_relativeSplatPath: t.future.v7_relativeSplatPath
121
- }
122
- }, /* @__PURE__ */ ge.createElement(ms, {
123
- routes: t.routes,
124
- future: t.future,
125
- state: l
126
- })))))), i ? /* @__PURE__ */ ge.createElement("script", {
127
- suppressHydrationWarning: !0,
128
- nonce: r,
129
- dangerouslySetInnerHTML: {
130
- __html: i
131
- }
132
- }) : null);
133
- }
134
- function ms({
135
- routes: e,
136
- future: t,
137
- state: n
138
- }) {
139
- return zt.UNSAFE_useRoutesImpl(e, void 0, n, t);
140
- }
141
- function gs(e) {
142
- if (!e) return null;
143
- let t = Object.entries(e), n = {};
144
- for (let [r, o] of t)
145
- we.isRouteErrorResponse(o) ? n[r] = {
146
- ...o,
147
- __type: "RouteErrorResponse"
148
- } : o instanceof Error ? n[r] = {
149
- message: o.message,
150
- __type: "Error",
151
- // If this is a subclass (i.e., ReferenceError), send up the type so we
152
- // can re-create the same type during hydration.
153
- ...o.name !== "Error" ? {
154
- __subType: o.name
155
- } : {}
156
- } : n[r] = o;
157
- return n;
158
- }
159
- function Zn() {
160
- return {
161
- createHref: er,
162
- encodeLocation: tr,
163
- push(e) {
164
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
165
- },
166
- replace(e) {
167
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
168
- },
169
- go(e) {
170
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
171
- },
172
- back() {
173
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
174
- },
175
- forward() {
176
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
177
- }
178
- };
179
- }
180
- function vs(e, t) {
181
- return we.createStaticHandler(e, {
182
- ...t,
183
- mapRouteProperties: zt.UNSAFE_mapRouteProperties
184
- });
185
- }
186
- function ws(e, t, n = {}) {
187
- let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, zt.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
188
- let u = r[l.route.id] || l.route;
189
- return {
190
- ...l,
191
- route: u
192
- };
193
- }), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
194
- return {
195
- get basename() {
196
- return t.basename;
197
- },
198
- get future() {
199
- var l, u;
200
- return {
201
- v7_fetcherPersist: !1,
202
- v7_normalizeFormMethod: !1,
203
- v7_partialHydration: ((l = n.future) == null ? void 0 : l.v7_partialHydration) === !0,
204
- v7_prependBasename: !1,
205
- v7_relativeSplatPath: ((u = n.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
206
- v7_skipActionErrorRevalidation: !1
207
- };
208
- },
209
- get state() {
210
- return {
211
- historyAction: we.Action.Pop,
212
- location: t.location,
213
- matches: s,
214
- loaderData: t.loaderData,
215
- actionData: t.actionData,
216
- errors: t.errors,
217
- initialized: !0,
218
- navigation: we.IDLE_NAVIGATION,
219
- restoreScrollPosition: null,
220
- preventScrollReset: !1,
221
- revalidation: "idle",
222
- fetchers: /* @__PURE__ */ new Map(),
223
- blockers: /* @__PURE__ */ new Map()
224
- };
225
- },
226
- get routes() {
227
- return o;
228
- },
229
- get window() {
230
- },
231
- initialize() {
232
- throw i("initialize");
233
- },
234
- subscribe() {
235
- throw i("subscribe");
236
- },
237
- enableScrollRestoration() {
238
- throw i("enableScrollRestoration");
239
- },
240
- navigate() {
241
- throw i("navigate");
242
- },
243
- fetch() {
244
- throw i("fetch");
245
- },
246
- revalidate() {
247
- throw i("revalidate");
248
- },
249
- createHref: er,
250
- encodeLocation: tr,
251
- getFetcher() {
252
- return we.IDLE_FETCHER;
253
- },
254
- deleteFetcher() {
255
- throw i("deleteFetcher");
256
- },
257
- dispose() {
258
- throw i("dispose");
259
- },
260
- getBlocker() {
261
- return we.IDLE_BLOCKER;
262
- },
263
- deleteBlocker() {
264
- throw i("deleteBlocker");
265
- },
266
- patchRoutes() {
267
- throw i("patchRoutes");
268
- },
269
- _internalFetchControllers: /* @__PURE__ */ new Map(),
270
- _internalActiveDeferreds: /* @__PURE__ */ new Map(),
271
- _internalSetRoutes() {
272
- throw i("_internalSetRoutes");
273
- }
274
- };
275
- }
276
- function er(e) {
277
- return typeof e == "string" ? e : Se.createPath(e);
278
- }
279
- function tr(e) {
280
- let t = typeof e == "string" ? e : Se.createPath(e);
281
- t = t.replace(/ $/, "%20");
282
- let n = xs.test(t) ? new URL(t) : new URL(t, "http://localhost");
283
- return {
284
- pathname: n.pathname,
285
- search: n.search,
286
- hash: n.hash
287
- };
288
- }
289
- const xs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ys = {
290
- "&": "\\u0026",
291
- ">": "\\u003e",
292
- "<": "\\u003c",
293
- "\u2028": "\\u2028",
294
- "\u2029": "\\u2029"
295
- }, bs = /[&><\u2028\u2029]/g;
296
- function Ss(e) {
297
- return e.replace(bs, (t) => ys[t]);
298
- }
299
- at.StaticRouter = hs;
300
- var Cs = at.StaticRouterProvider = ps;
301
- at.createStaticHandler = vs;
302
- at.createStaticRouter = ws;
303
- const Ms = ({
304
- router: e,
305
- hydrate: t = !1
306
- }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { children: /* @__PURE__ */ a.jsx(Tt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Va, { router: e }) }) }) }), Rs = ({
307
- router: e,
308
- context: t,
309
- helmetContext: n
310
- }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { context: n, children: /* @__PURE__ */ a.jsx(Cs, { router: e, context: t }) }) });
311
- var ve, Tn, Es = (Tn = class extends Gn {
312
- constructor(t = {}) {
313
- super();
314
- ce(this, ve);
315
- this.config = t, X(this, ve, /* @__PURE__ */ new Map());
316
- }
317
- build(t, n, r) {
318
- const o = n.queryKey, s = n.queryHash ?? Wn(o, n);
319
- let i = this.get(s);
320
- return i || (i = new jo({
321
- cache: this,
322
- queryKey: o,
323
- queryHash: s,
324
- options: t.defaultQueryOptions(n),
325
- state: r,
326
- defaultOptions: t.getQueryDefaults(o)
327
- }), this.add(i)), i;
328
- }
329
- add(t) {
330
- v(this, ve).has(t.queryHash) || (v(this, ve).set(t.queryHash, t), this.notify({
331
- type: "added",
332
- query: t
333
- }));
334
- }
335
- remove(t) {
336
- const n = v(this, ve).get(t.queryHash);
337
- n && (t.destroy(), n === t && v(this, ve).delete(t.queryHash), this.notify({ type: "removed", query: t }));
338
- }
339
- clear() {
340
- se.batch(() => {
341
- this.getAll().forEach((t) => {
342
- this.remove(t);
343
- });
344
- });
345
- }
346
- get(t) {
347
- return v(this, ve).get(t);
348
- }
349
- getAll() {
350
- return [...v(this, ve).values()];
351
- }
352
- find(t) {
353
- const n = { exact: !0, ...t };
354
- return this.getAll().find(
355
- (r) => vn(n, r)
356
- );
357
- }
358
- findAll(t = {}) {
359
- const n = this.getAll();
360
- return Object.keys(t).length > 0 ? n.filter((r) => vn(t, r)) : n;
361
- }
362
- notify(t) {
363
- se.batch(() => {
364
- this.listeners.forEach((n) => {
365
- n(t);
366
- });
367
- });
368
- }
369
- onFocus() {
370
- se.batch(() => {
371
- this.getAll().forEach((t) => {
372
- t.onFocus();
373
- });
374
- });
375
- }
376
- onOnline() {
377
- se.batch(() => {
378
- this.getAll().forEach((t) => {
379
- t.onOnline();
380
- });
381
- });
382
- }
383
- }, ve = new WeakMap(), Tn), oe, nt, _n, Ds = (_n = class extends Gn {
384
- constructor(t = {}) {
385
- super();
386
- ce(this, oe);
387
- ce(this, nt);
388
- this.config = t, X(this, oe, /* @__PURE__ */ new Map()), X(this, nt, Date.now());
389
- }
390
- build(t, n, r) {
391
- const o = new Ja({
392
- mutationCache: this,
393
- mutationId: ++ut(this, nt)._,
394
- options: t.defaultMutationOptions(n),
395
- state: r
396
- });
397
- return this.add(o), o;
398
- }
399
- add(t) {
400
- const n = dt(t), r = v(this, oe).get(n) ?? [];
401
- r.push(t), v(this, oe).set(n, r), this.notify({ type: "added", mutation: t });
402
- }
403
- remove(t) {
404
- var r;
405
- const n = dt(t);
406
- if (v(this, oe).has(n)) {
407
- const o = (r = v(this, oe).get(n)) == null ? void 0 : r.filter((s) => s !== t);
408
- o && (o.length === 0 ? v(this, oe).delete(n) : v(this, oe).set(n, o));
409
- }
410
- this.notify({ type: "removed", mutation: t });
411
- }
412
- canRun(t) {
413
- var r;
414
- const n = (r = v(this, oe).get(dt(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
415
- return !n || n === t;
416
- }
417
- runNext(t) {
418
- var r;
419
- const n = (r = v(this, oe).get(dt(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
420
- return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
421
- }
422
- clear() {
423
- se.batch(() => {
424
- this.getAll().forEach((t) => {
425
- this.remove(t);
426
- });
427
- });
428
- }
429
- getAll() {
430
- return [...v(this, oe).values()].flat();
431
- }
432
- find(t) {
433
- const n = { exact: !0, ...t };
434
- return this.getAll().find(
435
- (r) => wn(n, r)
436
- );
437
- }
438
- findAll(t = {}) {
439
- return this.getAll().filter((n) => wn(t, n));
440
- }
441
- notify(t) {
442
- se.batch(() => {
443
- this.listeners.forEach((n) => {
444
- n(t);
445
- });
446
- });
447
- }
448
- resumePausedMutations() {
449
- const t = this.getAll().filter((n) => n.state.isPaused);
450
- return se.batch(
451
- () => Promise.all(
452
- t.map((n) => n.continue().catch(be))
453
- )
454
- );
455
- }
456
- }, oe = new WeakMap(), nt = new WeakMap(), _n);
457
- function dt(e) {
458
- var t;
459
- return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
460
- }
461
- function Cn(e) {
462
- return {
463
- onFetch: (t, n) => {
464
- var f, c, d, R, M;
465
- const r = t.options, o = (d = (c = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : d.direction, s = ((R = t.state.data) == null ? void 0 : R.pages) || [], i = ((M = t.state.data) == null ? void 0 : M.pageParams) || [];
466
- let l = { pages: [], pageParams: [] }, u = 0;
467
- const m = async () => {
468
- let S = !1;
469
- const _ = (P) => {
470
- Object.defineProperty(P, "signal", {
471
- enumerable: !0,
472
- get: () => (t.signal.aborted ? S = !0 : t.signal.addEventListener("abort", () => {
473
- S = !0;
474
- }), t.signal)
475
- });
476
- }, C = No(t.options, t.fetchOptions), k = async (P, g, z) => {
477
- if (S)
478
- return Promise.reject();
479
- if (g == null && P.pages.length)
480
- return Promise.resolve(P);
481
- const Z = {
482
- queryKey: t.queryKey,
483
- pageParam: g,
484
- direction: z ? "backward" : "forward",
485
- meta: t.options.meta
486
- };
487
- _(Z);
488
- const y = await C(
489
- Z
490
- ), { maxPages: j } = t.options, D = z ? To : _o;
491
- return {
492
- pages: D(P.pages, y, j),
493
- pageParams: D(P.pageParams, g, j)
494
- };
495
- };
496
- if (o && s.length) {
497
- const P = o === "backward", g = P ? Ps : Mn, z = {
498
- pages: s,
499
- pageParams: i
500
- }, Z = g(r, z);
501
- l = await k(z, Z, P);
502
- } else {
503
- const P = e ?? s.length;
504
- do {
505
- const g = u === 0 ? i[0] ?? r.initialPageParam : Mn(r, l);
506
- if (u > 0 && g == null)
507
- break;
508
- l = await k(l, g), u++;
509
- } while (u < P);
510
- }
511
- return l;
512
- };
513
- t.options.persister ? t.fetchFn = () => {
514
- var S, _;
515
- return (_ = (S = t.options).persister) == null ? void 0 : _.call(
516
- S,
517
- m,
518
- {
519
- queryKey: t.queryKey,
520
- meta: t.options.meta,
521
- signal: t.signal
522
- },
523
- n
524
- );
525
- } : t.fetchFn = m;
526
- }
527
- };
528
- }
529
- function Mn(e, { pages: t, pageParams: n }) {
530
- const r = t.length - 1;
531
- return t.length > 0 ? e.getNextPageParam(
532
- t[r],
533
- t,
534
- n[r],
535
- n
536
- ) : void 0;
537
- }
538
- function Ps(e, { pages: t, pageParams: n }) {
539
- var r;
540
- return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
541
- }
542
- var F, Pe, je, He, Ue, Ne, ze, Ke, On, js = (On = class {
543
- constructor(e = {}) {
544
- ce(this, F);
545
- ce(this, Pe);
546
- ce(this, je);
547
- ce(this, He);
548
- ce(this, Ue);
549
- ce(this, Ne);
550
- ce(this, ze);
551
- ce(this, Ke);
552
- X(this, F, e.queryCache || new Es()), X(this, Pe, e.mutationCache || new Ds()), X(this, je, e.defaultOptions || {}), X(this, He, /* @__PURE__ */ new Map()), X(this, Ue, /* @__PURE__ */ new Map()), X(this, Ne, 0);
553
- }
554
- mount() {
555
- ut(this, Ne)._++, v(this, Ne) === 1 && (X(this, ze, Oo.subscribe(async (e) => {
556
- e && (await this.resumePausedMutations(), v(this, F).onFocus());
557
- })), X(this, Ke, xn.subscribe(async (e) => {
558
- e && (await this.resumePausedMutations(), v(this, F).onOnline());
559
- })));
560
- }
561
- unmount() {
562
- var e, t;
563
- ut(this, Ne)._--, v(this, Ne) === 0 && ((e = v(this, ze)) == null || e.call(this), X(this, ze, void 0), (t = v(this, Ke)) == null || t.call(this), X(this, Ke, void 0));
564
- }
565
- isFetching(e) {
566
- return v(this, F).findAll({ ...e, fetchStatus: "fetching" }).length;
567
- }
568
- isMutating(e) {
569
- return v(this, Pe).findAll({ ...e, status: "pending" }).length;
570
- }
571
- getQueryData(e) {
572
- var n;
573
- const t = this.defaultQueryOptions({ queryKey: e });
574
- return (n = v(this, F).get(t.queryHash)) == null ? void 0 : n.state.data;
575
- }
576
- ensureQueryData(e) {
577
- const t = this.getQueryData(e.queryKey);
578
- if (t === void 0)
579
- return this.fetchQuery(e);
580
- {
581
- const n = this.defaultQueryOptions(e), r = v(this, F).build(this, n);
582
- return e.revalidateIfStale && r.isStaleByTime(yn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
583
- }
584
- }
585
- getQueriesData(e) {
586
- return v(this, F).findAll(e).map(({ queryKey: t, state: n }) => {
587
- const r = n.data;
588
- return [t, r];
589
- });
590
- }
591
- setQueryData(e, t, n) {
592
- const r = this.defaultQueryOptions({ queryKey: e }), o = v(this, F).get(
593
- r.queryHash
594
- ), s = o == null ? void 0 : o.state.data, i = Io(t, s);
595
- if (i !== void 0)
596
- return v(this, F).build(this, r).setData(i, { ...n, manual: !0 });
597
- }
598
- setQueriesData(e, t, n) {
599
- return se.batch(
600
- () => v(this, F).findAll(e).map(({ queryKey: r }) => [
601
- r,
602
- this.setQueryData(r, t, n)
603
- ])
604
- );
605
- }
606
- getQueryState(e) {
607
- var n;
608
- const t = this.defaultQueryOptions({ queryKey: e });
609
- return (n = v(this, F).get(t.queryHash)) == null ? void 0 : n.state;
610
- }
611
- removeQueries(e) {
612
- const t = v(this, F);
613
- se.batch(() => {
614
- t.findAll(e).forEach((n) => {
615
- t.remove(n);
616
- });
617
- });
618
- }
619
- resetQueries(e, t) {
620
- const n = v(this, F), r = {
621
- type: "active",
622
- ...e
623
- };
624
- return se.batch(() => (n.findAll(e).forEach((o) => {
625
- o.reset();
626
- }), this.refetchQueries(r, t)));
627
- }
628
- cancelQueries(e = {}, t = {}) {
629
- const n = { revert: !0, ...t }, r = se.batch(
630
- () => v(this, F).findAll(e).map((o) => o.cancel(n))
631
- );
632
- return Promise.all(r).then(be).catch(be);
633
- }
634
- invalidateQueries(e = {}, t = {}) {
635
- return se.batch(() => {
636
- if (v(this, F).findAll(e).forEach((r) => {
637
- r.invalidate();
638
- }), e.refetchType === "none")
639
- return Promise.resolve();
640
- const n = {
641
- ...e,
642
- type: e.refetchType ?? e.type ?? "active"
643
- };
644
- return this.refetchQueries(n, t);
645
- });
646
- }
647
- refetchQueries(e = {}, t) {
648
- const n = {
649
- ...t,
650
- cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
651
- }, r = se.batch(
652
- () => v(this, F).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
653
- let s = o.fetch(void 0, n);
654
- return n.throwOnError || (s = s.catch(be)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
655
- })
656
- );
657
- return Promise.all(r).then(be);
658
- }
659
- fetchQuery(e) {
660
- const t = this.defaultQueryOptions(e);
661
- t.retry === void 0 && (t.retry = !1);
662
- const n = v(this, F).build(this, t);
663
- return n.isStaleByTime(
664
- yn(t.staleTime, n)
665
- ) ? n.fetch(t) : Promise.resolve(n.state.data);
666
- }
667
- prefetchQuery(e) {
668
- return this.fetchQuery(e).then(be).catch(be);
669
- }
670
- fetchInfiniteQuery(e) {
671
- return e.behavior = Cn(e.pages), this.fetchQuery(e);
672
- }
673
- prefetchInfiniteQuery(e) {
674
- return this.fetchInfiniteQuery(e).then(be).catch(be);
675
- }
676
- ensureInfiniteQueryData(e) {
677
- return e.behavior = Cn(e.pages), this.ensureQueryData(e);
678
- }
679
- resumePausedMutations() {
680
- return xn.isOnline() ? v(this, Pe).resumePausedMutations() : Promise.resolve();
681
- }
682
- getQueryCache() {
683
- return v(this, F);
684
- }
685
- getMutationCache() {
686
- return v(this, Pe);
687
- }
688
- getDefaultOptions() {
689
- return v(this, je);
690
- }
691
- setDefaultOptions(e) {
692
- X(this, je, e);
693
- }
694
- setQueryDefaults(e, t) {
695
- v(this, He).set(bn(e), {
696
- queryKey: e,
697
- defaultOptions: t
698
- });
699
- }
700
- getQueryDefaults(e) {
701
- const t = [...v(this, He).values()];
702
- let n = {};
703
- return t.forEach((r) => {
704
- Sn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
705
- }), n;
706
- }
707
- setMutationDefaults(e, t) {
708
- v(this, Ue).set(bn(e), {
709
- mutationKey: e,
710
- defaultOptions: t
711
- });
712
- }
713
- getMutationDefaults(e) {
714
- const t = [...v(this, Ue).values()];
715
- let n = {};
716
- return t.forEach((r) => {
717
- Sn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
718
- }), n;
719
- }
720
- defaultQueryOptions(e) {
721
- if (e._defaulted)
722
- return e;
723
- const t = {
724
- ...v(this, je).queries,
725
- ...this.getQueryDefaults(e.queryKey),
726
- ...e,
727
- _defaulted: !0
728
- };
729
- return t.queryHash || (t.queryHash = Wn(
730
- t.queryKey,
731
- t
732
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Ao && (t.enabled = !1), t;
733
- }
734
- defaultMutationOptions(e) {
735
- return e != null && e._defaulted ? e : {
736
- ...v(this, je).mutations,
737
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
738
- ...e,
739
- _defaulted: !0
740
- };
741
- }
742
- clear() {
743
- v(this, F).clear(), v(this, Pe).clear();
744
- }
745
- }, F = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), He = new WeakMap(), Ue = new WeakMap(), Ne = new WeakMap(), ze = new WeakMap(), Ke = new WeakMap(), On);
746
- const Ns = qn(null), Rt = {
747
- didCatch: !1,
748
- error: null
749
- };
750
- class Ts extends xo {
751
- constructor(t) {
752
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Rt;
753
- }
754
- static getDerivedStateFromError(t) {
755
- return {
756
- didCatch: !0,
757
- error: t
758
- };
759
- }
760
- resetErrorBoundary() {
761
- const {
762
- error: t
763
- } = this.state;
764
- if (t !== null) {
765
- for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
766
- s[i] = arguments[i];
767
- (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
768
- args: s,
769
- reason: "imperative-api"
770
- }), this.setState(Rt);
771
- }
772
- }
773
- componentDidCatch(t, n) {
774
- var r, o;
775
- (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
776
- }
777
- componentDidUpdate(t, n) {
778
- const {
779
- didCatch: r
780
- } = this.state, {
781
- resetKeys: o
782
- } = this.props;
783
- if (r && n.error !== null && _s(t.resetKeys, o)) {
784
- var s, i;
785
- (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
786
- next: o,
787
- prev: t.resetKeys,
788
- reason: "keys"
789
- }), this.setState(Rt);
790
- }
791
- }
792
- render() {
793
- const {
794
- children: t,
795
- fallbackRender: n,
796
- FallbackComponent: r,
797
- fallback: o
798
- } = this.props, {
799
- didCatch: s,
800
- error: i
801
- } = this.state;
802
- let l = t;
803
- if (s) {
804
- const u = {
805
- error: i,
806
- resetErrorBoundary: this.resetErrorBoundary
807
- };
808
- if (typeof n == "function")
809
- l = n(u);
810
- else if (r)
811
- l = gn(r, u);
812
- else if (o === null || yo(o))
813
- l = o;
814
- else
815
- throw i;
816
- }
817
- return gn(Ns.Provider, {
818
- value: {
819
- didCatch: s,
820
- error: i,
821
- resetErrorBoundary: this.resetErrorBoundary
822
- }
823
- }, l);
824
- }
825
- }
826
- function _s() {
827
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
828
- return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
829
- }
830
- const Os = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Is = (e) => "getRoutes" in e && typeof e.getRoutes == "function", As = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ks = (e) => "initialize" in e && typeof e.initialize == "function", $s = (e) => "getHead" in e && typeof e.getHead == "function", Fs = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ls = (e) => "getIdentities" in e && typeof e.getIdentities == "function", nr = new js();
831
- class Bs {
832
- constructor(t) {
833
- ae(this, "plugins");
834
- ae(this, "sidebars");
835
- ae(this, "topNavigation");
836
- ae(this, "meta");
837
- ae(this, "page");
838
- ae(this, "authentication");
839
- ae(this, "navigationPlugins");
840
- ae(this, "initialize", async () => {
841
- await Promise.all(
842
- this.plugins.filter(ks).map((t) => {
843
- var n;
844
- return (n = t.initialize) == null ? void 0 : n.call(t, this);
845
- })
846
- );
847
- });
848
- ae(this, "invalidateCache", async (t) => {
849
- await nr.invalidateQueries({ queryKey: t });
850
- });
851
- ae(this, "getApiIdentities", async () => (await Promise.all(
852
- this.plugins.filter(Ls).map((n) => n.getIdentities(this))
853
- )).flat());
854
- ae(this, "getPluginSidebar", async (t) => (await Promise.all(
855
- this.navigationPlugins.map(
856
- (r) => {
857
- var o;
858
- return (o = r.getSidebar) == null ? void 0 : o.call(r, Ze(t));
859
- }
860
- )
861
- )).flatMap((r) => r ?? []));
862
- ae(this, "signRequest", async (t) => {
863
- if (!this.authentication)
864
- throw new Error("No authentication provider configured");
865
- const n = await this.authentication.getAccessToken();
866
- return t.headers.set("Authorization", `Bearer ${n}`), t;
867
- });
868
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Is), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
869
- }
870
- }
871
- function Hs({ error: e, resetErrorBoundary: t }) {
872
- return /* @__PURE__ */ a.jsx(kn, { error: e });
873
- }
874
- const ft = globalThis;
875
- (!ft.requestIdleCallback || !ft.cancelIdleCallback) && (ft.requestIdleCallback = (e) => setTimeout(e, 1), ft.cancelIdleCallback = clearTimeout);
876
- var _t = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp", "PageDown", "End"], zs = [...Us, ...rr], Ks = {
877
- ltr: [..._t, "ArrowRight"],
878
- rtl: [..._t, "ArrowLeft"]
879
- }, qs = {
880
- ltr: ["ArrowLeft"],
881
- rtl: ["ArrowRight"]
882
- }, ot = "Menu", [et, Qs, Vs] = Za(ot), [ke, ar] = $n(ot, [
883
- Vs,
884
- Fn,
885
- Jn
886
- ]), st = Fn(), or = Jn(), [sr, Te] = ke(ot), [Gs, it] = ke(ot), ir = (e) => {
887
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = Ft(s), d = uo(o);
888
- return h.useEffect(() => {
889
- const R = () => {
890
- f.current = !0, document.addEventListener("pointerdown", M, { capture: !0, once: !0 }), document.addEventListener("pointermove", M, { capture: !0, once: !0 });
891
- }, M = () => f.current = !1;
892
- return document.addEventListener("keydown", R, { capture: !0 }), () => {
893
- document.removeEventListener("keydown", R, { capture: !0 }), document.removeEventListener("pointerdown", M, { capture: !0 }), document.removeEventListener("pointermove", M, { capture: !0 });
894
- };
895
- }, []), /* @__PURE__ */ a.jsx(Bn, { ...l, children: /* @__PURE__ */ a.jsx(
896
- sr,
897
- {
898
- scope: t,
899
- open: n,
900
- onOpenChange: c,
901
- content: u,
902
- onContentChange: m,
903
- children: /* @__PURE__ */ a.jsx(
904
- Gs,
905
- {
906
- scope: t,
907
- onClose: h.useCallback(() => c(!1), [c]),
908
- isUsingKeyboardRef: f,
909
- dir: d,
910
- modal: i,
911
- children: r
912
- }
913
- )
914
- }
915
- ) });
916
- };
917
- ir.displayName = ot;
918
- var Ws = "MenuAnchor", Kt = h.forwardRef(
919
- (e, t) => {
920
- const { __scopeMenu: n, ...r } = e, o = st(n);
921
- return /* @__PURE__ */ a.jsx(eo, { ...o, ...r, ref: t });
922
- }
923
- );
924
- Kt.displayName = Ws;
925
- var qt = "MenuPortal", [Ys, lr] = ke(qt, {
926
- forceMount: void 0
927
- }), cr = (e) => {
928
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(qt, t);
929
- return /* @__PURE__ */ a.jsx(Ys, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(bt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(fo, { asChild: !0, container: o, children: r }) }) });
930
- };
931
- cr.displayName = qt;
932
- var ue = "MenuContent", [Xs, Qt] = ke(ue), ur = h.forwardRef(
933
- (e, t) => {
934
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
935
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(Js, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(Zs, { ...o, ref: t }) }) }) });
936
- }
937
- ), Js = h.forwardRef(
938
- (e, t) => {
939
- const n = Te(ue, e.__scopeMenu), r = h.useRef(null), o = rt(t, r);
940
- return h.useEffect(() => {
941
- const s = r.current;
942
- if (s) return to(s);
943
- }, []), /* @__PURE__ */ a.jsx(
944
- Vt,
945
- {
946
- ...e,
947
- ref: o,
948
- trapFocus: n.open,
949
- disableOutsidePointerEvents: n.open,
950
- disableOutsideScroll: !0,
951
- onFocusOutside: A(
952
- e.onFocusOutside,
953
- (s) => s.preventDefault(),
954
- { checkForDefaultPrevented: !1 }
955
- ),
956
- onDismiss: () => n.onOpenChange(!1)
957
- }
958
- );
959
- }
960
- ), Zs = h.forwardRef((e, t) => {
961
- const n = Te(ue, e.__scopeMenu);
962
- return /* @__PURE__ */ a.jsx(
963
- Vt,
964
- {
965
- ...e,
966
- ref: t,
967
- trapFocus: !1,
968
- disableOutsidePointerEvents: !1,
969
- disableOutsideScroll: !1,
970
- onDismiss: () => n.onOpenChange(!1)
971
- }
972
- );
973
- }), Vt = h.forwardRef(
974
- (e, t) => {
975
- const {
976
- __scopeMenu: n,
977
- loop: r = !1,
978
- trapFocus: o,
979
- onOpenAutoFocus: s,
980
- onCloseAutoFocus: i,
981
- disableOutsidePointerEvents: l,
982
- onEntryFocus: u,
983
- onEscapeKeyDown: m,
984
- onPointerDownOutside: f,
985
- onFocusOutside: c,
986
- onInteractOutside: d,
987
- onDismiss: R,
988
- disableOutsideScroll: M,
989
- ...S
990
- } = e, _ = Te(ue, n), C = it(ue, n), k = st(n), P = or(n), g = Qs(n), [z, Z] = h.useState(null), y = h.useRef(null), j = rt(t, y, _.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), w = h.useRef("right"), V = h.useRef(0), G = M ? io : h.Fragment, te = M ? { as: lo, allowPinchZoom: !0 } : void 0, q = (x) => {
991
- var le, Re;
992
- const Q = B.current + x, ie = g().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), $e = di(Me, Q, pe), ye = (Re = ie.find((re) => re.textValue === $e)) == null ? void 0 : Re.ref.current;
993
- (function re(Fe) {
994
- B.current = Fe, window.clearTimeout(D.current), Fe !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
995
- })(Q), ye && setTimeout(() => ye.focus());
996
- };
997
- h.useEffect(() => () => window.clearTimeout(D.current), []), no();
998
- const Y = h.useCallback((x) => {
999
- var ie, de;
1000
- return w.current === ((ie = W.current) == null ? void 0 : ie.side) && hi(x, (de = W.current) == null ? void 0 : de.area);
1001
- }, []);
1002
- return /* @__PURE__ */ a.jsx(
1003
- Xs,
1004
- {
1005
- scope: n,
1006
- searchRef: B,
1007
- onItemEnter: h.useCallback(
1008
- (x) => {
1009
- Y(x) && x.preventDefault();
1010
- },
1011
- [Y]
1012
- ),
1013
- onItemLeave: h.useCallback(
1014
- (x) => {
1015
- var Q;
1016
- Y(x) || ((Q = y.current) == null || Q.focus(), Z(null));
1017
- },
1018
- [Y]
1019
- ),
1020
- onTriggerLeave: h.useCallback(
1021
- (x) => {
1022
- Y(x) && x.preventDefault();
1023
- },
1024
- [Y]
1025
- ),
1026
- pointerGraceTimerRef: K,
1027
- onPointerGraceIntentChange: h.useCallback((x) => {
1028
- W.current = x;
1029
- }, []),
1030
- children: /* @__PURE__ */ a.jsx(G, { ...te, children: /* @__PURE__ */ a.jsx(
1031
- ro,
1032
- {
1033
- asChild: !0,
1034
- trapped: o,
1035
- onMountAutoFocus: A(s, (x) => {
1036
- var Q;
1037
- x.preventDefault(), (Q = y.current) == null || Q.focus({ preventScroll: !0 });
1038
- }),
1039
- onUnmountAutoFocus: i,
1040
- children: /* @__PURE__ */ a.jsx(
1041
- ao,
1042
- {
1043
- asChild: !0,
1044
- disableOutsidePointerEvents: l,
1045
- onEscapeKeyDown: m,
1046
- onPointerDownOutside: f,
1047
- onFocusOutside: c,
1048
- onInteractOutside: d,
1049
- onDismiss: R,
1050
- children: /* @__PURE__ */ a.jsx(
1051
- Yo,
1052
- {
1053
- asChild: !0,
1054
- ...P,
1055
- dir: C.dir,
1056
- orientation: "vertical",
1057
- loop: r,
1058
- currentTabStopId: z,
1059
- onCurrentTabStopIdChange: Z,
1060
- onEntryFocus: A(u, (x) => {
1061
- C.isUsingKeyboardRef.current || x.preventDefault();
1062
- }),
1063
- preventScrollOnEntryFocus: !0,
1064
- children: /* @__PURE__ */ a.jsx(
1065
- oo,
1066
- {
1067
- role: "menu",
1068
- "aria-orientation": "vertical",
1069
- "data-state": Dr(_.open),
1070
- "data-radix-menu-content": "",
1071
- dir: C.dir,
1072
- ...k,
1073
- ...S,
1074
- ref: j,
1075
- style: { outline: "none", ...S.style },
1076
- onKeyDown: A(S.onKeyDown, (x) => {
1077
- const ie = x.target.closest("[data-radix-menu-content]") === x.currentTarget, de = x.ctrlKey || x.altKey || x.metaKey, pe = x.key.length === 1;
1078
- ie && (x.key === "Tab" && x.preventDefault(), !de && pe && q(x.key));
1079
- const Me = y.current;
1080
- if (x.target !== Me || !zs.includes(x.key)) return;
1081
- x.preventDefault();
1082
- const ye = g().filter((le) => !le.disabled).map((le) => le.ref.current);
1083
- rr.includes(x.key) && ye.reverse(), ci(ye);
1084
- }),
1085
- onBlur: A(e.onBlur, (x) => {
1086
- x.currentTarget.contains(x.target) || (window.clearTimeout(D.current), B.current = "");
1087
- }),
1088
- onPointerMove: A(
1089
- e.onPointerMove,
1090
- tt((x) => {
1091
- const Q = x.target, ie = V.current !== x.clientX;
1092
- if (x.currentTarget.contains(Q) && ie) {
1093
- const de = x.clientX > V.current ? "right" : "left";
1094
- w.current = de, V.current = x.clientX;
1095
- }
1096
- })
1097
- )
1098
- }
1099
- )
1100
- }
1101
- )
1102
- }
1103
- )
1104
- }
1105
- ) })
1106
- }
1107
- );
1108
- }
1109
- );
1110
- ur.displayName = ue;
1111
- var ei = "MenuGroup", Gt = h.forwardRef(
1112
- (e, t) => {
1113
- const { __scopeMenu: n, ...r } = e;
1114
- return /* @__PURE__ */ a.jsx(qe.div, { role: "group", ...r, ref: t });
1115
- }
1116
- );
1117
- Gt.displayName = ei;
1118
- var ti = "MenuLabel", dr = h.forwardRef(
1119
- (e, t) => {
1120
- const { __scopeMenu: n, ...r } = e;
1121
- return /* @__PURE__ */ a.jsx(qe.div, { ...r, ref: t });
1122
- }
1123
- );
1124
- dr.displayName = ti;
1125
- var wt = "MenuItem", Rn = "menu.itemSelect", St = h.forwardRef(
1126
- (e, t) => {
1127
- const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(wt, e.__scopeMenu), l = Qt(wt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1128
- const c = s.current;
1129
- if (!n && c) {
1130
- const d = new CustomEvent(Rn, { bubbles: !0, cancelable: !0 });
1131
- c.addEventListener(Rn, (R) => r == null ? void 0 : r(R), { once: !0 }), co(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1132
- }
1133
- };
1134
- return /* @__PURE__ */ a.jsx(
1135
- fr,
1136
- {
1137
- ...o,
1138
- ref: u,
1139
- disabled: n,
1140
- onClick: A(e.onClick, f),
1141
- onPointerDown: (c) => {
1142
- var d;
1143
- (d = e.onPointerDown) == null || d.call(e, c), m.current = !0;
1144
- },
1145
- onPointerUp: A(e.onPointerUp, (c) => {
1146
- var d;
1147
- m.current || (d = c.currentTarget) == null || d.click();
1148
- }),
1149
- onKeyDown: A(e.onKeyDown, (c) => {
1150
- const d = l.searchRef.current !== "";
1151
- n || d && c.key === " " || _t.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1152
- })
1153
- }
1154
- );
1155
- }
1156
- );
1157
- St.displayName = wt;
1158
- var fr = h.forwardRef(
1159
- (e, t) => {
1160
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Qt(wt, n), l = or(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, R] = h.useState("");
1161
- return h.useEffect(() => {
1162
- const M = u.current;
1163
- M && R((M.textContent ?? "").trim());
1164
- }, [s.children]), /* @__PURE__ */ a.jsx(
1165
- et.ItemSlot,
1166
- {
1167
- scope: n,
1168
- disabled: r,
1169
- textValue: o ?? d,
1170
- children: /* @__PURE__ */ a.jsx(Xo, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1171
- qe.div,
1172
- {
1173
- role: "menuitem",
1174
- "data-highlighted": f ? "" : void 0,
1175
- "aria-disabled": r || void 0,
1176
- "data-disabled": r ? "" : void 0,
1177
- ...s,
1178
- ref: m,
1179
- onPointerMove: A(
1180
- e.onPointerMove,
1181
- tt((M) => {
1182
- r ? i.onItemLeave(M) : (i.onItemEnter(M), M.defaultPrevented || M.currentTarget.focus({ preventScroll: !0 }));
1183
- })
1184
- ),
1185
- onPointerLeave: A(
1186
- e.onPointerLeave,
1187
- tt((M) => i.onItemLeave(M))
1188
- ),
1189
- onFocus: A(e.onFocus, () => c(!0)),
1190
- onBlur: A(e.onBlur, () => c(!1))
1191
- }
1192
- ) })
1193
- }
1194
- );
1195
- }
1196
- ), ni = "MenuCheckboxItem", hr = h.forwardRef(
1197
- (e, t) => {
1198
- const { checked: n = !1, onCheckedChange: r, ...o } = e;
1199
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1200
- St,
1201
- {
1202
- role: "menuitemcheckbox",
1203
- "aria-checked": xt(n) ? "mixed" : n,
1204
- ...o,
1205
- ref: t,
1206
- "data-state": Xt(n),
1207
- onSelect: A(
1208
- o.onSelect,
1209
- () => r == null ? void 0 : r(xt(n) ? !0 : !n),
1210
- { checkForDefaultPrevented: !1 }
1211
- )
1212
- }
1213
- ) });
1214
- }
1215
- );
1216
- hr.displayName = ni;
1217
- var pr = "MenuRadioGroup", [ri, ai] = ke(
1218
- pr,
1219
- { value: void 0, onValueChange: () => {
1220
- } }
1221
- ), mr = h.forwardRef(
1222
- (e, t) => {
1223
- const { value: n, onValueChange: r, ...o } = e, s = Ft(r);
1224
- return /* @__PURE__ */ a.jsx(ri, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Gt, { ...o, ref: t }) });
1225
- }
1226
- );
1227
- mr.displayName = pr;
1228
- var gr = "MenuRadioItem", vr = h.forwardRef(
1229
- (e, t) => {
1230
- const { value: n, ...r } = e, o = ai(gr, e.__scopeMenu), s = n === o.value;
1231
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1232
- St,
1233
- {
1234
- role: "menuitemradio",
1235
- "aria-checked": s,
1236
- ...r,
1237
- ref: t,
1238
- "data-state": Xt(s),
1239
- onSelect: A(
1240
- r.onSelect,
1241
- () => {
1242
- var i;
1243
- return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
1244
- },
1245
- { checkForDefaultPrevented: !1 }
1246
- )
1247
- }
1248
- ) });
1249
- }
1250
- );
1251
- vr.displayName = gr;
1252
- var Wt = "MenuItemIndicator", [wr, oi] = ke(
1253
- Wt,
1254
- { checked: !1 }
1255
- ), xr = h.forwardRef(
1256
- (e, t) => {
1257
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = oi(Wt, n);
1258
- return /* @__PURE__ */ a.jsx(
1259
- bt,
1260
- {
1261
- present: r || xt(s.checked) || s.checked === !0,
1262
- children: /* @__PURE__ */ a.jsx(
1263
- qe.span,
1264
- {
1265
- ...o,
1266
- ref: t,
1267
- "data-state": Xt(s.checked)
1268
- }
1269
- )
1270
- }
1271
- );
1272
- }
1273
- );
1274
- xr.displayName = Wt;
1275
- var si = "MenuSeparator", yr = h.forwardRef(
1276
- (e, t) => {
1277
- const { __scopeMenu: n, ...r } = e;
1278
- return /* @__PURE__ */ a.jsx(
1279
- qe.div,
1280
- {
1281
- role: "separator",
1282
- "aria-orientation": "horizontal",
1283
- ...r,
1284
- ref: t
1285
- }
1286
- );
1287
- }
1288
- );
1289
- yr.displayName = si;
1290
- var ii = "MenuArrow", br = h.forwardRef(
1291
- (e, t) => {
1292
- const { __scopeMenu: n, ...r } = e, o = st(n);
1293
- return /* @__PURE__ */ a.jsx(so, { ...o, ...r, ref: t });
1294
- }
1295
- );
1296
- br.displayName = ii;
1297
- var Yt = "MenuSub", [li, Sr] = ke(Yt), Cr = (e) => {
1298
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Yt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = Ft(o);
1299
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Bn, { ...i, children: /* @__PURE__ */ a.jsx(
1300
- sr,
1301
- {
1302
- scope: t,
1303
- open: r,
1304
- onOpenChange: c,
1305
- content: m,
1306
- onContentChange: f,
1307
- children: /* @__PURE__ */ a.jsx(
1308
- li,
1309
- {
1310
- scope: t,
1311
- contentId: vt(),
1312
- triggerId: vt(),
1313
- trigger: l,
1314
- onTriggerChange: u,
1315
- children: n
1316
- }
1317
- )
1318
- }
1319
- ) });
1320
- };
1321
- Cr.displayName = Yt;
1322
- var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1323
- (e, t) => {
1324
- const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Sr(Xe, e.__scopeMenu), s = Qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1325
- i.current && window.clearTimeout(i.current), i.current = null;
1326
- }, []);
1327
- return h.useEffect(() => f, [f]), h.useEffect(() => {
1328
- const c = l.current;
1329
- return () => {
1330
- window.clearTimeout(c), u(null);
1331
- };
1332
- }, [l, u]), /* @__PURE__ */ a.jsx(Kt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1333
- fr,
1334
- {
1335
- id: o.triggerId,
1336
- "aria-haspopup": "menu",
1337
- "aria-expanded": n.open,
1338
- "aria-controls": o.contentId,
1339
- "data-state": Dr(n.open),
1340
- ...e,
1341
- ref: Ln(t, o.onTriggerChange),
1342
- onClick: (c) => {
1343
- var d;
1344
- (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
1345
- },
1346
- onPointerMove: A(
1347
- e.onPointerMove,
1348
- tt((c) => {
1349
- s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1350
- n.onOpenChange(!0), f();
1351
- }, 100));
1352
- })
1353
- ),
1354
- onPointerLeave: A(
1355
- e.onPointerLeave,
1356
- tt((c) => {
1357
- var R, M;
1358
- f();
1359
- const d = (R = n.content) == null ? void 0 : R.getBoundingClientRect();
1360
- if (d) {
1361
- const S = (M = n.content) == null ? void 0 : M.dataset.side, _ = S === "right", C = _ ? -5 : 5, k = d[_ ? "left" : "right"], P = d[_ ? "right" : "left"];
1362
- s.onPointerGraceIntentChange({
1363
- area: [
1364
- // Apply a bleed on clientX to ensure that our exit point is
1365
- // consistently within polygon bounds
1366
- { x: c.clientX + C, y: c.clientY },
1367
- { x: k, y: d.top },
1368
- { x: P, y: d.top },
1369
- { x: P, y: d.bottom },
1370
- { x: k, y: d.bottom }
1371
- ],
1372
- side: S
1373
- }), window.clearTimeout(l.current), l.current = window.setTimeout(
1374
- () => s.onPointerGraceIntentChange(null),
1375
- 300
1376
- );
1377
- } else {
1378
- if (s.onTriggerLeave(c), c.defaultPrevented) return;
1379
- s.onPointerGraceIntentChange(null);
1380
- }
1381
- })
1382
- ),
1383
- onKeyDown: A(e.onKeyDown, (c) => {
1384
- var R;
1385
- const d = s.searchRef.current !== "";
1386
- e.disabled || d && c.key === " " || Ks[r.dir].includes(c.key) && (n.onOpenChange(!0), (R = n.content) == null || R.focus(), c.preventDefault());
1387
- })
1388
- }
1389
- ) });
1390
- }
1391
- );
1392
- Mr.displayName = Xe;
1393
- var Rr = "MenuSubContent", Er = h.forwardRef(
1394
- (e, t) => {
1395
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Sr(Rr, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1396
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1397
- Vt,
1398
- {
1399
- id: l.contentId,
1400
- "aria-labelledby": l.triggerId,
1401
- ...o,
1402
- ref: m,
1403
- align: "start",
1404
- side: i.dir === "rtl" ? "left" : "right",
1405
- disableOutsidePointerEvents: !1,
1406
- disableOutsideScroll: !1,
1407
- trapFocus: !1,
1408
- onOpenAutoFocus: (f) => {
1409
- var c;
1410
- i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), f.preventDefault();
1411
- },
1412
- onCloseAutoFocus: (f) => f.preventDefault(),
1413
- onFocusOutside: A(e.onFocusOutside, (f) => {
1414
- f.target !== l.trigger && s.onOpenChange(!1);
1415
- }),
1416
- onEscapeKeyDown: A(e.onEscapeKeyDown, (f) => {
1417
- i.onClose(), f.preventDefault();
1418
- }),
1419
- onKeyDown: A(e.onKeyDown, (f) => {
1420
- var R;
1421
- const c = f.currentTarget.contains(f.target), d = qs[i.dir].includes(f.key);
1422
- c && d && (s.onOpenChange(!1), (R = l.trigger) == null || R.focus(), f.preventDefault());
1423
- })
1424
- }
1425
- ) }) }) });
1426
- }
1427
- );
1428
- Er.displayName = Rr;
1429
- function Dr(e) {
1430
- return e ? "open" : "closed";
1431
- }
1432
- function xt(e) {
1433
- return e === "indeterminate";
1434
- }
1435
- function Xt(e) {
1436
- return xt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1437
- }
1438
- function ci(e) {
1439
- const t = document.activeElement;
1440
- for (const n of e)
1441
- if (n === t || (n.focus(), document.activeElement !== t)) return;
1442
- }
1443
- function ui(e, t) {
1444
- return e.map((n, r) => e[(t + r) % e.length]);
1445
- }
1446
- function di(e, t, n) {
1447
- const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1448
- let i = ui(e, Math.max(s, 0));
1449
- o.length === 1 && (i = i.filter((m) => m !== n));
1450
- const u = i.find(
1451
- (m) => m.toLowerCase().startsWith(o.toLowerCase())
1452
- );
1453
- return u !== n ? u : void 0;
1454
- }
1455
- function fi(e, t) {
1456
- const { x: n, y: r } = e;
1457
- let o = !1;
1458
- for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1459
- const l = t[s].x, u = t[s].y, m = t[i].x, f = t[i].y;
1460
- u > r != f > r && n < (m - l) * (r - u) / (f - u) + l && (o = !o);
1461
- }
1462
- return o;
1463
- }
1464
- function hi(e, t) {
1465
- if (!t) return !1;
1466
- const n = { x: e.clientX, y: e.clientY };
1467
- return fi(n, t);
1468
- }
1469
- function tt(e) {
1470
- return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1471
- }
1472
- var pi = ir, mi = Kt, gi = cr, vi = ur, wi = Gt, xi = dr, yi = St, bi = hr, Si = mr, Ci = vr, Mi = xr, Ri = yr, Ei = br, Di = Cr, Pi = Mr, ji = Er, Jt = "DropdownMenu", [Ni, uc] = $n(
1473
- Jt,
1474
- [ar]
1475
- ), J = ar(), [Ti, Pr] = Ni(Jt), jr = (e) => {
1476
- const {
1477
- __scopeDropdownMenu: t,
1478
- children: n,
1479
- dir: r,
1480
- open: o,
1481
- defaultOpen: s,
1482
- onOpenChange: i,
1483
- modal: l = !0
1484
- } = e, u = J(t), m = h.useRef(null), [f = !1, c] = Hn({
1485
- prop: o,
1486
- defaultProp: s,
1487
- onChange: i
1488
- });
1489
- return /* @__PURE__ */ a.jsx(
1490
- Ti,
1491
- {
1492
- scope: t,
1493
- triggerId: vt(),
1494
- triggerRef: m,
1495
- contentId: vt(),
1496
- open: f,
1497
- onOpenChange: c,
1498
- onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1499
- modal: l,
1500
- children: /* @__PURE__ */ a.jsx(pi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1501
- }
1502
- );
1503
- };
1504
- jr.displayName = Jt;
1505
- var Nr = "DropdownMenuTrigger", Tr = h.forwardRef(
1506
- (e, t) => {
1507
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Pr(Nr, n), i = J(n);
1508
- return /* @__PURE__ */ a.jsx(mi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1509
- qe.button,
1510
- {
1511
- type: "button",
1512
- id: s.triggerId,
1513
- "aria-haspopup": "menu",
1514
- "aria-expanded": s.open,
1515
- "aria-controls": s.open ? s.contentId : void 0,
1516
- "data-state": s.open ? "open" : "closed",
1517
- "data-disabled": r ? "" : void 0,
1518
- disabled: r,
1519
- ...o,
1520
- ref: Ln(t, s.triggerRef),
1521
- onPointerDown: A(e.onPointerDown, (l) => {
1522
- !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1523
- }),
1524
- onKeyDown: A(e.onKeyDown, (l) => {
1525
- r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
1526
- })
1527
- }
1528
- ) });
1529
- }
1530
- );
1531
- Tr.displayName = Nr;
1532
- var _i = "DropdownMenuPortal", _r = (e) => {
1533
- const { __scopeDropdownMenu: t, ...n } = e, r = J(t);
1534
- return /* @__PURE__ */ a.jsx(gi, { ...r, ...n });
1535
- };
1536
- _r.displayName = _i;
1537
- var Or = "DropdownMenuContent", Ir = h.forwardRef(
1538
- (e, t) => {
1539
- const { __scopeDropdownMenu: n, ...r } = e, o = Pr(Or, n), s = J(n), i = h.useRef(!1);
1540
- return /* @__PURE__ */ a.jsx(
1541
- vi,
1542
- {
1543
- id: o.contentId,
1544
- "aria-labelledby": o.triggerId,
1545
- ...s,
1546
- ...r,
1547
- ref: t,
1548
- onCloseAutoFocus: A(e.onCloseAutoFocus, (l) => {
1549
- var u;
1550
- i.current || (u = o.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1551
- }),
1552
- onInteractOutside: A(e.onInteractOutside, (l) => {
1553
- const u = l.detail.originalEvent, m = u.button === 0 && u.ctrlKey === !0, f = u.button === 2 || m;
1554
- (!o.modal || f) && (i.current = !0);
1555
- }),
1556
- style: {
1557
- ...e.style,
1558
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1559
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1560
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1561
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1562
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1563
- }
1564
- }
1565
- );
1566
- }
1567
- );
1568
- Ir.displayName = Or;
1569
- var Oi = "DropdownMenuGroup", Ii = h.forwardRef(
1570
- (e, t) => {
1571
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1572
- return /* @__PURE__ */ a.jsx(wi, { ...o, ...r, ref: t });
1573
- }
1574
- );
1575
- Ii.displayName = Oi;
1576
- var Ai = "DropdownMenuLabel", Ar = h.forwardRef(
1577
- (e, t) => {
1578
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1579
- return /* @__PURE__ */ a.jsx(xi, { ...o, ...r, ref: t });
1580
- }
1581
- );
1582
- Ar.displayName = Ai;
1583
- var ki = "DropdownMenuItem", kr = h.forwardRef(
1584
- (e, t) => {
1585
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1586
- return /* @__PURE__ */ a.jsx(yi, { ...o, ...r, ref: t });
1587
- }
1588
- );
1589
- kr.displayName = ki;
1590
- var $i = "DropdownMenuCheckboxItem", $r = h.forwardRef((e, t) => {
1591
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1592
- return /* @__PURE__ */ a.jsx(bi, { ...o, ...r, ref: t });
1593
- });
1594
- $r.displayName = $i;
1595
- var Fi = "DropdownMenuRadioGroup", Li = h.forwardRef((e, t) => {
1596
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1597
- return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1598
- });
1599
- Li.displayName = Fi;
1600
- var Bi = "DropdownMenuRadioItem", Fr = h.forwardRef((e, t) => {
1601
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1602
- return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1603
- });
1604
- Fr.displayName = Bi;
1605
- var Hi = "DropdownMenuItemIndicator", Lr = h.forwardRef((e, t) => {
1606
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1607
- return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1608
- });
1609
- Lr.displayName = Hi;
1610
- var Ui = "DropdownMenuSeparator", Br = h.forwardRef((e, t) => {
1611
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1612
- return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1613
- });
1614
- Br.displayName = Ui;
1615
- var zi = "DropdownMenuArrow", Ki = h.forwardRef(
1616
- (e, t) => {
1617
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1618
- return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1619
- }
1620
- );
1621
- Ki.displayName = zi;
1622
- var qi = (e) => {
1623
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = J(t), [l = !1, u] = Hn({
1624
- prop: r,
1625
- defaultProp: s,
1626
- onChange: o
1627
- });
1628
- return /* @__PURE__ */ a.jsx(Di, { ...i, open: l, onOpenChange: u, children: n });
1629
- }, Qi = "DropdownMenuSubTrigger", Hr = h.forwardRef((e, t) => {
1630
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1631
- return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1632
- });
1633
- Hr.displayName = Qi;
1634
- var Vi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1635
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1636
- return /* @__PURE__ */ a.jsx(
1637
- ji,
1638
- {
1639
- ...o,
1640
- ...r,
1641
- ref: t,
1642
- style: {
1643
- ...e.style,
1644
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1645
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1646
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1647
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1648
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1649
- }
1650
- }
1651
- );
1652
- });
1653
- Ur.displayName = Vi;
1654
- var Gi = jr, Wi = Tr, zr = _r, Kr = Ir, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Yi = qi, Xr = Hr, Jr = Ur;
1655
- const Xi = Gi, Ji = Wi, Zi = zr, el = Yi, Zr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1656
- Xr,
1657
- {
1658
- ref: o,
1659
- className: O(
1660
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1661
- t && "pl-8",
1662
- e
1663
- ),
1664
- ...r,
1665
- children: [
1666
- n,
1667
- /* @__PURE__ */ a.jsx(Xn, { className: "ml-auto h-4 w-4" })
1668
- ]
1669
- }
1670
- ));
1671
- Zr.displayName = Xr.displayName;
1672
- const ea = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1673
- Jr,
1674
- {
1675
- ref: n,
1676
- className: O(
1677
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1678
- e
1679
- ),
1680
- ...t
1681
- }
1682
- ));
1683
- ea.displayName = Jr.displayName;
1684
- const ta = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(zr, { children: /* @__PURE__ */ a.jsx(
1685
- Kr,
1686
- {
1687
- ref: r,
1688
- sideOffset: t,
1689
- className: O(
1690
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1691
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1692
- e
1693
- ),
1694
- ...n
1695
- }
1696
- ) }));
1697
- ta.displayName = Kr.displayName;
1698
- const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1699
- Qr,
1700
- {
1701
- ref: r,
1702
- className: O(
1703
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1704
- t && "pl-8",
1705
- e
1706
- ),
1707
- ...n
1708
- }
1709
- ));
1710
- na.displayName = Qr.displayName;
1711
- const tl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1712
- Vr,
1713
- {
1714
- ref: o,
1715
- className: O(
1716
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1717
- e
1718
- ),
1719
- checked: n,
1720
- ...r,
1721
- children: [
1722
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Ho, { className: "h-4 w-4" }) }) }),
1723
- t
1724
- ]
1725
- }
1726
- ));
1727
- tl.displayName = Vr.displayName;
1728
- const nl = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1729
- Gr,
1730
- {
1731
- ref: r,
1732
- className: O(
1733
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1734
- e
1735
- ),
1736
- ...n,
1737
- children: [
1738
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Uo, { className: "h-4 w-4 fill-current" }) }) }),
1739
- t
1740
- ]
1741
- }
1742
- ));
1743
- nl.displayName = Gr.displayName;
1744
- const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1745
- qr,
1746
- {
1747
- ref: r,
1748
- className: O(
1749
- "px-2 py-1.5 text-sm font-semibold",
1750
- t && "pl-8",
1751
- e
1752
- ),
1753
- ...n
1754
- }
1755
- ));
1756
- ra.displayName = qr.displayName;
1757
- const aa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1758
- Yr,
1759
- {
1760
- ref: n,
1761
- className: O("-mx-1 my-1 h-px bg-muted", e),
1762
- ...t
1763
- }
1764
- ));
1765
- aa.displayName = Yr.displayName;
1766
- const En = {
1767
- info: "bg-blue-500",
1768
- note: "bg-gray-500",
1769
- tip: "bg-green-600",
1770
- caution: "bg-orange-500",
1771
- danger: "bg-rose-500"
1772
- }, rl = () => {
1773
- const { page: e } = Ae(), [t, n] = Ie(!0);
1774
- if (!(e != null && e.banner) || !t)
1775
- return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1776
- const r = e.banner.color && e.banner.color in En ? En[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
1777
- return /* @__PURE__ */ a.jsxs(
1778
- "div",
1779
- {
1780
- className: O(
1781
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1782
- r
1783
- ),
1784
- style: o,
1785
- children: [
1786
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: e.banner.message }),
1787
- e.banner.dismissible && /* @__PURE__ */ a.jsx(
1788
- "button",
1789
- {
1790
- type: "button",
1791
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1792
- onClick: () => n(!1),
1793
- children: /* @__PURE__ */ a.jsx(zo, { size: 16 })
1794
- }
1795
- )
1796
- ]
1797
- }
1798
- );
1799
- };
1800
- function al(e) {
1801
- if (typeof document > "u") return;
1802
- let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1803
- n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
1804
- }
1805
- const oa = p.createContext({
1806
- drawerRef: {
1807
- current: null
1808
- },
1809
- overlayRef: {
1810
- current: null
1811
- },
1812
- onPress: () => {
1813
- },
1814
- onRelease: () => {
1815
- },
1816
- onDrag: () => {
1817
- },
1818
- onNestedDrag: () => {
1819
- },
1820
- onNestedOpenChange: () => {
1821
- },
1822
- onNestedRelease: () => {
1823
- },
1824
- openProp: void 0,
1825
- dismissible: !1,
1826
- isOpen: !1,
1827
- isDragging: !1,
1828
- keyboardIsOpen: {
1829
- current: !1
1830
- },
1831
- snapPointsOffset: null,
1832
- snapPoints: null,
1833
- handleOnly: !1,
1834
- modal: !1,
1835
- shouldFade: !1,
1836
- activeSnapPoint: null,
1837
- onOpenChange: () => {
1838
- },
1839
- setActiveSnapPoint: () => {
1840
- },
1841
- closeDrawer: () => {
1842
- },
1843
- direction: "bottom",
1844
- shouldAnimate: {
1845
- current: !0
1846
- },
1847
- shouldScaleBackground: !1,
1848
- setBackgroundColorOnScale: !0,
1849
- noBodyStyles: !1,
1850
- container: null,
1851
- autoFocus: !1
1852
- }), Qe = () => {
1853
- const e = p.useContext(oa);
1854
- if (!e)
1855
- throw new Error("useDrawerContext must be used within a Drawer.Root");
1856
- return e;
1857
- };
1858
- al(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1859
- [data-state=closed]
1860
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
1861
- function ol() {
1862
- const e = navigator.userAgent;
1863
- return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
1864
- /FxiOS/.test(e));
1865
- }
1866
- function sl() {
1867
- return Zt(/^Mac/);
1868
- }
1869
- function il() {
1870
- return Zt(/^iPhone/);
1871
- }
1872
- function Dn() {
1873
- return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
1874
- }
1875
- function ll() {
1876
- return Zt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1877
- sl() && navigator.maxTouchPoints > 1;
1878
- }
1879
- function sa() {
1880
- return il() || ll();
1881
- }
1882
- function Zt(e) {
1883
- return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1884
- }
1885
- const cl = 24, ul = typeof window < "u" ? bo : Ce;
1886
- function Pn(...e) {
1887
- return (...t) => {
1888
- for (let n of e)
1889
- typeof n == "function" && n(...t);
1890
- };
1891
- }
1892
- const Et = typeof document < "u" && window.visualViewport;
1893
- function jn(e) {
1894
- let t = window.getComputedStyle(e);
1895
- return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
1896
- }
1897
- function ia(e) {
1898
- for (jn(e) && (e = e.parentElement); e && !jn(e); )
1899
- e = e.parentElement;
1900
- return e || document.scrollingElement || document.documentElement;
1901
- }
1902
- const dl = /* @__PURE__ */ new Set([
1903
- "checkbox",
1904
- "radio",
1905
- "range",
1906
- "color",
1907
- "file",
1908
- "image",
1909
- "button",
1910
- "submit",
1911
- "reset"
1912
- ]);
1913
- let ht = 0, Dt;
1914
- function fl(e = {}) {
1915
- let { isDisabled: t } = e;
1916
- ul(() => {
1917
- if (!t)
1918
- return ht++, ht === 1 && sa() && (Dt = hl()), () => {
1919
- ht--, ht === 0 && (Dt == null || Dt());
1920
- };
1921
- }, [
1922
- t
1923
- ]);
1924
- }
1925
- function hl() {
1926
- let e, t = 0, n = (c) => {
1927
- e = ia(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1928
- }, r = (c) => {
1929
- if (!e || e === document.documentElement || e === document.body) {
1930
- c.preventDefault();
1931
- return;
1932
- }
1933
- let d = c.changedTouches[0].pageY, R = e.scrollTop, M = e.scrollHeight - e.clientHeight;
1934
- M !== 0 && ((R <= 0 && d > t || R >= M && d < t) && c.preventDefault(), t = d);
1935
- }, o = (c) => {
1936
- let d = c.target;
1937
- Ot(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1938
- d.style.transform = "";
1939
- }));
1940
- }, s = (c) => {
1941
- let d = c.target;
1942
- Ot(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1943
- d.style.transform = "", Et && (Et.height < window.innerHeight ? requestAnimationFrame(() => {
1944
- Nn(d);
1945
- }) : Et.addEventListener("resize", () => Nn(d), {
1946
- once: !0
1947
- }));
1948
- }));
1949
- }, i = () => {
1950
- window.scrollTo(0, 0);
1951
- }, l = window.pageXOffset, u = window.pageYOffset, m = Pn(pl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1952
- window.scrollTo(0, 0);
1953
- let f = Pn(We(document, "touchstart", n, {
1954
- passive: !1,
1955
- capture: !0
1956
- }), We(document, "touchmove", r, {
1957
- passive: !1,
1958
- capture: !0
1959
- }), We(document, "touchend", o, {
1960
- passive: !1,
1961
- capture: !0
1962
- }), We(document, "focus", s, !0), We(window, "scroll", i));
1963
- return () => {
1964
- m(), f(), window.scrollTo(l, u);
1965
- };
1966
- }
1967
- function pl(e, t, n) {
1968
- let r = e.style[t];
1969
- return e.style[t] = n, () => {
1970
- e.style[t] = r;
1971
- };
1972
- }
1973
- function We(e, t, n, r) {
1974
- return e.addEventListener(t, n, r), () => {
1975
- e.removeEventListener(t, n, r);
1976
- };
1977
- }
1978
- function Nn(e) {
1979
- let t = document.scrollingElement || document.documentElement;
1980
- for (; e && e !== t; ) {
1981
- let n = ia(e);
1982
- if (n !== document.documentElement && n !== document.body && n !== e) {
1983
- let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1984
- const i = n.getBoundingClientRect().bottom + cl;
1985
- s > i && (n.scrollTop += o - r);
1986
- }
1987
- e = n.parentElement;
1988
- }
1989
- }
1990
- function Ot(e) {
1991
- return e instanceof HTMLInputElement && !dl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1992
- }
1993
- function ml(e, t) {
1994
- typeof e == "function" ? e(t) : e != null && (e.current = t);
1995
- }
1996
- function gl(...e) {
1997
- return (t) => e.forEach((n) => ml(n, t));
1998
- }
1999
- function la(...e) {
2000
- return h.useCallback(gl(...e), e);
2001
- }
2002
- const ca = /* @__PURE__ */ new WeakMap();
2003
- function H(e, t, n = !1) {
2004
- if (!e || !(e instanceof HTMLElement)) return;
2005
- let r = {};
2006
- Object.entries(t).forEach(([o, s]) => {
2007
- if (o.startsWith("--")) {
2008
- e.style.setProperty(o, s);
2009
- return;
2010
- }
2011
- r[o] = e.style[o], e.style[o] = s;
2012
- }), !n && ca.set(e, r);
2013
- }
2014
- function vl(e, t) {
2015
- if (!e || !(e instanceof HTMLElement)) return;
2016
- let n = ca.get(e);
2017
- n && (e.style[t] = n[t]);
2018
- }
2019
- const U = (e) => {
2020
- switch (e) {
2021
- case "top":
2022
- case "bottom":
2023
- return !0;
2024
- case "left":
2025
- case "right":
2026
- return !1;
2027
- default:
2028
- return e;
2029
- }
2030
- };
2031
- function pt(e, t) {
2032
- if (!e)
2033
- return null;
2034
- const n = window.getComputedStyle(e), r = (
2035
- // @ts-ignore
2036
- n.transform || n.webkitTransform || n.mozTransform
2037
- );
2038
- let o = r.match(/^matrix3d\((.+)\)$/);
2039
- return o ? parseFloat(o[1].split(", ")[U(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[U(t) ? 5 : 4]) : null);
2040
- }
2041
- function wl(e) {
2042
- return 8 * (Math.log(e + 1) - 2);
2043
- }
2044
- function Pt(e, t) {
2045
- if (!e) return () => {
2046
- };
2047
- const n = e.style.cssText;
2048
- return Object.assign(e.style, t), () => {
2049
- e.style.cssText = n;
2050
- };
2051
- }
2052
- function xl(...e) {
2053
- return (...t) => {
2054
- for (const n of e)
2055
- typeof n == "function" && n(...t);
2056
- };
2057
- }
2058
- const $ = {
2059
- DURATION: 0.5,
2060
- EASE: [
2061
- 0.32,
2062
- 0.72,
2063
- 0,
2064
- 1
2065
- ]
2066
- }, ua = 0.4, yl = 0.25, bl = 100, da = 8, Oe = 16, It = 26, jt = "vaul-dragging";
2067
- function fa(e) {
2068
- const t = p.useRef(e);
2069
- return p.useEffect(() => {
2070
- t.current = e;
2071
- }), p.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2072
- }
2073
- function Sl({ defaultProp: e, onChange: t }) {
2074
- const n = p.useState(e), [r] = n, o = p.useRef(r), s = fa(t);
2075
- return p.useEffect(() => {
2076
- o.current !== r && (s(r), o.current = r);
2077
- }, [
2078
- r,
2079
- o,
2080
- s
2081
- ]), n;
2082
- }
2083
- function ha({ prop: e, defaultProp: t, onChange: n = () => {
2084
- } }) {
2085
- const [r, o] = Sl({
2086
- defaultProp: t,
2087
- onChange: n
2088
- }), s = e !== void 0, i = s ? e : r, l = fa(n), u = p.useCallback((m) => {
2089
- if (s) {
2090
- const c = typeof m == "function" ? m(e) : m;
2091
- c !== e && l(c);
2092
- } else
2093
- o(m);
2094
- }, [
2095
- s,
2096
- e,
2097
- o,
2098
- l
2099
- ]);
2100
- return [
2101
- i,
2102
- u
2103
- ];
2104
- }
2105
- function Cl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2106
- const [f, c] = ha({
2107
- prop: e,
2108
- defaultProp: n == null ? void 0 : n[0],
2109
- onChange: t
2110
- }), [d, R] = p.useState(typeof window < "u" ? {
2111
- innerWidth: window.innerWidth,
2112
- innerHeight: window.innerHeight
2113
- } : void 0);
2114
- p.useEffect(() => {
2115
- function y() {
2116
- R({
2117
- innerWidth: window.innerWidth,
2118
- innerHeight: window.innerHeight
2119
- });
2120
- }
2121
- return window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
2122
- }, []);
2123
- const M = p.useMemo(() => f === (n == null ? void 0 : n[n.length - 1]) || null, [
2124
- n,
2125
- f
2126
- ]), S = p.useMemo(() => {
2127
- var y;
2128
- return (y = n == null ? void 0 : n.findIndex((j) => j === f)) != null ? y : null;
2129
- }, [
2130
- n,
2131
- f
2132
- ]), _ = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === f || !n, C = p.useMemo(() => {
2133
- const y = u ? {
2134
- width: u.getBoundingClientRect().width,
2135
- height: u.getBoundingClientRect().height
2136
- } : typeof window < "u" ? {
2137
- width: window.innerWidth,
2138
- height: window.innerHeight
2139
- } : {
2140
- width: 0,
2141
- height: 0
2142
- };
2143
- var j;
2144
- return (j = n == null ? void 0 : n.map((D) => {
2145
- const B = typeof D == "string";
2146
- let K = 0;
2147
- if (B && (K = parseInt(D, 10)), U(l)) {
2148
- const w = B ? K : d ? D * y.height : 0;
2149
- return d ? l === "bottom" ? y.height - w : -y.height + w : w;
2150
- }
2151
- const W = B ? K : d ? D * y.width : 0;
2152
- return d ? l === "right" ? y.width - W : -y.width + W : W;
2153
- })) != null ? j : [];
2154
- }, [
2155
- n,
2156
- d,
2157
- u
2158
- ]), k = p.useMemo(() => S !== null ? C == null ? void 0 : C[S] : null, [
2159
- C,
2160
- S
2161
- ]), P = p.useCallback((y) => {
2162
- var j;
2163
- const D = (j = C == null ? void 0 : C.findIndex((B) => B === y)) != null ? j : null;
2164
- i(D), H(r.current, {
2165
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2166
- transform: U(l) ? `translate3d(0, ${y}px, 0)` : `translate3d(${y}px, 0, 0)`
2167
- }), C && D !== C.length - 1 && s !== void 0 && D !== s && D < s ? H(o.current, {
2168
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2169
- opacity: "0"
2170
- }) : H(o.current, {
2171
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2172
- opacity: "1"
2173
- }), c(n == null ? void 0 : n[Math.max(D, 0)]);
2174
- }, [
2175
- r.current,
2176
- n,
2177
- C,
2178
- s,
2179
- o,
2180
- c
2181
- ]);
2182
- p.useEffect(() => {
2183
- if (f || e) {
2184
- var y;
2185
- const j = (y = n == null ? void 0 : n.findIndex((D) => D === e || D === f)) != null ? y : -1;
2186
- C && j !== -1 && typeof C[j] == "number" && P(C[j]);
2187
- }
2188
- }, [
2189
- f,
2190
- e,
2191
- n,
2192
- C,
2193
- P
2194
- ]);
2195
- function g({ draggedDistance: y, closeDrawer: j, velocity: D, dismissible: B }) {
2196
- if (s === void 0) return;
2197
- const K = l === "bottom" || l === "right" ? (k ?? 0) - y : (k ?? 0) + y, W = S === s - 1, w = S === 0, V = y > 0;
2198
- if (W && H(o.current, {
2199
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
2200
- }), !m && D > 2 && !V) {
2201
- B ? j() : P(C[0]);
2202
- return;
2203
- }
2204
- if (!m && D > 2 && V && C && n) {
2205
- P(C[n.length - 1]);
2206
- return;
2207
- }
2208
- const G = C == null ? void 0 : C.reduce((q, Y) => typeof q != "number" || typeof Y != "number" ? q : Math.abs(Y - K) < Math.abs(q - K) ? Y : q), te = U(l) ? window.innerHeight : window.innerWidth;
2209
- if (D > ua && Math.abs(y) < te * 0.4) {
2210
- const q = V ? 1 : -1;
2211
- if (q > 0 && M && n) {
2212
- P(C[n.length - 1]);
2213
- return;
2214
- }
2215
- if (w && q < 0 && B && j(), S === null) return;
2216
- P(C[S + q]);
2217
- return;
2218
- }
2219
- P(G);
2220
- }
2221
- function z({ draggedDistance: y }) {
2222
- if (k === null) return;
2223
- const j = l === "bottom" || l === "right" ? k - y : k + y;
2224
- (l === "bottom" || l === "right") && j < C[C.length - 1] || (l === "top" || l === "left") && j > C[C.length - 1] || H(r.current, {
2225
- transform: U(l) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2226
- });
2227
- }
2228
- function Z(y, j) {
2229
- if (!n || typeof S != "number" || !C || s === void 0) return null;
2230
- const D = S === s - 1;
2231
- if (S >= s && j)
2232
- return 0;
2233
- if (D && !j) return 1;
2234
- if (!_ && !D) return null;
2235
- const K = D ? S + 1 : S - 1, W = D ? C[K] - C[K - 1] : C[K + 1] - C[K], w = y / Math.abs(W);
2236
- return D ? 1 - w : w;
2237
- }
2238
- return {
2239
- isLastSnapPoint: M,
2240
- activeSnapPoint: f,
2241
- shouldFade: _,
2242
- getPercentageDragged: Z,
2243
- setActiveSnapPoint: c,
2244
- activeSnapPointIndex: S,
2245
- onRelease: g,
2246
- onDrag: z,
2247
- snapPointsOffset: C
2248
- };
2249
- }
2250
- const Ml = () => () => {
2251
- };
2252
- function Rl() {
2253
- const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qe(), s = p.useRef(null), i = mt(() => document.body.style.backgroundColor, []);
2254
- function l() {
2255
- return (window.innerWidth - It) / window.innerWidth;
2256
- }
2257
- p.useEffect(() => {
2258
- if (t && n) {
2259
- s.current && clearTimeout(s.current);
2260
- const u = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
2261
- if (!u) return;
2262
- xl(r && !o ? Pt(document.body, {
2263
- background: "black"
2264
- }) : Ml, Pt(u, {
2265
- transformOrigin: U(e) ? "top" : "left",
2266
- transitionProperty: "transform, border-radius",
2267
- transitionDuration: `${$.DURATION}s`,
2268
- transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
2269
- }));
2270
- const m = Pt(u, {
2271
- borderRadius: `${da}px`,
2272
- overflow: "hidden",
2273
- ...U(e) ? {
2274
- transform: `scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
2275
- } : {
2276
- transform: `scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
2277
- }
2278
- });
2279
- return () => {
2280
- m(), s.current = window.setTimeout(() => {
2281
- i ? document.body.style.background = i : document.body.style.removeProperty("background");
2282
- }, $.DURATION * 1e3);
2283
- };
2284
- }
2285
- }, [
2286
- t,
2287
- n,
2288
- i
2289
- ]);
2290
- }
2291
- let Ye = null;
2292
- function El({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2293
- const [i, l] = p.useState(() => typeof window < "u" ? window.location.href : ""), u = p.useRef(0), m = p.useCallback(() => {
2294
- if (Dn() && Ye === null && e && !s) {
2295
- Ye = {
2296
- position: document.body.style.position,
2297
- top: document.body.style.top,
2298
- left: document.body.style.left,
2299
- height: document.body.style.height,
2300
- right: "unset"
2301
- };
2302
- const { scrollX: c, innerHeight: d } = window;
2303
- document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
2304
- top: `${-u.current}px`,
2305
- left: `${-c}px`,
2306
- right: "0px",
2307
- height: "auto"
2308
- }), window.setTimeout(() => window.requestAnimationFrame(() => {
2309
- const R = d - window.innerHeight;
2310
- R && u.current >= d && (document.body.style.top = `${-(u.current + R)}px`);
2311
- }), 300);
2312
- }
2313
- }, [
2314
- e
2315
- ]), f = p.useCallback(() => {
2316
- if (Dn() && Ye !== null && !s) {
2317
- const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2318
- Object.assign(document.body.style, Ye), window.requestAnimationFrame(() => {
2319
- if (o && i !== window.location.href) {
2320
- l(window.location.href);
2321
- return;
2322
- }
2323
- window.scrollTo(d, c);
2324
- }), Ye = null;
2325
- }
2326
- }, [
2327
- i
2328
- ]);
2329
- return p.useEffect(() => {
2330
- function c() {
2331
- u.current = window.scrollY;
2332
- }
2333
- return c(), window.addEventListener("scroll", c), () => {
2334
- window.removeEventListener("scroll", c);
2335
- };
2336
- }, []), p.useEffect(() => {
2337
- if (t)
2338
- return () => {
2339
- typeof document > "u" || document.querySelector("[data-vaul-drawer]") || f();
2340
- };
2341
- }, [
2342
- t,
2343
- f
2344
- ]), p.useEffect(() => {
2345
- n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && m(), t || window.setTimeout(() => {
2346
- f();
2347
- }, 500)) : f());
2348
- }, [
2349
- e,
2350
- r,
2351
- i,
2352
- t,
2353
- n,
2354
- m,
2355
- f
2356
- ]), {
2357
- restorePositionSetting: f
2358
- };
2359
- }
2360
- function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = yl, scrollLockTimeout: m = bl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: R, setActiveSnapPoint: M, fixed: S, modal: _ = !0, onClose: C, nested: k, noBodyStyles: P = !1, direction: g = "bottom", defaultOpen: z = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: y = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2361
- var w, V;
2362
- const [G = !1, te] = ha({
2363
- defaultProp: z,
2364
- prop: e,
2365
- onChange: (b) => {
2366
- t == null || t(b), !b && !k && _a(), setTimeout(() => {
2367
- B == null || B(b);
2368
- }, $.DURATION * 1e3), b && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
2369
- document.body.style.pointerEvents = "auto";
2370
- }), b || (document.body.style.pointerEvents = "auto");
2371
- }
2372
- }), [q, Y] = p.useState(!1), [x, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), $e = p.useRef(null), ye = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), Fe = p.useRef(0), Le = p.useRef(!1), rn = p.useRef(!z), an = p.useRef(0), E = p.useRef(null), on = p.useRef(((w = E.current) == null ? void 0 : w.getBoundingClientRect().height) || 0), sn = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), Ct = p.useRef(0), Da = p.useCallback((b) => {
2373
- s && b === Ve.length - 1 && (Me.current = /* @__PURE__ */ new Date());
2374
- }, []), { activeSnapPoint: Pa, activeSnapPointIndex: Be, setActiveSnapPoint: ln, onRelease: ja, snapPointsOffset: Ve, onDrag: Na, shouldFade: cn, getPercentageDragged: Ta } = Cl({
2375
- snapPoints: s,
2376
- activeSnapPointProp: R,
2377
- setActiveSnapPointProp: M,
2378
- drawerRef: E,
2379
- fadeFromIndex: d,
2380
- overlayRef: pe,
2381
- onSnapPointChange: Da,
2382
- direction: g,
2383
- container: K,
2384
- snapToSequentialPoint: y
2385
- });
2386
- fl({
2387
- isDisabled: !G || x || !_ || ie || !q || !D || !Z
2388
- });
2389
- const { restorePositionSetting: _a } = El({
2390
- isOpen: G,
2391
- modal: _,
2392
- nested: k ?? !1,
2393
- hasBeenOpened: q,
2394
- preventScrollRestoration: j,
2395
- noBodyStyles: P
2396
- });
2397
- function lt() {
2398
- return (window.innerWidth - It) / window.innerWidth;
2399
- }
2400
- function Oa(b) {
2401
- var T, I;
2402
- !f && !s || E.current && !E.current.contains(b.target) || (on.current = ((T = E.current) == null ? void 0 : T.getBoundingClientRect().height) || 0, sn.current = ((I = E.current) == null ? void 0 : I.getBoundingClientRect().width) || 0, Q(!0), $e.current = /* @__PURE__ */ new Date(), sa() && window.addEventListener("touchend", () => Re.current = !1, {
2403
- once: !0
2404
- }), b.target.setPointerCapture(b.pointerId), Fe.current = U(g) ? b.pageY : b.pageX);
2405
- }
2406
- function un(b, T) {
2407
- var I;
2408
- let N = b;
2409
- const L = (I = window.getSelection()) == null ? void 0 : I.toString(), ne = E.current ? pt(E.current, g) : null, ee = /* @__PURE__ */ new Date();
2410
- if (N.tagName === "SELECT" || N.hasAttribute("data-vaul-no-drag") || N.closest("[data-vaul-no-drag]"))
2411
- return !1;
2412
- if (g === "right" || g === "left")
2413
- return !0;
2414
- if (Me.current && ee.getTime() - Me.current.getTime() < 500)
2415
- return !1;
2416
- if (ne !== null && (g === "bottom" ? ne > 0 : ne < 0))
2417
- return !0;
2418
- if (L && L.length > 0)
2419
- return !1;
2420
- if (le.current && ee.getTime() - le.current.getTime() < m && ne === 0 || T)
2421
- return le.current = ee, !1;
2422
- for (; N; ) {
2423
- if (N.scrollHeight > N.clientHeight) {
2424
- if (N.scrollTop !== 0)
2425
- return le.current = /* @__PURE__ */ new Date(), !1;
2426
- if (N.getAttribute("role") === "dialog")
2427
- return !0;
2428
- }
2429
- N = N.parentNode;
2430
- }
2431
- return !0;
2432
- }
2433
- function Ia(b) {
2434
- if (E.current && x) {
2435
- const T = g === "bottom" || g === "right" ? 1 : -1, I = (Fe.current - (U(g) ? b.pageY : b.pageX)) * T, N = I > 0, L = s && !f && !N;
2436
- if (L && Be === 0) return;
2437
- const ne = Math.abs(I), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = g === "bottom" || g === "top" ? on.current : sn.current;
2438
- let fe = ne / Ee;
2439
- const _e = Ta(ne, N);
2440
- if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !un(b.target, N)) return;
2441
- if (E.current.classList.add(jt), Re.current = !0, H(E.current, {
2442
- transition: "none"
2443
- }), H(pe.current, {
2444
- transition: "none"
2445
- }), s && Na({
2446
- draggedDistance: I
2447
- }), N && !s) {
2448
- const me = wl(I), ct = Math.min(me * -1, 0) * T;
2449
- H(E.current, {
2450
- transform: U(g) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
2451
- });
2452
- return;
2453
- }
2454
- const De = 1 - fe;
2455
- if ((cn || d && Be === d - 1) && (r == null || r(b, fe), H(pe.current, {
2456
- opacity: `${De}`,
2457
- transition: "none"
2458
- }, !0)), ee && pe.current && i) {
2459
- const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, fn = Math.max(0, 14 - fe * 14);
2460
- H(ee, {
2461
- borderRadius: `${ct}px`,
2462
- transform: U(g) ? `scale(${me}) translate3d(0, ${fn}px, 0)` : `scale(${me}) translate3d(${fn}px, 0, 0)`,
2463
- transition: "none"
2464
- }, !0);
2465
- }
2466
- if (!s) {
2467
- const me = ne * T;
2468
- H(E.current, {
2469
- transform: U(g) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
2470
- });
2471
- }
2472
- }
2473
- }
2474
- p.useEffect(() => {
2475
- window.requestAnimationFrame(() => {
2476
- rn.current = !0;
2477
- });
2478
- }, []), p.useEffect(() => {
2479
- var b;
2480
- function T() {
2481
- if (!E.current || !D) return;
2482
- const I = document.activeElement;
2483
- if (Ot(I) || Le.current) {
2484
- var N;
2485
- const L = ((N = window.visualViewport) == null ? void 0 : N.height) || 0, ne = window.innerHeight;
2486
- let ee = ne - L;
2487
- const Ee = E.current.getBoundingClientRect().height || 0, fe = Ee > ne * 0.8;
2488
- Ct.current || (Ct.current = Ee);
2489
- const _e = E.current.getBoundingClientRect().top;
2490
- if (Math.abs(an.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2491
- const De = Ve[Be] || 0;
2492
- ee += De;
2493
- }
2494
- if (an.current = ee, Ee > L || Le.current) {
2495
- const De = E.current.getBoundingClientRect().height;
2496
- let me = De;
2497
- De > L && (me = L - (fe ? _e : It)), S ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2498
- } else ol() || (E.current.style.height = `${Ct.current}px`);
2499
- s && s.length > 0 && !Le.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
2500
- }
2501
- }
2502
- return (b = window.visualViewport) == null || b.addEventListener("resize", T), () => {
2503
- var I;
2504
- return (I = window.visualViewport) == null ? void 0 : I.removeEventListener("resize", T);
2505
- };
2506
- }, [
2507
- Be,
2508
- s,
2509
- Ve
2510
- ]);
2511
- function Ge(b) {
2512
- Aa(), C == null || C(), b || te(!1), setTimeout(() => {
2513
- s && ln(s[0]);
2514
- }, $.DURATION * 1e3);
2515
- }
2516
- function dn() {
2517
- if (!E.current) return;
2518
- const b = document.querySelector("[data-vaul-drawer-wrapper]"), T = pt(E.current, g);
2519
- H(E.current, {
2520
- transform: "translate3d(0, 0, 0)",
2521
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`
2522
- }), H(pe.current, {
2523
- transition: `opacity ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2524
- opacity: "1"
2525
- }), i && T && T > 0 && G && H(b, {
2526
- borderRadius: `${da}px`,
2527
- overflow: "hidden",
2528
- ...U(g) ? {
2529
- transform: `scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2530
- transformOrigin: "top"
2531
- } : {
2532
- transform: `scale(${lt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
2533
- transformOrigin: "left"
2534
- },
2535
- transitionProperty: "transform, border-radius",
2536
- transitionDuration: `${$.DURATION}s`,
2537
- transitionTimingFunction: `cubic-bezier(${$.EASE.join(",")})`
2538
- }, !0);
2539
- }
2540
- function Aa() {
2541
- !x || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date());
2542
- }
2543
- function ka(b) {
2544
- if (!x || !E.current) return;
2545
- E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date();
2546
- const T = pt(E.current, g);
2547
- if (!b || !un(b.target, !1) || !T || Number.isNaN(T) || $e.current === null) return;
2548
- const I = ye.current.getTime() - $e.current.getTime(), N = Fe.current - (U(g) ? b.pageY : b.pageX), L = Math.abs(N) / I;
2549
- if (L > 0.05 && (de(!0), setTimeout(() => {
2550
- de(!1);
2551
- }, 200)), s) {
2552
- ja({
2553
- draggedDistance: N * (g === "bottom" || g === "right" ? 1 : -1),
2554
- closeDrawer: Ge,
2555
- velocity: L,
2556
- dismissible: f
2557
- }), o == null || o(b, !0);
2558
- return;
2559
- }
2560
- if (g === "bottom" || g === "right" ? N > 0 : N < 0) {
2561
- dn(), o == null || o(b, !0);
2562
- return;
2563
- }
2564
- if (L > ua) {
2565
- Ge(), o == null || o(b, !1);
2566
- return;
2567
- }
2568
- var ne;
2569
- const ee = Math.min((ne = E.current.getBoundingClientRect().height) != null ? ne : 0, window.innerHeight);
2570
- var Ee;
2571
- const fe = Math.min((Ee = E.current.getBoundingClientRect().width) != null ? Ee : 0, window.innerWidth), _e = g === "left" || g === "right";
2572
- if (Math.abs(T) >= (_e ? fe : ee) * u) {
2573
- Ge(), o == null || o(b, !1);
2574
- return;
2575
- }
2576
- o == null || o(b, !0), dn();
2577
- }
2578
- p.useEffect(() => (G && (H(document.documentElement, {
2579
- scrollBehavior: "auto"
2580
- }), Me.current = /* @__PURE__ */ new Date()), () => {
2581
- vl(document.documentElement, "scrollBehavior");
2582
- }), [
2583
- G
2584
- ]);
2585
- function $a(b) {
2586
- const T = b ? (window.innerWidth - Oe) / window.innerWidth : 1, I = b ? -Oe : 0;
2587
- re.current && window.clearTimeout(re.current), H(E.current, {
2588
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2589
- transform: `scale(${T}) translate3d(0, ${I}px, 0)`
2590
- }), !b && E.current && (re.current = setTimeout(() => {
2591
- const N = pt(E.current, g);
2592
- H(E.current, {
2593
- transition: "none",
2594
- transform: U(g) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
2595
- });
2596
- }, 500));
2597
- }
2598
- function Fa(b, T) {
2599
- if (T < 0) return;
2600
- const I = (window.innerWidth - Oe) / window.innerWidth, N = I + T * (1 - I), L = -Oe + T * Oe;
2601
- H(E.current, {
2602
- transform: U(g) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`,
2603
- transition: "none"
2604
- });
2605
- }
2606
- function La(b, T) {
2607
- const I = U(g) ? window.innerHeight : window.innerWidth, N = T ? (I - Oe) / I : 1, L = T ? -Oe : 0;
2608
- T && H(E.current, {
2609
- transition: `transform ${$.DURATION}s cubic-bezier(${$.EASE.join(",")})`,
2610
- transform: U(g) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`
2611
- });
2612
- }
2613
- return p.useEffect(() => {
2614
- _ || window.requestAnimationFrame(() => {
2615
- document.body.style.pointerEvents = "auto";
2616
- });
2617
- }, [
2618
- _
2619
- ]), /* @__PURE__ */ p.createElement(as, {
2620
- defaultOpen: z,
2621
- onOpenChange: (b) => {
2622
- !f && !b || (b ? Y(!0) : Ge(!0), te(b));
2623
- },
2624
- open: G
2625
- }, /* @__PURE__ */ p.createElement(oa.Provider, {
2626
- value: {
2627
- activeSnapPoint: Pa,
2628
- snapPoints: s,
2629
- setActiveSnapPoint: ln,
2630
- drawerRef: E,
2631
- overlayRef: pe,
2632
- onOpenChange: t,
2633
- onPress: Oa,
2634
- onRelease: ka,
2635
- onDrag: Ia,
2636
- dismissible: f,
2637
- shouldAnimate: rn,
2638
- handleOnly: c,
2639
- isOpen: G,
2640
- isDragging: x,
2641
- shouldFade: cn,
2642
- closeDrawer: Ge,
2643
- onNestedDrag: Fa,
2644
- onNestedOpenChange: $a,
2645
- onNestedRelease: La,
2646
- keyboardIsOpen: Le,
2647
- modal: _,
2648
- snapPointsOffset: Ve,
2649
- activeSnapPointIndex: Be,
2650
- direction: g,
2651
- shouldScaleBackground: i,
2652
- setBackgroundColorOnScale: l,
2653
- noBodyStyles: P,
2654
- container: K,
2655
- autoFocus: W
2656
- }
2657
- }, n));
2658
- }
2659
- const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2660
- const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: l, shouldAnimate: u } = Qe(), m = la(t, n), f = r && r.length > 0;
2661
- if (!l)
2662
- return null;
2663
- const c = p.useCallback((d) => o(d), [
2664
- o
2665
- ]);
2666
- return /* @__PURE__ */ p.createElement(Jo, {
2667
- onMouseUp: c,
2668
- ref: m,
2669
- "data-vaul-overlay": "",
2670
- "data-vaul-snap-points": i && f ? "true" : "false",
2671
- "data-vaul-snap-points-overlay": i && s ? "true" : "false",
2672
- "data-vaul-animate": u != null && u.current ? "true" : "false",
2673
- ...e
2674
- });
2675
- });
2676
- ma.displayName = "Drawer.Overlay";
2677
- const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2678
- const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: R, direction: M, snapPoints: S, container: _, handleOnly: C, shouldAnimate: k, autoFocus: P } = Qe(), [g, z] = p.useState(!1), Z = la(o, s), y = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = S && S.length > 0;
2679
- Rl();
2680
- const K = (w, V, G = 0) => {
2681
- if (D.current) return !0;
2682
- const te = Math.abs(w.y), q = Math.abs(w.x), Y = q > te, x = [
2683
- "bottom",
2684
- "right"
2685
- ].includes(V) ? 1 : -1;
2686
- if (V === "left" || V === "right") {
2687
- if (!(w.x * x < 0) && q >= 0 && q <= G)
2688
- return Y;
2689
- } else if (!(w.y * x < 0) && te >= 0 && te <= G)
2690
- return !Y;
2691
- return D.current = !0, !0;
2692
- };
2693
- p.useEffect(() => {
2694
- B && window.requestAnimationFrame(() => {
2695
- z(!0);
2696
- });
2697
- }, []);
2698
- function W(w) {
2699
- y.current = null, D.current = !1, l(w);
2700
- }
2701
- return /* @__PURE__ */ p.createElement(Zo, {
2702
- "data-vaul-drawer-direction": M,
2703
- "data-vaul-drawer": "",
2704
- "data-vaul-delayed-snap-points": g ? "true" : "false",
2705
- "data-vaul-snap-points": R && B ? "true" : "false",
2706
- "data-vaul-custom-container": _ ? "true" : "false",
2707
- "data-vaul-animate": k != null && k.current ? "true" : "false",
2708
- ...r,
2709
- ref: Z,
2710
- style: f && f.length > 0 ? {
2711
- "--snap-point-height": `${f[c ?? 0]}px`,
2712
- ...t
2713
- } : t,
2714
- onPointerDown: (w) => {
2715
- C || (r.onPointerDown == null || r.onPointerDown.call(r, w), y.current = {
2716
- x: w.pageX,
2717
- y: w.pageY
2718
- }, i(w));
2719
- },
2720
- onOpenAutoFocus: (w) => {
2721
- n == null || n(w), P || w.preventDefault();
2722
- },
2723
- onPointerDownOutside: (w) => {
2724
- if (e == null || e(w), !d || w.defaultPrevented) {
2725
- w.preventDefault();
2726
- return;
2727
- }
2728
- m.current && (m.current = !1);
2729
- },
2730
- onFocusOutside: (w) => {
2731
- if (!d) {
2732
- w.preventDefault();
2733
- return;
2734
- }
2735
- },
2736
- onPointerMove: (w) => {
2737
- if (j.current = w, C || (r.onPointerMove == null || r.onPointerMove.call(r, w), !y.current)) return;
2738
- const V = w.pageY - y.current.y, G = w.pageX - y.current.x, te = w.pointerType === "touch" ? 10 : 2;
2739
- K({
2740
- x: G,
2741
- y: V
2742
- }, M, te) ? u(w) : (Math.abs(G) > te || Math.abs(V) > te) && (y.current = null);
2743
- },
2744
- onPointerUp: (w) => {
2745
- r.onPointerUp == null || r.onPointerUp.call(r, w), y.current = null, D.current = !1, l(w);
2746
- },
2747
- onPointerOut: (w) => {
2748
- r.onPointerOut == null || r.onPointerOut.call(r, w), W(j.current);
2749
- },
2750
- onContextMenu: (w) => {
2751
- r.onContextMenu == null || r.onContextMenu.call(r, w), j.current && W(j.current);
2752
- }
2753
- });
2754
- });
2755
- ga.displayName = "Drawer.Content";
2756
- const Dl = 250, Pl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2757
- const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: R } = Qe(), M = p.useRef(null), S = p.useRef(!1);
2758
- function _() {
2759
- if (S.current) {
2760
- P();
2761
- return;
2762
- }
2763
- window.setTimeout(() => {
2764
- C();
2765
- }, Pl);
2766
- }
2767
- function C() {
2768
- if (s || e || S.current) {
2769
- P();
2770
- return;
2771
- }
2772
- if (P(), !i || i.length === 0) {
2773
- m || o();
2774
- return;
2775
- }
2776
- if (l === i[i.length - 1] && m) {
2777
- o();
2778
- return;
2779
- }
2780
- const z = i.findIndex((y) => y === l);
2781
- if (z === -1) return;
2782
- const Z = i[z + 1];
2783
- u(Z);
2784
- }
2785
- function k() {
2786
- M.current = window.setTimeout(() => {
2787
- S.current = !0;
2788
- }, Dl);
2789
- }
2790
- function P() {
2791
- M.current && window.clearTimeout(M.current), S.current = !1;
2792
- }
2793
- return /* @__PURE__ */ p.createElement("div", {
2794
- onClick: _,
2795
- onPointerCancel: P,
2796
- onPointerDown: (g) => {
2797
- f && d(g), k();
2798
- },
2799
- onPointerMove: (g) => {
2800
- f && R(g);
2801
- },
2802
- // onPointerUp is already handled by the content component
2803
- ref: r,
2804
- "data-vaul-drawer-visible": c ? "true" : "false",
2805
- "data-vaul-handle": "",
2806
- "aria-hidden": "true",
2807
- ...n
2808
- }, /* @__PURE__ */ p.createElement("span", {
2809
- "data-vaul-handle-hitarea": "",
2810
- "aria-hidden": "true"
2811
- }, t));
2812
- });
2813
- va.displayName = "Drawer.Handle";
2814
- function jl({ onDrag: e, onOpenChange: t, ...n }) {
2815
- const { onNestedDrag: r, onNestedOpenChange: o, onNestedRelease: s } = Qe();
2816
- if (!r)
2817
- throw new Error("Drawer.NestedRoot must be placed in another drawer");
2818
- return /* @__PURE__ */ p.createElement(pa, {
2819
- nested: !0,
2820
- onClose: () => {
2821
- o(!1);
2822
- },
2823
- onDrag: (i, l) => {
2824
- r(i, l), e == null || e(i, l);
2825
- },
2826
- onOpenChange: (i) => {
2827
- i && o(i);
2828
- },
2829
- onRelease: s,
2830
- ...n
2831
- });
2832
- }
2833
- function Nl(e) {
2834
- const t = Qe(), { container: n = t.container, ...r } = e;
2835
- return /* @__PURE__ */ p.createElement(os, {
2836
- container: n,
2837
- ...r
2838
- });
2839
- }
2840
- const he = {
2841
- Root: pa,
2842
- NestedRoot: jl,
2843
- Content: ga,
2844
- Overlay: ma,
2845
- Trigger: es,
2846
- Portal: Nl,
2847
- Handle: va,
2848
- Close: ts,
2849
- Title: ns,
2850
- Description: rs
2851
- }, en = ({
2852
- shouldScaleBackground: e = !0,
2853
- ...t
2854
- }) => /* @__PURE__ */ a.jsx(
2855
- he.Root,
2856
- {
2857
- shouldScaleBackground: e,
2858
- ...t
2859
- }
2860
- );
2861
- en.displayName = "Drawer";
2862
- const wa = he.Trigger, Tl = he.Portal, _l = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2863
- he.Overlay,
2864
- {
2865
- ref: n,
2866
- className: O("fixed inset-0 z-50 bg-black/80", e),
2867
- ...t
2868
- }
2869
- ));
2870
- xa.displayName = he.Overlay.displayName;
2871
- const tn = h.forwardRef(
2872
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Tl, { children: [
2873
- /* @__PURE__ */ a.jsx(xa, {}),
2874
- /* @__PURE__ */ a.jsxs(
2875
- he.Content,
2876
- {
2877
- ref: o,
2878
- className: O(
2879
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2880
- e
2881
- ),
2882
- ...r,
2883
- children: [
2884
- !n && /* @__PURE__ */ a.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2885
- t
2886
- ]
2887
- }
2888
- )
2889
- ] })
2890
- );
2891
- tn.displayName = "DrawerContent";
2892
- const nn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2893
- he.Title,
2894
- {
2895
- ref: n,
2896
- className: O(
2897
- "text-lg font-semibold leading-none tracking-tight",
2898
- e
2899
- ),
2900
- ...t
2901
- }
2902
- ));
2903
- nn.displayName = he.Title.displayName;
2904
- const Ol = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2905
- he.Description,
2906
- {
2907
- ref: n,
2908
- className: O("text-sm text-muted-foreground", e),
2909
- ...t
2910
- }
2911
- ));
2912
- Ol.displayName = he.Description.displayName;
2913
- const ya = () => {
2914
- const e = Ae(), [t, n] = Ie(!1), r = Qn(() => n(!1), []);
2915
- Ce(() => {
2916
- if (t)
2917
- return;
2918
- function s(i) {
2919
- i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), n(!0));
2920
- }
2921
- return window.addEventListener("keydown", s), () => {
2922
- window.removeEventListener("keydown", s);
2923
- };
2924
- }, [t, n]);
2925
- const o = e.plugins.find(As);
2926
- return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2927
- /* @__PURE__ */ a.jsxs(
2928
- "button",
2929
- {
2930
- type: "button",
2931
- onClick: () => n(!0),
2932
- className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72",
2933
- children: [
2934
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2935
- /* @__PURE__ */ a.jsx(Ko, { size: 14 }),
2936
- "Search"
2937
- ] }),
2938
- /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
2939
- ]
2940
- }
2941
- ),
2942
- /* @__PURE__ */ a.jsx(Bt, { fallback: null, children: o.renderSearch({
2943
- isOpen: t,
2944
- onClose: r
2945
- }) })
2946
- ] }) : null;
2947
- }, Il = () => {
2948
- const { topNavigation: e } = Ae();
2949
- return /* @__PURE__ */ a.jsxs(en, { direction: "right", children: [
2950
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(wa, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(qo, { size: 22 }) }) }),
2951
- /* @__PURE__ */ a.jsxs(
2952
- tn,
2953
- {
2954
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
2955
- "aria-describedby": void 0,
2956
- children: [
2957
- /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Navigation" }) }),
2958
- /* @__PURE__ */ a.jsx(ya, {}),
2959
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2960
- gt,
2961
- {
2962
- className: ({ isActive: n }) => zn(
2963
- "block font-medium border-b-2",
2964
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2965
- ),
2966
- to: t.id,
2967
- children: /* @__PURE__ */ a.jsx(_l, { children: t.label })
2968
- }
2969
- ) }, t.label)) })
2970
- ]
2971
- }
2972
- )
2973
- ] });
2974
- }, Al = () => {
2975
- const { topNavigation: e } = Ae();
2976
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(Bt, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(kl, { ...t }) }, t.id)) }) }) });
2977
- }, kl = ({ id: e, label: t, default: n }) => {
2978
- var u;
2979
- const { sidebars: r } = Ae(), o = Yn(), s = r[e], i = n ?? (s ? ko(s, (m) => {
2980
- if (m.type === "doc") return Ze(m.id);
2981
- }) : Ze(e));
2982
- if (!i)
2983
- throw new Error(
2984
- `No links found in top navigation for top navigation '${e}'. Check that the sidebar isn't empty or that a default link set.`
2985
- );
2986
- const l = ((u = o.data.topNavItem) == null ? void 0 : u.id) === e;
2987
- return /* @__PURE__ */ a.jsx(
2988
- yt,
2989
- {
2990
- className: zn(
2991
- "block py-3.5 font-medium -mb-px border-b-2",
2992
- l ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2993
- ),
2994
- to: i,
2995
- children: t
2996
- }
2997
- );
2998
- }, ba = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(el, { children: [
2999
- /* @__PURE__ */ a.jsx(Zr, { children: e.label }),
3000
- /* @__PURE__ */ a.jsx(Zi, { children: /* @__PURE__ */ a.jsx(ea, { children: e.children.map((t, n) => (
3001
- // eslint-disable-next-line react/no-array-index-key
3002
- /* @__PURE__ */ a.jsx(ba, { item: t }, n)
3003
- )) }) })
3004
- ] }, e.label) : /* @__PURE__ */ a.jsx(yt, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(na, { children: e.label }, e.label) }), Sa = Vn(function() {
3005
- const t = mn(), [n, r] = ho(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = mn(), l = Ae(), { page: u, plugins: m } = l, f = m.filter((d) => Os(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(ba, { item: d }, d.label)), c = n ? Qo : Vo;
3006
- return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
3007
- /* @__PURE__ */ a.jsx(rl, {}),
3008
- /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
3009
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
3010
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(yt, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
3011
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3012
- /* @__PURE__ */ a.jsx(
3013
- "img",
3014
- {
3015
- src: /https?:\/\//.test(u.logo.src.light) ? u.logo.src.light : "/" + u.logo.src.light,
3016
- alt: u.logo.alt ?? u.pageTitle,
3017
- style: { width: u.logo.width },
3018
- className: O("h-10", n && "hidden"),
3019
- loading: "lazy"
3020
- }
3021
- ),
3022
- /* @__PURE__ */ a.jsx(
3023
- "img",
3024
- {
3025
- src: /https?:\/\//.test(u.logo.src.dark) ? u.logo.src.dark : "/" + u.logo.src.dark,
3026
- alt: u.logo.alt ?? u.pageTitle,
3027
- style: { width: u.logo.width },
3028
- className: O("h-10", !n && "hidden"),
3029
- loading: "lazy"
3030
- }
3031
- )
3032
- ] }),
3033
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
3034
- ] }) }) }),
3035
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3036
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden md:flex ", children: /* @__PURE__ */ a.jsx(ya, {}) }),
3037
- /* @__PURE__ */ a.jsx(Il, {}),
3038
- /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3039
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-start" }),
3040
- i && !o ? /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(Xi, { modal: !1, children: [
3041
- /* @__PURE__ */ a.jsx(Ji, { asChild: !0, children: /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3042
- /* @__PURE__ */ a.jsxs(ta, { className: "w-56", children: [
3043
- /* @__PURE__ */ a.jsx(ra, { children: "My Account" }),
3044
- /* @__PURE__ */ a.jsx(aa, {}),
3045
- f
3046
- ] })
3047
- ] }),
3048
- /* @__PURE__ */ a.jsx(
3049
- "button",
3050
- {
3051
- type: "button",
3052
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
3053
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
3054
- onClick: r,
3055
- children: /* @__PURE__ */ a.jsx(c, { size: 18 })
3056
- }
3057
- ),
3058
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-end" })
3059
- ] })
3060
- ] })
3061
- ] }),
3062
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-before" }),
3063
- /* @__PURE__ */ a.jsx(Al, {}),
3064
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-after" })
3065
- ] })
3066
- ] });
3067
- }), Ca = {
3068
- Header: Sa
3069
- }, $l = qn(Ca), Fl = $l.Provider, Ll = (e) => {
3070
- const [t, n] = Ie(!1);
3071
- Ce(() => {
3072
- const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
3073
- n(l);
3074
- }, [t]);
3075
- const r = Qn(() => {
3076
- const s = !t;
3077
- document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3078
- }, [t]), o = [t, r];
3079
- return /* @__PURE__ */ a.jsx(po.Provider, { value: o, ...e });
3080
- }, Bl = ({
3081
- children: e,
3082
- context: t
3083
- }) => ($o({
3084
- queryFn: async () => (await t.initialize(), !0),
3085
- queryKey: ["zudoku-initialize"]
3086
- }), /* @__PURE__ */ a.jsx(Fo.Provider, { value: t, children: e })), Hl = ({
3087
- children: e,
3088
- ...t
3089
- }) => {
3090
- var c, d;
3091
- const n = mt(
3092
- () => ({ ...Ca, ...t.overrides }),
3093
- [t.overrides]
3094
- ), r = mt(() => {
3095
- var M;
3096
- return {
3097
- ...(t.plugins ?? []).filter(Fs).flatMap(
3098
- (S) => S.getMdxComponents ? [S.getMdxComponents()] : []
3099
- ).reduce((S, _) => ({ ...S, ..._ }), {}),
3100
- ...mo,
3101
- ...(M = t.mdx) == null ? void 0 : M.components
3102
- };
3103
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = So(Tt), [s, i] = Ie(!1), l = mt(
3104
- () => s ? { stagger: !0 } : { stagger: o },
3105
- [o, s]
3106
- ), u = Ga();
3107
- Ce(() => {
3108
- s || i(!0);
3109
- }, [s, u.location]);
3110
- const [m] = Ie(() => new Bs(t)), f = (d = t.plugins) == null ? void 0 : d.filter($s).map((R, M) => {
3111
- var S;
3112
- return /* @__PURE__ */ a.jsx(Co, { children: (S = R.getHead) == null ? void 0 : S.call(R) }, M);
3113
- });
3114
- return /* @__PURE__ */ a.jsxs(Lo, { client: nr, children: [
3115
- /* @__PURE__ */ a.jsx(kt, { children: f }),
3116
- /* @__PURE__ */ a.jsx(Tt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Bl, { context: m, children: /* @__PURE__ */ a.jsx(Ua, { components: r, children: /* @__PURE__ */ a.jsx(Ll, { children: /* @__PURE__ */ a.jsx(Fl, { value: n, children: /* @__PURE__ */ a.jsx(Ya, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(go, { children: e ?? /* @__PURE__ */ a.jsx(An, {}) }) }) }) }) }) }) })
3117
- ] });
3118
- }, Ul = Vn(Hl), Ma = (e) => /* @__PURE__ */ a.jsx(Ts, { FallbackComponent: Hs, children: /* @__PURE__ */ a.jsx(Ul, { ...e }) });
3119
- Ma.displayName = "DevPortal";
3120
- const zl = ({
3121
- category: e,
3122
- level: t
3123
- }) => {
3124
- var c;
3125
- const n = Bo(e), [r, o] = Ie(!1), s = e.collapsible ?? !0, i = e.collapsed ?? !0, l = !!(!s || !i || n), [u, m] = Ie(l);
3126
- Ce(() => {
3127
- n && m(!0);
3128
- }, [n]);
3129
- const f = s && /* @__PURE__ */ a.jsx(
3130
- "button",
3131
- {
3132
- type: "button",
3133
- onClick: (d) => {
3134
- d.preventDefault(), m((R) => !R), o(!0);
3135
- },
3136
- children: /* @__PURE__ */ a.jsx(
3137
- Xn,
3138
- {
3139
- size: 16,
3140
- className: O(
3141
- r && "transition",
3142
- "shrink-0 group-data-[state=open]:rotate-90"
3143
- )
3144
- }
3145
- )
3146
- }
3147
- );
3148
- return /* @__PURE__ */ a.jsxs(
3149
- Eo,
3150
- {
3151
- className: O("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
3152
- defaultOpen: l,
3153
- open: u,
3154
- onOpenChange: () => m(!0),
3155
- children: [
3156
- /* @__PURE__ */ a.jsx(Do, { className: "group", asChild: !0, disabled: !s, children: /* @__PURE__ */ a.jsxs(
3157
- "div",
3158
- {
3159
- className: O(
3160
- "text-start",
3161
- Je({ isActive: !1, isTopLevel: t === 0 }),
3162
- s ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3163
- ),
3164
- children: [
3165
- e.icon && /* @__PURE__ */ a.jsx(
3166
- e.icon,
3167
- {
3168
- size: 16,
3169
- className: "align-[-0.125em] -translate-x-1"
3170
- }
3171
- ),
3172
- ((c = e.link) == null ? void 0 : c.type) === "doc" ? /* @__PURE__ */ a.jsx(
3173
- gt,
3174
- {
3175
- to: Ze(e.link.id),
3176
- className: "flex-1",
3177
- onClick: () => o(!0),
3178
- children: ({ isActive: d }) => /* @__PURE__ */ a.jsxs(
3179
- "div",
3180
- {
3181
- className: O(
3182
- "flex items-center gap-2 justify-between w-full",
3183
- d ? "text-primary font-medium" : "text-foreground/80"
3184
- ),
3185
- children: [
3186
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
3187
- f
3188
- ]
3189
- }
3190
- )
3191
- }
3192
- ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3193
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3194
- f
3195
- ] })
3196
- ]
3197
- }
3198
- ) }),
3199
- /* @__PURE__ */ a.jsx(
3200
- Po,
3201
- {
3202
- className: O(
3203
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3204
- r && "CollapsibleContent",
3205
- "ms-[calc(var(--padding-nav-item)*1.125)]"
3206
- ),
3207
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((d) => /* @__PURE__ */ a.jsx(
3208
- At,
3209
- {
3210
- level: t + 1,
3211
- item: d
3212
- },
3213
- ("id" in d ? d.id : "") + ("href" in d ? d.href : "") + d.label
3214
- )) })
3215
- }
3216
- )
3217
- ]
3218
- }
3219
- );
3220
- }, Je = vo(
3221
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3222
- {
3223
- variants: {
3224
- isTopLevel: {
3225
- true: "font-semibold"
3226
- },
3227
- isActive: {
3228
- true: "text-primary font-medium",
3229
- false: "text-foreground/80"
3230
- },
3231
- isMuted: {
3232
- true: "text-foreground/30",
3233
- false: ""
3234
- }
3235
- }
3236
- }
3237
- ), Ra = "data-anchor", At = ({
3238
- item: e,
3239
- level: t = 0
3240
- }) => {
3241
- const { activeAnchor: n } = Lt(), [r] = Wa();
3242
- switch (e.type) {
3243
- case "category":
3244
- return /* @__PURE__ */ a.jsx(zl, { category: e, level: t });
3245
- case "doc":
3246
- return /* @__PURE__ */ a.jsxs(
3247
- gt,
3248
- {
3249
- className: ({ isActive: o }) => Je({ isActive: o, isTopLevel: t === 0 }),
3250
- to: Ze(e.id),
3251
- children: [
3252
- e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3253
- e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3254
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3255
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3256
- ] }) : e.label
3257
- ]
3258
- }
3259
- );
3260
- case "link":
3261
- return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
3262
- za,
3263
- {
3264
- to: { hash: e.href, search: r.toString() },
3265
- [Ra]: e.href.slice(1),
3266
- className: O(
3267
- "flex gap-2.5 justify-between",
3268
- t === 0 && "-mx-[--padding-nav-item]",
3269
- Je({
3270
- isActive: e.href.slice(1) === n
3271
- })
3272
- ),
3273
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3274
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3275
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3276
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3277
- }
3278
- ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3279
- "a",
3280
- {
3281
- className: O(
3282
- Je({ isTopLevel: t === 0 }),
3283
- "block"
3284
- ),
3285
- href: e.href,
3286
- target: "_blank",
3287
- rel: "noopener noreferrer",
3288
- children: [
3289
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3290
- /* @__PURE__ */ a.jsxs("span", { className: "whitespace-nowrap", children: [
3291
- " ",
3292
- /* @__PURE__ */ a.jsx(Go, { className: "inline ml-1", size: 12 })
3293
- ] })
3294
- ]
3295
- }
3296
- ) : /* @__PURE__ */ a.jsx(
3297
- gt,
3298
- {
3299
- className: O("flex gap-2.5 justify-between", Je()),
3300
- to: e.href,
3301
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3302
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3303
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3304
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3305
- }
3306
- );
3307
- }
3308
- }, Kl = (e, t = { block: "center" }) => {
3309
- if (!e) return;
3310
- const n = e.getBoundingClientRect();
3311
- n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3312
- }, ql = () => {
3313
- const e = $t(), { setActiveAnchor: t } = Lt();
3314
- Ce(() => {
3315
- if (!e.hash) return;
3316
- const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3317
- const o = document.getElementById(n), s = document.querySelector(`[${Ra}="${n}"]`);
3318
- return o ? (o.scrollIntoView(), Kl(s), requestIdleCallback(() => t(n)), !0) : !1;
3319
- };
3320
- if (!r()) {
3321
- const o = new MutationObserver((s, i) => {
3322
- r() && i.disconnect();
3323
- });
3324
- return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
3325
- }
3326
- }, [e.hash, t]);
3327
- }, Ql = () => {
3328
- const e = $t(), t = Ht(e.pathname);
3329
- Ce(() => {
3330
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3331
- }, [e.pathname]);
3332
- }, Ea = Mo(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3333
- "nav",
3334
- {
3335
- "data-navigation": String(n),
3336
- className: O(
3337
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
3338
- "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
3339
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
3340
- t
3341
- ),
3342
- ref: r,
3343
- children: e
3344
- }
3345
- ));
3346
- Ea.displayName = "SidebarWrapper";
3347
- const Vl = () => {
3348
- const e = Ht(null), t = Yn();
3349
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3350
- /* @__PURE__ */ a.jsxs(
3351
- Ea,
3352
- {
3353
- ref: e,
3354
- pushMainContent: t.data.sidebar.length > 0,
3355
- children: [
3356
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-navigation" }),
3357
- t.data.sidebar.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label)),
3358
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-navigation" })
3359
- ]
3360
- }
3361
- ),
3362
- /* @__PURE__ */ a.jsxs(
3363
- tn,
3364
- {
3365
- className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
3366
- "aria-describedby": void 0,
3367
- children: [
3368
- /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3369
- t.data.sidebar.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label))
3370
- ]
3371
- }
3372
- )
3373
- ] });
3374
- }, Gl = ({ children: e }) => {
3375
- const t = $t(), { setActiveAnchor: n } = Lt(), { meta: r, authentication: o } = Ae();
3376
- ql(), Ql();
3377
- const s = Ht(t.pathname);
3378
- return Ce(() => {
3379
- var i;
3380
- (i = o == null ? void 0 : o.pageLoad) == null || i.call(o);
3381
- }, [o]), Ce(() => {
3382
- t.pathname !== s.current && n(""), s.current = t.pathname;
3383
- }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3384
- !1,
3385
- /* @__PURE__ */ a.jsxs(kt, { titleTemplate: r == null ? void 0 : r.title, children: [
3386
- (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3387
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
3388
- ] }),
3389
- /* @__PURE__ */ a.jsx(xe, { name: "layout-before-head" }),
3390
- /* @__PURE__ */ a.jsx(Sa, {}),
3391
- /* @__PURE__ */ a.jsx(xe, { name: "layout-after-head" }),
3392
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3393
- Bt,
3394
- {
3395
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(ss, {}) }),
3396
- children: /* @__PURE__ */ a.jsxs(en, { direction: "left", children: [
3397
- /* @__PURE__ */ a.jsx(Vl, {}),
3398
- /* @__PURE__ */ a.jsx(
3399
- "div",
3400
- {
3401
- className: O(
3402
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3403
- "peer-data-[navigation=false]:hidden"
3404
- ),
3405
- children: /* @__PURE__ */ a.jsxs(wa, { className: "flex items-center gap-2", children: [
3406
- /* @__PURE__ */ a.jsx(Wo, { size: 16, strokeWidth: 1.5 }),
3407
- /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3408
- ] })
3409
- }
3410
- ),
3411
- /* @__PURE__ */ a.jsxs(
3412
- "main",
3413
- {
3414
- className: O(
3415
- "h-full dark:border-white/10 translate-x-0",
3416
- "lg:overflow-visible",
3417
- // This works in tandem with the `SidebarWrapper` component
3418
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
3419
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3420
- ),
3421
- children: [
3422
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-content" }),
3423
- e ?? /* @__PURE__ */ a.jsx(An, {}),
3424
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-content" })
3425
- ]
3426
- }
3427
- )
3428
- ] })
3429
- }
3430
- ) })
3431
- ] });
3432
- }, dc = Ka, fc = wo, hc = Ma, pc = Gl, mc = yt, gc = Xa, vc = is, wc = Ms, xc = Rs, yc = Nt, bc = kt;
1
+ import "./index.esm-BnYHxCYC.js";
2
+ import "./useExposedProps-BH9aq4MD.js";
3
+ import "./chunk-QMGIS6GS-DqecZ6nq.js";
4
+ import "./hook-B4Q30zMI.js";
5
+ import "./ui/Button.js";
6
+ import "./ui/Callout.js";
7
+ import "./ClientOnly-E7hGysn1.js";
8
+ import "./ZudokuContext-BR-lnR7O.js";
9
+ import "./ErrorAlert-B5bWlc6g.js";
10
+ import "./Spinner-mNLZ6awP.js";
11
+ import { B as d, i as h, C as l, d as k, c as S, L as y, M, e as T, S as Z, T as c, Z as f, g, h as A, f as B, j as E, u as H } from "./index-CaqZFmdz.js";
3433
12
  export {
3434
- wc as Bootstrap,
3435
- xc as BootstrapStatic,
3436
- yc as Button,
3437
- fc as Callout,
3438
- hc as DevPortal,
3439
- bc as Head,
3440
- pc as Layout,
3441
- mc as Link,
3442
- gc as RouterError,
3443
- vc as ServerError,
3444
- dc as useMDXComponents
13
+ d as Button,
14
+ h as CACHE_KEYS,
15
+ l as Callout,
16
+ k as ClientOnly,
17
+ S as Head,
18
+ y as Link,
19
+ M as Markdown,
20
+ T as Slot,
21
+ Z as Spinner,
22
+ c as Typography,
23
+ f as Zudoku,
24
+ g as useAuth,
25
+ A as useCache,
26
+ B as useMDXComponents,
27
+ E as useTheme,
28
+ H as useZudoku
3445
29
  };
3446
30
  //# sourceMappingURL=zudoku.components.js.map