zudoku 0.0.0-ec30b50 → 0.0.0-edd80c1

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