zudoku 0.0.0-ec30b50 → 0.0.0-ee328ec

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