zudoku 0.0.0-f3f6db5 → 0.0.0-f40ea27

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 (1652) hide show
  1. package/README.md +1 -1
  2. package/cli.js +9 -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 +6 -5
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +5 -2
  9. package/dist/app/entry.client.js +37 -2
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +8 -8
  12. package/dist/app/entry.server.js +12 -10
  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 +1 -0
  18. package/dist/app/main.js +33 -38
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +7 -6
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.d.ts +1 -3
  23. package/dist/cli/build/handler.js +9 -1
  24. package/dist/cli/build/handler.js.map +1 -1
  25. package/dist/cli/cli.js +17 -1
  26. package/dist/cli/cli.js.map +1 -1
  27. package/dist/cli/cmds/build.d.ts +11 -3
  28. package/dist/cli/cmds/build.js +20 -13
  29. package/dist/cli/cmds/build.js.map +1 -1
  30. package/dist/cli/cmds/dev.d.ts +1 -1
  31. package/dist/cli/cmds/dev.js.map +1 -1
  32. package/dist/cli/cmds/preview.d.ts +16 -0
  33. package/dist/cli/cmds/preview.js +25 -0
  34. package/dist/cli/cmds/preview.js.map +1 -0
  35. package/dist/cli/common/machine-id/lib.js +1 -0
  36. package/dist/cli/common/machine-id/lib.js.map +1 -1
  37. package/dist/cli/common/output.js.map +1 -1
  38. package/dist/cli/common/utils/ports.d.ts +1 -1
  39. package/dist/cli/common/utils/ports.js +16 -15
  40. package/dist/cli/common/utils/ports.js.map +1 -1
  41. package/dist/cli/dev/handler.js +15 -12
  42. package/dist/cli/dev/handler.js.map +1 -1
  43. package/dist/cli/preview/handler.d.ts +3 -0
  44. package/dist/cli/preview/handler.js +35 -0
  45. package/dist/cli/preview/handler.js.map +1 -0
  46. package/dist/config/config.d.ts +27 -14
  47. package/dist/config/file-exists.d.ts +1 -0
  48. package/dist/config/file-exists.js +5 -0
  49. package/dist/config/file-exists.js.map +1 -0
  50. package/dist/config/loader.d.ts +19 -18
  51. package/dist/config/loader.js +107 -117
  52. package/dist/config/loader.js.map +1 -1
  53. package/dist/config/validators/BuildSchema.d.ts +36 -0
  54. package/dist/config/validators/BuildSchema.js +20 -0
  55. package/dist/config/validators/BuildSchema.js.map +1 -0
  56. package/dist/config/validators/InputNavigationSchema.d.ts +7369 -0
  57. package/dist/config/validators/InputNavigationSchema.js +74 -0
  58. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  59. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  60. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  61. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  62. package/dist/config/validators/NavigationSchema.js +95 -0
  63. package/dist/config/validators/NavigationSchema.js.map +1 -0
  64. package/dist/config/validators/icon-types.d.ts +2 -1
  65. package/dist/config/validators/icon-types.js +1813 -1
  66. package/dist/config/validators/icon-types.js.map +1 -1
  67. package/dist/config/validators/validate.d.ts +642 -1875
  68. package/dist/config/validators/validate.js +423 -15
  69. package/dist/config/validators/validate.js.map +1 -1
  70. package/dist/config/validators/validate.test.js +78 -0
  71. package/dist/config/validators/validate.test.js.map +1 -0
  72. package/dist/flat-config.d.ts +325 -0
  73. package/dist/index.d.ts +8 -4
  74. package/dist/index.js +4 -0
  75. package/dist/index.js.map +1 -1
  76. package/dist/lib/MissingIcon.d.ts +2 -0
  77. package/dist/lib/MissingIcon.js +7 -0
  78. package/dist/lib/MissingIcon.js.map +1 -0
  79. package/dist/lib/auth/issuer.d.ts +2 -0
  80. package/dist/lib/auth/issuer.js +37 -0
  81. package/dist/lib/auth/issuer.js.map +1 -0
  82. package/dist/lib/auth/issuer.test.js +94 -0
  83. package/dist/lib/auth/issuer.test.js.map +1 -0
  84. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  85. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  86. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  87. package/dist/lib/authentication/authentication.d.ts +3 -4
  88. package/dist/lib/authentication/components/CallbackHandler.js +6 -2
  89. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  90. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  91. package/dist/lib/authentication/components/SignIn.js +5 -2
  92. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  93. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  94. package/dist/lib/authentication/components/SignUp.js +4 -1
  95. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  96. package/dist/lib/authentication/hook.d.ts +7 -0
  97. package/dist/lib/authentication/hook.js +11 -1
  98. package/dist/lib/authentication/hook.js.map +1 -1
  99. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  100. package/dist/lib/authentication/providers/auth0.js +3 -2
  101. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  102. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  103. package/dist/lib/authentication/providers/azureb2c.js +145 -0
  104. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  105. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  106. package/dist/lib/authentication/providers/clerk.js +92 -55
  107. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  108. package/dist/lib/authentication/providers/openid.d.ts +16 -19
  109. package/dist/lib/authentication/providers/openid.js +78 -43
  110. package/dist/lib/authentication/providers/openid.js.map +1 -1
  111. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  112. package/dist/lib/authentication/providers/supabase.js +108 -0
  113. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  114. package/dist/lib/authentication/state.d.ts +6 -22
  115. package/dist/lib/authentication/state.js +28 -13
  116. package/dist/lib/authentication/state.js.map +1 -1
  117. package/dist/lib/components/AnchorLink.d.ts +2 -2
  118. package/dist/lib/components/AnchorLink.js +5 -4
  119. package/dist/lib/components/AnchorLink.js.map +1 -1
  120. package/dist/lib/components/Autocomplete.d.ts +4 -3
  121. package/dist/lib/components/Autocomplete.js +5 -5
  122. package/dist/lib/components/Autocomplete.js.map +1 -1
  123. package/dist/lib/components/Banner.js +2 -2
  124. package/dist/lib/components/Banner.js.map +1 -1
  125. package/dist/lib/components/Bootstrap.d.ts +2 -1
  126. package/dist/lib/components/Bootstrap.js +3 -2
  127. package/dist/lib/components/Bootstrap.js.map +1 -1
  128. package/dist/lib/components/BuildCheck.d.ts +4 -0
  129. package/dist/lib/components/BuildCheck.js +38 -0
  130. package/dist/lib/components/BuildCheck.js.map +1 -0
  131. package/dist/lib/components/ErrorPage.js +2 -2
  132. package/dist/lib/components/ErrorPage.js.map +1 -1
  133. package/dist/lib/components/Footer.d.ts +1 -0
  134. package/dist/lib/components/Footer.js +32 -0
  135. package/dist/lib/components/Footer.js.map +1 -0
  136. package/dist/lib/components/Framed.d.ts +7 -0
  137. package/dist/lib/components/Framed.js +26 -0
  138. package/dist/lib/components/Framed.js.map +1 -0
  139. package/dist/lib/components/Header.js +25 -16
  140. package/dist/lib/components/Header.js.map +1 -1
  141. package/dist/lib/components/Heading.d.ts +9 -5
  142. package/dist/lib/components/Heading.js +7 -2
  143. package/dist/lib/components/Heading.js.map +1 -1
  144. package/dist/lib/components/InlineCode.d.ts +2 -1
  145. package/dist/lib/components/InlineCode.js +2 -9
  146. package/dist/lib/components/InlineCode.js.map +1 -1
  147. package/dist/lib/components/Layout.js +9 -29
  148. package/dist/lib/components/Layout.js.map +1 -1
  149. package/dist/lib/components/Main.d.ts +2 -0
  150. package/dist/lib/components/Main.js +18 -0
  151. package/dist/lib/components/Main.js.map +1 -0
  152. package/dist/lib/components/Markdown.d.ts +3 -2
  153. package/dist/lib/components/Markdown.js +14 -16
  154. package/dist/lib/components/Markdown.js.map +1 -1
  155. package/dist/lib/components/MobileTopNavigation.js +8 -3
  156. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  157. package/dist/lib/components/NotFoundPage.js +2 -2
  158. package/dist/lib/components/NotFoundPage.js.map +1 -1
  159. package/dist/lib/components/PageProgress.d.ts +1 -0
  160. package/dist/lib/components/PageProgress.js +20 -0
  161. package/dist/lib/components/PageProgress.js.map +1 -0
  162. package/dist/lib/components/Pagination.d.ts +11 -0
  163. package/dist/lib/components/Pagination.js +10 -0
  164. package/dist/lib/components/Pagination.js.map +1 -0
  165. package/dist/lib/components/PathRenderer.js +23 -20
  166. package/dist/lib/components/PathRenderer.js.map +1 -1
  167. package/dist/lib/components/Search.js +7 -1
  168. package/dist/lib/components/Search.js.map +1 -1
  169. package/dist/lib/components/Slot.d.ts +17 -0
  170. package/dist/lib/components/Slot.js +24 -0
  171. package/dist/lib/components/Slot.js.map +1 -0
  172. package/dist/lib/components/Slot.test.js +168 -0
  173. package/dist/lib/components/Slot.test.js.map +1 -0
  174. package/dist/lib/components/ThemeSwitch.js +8 -5
  175. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  176. package/dist/lib/components/TopNavigation.d.ts +2 -5
  177. package/dist/lib/components/TopNavigation.js +48 -41
  178. package/dist/lib/components/TopNavigation.js.map +1 -1
  179. package/dist/lib/components/Typography.d.ts +5 -0
  180. package/dist/lib/components/Typography.js +8 -0
  181. package/dist/lib/components/Typography.js.map +1 -0
  182. package/dist/lib/components/Zudoku.d.ts +1 -1
  183. package/dist/lib/components/Zudoku.js +14 -9
  184. package/dist/lib/components/Zudoku.js.map +1 -1
  185. package/dist/lib/components/cache.d.ts +7 -0
  186. package/dist/lib/components/cache.js +7 -0
  187. package/dist/lib/components/cache.js.map +1 -1
  188. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  189. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  190. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  191. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  192. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  193. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  194. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  195. package/dist/lib/components/context/SlotProvider.js +83 -0
  196. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  197. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  198. package/dist/lib/components/context/ViewportAnchorContext.js +13 -19
  199. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  200. package/dist/lib/components/context/ZudokuContext.d.ts +4 -8
  201. package/dist/lib/components/context/ZudokuContext.js +50 -21
  202. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  203. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  204. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  205. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  206. package/dist/lib/components/index.d.ts +54 -25
  207. package/dist/lib/components/index.js +20 -6
  208. package/dist/lib/components/index.js.map +1 -1
  209. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  210. package/dist/lib/components/navigation/Navigation.js +12 -0
  211. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  212. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  213. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  214. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  215. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  216. package/dist/lib/components/navigation/NavigationCategory.js +61 -0
  217. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  218. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  219. package/dist/lib/components/navigation/NavigationItem.js +47 -0
  220. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  221. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  222. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  223. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  224. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  225. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  226. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  227. package/dist/lib/components/navigation/Toc.js +46 -0
  228. package/dist/lib/components/navigation/Toc.js.map +1 -0
  229. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  230. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  231. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  232. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  233. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  234. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  235. package/dist/lib/components/navigation/utils.d.ts +12 -6
  236. package/dist/lib/components/navigation/utils.js +46 -18
  237. package/dist/lib/components/navigation/utils.js.map +1 -1
  238. package/dist/lib/core/RouteGuard.d.ts +2 -1
  239. package/dist/lib/core/RouteGuard.js +35 -11
  240. package/dist/lib/core/RouteGuard.js.map +1 -1
  241. package/dist/lib/core/ZudokuContext.d.ts +58 -21
  242. package/dist/lib/core/ZudokuContext.js +39 -17
  243. package/dist/lib/core/ZudokuContext.js.map +1 -1
  244. package/dist/lib/core/plugins.d.ts +22 -9
  245. package/dist/lib/core/plugins.js +4 -0
  246. package/dist/lib/core/plugins.js.map +1 -1
  247. package/dist/lib/errors/ErrorAlert.js +5 -1
  248. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  249. package/dist/lib/hooks/index.d.ts +28 -0
  250. package/dist/lib/hooks/index.js +16 -0
  251. package/dist/lib/hooks/index.js.map +1 -0
  252. package/dist/lib/hooks/useEvent.d.ts +11 -0
  253. package/dist/lib/hooks/useEvent.js +19 -0
  254. package/dist/lib/hooks/useEvent.js.map +1 -0
  255. package/dist/lib/hooks/useEvent.test.js +102 -0
  256. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  257. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  258. package/dist/lib/hooks/useHotkey.js +58 -0
  259. package/dist/lib/hooks/useHotkey.js.map +1 -0
  260. package/dist/lib/icons.d.ts +1 -0
  261. package/dist/lib/icons.js +1 -0
  262. package/dist/lib/icons.js.map +1 -1
  263. package/dist/lib/oas/graphql/circular.js +23 -18
  264. package/dist/lib/oas/graphql/circular.js.map +1 -1
  265. package/dist/lib/oas/graphql/index.d.ts +24 -4
  266. package/dist/lib/oas/graphql/index.js +163 -48
  267. package/dist/lib/oas/graphql/index.js.map +1 -1
  268. package/dist/lib/oas/parser/dereference/index.js +2 -0
  269. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  270. package/dist/lib/oas/parser/index.d.ts +8 -3
  271. package/dist/lib/oas/parser/index.js +7 -23
  272. package/dist/lib/oas/parser/index.js.map +1 -1
  273. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  274. package/dist/lib/oas/parser/upgrade/index.js +76 -23
  275. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  276. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
  277. package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
  278. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  279. package/dist/lib/plugins/api-catalog/index.d.ts +7 -6
  280. package/dist/lib/plugins/api-catalog/index.js +39 -8
  281. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  282. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  283. package/dist/lib/plugins/api-keys/CreateApiKey.js +15 -7
  284. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  285. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  286. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +150 -27
  287. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  288. package/dist/lib/plugins/api-keys/index.d.ts +21 -11
  289. package/dist/lib/plugins/api-keys/index.js +67 -32
  290. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  291. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  292. package/dist/lib/plugins/custom-pages/index.js +15 -10
  293. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  294. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -3
  295. package/dist/lib/plugins/markdown/MdxPage.js +30 -17
  296. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  297. package/dist/lib/plugins/markdown/index.d.ts +11 -3
  298. package/dist/lib/plugins/markdown/index.js +9 -26
  299. package/dist/lib/plugins/markdown/index.js.map +1 -1
  300. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  301. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  302. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  303. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  304. package/dist/lib/plugins/openapi/Endpoint.js +6 -7
  305. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  306. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  307. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  308. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  309. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  310. package/dist/lib/plugins/openapi/OperationList.js +76 -26
  311. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  312. package/dist/lib/plugins/openapi/OperationListItem.d.ts +3 -2
  313. package/dist/lib/plugins/openapi/OperationListItem.js +11 -15
  314. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  315. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  316. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  317. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  318. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  319. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  320. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  321. package/dist/lib/plugins/openapi/ParameterListItem.js +16 -4
  322. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  323. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -2
  324. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +14 -4
  325. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  326. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  327. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  328. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  329. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  330. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  331. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  332. package/dist/lib/plugins/openapi/Sidecar.js +48 -69
  333. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  334. package/dist/lib/plugins/openapi/SidecarExamples.js +10 -2
  335. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  336. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  337. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  338. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  339. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  340. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  341. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
  342. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
  343. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  344. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  345. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  346. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  347. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  348. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  349. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  350. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  351. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  352. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  353. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  354. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  355. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  356. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  357. package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
  358. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  359. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +110 -41
  360. package/dist/lib/plugins/openapi/graphql/graphql.js +63 -24
  361. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  362. package/dist/lib/plugins/openapi/index.d.ts +10 -8
  363. package/dist/lib/plugins/openapi/index.js +65 -120
  364. package/dist/lib/plugins/openapi/index.js.map +1 -1
  365. package/dist/lib/plugins/openapi/interfaces.d.ts +41 -12
  366. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  367. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  368. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  369. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  370. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  371. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  372. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  373. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -5
  374. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  375. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  376. package/dist/lib/plugins/openapi/playground/Headers.js +68 -30
  377. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  378. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  379. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  380. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  381. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  382. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  383. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  384. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  385. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  386. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +4 -0
  387. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -1
  388. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  389. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  390. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -5
  391. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  392. package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -3
  393. package/dist/lib/plugins/openapi/playground/Playground.js +150 -76
  394. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  395. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  396. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  397. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  398. package/dist/lib/plugins/openapi/playground/QueryParams.js +41 -26
  399. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  400. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  401. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  402. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  403. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  404. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  405. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  406. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  407. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  408. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  409. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  410. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  411. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  412. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  413. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  414. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  415. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  416. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  417. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  418. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  419. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  420. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  422. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
  423. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  424. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  425. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +41 -33
  426. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  427. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -5
  428. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +9 -10
  429. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  430. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  431. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  432. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  433. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  434. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  435. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  436. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  437. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  438. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  439. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  440. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  441. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  442. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  443. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  444. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  445. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  446. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  447. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  448. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  449. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  450. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  451. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  452. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  453. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  454. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  455. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  456. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  457. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  458. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  459. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  460. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  461. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  462. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  463. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  464. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  465. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +25 -18
  466. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  467. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  468. package/dist/lib/plugins/openapi/schema/SchemaView.js +39 -51
  469. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  470. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
  471. package/dist/lib/plugins/openapi/schema/utils.js +15 -5
  472. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  473. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  474. package/dist/lib/plugins/openapi/state.js +18 -0
  475. package/dist/lib/plugins/openapi/state.js.map +1 -0
  476. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  477. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  478. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  479. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  480. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +24 -0
  481. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  482. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  483. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
  484. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  485. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  486. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  487. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  488. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  489. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  490. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  491. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  492. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  493. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  494. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  495. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  496. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  497. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  498. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  499. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  500. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  501. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  502. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  503. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  504. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  505. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  506. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  507. package/dist/lib/shiki.d.ts +31 -0
  508. package/dist/lib/shiki.js +101 -0
  509. package/dist/lib/shiki.js.map +1 -0
  510. package/dist/lib/ui/Alert.d.ts +5 -4
  511. package/dist/lib/ui/Alert.js +12 -10
  512. package/dist/lib/ui/Alert.js.map +1 -1
  513. package/dist/lib/ui/Badge.d.ts +2 -2
  514. package/dist/lib/ui/Badge.js +1 -1
  515. package/dist/lib/ui/Badge.js.map +1 -1
  516. package/dist/lib/ui/Button.d.ts +3 -3
  517. package/dist/lib/ui/Button.js +9 -6
  518. package/dist/lib/ui/Button.js.map +1 -1
  519. package/dist/lib/ui/Callout.d.ts +2 -1
  520. package/dist/lib/ui/Callout.js +3 -2
  521. package/dist/lib/ui/Callout.js.map +1 -1
  522. package/dist/lib/ui/Card.js +1 -1
  523. package/dist/lib/ui/Checkbox.d.ts +2 -8
  524. package/dist/lib/ui/Checkbox.js +1 -13
  525. package/dist/lib/ui/Checkbox.js.map +1 -1
  526. package/dist/lib/ui/CodeBlock.d.ts +15 -0
  527. package/dist/lib/ui/CodeBlock.js +17 -0
  528. package/dist/lib/ui/CodeBlock.js.map +1 -0
  529. package/dist/lib/ui/Command.d.ts +8 -2
  530. package/dist/lib/ui/Command.js +5 -5
  531. package/dist/lib/ui/Command.js.map +1 -1
  532. package/dist/lib/ui/Dialog.d.ts +3 -1
  533. package/dist/lib/ui/Dialog.js +2 -2
  534. package/dist/lib/ui/Dialog.js.map +1 -1
  535. package/dist/lib/ui/DropdownMenu.js +4 -4
  536. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  537. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  538. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  539. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  540. package/dist/lib/ui/Form.d.ts +1 -1
  541. package/dist/lib/ui/HoverCard.js +1 -1
  542. package/dist/lib/ui/HoverCard.js.map +1 -1
  543. package/dist/lib/ui/Input.d.ts +1 -2
  544. package/dist/lib/ui/Input.js +1 -1
  545. package/dist/lib/ui/Input.js.map +1 -1
  546. package/dist/lib/ui/Popover.js +1 -1
  547. package/dist/lib/ui/Popover.js.map +1 -1
  548. package/dist/lib/ui/RadioGroup.js +1 -1
  549. package/dist/lib/ui/RadioGroup.js.map +1 -1
  550. package/dist/lib/ui/Select.js +2 -2
  551. package/dist/lib/ui/Select.js.map +1 -1
  552. package/dist/lib/ui/Slider.js +1 -1
  553. package/dist/lib/ui/Slider.js.map +1 -1
  554. package/dist/lib/ui/Stepper.d.ts +3 -0
  555. package/dist/lib/ui/Stepper.js +7 -0
  556. package/dist/lib/ui/Stepper.js.map +1 -0
  557. package/dist/lib/ui/Switch.js +1 -1
  558. package/dist/lib/ui/Switch.js.map +1 -1
  559. package/dist/lib/ui/SyntaxHighlight.d.ts +12 -0
  560. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  561. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  562. package/dist/lib/ui/Tabs.js +2 -2
  563. package/dist/lib/ui/Tabs.js.map +1 -1
  564. package/dist/lib/ui/Textarea.js +1 -1
  565. package/dist/lib/ui/Textarea.js.map +1 -1
  566. package/dist/lib/ui/Toggle.js +1 -1
  567. package/dist/lib/ui/Toggle.js.map +1 -1
  568. package/dist/lib/ui/Tooltip.d.ts +2 -1
  569. package/dist/lib/ui/Tooltip.js +2 -1
  570. package/dist/lib/ui/Tooltip.js.map +1 -1
  571. package/dist/lib/ui/util.d.ts +2 -0
  572. package/dist/lib/ui/util.js +3 -0
  573. package/dist/lib/ui/util.js.map +1 -0
  574. package/dist/lib/util/MdxComponents.d.ts +22 -4
  575. package/dist/lib/util/MdxComponents.js +21 -15
  576. package/dist/lib/util/MdxComponents.js.map +1 -1
  577. package/dist/lib/util/detectOS.d.ts +1 -0
  578. package/dist/lib/util/detectOS.js +11 -0
  579. package/dist/lib/util/detectOS.js.map +1 -0
  580. package/dist/lib/util/ensureArray.d.ts +1 -0
  581. package/dist/lib/util/ensureArray.js +2 -0
  582. package/dist/lib/util/ensureArray.js.map +1 -0
  583. package/dist/lib/util/humanFileSize.d.ts +6 -0
  584. package/dist/lib/util/humanFileSize.js +14 -0
  585. package/dist/lib/util/humanFileSize.js.map +1 -0
  586. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  587. package/dist/lib/util/humanFileSize.test.js +22 -0
  588. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  589. package/dist/lib/util/joinPath.d.ts +3 -0
  590. package/dist/lib/util/joinPath.js +3 -0
  591. package/dist/lib/util/joinPath.js.map +1 -1
  592. package/dist/lib/util/os.d.ts +2 -0
  593. package/dist/lib/util/os.js +21 -0
  594. package/dist/lib/util/os.js.map +1 -0
  595. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  596. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  597. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  598. package/dist/lib/util/traverse.d.ts +3 -9
  599. package/dist/lib/util/traverse.js +7 -6
  600. package/dist/lib/util/traverse.js.map +1 -1
  601. package/dist/lib/util/types.d.ts +7 -0
  602. package/dist/lib/util/types.js +2 -0
  603. package/dist/lib/util/types.js.map +1 -0
  604. package/dist/lib/util/url.d.ts +4 -0
  605. package/dist/lib/util/url.js +13 -0
  606. package/dist/lib/util/url.js.map +1 -0
  607. package/dist/lib/util/url.test.d.ts +1 -0
  608. package/dist/lib/util/url.test.js +26 -0
  609. package/dist/lib/util/url.test.js.map +1 -0
  610. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  611. package/dist/lib/util/useCopyToClipboard.js +11 -0
  612. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  613. package/dist/lib/util/useExposedProps.d.ts +8 -1
  614. package/dist/lib/util/useExposedProps.js.map +1 -1
  615. package/dist/lib/util/useLatest.d.ts +1 -0
  616. package/dist/lib/util/useLatest.js +15 -0
  617. package/dist/lib/util/useLatest.js.map +1 -0
  618. package/dist/lib/util/useOnScreen.d.ts +3 -2
  619. package/dist/lib/util/useOnScreen.js +3 -3
  620. package/dist/lib/util/useOnScreen.js.map +1 -1
  621. package/dist/lib/util/useScrollToAnchor.js +28 -34
  622. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  623. package/dist/lib/util/useScrollToTop.js +6 -4
  624. package/dist/lib/util/useScrollToTop.js.map +1 -1
  625. package/dist/vite/api/SchemaManager.d.ts +36 -0
  626. package/dist/vite/api/SchemaManager.js +141 -0
  627. package/dist/vite/api/SchemaManager.js.map +1 -0
  628. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  629. package/dist/vite/api/SchemaManager.test.js +106 -0
  630. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  631. package/dist/vite/api/schema-codegen.d.ts +1 -1
  632. package/dist/vite/api/schema-codegen.js +73 -19
  633. package/dist/vite/api/schema-codegen.js.map +1 -1
  634. package/dist/vite/api/schema-codegen.test.js +148 -0
  635. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  636. package/dist/vite/build.js +42 -22
  637. package/dist/vite/build.js.map +1 -1
  638. package/dist/vite/config.d.ts +2 -12
  639. package/dist/vite/config.js +101 -150
  640. package/dist/vite/config.js.map +1 -1
  641. package/dist/vite/config.test.js +2 -2
  642. package/dist/vite/config.test.js.map +1 -1
  643. package/dist/vite/create-pagefind-index.d.ts +4 -0
  644. package/dist/vite/create-pagefind-index.js +12 -0
  645. package/dist/vite/create-pagefind-index.js.map +1 -0
  646. package/dist/vite/css/plugin.d.ts +1 -2
  647. package/dist/vite/css/plugin.js +14 -2
  648. package/dist/vite/css/plugin.js.map +1 -1
  649. package/dist/vite/dev-server.d.ts +4 -3
  650. package/dist/vite/dev-server.js +53 -22
  651. package/dist/vite/dev-server.js.map +1 -1
  652. package/dist/vite/error-handler.d.ts +1 -1
  653. package/dist/vite/error-handler.js +1 -1
  654. package/dist/vite/error-handler.js.map +1 -1
  655. package/dist/vite/html.d.ts +7 -3
  656. package/dist/vite/html.js +15 -9
  657. package/dist/vite/html.js.map +1 -1
  658. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  659. package/dist/vite/mdx/remark-last-modified.js +56 -0
  660. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  661. package/dist/vite/mdx/utils.d.ts +2 -0
  662. package/dist/vite/mdx/utils.js +31 -0
  663. package/dist/vite/mdx/utils.js.map +1 -0
  664. package/dist/vite/output.d.ts +14 -2
  665. package/dist/vite/output.js +12 -14
  666. package/dist/vite/output.js.map +1 -1
  667. package/dist/vite/plugin-api-keys.d.ts +1 -2
  668. package/dist/vite/plugin-api-keys.js +13 -7
  669. package/dist/vite/plugin-api-keys.js.map +1 -1
  670. package/dist/vite/plugin-api.d.ts +1 -2
  671. package/dist/vite/plugin-api.js +136 -162
  672. package/dist/vite/plugin-api.js.map +1 -1
  673. package/dist/vite/plugin-auth.d.ts +1 -2
  674. package/dist/vite/plugin-auth.js +6 -5
  675. package/dist/vite/plugin-auth.js.map +1 -1
  676. package/dist/vite/plugin-component.d.ts +1 -2
  677. package/dist/vite/plugin-component.js +10 -4
  678. package/dist/vite/plugin-component.js.map +1 -1
  679. package/dist/vite/plugin-config-reload.d.ts +3 -3
  680. package/dist/vite/plugin-config-reload.js +31 -23
  681. package/dist/vite/plugin-config-reload.js.map +1 -1
  682. package/dist/vite/plugin-config.d.ts +1 -2
  683. package/dist/vite/plugin-config.js +11 -6
  684. package/dist/vite/plugin-config.js.map +1 -1
  685. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  686. package/dist/vite/plugin-custom-pages.js +7 -6
  687. package/dist/vite/plugin-custom-pages.js.map +1 -1
  688. package/dist/vite/plugin-docs.d.ts +2 -3
  689. package/dist/vite/plugin-docs.js +66 -46
  690. package/dist/vite/plugin-docs.js.map +1 -1
  691. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  692. package/dist/vite/plugin-frontmatter.js +13 -7
  693. package/dist/vite/plugin-frontmatter.js.map +1 -1
  694. package/dist/vite/plugin-mdx.d.ts +1 -2
  695. package/dist/vite/plugin-mdx.js +49 -64
  696. package/dist/vite/plugin-mdx.js.map +1 -1
  697. package/dist/vite/plugin-navigation.d.ts +4 -0
  698. package/dist/vite/plugin-navigation.js +64 -0
  699. package/dist/vite/plugin-navigation.js.map +1 -0
  700. package/dist/vite/plugin-redirect.d.ts +1 -2
  701. package/dist/vite/plugin-redirect.js +6 -5
  702. package/dist/vite/plugin-redirect.js.map +1 -1
  703. package/dist/vite/plugin-search.d.ts +1 -2
  704. package/dist/vite/plugin-search.js +8 -3
  705. package/dist/vite/plugin-search.js.map +1 -1
  706. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  707. package/dist/vite/plugin-shiki-register.js +39 -0
  708. package/dist/vite/plugin-shiki-register.js.map +1 -0
  709. package/dist/vite/plugin-theme.d.ts +8 -0
  710. package/dist/vite/plugin-theme.js +235 -0
  711. package/dist/vite/plugin-theme.js.map +1 -0
  712. package/dist/vite/plugin-theme.test.d.ts +1 -0
  713. package/dist/vite/plugin-theme.test.js +291 -0
  714. package/dist/vite/plugin-theme.test.js.map +1 -0
  715. package/dist/vite/plugin.d.ts +1 -2
  716. package/dist/vite/plugin.js +23 -22
  717. package/dist/vite/plugin.js.map +1 -1
  718. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  719. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  720. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  721. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  722. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  723. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  724. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  725. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  726. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  727. package/dist/vite/prerender/prerender.d.ts +15 -0
  728. package/dist/vite/prerender/prerender.js +109 -0
  729. package/dist/vite/prerender/prerender.js.map +1 -0
  730. package/dist/vite/prerender/worker.d.ts +13 -0
  731. package/dist/vite/prerender/worker.js +59 -0
  732. package/dist/vite/prerender/worker.js.map +1 -0
  733. package/dist/vite/reporter.d.ts +3 -0
  734. package/dist/vite/reporter.js +33 -0
  735. package/dist/vite/reporter.js.map +1 -0
  736. package/dist/vite/shadcn-registry.d.ts +45 -0
  737. package/dist/vite/shadcn-registry.js +29 -0
  738. package/dist/vite/shadcn-registry.js.map +1 -0
  739. package/dist/vite/sitemap.d.ts +1 -1
  740. package/dist/vite/sitemap.js +2 -1
  741. package/dist/vite/sitemap.js.map +1 -1
  742. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  743. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  744. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  745. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  746. package/dist/zuplo/with-zuplo-processors.js +7 -7
  747. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  748. package/dist/zuplo/with-zuplo.d.ts +5 -2
  749. package/dist/zuplo/with-zuplo.js +6 -5
  750. package/dist/zuplo/with-zuplo.js.map +1 -1
  751. package/lib/Alert-CT_ViLrJ.js +161 -0
  752. package/lib/Alert-CT_ViLrJ.js.map +1 -0
  753. package/lib/Button-BE9IVkWV.js +51 -0
  754. package/lib/Button-BE9IVkWV.js.map +1 -0
  755. package/lib/Card-DPhGbYUM.js +61 -0
  756. package/lib/Card-DPhGbYUM.js.map +1 -0
  757. package/lib/CodeBlock-DAKxs_Tu.js +85 -0
  758. package/lib/CodeBlock-DAKxs_Tu.js.map +1 -0
  759. package/lib/Command-xsbs2uhf.js +140 -0
  760. package/lib/Command-xsbs2uhf.js.map +1 -0
  761. package/lib/Dialog-CiIdyz6a.js +99 -0
  762. package/lib/Dialog-CiIdyz6a.js.map +1 -0
  763. package/lib/Drawer-BzkOKwgC.js +1133 -0
  764. package/lib/Drawer-BzkOKwgC.js.map +1 -0
  765. package/lib/MdxPage-swXPJ0gf.js +110 -0
  766. package/lib/MdxPage-swXPJ0gf.js.map +1 -0
  767. package/lib/OasProvider-CDAM3TB1.js +35 -0
  768. package/lib/OasProvider-CDAM3TB1.js.map +1 -0
  769. package/lib/OperationList-C9Hb9ql8.js +5166 -0
  770. package/lib/OperationList-C9Hb9ql8.js.map +1 -0
  771. package/lib/Pagination-VGlgeCmS.js +36 -0
  772. package/lib/Pagination-VGlgeCmS.js.map +1 -0
  773. package/lib/RouteGuard-CbKd7_9h.js +737 -0
  774. package/lib/RouteGuard-CbKd7_9h.js.map +1 -0
  775. package/lib/SchemaList-BAbh1BXO.js +149 -0
  776. package/lib/SchemaList-BAbh1BXO.js.map +1 -0
  777. package/lib/SchemaView-C2Io712T.js +366 -0
  778. package/lib/SchemaView-C2Io712T.js.map +1 -0
  779. package/lib/SignUp-5RUdVhnq.js +63 -0
  780. package/lib/SignUp-5RUdVhnq.js.map +1 -0
  781. package/lib/Slot-DwZlQ-vX.js +15735 -0
  782. package/lib/Slot-DwZlQ-vX.js.map +1 -0
  783. package/lib/Spinner-mNLZ6awP.js +7 -0
  784. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  785. package/lib/SyntaxHighlight-CrjhGEwT.js +10306 -0
  786. package/lib/SyntaxHighlight-CrjhGEwT.js.map +1 -0
  787. package/lib/Toc-WCmwFkX-.js +92 -0
  788. package/lib/Toc-WCmwFkX-.js.map +1 -0
  789. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js +1839 -0
  790. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +1 -0
  791. package/lib/circular-B42RaanD.js +14934 -0
  792. package/lib/circular-B42RaanD.js.map +1 -0
  793. package/lib/clerk-BDZ31hjU.js +25190 -0
  794. package/lib/clerk-BDZ31hjU.js.map +1 -0
  795. package/lib/clsx-OuTLNxxd.js +17 -0
  796. package/lib/clsx-OuTLNxxd.js.map +1 -0
  797. package/lib/cn-wvCW-ho6.js +2731 -0
  798. package/lib/cn-wvCW-ho6.js.map +1 -0
  799. package/lib/createServer-BKFsRuuk.js +12659 -0
  800. package/lib/createServer-BKFsRuuk.js.map +1 -0
  801. package/lib/errors-CF2X_x5o.js +78 -0
  802. package/lib/errors-CF2X_x5o.js.map +1 -0
  803. package/lib/hook-Bd0yS8M0.js +1503 -0
  804. package/lib/hook-Bd0yS8M0.js.map +1 -0
  805. package/lib/index-B6Re5_cx.js +3469 -0
  806. package/lib/index-B6Re5_cx.js.map +1 -0
  807. package/lib/index-CLy1XyH0.js +3919 -0
  808. package/lib/index-CLy1XyH0.js.map +1 -0
  809. package/lib/index-CcV90rin.js +2094 -0
  810. package/lib/index-CcV90rin.js.map +1 -0
  811. package/lib/index-ClhS5TxS.js +107 -0
  812. package/lib/index-ClhS5TxS.js.map +1 -0
  813. package/lib/index-CrcNWbel.js +316 -0
  814. package/lib/index-CrcNWbel.js.map +1 -0
  815. package/lib/index-DI5SPFK9.js +36 -0
  816. package/lib/index-DI5SPFK9.js.map +1 -0
  817. package/lib/index-DmNq2fbN.js +4827 -0
  818. package/lib/index-DmNq2fbN.js.map +1 -0
  819. package/lib/index.esm-Cp4wkyud.js +1236 -0
  820. package/lib/index.esm-Cp4wkyud.js.map +1 -0
  821. package/lib/invariant-DAFpPywt.js +48 -0
  822. package/lib/invariant-DAFpPywt.js.map +1 -0
  823. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  824. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  825. package/lib/processors/removeExtensions.js +11 -0
  826. package/lib/processors/removeExtensions.js.map +1 -0
  827. package/lib/processors/removeParameters.js +47 -0
  828. package/lib/processors/removeParameters.js.map +1 -0
  829. package/lib/processors/removePaths.js +28 -0
  830. package/lib/processors/removePaths.js.map +1 -0
  831. package/lib/processors/traverse.js +17 -0
  832. package/lib/processors/traverse.js.map +1 -0
  833. package/lib/ui/Accordion.js +2 -2
  834. package/lib/ui/ActionButton.js +11 -10
  835. package/lib/ui/ActionButton.js.map +1 -1
  836. package/lib/ui/Alert.js +55 -39
  837. package/lib/ui/Alert.js.map +1 -1
  838. package/lib/ui/AlertDialog.js +2 -2
  839. package/lib/ui/Badge.js +4 -4
  840. package/lib/ui/Badge.js.map +1 -1
  841. package/lib/ui/Breadcrumb.js +5 -5
  842. package/lib/ui/Button.js +22 -19
  843. package/lib/ui/Button.js.map +1 -1
  844. package/lib/ui/Callout.js +40 -20
  845. package/lib/ui/Callout.js.map +1 -1
  846. package/lib/ui/Card.js +9 -9
  847. package/lib/ui/Card.js.map +1 -1
  848. package/lib/ui/Carousel.js +348 -348
  849. package/lib/ui/Carousel.js.map +1 -1
  850. package/lib/ui/Checkbox.js +16 -26
  851. package/lib/ui/Checkbox.js.map +1 -1
  852. package/lib/ui/CodeBlock.js +9 -0
  853. package/lib/ui/CodeBlock.js.map +1 -0
  854. package/lib/ui/Command.js +102 -75
  855. package/lib/ui/Command.js.map +1 -1
  856. package/lib/ui/Dialog.js +41 -41
  857. package/lib/ui/Dialog.js.map +1 -1
  858. package/lib/ui/Drawer.js +14 -1151
  859. package/lib/ui/Drawer.js.map +1 -1
  860. package/lib/ui/DropdownMenu.js +35 -35
  861. package/lib/ui/DropdownMenu.js.map +1 -1
  862. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  863. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  864. package/lib/ui/Form.js +6 -6
  865. package/lib/ui/HoverCard.js +6 -6
  866. package/lib/ui/HoverCard.js.map +1 -1
  867. package/lib/ui/Input.js +3 -3
  868. package/lib/ui/Input.js.map +1 -1
  869. package/lib/ui/Label.js +3 -3
  870. package/lib/ui/Pagination.js +11 -11
  871. package/lib/ui/Popover.js +3 -3
  872. package/lib/ui/Popover.js.map +1 -1
  873. package/lib/ui/Progress.js +2 -2
  874. package/lib/ui/RadioGroup.js +11 -11
  875. package/lib/ui/RadioGroup.js.map +1 -1
  876. package/lib/ui/ScrollArea.js +2 -2
  877. package/lib/ui/Select.js +32 -32
  878. package/lib/ui/Select.js.map +1 -1
  879. package/lib/ui/Skeleton.js +2 -2
  880. package/lib/ui/Slider.js +6 -6
  881. package/lib/ui/Slider.js.map +1 -1
  882. package/lib/ui/Stepper.js +6 -0
  883. package/lib/ui/Stepper.js.map +1 -0
  884. package/lib/ui/Switch.js +6 -6
  885. package/lib/ui/Switch.js.map +1 -1
  886. package/lib/ui/SyntaxHighlight.js +11 -0
  887. package/lib/ui/SyntaxHighlight.js.map +1 -0
  888. package/lib/ui/Tabs.js +17 -17
  889. package/lib/ui/Tabs.js.map +1 -1
  890. package/lib/ui/Textarea.js +6 -6
  891. package/lib/ui/Textarea.js.map +1 -1
  892. package/lib/ui/Toggle.js +8 -8
  893. package/lib/ui/Toggle.js.map +1 -1
  894. package/lib/ui/ToggleGroup.js +2 -2
  895. package/lib/ui/Tooltip.js +15 -8
  896. package/lib/ui/Tooltip.js.map +1 -1
  897. package/lib/ui/util.js +6 -0
  898. package/lib/ui/util.js.map +1 -0
  899. package/lib/useExposedProps-BIYjecPD.js +9 -0
  900. package/lib/useExposedProps-BIYjecPD.js.map +1 -0
  901. package/lib/zudoku.auth-auth0.js +34 -36
  902. package/lib/zudoku.auth-auth0.js.map +1 -1
  903. package/lib/zudoku.auth-azureb2c.js +9974 -0
  904. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  905. package/lib/zudoku.auth-clerk.js +104 -84
  906. package/lib/zudoku.auth-clerk.js.map +1 -1
  907. package/lib/zudoku.auth-openid.js +503 -543
  908. package/lib/zudoku.auth-openid.js.map +1 -1
  909. package/lib/zudoku.components.js +33 -1215
  910. package/lib/zudoku.components.js.map +1 -1
  911. package/lib/zudoku.hooks.js +27 -0
  912. package/lib/zudoku.hooks.js.map +1 -0
  913. package/lib/zudoku.icons.js +10 -0
  914. package/lib/zudoku.icons.js.map +1 -1
  915. package/lib/zudoku.plugin-api-catalog.js +108 -114
  916. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  917. package/lib/zudoku.plugin-api-keys.js +542 -205
  918. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  919. package/lib/zudoku.plugin-custom-pages.js +12 -18
  920. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  921. package/lib/zudoku.plugin-markdown.js +20 -94
  922. package/lib/zudoku.plugin-markdown.js.map +1 -1
  923. package/lib/zudoku.plugin-openapi.js +7 -7
  924. package/lib/zudoku.plugin-openapi.js.map +1 -1
  925. package/lib/zudoku.plugin-redirect.js +1 -1
  926. package/lib/zudoku.plugin-redirect.js.map +1 -1
  927. package/lib/zudoku.plugin-search-inkeep.js +25 -26
  928. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  929. package/lib/zudoku.plugin-search-pagefind.js +320 -0
  930. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  931. package/lib/zudoku.plugins.js +15 -0
  932. package/lib/zudoku.plugins.js.map +1 -0
  933. package/package.json +148 -90
  934. package/src/app/ZuploBuildConfig.ts +33 -0
  935. package/src/app/defaultTheme.css +73 -0
  936. package/src/app/demo-cdn.html +31 -31
  937. package/src/app/demo.html +1 -1
  938. package/src/app/demo.tsx +6 -5
  939. package/src/app/entry.client.tsx +51 -2
  940. package/src/app/entry.server.tsx +23 -15
  941. package/src/app/env.ts +43 -0
  942. package/src/app/font.geist.css +73 -0
  943. package/src/app/main.css +156 -143
  944. package/src/app/main.tsx +49 -41
  945. package/src/app/standalone.tsx +7 -6
  946. package/src/lib/MissingIcon.tsx +22 -0
  947. package/src/lib/auth/issuer.test.ts +120 -0
  948. package/src/lib/auth/issuer.ts +41 -0
  949. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  950. package/src/lib/authentication/authentication.ts +4 -5
  951. package/src/lib/authentication/components/CallbackHandler.tsx +12 -2
  952. package/src/lib/authentication/components/SignIn.tsx +35 -2
  953. package/src/lib/authentication/components/SignUp.tsx +35 -1
  954. package/src/lib/authentication/hook.ts +12 -1
  955. package/src/lib/authentication/providers/auth0.tsx +12 -5
  956. package/src/lib/authentication/providers/azureb2c.tsx +196 -0
  957. package/src/lib/authentication/providers/clerk.tsx +105 -62
  958. package/src/lib/authentication/providers/openid.tsx +112 -57
  959. package/src/lib/authentication/providers/supabase.tsx +150 -0
  960. package/src/lib/authentication/state.ts +46 -26
  961. package/src/lib/components/AnchorLink.tsx +9 -7
  962. package/src/lib/components/Autocomplete.tsx +9 -6
  963. package/src/lib/components/Banner.tsx +4 -3
  964. package/src/lib/components/Bootstrap.tsx +13 -6
  965. package/src/lib/components/BuildCheck.tsx +75 -0
  966. package/src/lib/components/ErrorPage.tsx +3 -3
  967. package/src/lib/components/Footer.tsx +136 -0
  968. package/src/lib/components/Framed.tsx +51 -0
  969. package/src/lib/components/Header.tsx +47 -43
  970. package/src/lib/components/Heading.tsx +18 -10
  971. package/src/lib/components/InlineCode.tsx +13 -16
  972. package/src/lib/components/Layout.tsx +30 -71
  973. package/src/lib/components/Main.tsx +51 -0
  974. package/src/lib/components/Markdown.tsx +40 -27
  975. package/src/lib/components/MobileTopNavigation.tsx +35 -20
  976. package/src/lib/components/NotFoundPage.tsx +3 -3
  977. package/src/lib/components/PageProgress.tsx +28 -0
  978. package/src/lib/components/Pagination.tsx +44 -0
  979. package/src/lib/components/PathRenderer.tsx +6 -4
  980. package/src/lib/components/Search.tsx +15 -4
  981. package/src/lib/components/Slot.test.tsx +465 -0
  982. package/src/lib/components/Slot.tsx +64 -0
  983. package/src/lib/components/ThemeSwitch.tsx +28 -8
  984. package/src/lib/components/TopNavigation.tsx +71 -65
  985. package/src/lib/components/Typography.tsx +14 -0
  986. package/src/lib/components/Zudoku.tsx +27 -16
  987. package/src/lib/components/cache.ts +8 -0
  988. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  989. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  990. package/src/lib/components/context/SlotProvider.tsx +149 -0
  991. package/src/lib/components/context/ViewportAnchorContext.tsx +14 -30
  992. package/src/lib/components/context/ZudokuContext.ts +62 -25
  993. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  994. package/src/lib/components/index.ts +21 -9
  995. package/src/lib/components/navigation/Navigation.tsx +50 -0
  996. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  997. package/src/lib/components/navigation/NavigationCategory.tsx +146 -0
  998. package/src/lib/components/navigation/NavigationItem.tsx +151 -0
  999. package/src/lib/components/navigation/NavigationWrapper.tsx +46 -0
  1000. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1001. package/src/lib/components/navigation/Toc.tsx +126 -0
  1002. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1003. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1004. package/src/lib/components/navigation/utils.ts +63 -28
  1005. package/src/lib/core/RouteGuard.tsx +73 -12
  1006. package/src/lib/core/ZudokuContext.ts +94 -31
  1007. package/src/lib/core/plugins.ts +39 -9
  1008. package/src/lib/errors/ErrorAlert.tsx +19 -18
  1009. package/src/lib/hooks/index.ts +16 -0
  1010. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1011. package/src/lib/hooks/useEvent.ts +41 -0
  1012. package/src/lib/hooks/useHotkey.ts +70 -0
  1013. package/src/lib/icons.ts +1 -0
  1014. package/src/lib/oas/graphql/circular.ts +27 -19
  1015. package/src/lib/oas/graphql/index.ts +223 -73
  1016. package/src/lib/oas/parser/dereference/index.ts +2 -0
  1017. package/src/lib/oas/parser/index.ts +14 -30
  1018. package/src/lib/oas/parser/upgrade/index.ts +97 -26
  1019. package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
  1020. package/src/lib/plugins/api-catalog/index.tsx +72 -21
  1021. package/src/lib/plugins/api-keys/CreateApiKey.tsx +61 -45
  1022. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +459 -115
  1023. package/src/lib/plugins/api-keys/index.tsx +134 -58
  1024. package/src/lib/plugins/custom-pages/index.tsx +21 -16
  1025. package/src/lib/plugins/markdown/MdxPage.tsx +84 -62
  1026. package/src/lib/plugins/markdown/index.tsx +29 -42
  1027. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  1028. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  1029. package/src/lib/plugins/openapi/Endpoint.tsx +11 -9
  1030. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1031. package/src/lib/plugins/openapi/OperationList.tsx +189 -91
  1032. package/src/lib/plugins/openapi/OperationListItem.tsx +106 -111
  1033. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1034. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1035. package/src/lib/plugins/openapi/ParameterListItem.tsx +71 -23
  1036. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +23 -5
  1037. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  1038. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1039. package/src/lib/plugins/openapi/Sidecar.tsx +63 -79
  1040. package/src/lib/plugins/openapi/SidecarExamples.tsx +10 -4
  1041. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1042. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  1043. package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
  1044. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1045. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1046. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1047. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1048. package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
  1049. package/src/lib/plugins/openapi/graphql/graphql.ts +175 -65
  1050. package/src/lib/plugins/openapi/index.tsx +92 -153
  1051. package/src/lib/plugins/openapi/interfaces.ts +50 -25
  1052. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1053. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1054. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +37 -32
  1055. package/src/lib/plugins/openapi/playground/Headers.tsx +235 -102
  1056. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1057. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1058. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1059. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +6 -1
  1060. package/src/lib/plugins/openapi/playground/PathParams.tsx +19 -14
  1061. package/src/lib/plugins/openapi/playground/Playground.tsx +347 -281
  1062. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -3
  1063. package/src/lib/plugins/openapi/playground/QueryParams.tsx +144 -97
  1064. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1065. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1066. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1067. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1068. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1069. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1070. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1071. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
  1072. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +150 -89
  1073. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +79 -78
  1074. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1075. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1076. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1077. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1078. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1079. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1080. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1081. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1082. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1083. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1084. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1085. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +71 -63
  1086. package/src/lib/plugins/openapi/schema/SchemaView.tsx +99 -143
  1087. package/src/lib/plugins/openapi/schema/utils.ts +30 -6
  1088. package/src/lib/plugins/openapi/state.ts +36 -0
  1089. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1090. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +38 -0
  1091. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
  1092. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1093. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1094. package/src/lib/plugins/redirect/index.tsx +1 -1
  1095. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1096. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1097. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1098. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1099. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1100. package/src/lib/shiki.ts +132 -0
  1101. package/src/lib/ui/Alert.tsx +44 -38
  1102. package/src/lib/ui/Badge.tsx +2 -2
  1103. package/src/lib/ui/Button.tsx +12 -7
  1104. package/src/lib/ui/Callout.tsx +30 -10
  1105. package/src/lib/ui/Card.tsx +1 -1
  1106. package/src/lib/ui/Checkbox.tsx +8 -24
  1107. package/src/lib/ui/CodeBlock.tsx +88 -0
  1108. package/src/lib/ui/Command.tsx +29 -7
  1109. package/src/lib/ui/Dialog.tsx +11 -7
  1110. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1111. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1112. package/src/lib/ui/HoverCard.tsx +1 -1
  1113. package/src/lib/ui/Input.tsx +2 -3
  1114. package/src/lib/ui/Popover.tsx +1 -1
  1115. package/src/lib/ui/RadioGroup.tsx +1 -1
  1116. package/src/lib/ui/Select.tsx +3 -3
  1117. package/src/lib/ui/Slider.tsx +1 -1
  1118. package/src/lib/ui/Stepper.tsx +8 -0
  1119. package/src/lib/ui/Switch.tsx +1 -1
  1120. package/src/lib/ui/SyntaxHighlight.tsx +35 -0
  1121. package/src/lib/ui/Tabs.tsx +2 -2
  1122. package/src/lib/ui/Textarea.tsx +1 -1
  1123. package/src/lib/ui/Toggle.tsx +1 -1
  1124. package/src/lib/ui/Tooltip.tsx +16 -1
  1125. package/src/lib/ui/util.tsx +3 -0
  1126. package/src/lib/util/MdxComponents.tsx +49 -20
  1127. package/src/lib/util/detectOS.ts +9 -0
  1128. package/src/lib/util/ensureArray.ts +3 -0
  1129. package/src/lib/util/humanFileSize.test.ts +24 -0
  1130. package/src/lib/util/humanFileSize.ts +16 -0
  1131. package/src/lib/util/joinPath.tsx +3 -0
  1132. package/src/lib/util/os.ts +18 -0
  1133. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1134. package/src/lib/util/traverse.ts +12 -13
  1135. package/src/lib/util/types.ts +7 -0
  1136. package/src/lib/util/url.test.ts +51 -0
  1137. package/src/lib/util/url.ts +18 -0
  1138. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1139. package/src/lib/util/useExposedProps.tsx +12 -1
  1140. package/src/lib/util/useLatest.ts +18 -0
  1141. package/src/lib/util/useOnScreen.ts +6 -4
  1142. package/src/lib/util/useScrollToAnchor.ts +32 -40
  1143. package/src/lib/util/useScrollToTop.ts +8 -3
  1144. package/src/shiki/langs/abap.js +1 -0
  1145. package/src/shiki/langs/actionscript-3.js +1 -0
  1146. package/src/shiki/langs/ada.js +1 -0
  1147. package/src/shiki/langs/angular-expression.js +1 -0
  1148. package/src/shiki/langs/angular-html.js +1 -0
  1149. package/src/shiki/langs/angular-inline-style.js +1 -0
  1150. package/src/shiki/langs/angular-inline-template.js +1 -0
  1151. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1152. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1153. package/src/shiki/langs/angular-template.js +1 -0
  1154. package/src/shiki/langs/angular-ts.js +1 -0
  1155. package/src/shiki/langs/apache.js +1 -0
  1156. package/src/shiki/langs/apex.js +1 -0
  1157. package/src/shiki/langs/apl.js +1 -0
  1158. package/src/shiki/langs/applescript.js +1 -0
  1159. package/src/shiki/langs/ara.js +1 -0
  1160. package/src/shiki/langs/asciidoc.js +1 -0
  1161. package/src/shiki/langs/asm.js +1 -0
  1162. package/src/shiki/langs/astro.js +1 -0
  1163. package/src/shiki/langs/awk.js +1 -0
  1164. package/src/shiki/langs/ballerina.js +1 -0
  1165. package/src/shiki/langs/bat.js +1 -0
  1166. package/src/shiki/langs/beancount.js +1 -0
  1167. package/src/shiki/langs/berry.js +1 -0
  1168. package/src/shiki/langs/bibtex.js +1 -0
  1169. package/src/shiki/langs/bicep.js +1 -0
  1170. package/src/shiki/langs/blade.js +1 -0
  1171. package/src/shiki/langs/bsl.js +1 -0
  1172. package/src/shiki/langs/c.js +1 -0
  1173. package/src/shiki/langs/cadence.js +1 -0
  1174. package/src/shiki/langs/cairo.js +1 -0
  1175. package/src/shiki/langs/clarity.js +1 -0
  1176. package/src/shiki/langs/clojure.js +1 -0
  1177. package/src/shiki/langs/cmake.js +1 -0
  1178. package/src/shiki/langs/cobol.js +1 -0
  1179. package/src/shiki/langs/codeowners.js +1 -0
  1180. package/src/shiki/langs/codeql.js +1 -0
  1181. package/src/shiki/langs/coffee.js +1 -0
  1182. package/src/shiki/langs/common-lisp.js +1 -0
  1183. package/src/shiki/langs/coq.js +1 -0
  1184. package/src/shiki/langs/cpp-macro.js +1 -0
  1185. package/src/shiki/langs/cpp.js +1 -0
  1186. package/src/shiki/langs/crystal.js +1 -0
  1187. package/src/shiki/langs/csharp.js +1 -0
  1188. package/src/shiki/langs/css.js +1 -0
  1189. package/src/shiki/langs/csv.js +1 -0
  1190. package/src/shiki/langs/cue.js +1 -0
  1191. package/src/shiki/langs/cypher.js +1 -0
  1192. package/src/shiki/langs/d.js +1 -0
  1193. package/src/shiki/langs/dart.js +1 -0
  1194. package/src/shiki/langs/dax.js +1 -0
  1195. package/src/shiki/langs/desktop.js +1 -0
  1196. package/src/shiki/langs/diff.js +1 -0
  1197. package/src/shiki/langs/docker.js +1 -0
  1198. package/src/shiki/langs/dotenv.js +1 -0
  1199. package/src/shiki/langs/dream-maker.js +1 -0
  1200. package/src/shiki/langs/edge.js +1 -0
  1201. package/src/shiki/langs/elixir.js +1 -0
  1202. package/src/shiki/langs/elm.js +1 -0
  1203. package/src/shiki/langs/emacs-lisp.js +1 -0
  1204. package/src/shiki/langs/erb.js +1 -0
  1205. package/src/shiki/langs/erlang.js +1 -0
  1206. package/src/shiki/langs/es-tag-css.js +1 -0
  1207. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1208. package/src/shiki/langs/es-tag-html.js +1 -0
  1209. package/src/shiki/langs/es-tag-sql.js +1 -0
  1210. package/src/shiki/langs/es-tag-xml.js +1 -0
  1211. package/src/shiki/langs/fennel.js +1 -0
  1212. package/src/shiki/langs/fish.js +1 -0
  1213. package/src/shiki/langs/fluent.js +1 -0
  1214. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1215. package/src/shiki/langs/fortran-free-form.js +1 -0
  1216. package/src/shiki/langs/fsharp.js +1 -0
  1217. package/src/shiki/langs/gdresource.js +1 -0
  1218. package/src/shiki/langs/gdscript.js +1 -0
  1219. package/src/shiki/langs/gdshader.js +1 -0
  1220. package/src/shiki/langs/genie.js +1 -0
  1221. package/src/shiki/langs/gherkin.js +1 -0
  1222. package/src/shiki/langs/git-commit.js +1 -0
  1223. package/src/shiki/langs/git-rebase.js +1 -0
  1224. package/src/shiki/langs/gleam.js +1 -0
  1225. package/src/shiki/langs/glimmer-js.js +1 -0
  1226. package/src/shiki/langs/glimmer-ts.js +1 -0
  1227. package/src/shiki/langs/glsl.js +1 -0
  1228. package/src/shiki/langs/gnuplot.js +1 -0
  1229. package/src/shiki/langs/go.js +1 -0
  1230. package/src/shiki/langs/graphql.js +1 -0
  1231. package/src/shiki/langs/groovy.js +1 -0
  1232. package/src/shiki/langs/hack.js +1 -0
  1233. package/src/shiki/langs/haml.js +1 -0
  1234. package/src/shiki/langs/handlebars.js +1 -0
  1235. package/src/shiki/langs/haskell.js +1 -0
  1236. package/src/shiki/langs/haxe.js +1 -0
  1237. package/src/shiki/langs/hcl.js +1 -0
  1238. package/src/shiki/langs/hjson.js +1 -0
  1239. package/src/shiki/langs/hlsl.js +1 -0
  1240. package/src/shiki/langs/html-derivative.js +1 -0
  1241. package/src/shiki/langs/html.js +1 -0
  1242. package/src/shiki/langs/http.js +1 -0
  1243. package/src/shiki/langs/hxml.js +1 -0
  1244. package/src/shiki/langs/hy.js +1 -0
  1245. package/src/shiki/langs/imba.js +1 -0
  1246. package/src/shiki/langs/ini.js +1 -0
  1247. package/src/shiki/langs/java.js +1 -0
  1248. package/src/shiki/langs/javascript.js +1 -0
  1249. package/src/shiki/langs/jinja-html.js +1 -0
  1250. package/src/shiki/langs/jinja.js +1 -0
  1251. package/src/shiki/langs/jison.js +1 -0
  1252. package/src/shiki/langs/json.js +1 -0
  1253. package/src/shiki/langs/json5.js +1 -0
  1254. package/src/shiki/langs/jsonc.js +1 -0
  1255. package/src/shiki/langs/jsonl.js +1 -0
  1256. package/src/shiki/langs/jsonnet.js +1 -0
  1257. package/src/shiki/langs/jssm.js +1 -0
  1258. package/src/shiki/langs/jsx.js +1 -0
  1259. package/src/shiki/langs/julia.js +1 -0
  1260. package/src/shiki/langs/kotlin.js +1 -0
  1261. package/src/shiki/langs/kusto.js +1 -0
  1262. package/src/shiki/langs/latex.js +1 -0
  1263. package/src/shiki/langs/lean.js +1 -0
  1264. package/src/shiki/langs/less.js +1 -0
  1265. package/src/shiki/langs/liquid.js +1 -0
  1266. package/src/shiki/langs/llvm.js +1 -0
  1267. package/src/shiki/langs/log.js +1 -0
  1268. package/src/shiki/langs/logo.js +1 -0
  1269. package/src/shiki/langs/lua.js +1 -0
  1270. package/src/shiki/langs/luau.js +1 -0
  1271. package/src/shiki/langs/make.js +1 -0
  1272. package/src/shiki/langs/markdown-vue.js +1 -0
  1273. package/src/shiki/langs/markdown.js +1 -0
  1274. package/src/shiki/langs/marko.js +1 -0
  1275. package/src/shiki/langs/matlab.js +1 -0
  1276. package/src/shiki/langs/mdc.js +1 -0
  1277. package/src/shiki/langs/mdx.js +1 -0
  1278. package/src/shiki/langs/mermaid.js +1 -0
  1279. package/src/shiki/langs/mipsasm.js +1 -0
  1280. package/src/shiki/langs/mojo.js +1 -0
  1281. package/src/shiki/langs/move.js +1 -0
  1282. package/src/shiki/langs/narrat.js +1 -0
  1283. package/src/shiki/langs/nextflow.js +1 -0
  1284. package/src/shiki/langs/nginx.js +1 -0
  1285. package/src/shiki/langs/nim.js +1 -0
  1286. package/src/shiki/langs/nix.js +1 -0
  1287. package/src/shiki/langs/nushell.js +1 -0
  1288. package/src/shiki/langs/objective-c.js +1 -0
  1289. package/src/shiki/langs/objective-cpp.js +1 -0
  1290. package/src/shiki/langs/ocaml.js +1 -0
  1291. package/src/shiki/langs/pascal.js +1 -0
  1292. package/src/shiki/langs/perl.js +1 -0
  1293. package/src/shiki/langs/php.js +1 -0
  1294. package/src/shiki/langs/plsql.js +1 -0
  1295. package/src/shiki/langs/po.js +1 -0
  1296. package/src/shiki/langs/polar.js +1 -0
  1297. package/src/shiki/langs/postcss.js +1 -0
  1298. package/src/shiki/langs/powerquery.js +1 -0
  1299. package/src/shiki/langs/powershell.js +1 -0
  1300. package/src/shiki/langs/prisma.js +1 -0
  1301. package/src/shiki/langs/prolog.js +1 -0
  1302. package/src/shiki/langs/proto.js +1 -0
  1303. package/src/shiki/langs/pug.js +1 -0
  1304. package/src/shiki/langs/puppet.js +1 -0
  1305. package/src/shiki/langs/purescript.js +1 -0
  1306. package/src/shiki/langs/python.js +1 -0
  1307. package/src/shiki/langs/qml.js +1 -0
  1308. package/src/shiki/langs/qmldir.js +1 -0
  1309. package/src/shiki/langs/qss.js +1 -0
  1310. package/src/shiki/langs/r.js +1 -0
  1311. package/src/shiki/langs/racket.js +1 -0
  1312. package/src/shiki/langs/raku.js +1 -0
  1313. package/src/shiki/langs/razor.js +1 -0
  1314. package/src/shiki/langs/reg.js +1 -0
  1315. package/src/shiki/langs/regexp.js +1 -0
  1316. package/src/shiki/langs/rel.js +1 -0
  1317. package/src/shiki/langs/riscv.js +1 -0
  1318. package/src/shiki/langs/rst.js +1 -0
  1319. package/src/shiki/langs/ruby.js +1 -0
  1320. package/src/shiki/langs/rust.js +1 -0
  1321. package/src/shiki/langs/sas.js +1 -0
  1322. package/src/shiki/langs/sass.js +1 -0
  1323. package/src/shiki/langs/scala.js +1 -0
  1324. package/src/shiki/langs/scheme.js +1 -0
  1325. package/src/shiki/langs/scss.js +1 -0
  1326. package/src/shiki/langs/sdbl.js +1 -0
  1327. package/src/shiki/langs/shaderlab.js +1 -0
  1328. package/src/shiki/langs/shellscript.js +1 -0
  1329. package/src/shiki/langs/shellsession.js +1 -0
  1330. package/src/shiki/langs/smalltalk.js +1 -0
  1331. package/src/shiki/langs/solidity.js +1 -0
  1332. package/src/shiki/langs/soy.js +1 -0
  1333. package/src/shiki/langs/sparql.js +1 -0
  1334. package/src/shiki/langs/splunk.js +1 -0
  1335. package/src/shiki/langs/sql.js +1 -0
  1336. package/src/shiki/langs/ssh-config.js +1 -0
  1337. package/src/shiki/langs/stata.js +1 -0
  1338. package/src/shiki/langs/stylus.js +1 -0
  1339. package/src/shiki/langs/svelte.js +1 -0
  1340. package/src/shiki/langs/swift.js +1 -0
  1341. package/src/shiki/langs/system-verilog.js +1 -0
  1342. package/src/shiki/langs/systemd.js +1 -0
  1343. package/src/shiki/langs/talonscript.js +1 -0
  1344. package/src/shiki/langs/tasl.js +1 -0
  1345. package/src/shiki/langs/tcl.js +1 -0
  1346. package/src/shiki/langs/templ.js +1 -0
  1347. package/src/shiki/langs/terraform.js +1 -0
  1348. package/src/shiki/langs/tex.js +1 -0
  1349. package/src/shiki/langs/toml.js +1 -0
  1350. package/src/shiki/langs/ts-tags.js +1 -0
  1351. package/src/shiki/langs/tsv.js +1 -0
  1352. package/src/shiki/langs/tsx.js +1 -0
  1353. package/src/shiki/langs/turtle.js +1 -0
  1354. package/src/shiki/langs/twig.js +1 -0
  1355. package/src/shiki/langs/typescript.js +1 -0
  1356. package/src/shiki/langs/typespec.js +1 -0
  1357. package/src/shiki/langs/typst.js +1 -0
  1358. package/src/shiki/langs/v.js +1 -0
  1359. package/src/shiki/langs/vala.js +1 -0
  1360. package/src/shiki/langs/vb.js +1 -0
  1361. package/src/shiki/langs/verilog.js +1 -0
  1362. package/src/shiki/langs/vhdl.js +1 -0
  1363. package/src/shiki/langs/viml.js +1 -0
  1364. package/src/shiki/langs/vue-directives.js +1 -0
  1365. package/src/shiki/langs/vue-html.js +1 -0
  1366. package/src/shiki/langs/vue-interpolations.js +1 -0
  1367. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1368. package/src/shiki/langs/vue.js +1 -0
  1369. package/src/shiki/langs/vyper.js +1 -0
  1370. package/src/shiki/langs/wasm.js +1 -0
  1371. package/src/shiki/langs/wenyan.js +1 -0
  1372. package/src/shiki/langs/wgsl.js +1 -0
  1373. package/src/shiki/langs/wikitext.js +1 -0
  1374. package/src/shiki/langs/wit.js +1 -0
  1375. package/src/shiki/langs/wolfram.js +1 -0
  1376. package/src/shiki/langs/xml.js +1 -0
  1377. package/src/shiki/langs/xsl.js +1 -0
  1378. package/src/shiki/langs/yaml.js +1 -0
  1379. package/src/shiki/langs/zenscript.js +1 -0
  1380. package/src/shiki/langs/zig.js +1 -0
  1381. package/src/shiki/themes/andromeeda.js +1 -0
  1382. package/src/shiki/themes/aurora-x.js +1 -0
  1383. package/src/shiki/themes/ayu-dark.js +1 -0
  1384. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1385. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1386. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1387. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1388. package/src/shiki/themes/dark-plus.js +1 -0
  1389. package/src/shiki/themes/dracula-soft.js +1 -0
  1390. package/src/shiki/themes/dracula.js +1 -0
  1391. package/src/shiki/themes/everforest-dark.js +1 -0
  1392. package/src/shiki/themes/everforest-light.js +1 -0
  1393. package/src/shiki/themes/github-dark-default.js +1 -0
  1394. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1395. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1396. package/src/shiki/themes/github-dark.js +1 -0
  1397. package/src/shiki/themes/github-light-default.js +1 -0
  1398. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1399. package/src/shiki/themes/github-light.js +1 -0
  1400. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1401. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1402. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1403. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1404. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1405. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1406. package/src/shiki/themes/houston.js +1 -0
  1407. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1408. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1409. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1410. package/src/shiki/themes/laserwave.js +1 -0
  1411. package/src/shiki/themes/light-plus.js +1 -0
  1412. package/src/shiki/themes/material-theme-darker.js +1 -0
  1413. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1414. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1415. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1416. package/src/shiki/themes/material-theme.js +1 -0
  1417. package/src/shiki/themes/min-dark.js +1 -0
  1418. package/src/shiki/themes/min-light.js +1 -0
  1419. package/src/shiki/themes/monokai.js +1 -0
  1420. package/src/shiki/themes/night-owl.js +1 -0
  1421. package/src/shiki/themes/nord.js +1 -0
  1422. package/src/shiki/themes/one-dark-pro.js +1 -0
  1423. package/src/shiki/themes/one-light.js +1 -0
  1424. package/src/shiki/themes/plastic.js +1 -0
  1425. package/src/shiki/themes/poimandres.js +1 -0
  1426. package/src/shiki/themes/red.js +1 -0
  1427. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1428. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1429. package/src/shiki/themes/rose-pine.js +1 -0
  1430. package/src/shiki/themes/slack-dark.js +1 -0
  1431. package/src/shiki/themes/slack-ochin.js +1 -0
  1432. package/src/shiki/themes/snazzy-light.js +1 -0
  1433. package/src/shiki/themes/solarized-dark.js +1 -0
  1434. package/src/shiki/themes/solarized-light.js +1 -0
  1435. package/src/shiki/themes/synthwave-84.js +1 -0
  1436. package/src/shiki/themes/tokyo-night.js +1 -0
  1437. package/src/shiki/themes/vesper.js +1 -0
  1438. package/src/shiki/themes/vitesse-black.js +1 -0
  1439. package/src/shiki/themes/vitesse-dark.js +1 -0
  1440. package/src/shiki/themes/vitesse-light.js +1 -0
  1441. package/client.d.ts +0 -8
  1442. package/dist/app/tailwind.d.ts +0 -4
  1443. package/dist/app/tailwind.js +0 -77
  1444. package/dist/app/tailwind.js.map +0 -1
  1445. package/dist/config/common.d.ts +0 -8
  1446. package/dist/config/common.js +0 -2
  1447. package/dist/config/common.js.map +0 -1
  1448. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1449. package/dist/config/validators/InputSidebarSchema.js +0 -53
  1450. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1451. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1452. package/dist/config/validators/SidebarSchema.js +0 -118
  1453. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1454. package/dist/config/validators/common.d.ts +0 -5034
  1455. package/dist/config/validators/common.js +0 -287
  1456. package/dist/config/validators/common.js.map +0 -1
  1457. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1458. package/dist/lib/components/SlotletProvider.js +0 -18
  1459. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1460. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  1461. package/dist/lib/components/SyntaxHighlight.js +0 -53
  1462. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1463. package/dist/lib/components/context/PluginSystem.js +0 -2
  1464. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1465. package/dist/lib/components/navigation/Sidebar.d.ts +0 -3
  1466. package/dist/lib/components/navigation/Sidebar.js +0 -14
  1467. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1468. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -24
  1469. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  1470. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1471. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1472. package/dist/lib/components/navigation/SidebarCategory.js +0 -51
  1473. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1474. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -10
  1475. package/dist/lib/components/navigation/SidebarItem.js +0 -43
  1476. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1477. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  1478. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  1479. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1480. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1481. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1482. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1483. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1484. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1485. package/dist/lib/plugins/markdown/resolver.d.ts +0 -38
  1486. package/dist/lib/plugins/markdown/resolver.js +0 -75
  1487. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1488. package/dist/lib/plugins/openapi/OpenApiRoute.d.ts +0 -9
  1489. package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
  1490. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
  1491. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1492. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1493. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1494. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1495. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1496. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1497. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1498. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1499. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1500. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1501. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +0 -16
  1502. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1503. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +0 -174
  1504. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1505. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +0 -10
  1506. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +0 -66
  1507. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1508. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +0 -131
  1509. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1510. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +0 -11
  1511. package/dist/lib/plugins/openapi/post-processors/removePaths.js +0 -33
  1512. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1513. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1514. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1515. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1516. package/dist/vite/plugin-docs.test.js +0 -22
  1517. package/dist/vite/plugin-docs.test.js.map +0 -1
  1518. package/dist/vite/plugin-sidebar.d.ts +0 -3
  1519. package/dist/vite/plugin-sidebar.js +0 -47
  1520. package/dist/vite/plugin-sidebar.js.map +0 -1
  1521. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1522. package/dist/vite/plugin-theme-css.js +0 -114
  1523. package/dist/vite/plugin-theme-css.js.map +0 -1
  1524. package/dist/vite/prerender.d.ts +0 -22
  1525. package/dist/vite/prerender.js +0 -89
  1526. package/dist/vite/prerender.js.map +0 -1
  1527. package/dist/zuplo/env.d.ts +0 -7
  1528. package/dist/zuplo/env.js +0 -12
  1529. package/dist/zuplo/env.js.map +0 -1
  1530. package/lib/AuthenticationPlugin-Du8cLBSr.js +0 -58
  1531. package/lib/AuthenticationPlugin-Du8cLBSr.js.map +0 -1
  1532. package/lib/CategoryHeading-MYL1u_6K.js +0 -10
  1533. package/lib/CategoryHeading-MYL1u_6K.js.map +0 -1
  1534. package/lib/Markdown-Cyrx_JrO.js +0 -15212
  1535. package/lib/Markdown-Cyrx_JrO.js.map +0 -1
  1536. package/lib/MdxPage-BuG8Tuwc.js +0 -193
  1537. package/lib/MdxPage-BuG8Tuwc.js.map +0 -1
  1538. package/lib/OpenApiRoute-UrC_t0e5.js +0 -36
  1539. package/lib/OpenApiRoute-UrC_t0e5.js.map +0 -1
  1540. package/lib/OperationList-CDt1xdc4.js +0 -5169
  1541. package/lib/OperationList-CDt1xdc4.js.map +0 -1
  1542. package/lib/Select-CnCZ4WhS.js +0 -223
  1543. package/lib/Select-CnCZ4WhS.js.map +0 -1
  1544. package/lib/SlotletProvider-mQiPDQIH.js +0 -221
  1545. package/lib/SlotletProvider-mQiPDQIH.js.map +0 -1
  1546. package/lib/Spinner-BlzrEEk1.js +0 -51
  1547. package/lib/Spinner-BlzrEEk1.js.map +0 -1
  1548. package/lib/SyntaxHighlight-B0L4SC_N.js +0 -2986
  1549. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  1550. package/lib/ZudokuContext-BTUJPpQl.js +0 -1229
  1551. package/lib/ZudokuContext-BTUJPpQl.js.map +0 -1
  1552. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1553. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1554. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1555. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1556. package/lib/chunk-SYFQ2XB5-BPvC-soB.js +0 -1821
  1557. package/lib/chunk-SYFQ2XB5-BPvC-soB.js.map +0 -1
  1558. package/lib/circular-DxaIIlWD.js +0 -15409
  1559. package/lib/circular-DxaIIlWD.js.map +0 -1
  1560. package/lib/cn-qaFjX9_3.js +0 -2279
  1561. package/lib/cn-qaFjX9_3.js.map +0 -1
  1562. package/lib/context-rwLGh-6_.js +0 -22
  1563. package/lib/context-rwLGh-6_.js.map +0 -1
  1564. package/lib/createServer-CjNktZzL.js +0 -12603
  1565. package/lib/createServer-CjNktZzL.js.map +0 -1
  1566. package/lib/hook-FT3SJLe_.js +0 -227
  1567. package/lib/hook-FT3SJLe_.js.map +0 -1
  1568. package/lib/index-B7mqiOei.js +0 -509
  1569. package/lib/index-B7mqiOei.js.map +0 -1
  1570. package/lib/index-CjJS0l4l.js +0 -2094
  1571. package/lib/index-CjJS0l4l.js.map +0 -1
  1572. package/lib/index-Djenk2Hj.js +0 -36
  1573. package/lib/index-Djenk2Hj.js.map +0 -1
  1574. package/lib/index-Dl3Yl0yb.js +0 -4837
  1575. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1576. package/lib/index-Eb1oiHbM.js +0 -1997
  1577. package/lib/index-Eb1oiHbM.js.map +0 -1
  1578. package/lib/index.esm-9-TF9KQB.js +0 -692
  1579. package/lib/index.esm-9-TF9KQB.js.map +0 -1
  1580. package/lib/index.esm-CrSoEshU.js +0 -1207
  1581. package/lib/index.esm-CrSoEshU.js.map +0 -1
  1582. package/lib/invariant-Caa8-XvF.js +0 -26
  1583. package/lib/invariant-Caa8-XvF.js.map +0 -1
  1584. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  1585. package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
  1586. package/lib/jsx-runtime-Bdg6XQ1m.js +0 -446
  1587. package/lib/jsx-runtime-Bdg6XQ1m.js.map +0 -1
  1588. package/lib/post-processors/removeExtensions.js +0 -11
  1589. package/lib/post-processors/removeExtensions.js.map +0 -1
  1590. package/lib/post-processors/removeParameters.js +0 -48
  1591. package/lib/post-processors/removeParameters.js.map +0 -1
  1592. package/lib/post-processors/removePaths.js +0 -28
  1593. package/lib/post-processors/removePaths.js.map +0 -1
  1594. package/lib/post-processors/traverse.js +0 -15
  1595. package/lib/post-processors/traverse.js.map +0 -1
  1596. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1597. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1598. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1599. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1600. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1601. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1602. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1603. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1604. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1605. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1606. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1607. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1608. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1609. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1610. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1611. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1612. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1613. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1614. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1615. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1616. package/lib/state-mM7uaXTW.js +0 -202
  1617. package/lib/state-mM7uaXTW.js.map +0 -1
  1618. package/lib/useExposedProps-BLKFBylA.js +0 -9
  1619. package/lib/useExposedProps-BLKFBylA.js.map +0 -1
  1620. package/lib/useScrollToAnchor-BZsGmBng.js +0 -284
  1621. package/lib/useScrollToAnchor-BZsGmBng.js.map +0 -1
  1622. package/src/app/tailwind.ts +0 -83
  1623. package/src/lib/components/SlotletProvider.tsx +0 -55
  1624. package/src/lib/components/SyntaxHighlight.tsx +0 -171
  1625. package/src/lib/components/context/PluginSystem.ts +0 -0
  1626. package/src/lib/components/navigation/Sidebar.tsx +0 -49
  1627. package/src/lib/components/navigation/SidebarBadge.tsx +0 -45
  1628. package/src/lib/components/navigation/SidebarCategory.tsx +0 -137
  1629. package/src/lib/components/navigation/SidebarItem.tsx +0 -124
  1630. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -27
  1631. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1632. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1633. package/src/lib/plugins/markdown/resolver.ts +0 -90
  1634. package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
  1635. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1636. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1637. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1638. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +0 -202
  1639. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +0 -27
  1640. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +0 -148
  1641. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +0 -101
  1642. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1643. package/src/lib/plugins/openapi/post-processors/removePaths.ts +0 -55
  1644. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  1645. /package/dist/{lib/plugins/openapi/post-processors/removeExtensions.test.d.ts → config/validators/validate.test.d.ts} +0 -0
  1646. /package/dist/lib/{plugins/openapi/post-processors/removeParameters.test.d.ts → auth/issuer.test.d.ts} +0 -0
  1647. /package/dist/lib/{plugins/openapi/post-processors/removePaths.test.d.ts → components/Slot.test.d.ts} +0 -0
  1648. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1649. /package/dist/{vite/plugin-docs.test.d.ts → lib/hooks/useEvent.test.d.ts} +0 -0
  1650. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  1651. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  1652. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,1821 +0,0 @@
1
- import * as o from "react";
2
- var _ = {}, se;
3
- function Ae() {
4
- if (se) return _;
5
- se = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.parse = s, _.serialize = u;
6
- const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, i = /* @__PURE__ */ (() => {
7
- const f = function() {
8
- };
9
- return f.prototype = /* @__PURE__ */ Object.create(null), f;
10
- })();
11
- function s(f, p) {
12
- const d = new i(), v = f.length;
13
- if (v < 2)
14
- return d;
15
- const w = (p == null ? void 0 : p.decode) || m;
16
- let h = 0;
17
- do {
18
- const E = f.indexOf("=", h);
19
- if (E === -1)
20
- break;
21
- const y = f.indexOf(";", h), R = y === -1 ? v : y;
22
- if (E > R) {
23
- h = f.lastIndexOf(";", E - 1) + 1;
24
- continue;
25
- }
26
- const x = c(f, h, E), C = l(f, E, x), $ = f.slice(x, C);
27
- if (d[$] === void 0) {
28
- let S = c(f, E + 1, R), P = l(f, R, S);
29
- const D = w(f.slice(S, P));
30
- d[$] = D;
31
- }
32
- h = R + 1;
33
- } while (h < v);
34
- return d;
35
- }
36
- function c(f, p, d) {
37
- do {
38
- const v = f.charCodeAt(p);
39
- if (v !== 32 && v !== 9)
40
- return p;
41
- } while (++p < d);
42
- return d;
43
- }
44
- function l(f, p, d) {
45
- for (; p > d; ) {
46
- const v = f.charCodeAt(--p);
47
- if (v !== 32 && v !== 9)
48
- return p + 1;
49
- }
50
- return d;
51
- }
52
- function u(f, p, d) {
53
- const v = (d == null ? void 0 : d.encode) || encodeURIComponent;
54
- if (!e.test(f))
55
- throw new TypeError(`argument name is invalid: ${f}`);
56
- const w = v(p);
57
- if (!t.test(w))
58
- throw new TypeError(`argument val is invalid: ${p}`);
59
- let h = f + "=" + w;
60
- if (!d)
61
- return h;
62
- if (d.maxAge !== void 0) {
63
- if (!Number.isInteger(d.maxAge))
64
- throw new TypeError(`option maxAge is invalid: ${d.maxAge}`);
65
- h += "; Max-Age=" + d.maxAge;
66
- }
67
- if (d.domain) {
68
- if (!n.test(d.domain))
69
- throw new TypeError(`option domain is invalid: ${d.domain}`);
70
- h += "; Domain=" + d.domain;
71
- }
72
- if (d.path) {
73
- if (!a.test(d.path))
74
- throw new TypeError(`option path is invalid: ${d.path}`);
75
- h += "; Path=" + d.path;
76
- }
77
- if (d.expires) {
78
- if (!g(d.expires) || !Number.isFinite(d.expires.valueOf()))
79
- throw new TypeError(`option expires is invalid: ${d.expires}`);
80
- h += "; Expires=" + d.expires.toUTCString();
81
- }
82
- if (d.httpOnly && (h += "; HttpOnly"), d.secure && (h += "; Secure"), d.partitioned && (h += "; Partitioned"), d.priority)
83
- switch (typeof d.priority == "string" ? d.priority.toLowerCase() : void 0) {
84
- case "low":
85
- h += "; Priority=Low";
86
- break;
87
- case "medium":
88
- h += "; Priority=Medium";
89
- break;
90
- case "high":
91
- h += "; Priority=High";
92
- break;
93
- default:
94
- throw new TypeError(`option priority is invalid: ${d.priority}`);
95
- }
96
- if (d.sameSite)
97
- switch (typeof d.sameSite == "string" ? d.sameSite.toLowerCase() : d.sameSite) {
98
- case !0:
99
- case "strict":
100
- h += "; SameSite=Strict";
101
- break;
102
- case "lax":
103
- h += "; SameSite=Lax";
104
- break;
105
- case "none":
106
- h += "; SameSite=None";
107
- break;
108
- default:
109
- throw new TypeError(`option sameSite is invalid: ${d.sameSite}`);
110
- }
111
- return h;
112
- }
113
- function m(f) {
114
- if (f.indexOf("%") === -1)
115
- return f;
116
- try {
117
- return decodeURIComponent(f);
118
- } catch {
119
- return f;
120
- }
121
- }
122
- function g(f) {
123
- return r.call(f) === "[object Date]";
124
- }
125
- return _;
126
- }
127
- Ae();
128
- /**
129
- * react-router v7.1.3
130
- *
131
- * Copyright (c) Remix Software Inc.
132
- *
133
- * This source code is licensed under the MIT license found in the
134
- * LICENSE.md file in the root directory of this source tree.
135
- *
136
- * @license MIT
137
- */
138
- function b(e, t) {
139
- if (e === !1 || e === null || typeof e > "u")
140
- throw new Error(t);
141
- }
142
- function L(e, t) {
143
- if (!e) {
144
- typeof console < "u" && console.warn(t);
145
- try {
146
- throw new Error(t);
147
- } catch {
148
- }
149
- }
150
- }
151
- function B({
152
- pathname: e = "/",
153
- search: t = "",
154
- hash: n = ""
155
- }) {
156
- return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
157
- }
158
- function Y(e) {
159
- let t = {};
160
- if (e) {
161
- let n = e.indexOf("#");
162
- n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
163
- let a = e.indexOf("?");
164
- a >= 0 && (t.search = e.substring(a), e = e.substring(0, a)), e && (t.pathname = e);
165
- }
166
- return t;
167
- }
168
- function pe(e, t, n = "/") {
169
- return De(e, t, n, !1);
170
- }
171
- function De(e, t, n, a) {
172
- let r = typeof t == "string" ? Y(t) : t, i = I(r.pathname || "/", n);
173
- if (i == null)
174
- return null;
175
- let s = ge(e);
176
- Ie(s);
177
- let c = null;
178
- for (let l = 0; c == null && l < s.length; ++l) {
179
- let u = ye(i);
180
- c = ze(
181
- s[l],
182
- u,
183
- a
184
- );
185
- }
186
- return c;
187
- }
188
- function ge(e, t = [], n = [], a = "") {
189
- let r = (i, s, c) => {
190
- let l = {
191
- relativePath: c === void 0 ? i.path || "" : c,
192
- caseSensitive: i.caseSensitive === !0,
193
- childrenIndex: s,
194
- route: i
195
- };
196
- l.relativePath.startsWith("/") && (b(
197
- l.relativePath.startsWith(a),
198
- `Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
199
- ), l.relativePath = l.relativePath.slice(a.length));
200
- let u = A([a, l.relativePath]), m = n.concat(l);
201
- i.children && i.children.length > 0 && (b(
202
- // Our types know better, but runtime JS may not!
203
- // @ts-expect-error
204
- i.index !== !0,
205
- `Index routes must not have child routes. Please remove all child routes from route path "${u}".`
206
- ), ge(i.children, t, m, u)), !(i.path == null && !i.index) && t.push({
207
- path: u,
208
- score: He(u, i.index),
209
- routesMeta: m
210
- });
211
- };
212
- return e.forEach((i, s) => {
213
- var c;
214
- if (i.path === "" || !((c = i.path) != null && c.includes("?")))
215
- r(i, s);
216
- else
217
- for (let l of ve(i.path))
218
- r(i, s, l);
219
- }), t;
220
- }
221
- function ve(e) {
222
- let t = e.split("/");
223
- if (t.length === 0) return [];
224
- let [n, ...a] = t, r = n.endsWith("?"), i = n.replace(/\?$/, "");
225
- if (a.length === 0)
226
- return r ? [i, ""] : [i];
227
- let s = ve(a.join("/")), c = [];
228
- return c.push(
229
- ...s.map(
230
- (l) => l === "" ? i : [i, l].join("/")
231
- )
232
- ), r && c.push(...s), c.map(
233
- (l) => e.startsWith("/") && l === "" ? "/" : l
234
- );
235
- }
236
- function Ie(e) {
237
- e.sort(
238
- (t, n) => t.score !== n.score ? n.score - t.score : We(
239
- t.routesMeta.map((a) => a.childrenIndex),
240
- n.routesMeta.map((a) => a.childrenIndex)
241
- )
242
- );
243
- }
244
- var Oe = /^:[\w-]+$/, Me = 3, Fe = 2, _e = 1, Ue = 10, Be = -2, ce = (e) => e === "*";
245
- function He(e, t) {
246
- let n = e.split("/"), a = n.length;
247
- return n.some(ce) && (a += Be), t && (a += Fe), n.filter((r) => !ce(r)).reduce(
248
- (r, i) => r + (Oe.test(i) ? Me : i === "" ? _e : Ue),
249
- a
250
- );
251
- }
252
- function We(e, t) {
253
- return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
254
- // If two routes are siblings, we should try to match the earlier sibling
255
- // first. This allows people to have fine-grained control over the matching
256
- // behavior by simply putting routes with identical paths in the order they
257
- // want them tried.
258
- e[e.length - 1] - t[t.length - 1]
259
- ) : (
260
- // Otherwise, it doesn't really make sense to rank non-siblings by index,
261
- // so they sort equally.
262
- 0
263
- );
264
- }
265
- function ze(e, t, n = !1) {
266
- let { routesMeta: a } = e, r = {}, i = "/", s = [];
267
- for (let c = 0; c < a.length; ++c) {
268
- let l = a[c], u = c === a.length - 1, m = i === "/" ? t : t.slice(i.length) || "/", g = H(
269
- { path: l.relativePath, caseSensitive: l.caseSensitive, end: u },
270
- m
271
- ), f = l.route;
272
- if (!g && u && n && !a[a.length - 1].route.index && (g = H(
273
- {
274
- path: l.relativePath,
275
- caseSensitive: l.caseSensitive,
276
- end: !1
277
- },
278
- m
279
- )), !g)
280
- return null;
281
- Object.assign(r, g.params), s.push({
282
- // TODO: Can this as be avoided?
283
- params: r,
284
- pathname: A([i, g.pathname]),
285
- pathnameBase: Ke(
286
- A([i, g.pathnameBase])
287
- ),
288
- route: f
289
- }), g.pathnameBase !== "/" && (i = A([i, g.pathnameBase]));
290
- }
291
- return s;
292
- }
293
- function H(e, t) {
294
- typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
295
- let [n, a] = Ve(
296
- e.path,
297
- e.caseSensitive,
298
- e.end
299
- ), r = t.match(n);
300
- if (!r) return null;
301
- let i = r[0], s = i.replace(/(.)\/+$/, "$1"), c = r.slice(1);
302
- return {
303
- params: a.reduce(
304
- (u, { paramName: m, isOptional: g }, f) => {
305
- if (m === "*") {
306
- let d = c[f] || "";
307
- s = i.slice(0, i.length - d.length).replace(/(.)\/+$/, "$1");
308
- }
309
- const p = c[f];
310
- return g && !p ? u[m] = void 0 : u[m] = (p || "").replace(/%2F/g, "/"), u;
311
- },
312
- {}
313
- ),
314
- pathname: i,
315
- pathnameBase: s,
316
- pattern: e
317
- };
318
- }
319
- function Ve(e, t = !1, n = !0) {
320
- L(
321
- e === "*" || !e.endsWith("*") || e.endsWith("/*"),
322
- `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
323
- );
324
- let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
325
- /\/:([\w-]+)(\?)?/g,
326
- (s, c, l) => (a.push({ paramName: c, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
327
- );
328
- return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
329
- }
330
- function ye(e) {
331
- try {
332
- return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
333
- } catch (t) {
334
- return L(
335
- !1,
336
- `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
337
- ), e;
338
- }
339
- }
340
- function I(e, t) {
341
- if (t === "/") return e;
342
- if (!e.toLowerCase().startsWith(t.toLowerCase()))
343
- return null;
344
- let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
345
- return a && a !== "/" ? null : e.slice(n) || "/";
346
- }
347
- function je(e, t = "/") {
348
- let {
349
- pathname: n,
350
- search: a = "",
351
- hash: r = ""
352
- } = typeof e == "string" ? Y(e) : e;
353
- return {
354
- pathname: n ? n.startsWith("/") ? n : Ye(n, t) : t,
355
- search: qe(a),
356
- hash: Ge(r)
357
- };
358
- }
359
- function Ye(e, t) {
360
- let n = t.replace(/\/+$/, "").split("/");
361
- return e.split("/").forEach((r) => {
362
- r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
363
- }), n.length > 1 ? n.join("/") : "/";
364
- }
365
- function G(e, t, n, a) {
366
- return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
367
- a
368
- )}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
369
- }
370
- function Je(e) {
371
- return e.filter(
372
- (t, n) => n === 0 || t.route.path && t.route.path.length > 0
373
- );
374
- }
375
- function Z(e) {
376
- let t = Je(e);
377
- return t.map(
378
- (n, a) => a === t.length - 1 ? n.pathname : n.pathnameBase
379
- );
380
- }
381
- function ee(e, t, n, a = !1) {
382
- let r;
383
- typeof e == "string" ? r = Y(e) : (r = { ...e }, b(
384
- !r.pathname || !r.pathname.includes("?"),
385
- G("?", "pathname", "search", r)
386
- ), b(
387
- !r.pathname || !r.pathname.includes("#"),
388
- G("#", "pathname", "hash", r)
389
- ), b(
390
- !r.search || !r.search.includes("#"),
391
- G("#", "search", "hash", r)
392
- ));
393
- let i = e === "" || r.pathname === "", s = i ? "/" : r.pathname, c;
394
- if (s == null)
395
- c = n;
396
- else {
397
- let g = t.length - 1;
398
- if (!a && s.startsWith("..")) {
399
- let f = s.split("/");
400
- for (; f[0] === ".."; )
401
- f.shift(), g -= 1;
402
- r.pathname = f.join("/");
403
- }
404
- c = g >= 0 ? t[g] : "/";
405
- }
406
- let l = je(r, c), u = s && s !== "/" && s.endsWith("/"), m = (i || s === ".") && n.endsWith("/");
407
- return !l.pathname.endsWith("/") && (u || m) && (l.pathname += "/"), l;
408
- }
409
- var A = (e) => e.join("/").replace(/\/\/+/g, "/"), Ke = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), qe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ge = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, an = (e, t = 302) => {
410
- let n = t;
411
- typeof n == "number" ? n = { status: n } : typeof n.status > "u" && (n.status = 302);
412
- let a = new Headers(n.headers);
413
- return a.set("Location", e), new Response(null, { ...n, headers: a });
414
- };
415
- function we(e) {
416
- return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
417
- }
418
- var Ee = [
419
- "POST",
420
- "PUT",
421
- "PATCH",
422
- "DELETE"
423
- ];
424
- new Set(
425
- Ee
426
- );
427
- var Xe = [
428
- "GET",
429
- ...Ee
430
- ];
431
- new Set(Xe);
432
- var O = o.createContext(null);
433
- O.displayName = "DataRouter";
434
- var F = o.createContext(null);
435
- F.displayName = "DataRouterState";
436
- var J = o.createContext({
437
- isTransitioning: !1
438
- });
439
- J.displayName = "ViewTransition";
440
- var te = o.createContext(
441
- /* @__PURE__ */ new Map()
442
- );
443
- te.displayName = "Fetchers";
444
- var Qe = o.createContext(null);
445
- Qe.displayName = "Await";
446
- var T = o.createContext(
447
- null
448
- );
449
- T.displayName = "Navigation";
450
- var K = o.createContext(
451
- null
452
- );
453
- K.displayName = "Location";
454
- var k = o.createContext({
455
- outlet: null,
456
- matches: [],
457
- isDataRoute: !1
458
- });
459
- k.displayName = "Route";
460
- var ne = o.createContext(null);
461
- ne.displayName = "RouteError";
462
- function Ze(e, { relative: t } = {}) {
463
- b(
464
- M(),
465
- // TODO: This error is probably because they somehow have 2 versions of the
466
- // router loaded. We can help them understand how to avoid that.
467
- "useHref() may be used only in the context of a <Router> component."
468
- );
469
- let { basename: n, navigator: a } = o.useContext(T), { hash: r, pathname: i, search: s } = W(e, { relative: t }), c = i;
470
- return n !== "/" && (c = i === "/" ? n : A([n, i])), a.createHref({ pathname: c, search: s, hash: r });
471
- }
472
- function M() {
473
- return o.useContext(K) != null;
474
- }
475
- function N() {
476
- return b(
477
- M(),
478
- // TODO: This error is probably because they somehow have 2 versions of the
479
- // router loaded. We can help them understand how to avoid that.
480
- "useLocation() may be used only in the context of a <Router> component."
481
- ), o.useContext(K).location;
482
- }
483
- function on(e) {
484
- b(
485
- M(),
486
- // TODO: This error is probably because they somehow have 2 versions of the
487
- // router loaded. We can help them understand how to avoid that.
488
- "useMatch() may be used only in the context of a <Router> component."
489
- );
490
- let { pathname: t } = N();
491
- return o.useMemo(
492
- () => H(e, ye(t)),
493
- [t, e]
494
- );
495
- }
496
- var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
497
- function Re(e) {
498
- o.useContext(T).static || o.useLayoutEffect(e);
499
- }
500
- function re() {
501
- let { isDataRoute: e } = o.useContext(k);
502
- return e ? dt() : et();
503
- }
504
- function et() {
505
- b(
506
- M(),
507
- // TODO: This error is probably because they somehow have 2 versions of the
508
- // router loaded. We can help them understand how to avoid that.
509
- "useNavigate() may be used only in the context of a <Router> component."
510
- );
511
- let e = o.useContext(O), { basename: t, navigator: n } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), s = o.useRef(!1);
512
- return Re(() => {
513
- s.current = !0;
514
- }), o.useCallback(
515
- (l, u = {}) => {
516
- if (L(s.current, xe), !s.current) return;
517
- if (typeof l == "number") {
518
- n.go(l);
519
- return;
520
- }
521
- let m = ee(
522
- l,
523
- JSON.parse(i),
524
- r,
525
- u.relative === "path"
526
- );
527
- e == null && t !== "/" && (m.pathname = m.pathname === "/" ? t : A([t, m.pathname])), (u.replace ? n.replace : n.push)(
528
- m,
529
- u.state,
530
- u
531
- );
532
- },
533
- [
534
- t,
535
- n,
536
- i,
537
- r,
538
- e
539
- ]
540
- );
541
- }
542
- var tt = o.createContext(null);
543
- function nt(e) {
544
- let t = o.useContext(k).outlet;
545
- return t && /* @__PURE__ */ o.createElement(tt.Provider, { value: e }, t);
546
- }
547
- function ln() {
548
- let { matches: e } = o.useContext(k), t = e[e.length - 1];
549
- return t ? t.params : {};
550
- }
551
- function W(e, { relative: t } = {}) {
552
- let { matches: n } = o.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
553
- return o.useMemo(
554
- () => ee(
555
- e,
556
- JSON.parse(r),
557
- a,
558
- t === "path"
559
- ),
560
- [e, r, a, t]
561
- );
562
- }
563
- function be(e, t, n, a) {
564
- b(
565
- M(),
566
- // TODO: This error is probably because they somehow have 2 versions of the
567
- // router loaded. We can help them understand how to avoid that.
568
- "useRoutes() may be used only in the context of a <Router> component."
569
- );
570
- let { navigator: r } = o.useContext(T), { matches: i } = o.useContext(k), s = i[i.length - 1], c = s ? s.params : {}, l = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", m = s && s.route;
571
- {
572
- let h = m && m.path || "";
573
- Se(
574
- l,
575
- !m || h.endsWith("*") || h.endsWith("*?"),
576
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
577
-
578
- Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`
579
- );
580
- }
581
- let g = N(), f;
582
- f = g;
583
- let p = f.pathname || "/", d = p;
584
- if (u !== "/") {
585
- let h = u.replace(/^\//, "").split("/");
586
- d = "/" + p.replace(/^\//, "").split("/").slice(h.length).join("/");
587
- }
588
- let v = pe(e, { pathname: d });
589
- return L(
590
- m || v != null,
591
- `No routes matched location "${f.pathname}${f.search}${f.hash}" `
592
- ), L(
593
- v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0,
594
- `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
595
- ), lt(
596
- v && v.map(
597
- (h) => Object.assign({}, h, {
598
- params: Object.assign({}, c, h.params),
599
- pathname: A([
600
- u,
601
- // Re-encode pathnames that were decoded inside matchRoutes
602
- r.encodeLocation ? r.encodeLocation(h.pathname).pathname : h.pathname
603
- ]),
604
- pathnameBase: h.pathnameBase === "/" ? u : A([
605
- u,
606
- // Re-encode pathnames that were decoded inside matchRoutes
607
- r.encodeLocation ? r.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
608
- ])
609
- })
610
- ),
611
- i,
612
- n,
613
- a
614
- );
615
- }
616
- function rt() {
617
- let e = ft(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, s = null;
618
- return console.error(
619
- "Error handled by React Router default ErrorBoundary:",
620
- e
621
- ), s = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ o.createElement("pre", { style: r }, n) : null, s);
622
- }
623
- var at = /* @__PURE__ */ o.createElement(rt, null), it = class extends o.Component {
624
- constructor(e) {
625
- super(e), this.state = {
626
- location: e.location,
627
- revalidation: e.revalidation,
628
- error: e.error
629
- };
630
- }
631
- static getDerivedStateFromError(e) {
632
- return { error: e };
633
- }
634
- static getDerivedStateFromProps(e, t) {
635
- return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
636
- error: e.error,
637
- location: e.location,
638
- revalidation: e.revalidation
639
- } : {
640
- error: e.error !== void 0 ? e.error : t.error,
641
- location: t.location,
642
- revalidation: e.revalidation || t.revalidation
643
- };
644
- }
645
- componentDidCatch(e, t) {
646
- console.error(
647
- "React Router caught the following error during render",
648
- e,
649
- t
650
- );
651
- }
652
- render() {
653
- return this.state.error !== void 0 ? /* @__PURE__ */ o.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ o.createElement(
654
- ne.Provider,
655
- {
656
- value: this.state.error,
657
- children: this.props.component
658
- }
659
- )) : this.props.children;
660
- }
661
- };
662
- function ot({ routeContext: e, match: t, children: n }) {
663
- let a = o.useContext(O);
664
- return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, n);
665
- }
666
- function lt(e, t = [], n = null, a = null) {
667
- if (e == null) {
668
- if (!n)
669
- return null;
670
- if (n.errors)
671
- e = n.matches;
672
- else if (t.length === 0 && !n.initialized && n.matches.length > 0)
673
- e = n.matches;
674
- else
675
- return null;
676
- }
677
- let r = e, i = n == null ? void 0 : n.errors;
678
- if (i != null) {
679
- let l = r.findIndex(
680
- (u) => u.route.id && (i == null ? void 0 : i[u.route.id]) !== void 0
681
- );
682
- b(
683
- l >= 0,
684
- `Could not find a matching route for errors on route IDs: ${Object.keys(
685
- i
686
- ).join(",")}`
687
- ), r = r.slice(
688
- 0,
689
- Math.min(r.length, l + 1)
690
- );
691
- }
692
- let s = !1, c = -1;
693
- if (n)
694
- for (let l = 0; l < r.length; l++) {
695
- let u = r[l];
696
- if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (c = l), u.route.id) {
697
- let { loaderData: m, errors: g } = n, f = u.route.loader && !m.hasOwnProperty(u.route.id) && (!g || g[u.route.id] === void 0);
698
- if (u.route.lazy || f) {
699
- s = !0, c >= 0 ? r = r.slice(0, c + 1) : r = [r[0]];
700
- break;
701
- }
702
- }
703
- }
704
- return r.reduceRight((l, u, m) => {
705
- let g, f = !1, p = null, d = null;
706
- n && (g = i && u.route.id ? i[u.route.id] : void 0, p = u.route.errorElement || at, s && (c < 0 && m === 0 ? (Se(
707
- "route-fallback",
708
- !1,
709
- "No `HydrateFallback` element provided to render during initial hydration"
710
- ), f = !0, d = null) : c === m && (f = !0, d = u.route.hydrateFallbackElement || null)));
711
- let v = t.concat(r.slice(0, m + 1)), w = () => {
712
- let h;
713
- return g ? h = p : f ? h = d : u.route.Component ? h = /* @__PURE__ */ o.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = l, /* @__PURE__ */ o.createElement(
714
- ot,
715
- {
716
- match: u,
717
- routeContext: {
718
- outlet: l,
719
- matches: v,
720
- isDataRoute: n != null
721
- },
722
- children: h
723
- }
724
- );
725
- };
726
- return n && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ o.createElement(
727
- it,
728
- {
729
- location: n.location,
730
- revalidation: n.revalidation,
731
- component: p,
732
- error: g,
733
- children: w(),
734
- routeContext: { outlet: null, matches: v, isDataRoute: !0 }
735
- }
736
- ) : w();
737
- }, null);
738
- }
739
- function ae(e) {
740
- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
741
- }
742
- function ut(e) {
743
- let t = o.useContext(O);
744
- return b(t, ae(e)), t;
745
- }
746
- function Ce(e) {
747
- let t = o.useContext(F);
748
- return b(t, ae(e)), t;
749
- }
750
- function st(e) {
751
- let t = o.useContext(k);
752
- return b(t, ae(e)), t;
753
- }
754
- function ie(e) {
755
- let t = st(e), n = t.matches[t.matches.length - 1];
756
- return b(
757
- n.route.id,
758
- `${e} can only be used on routes that contain a unique "id"`
759
- ), n.route.id;
760
- }
761
- function ct() {
762
- return ie(
763
- "useRouteId"
764
- /* UseRouteId */
765
- );
766
- }
767
- function un() {
768
- return Ce(
769
- "useNavigation"
770
- /* UseNavigation */
771
- ).navigation;
772
- }
773
- function ft() {
774
- var a;
775
- let e = o.useContext(ne), t = Ce(
776
- "useRouteError"
777
- /* UseRouteError */
778
- ), n = ie(
779
- "useRouteError"
780
- /* UseRouteError */
781
- );
782
- return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
783
- }
784
- function dt() {
785
- let { router: e } = ut(
786
- "useNavigate"
787
- /* UseNavigateStable */
788
- ), t = ie(
789
- "useNavigate"
790
- /* UseNavigateStable */
791
- ), n = o.useRef(!1);
792
- return Re(() => {
793
- n.current = !0;
794
- }), o.useCallback(
795
- async (r, i = {}) => {
796
- L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...i }));
797
- },
798
- [e, t]
799
- );
800
- }
801
- var fe = {};
802
- function Se(e, t, n) {
803
- !t && !fe[e] && (fe[e] = !0, L(!1, n));
804
- }
805
- var de = {};
806
- function he(e, t) {
807
- !e && !de[t] && (de[t] = !0, console.warn(t));
808
- }
809
- var ht = class {
810
- constructor() {
811
- this.status = "pending", this.promise = new Promise((e, t) => {
812
- this.resolve = (n) => {
813
- this.status === "pending" && (this.status = "resolved", e(n));
814
- }, this.reject = (n) => {
815
- this.status === "pending" && (this.status = "rejected", t(n));
816
- };
817
- });
818
- }
819
- };
820
- function sn({
821
- router: e,
822
- flushSync: t
823
- }) {
824
- let [n, a] = o.useState(e.state), [r, i] = o.useState(), [s, c] = o.useState({
825
- isTransitioning: !1
826
- }), [l, u] = o.useState(), [m, g] = o.useState(), [f, p] = o.useState(), d = o.useRef(/* @__PURE__ */ new Map()), v = o.useCallback(
827
- (y, { deletedFetchers: R, flushSync: x, viewTransitionOpts: C }) => {
828
- y.fetchers.forEach((S, P) => {
829
- S.data !== void 0 && d.current.set(P, S.data);
830
- }), R.forEach((S) => d.current.delete(S)), he(
831
- x === !1 || t != null,
832
- 'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
833
- );
834
- let $ = e.window != null && e.window.document != null && typeof e.window.document.startViewTransition == "function";
835
- if (he(
836
- C == null || $,
837
- "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
838
- ), !C || !$) {
839
- t && x ? t(() => a(y)) : o.startTransition(() => a(y));
840
- return;
841
- }
842
- if (t && x) {
843
- t(() => {
844
- m && (l && l.resolve(), m.skipTransition()), c({
845
- isTransitioning: !0,
846
- flushSync: !0,
847
- currentLocation: C.currentLocation,
848
- nextLocation: C.nextLocation
849
- });
850
- });
851
- let S = e.window.document.startViewTransition(() => {
852
- t(() => a(y));
853
- });
854
- S.finished.finally(() => {
855
- t(() => {
856
- u(void 0), g(void 0), i(void 0), c({ isTransitioning: !1 });
857
- });
858
- }), t(() => g(S));
859
- return;
860
- }
861
- m ? (l && l.resolve(), m.skipTransition(), p({
862
- state: y,
863
- currentLocation: C.currentLocation,
864
- nextLocation: C.nextLocation
865
- })) : (i(y), c({
866
- isTransitioning: !0,
867
- flushSync: !1,
868
- currentLocation: C.currentLocation,
869
- nextLocation: C.nextLocation
870
- }));
871
- },
872
- [e.window, t, m, l]
873
- );
874
- o.useLayoutEffect(() => e.subscribe(v), [e, v]), o.useEffect(() => {
875
- s.isTransitioning && !s.flushSync && u(new ht());
876
- }, [s]), o.useEffect(() => {
877
- if (l && r && e.window) {
878
- let y = r, R = l.promise, x = e.window.document.startViewTransition(async () => {
879
- o.startTransition(() => a(y)), await R;
880
- });
881
- x.finished.finally(() => {
882
- u(void 0), g(void 0), i(void 0), c({ isTransitioning: !1 });
883
- }), g(x);
884
- }
885
- }, [r, l, e.window]), o.useEffect(() => {
886
- l && r && n.location.key === r.location.key && l.resolve();
887
- }, [l, m, n.location, r]), o.useEffect(() => {
888
- !s.isTransitioning && f && (i(f.state), c({
889
- isTransitioning: !0,
890
- flushSync: !1,
891
- currentLocation: f.currentLocation,
892
- nextLocation: f.nextLocation
893
- }), p(void 0));
894
- }, [s.isTransitioning, f]);
895
- let w = o.useMemo(() => ({
896
- createHref: e.createHref,
897
- encodeLocation: e.encodeLocation,
898
- go: (y) => e.navigate(y),
899
- push: (y, R, x) => e.navigate(y, {
900
- state: R,
901
- preventScrollReset: x == null ? void 0 : x.preventScrollReset
902
- }),
903
- replace: (y, R, x) => e.navigate(y, {
904
- replace: !0,
905
- state: R,
906
- preventScrollReset: x == null ? void 0 : x.preventScrollReset
907
- })
908
- }), [e]), h = e.basename || "/", E = o.useMemo(
909
- () => ({
910
- router: e,
911
- navigator: w,
912
- static: !1,
913
- basename: h
914
- }),
915
- [e, w, h]
916
- );
917
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: E }, /* @__PURE__ */ o.createElement(F.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: d.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: s }, /* @__PURE__ */ o.createElement(
918
- Pe,
919
- {
920
- basename: h,
921
- location: n.location,
922
- navigationType: n.historyAction,
923
- navigator: w
924
- },
925
- /* @__PURE__ */ o.createElement(
926
- mt,
927
- {
928
- routes: e.routes,
929
- future: e.future,
930
- state: n
931
- }
932
- )
933
- ))))), null);
934
- }
935
- var mt = o.memo(pt);
936
- function pt({
937
- routes: e,
938
- future: t,
939
- state: n
940
- }) {
941
- return be(e, void 0, n, t);
942
- }
943
- function cn({
944
- to: e,
945
- replace: t,
946
- state: n,
947
- relative: a
948
- }) {
949
- b(
950
- M(),
951
- // TODO: This error is probably because they somehow have 2 versions of
952
- // the router loaded. We can help them understand how to avoid that.
953
- "<Navigate> may be used only in the context of a <Router> component."
954
- );
955
- let { static: r } = o.useContext(T);
956
- L(
957
- !r,
958
- "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change."
959
- );
960
- let { matches: i } = o.useContext(k), { pathname: s } = N(), c = re(), l = ee(
961
- e,
962
- Z(i),
963
- s,
964
- a === "path"
965
- ), u = JSON.stringify(l);
966
- return o.useEffect(() => {
967
- c(JSON.parse(u), { replace: t, state: n, relative: a });
968
- }, [c, u, a, t, n]), null;
969
- }
970
- function fn(e) {
971
- return nt(e.context);
972
- }
973
- function Pe({
974
- basename: e = "/",
975
- children: t = null,
976
- location: n,
977
- navigationType: a = "POP",
978
- navigator: r,
979
- static: i = !1
980
- }) {
981
- b(
982
- !M(),
983
- "You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
984
- );
985
- let s = e.replace(/^\/*/, "/"), c = o.useMemo(
986
- () => ({
987
- basename: s,
988
- navigator: r,
989
- static: i,
990
- future: {}
991
- }),
992
- [s, r, i]
993
- );
994
- typeof n == "string" && (n = Y(n));
995
- let {
996
- pathname: l = "/",
997
- search: u = "",
998
- hash: m = "",
999
- state: g = null,
1000
- key: f = "default"
1001
- } = n, p = o.useMemo(() => {
1002
- let d = I(l, s);
1003
- return d == null ? null : {
1004
- location: {
1005
- pathname: d,
1006
- search: u,
1007
- hash: m,
1008
- state: g,
1009
- key: f
1010
- },
1011
- navigationType: a
1012
- };
1013
- }, [s, l, u, m, g, f, a]);
1014
- return L(
1015
- p != null,
1016
- `<Router basename="${s}"> is not able to match the URL "${l}${u}${m}" because it does not start with the basename, so the <Router> won't render anything.`
1017
- ), p == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: c }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: p }));
1018
- }
1019
- var V = "get", j = "application/x-www-form-urlencoded";
1020
- function q(e) {
1021
- return e != null && typeof e.tagName == "string";
1022
- }
1023
- function gt(e) {
1024
- return q(e) && e.tagName.toLowerCase() === "button";
1025
- }
1026
- function vt(e) {
1027
- return q(e) && e.tagName.toLowerCase() === "form";
1028
- }
1029
- function yt(e) {
1030
- return q(e) && e.tagName.toLowerCase() === "input";
1031
- }
1032
- function wt(e) {
1033
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1034
- }
1035
- function Et(e, t) {
1036
- return e.button === 0 && // Ignore everything but left clicks
1037
- (!t || t === "_self") && // Let browser handle "target=_blank" etc.
1038
- !wt(e);
1039
- }
1040
- function Q(e = "") {
1041
- return new URLSearchParams(
1042
- typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
1043
- let a = e[n];
1044
- return t.concat(
1045
- Array.isArray(a) ? a.map((r) => [n, r]) : [[n, a]]
1046
- );
1047
- }, [])
1048
- );
1049
- }
1050
- function xt(e, t) {
1051
- let n = Q(e);
1052
- return t && t.forEach((a, r) => {
1053
- n.has(r) || t.getAll(r).forEach((i) => {
1054
- n.append(r, i);
1055
- });
1056
- }), n;
1057
- }
1058
- var z = null;
1059
- function Rt() {
1060
- if (z === null)
1061
- try {
1062
- new FormData(
1063
- document.createElement("form"),
1064
- // @ts-expect-error if FormData supports the submitter parameter, this will throw
1065
- 0
1066
- ), z = !1;
1067
- } catch {
1068
- z = !0;
1069
- }
1070
- return z;
1071
- }
1072
- var bt = /* @__PURE__ */ new Set([
1073
- "application/x-www-form-urlencoded",
1074
- "multipart/form-data",
1075
- "text/plain"
1076
- ]);
1077
- function X(e) {
1078
- return e != null && !bt.has(e) ? (L(
1079
- !1,
1080
- `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`
1081
- ), null) : e;
1082
- }
1083
- function Ct(e, t) {
1084
- let n, a, r, i, s;
1085
- if (vt(e)) {
1086
- let c = e.getAttribute("action");
1087
- a = c ? I(c, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1088
- } else if (gt(e) || yt(e) && (e.type === "submit" || e.type === "image")) {
1089
- let c = e.form;
1090
- if (c == null)
1091
- throw new Error(
1092
- 'Cannot submit a <button> or <input type="submit"> without a <form>'
1093
- );
1094
- let l = e.getAttribute("formaction") || c.getAttribute("action");
1095
- if (a = l ? I(l, t) : null, n = e.getAttribute("formmethod") || c.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(c.getAttribute("enctype")) || j, i = new FormData(c, e), !Rt()) {
1096
- let { name: u, type: m, value: g } = e;
1097
- if (m === "image") {
1098
- let f = u ? `${u}.` : "";
1099
- i.append(`${f}x`, "0"), i.append(`${f}y`, "0");
1100
- } else u && i.append(u, g);
1101
- }
1102
- } else {
1103
- if (q(e))
1104
- throw new Error(
1105
- 'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
1106
- );
1107
- n = V, a = null, r = j, s = e;
1108
- }
1109
- return i && r === "text/plain" && (s = i, i = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: i, body: s };
1110
- }
1111
- function oe(e, t) {
1112
- if (e === !1 || e === null || typeof e > "u")
1113
- throw new Error(t);
1114
- }
1115
- async function St(e, t) {
1116
- if (e.id in t)
1117
- return t[e.id];
1118
- try {
1119
- let n = await import(
1120
- /* @vite-ignore */
1121
- /* webpackIgnore: true */
1122
- e.module
1123
- );
1124
- return t[e.id] = n, n;
1125
- } catch (n) {
1126
- return console.error(
1127
- `Error loading route module \`${e.module}\`, reloading page...`
1128
- ), console.error(n), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
1129
- });
1130
- }
1131
- }
1132
- function Pt(e) {
1133
- return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1134
- }
1135
- async function Lt(e, t, n) {
1136
- let a = await Promise.all(
1137
- e.map(async (r) => {
1138
- let i = t.routes[r.route.id];
1139
- if (i) {
1140
- let s = await St(i, n);
1141
- return s.links ? s.links() : [];
1142
- }
1143
- return [];
1144
- })
1145
- );
1146
- return Nt(
1147
- a.flat(1).filter(Pt).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
1148
- (r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
1149
- )
1150
- );
1151
- }
1152
- function me(e, t, n, a, r, i) {
1153
- let s = (l, u) => n[u] ? l.route.id !== n[u].route.id : !0, c = (l, u) => {
1154
- var m;
1155
- return (
1156
- // param change, /users/123 -> /users/456
1157
- n[u].pathname !== l.pathname || // splat param changed, which is not present in match.path
1158
- // e.g. /files/images/avatar.jpg -> files/finances.xls
1159
- ((m = n[u].route.path) == null ? void 0 : m.endsWith("*")) && n[u].params["*"] !== l.params["*"]
1160
- );
1161
- };
1162
- return i === "assets" ? t.filter(
1163
- (l, u) => s(l, u) || c(l, u)
1164
- ) : i === "data" ? t.filter((l, u) => {
1165
- var g;
1166
- let m = a.routes[l.route.id];
1167
- if (!m || !m.hasLoader)
1168
- return !1;
1169
- if (s(l, u) || c(l, u))
1170
- return !0;
1171
- if (l.route.shouldRevalidate) {
1172
- let f = l.route.shouldRevalidate({
1173
- currentUrl: new URL(
1174
- r.pathname + r.search + r.hash,
1175
- window.origin
1176
- ),
1177
- currentParams: ((g = n[0]) == null ? void 0 : g.params) || {},
1178
- nextUrl: new URL(e, window.origin),
1179
- nextParams: l.params,
1180
- defaultShouldRevalidate: !0
1181
- });
1182
- if (typeof f == "boolean")
1183
- return f;
1184
- }
1185
- return !0;
1186
- }) : [];
1187
- }
1188
- function kt(e, t) {
1189
- return $t(
1190
- e.map((n) => {
1191
- let a = t.routes[n.route.id];
1192
- if (!a) return [];
1193
- let r = [a.module];
1194
- return a.imports && (r = r.concat(a.imports)), r;
1195
- }).flat(1)
1196
- );
1197
- }
1198
- function $t(e) {
1199
- return [...new Set(e)];
1200
- }
1201
- function Tt(e) {
1202
- let t = {}, n = Object.keys(e).sort();
1203
- for (let a of n)
1204
- t[a] = e[a];
1205
- return t;
1206
- }
1207
- function Nt(e, t) {
1208
- let n = /* @__PURE__ */ new Set();
1209
- return new Set(t), e.reduce((a, r) => {
1210
- let i = JSON.stringify(Tt(r));
1211
- return n.has(i) || (n.add(i), a.push({ key: i, link: r })), a;
1212
- }, []);
1213
- }
1214
- function At(e) {
1215
- let t = typeof e == "string" ? new URL(
1216
- e,
1217
- // This can be called during the SSR flow via PrefetchPageLinksImpl so
1218
- // don't assume window is available
1219
- typeof window > "u" ? "server://singlefetch/" : window.location.origin
1220
- ) : e;
1221
- return t.pathname === "/" ? t.pathname = "_root.data" : t.pathname = `${t.pathname.replace(/\/$/, "")}.data`, t;
1222
- }
1223
- function Dt() {
1224
- let e = o.useContext(O);
1225
- return oe(
1226
- e,
1227
- "You must render this element inside a <DataRouterContext.Provider> element"
1228
- ), e;
1229
- }
1230
- function It() {
1231
- let e = o.useContext(F);
1232
- return oe(
1233
- e,
1234
- "You must render this element inside a <DataRouterStateContext.Provider> element"
1235
- ), e;
1236
- }
1237
- var le = o.createContext(void 0);
1238
- le.displayName = "FrameworkContext";
1239
- function Le() {
1240
- let e = o.useContext(le);
1241
- return oe(
1242
- e,
1243
- "You must render this element inside a <HydratedRouter> element"
1244
- ), e;
1245
- }
1246
- function Ot(e, t) {
1247
- let n = o.useContext(le), [a, r] = o.useState(!1), [i, s] = o.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: m, onTouchStart: g } = t, f = o.useRef(null);
1248
- o.useEffect(() => {
1249
- if (e === "render" && s(!0), e === "viewport") {
1250
- let v = (h) => {
1251
- h.forEach((E) => {
1252
- s(E.isIntersecting);
1253
- });
1254
- }, w = new IntersectionObserver(v, { threshold: 0.5 });
1255
- return f.current && w.observe(f.current), () => {
1256
- w.disconnect();
1257
- };
1258
- }
1259
- }, [e]), o.useEffect(() => {
1260
- if (a) {
1261
- let v = setTimeout(() => {
1262
- s(!0);
1263
- }, 100);
1264
- return () => {
1265
- clearTimeout(v);
1266
- };
1267
- }
1268
- }, [a]);
1269
- let p = () => {
1270
- r(!0);
1271
- }, d = () => {
1272
- r(!1), s(!1);
1273
- };
1274
- return n ? e !== "intent" ? [i, f, {}] : [
1275
- i,
1276
- f,
1277
- {
1278
- onFocus: U(c, p),
1279
- onBlur: U(l, d),
1280
- onMouseEnter: U(u, p),
1281
- onMouseLeave: U(m, d),
1282
- onTouchStart: U(g, p)
1283
- }
1284
- ] : [!1, f, {}];
1285
- }
1286
- function U(e, t) {
1287
- return (n) => {
1288
- e && e(n), n.defaultPrevented || t(n);
1289
- };
1290
- }
1291
- function Mt({
1292
- page: e,
1293
- ...t
1294
- }) {
1295
- let { router: n } = Dt(), a = o.useMemo(
1296
- () => pe(n.routes, e, n.basename),
1297
- [n.routes, e, n.basename]
1298
- );
1299
- return a ? /* @__PURE__ */ o.createElement(_t, { page: e, matches: a, ...t }) : null;
1300
- }
1301
- function Ft(e) {
1302
- let { manifest: t, routeModules: n } = Le(), [a, r] = o.useState([]);
1303
- return o.useEffect(() => {
1304
- let i = !1;
1305
- return Lt(e, t, n).then(
1306
- (s) => {
1307
- i || r(s);
1308
- }
1309
- ), () => {
1310
- i = !0;
1311
- };
1312
- }, [e, t, n]), a;
1313
- }
1314
- function _t({
1315
- page: e,
1316
- matches: t,
1317
- ...n
1318
- }) {
1319
- let a = N(), { manifest: r, routeModules: i } = Le(), { loaderData: s, matches: c } = It(), l = o.useMemo(
1320
- () => me(
1321
- e,
1322
- t,
1323
- c,
1324
- r,
1325
- a,
1326
- "data"
1327
- ),
1328
- [e, t, c, r, a]
1329
- ), u = o.useMemo(
1330
- () => me(
1331
- e,
1332
- t,
1333
- c,
1334
- r,
1335
- a,
1336
- "assets"
1337
- ),
1338
- [e, t, c, r, a]
1339
- ), m = o.useMemo(() => {
1340
- if (e === a.pathname + a.search + a.hash)
1341
- return [];
1342
- let p = /* @__PURE__ */ new Set(), d = !1;
1343
- if (t.forEach((w) => {
1344
- var E;
1345
- let h = r.routes[w.route.id];
1346
- !h || !h.hasLoader || (!l.some((y) => y.route.id === w.route.id) && w.route.id in s && ((E = i[w.route.id]) != null && E.shouldRevalidate) || h.hasClientLoader ? d = !0 : p.add(w.route.id));
1347
- }), p.size === 0)
1348
- return [];
1349
- let v = At(e);
1350
- return d && p.size > 0 && v.searchParams.set(
1351
- "_routes",
1352
- t.filter((w) => p.has(w.route.id)).map((w) => w.route.id).join(",")
1353
- ), [v.pathname + v.search];
1354
- }, [
1355
- s,
1356
- a,
1357
- r,
1358
- l,
1359
- t,
1360
- e,
1361
- i
1362
- ]), g = o.useMemo(
1363
- () => kt(u, r),
1364
- [u, r]
1365
- ), f = Ft(u);
1366
- return /* @__PURE__ */ o.createElement(o.Fragment, null, m.map((p) => /* @__PURE__ */ o.createElement("link", { key: p, rel: "prefetch", as: "fetch", href: p, ...n })), g.map((p) => /* @__PURE__ */ o.createElement("link", { key: p, rel: "modulepreload", href: p, ...n })), f.map(({ key: p, link: d }) => (
1367
- // these don't spread `linkProps` because they are full link descriptors
1368
- // already with their own props
1369
- /* @__PURE__ */ o.createElement("link", { key: p, ...d })
1370
- )));
1371
- }
1372
- function Ut(...e) {
1373
- return (t) => {
1374
- e.forEach((n) => {
1375
- typeof n == "function" ? n(t) : n != null && (n.current = t);
1376
- });
1377
- };
1378
- }
1379
- var ke = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1380
- try {
1381
- ke && (window.__reactRouterVersion = "7.1.3");
1382
- } catch {
1383
- }
1384
- var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
1385
- function({
1386
- onClick: t,
1387
- discover: n = "render",
1388
- prefetch: a = "none",
1389
- relative: r,
1390
- reloadDocument: i,
1391
- replace: s,
1392
- state: c,
1393
- target: l,
1394
- to: u,
1395
- preventScrollReset: m,
1396
- viewTransition: g,
1397
- ...f
1398
- }, p) {
1399
- let { basename: d } = o.useContext(T), v = typeof u == "string" && $e.test(u), w, h = !1;
1400
- if (typeof u == "string" && v && (w = u, ke))
1401
- try {
1402
- let P = new URL(window.location.href), D = u.startsWith("//") ? new URL(P.protocol + u) : new URL(u), ue = I(D.pathname, d);
1403
- D.origin === P.origin && ue != null ? u = ue + D.search + D.hash : h = !0;
1404
- } catch {
1405
- L(
1406
- !1,
1407
- `<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1408
- );
1409
- }
1410
- let E = Ze(u, { relative: r }), [y, R, x] = Ot(
1411
- a,
1412
- f
1413
- ), C = zt(u, {
1414
- replace: s,
1415
- state: c,
1416
- target: l,
1417
- preventScrollReset: m,
1418
- relative: r,
1419
- viewTransition: g
1420
- });
1421
- function $(P) {
1422
- t && t(P), P.defaultPrevented || C(P);
1423
- }
1424
- let S = (
1425
- // eslint-disable-next-line jsx-a11y/anchor-has-content
1426
- /* @__PURE__ */ o.createElement(
1427
- "a",
1428
- {
1429
- ...f,
1430
- ...x,
1431
- href: w || E,
1432
- onClick: h || i ? t : $,
1433
- ref: Ut(p, R),
1434
- target: l,
1435
- "data-discover": !v && n === "render" ? "true" : void 0
1436
- }
1437
- )
1438
- );
1439
- return y && !v ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(Mt, { page: E })) : S;
1440
- }
1441
- );
1442
- Te.displayName = "Link";
1443
- var Bt = o.forwardRef(
1444
- function({
1445
- "aria-current": t = "page",
1446
- caseSensitive: n = !1,
1447
- className: a = "",
1448
- end: r = !1,
1449
- style: i,
1450
- to: s,
1451
- viewTransition: c,
1452
- children: l,
1453
- ...u
1454
- }, m) {
1455
- let g = W(s, { relative: u.relative }), f = N(), p = o.useContext(F), { navigator: d, basename: v } = o.useContext(T), w = p != null && // Conditional usage is OK here because the usage of a data router is static
1456
- // eslint-disable-next-line react-hooks/rules-of-hooks
1457
- Kt(g) && c === !0, h = d.encodeLocation ? d.encodeLocation(g).pathname : g.pathname, E = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1458
- n || (E = E.toLowerCase(), y = y ? y.toLowerCase() : null, h = h.toLowerCase()), y && v && (y = I(y, v) || y);
1459
- const R = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
1460
- let x = E === h || !r && E.startsWith(h) && E.charAt(R) === "/", C = y != null && (y === h || !r && y.startsWith(h) && y.charAt(h.length) === "/"), $ = {
1461
- isActive: x,
1462
- isPending: C,
1463
- isTransitioning: w
1464
- }, S = x ? t : void 0, P;
1465
- typeof a == "function" ? P = a($) : P = [
1466
- a,
1467
- x ? "active" : null,
1468
- C ? "pending" : null,
1469
- w ? "transitioning" : null
1470
- ].filter(Boolean).join(" ");
1471
- let D = typeof i == "function" ? i($) : i;
1472
- return /* @__PURE__ */ o.createElement(
1473
- Te,
1474
- {
1475
- ...u,
1476
- "aria-current": S,
1477
- className: P,
1478
- ref: m,
1479
- style: D,
1480
- to: s,
1481
- viewTransition: c
1482
- },
1483
- typeof l == "function" ? l($) : l
1484
- );
1485
- }
1486
- );
1487
- Bt.displayName = "NavLink";
1488
- var Ht = o.forwardRef(
1489
- ({
1490
- discover: e = "render",
1491
- fetcherKey: t,
1492
- navigate: n,
1493
- reloadDocument: a,
1494
- replace: r,
1495
- state: i,
1496
- method: s = V,
1497
- action: c,
1498
- onSubmit: l,
1499
- relative: u,
1500
- preventScrollReset: m,
1501
- viewTransition: g,
1502
- ...f
1503
- }, p) => {
1504
- let d = Yt(), v = Jt(c, { relative: u }), w = s.toLowerCase() === "get" ? "get" : "post", h = typeof c == "string" && $e.test(c), E = (y) => {
1505
- if (l && l(y), y.defaultPrevented) return;
1506
- y.preventDefault();
1507
- let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || s;
1508
- d(R || y.currentTarget, {
1509
- fetcherKey: t,
1510
- method: x,
1511
- navigate: n,
1512
- replace: r,
1513
- state: i,
1514
- relative: u,
1515
- preventScrollReset: m,
1516
- viewTransition: g
1517
- });
1518
- };
1519
- return /* @__PURE__ */ o.createElement(
1520
- "form",
1521
- {
1522
- ref: p,
1523
- method: w,
1524
- action: v,
1525
- onSubmit: a ? l : E,
1526
- ...f,
1527
- "data-discover": !h && e === "render" ? "true" : void 0
1528
- }
1529
- );
1530
- }
1531
- );
1532
- Ht.displayName = "Form";
1533
- function Wt(e) {
1534
- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1535
- }
1536
- function Ne(e) {
1537
- let t = o.useContext(O);
1538
- return b(t, Wt(e)), t;
1539
- }
1540
- function zt(e, {
1541
- target: t,
1542
- replace: n,
1543
- state: a,
1544
- preventScrollReset: r,
1545
- relative: i,
1546
- viewTransition: s
1547
- } = {}) {
1548
- let c = re(), l = N(), u = W(e, { relative: i });
1549
- return o.useCallback(
1550
- (m) => {
1551
- if (Et(m, t)) {
1552
- m.preventDefault();
1553
- let g = n !== void 0 ? n : B(l) === B(u);
1554
- c(e, {
1555
- replace: g,
1556
- state: a,
1557
- preventScrollReset: r,
1558
- relative: i,
1559
- viewTransition: s
1560
- });
1561
- }
1562
- },
1563
- [
1564
- l,
1565
- c,
1566
- u,
1567
- n,
1568
- a,
1569
- t,
1570
- e,
1571
- r,
1572
- i,
1573
- s
1574
- ]
1575
- );
1576
- }
1577
- function dn(e) {
1578
- L(
1579
- typeof URLSearchParams < "u",
1580
- "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
1581
- );
1582
- let t = o.useRef(Q(e)), n = o.useRef(!1), a = N(), r = o.useMemo(
1583
- () => (
1584
- // Only merge in the defaults if we haven't yet called setSearchParams.
1585
- // Once we call that we want those to take precedence, otherwise you can't
1586
- // remove a param with setSearchParams({}) if it has an initial value
1587
- xt(
1588
- a.search,
1589
- n.current ? null : t.current
1590
- )
1591
- ),
1592
- [a.search]
1593
- ), i = re(), s = o.useCallback(
1594
- (c, l) => {
1595
- const u = Q(
1596
- typeof c == "function" ? c(r) : c
1597
- );
1598
- n.current = !0, i("?" + u, l);
1599
- },
1600
- [i, r]
1601
- );
1602
- return [r, s];
1603
- }
1604
- var Vt = 0, jt = () => `__${String(++Vt)}__`;
1605
- function Yt() {
1606
- let { router: e } = Ne(
1607
- "useSubmit"
1608
- /* UseSubmit */
1609
- ), { basename: t } = o.useContext(T), n = ct();
1610
- return o.useCallback(
1611
- async (a, r = {}) => {
1612
- let { action: i, method: s, encType: c, formData: l, body: u } = Ct(
1613
- a,
1614
- t
1615
- );
1616
- if (r.navigate === !1) {
1617
- let m = r.fetcherKey || jt();
1618
- await e.fetch(m, n, r.action || i, {
1619
- preventScrollReset: r.preventScrollReset,
1620
- formData: l,
1621
- body: u,
1622
- formMethod: r.method || s,
1623
- formEncType: r.encType || c,
1624
- flushSync: r.flushSync
1625
- });
1626
- } else
1627
- await e.navigate(r.action || i, {
1628
- preventScrollReset: r.preventScrollReset,
1629
- formData: l,
1630
- body: u,
1631
- formMethod: r.method || s,
1632
- formEncType: r.encType || c,
1633
- replace: r.replace,
1634
- state: r.state,
1635
- fromRouteId: n,
1636
- flushSync: r.flushSync,
1637
- viewTransition: r.viewTransition
1638
- });
1639
- },
1640
- [e, t, n]
1641
- );
1642
- }
1643
- function Jt(e, { relative: t } = {}) {
1644
- let { basename: n } = o.useContext(T), a = o.useContext(k);
1645
- b(a, "useFormAction must be used inside a RouteContext");
1646
- let [r] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, s = N();
1647
- if (e == null) {
1648
- i.search = s.search;
1649
- let c = new URLSearchParams(i.search), l = c.getAll("index");
1650
- if (l.some((m) => m === "")) {
1651
- c.delete("index"), l.filter((g) => g).forEach((g) => c.append("index", g));
1652
- let m = c.toString();
1653
- i.search = m ? `?${m}` : "";
1654
- }
1655
- }
1656
- return (!e || e === ".") && r.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (i.pathname = i.pathname === "/" ? n : A([n, i.pathname])), B(i);
1657
- }
1658
- function Kt(e, t = {}) {
1659
- let n = o.useContext(J);
1660
- b(
1661
- n != null,
1662
- "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1663
- );
1664
- let { basename: a } = Ne(
1665
- "useViewTransitionState"
1666
- /* useViewTransitionState */
1667
- ), r = W(e, { relative: t.relative });
1668
- if (!n.isTransitioning)
1669
- return !1;
1670
- let i = I(n.currentLocation.pathname, a) || n.currentLocation.pathname, s = I(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1671
- return H(r.pathname, s) != null || H(r.pathname, i) != null;
1672
- }
1673
- function hn({
1674
- context: e,
1675
- router: t,
1676
- hydrate: n = !0,
1677
- nonce: a
1678
- }) {
1679
- b(
1680
- t && e,
1681
- "You must provide `router` and `context` to <StaticRouterProvider>"
1682
- );
1683
- let r = {
1684
- router: t,
1685
- navigator: Xt(),
1686
- static: !0,
1687
- staticContext: e,
1688
- basename: e.basename || "/"
1689
- }, i = /* @__PURE__ */ new Map(), s = "";
1690
- if (n !== !1) {
1691
- let l = {
1692
- loaderData: e.loaderData,
1693
- actionData: e.actionData,
1694
- errors: Gt(e.errors)
1695
- };
1696
- s = `window.__staticRouterHydrationData = JSON.parse(${rn(JSON.stringify(JSON.stringify(l)))});`;
1697
- }
1698
- let { state: c } = r.router;
1699
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: r }, /* @__PURE__ */ o.createElement(F.Provider, { value: c }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
1700
- Pe,
1701
- {
1702
- basename: r.basename,
1703
- location: c.location,
1704
- navigationType: c.historyAction,
1705
- navigator: r.navigator,
1706
- static: r.static
1707
- },
1708
- /* @__PURE__ */ o.createElement(
1709
- qt,
1710
- {
1711
- routes: t.routes,
1712
- future: t.future,
1713
- state: c
1714
- }
1715
- )
1716
- ))))), s ? /* @__PURE__ */ o.createElement(
1717
- "script",
1718
- {
1719
- suppressHydrationWarning: !0,
1720
- nonce: a,
1721
- dangerouslySetInnerHTML: { __html: s }
1722
- }
1723
- ) : null);
1724
- }
1725
- function qt({
1726
- routes: e,
1727
- future: t,
1728
- state: n
1729
- }) {
1730
- return be(e, void 0, n, t);
1731
- }
1732
- function Gt(e) {
1733
- if (!e) return null;
1734
- let t = Object.entries(e), n = {};
1735
- for (let [a, r] of t)
1736
- we(r) ? n[a] = { ...r, __type: "RouteErrorResponse" } : r instanceof Error ? n[a] = {
1737
- message: r.message,
1738
- __type: "Error",
1739
- // If this is a subclass (i.e., ReferenceError), send up the type so we
1740
- // can re-create the same type during hydration.
1741
- ...r.name !== "Error" ? {
1742
- __subType: r.name
1743
- } : {}
1744
- } : n[a] = r;
1745
- return n;
1746
- }
1747
- function Xt() {
1748
- return {
1749
- createHref: Qt,
1750
- encodeLocation: Zt,
1751
- push(e) {
1752
- throw new Error(
1753
- `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.`
1754
- );
1755
- },
1756
- replace(e) {
1757
- throw new Error(
1758
- `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.`
1759
- );
1760
- },
1761
- go(e) {
1762
- throw new Error(
1763
- `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.`
1764
- );
1765
- },
1766
- back() {
1767
- throw new Error(
1768
- "You cannot use navigator.back() on the server because it is a stateless environment."
1769
- );
1770
- },
1771
- forward() {
1772
- throw new Error(
1773
- "You cannot use navigator.forward() on the server because it is a stateless environment."
1774
- );
1775
- }
1776
- };
1777
- }
1778
- function Qt(e) {
1779
- return typeof e == "string" ? e : B(e);
1780
- }
1781
- function Zt(e) {
1782
- let t = typeof e == "string" ? e : B(e);
1783
- t = t.replace(/ $/, "%20");
1784
- let n = en.test(t) ? new URL(t) : new URL(t, "http://localhost");
1785
- return {
1786
- pathname: n.pathname,
1787
- search: n.search,
1788
- hash: n.hash
1789
- };
1790
- }
1791
- var en = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, tn = {
1792
- "&": "\\u0026",
1793
- ">": "\\u003e",
1794
- "<": "\\u003c",
1795
- "\u2028": "\\u2028",
1796
- "\u2029": "\\u2029"
1797
- }, nn = /[&><\u2028\u2029]/g;
1798
- function rn(e) {
1799
- return e.replace(nn, (t) => tn[t]);
1800
- }
1801
- new TextEncoder();
1802
- export {
1803
- Te as L,
1804
- Bt as N,
1805
- fn as O,
1806
- sn as R,
1807
- hn as S,
1808
- re as a,
1809
- dn as b,
1810
- ln as c,
1811
- Ze as d,
1812
- on as e,
1813
- cn as f,
1814
- ft as g,
1815
- un as h,
1816
- we as i,
1817
- H as m,
1818
- an as r,
1819
- N as u
1820
- };
1821
- //# sourceMappingURL=chunk-SYFQ2XB5-BPvC-soB.js.map