zudoku 0.41.4 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (530) hide show
  1. package/dist/app/main.js +6 -0
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +420 -288
  4. package/dist/config/validators/common.js +10 -0
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +161 -108
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +1 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/components/BuildCheck.js +5 -4
  11. package/dist/lib/components/BuildCheck.js.map +1 -1
  12. package/dist/lib/components/Markdown.d.ts +3 -1
  13. package/dist/lib/components/Markdown.js +8 -14
  14. package/dist/lib/components/Markdown.js.map +1 -1
  15. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  16. package/dist/lib/components/index.d.ts +2 -1
  17. package/dist/lib/core/ZudokuContext.d.ts +7 -0
  18. package/dist/lib/core/ZudokuContext.js.map +1 -1
  19. package/dist/lib/errors/ErrorAlert.js +1 -1
  20. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  21. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  22. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  23. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  24. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  25. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  26. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  27. package/dist/lib/shiki.d.ts +35 -0
  28. package/dist/lib/shiki.js +103 -0
  29. package/dist/lib/shiki.js.map +1 -0
  30. package/dist/lib/ui/Callout.js +1 -1
  31. package/dist/lib/ui/Callout.js.map +1 -1
  32. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  33. package/dist/lib/ui/CodeBlock.js +18 -0
  34. package/dist/lib/ui/CodeBlock.js.map +1 -0
  35. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -15
  36. package/dist/lib/ui/SyntaxHighlight.js +10 -60
  37. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  38. package/dist/lib/util/MdxComponents.d.ts +9 -3
  39. package/dist/lib/util/MdxComponents.js +9 -10
  40. package/dist/lib/util/MdxComponents.js.map +1 -1
  41. package/dist/vite/config.js +34 -0
  42. package/dist/vite/config.js.map +1 -1
  43. package/dist/vite/plugin-mdx.js +4 -11
  44. package/dist/vite/plugin-mdx.js.map +1 -1
  45. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  46. package/dist/vite/plugin-shiki-register.js +38 -0
  47. package/dist/vite/plugin-shiki-register.js.map +1 -0
  48. package/dist/vite/plugin.js +2 -0
  49. package/dist/vite/plugin.js.map +1 -1
  50. package/lib/AuthenticationPlugin-EeQpQI3D.js +55 -0
  51. package/lib/{AuthenticationPlugin-CJOFRBk3.js.map → AuthenticationPlugin-EeQpQI3D.js.map} +1 -1
  52. package/lib/{Button-BBNrKpQd.js → Button-Bdk_Ij3U.js} +3 -3
  53. package/lib/{Button-BBNrKpQd.js.map → Button-Bdk_Ij3U.js.map} +1 -1
  54. package/lib/{Callout-D3Ja4OPX.js → Callout-XadUe37J.js} +12 -12
  55. package/lib/{Callout-D3Ja4OPX.js.map → Callout-XadUe37J.js.map} +1 -1
  56. package/lib/{CategoryHeading-D06WK_Wo.js → CategoryHeading-DZi-Szor.js} +2 -2
  57. package/lib/{CategoryHeading-D06WK_Wo.js.map → CategoryHeading-DZi-Szor.js.map} +1 -1
  58. package/lib/{Dialog-ByYz4ABw.js → Dialog-CNf2oWXG.js} +2 -2
  59. package/lib/{Dialog-ByYz4ABw.js.map → Dialog-CNf2oWXG.js.map} +1 -1
  60. package/lib/{Drawer-CEwbkLDb.js → Drawer-BPBxzel2.js} +25 -25
  61. package/lib/{Drawer-CEwbkLDb.js.map → Drawer-BPBxzel2.js.map} +1 -1
  62. package/lib/Markdown-1l-DtDbF.js +7688 -0
  63. package/lib/Markdown-1l-DtDbF.js.map +1 -0
  64. package/lib/MdxPage-Dxbq6lFr.js +84 -0
  65. package/lib/{MdxPage-OSMru6r8.js.map → MdxPage-Dxbq6lFr.js.map} +1 -1
  66. package/lib/{OasProvider-CHYfqkG3.js → OasProvider-DKpTJMH2.js} +4 -4
  67. package/lib/{OasProvider-CHYfqkG3.js.map → OasProvider-DKpTJMH2.js.map} +1 -1
  68. package/lib/{OperationList-jzJUa4hl.js → OperationList-DVOyNeno.js} +1385 -1417
  69. package/lib/{OperationList-jzJUa4hl.js.map → OperationList-DVOyNeno.js.map} +1 -1
  70. package/lib/{Pagination-BcY_siMl.js → Pagination-COMmV-g9.js} +4 -4
  71. package/lib/{Pagination-BcY_siMl.js.map → Pagination-COMmV-g9.js.map} +1 -1
  72. package/lib/RouteGuard-CGqivwrh.js +733 -0
  73. package/lib/{RouteGuard-BZ_VsiXc.js.map → RouteGuard-CGqivwrh.js.map} +1 -1
  74. package/lib/{SchemaList-DcWTacAj.js → SchemaList-BTWzXyYQ.js} +43 -44
  75. package/lib/{SchemaList-DcWTacAj.js.map → SchemaList-BTWzXyYQ.js.map} +1 -1
  76. package/lib/{SchemaView-DwlVvFfp.js → SchemaView-DNKKW3nB.js} +7 -11
  77. package/lib/{SchemaView-DwlVvFfp.js.map → SchemaView-DNKKW3nB.js.map} +1 -1
  78. package/lib/Select-m-ITdvFa.js +211 -0
  79. package/lib/{Select-Dg5R11Dx.js.map → Select-m-ITdvFa.js.map} +1 -1
  80. package/lib/SlotletProvider-DhK1Fmm9.js +254 -0
  81. package/lib/SlotletProvider-DhK1Fmm9.js.map +1 -0
  82. package/lib/SyntaxHighlight-CJ6FoYvt.js +9104 -0
  83. package/lib/SyntaxHighlight-CJ6FoYvt.js.map +1 -0
  84. package/lib/{Toc-BVdRaIC0.js → Toc-CzMOgcPS.js} +3 -3
  85. package/lib/{Toc-BVdRaIC0.js.map → Toc-CzMOgcPS.js.map} +1 -1
  86. package/lib/{chunk-KNED5TY2-BUPjb3LQ.js → chunk-BAXFHI7N-CFrZQ7Oh.js} +356 -359
  87. package/lib/chunk-BAXFHI7N-CFrZQ7Oh.js.map +1 -0
  88. package/lib/{circular-ByJI6Mci.js → circular-D__GEK2G.js} +47 -47
  89. package/lib/{circular-ByJI6Mci.js.map → circular-D__GEK2G.js.map} +1 -1
  90. package/lib/{cn-qaFjX9_3.js → cn-CwJPJKOE.js} +28 -29
  91. package/lib/{cn-qaFjX9_3.js.map → cn-CwJPJKOE.js.map} +1 -1
  92. package/lib/{createServer-IW7v5hWm.js → createServer-B4l2NSkt.js} +3724 -3868
  93. package/lib/{createServer-IW7v5hWm.js.map → createServer-B4l2NSkt.js.map} +1 -1
  94. package/lib/hook-CyNmcNr8.js +1443 -0
  95. package/lib/{hook-pPrHCB6G.js.map → hook-CyNmcNr8.js.map} +1 -1
  96. package/lib/{index-DwT-v3zK.js → index--oeBayMa.js} +2 -2
  97. package/lib/{index-DwT-v3zK.js.map → index--oeBayMa.js.map} +1 -1
  98. package/lib/index-BcMPFdRU.js +4975 -0
  99. package/lib/index-BcMPFdRU.js.map +1 -0
  100. package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
  101. package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
  102. package/lib/{index-DNFEg0uU.js → index-CCS3ifKs.js} +690 -733
  103. package/lib/{index-DNFEg0uU.js.map → index-CCS3ifKs.js.map} +1 -1
  104. package/lib/{index-CuBIgTKC.js → index-CrcNWbel.js} +9 -9
  105. package/lib/{index-CuBIgTKC.js.map → index-CrcNWbel.js.map} +1 -1
  106. package/lib/{index-CPNSgwSb.js → index-Z13x6tPX.js} +5 -5
  107. package/lib/{index-CPNSgwSb.js.map → index-Z13x6tPX.js.map} +1 -1
  108. package/lib/{index-DcHeSvkE.js → index-zddirpDj.js} +581 -609
  109. package/lib/{index-DcHeSvkE.js.map → index-zddirpDj.js.map} +1 -1
  110. package/lib/invariant-D3QcI9fa.js +22 -0
  111. package/lib/{invariant-Caa8-XvF.js.map → invariant-D3QcI9fa.js.map} +1 -1
  112. package/lib/mutation-narTVsCe.js +196 -0
  113. package/lib/{mutation-Csa9eQDM.js.map → mutation-narTVsCe.js.map} +1 -1
  114. package/lib/processors/removeParameters.js +27 -28
  115. package/lib/processors/removeParameters.js.map +1 -1
  116. package/lib/processors/removePaths.js +17 -17
  117. package/lib/processors/removePaths.js.map +1 -1
  118. package/lib/ui/Accordion.js +1 -1
  119. package/lib/ui/ActionButton.js +2 -2
  120. package/lib/ui/Alert.js +2 -2
  121. package/lib/ui/AlertDialog.js +1 -1
  122. package/lib/ui/Badge.js +2 -2
  123. package/lib/ui/Breadcrumb.js +1 -1
  124. package/lib/ui/Button.js +2 -2
  125. package/lib/ui/Callout.js +7 -7
  126. package/lib/ui/Callout.js.map +1 -1
  127. package/lib/ui/Card.js +1 -1
  128. package/lib/ui/Carousel.js +175 -175
  129. package/lib/ui/Carousel.js.map +1 -1
  130. package/lib/ui/Checkbox.js +1 -1
  131. package/lib/ui/CodeBlock.js +83 -0
  132. package/lib/ui/CodeBlock.js.map +1 -0
  133. package/lib/ui/Command.js +58 -58
  134. package/lib/ui/Command.js.map +1 -1
  135. package/lib/ui/Dialog.js +1 -1
  136. package/lib/ui/Drawer.js +2 -2
  137. package/lib/ui/DropdownMenu.js +1 -1
  138. package/lib/ui/Form.js +1 -1
  139. package/lib/ui/HoverCard.js +1 -1
  140. package/lib/ui/Input.js +1 -1
  141. package/lib/ui/Label.js +2 -2
  142. package/lib/ui/Pagination.js +1 -1
  143. package/lib/ui/Popover.js +1 -1
  144. package/lib/ui/Progress.js +1 -1
  145. package/lib/ui/RadioGroup.js +1 -1
  146. package/lib/ui/ScrollArea.js +1 -1
  147. package/lib/ui/Select.js +1 -1
  148. package/lib/ui/Skeleton.js +1 -1
  149. package/lib/ui/Slider.js +1 -1
  150. package/lib/ui/Switch.js +1 -1
  151. package/lib/ui/SyntaxHighlight.js +4 -6
  152. package/lib/ui/SyntaxHighlight.js.map +1 -1
  153. package/lib/ui/Tabs.js +1 -1
  154. package/lib/ui/Textarea.js +1 -1
  155. package/lib/ui/Toggle.js +2 -2
  156. package/lib/ui/ToggleGroup.js +1 -1
  157. package/lib/ui/Tooltip.js +1 -1
  158. package/lib/ui/util.js +1 -1
  159. package/lib/{useExposedProps-Dq2yUQIG.js → useExposedProps-n1u49409.js} +2 -2
  160. package/lib/{useExposedProps-Dq2yUQIG.js.map → useExposedProps-n1u49409.js.map} +1 -1
  161. package/lib/zudoku.auth-auth0.js +28 -31
  162. package/lib/zudoku.auth-auth0.js.map +1 -1
  163. package/lib/zudoku.auth-clerk.js +62 -68
  164. package/lib/zudoku.auth-clerk.js.map +1 -1
  165. package/lib/zudoku.auth-openid.js +475 -483
  166. package/lib/zudoku.auth-openid.js.map +1 -1
  167. package/lib/zudoku.components.js +7 -7
  168. package/lib/zudoku.hooks.js +2 -2
  169. package/lib/zudoku.plugin-api-catalog.js +45 -45
  170. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  171. package/lib/zudoku.plugin-api-keys.js +6 -6
  172. package/lib/zudoku.plugin-custom-pages.js +3 -3
  173. package/lib/zudoku.plugin-markdown.js +25 -28
  174. package/lib/zudoku.plugin-markdown.js.map +1 -1
  175. package/lib/zudoku.plugin-openapi.js +3 -3
  176. package/lib/zudoku.plugin-redirect.js +1 -1
  177. package/lib/zudoku.plugin-search-inkeep.js +26 -27
  178. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  179. package/lib/zudoku.plugin-search-pagefind.js +107 -110
  180. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  181. package/package.json +19 -9
  182. package/src/app/main.css +53 -3
  183. package/src/app/main.tsx +7 -0
  184. package/src/lib/components/BuildCheck.tsx +6 -4
  185. package/src/lib/components/Markdown.tsx +29 -24
  186. package/src/lib/core/ZudokuContext.ts +4 -0
  187. package/src/lib/errors/ErrorAlert.tsx +1 -1
  188. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -2
  189. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  190. package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
  191. package/src/lib/shiki.ts +129 -0
  192. package/src/lib/ui/Callout.tsx +1 -1
  193. package/src/lib/ui/CodeBlock.tsx +102 -0
  194. package/src/lib/ui/SyntaxHighlight.tsx +18 -182
  195. package/src/lib/util/MdxComponents.tsx +27 -14
  196. package/src/shiki/langs/abap.js +1 -0
  197. package/src/shiki/langs/actionscript-3.js +1 -0
  198. package/src/shiki/langs/ada.js +1 -0
  199. package/src/shiki/langs/angular-expression.js +1 -0
  200. package/src/shiki/langs/angular-html.js +1 -0
  201. package/src/shiki/langs/angular-inline-style.js +1 -0
  202. package/src/shiki/langs/angular-inline-template.js +1 -0
  203. package/src/shiki/langs/angular-let-declaration.js +1 -0
  204. package/src/shiki/langs/angular-template-blocks.js +1 -0
  205. package/src/shiki/langs/angular-template.js +1 -0
  206. package/src/shiki/langs/angular-ts.js +1 -0
  207. package/src/shiki/langs/apache.js +1 -0
  208. package/src/shiki/langs/apex.js +1 -0
  209. package/src/shiki/langs/apl.js +1 -0
  210. package/src/shiki/langs/applescript.js +1 -0
  211. package/src/shiki/langs/ara.js +1 -0
  212. package/src/shiki/langs/asciidoc.js +1 -0
  213. package/src/shiki/langs/asm.js +1 -0
  214. package/src/shiki/langs/astro.js +1 -0
  215. package/src/shiki/langs/awk.js +1 -0
  216. package/src/shiki/langs/ballerina.js +1 -0
  217. package/src/shiki/langs/bat.js +1 -0
  218. package/src/shiki/langs/beancount.js +1 -0
  219. package/src/shiki/langs/berry.js +1 -0
  220. package/src/shiki/langs/bibtex.js +1 -0
  221. package/src/shiki/langs/bicep.js +1 -0
  222. package/src/shiki/langs/blade.js +1 -0
  223. package/src/shiki/langs/bsl.js +1 -0
  224. package/src/shiki/langs/c.js +1 -0
  225. package/src/shiki/langs/cadence.js +1 -0
  226. package/src/shiki/langs/cairo.js +1 -0
  227. package/src/shiki/langs/clarity.js +1 -0
  228. package/src/shiki/langs/clojure.js +1 -0
  229. package/src/shiki/langs/cmake.js +1 -0
  230. package/src/shiki/langs/cobol.js +1 -0
  231. package/src/shiki/langs/codeowners.js +1 -0
  232. package/src/shiki/langs/codeql.js +1 -0
  233. package/src/shiki/langs/coffee.js +1 -0
  234. package/src/shiki/langs/common-lisp.js +1 -0
  235. package/src/shiki/langs/coq.js +1 -0
  236. package/src/shiki/langs/cpp-macro.js +1 -0
  237. package/src/shiki/langs/cpp.js +1 -0
  238. package/src/shiki/langs/crystal.js +1 -0
  239. package/src/shiki/langs/csharp.js +1 -0
  240. package/src/shiki/langs/css.js +1 -0
  241. package/src/shiki/langs/csv.js +1 -0
  242. package/src/shiki/langs/cue.js +1 -0
  243. package/src/shiki/langs/cypher.js +1 -0
  244. package/src/shiki/langs/d.js +1 -0
  245. package/src/shiki/langs/dart.js +1 -0
  246. package/src/shiki/langs/dax.js +1 -0
  247. package/src/shiki/langs/desktop.js +1 -0
  248. package/src/shiki/langs/diff.js +1 -0
  249. package/src/shiki/langs/docker.js +1 -0
  250. package/src/shiki/langs/dotenv.js +1 -0
  251. package/src/shiki/langs/dream-maker.js +1 -0
  252. package/src/shiki/langs/edge.js +1 -0
  253. package/src/shiki/langs/elixir.js +1 -0
  254. package/src/shiki/langs/elm.js +1 -0
  255. package/src/shiki/langs/emacs-lisp.js +1 -0
  256. package/src/shiki/langs/erb.js +1 -0
  257. package/src/shiki/langs/erlang.js +1 -0
  258. package/src/shiki/langs/es-tag-css.js +1 -0
  259. package/src/shiki/langs/es-tag-glsl.js +1 -0
  260. package/src/shiki/langs/es-tag-html.js +1 -0
  261. package/src/shiki/langs/es-tag-sql.js +1 -0
  262. package/src/shiki/langs/es-tag-xml.js +1 -0
  263. package/src/shiki/langs/fennel.js +1 -0
  264. package/src/shiki/langs/fish.js +1 -0
  265. package/src/shiki/langs/fluent.js +1 -0
  266. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  267. package/src/shiki/langs/fortran-free-form.js +1 -0
  268. package/src/shiki/langs/fsharp.js +1 -0
  269. package/src/shiki/langs/gdresource.js +1 -0
  270. package/src/shiki/langs/gdscript.js +1 -0
  271. package/src/shiki/langs/gdshader.js +1 -0
  272. package/src/shiki/langs/genie.js +1 -0
  273. package/src/shiki/langs/gherkin.js +1 -0
  274. package/src/shiki/langs/git-commit.js +1 -0
  275. package/src/shiki/langs/git-rebase.js +1 -0
  276. package/src/shiki/langs/gleam.js +1 -0
  277. package/src/shiki/langs/glimmer-js.js +1 -0
  278. package/src/shiki/langs/glimmer-ts.js +1 -0
  279. package/src/shiki/langs/glsl.js +1 -0
  280. package/src/shiki/langs/gnuplot.js +1 -0
  281. package/src/shiki/langs/go.js +1 -0
  282. package/src/shiki/langs/graphql.js +1 -0
  283. package/src/shiki/langs/groovy.js +1 -0
  284. package/src/shiki/langs/hack.js +1 -0
  285. package/src/shiki/langs/haml.js +1 -0
  286. package/src/shiki/langs/handlebars.js +1 -0
  287. package/src/shiki/langs/haskell.js +1 -0
  288. package/src/shiki/langs/haxe.js +1 -0
  289. package/src/shiki/langs/hcl.js +1 -0
  290. package/src/shiki/langs/hjson.js +1 -0
  291. package/src/shiki/langs/hlsl.js +1 -0
  292. package/src/shiki/langs/html-derivative.js +1 -0
  293. package/src/shiki/langs/html.js +1 -0
  294. package/src/shiki/langs/http.js +1 -0
  295. package/src/shiki/langs/hxml.js +1 -0
  296. package/src/shiki/langs/hy.js +1 -0
  297. package/src/shiki/langs/imba.js +1 -0
  298. package/src/shiki/langs/ini.js +1 -0
  299. package/src/shiki/langs/java.js +1 -0
  300. package/src/shiki/langs/javascript.js +1 -0
  301. package/src/shiki/langs/jinja-html.js +1 -0
  302. package/src/shiki/langs/jinja.js +1 -0
  303. package/src/shiki/langs/jison.js +1 -0
  304. package/src/shiki/langs/json.js +1 -0
  305. package/src/shiki/langs/json5.js +1 -0
  306. package/src/shiki/langs/jsonc.js +1 -0
  307. package/src/shiki/langs/jsonl.js +1 -0
  308. package/src/shiki/langs/jsonnet.js +1 -0
  309. package/src/shiki/langs/jssm.js +1 -0
  310. package/src/shiki/langs/jsx.js +1 -0
  311. package/src/shiki/langs/julia.js +1 -0
  312. package/src/shiki/langs/kotlin.js +1 -0
  313. package/src/shiki/langs/kusto.js +1 -0
  314. package/src/shiki/langs/latex.js +1 -0
  315. package/src/shiki/langs/lean.js +1 -0
  316. package/src/shiki/langs/less.js +1 -0
  317. package/src/shiki/langs/liquid.js +1 -0
  318. package/src/shiki/langs/llvm.js +1 -0
  319. package/src/shiki/langs/log.js +1 -0
  320. package/src/shiki/langs/logo.js +1 -0
  321. package/src/shiki/langs/lua.js +1 -0
  322. package/src/shiki/langs/luau.js +1 -0
  323. package/src/shiki/langs/make.js +1 -0
  324. package/src/shiki/langs/markdown-vue.js +1 -0
  325. package/src/shiki/langs/markdown.js +1 -0
  326. package/src/shiki/langs/marko.js +1 -0
  327. package/src/shiki/langs/matlab.js +1 -0
  328. package/src/shiki/langs/mdc.js +1 -0
  329. package/src/shiki/langs/mdx.js +1 -0
  330. package/src/shiki/langs/mermaid.js +1 -0
  331. package/src/shiki/langs/mipsasm.js +1 -0
  332. package/src/shiki/langs/mojo.js +1 -0
  333. package/src/shiki/langs/move.js +1 -0
  334. package/src/shiki/langs/narrat.js +1 -0
  335. package/src/shiki/langs/nextflow.js +1 -0
  336. package/src/shiki/langs/nginx.js +1 -0
  337. package/src/shiki/langs/nim.js +1 -0
  338. package/src/shiki/langs/nix.js +1 -0
  339. package/src/shiki/langs/nushell.js +1 -0
  340. package/src/shiki/langs/objective-c.js +1 -0
  341. package/src/shiki/langs/objective-cpp.js +1 -0
  342. package/src/shiki/langs/ocaml.js +1 -0
  343. package/src/shiki/langs/pascal.js +1 -0
  344. package/src/shiki/langs/perl.js +1 -0
  345. package/src/shiki/langs/php.js +1 -0
  346. package/src/shiki/langs/plsql.js +1 -0
  347. package/src/shiki/langs/po.js +1 -0
  348. package/src/shiki/langs/polar.js +1 -0
  349. package/src/shiki/langs/postcss.js +1 -0
  350. package/src/shiki/langs/powerquery.js +1 -0
  351. package/src/shiki/langs/powershell.js +1 -0
  352. package/src/shiki/langs/prisma.js +1 -0
  353. package/src/shiki/langs/prolog.js +1 -0
  354. package/src/shiki/langs/proto.js +1 -0
  355. package/src/shiki/langs/pug.js +1 -0
  356. package/src/shiki/langs/puppet.js +1 -0
  357. package/src/shiki/langs/purescript.js +1 -0
  358. package/src/shiki/langs/python.js +1 -0
  359. package/src/shiki/langs/qml.js +1 -0
  360. package/src/shiki/langs/qmldir.js +1 -0
  361. package/src/shiki/langs/qss.js +1 -0
  362. package/src/shiki/langs/r.js +1 -0
  363. package/src/shiki/langs/racket.js +1 -0
  364. package/src/shiki/langs/raku.js +1 -0
  365. package/src/shiki/langs/razor.js +1 -0
  366. package/src/shiki/langs/reg.js +1 -0
  367. package/src/shiki/langs/regexp.js +1 -0
  368. package/src/shiki/langs/rel.js +1 -0
  369. package/src/shiki/langs/riscv.js +1 -0
  370. package/src/shiki/langs/rst.js +1 -0
  371. package/src/shiki/langs/ruby.js +1 -0
  372. package/src/shiki/langs/rust.js +1 -0
  373. package/src/shiki/langs/sas.js +1 -0
  374. package/src/shiki/langs/sass.js +1 -0
  375. package/src/shiki/langs/scala.js +1 -0
  376. package/src/shiki/langs/scheme.js +1 -0
  377. package/src/shiki/langs/scss.js +1 -0
  378. package/src/shiki/langs/sdbl.js +1 -0
  379. package/src/shiki/langs/shaderlab.js +1 -0
  380. package/src/shiki/langs/shellscript.js +1 -0
  381. package/src/shiki/langs/shellsession.js +1 -0
  382. package/src/shiki/langs/smalltalk.js +1 -0
  383. package/src/shiki/langs/solidity.js +1 -0
  384. package/src/shiki/langs/soy.js +1 -0
  385. package/src/shiki/langs/sparql.js +1 -0
  386. package/src/shiki/langs/splunk.js +1 -0
  387. package/src/shiki/langs/sql.js +1 -0
  388. package/src/shiki/langs/ssh-config.js +1 -0
  389. package/src/shiki/langs/stata.js +1 -0
  390. package/src/shiki/langs/stylus.js +1 -0
  391. package/src/shiki/langs/svelte.js +1 -0
  392. package/src/shiki/langs/swift.js +1 -0
  393. package/src/shiki/langs/system-verilog.js +1 -0
  394. package/src/shiki/langs/systemd.js +1 -0
  395. package/src/shiki/langs/talonscript.js +1 -0
  396. package/src/shiki/langs/tasl.js +1 -0
  397. package/src/shiki/langs/tcl.js +1 -0
  398. package/src/shiki/langs/templ.js +1 -0
  399. package/src/shiki/langs/terraform.js +1 -0
  400. package/src/shiki/langs/tex.js +1 -0
  401. package/src/shiki/langs/toml.js +1 -0
  402. package/src/shiki/langs/ts-tags.js +1 -0
  403. package/src/shiki/langs/tsv.js +1 -0
  404. package/src/shiki/langs/tsx.js +1 -0
  405. package/src/shiki/langs/turtle.js +1 -0
  406. package/src/shiki/langs/twig.js +1 -0
  407. package/src/shiki/langs/typescript.js +1 -0
  408. package/src/shiki/langs/typespec.js +1 -0
  409. package/src/shiki/langs/typst.js +1 -0
  410. package/src/shiki/langs/v.js +1 -0
  411. package/src/shiki/langs/vala.js +1 -0
  412. package/src/shiki/langs/vb.js +1 -0
  413. package/src/shiki/langs/verilog.js +1 -0
  414. package/src/shiki/langs/vhdl.js +1 -0
  415. package/src/shiki/langs/viml.js +1 -0
  416. package/src/shiki/langs/vue-directives.js +1 -0
  417. package/src/shiki/langs/vue-html.js +1 -0
  418. package/src/shiki/langs/vue-interpolations.js +1 -0
  419. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  420. package/src/shiki/langs/vue.js +1 -0
  421. package/src/shiki/langs/vyper.js +1 -0
  422. package/src/shiki/langs/wasm.js +1 -0
  423. package/src/shiki/langs/wenyan.js +1 -0
  424. package/src/shiki/langs/wgsl.js +1 -0
  425. package/src/shiki/langs/wikitext.js +1 -0
  426. package/src/shiki/langs/wit.js +1 -0
  427. package/src/shiki/langs/wolfram.js +1 -0
  428. package/src/shiki/langs/xml.js +1 -0
  429. package/src/shiki/langs/xsl.js +1 -0
  430. package/src/shiki/langs/yaml.js +1 -0
  431. package/src/shiki/langs/zenscript.js +1 -0
  432. package/src/shiki/langs/zig.js +1 -0
  433. package/src/shiki/themes/andromeeda.js +1 -0
  434. package/src/shiki/themes/aurora-x.js +1 -0
  435. package/src/shiki/themes/ayu-dark.js +1 -0
  436. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  437. package/src/shiki/themes/catppuccin-latte.js +1 -0
  438. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  439. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  440. package/src/shiki/themes/dark-plus.js +1 -0
  441. package/src/shiki/themes/dracula-soft.js +1 -0
  442. package/src/shiki/themes/dracula.js +1 -0
  443. package/src/shiki/themes/everforest-dark.js +1 -0
  444. package/src/shiki/themes/everforest-light.js +1 -0
  445. package/src/shiki/themes/github-dark-default.js +1 -0
  446. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  447. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  448. package/src/shiki/themes/github-dark.js +1 -0
  449. package/src/shiki/themes/github-light-default.js +1 -0
  450. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  451. package/src/shiki/themes/github-light.js +1 -0
  452. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  453. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  454. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  455. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  456. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  457. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  458. package/src/shiki/themes/houston.js +1 -0
  459. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  460. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  461. package/src/shiki/themes/kanagawa-wave.js +1 -0
  462. package/src/shiki/themes/laserwave.js +1 -0
  463. package/src/shiki/themes/light-plus.js +1 -0
  464. package/src/shiki/themes/material-theme-darker.js +1 -0
  465. package/src/shiki/themes/material-theme-lighter.js +1 -0
  466. package/src/shiki/themes/material-theme-ocean.js +1 -0
  467. package/src/shiki/themes/material-theme-palenight.js +1 -0
  468. package/src/shiki/themes/material-theme.js +1 -0
  469. package/src/shiki/themes/min-dark.js +1 -0
  470. package/src/shiki/themes/min-light.js +1 -0
  471. package/src/shiki/themes/monokai.js +1 -0
  472. package/src/shiki/themes/night-owl.js +1 -0
  473. package/src/shiki/themes/nord.js +1 -0
  474. package/src/shiki/themes/one-dark-pro.js +1 -0
  475. package/src/shiki/themes/one-light.js +1 -0
  476. package/src/shiki/themes/plastic.js +1 -0
  477. package/src/shiki/themes/poimandres.js +1 -0
  478. package/src/shiki/themes/red.js +1 -0
  479. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  480. package/src/shiki/themes/rose-pine-moon.js +1 -0
  481. package/src/shiki/themes/rose-pine.js +1 -0
  482. package/src/shiki/themes/slack-dark.js +1 -0
  483. package/src/shiki/themes/slack-ochin.js +1 -0
  484. package/src/shiki/themes/snazzy-light.js +1 -0
  485. package/src/shiki/themes/solarized-dark.js +1 -0
  486. package/src/shiki/themes/solarized-light.js +1 -0
  487. package/src/shiki/themes/synthwave-84.js +1 -0
  488. package/src/shiki/themes/tokyo-night.js +1 -0
  489. package/src/shiki/themes/vesper.js +1 -0
  490. package/src/shiki/themes/vitesse-black.js +1 -0
  491. package/src/shiki/themes/vitesse-dark.js +1 -0
  492. package/src/shiki/themes/vitesse-light.js +1 -0
  493. package/lib/AuthenticationPlugin-CJOFRBk3.js +0 -58
  494. package/lib/Markdown-DqDbGCj2.js +0 -17125
  495. package/lib/Markdown-DqDbGCj2.js.map +0 -1
  496. package/lib/MdxPage-OSMru6r8.js +0 -85
  497. package/lib/RouteGuard-BZ_VsiXc.js +0 -744
  498. package/lib/Select-Dg5R11Dx.js +0 -223
  499. package/lib/SlotletProvider-p4XaFFOh.js +0 -340
  500. package/lib/SlotletProvider-p4XaFFOh.js.map +0 -1
  501. package/lib/SyntaxHighlight-CxhyyMkF.js +0 -2890
  502. package/lib/SyntaxHighlight-CxhyyMkF.js.map +0 -1
  503. package/lib/chunk-KNED5TY2-BUPjb3LQ.js.map +0 -1
  504. package/lib/hook-pPrHCB6G.js +0 -1478
  505. package/lib/index-DMYbZ3i6.js +0 -5031
  506. package/lib/index-DMYbZ3i6.js.map +0 -1
  507. package/lib/invariant-Caa8-XvF.js +0 -26
  508. package/lib/mutation-Csa9eQDM.js +0 -211
  509. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  510. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  511. package/lib/prism-csharp.min-C43x1RY2.js +0 -63
  512. package/lib/prism-csharp.min-C43x1RY2.js.map +0 -1
  513. package/lib/prism-java.min-CQzr40NQ.js +0 -35
  514. package/lib/prism-java.min-CQzr40NQ.js.map +0 -1
  515. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  516. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  517. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  518. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  519. package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
  520. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
  521. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  522. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  523. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  524. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  525. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  526. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  527. package/lib/prism-ruby.min-L9OdQ6tU.js +0 -38
  528. package/lib/prism-ruby.min-L9OdQ6tU.js.map +0 -1
  529. package/lib/prism-typescript.min-qTySPvCh.js +0 -34
  530. package/lib/prism-typescript.min-qTySPvCh.js.map +0 -1
@@ -1,35 +1,35 @@
1
- import * as o from "react";
2
- var _ = {}, ue;
1
+ import * as i from "react";
2
+ var F = {}, ue;
3
3
  function Me() {
4
- if (ue) return _;
5
- ue = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.parse = c, _.serialize = s;
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__ */ (() => {
4
+ if (ue) return F;
5
+ ue = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.parse = c, F.serialize = s;
6
+ const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, o = /* @__PURE__ */ (() => {
7
7
  const d = function() {
8
8
  };
9
9
  return d.prototype = /* @__PURE__ */ Object.create(null), d;
10
10
  })();
11
11
  function c(d, v) {
12
- const f = new i(), w = d.length;
12
+ const f = new o(), w = d.length;
13
13
  if (w < 2)
14
14
  return f;
15
- const E = (v == null ? void 0 : v.decode) || h;
15
+ const E = v?.decode || h;
16
16
  let m = 0;
17
17
  do {
18
18
  const g = d.indexOf("=", m);
19
19
  if (g === -1)
20
20
  break;
21
- const y = d.indexOf(";", m), R = y === -1 ? w : y;
22
- if (g > R) {
21
+ const y = d.indexOf(";", m), b = y === -1 ? w : y;
22
+ if (g > b) {
23
23
  m = d.lastIndexOf(";", g - 1) + 1;
24
24
  continue;
25
25
  }
26
26
  const x = u(d, m, g), C = l(d, g, x), $ = d.slice(x, C);
27
27
  if (f[$] === void 0) {
28
- let P = u(d, g + 1, R), S = l(d, R, P);
29
- const D = E(d.slice(P, S));
28
+ let S = u(d, g + 1, b), P = l(d, b, S);
29
+ const D = E(d.slice(S, P));
30
30
  f[$] = D;
31
31
  }
32
- m = R + 1;
32
+ m = b + 1;
33
33
  } while (m < w);
34
34
  return f;
35
35
  }
@@ -50,7 +50,7 @@ function Me() {
50
50
  return f;
51
51
  }
52
52
  function s(d, v, f) {
53
- const w = (f == null ? void 0 : f.encode) || encodeURIComponent;
53
+ const w = f?.encode || encodeURIComponent;
54
54
  if (!e.test(d))
55
55
  throw new TypeError(`argument name is invalid: ${d}`);
56
56
  const E = w(v);
@@ -122,11 +122,11 @@ function Me() {
122
122
  function p(d) {
123
123
  return r.call(d) === "[object Date]";
124
124
  }
125
- return _;
125
+ return F;
126
126
  }
127
127
  Me();
128
128
  /**
129
- * react-router v7.5.0
129
+ * react-router v7.5.2
130
130
  *
131
131
  * Copyright (c) Remix Software Inc.
132
132
  *
@@ -135,7 +135,7 @@ Me();
135
135
  *
136
136
  * @license MIT
137
137
  */
138
- function b(e, t) {
138
+ function R(e, t) {
139
139
  if (e === !1 || e === null || typeof e > "u")
140
140
  throw new Error(t);
141
141
  }
@@ -169,14 +169,14 @@ function pe(e, t, n = "/") {
169
169
  return De(e, t, n, !1);
170
170
  }
171
171
  function De(e, t, n, a) {
172
- let r = typeof t == "string" ? Y(t) : t, i = M(r.pathname || "/", n);
173
- if (i == null)
172
+ let r = typeof t == "string" ? Y(t) : t, o = M(r.pathname || "/", n);
173
+ if (o == null)
174
174
  return null;
175
175
  let c = ve(e);
176
- Ie(c);
176
+ Oe(c);
177
177
  let u = null;
178
178
  for (let l = 0; u == null && l < c.length; ++l) {
179
- let s = ye(i);
179
+ let s = ye(o);
180
180
  u = Ve(
181
181
  c[l],
182
182
  s,
@@ -186,54 +186,53 @@ function De(e, t, n, a) {
186
186
  return u;
187
187
  }
188
188
  function ve(e, t = [], n = [], a = "") {
189
- let r = (i, c, u) => {
189
+ let r = (o, c, u) => {
190
190
  let l = {
191
- relativePath: u === void 0 ? i.path || "" : u,
192
- caseSensitive: i.caseSensitive === !0,
191
+ relativePath: u === void 0 ? o.path || "" : u,
192
+ caseSensitive: o.caseSensitive === !0,
193
193
  childrenIndex: c,
194
- route: i
194
+ route: o
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
200
  let s = A([a, l.relativePath]), h = n.concat(l);
201
- i.children && i.children.length > 0 && (b(
201
+ o.children && o.children.length > 0 && (R(
202
202
  // Our types know better, but runtime JS may not!
203
203
  // @ts-expect-error
204
- i.index !== !0,
204
+ o.index !== !0,
205
205
  `Index routes must not have child routes. Please remove all child routes from route path "${s}".`
206
- ), ve(i.children, t, h, s)), !(i.path == null && !i.index) && t.push({
206
+ ), ve(o.children, t, h, s)), !(o.path == null && !o.index) && t.push({
207
207
  path: s,
208
- score: We(s, i.index),
208
+ score: We(s, o.index),
209
209
  routesMeta: h
210
210
  });
211
211
  };
212
- return e.forEach((i, c) => {
213
- var u;
214
- if (i.path === "" || !((u = i.path) != null && u.includes("?")))
215
- r(i, c);
212
+ return e.forEach((o, c) => {
213
+ if (o.path === "" || !o.path?.includes("?"))
214
+ r(o, c);
216
215
  else
217
- for (let l of ge(i.path))
218
- r(i, c, l);
216
+ for (let u of ge(o.path))
217
+ r(o, c, u);
219
218
  }), t;
220
219
  }
221
220
  function ge(e) {
222
221
  let t = e.split("/");
223
222
  if (t.length === 0) return [];
224
- let [n, ...a] = t, r = n.endsWith("?"), i = n.replace(/\?$/, "");
223
+ let [n, ...a] = t, r = n.endsWith("?"), o = n.replace(/\?$/, "");
225
224
  if (a.length === 0)
226
- return r ? [i, ""] : [i];
225
+ return r ? [o, ""] : [o];
227
226
  let c = ge(a.join("/")), u = [];
228
227
  return u.push(
229
228
  ...c.map(
230
- (l) => l === "" ? i : [i, l].join("/")
229
+ (l) => l === "" ? o : [o, l].join("/")
231
230
  )
232
231
  ), r && u.push(...c), u.map(
233
232
  (l) => e.startsWith("/") && l === "" ? "/" : l
234
233
  );
235
234
  }
236
- function Ie(e) {
235
+ function Oe(e) {
237
236
  e.sort(
238
237
  (t, n) => t.score !== n.score ? n.score - t.score : ze(
239
238
  t.routesMeta.map((a) => a.childrenIndex),
@@ -241,11 +240,11 @@ function Ie(e) {
241
240
  )
242
241
  );
243
242
  }
244
- var Oe = /^:[\w-]+$/, Fe = 3, _e = 2, Ue = 1, Be = 10, He = -2, ce = (e) => e === "*";
243
+ var Ie = /^:[\w-]+$/, _e = 3, Fe = 2, Ue = 1, Be = 10, He = -2, ce = (e) => e === "*";
245
244
  function We(e, t) {
246
245
  let n = e.split("/"), a = n.length;
247
- return n.some(ce) && (a += He), t && (a += _e), n.filter((r) => !ce(r)).reduce(
248
- (r, i) => r + (Oe.test(i) ? Fe : i === "" ? Ue : Be),
246
+ return n.some(ce) && (a += He), t && (a += Fe), n.filter((r) => !ce(r)).reduce(
247
+ (r, o) => r + (Ie.test(o) ? _e : o === "" ? Ue : Be),
249
248
  a
250
249
  );
251
250
  }
@@ -263,9 +262,9 @@ function ze(e, t) {
263
262
  );
264
263
  }
265
264
  function Ve(e, t, n = !1) {
266
- let { routesMeta: a } = e, r = {}, i = "/", c = [];
265
+ let { routesMeta: a } = e, r = {}, o = "/", c = [];
267
266
  for (let u = 0; u < a.length; ++u) {
268
- let l = a[u], s = u === a.length - 1, h = i === "/" ? t : t.slice(i.length) || "/", p = H(
267
+ let l = a[u], s = u === a.length - 1, h = o === "/" ? t : t.slice(o.length) || "/", p = H(
269
268
  { path: l.relativePath, caseSensitive: l.caseSensitive, end: s },
270
269
  h
271
270
  ), d = l.route;
@@ -281,12 +280,12 @@ function Ve(e, t, n = !1) {
281
280
  Object.assign(r, p.params), c.push({
282
281
  // TODO: Can this as be avoided?
283
282
  params: r,
284
- pathname: A([i, p.pathname]),
283
+ pathname: A([o, p.pathname]),
285
284
  pathnameBase: qe(
286
- A([i, p.pathnameBase])
285
+ A([o, p.pathnameBase])
287
286
  ),
288
287
  route: d
289
- }), p.pathnameBase !== "/" && (i = A([i, p.pathnameBase]));
288
+ }), p.pathnameBase !== "/" && (o = A([o, p.pathnameBase]));
290
289
  }
291
290
  return c;
292
291
  }
@@ -298,20 +297,20 @@ function H(e, t) {
298
297
  e.end
299
298
  ), r = t.match(n);
300
299
  if (!r) return null;
301
- let i = r[0], c = i.replace(/(.)\/+$/, "$1"), u = r.slice(1);
300
+ let o = r[0], c = o.replace(/(.)\/+$/, "$1"), u = r.slice(1);
302
301
  return {
303
302
  params: a.reduce(
304
303
  (s, { paramName: h, isOptional: p }, d) => {
305
304
  if (h === "*") {
306
305
  let f = u[d] || "";
307
- c = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
306
+ c = o.slice(0, o.length - f.length).replace(/(.)\/+$/, "$1");
308
307
  }
309
308
  const v = u[d];
310
309
  return p && !v ? s[h] = void 0 : s[h] = (v || "").replace(/%2F/g, "/"), s;
311
310
  },
312
311
  {}
313
312
  ),
314
- pathname: i,
313
+ pathname: o,
315
314
  pathnameBase: c,
316
315
  pattern: e
317
316
  };
@@ -380,17 +379,17 @@ function Z(e) {
380
379
  }
381
380
  function ee(e, t, n, a = !1) {
382
381
  let r;
383
- typeof e == "string" ? r = Y(e) : (r = { ...e }, b(
382
+ typeof e == "string" ? r = Y(e) : (r = { ...e }, R(
384
383
  !r.pathname || !r.pathname.includes("?"),
385
384
  G("?", "pathname", "search", r)
386
- ), b(
385
+ ), R(
387
386
  !r.pathname || !r.pathname.includes("#"),
388
387
  G("#", "pathname", "hash", r)
389
- ), b(
388
+ ), R(
390
389
  !r.search || !r.search.includes("#"),
391
390
  G("#", "search", "hash", r)
392
391
  ));
393
- let i = e === "" || r.pathname === "", c = i ? "/" : r.pathname, u;
392
+ let o = e === "" || r.pathname === "", c = o ? "/" : r.pathname, u;
394
393
  if (c == null)
395
394
  u = n;
396
395
  else {
@@ -403,10 +402,10 @@ function ee(e, t, n, a = !1) {
403
402
  }
404
403
  u = p >= 0 ? t[p] : "/";
405
404
  }
406
- let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (i || c === ".") && n.endsWith("/");
405
+ let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (o || c === ".") && n.endsWith("/");
407
406
  return !l.pathname.endsWith("/") && (s || h) && (l.pathname += "/"), l;
408
407
  }
409
- var A = (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, an = (e, t = 302) => {
408
+ var A = (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, on = (e, t = 302) => {
410
409
  let n = t;
411
410
  typeof n == "number" ? n = { status: n } : typeof n.status > "u" && (n.status = 302);
412
411
  let a = new Headers(n.headers);
@@ -429,89 +428,89 @@ var Qe = [
429
428
  ...Ee
430
429
  ];
431
430
  new Set(Qe);
432
- var I = o.createContext(null);
433
- I.displayName = "DataRouter";
434
- var F = o.createContext(null);
435
- F.displayName = "DataRouterState";
436
- var J = o.createContext({
431
+ var O = i.createContext(null);
432
+ O.displayName = "DataRouter";
433
+ var _ = i.createContext(null);
434
+ _.displayName = "DataRouterState";
435
+ var J = i.createContext({
437
436
  isTransitioning: !1
438
437
  });
439
438
  J.displayName = "ViewTransition";
440
- var te = o.createContext(
439
+ var te = i.createContext(
441
440
  /* @__PURE__ */ new Map()
442
441
  );
443
442
  te.displayName = "Fetchers";
444
- var Ze = o.createContext(null);
443
+ var Ze = i.createContext(null);
445
444
  Ze.displayName = "Await";
446
- var T = o.createContext(
445
+ var T = i.createContext(
447
446
  null
448
447
  );
449
448
  T.displayName = "Navigation";
450
- var K = o.createContext(
449
+ var K = i.createContext(
451
450
  null
452
451
  );
453
452
  K.displayName = "Location";
454
- var k = o.createContext({
453
+ var k = i.createContext({
455
454
  outlet: null,
456
455
  matches: [],
457
456
  isDataRoute: !1
458
457
  });
459
458
  k.displayName = "Route";
460
- var ne = o.createContext(null);
459
+ var ne = i.createContext(null);
461
460
  ne.displayName = "RouteError";
462
461
  function et(e, { relative: t } = {}) {
463
- b(
464
- O(),
462
+ R(
463
+ I(),
465
464
  // TODO: This error is probably because they somehow have 2 versions of the
466
465
  // router loaded. We can help them understand how to avoid that.
467
466
  "useHref() may be used only in the context of a <Router> component."
468
467
  );
469
- let { basename: n, navigator: a } = o.useContext(T), { hash: r, pathname: i, search: c } = W(e, { relative: t }), u = i;
470
- return n !== "/" && (u = i === "/" ? n : A([n, i])), a.createHref({ pathname: u, search: c, hash: r });
468
+ let { basename: n, navigator: a } = i.useContext(T), { hash: r, pathname: o, search: c } = W(e, { relative: t }), u = o;
469
+ return n !== "/" && (u = o === "/" ? n : A([n, o])), a.createHref({ pathname: u, search: c, hash: r });
471
470
  }
472
- function O() {
473
- return o.useContext(K) != null;
471
+ function I() {
472
+ return i.useContext(K) != null;
474
473
  }
475
474
  function N() {
476
- return b(
477
- O(),
475
+ return R(
476
+ I(),
478
477
  // TODO: This error is probably because they somehow have 2 versions of the
479
478
  // router loaded. We can help them understand how to avoid that.
480
479
  "useLocation() may be used only in the context of a <Router> component."
481
- ), o.useContext(K).location;
480
+ ), i.useContext(K).location;
482
481
  }
483
- function on(e) {
484
- b(
485
- O(),
482
+ function ln(e) {
483
+ R(
484
+ I(),
486
485
  // TODO: This error is probably because they somehow have 2 versions of the
487
486
  // router loaded. We can help them understand how to avoid that.
488
487
  "useMatch() may be used only in the context of a <Router> component."
489
488
  );
490
489
  let { pathname: t } = N();
491
- return o.useMemo(
490
+ return i.useMemo(
492
491
  () => H(e, ye(t)),
493
492
  [t, e]
494
493
  );
495
494
  }
496
495
  var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
497
496
  function Re(e) {
498
- o.useContext(T).static || o.useLayoutEffect(e);
497
+ i.useContext(T).static || i.useLayoutEffect(e);
499
498
  }
500
499
  function re() {
501
- let { isDataRoute: e } = o.useContext(k);
500
+ let { isDataRoute: e } = i.useContext(k);
502
501
  return e ? ht() : tt();
503
502
  }
504
503
  function tt() {
505
- b(
506
- O(),
504
+ R(
505
+ I(),
507
506
  // TODO: This error is probably because they somehow have 2 versions of the
508
507
  // router loaded. We can help them understand how to avoid that.
509
508
  "useNavigate() may be used only in the context of a <Router> component."
510
509
  );
511
- let e = o.useContext(I), { basename: t, navigator: n } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), c = o.useRef(!1);
510
+ let e = i.useContext(O), { basename: t, navigator: n } = i.useContext(T), { matches: a } = i.useContext(k), { pathname: r } = N(), o = JSON.stringify(Z(a)), c = i.useRef(!1);
512
511
  return Re(() => {
513
512
  c.current = !0;
514
- }), o.useCallback(
513
+ }), i.useCallback(
515
514
  (l, s = {}) => {
516
515
  if (L(c.current, xe), !c.current) return;
517
516
  if (typeof l == "number") {
@@ -520,7 +519,7 @@ function tt() {
520
519
  }
521
520
  let h = ee(
522
521
  l,
523
- JSON.parse(i),
522
+ JSON.parse(o),
524
523
  r,
525
524
  s.relative === "path"
526
525
  );
@@ -533,24 +532,24 @@ function tt() {
533
532
  [
534
533
  t,
535
534
  n,
536
- i,
535
+ o,
537
536
  r,
538
537
  e
539
538
  ]
540
539
  );
541
540
  }
542
- var nt = o.createContext(null);
541
+ var nt = i.createContext(null);
543
542
  function rt(e) {
544
- let t = o.useContext(k).outlet;
545
- return t && /* @__PURE__ */ o.createElement(nt.Provider, { value: e }, t);
543
+ let t = i.useContext(k).outlet;
544
+ return t && /* @__PURE__ */ i.createElement(nt.Provider, { value: e }, t);
546
545
  }
547
- function ln() {
548
- let { matches: e } = o.useContext(k), t = e[e.length - 1];
546
+ function sn() {
547
+ let { matches: e } = i.useContext(k), t = e[e.length - 1];
549
548
  return t ? t.params : {};
550
549
  }
551
550
  function W(e, { relative: t } = {}) {
552
- let { matches: n } = o.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
553
- return o.useMemo(
551
+ let { matches: n } = i.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
552
+ return i.useMemo(
554
553
  () => ee(
555
554
  e,
556
555
  JSON.parse(r),
@@ -561,16 +560,16 @@ function W(e, { relative: t } = {}) {
561
560
  );
562
561
  }
563
562
  function be(e, t, n, a) {
564
- b(
565
- O(),
563
+ R(
564
+ I(),
566
565
  // TODO: This error is probably because they somehow have 2 versions of the
567
566
  // router loaded. We can help them understand how to avoid that.
568
567
  "useRoutes() may be used only in the context of a <Router> component."
569
568
  );
570
- let { navigator: r, static: i } = o.useContext(T), { matches: c } = o.useContext(k), u = c[c.length - 1], l = u ? u.params : {}, s = u ? u.pathname : "/", h = u ? u.pathnameBase : "/", p = u && u.route;
569
+ let { navigator: r, static: o } = i.useContext(T), { matches: c } = i.useContext(k), u = c[c.length - 1], l = u ? u.params : {}, s = u ? u.pathname : "/", h = u ? u.pathnameBase : "/", p = u && u.route;
571
570
  {
572
571
  let g = p && p.path || "";
573
- Pe(
572
+ Se(
574
573
  s,
575
574
  !p || g.endsWith("*") || g.endsWith("*?"),
576
575
  `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${g}">) 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.
@@ -585,7 +584,7 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
585
584
  let g = h.replace(/^\//, "").split("/");
586
585
  w = "/" + f.replace(/^\//, "").split("/").slice(g.length).join("/");
587
586
  }
588
- let E = !i && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
587
+ let E = !o && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
589
588
  return L(
590
589
  p || E != null,
591
590
  `No routes matched location "${v.pathname}${v.search}${v.hash}" `
@@ -614,13 +613,13 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
614
613
  );
615
614
  }
616
615
  function at() {
617
- let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, c = null;
616
+ let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, o = { padding: "2px 4px", backgroundColor: a }, c = null;
618
617
  return console.error(
619
618
  "Error handled by React Router default ErrorBoundary:",
620
619
  e
621
- ), c = /* @__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, c);
620
+ ), c = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ i.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ i.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ i.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ i.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ i.createElement("pre", { style: r }, n) : null, c);
622
621
  }
623
- var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Component {
622
+ var ot = /* @__PURE__ */ i.createElement(at, null), it = class extends i.Component {
624
623
  constructor(e) {
625
624
  super(e), this.state = {
626
625
  location: e.location,
@@ -650,7 +649,7 @@ var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Compone
650
649
  );
651
650
  }
652
651
  render() {
653
- return this.state.error !== void 0 ? /* @__PURE__ */ o.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ o.createElement(
652
+ return this.state.error !== void 0 ? /* @__PURE__ */ i.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ i.createElement(
654
653
  ne.Provider,
655
654
  {
656
655
  value: this.state.error,
@@ -660,8 +659,8 @@ var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Compone
660
659
  }
661
660
  };
662
661
  function lt({ routeContext: e, match: t, children: n }) {
663
- let a = o.useContext(I);
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);
662
+ let a = i.useContext(O);
663
+ return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ i.createElement(k.Provider, { value: e }, n);
665
664
  }
666
665
  function st(e, t = [], n = null, a = null) {
667
666
  if (e == null) {
@@ -674,15 +673,15 @@ function st(e, t = [], n = null, a = null) {
674
673
  else
675
674
  return null;
676
675
  }
677
- let r = e, i = n == null ? void 0 : n.errors;
678
- if (i != null) {
676
+ let r = e, o = n?.errors;
677
+ if (o != null) {
679
678
  let l = r.findIndex(
680
- (s) => s.route.id && (i == null ? void 0 : i[s.route.id]) !== void 0
679
+ (s) => s.route.id && o?.[s.route.id] !== void 0
681
680
  );
682
- b(
681
+ R(
683
682
  l >= 0,
684
683
  `Could not find a matching route for errors on route IDs: ${Object.keys(
685
- i
684
+ o
686
685
  ).join(",")}`
687
686
  ), r = r.slice(
688
687
  0,
@@ -703,14 +702,14 @@ function st(e, t = [], n = null, a = null) {
703
702
  }
704
703
  return r.reduceRight((l, s, h) => {
705
704
  let p, d = !1, v = null, f = null;
706
- n && (p = i && s.route.id ? i[s.route.id] : void 0, v = s.route.errorElement || it, c && (u < 0 && h === 0 ? (Pe(
705
+ n && (p = o && s.route.id ? o[s.route.id] : void 0, v = s.route.errorElement || ot, c && (u < 0 && h === 0 ? (Se(
707
706
  "route-fallback",
708
707
  !1,
709
708
  "No `HydrateFallback` element provided to render during initial hydration"
710
709
  ), d = !0, f = null) : u === h && (d = !0, f = s.route.hydrateFallbackElement || null)));
711
710
  let w = t.concat(r.slice(0, h + 1)), E = () => {
712
711
  let m;
713
- return p ? m = v : d ? m = f : s.route.Component ? m = /* @__PURE__ */ o.createElement(s.route.Component, null) : s.route.element ? m = s.route.element : m = l, /* @__PURE__ */ o.createElement(
712
+ return p ? m = v : d ? m = f : s.route.Component ? m = /* @__PURE__ */ i.createElement(s.route.Component, null) : s.route.element ? m = s.route.element : m = l, /* @__PURE__ */ i.createElement(
714
713
  lt,
715
714
  {
716
715
  match: s,
@@ -723,8 +722,8 @@ function st(e, t = [], n = null, a = null) {
723
722
  }
724
723
  );
725
724
  };
726
- return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ o.createElement(
727
- ot,
725
+ return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ i.createElement(
726
+ it,
728
727
  {
729
728
  location: n.location,
730
729
  revalidation: n.revalidation,
@@ -740,66 +739,65 @@ function ae(e) {
740
739
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
741
740
  }
742
741
  function ut(e) {
743
- let t = o.useContext(I);
744
- return b(t, ae(e)), t;
742
+ let t = i.useContext(O);
743
+ return R(t, ae(e)), t;
745
744
  }
746
745
  function Ce(e) {
747
- let t = o.useContext(F);
748
- return b(t, ae(e)), t;
746
+ let t = i.useContext(_);
747
+ return R(t, ae(e)), t;
749
748
  }
750
749
  function ct(e) {
751
- let t = o.useContext(k);
752
- return b(t, ae(e)), t;
750
+ let t = i.useContext(k);
751
+ return R(t, ae(e)), t;
753
752
  }
754
- function ie(e) {
753
+ function oe(e) {
755
754
  let t = ct(e), n = t.matches[t.matches.length - 1];
756
- return b(
755
+ return R(
757
756
  n.route.id,
758
757
  `${e} can only be used on routes that contain a unique "id"`
759
758
  ), n.route.id;
760
759
  }
761
760
  function ft() {
762
- return ie(
761
+ return oe(
763
762
  "useRouteId"
764
763
  /* UseRouteId */
765
764
  );
766
765
  }
767
- function sn() {
766
+ function un() {
768
767
  return Ce(
769
768
  "useNavigation"
770
769
  /* UseNavigation */
771
770
  ).navigation;
772
771
  }
773
772
  function dt() {
774
- var a;
775
- let e = o.useContext(ne), t = Ce(
773
+ let e = i.useContext(ne), t = Ce(
776
774
  "useRouteError"
777
775
  /* UseRouteError */
778
- ), n = ie(
776
+ ), n = oe(
779
777
  "useRouteError"
780
778
  /* UseRouteError */
781
779
  );
782
- return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
780
+ return e !== void 0 ? e : t.errors?.[n];
783
781
  }
784
782
  function ht() {
785
783
  let { router: e } = ut(
786
784
  "useNavigate"
787
785
  /* UseNavigateStable */
788
- ), t = ie(
786
+ ), t = oe(
789
787
  "useNavigate"
790
788
  /* UseNavigateStable */
791
- ), n = o.useRef(!1);
789
+ ), n = i.useRef(!1);
792
790
  return Re(() => {
793
791
  n.current = !0;
794
- }), o.useCallback(
795
- async (r, i = {}) => {
796
- L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...i }));
792
+ }), i.useCallback(
793
+ async (r, o = {}) => {
794
+ L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...o }));
797
795
  },
798
796
  [e, t]
799
797
  );
800
798
  }
801
799
  var fe = {};
802
- function Pe(e, t, n) {
800
+ function Se(e, t, n) {
803
801
  !t && !fe[e] && (fe[e] = !0, L(!1, n));
804
802
  }
805
803
  var de = {};
@@ -817,17 +815,17 @@ var mt = class {
817
815
  });
818
816
  }
819
817
  };
820
- function un({
818
+ function cn({
821
819
  router: e,
822
820
  flushSync: t
823
821
  }) {
824
- let [n, a] = o.useState(e.state), [r, i] = o.useState(), [c, u] = o.useState({
822
+ let [n, a] = i.useState(e.state), [r, o] = i.useState(), [c, u] = i.useState({
825
823
  isTransitioning: !1
826
- }), [l, s] = o.useState(), [h, p] = o.useState(), [d, v] = o.useState(), f = o.useRef(/* @__PURE__ */ new Map()), w = o.useCallback(
827
- (y, { deletedFetchers: R, flushSync: x, viewTransitionOpts: C }) => {
828
- y.fetchers.forEach((P, S) => {
829
- P.data !== void 0 && f.current.set(S, P.data);
830
- }), R.forEach((P) => f.current.delete(P)), he(
824
+ }), [l, s] = i.useState(), [h, p] = i.useState(), [d, v] = i.useState(), f = i.useRef(/* @__PURE__ */ new Map()), w = i.useCallback(
825
+ (y, { deletedFetchers: b, flushSync: x, viewTransitionOpts: C }) => {
826
+ y.fetchers.forEach((S, P) => {
827
+ S.data !== void 0 && f.current.set(P, S.data);
828
+ }), b.forEach((S) => f.current.delete(S)), he(
831
829
  x === !1 || t != null,
832
830
  '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
831
  );
@@ -836,7 +834,7 @@ function un({
836
834
  C == null || $,
837
835
  "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
836
  ), !C || !$) {
839
- t && x ? t(() => a(y)) : o.startTransition(() => a(y));
837
+ t && x ? t(() => a(y)) : i.startTransition(() => a(y));
840
838
  return;
841
839
  }
842
840
  if (t && x) {
@@ -848,21 +846,21 @@ function un({
848
846
  nextLocation: C.nextLocation
849
847
  });
850
848
  });
851
- let P = e.window.document.startViewTransition(() => {
849
+ let S = e.window.document.startViewTransition(() => {
852
850
  t(() => a(y));
853
851
  });
854
- P.finished.finally(() => {
852
+ S.finished.finally(() => {
855
853
  t(() => {
856
- s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
854
+ s(void 0), p(void 0), o(void 0), u({ isTransitioning: !1 });
857
855
  });
858
- }), t(() => p(P));
856
+ }), t(() => p(S));
859
857
  return;
860
858
  }
861
859
  h ? (l && l.resolve(), h.skipTransition(), v({
862
860
  state: y,
863
861
  currentLocation: C.currentLocation,
864
862
  nextLocation: C.nextLocation
865
- })) : (i(y), u({
863
+ })) : (o(y), u({
866
864
  isTransitioning: !0,
867
865
  flushSync: !1,
868
866
  currentLocation: C.currentLocation,
@@ -871,41 +869,41 @@ function un({
871
869
  },
872
870
  [e.window, t, h, l]
873
871
  );
874
- o.useLayoutEffect(() => e.subscribe(w), [e, w]), o.useEffect(() => {
872
+ i.useLayoutEffect(() => e.subscribe(w), [e, w]), i.useEffect(() => {
875
873
  c.isTransitioning && !c.flushSync && s(new mt());
876
- }, [c]), o.useEffect(() => {
874
+ }, [c]), i.useEffect(() => {
877
875
  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;
876
+ let y = r, b = l.promise, x = e.window.document.startViewTransition(async () => {
877
+ i.startTransition(() => a(y)), await b;
880
878
  });
881
879
  x.finished.finally(() => {
882
- s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
880
+ s(void 0), p(void 0), o(void 0), u({ isTransitioning: !1 });
883
881
  }), p(x);
884
882
  }
885
- }, [r, l, e.window]), o.useEffect(() => {
883
+ }, [r, l, e.window]), i.useEffect(() => {
886
884
  l && r && n.location.key === r.location.key && l.resolve();
887
- }, [l, h, n.location, r]), o.useEffect(() => {
888
- !c.isTransitioning && d && (i(d.state), u({
885
+ }, [l, h, n.location, r]), i.useEffect(() => {
886
+ !c.isTransitioning && d && (o(d.state), u({
889
887
  isTransitioning: !0,
890
888
  flushSync: !1,
891
889
  currentLocation: d.currentLocation,
892
890
  nextLocation: d.nextLocation
893
891
  }), v(void 0));
894
892
  }, [c.isTransitioning, d]);
895
- let E = o.useMemo(() => ({
893
+ let E = i.useMemo(() => ({
896
894
  createHref: e.createHref,
897
895
  encodeLocation: e.encodeLocation,
898
896
  go: (y) => e.navigate(y),
899
- push: (y, R, x) => e.navigate(y, {
900
- state: R,
901
- preventScrollReset: x == null ? void 0 : x.preventScrollReset
897
+ push: (y, b, x) => e.navigate(y, {
898
+ state: b,
899
+ preventScrollReset: x?.preventScrollReset
902
900
  }),
903
- replace: (y, R, x) => e.navigate(y, {
901
+ replace: (y, b, x) => e.navigate(y, {
904
902
  replace: !0,
905
- state: R,
906
- preventScrollReset: x == null ? void 0 : x.preventScrollReset
903
+ state: b,
904
+ preventScrollReset: x?.preventScrollReset
907
905
  })
908
- }), [e]), m = e.basename || "/", g = o.useMemo(
906
+ }), [e]), m = e.basename || "/", g = i.useMemo(
909
907
  () => ({
910
908
  router: e,
911
909
  navigator: E,
@@ -914,15 +912,15 @@ function un({
914
912
  }),
915
913
  [e, E, m]
916
914
  );
917
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(I.Provider, { value: g }, /* @__PURE__ */ o.createElement(F.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: c }, /* @__PURE__ */ o.createElement(
918
- Se,
915
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(O.Provider, { value: g }, /* @__PURE__ */ i.createElement(_.Provider, { value: n }, /* @__PURE__ */ i.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ i.createElement(J.Provider, { value: c }, /* @__PURE__ */ i.createElement(
916
+ Pe,
919
917
  {
920
918
  basename: m,
921
919
  location: n.location,
922
920
  navigationType: n.historyAction,
923
921
  navigator: E
924
922
  },
925
- /* @__PURE__ */ o.createElement(
923
+ /* @__PURE__ */ i.createElement(
926
924
  pt,
927
925
  {
928
926
  routes: e.routes,
@@ -932,7 +930,7 @@ function un({
932
930
  )
933
931
  ))))), null);
934
932
  }
935
- var pt = o.memo(vt);
933
+ var pt = i.memo(vt);
936
934
  function vt({
937
935
  routes: e,
938
936
  future: t,
@@ -940,56 +938,56 @@ function vt({
940
938
  }) {
941
939
  return be(e, void 0, n, t);
942
940
  }
943
- function cn({
941
+ function fn({
944
942
  to: e,
945
943
  replace: t,
946
944
  state: n,
947
945
  relative: a
948
946
  }) {
949
- b(
950
- O(),
947
+ R(
948
+ I(),
951
949
  // TODO: This error is probably because they somehow have 2 versions of
952
950
  // the router loaded. We can help them understand how to avoid that.
953
951
  "<Navigate> may be used only in the context of a <Router> component."
954
952
  );
955
- let { static: r } = o.useContext(T);
953
+ let { static: r } = i.useContext(T);
956
954
  L(
957
955
  !r,
958
956
  "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change."
959
957
  );
960
- let { matches: i } = o.useContext(k), { pathname: c } = N(), u = re(), l = ee(
958
+ let { matches: o } = i.useContext(k), { pathname: c } = N(), u = re(), l = ee(
961
959
  e,
962
- Z(i),
960
+ Z(o),
963
961
  c,
964
962
  a === "path"
965
963
  ), s = JSON.stringify(l);
966
- return o.useEffect(() => {
964
+ return i.useEffect(() => {
967
965
  u(JSON.parse(s), { replace: t, state: n, relative: a });
968
966
  }, [u, s, a, t, n]), null;
969
967
  }
970
- function fn(e) {
968
+ function dn(e) {
971
969
  return rt(e.context);
972
970
  }
973
- function Se({
971
+ function Pe({
974
972
  basename: e = "/",
975
973
  children: t = null,
976
974
  location: n,
977
975
  navigationType: a = "POP",
978
976
  navigator: r,
979
- static: i = !1
977
+ static: o = !1
980
978
  }) {
981
- b(
982
- !O(),
979
+ R(
980
+ !I(),
983
981
  "You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
984
982
  );
985
- let c = e.replace(/^\/*/, "/"), u = o.useMemo(
983
+ let c = e.replace(/^\/*/, "/"), u = i.useMemo(
986
984
  () => ({
987
985
  basename: c,
988
986
  navigator: r,
989
- static: i,
987
+ static: o,
990
988
  future: {}
991
989
  }),
992
- [c, r, i]
990
+ [c, r, o]
993
991
  );
994
992
  typeof n == "string" && (n = Y(n));
995
993
  let {
@@ -998,7 +996,7 @@ function Se({
998
996
  hash: h = "",
999
997
  state: p = null,
1000
998
  key: d = "default"
1001
- } = n, v = o.useMemo(() => {
999
+ } = n, v = i.useMemo(() => {
1002
1000
  let f = M(l, c);
1003
1001
  return f == null ? null : {
1004
1002
  location: {
@@ -1014,7 +1012,7 @@ function Se({
1014
1012
  return L(
1015
1013
  v != null,
1016
1014
  `<Router basename="${c}"> is not able to match the URL "${l}${s}${h}" because it does not start with the basename, so the <Router> won't render anything.`
1017
- ), v == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: u }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: v }));
1015
+ ), v == null ? null : /* @__PURE__ */ i.createElement(T.Provider, { value: u }, /* @__PURE__ */ i.createElement(K.Provider, { children: t, value: v }));
1018
1016
  }
1019
1017
  var V = "get", j = "application/x-www-form-urlencoded";
1020
1018
  function q(e) {
@@ -1050,8 +1048,8 @@ function Q(e = "") {
1050
1048
  function Rt(e, t) {
1051
1049
  let n = Q(e);
1052
1050
  return t && t.forEach((a, r) => {
1053
- n.has(r) || t.getAll(r).forEach((i) => {
1054
- n.append(r, i);
1051
+ n.has(r) || t.getAll(r).forEach((o) => {
1052
+ n.append(r, o);
1055
1053
  });
1056
1054
  }), n;
1057
1055
  }
@@ -1080,11 +1078,11 @@ function X(e) {
1080
1078
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`
1081
1079
  ), null) : e;
1082
1080
  }
1083
- function Pt(e, t) {
1084
- let n, a, r, i, c;
1081
+ function St(e, t) {
1082
+ let n, a, r, o, c;
1085
1083
  if (yt(e)) {
1086
1084
  let u = e.getAttribute("action");
1087
- a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1085
+ a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, o = new FormData(e);
1088
1086
  } else if (gt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
1089
1087
  let u = e.form;
1090
1088
  if (u == null)
@@ -1092,12 +1090,12 @@ function Pt(e, t) {
1092
1090
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1093
1091
  );
1094
1092
  let l = e.getAttribute("formaction") || u.getAttribute("action");
1095
- if (a = l ? M(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(u.getAttribute("enctype")) || j, i = new FormData(u, e), !bt()) {
1093
+ if (a = l ? M(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(u.getAttribute("enctype")) || j, o = new FormData(u, e), !bt()) {
1096
1094
  let { name: s, type: h, value: p } = e;
1097
1095
  if (h === "image") {
1098
1096
  let d = s ? `${s}.` : "";
1099
- i.append(`${d}x`, "0"), i.append(`${d}y`, "0");
1100
- } else s && i.append(s, p);
1097
+ o.append(`${d}x`, "0"), o.append(`${d}y`, "0");
1098
+ } else s && o.append(s, p);
1101
1099
  }
1102
1100
  } else {
1103
1101
  if (q(e))
@@ -1106,13 +1104,13 @@ function Pt(e, t) {
1106
1104
  );
1107
1105
  n = V, a = null, r = j, c = e;
1108
1106
  }
1109
- return i && r === "text/plain" && (c = i, i = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: i, body: c };
1107
+ return o && r === "text/plain" && (c = o, o = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: o, body: c };
1110
1108
  }
1111
- function oe(e, t) {
1109
+ function ie(e, t) {
1112
1110
  if (e === !1 || e === null || typeof e > "u")
1113
1111
  throw new Error(t);
1114
1112
  }
1115
- async function St(e, t) {
1113
+ async function Pt(e, t) {
1116
1114
  if (e.id in t)
1117
1115
  return t[e.id];
1118
1116
  try {
@@ -1135,9 +1133,9 @@ function Lt(e) {
1135
1133
  async function kt(e, t, n) {
1136
1134
  let a = await Promise.all(
1137
1135
  e.map(async (r) => {
1138
- let i = t.routes[r.route.id];
1139
- if (i) {
1140
- let c = await St(i, n);
1136
+ let o = t.routes[r.route.id];
1137
+ if (o) {
1138
+ let c = await Pt(o, n);
1141
1139
  return c.links ? c.links() : [];
1142
1140
  }
1143
1141
  return [];
@@ -1149,38 +1147,34 @@ async function kt(e, t, n) {
1149
1147
  )
1150
1148
  );
1151
1149
  }
1152
- function me(e, t, n, a, r, i) {
1153
- let c = (l, s) => n[s] ? l.route.id !== n[s].route.id : !0, u = (l, s) => {
1154
- var h;
1155
- return (
1156
- // param change, /users/123 -> /users/456
1157
- n[s].pathname !== l.pathname || // splat param changed, which is not present in match.path
1158
- // e.g. /files/images/avatar.jpg -> files/finances.xls
1159
- ((h = n[s].route.path) == null ? void 0 : h.endsWith("*")) && n[s].params["*"] !== l.params["*"]
1160
- );
1161
- };
1162
- return i === "assets" ? t.filter(
1150
+ function me(e, t, n, a, r, o) {
1151
+ let c = (l, s) => n[s] ? l.route.id !== n[s].route.id : !0, u = (l, s) => (
1152
+ // param change, /users/123 -> /users/456
1153
+ n[s].pathname !== l.pathname || // splat param changed, which is not present in match.path
1154
+ // e.g. /files/images/avatar.jpg -> files/finances.xls
1155
+ n[s].route.path?.endsWith("*") && n[s].params["*"] !== l.params["*"]
1156
+ );
1157
+ return o === "assets" ? t.filter(
1163
1158
  (l, s) => c(l, s) || u(l, s)
1164
- ) : i === "data" ? t.filter((l, s) => {
1165
- var p;
1159
+ ) : o === "data" ? t.filter((l, s) => {
1166
1160
  let h = a.routes[l.route.id];
1167
1161
  if (!h || !h.hasLoader)
1168
1162
  return !1;
1169
1163
  if (c(l, s) || u(l, s))
1170
1164
  return !0;
1171
1165
  if (l.route.shouldRevalidate) {
1172
- let d = l.route.shouldRevalidate({
1166
+ let p = l.route.shouldRevalidate({
1173
1167
  currentUrl: new URL(
1174
1168
  r.pathname + r.search + r.hash,
1175
1169
  window.origin
1176
1170
  ),
1177
- currentParams: ((p = n[0]) == null ? void 0 : p.params) || {},
1171
+ currentParams: n[0]?.params || {},
1178
1172
  nextUrl: new URL(e, window.origin),
1179
1173
  nextParams: l.params,
1180
1174
  defaultShouldRevalidate: !0
1181
1175
  });
1182
- if (typeof d == "boolean")
1183
- return d;
1176
+ if (typeof p == "boolean")
1177
+ return p;
1184
1178
  }
1185
1179
  return !0;
1186
1180
  }) : [];
@@ -1190,8 +1184,8 @@ function $t(e, t, { includeHydrateFallback: n } = {}) {
1190
1184
  e.map((a) => {
1191
1185
  let r = t.routes[a.route.id];
1192
1186
  if (!r) return [];
1193
- let i = [r.module];
1194
- return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
1187
+ let o = [r.module];
1188
+ return r.clientActionModule && (o = o.concat(r.clientActionModule)), r.clientLoaderModule && (o = o.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (o = o.concat(r.hydrateFallbackModule)), r.imports && (o = o.concat(r.imports)), o;
1195
1189
  }).flat(1)
1196
1190
  );
1197
1191
  }
@@ -1207,11 +1201,12 @@ function Nt(e) {
1207
1201
  function At(e, t) {
1208
1202
  let n = /* @__PURE__ */ new Set();
1209
1203
  return new Set(t), e.reduce((a, r) => {
1210
- let i = JSON.stringify(Nt(r));
1211
- return n.has(i) || (n.add(i), a.push({ key: i, link: r })), a;
1204
+ let o = JSON.stringify(Nt(r));
1205
+ return n.has(o) || (n.add(o), a.push({ key: o, link: r })), a;
1212
1206
  }, []);
1213
1207
  }
1214
- function Mt(e, t) {
1208
+ var Mt = /* @__PURE__ */ new Set([100, 101, 204, 205]);
1209
+ function Dt(e, t) {
1215
1210
  let n = typeof e == "string" ? new URL(
1216
1211
  e,
1217
1212
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -1221,31 +1216,31 @@ function Mt(e, t) {
1221
1216
  return n.pathname === "/" ? n.pathname = "_root.data" : t && M(n.pathname, t) === "/" ? n.pathname = `${t.replace(/\/$/, "")}/_root.data` : n.pathname = `${n.pathname.replace(/\/$/, "")}.data`, n;
1222
1217
  }
1223
1218
  function Le() {
1224
- let e = o.useContext(I);
1225
- return oe(
1219
+ let e = i.useContext(O);
1220
+ return ie(
1226
1221
  e,
1227
1222
  "You must render this element inside a <DataRouterContext.Provider> element"
1228
1223
  ), e;
1229
1224
  }
1230
- function Dt() {
1231
- let e = o.useContext(F);
1232
- return oe(
1225
+ function Ot() {
1226
+ let e = i.useContext(_);
1227
+ return ie(
1233
1228
  e,
1234
1229
  "You must render this element inside a <DataRouterStateContext.Provider> element"
1235
1230
  ), e;
1236
1231
  }
1237
- var le = o.createContext(void 0);
1232
+ var le = i.createContext(void 0);
1238
1233
  le.displayName = "FrameworkContext";
1239
1234
  function ke() {
1240
- let e = o.useContext(le);
1241
- return oe(
1235
+ let e = i.useContext(le);
1236
+ return ie(
1242
1237
  e,
1243
1238
  "You must render this element inside a <HydratedRouter> element"
1244
1239
  ), e;
1245
1240
  }
1246
1241
  function It(e, t) {
1247
- let n = o.useContext(le), [a, r] = o.useState(!1), [i, c] = o.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: s, onMouseLeave: h, onTouchStart: p } = t, d = o.useRef(null);
1248
- o.useEffect(() => {
1242
+ let n = i.useContext(le), [a, r] = i.useState(!1), [o, c] = i.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: s, onMouseLeave: h, onTouchStart: p } = t, d = i.useRef(null);
1243
+ i.useEffect(() => {
1249
1244
  if (e === "render" && c(!0), e === "viewport") {
1250
1245
  let w = (m) => {
1251
1246
  m.forEach((g) => {
@@ -1256,7 +1251,7 @@ function It(e, t) {
1256
1251
  E.disconnect();
1257
1252
  };
1258
1253
  }
1259
- }, [e]), o.useEffect(() => {
1254
+ }, [e]), i.useEffect(() => {
1260
1255
  if (a) {
1261
1256
  let w = setTimeout(() => {
1262
1257
  c(!0);
@@ -1271,8 +1266,8 @@ function It(e, t) {
1271
1266
  }, f = () => {
1272
1267
  r(!1), c(!1);
1273
1268
  };
1274
- return n ? e !== "intent" ? [i, d, {}] : [
1275
- i,
1269
+ return n ? e !== "intent" ? [o, d, {}] : [
1270
+ o,
1276
1271
  d,
1277
1272
  {
1278
1273
  onFocus: U(u, v),
@@ -1288,35 +1283,35 @@ function U(e, t) {
1288
1283
  e && e(n), n.defaultPrevented || t(n);
1289
1284
  };
1290
1285
  }
1291
- function Ot({
1286
+ function _t({
1292
1287
  page: e,
1293
1288
  ...t
1294
1289
  }) {
1295
- let { router: n } = Le(), a = o.useMemo(
1290
+ let { router: n } = Le(), a = i.useMemo(
1296
1291
  () => pe(n.routes, e, n.basename),
1297
1292
  [n.routes, e, n.basename]
1298
1293
  );
1299
- return a ? /* @__PURE__ */ o.createElement(_t, { page: e, matches: a, ...t }) : null;
1294
+ return a ? /* @__PURE__ */ i.createElement(Ut, { page: e, matches: a, ...t }) : null;
1300
1295
  }
1301
1296
  function Ft(e) {
1302
- let { manifest: t, routeModules: n } = ke(), [a, r] = o.useState([]);
1303
- return o.useEffect(() => {
1304
- let i = !1;
1297
+ let { manifest: t, routeModules: n } = ke(), [a, r] = i.useState([]);
1298
+ return i.useEffect(() => {
1299
+ let o = !1;
1305
1300
  return kt(e, t, n).then(
1306
1301
  (c) => {
1307
- i || r(c);
1302
+ o || r(c);
1308
1303
  }
1309
1304
  ), () => {
1310
- i = !0;
1305
+ o = !0;
1311
1306
  };
1312
1307
  }, [e, t, n]), a;
1313
1308
  }
1314
- function _t({
1309
+ function Ut({
1315
1310
  page: e,
1316
1311
  matches: t,
1317
1312
  ...n
1318
1313
  }) {
1319
- let a = N(), { manifest: r, routeModules: i } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Dt(), s = o.useMemo(
1314
+ let a = N(), { manifest: r, routeModules: o } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Ot(), s = i.useMemo(
1320
1315
  () => me(
1321
1316
  e,
1322
1317
  t,
@@ -1326,7 +1321,7 @@ function _t({
1326
1321
  "data"
1327
1322
  ),
1328
1323
  [e, t, l, r, a]
1329
- ), h = o.useMemo(
1324
+ ), h = i.useMemo(
1330
1325
  () => me(
1331
1326
  e,
1332
1327
  t,
@@ -1336,17 +1331,16 @@ function _t({
1336
1331
  "assets"
1337
1332
  ),
1338
1333
  [e, t, l, r, a]
1339
- ), p = o.useMemo(() => {
1334
+ ), p = i.useMemo(() => {
1340
1335
  if (e === a.pathname + a.search + a.hash)
1341
1336
  return [];
1342
1337
  let f = /* @__PURE__ */ new Set(), w = !1;
1343
1338
  if (t.forEach((m) => {
1344
- var y;
1345
1339
  let g = r.routes[m.route.id];
1346
- !g || !g.hasLoader || (!s.some((R) => R.route.id === m.route.id) && m.route.id in u && ((y = i[m.route.id]) != null && y.shouldRevalidate) || g.hasClientLoader ? w = !0 : f.add(m.route.id));
1340
+ !g || !g.hasLoader || (!s.some((y) => y.route.id === m.route.id) && m.route.id in u && o[m.route.id]?.shouldRevalidate || g.hasClientLoader ? w = !0 : f.add(m.route.id));
1347
1341
  }), f.size === 0)
1348
1342
  return [];
1349
- let E = Mt(e, c);
1343
+ let E = Dt(e, c);
1350
1344
  return w && f.size > 0 && E.searchParams.set(
1351
1345
  "_routes",
1352
1346
  t.filter((m) => f.has(m.route.id)).map((m) => m.route.id).join(",")
@@ -1359,18 +1353,18 @@ function _t({
1359
1353
  s,
1360
1354
  t,
1361
1355
  e,
1362
- i
1363
- ]), d = o.useMemo(
1356
+ o
1357
+ ]), d = i.useMemo(
1364
1358
  () => $t(h, r),
1365
1359
  [h, r]
1366
1360
  ), v = Ft(h);
1367
- return /* @__PURE__ */ o.createElement(o.Fragment, null, p.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), v.map(({ key: f, link: w }) => (
1361
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, p.map((f) => /* @__PURE__ */ i.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ i.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), v.map(({ key: f, link: w }) => (
1368
1362
  // these don't spread `linkProps` because they are full link descriptors
1369
1363
  // already with their own props
1370
- /* @__PURE__ */ o.createElement("link", { key: f, ...w })
1364
+ /* @__PURE__ */ i.createElement("link", { key: f, ...w })
1371
1365
  )));
1372
1366
  }
1373
- function Ut(...e) {
1367
+ function Bt(...e) {
1374
1368
  return (t) => {
1375
1369
  e.forEach((n) => {
1376
1370
  typeof n == "function" ? n(t) : n != null && (n.current = t);
@@ -1379,16 +1373,16 @@ function Ut(...e) {
1379
1373
  }
1380
1374
  var $e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1381
1375
  try {
1382
- $e && (window.__reactRouterVersion = "7.5.0");
1376
+ $e && (window.__reactRouterVersion = "7.5.2");
1383
1377
  } catch {
1384
1378
  }
1385
- var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1379
+ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = i.forwardRef(
1386
1380
  function({
1387
1381
  onClick: t,
1388
1382
  discover: n = "render",
1389
1383
  prefetch: a = "none",
1390
1384
  relative: r,
1391
- reloadDocument: i,
1385
+ reloadDocument: o,
1392
1386
  replace: c,
1393
1387
  state: u,
1394
1388
  target: l,
@@ -1397,21 +1391,21 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1397
1391
  viewTransition: p,
1398
1392
  ...d
1399
1393
  }, v) {
1400
- let { basename: f } = o.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
1394
+ let { basename: f } = i.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
1401
1395
  if (typeof s == "string" && w && (E = s, $e))
1402
1396
  try {
1403
- let S = new URL(window.location.href), D = s.startsWith("//") ? new URL(S.protocol + s) : new URL(s), se = M(D.pathname, f);
1404
- D.origin === S.origin && se != null ? s = se + D.search + D.hash : m = !0;
1397
+ let P = new URL(window.location.href), D = s.startsWith("//") ? new URL(P.protocol + s) : new URL(s), se = M(D.pathname, f);
1398
+ D.origin === P.origin && se != null ? s = se + D.search + D.hash : m = !0;
1405
1399
  } catch {
1406
1400
  L(
1407
1401
  !1,
1408
1402
  `<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1409
1403
  );
1410
1404
  }
1411
- let g = et(s, { relative: r }), [y, R, x] = It(
1405
+ let g = et(s, { relative: r }), [y, b, x] = It(
1412
1406
  a,
1413
1407
  d
1414
- ), C = zt(s, {
1408
+ ), C = Vt(s, {
1415
1409
  replace: c,
1416
1410
  state: u,
1417
1411
  target: l,
@@ -1419,63 +1413,63 @@ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1419
1413
  relative: r,
1420
1414
  viewTransition: p
1421
1415
  });
1422
- function $(S) {
1423
- t && t(S), S.defaultPrevented || C(S);
1416
+ function $(P) {
1417
+ t && t(P), P.defaultPrevented || C(P);
1424
1418
  }
1425
- let P = (
1419
+ let S = (
1426
1420
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1427
- /* @__PURE__ */ o.createElement(
1421
+ /* @__PURE__ */ i.createElement(
1428
1422
  "a",
1429
1423
  {
1430
1424
  ...d,
1431
1425
  ...x,
1432
1426
  href: E || g,
1433
- onClick: m || i ? t : $,
1434
- ref: Ut(v, R),
1427
+ onClick: m || o ? t : $,
1428
+ ref: Bt(v, b),
1435
1429
  target: l,
1436
1430
  "data-discover": !w && n === "render" ? "true" : void 0
1437
1431
  }
1438
1432
  )
1439
1433
  );
1440
- return y && !w ? /* @__PURE__ */ o.createElement(o.Fragment, null, P, /* @__PURE__ */ o.createElement(Ot, { page: g })) : P;
1434
+ return y && !w ? /* @__PURE__ */ i.createElement(i.Fragment, null, S, /* @__PURE__ */ i.createElement(_t, { page: g })) : S;
1441
1435
  }
1442
1436
  );
1443
1437
  Ne.displayName = "Link";
1444
- var Bt = o.forwardRef(
1438
+ var Ht = i.forwardRef(
1445
1439
  function({
1446
1440
  "aria-current": t = "page",
1447
1441
  caseSensitive: n = !1,
1448
1442
  className: a = "",
1449
1443
  end: r = !1,
1450
- style: i,
1444
+ style: o,
1451
1445
  to: c,
1452
1446
  viewTransition: u,
1453
1447
  children: l,
1454
1448
  ...s
1455
1449
  }, h) {
1456
- let p = W(c, { relative: s.relative }), d = N(), v = o.useContext(F), { navigator: f, basename: w } = o.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
1450
+ let p = W(c, { relative: s.relative }), d = N(), v = i.useContext(_), { navigator: f, basename: w } = i.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
1457
1451
  // eslint-disable-next-line react-hooks/rules-of-hooks
1458
- Kt(p) && u === !0, m = f.encodeLocation ? f.encodeLocation(p).pathname : p.pathname, g = d.pathname, y = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
1452
+ qt(p) && u === !0, m = f.encodeLocation ? f.encodeLocation(p).pathname : p.pathname, g = d.pathname, y = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
1459
1453
  n || (g = g.toLowerCase(), y = y ? y.toLowerCase() : null, m = m.toLowerCase()), y && w && (y = M(y, w) || y);
1460
- const R = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
1461
- let x = g === m || !r && g.startsWith(m) && g.charAt(R) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
1454
+ const b = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
1455
+ let x = g === m || !r && g.startsWith(m) && g.charAt(b) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
1462
1456
  isActive: x,
1463
1457
  isPending: C,
1464
1458
  isTransitioning: E
1465
- }, P = x ? t : void 0, S;
1466
- typeof a == "function" ? S = a($) : S = [
1459
+ }, S = x ? t : void 0, P;
1460
+ typeof a == "function" ? P = a($) : P = [
1467
1461
  a,
1468
1462
  x ? "active" : null,
1469
1463
  C ? "pending" : null,
1470
1464
  E ? "transitioning" : null
1471
1465
  ].filter(Boolean).join(" ");
1472
- let D = typeof i == "function" ? i($) : i;
1473
- return /* @__PURE__ */ o.createElement(
1466
+ let D = typeof o == "function" ? o($) : o;
1467
+ return /* @__PURE__ */ i.createElement(
1474
1468
  Ne,
1475
1469
  {
1476
1470
  ...s,
1477
- "aria-current": P,
1478
- className: S,
1471
+ "aria-current": S,
1472
+ className: P,
1479
1473
  ref: h,
1480
1474
  style: D,
1481
1475
  to: c,
@@ -1485,15 +1479,15 @@ var Bt = o.forwardRef(
1485
1479
  );
1486
1480
  }
1487
1481
  );
1488
- Bt.displayName = "NavLink";
1489
- var Ht = o.forwardRef(
1482
+ Ht.displayName = "NavLink";
1483
+ var Wt = i.forwardRef(
1490
1484
  ({
1491
1485
  discover: e = "render",
1492
1486
  fetcherKey: t,
1493
1487
  navigate: n,
1494
1488
  reloadDocument: a,
1495
1489
  replace: r,
1496
- state: i,
1490
+ state: o,
1497
1491
  method: c = V,
1498
1492
  action: u,
1499
1493
  onSubmit: l,
@@ -1502,22 +1496,22 @@ var Ht = o.forwardRef(
1502
1496
  viewTransition: p,
1503
1497
  ...d
1504
1498
  }, v) => {
1505
- let f = Yt(), w = Jt(u, { relative: s }), E = c.toLowerCase() === "get" ? "get" : "post", m = typeof u == "string" && Te.test(u), g = (y) => {
1499
+ let f = Jt(), w = Kt(u, { relative: s }), E = c.toLowerCase() === "get" ? "get" : "post", m = typeof u == "string" && Te.test(u), g = (y) => {
1506
1500
  if (l && l(y), y.defaultPrevented) return;
1507
1501
  y.preventDefault();
1508
- let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || c;
1509
- f(R || y.currentTarget, {
1502
+ let b = y.nativeEvent.submitter, x = b?.getAttribute("formmethod") || c;
1503
+ f(b || y.currentTarget, {
1510
1504
  fetcherKey: t,
1511
1505
  method: x,
1512
1506
  navigate: n,
1513
1507
  replace: r,
1514
- state: i,
1508
+ state: o,
1515
1509
  relative: s,
1516
1510
  preventScrollReset: h,
1517
1511
  viewTransition: p
1518
1512
  });
1519
1513
  };
1520
- return /* @__PURE__ */ o.createElement(
1514
+ return /* @__PURE__ */ i.createElement(
1521
1515
  "form",
1522
1516
  {
1523
1517
  ref: v,
@@ -1530,24 +1524,24 @@ var Ht = o.forwardRef(
1530
1524
  );
1531
1525
  }
1532
1526
  );
1533
- Ht.displayName = "Form";
1534
- function Wt(e) {
1527
+ Wt.displayName = "Form";
1528
+ function zt(e) {
1535
1529
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1536
1530
  }
1537
1531
  function Ae(e) {
1538
- let t = o.useContext(I);
1539
- return b(t, Wt(e)), t;
1532
+ let t = i.useContext(O);
1533
+ return R(t, zt(e)), t;
1540
1534
  }
1541
- function zt(e, {
1535
+ function Vt(e, {
1542
1536
  target: t,
1543
1537
  replace: n,
1544
1538
  state: a,
1545
1539
  preventScrollReset: r,
1546
- relative: i,
1540
+ relative: o,
1547
1541
  viewTransition: c
1548
1542
  } = {}) {
1549
- let u = re(), l = N(), s = W(e, { relative: i });
1550
- return o.useCallback(
1543
+ let u = re(), l = N(), s = W(e, { relative: o });
1544
+ return i.useCallback(
1551
1545
  (h) => {
1552
1546
  if (xt(h, t)) {
1553
1547
  h.preventDefault();
@@ -1556,7 +1550,7 @@ function zt(e, {
1556
1550
  replace: p,
1557
1551
  state: a,
1558
1552
  preventScrollReset: r,
1559
- relative: i,
1553
+ relative: o,
1560
1554
  viewTransition: c
1561
1555
  });
1562
1556
  }
@@ -1570,17 +1564,17 @@ function zt(e, {
1570
1564
  t,
1571
1565
  e,
1572
1566
  r,
1573
- i,
1567
+ o,
1574
1568
  c
1575
1569
  ]
1576
1570
  );
1577
1571
  }
1578
- function dn(e) {
1572
+ function hn(e) {
1579
1573
  L(
1580
1574
  typeof URLSearchParams < "u",
1581
1575
  "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."
1582
1576
  );
1583
- let t = o.useRef(Q(e)), n = o.useRef(!1), a = N(), r = o.useMemo(
1577
+ let t = i.useRef(Q(e)), n = i.useRef(!1), a = N(), r = i.useMemo(
1584
1578
  () => (
1585
1579
  // Only merge in the defaults if we haven't yet called setSearchParams.
1586
1580
  // Once we call that we want those to take precedence, otherwise you can't
@@ -1591,32 +1585,32 @@ function dn(e) {
1591
1585
  )
1592
1586
  ),
1593
1587
  [a.search]
1594
- ), i = re(), c = o.useCallback(
1588
+ ), o = re(), c = i.useCallback(
1595
1589
  (u, l) => {
1596
1590
  const s = Q(
1597
1591
  typeof u == "function" ? u(r) : u
1598
1592
  );
1599
- n.current = !0, i("?" + s, l);
1593
+ n.current = !0, o("?" + s, l);
1600
1594
  },
1601
- [i, r]
1595
+ [o, r]
1602
1596
  );
1603
1597
  return [r, c];
1604
1598
  }
1605
- var Vt = 0, jt = () => `__${String(++Vt)}__`;
1606
- function Yt() {
1599
+ var jt = 0, Yt = () => `__${String(++jt)}__`;
1600
+ function Jt() {
1607
1601
  let { router: e } = Ae(
1608
1602
  "useSubmit"
1609
1603
  /* UseSubmit */
1610
- ), { basename: t } = o.useContext(T), n = ft();
1611
- return o.useCallback(
1604
+ ), { basename: t } = i.useContext(T), n = ft();
1605
+ return i.useCallback(
1612
1606
  async (a, r = {}) => {
1613
- let { action: i, method: c, encType: u, formData: l, body: s } = Pt(
1607
+ let { action: o, method: c, encType: u, formData: l, body: s } = St(
1614
1608
  a,
1615
1609
  t
1616
1610
  );
1617
1611
  if (r.navigate === !1) {
1618
- let h = r.fetcherKey || jt();
1619
- await e.fetch(h, n, r.action || i, {
1612
+ let h = r.fetcherKey || Yt();
1613
+ await e.fetch(h, n, r.action || o, {
1620
1614
  preventScrollReset: r.preventScrollReset,
1621
1615
  formData: l,
1622
1616
  body: s,
@@ -1625,7 +1619,7 @@ function Yt() {
1625
1619
  flushSync: r.flushSync
1626
1620
  });
1627
1621
  } else
1628
- await e.navigate(r.action || i, {
1622
+ await e.navigate(r.action || o, {
1629
1623
  preventScrollReset: r.preventScrollReset,
1630
1624
  formData: l,
1631
1625
  body: s,
@@ -1641,24 +1635,24 @@ function Yt() {
1641
1635
  [e, t, n]
1642
1636
  );
1643
1637
  }
1644
- function Jt(e, { relative: t } = {}) {
1645
- let { basename: n } = o.useContext(T), a = o.useContext(k);
1646
- b(a, "useFormAction must be used inside a RouteContext");
1647
- let [r] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, c = N();
1638
+ function Kt(e, { relative: t } = {}) {
1639
+ let { basename: n } = i.useContext(T), a = i.useContext(k);
1640
+ R(a, "useFormAction must be used inside a RouteContext");
1641
+ let [r] = a.matches.slice(-1), o = { ...W(e || ".", { relative: t }) }, c = N();
1648
1642
  if (e == null) {
1649
- i.search = c.search;
1650
- let u = new URLSearchParams(i.search), l = u.getAll("index");
1643
+ o.search = c.search;
1644
+ let u = new URLSearchParams(o.search), l = u.getAll("index");
1651
1645
  if (l.some((h) => h === "")) {
1652
1646
  u.delete("index"), l.filter((p) => p).forEach((p) => u.append("index", p));
1653
1647
  let h = u.toString();
1654
- i.search = h ? `?${h}` : "";
1648
+ o.search = h ? `?${h}` : "";
1655
1649
  }
1656
1650
  }
1657
- 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);
1651
+ return (!e || e === ".") && r.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (o.pathname = o.pathname === "/" ? n : A([n, o.pathname])), B(o);
1658
1652
  }
1659
- function Kt(e, t = {}) {
1660
- let n = o.useContext(J);
1661
- b(
1653
+ function qt(e, t = {}) {
1654
+ let n = i.useContext(J);
1655
+ R(
1662
1656
  n != null,
1663
1657
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1664
1658
  );
@@ -1668,37 +1662,37 @@ function Kt(e, t = {}) {
1668
1662
  ), r = W(e, { relative: t.relative });
1669
1663
  if (!n.isTransitioning)
1670
1664
  return !1;
1671
- let i = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1672
- return H(r.pathname, c) != null || H(r.pathname, i) != null;
1665
+ let o = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1666
+ return H(r.pathname, c) != null || H(r.pathname, o) != null;
1673
1667
  }
1674
- function hn({
1668
+ function mn({
1675
1669
  context: e,
1676
1670
  router: t,
1677
1671
  hydrate: n = !0,
1678
1672
  nonce: a
1679
1673
  }) {
1680
- b(
1674
+ R(
1681
1675
  t && e,
1682
1676
  "You must provide `router` and `context` to <StaticRouterProvider>"
1683
1677
  );
1684
1678
  let r = {
1685
1679
  router: t,
1686
- navigator: Xt(),
1680
+ navigator: Qt(),
1687
1681
  static: !0,
1688
1682
  staticContext: e,
1689
1683
  basename: e.basename || "/"
1690
- }, i = /* @__PURE__ */ new Map(), c = "";
1684
+ }, o = /* @__PURE__ */ new Map(), c = "";
1691
1685
  if (n !== !1) {
1692
1686
  let l = {
1693
1687
  loaderData: e.loaderData,
1694
1688
  actionData: e.actionData,
1695
- errors: Gt(e.errors)
1689
+ errors: Xt(e.errors)
1696
1690
  };
1697
- c = `window.__staticRouterHydrationData = JSON.parse(${rn(JSON.stringify(JSON.stringify(l)))});`;
1691
+ c = `window.__staticRouterHydrationData = JSON.parse(${an(JSON.stringify(JSON.stringify(l)))});`;
1698
1692
  }
1699
1693
  let { state: u } = r.router;
1700
- return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(I.Provider, { value: r }, /* @__PURE__ */ o.createElement(F.Provider, { value: u }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
1701
- Se,
1694
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(O.Provider, { value: r }, /* @__PURE__ */ i.createElement(_.Provider, { value: u }, /* @__PURE__ */ i.createElement(te.Provider, { value: o }, /* @__PURE__ */ i.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ i.createElement(
1695
+ Pe,
1702
1696
  {
1703
1697
  basename: r.basename,
1704
1698
  location: u.location,
@@ -1706,15 +1700,15 @@ function hn({
1706
1700
  navigator: r.navigator,
1707
1701
  static: r.static
1708
1702
  },
1709
- /* @__PURE__ */ o.createElement(
1710
- qt,
1703
+ /* @__PURE__ */ i.createElement(
1704
+ Gt,
1711
1705
  {
1712
1706
  routes: t.routes,
1713
1707
  future: t.future,
1714
1708
  state: u
1715
1709
  }
1716
1710
  )
1717
- ))))), c ? /* @__PURE__ */ o.createElement(
1711
+ ))))), c ? /* @__PURE__ */ i.createElement(
1718
1712
  "script",
1719
1713
  {
1720
1714
  suppressHydrationWarning: !0,
@@ -1723,14 +1717,14 @@ function hn({
1723
1717
  }
1724
1718
  ) : null);
1725
1719
  }
1726
- function qt({
1720
+ function Gt({
1727
1721
  routes: e,
1728
1722
  future: t,
1729
1723
  state: n
1730
1724
  }) {
1731
1725
  return be(e, void 0, n, t);
1732
1726
  }
1733
- function Gt(e) {
1727
+ function Xt(e) {
1734
1728
  if (!e) return null;
1735
1729
  let t = Object.entries(e), n = {};
1736
1730
  for (let [a, r] of t)
@@ -1745,10 +1739,10 @@ function Gt(e) {
1745
1739
  } : n[a] = r;
1746
1740
  return n;
1747
1741
  }
1748
- function Xt() {
1742
+ function Qt() {
1749
1743
  return {
1750
- createHref: Qt,
1751
- encodeLocation: Zt,
1744
+ createHref: Zt,
1745
+ encodeLocation: en,
1752
1746
  push(e) {
1753
1747
  throw new Error(
1754
1748
  `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.`
@@ -1776,47 +1770,50 @@ function Xt() {
1776
1770
  }
1777
1771
  };
1778
1772
  }
1779
- function Qt(e) {
1773
+ function Zt(e) {
1780
1774
  return typeof e == "string" ? e : B(e);
1781
1775
  }
1782
- function Zt(e) {
1776
+ function en(e) {
1783
1777
  let t = typeof e == "string" ? e : B(e);
1784
1778
  t = t.replace(/ $/, "%20");
1785
- let n = en.test(t) ? new URL(t) : new URL(t, "http://localhost");
1779
+ let n = tn.test(t) ? new URL(t) : new URL(t, "http://localhost");
1786
1780
  return {
1787
1781
  pathname: n.pathname,
1788
1782
  search: n.search,
1789
1783
  hash: n.hash
1790
1784
  };
1791
1785
  }
1792
- var en = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, tn = {
1786
+ var tn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, nn = {
1793
1787
  "&": "\\u0026",
1794
1788
  ">": "\\u003e",
1795
1789
  "<": "\\u003c",
1796
1790
  "\u2028": "\\u2028",
1797
1791
  "\u2029": "\\u2029"
1798
- }, nn = /[&><\u2028\u2029]/g;
1799
- function rn(e) {
1800
- return e.replace(nn, (t) => tn[t]);
1792
+ }, rn = /[&><\u2028\u2029]/g;
1793
+ function an(e) {
1794
+ return e.replace(rn, (t) => nn[t]);
1801
1795
  }
1802
1796
  new TextEncoder();
1797
+ [
1798
+ ...Mt
1799
+ ];
1803
1800
  export {
1804
1801
  Ne as L,
1805
- cn as N,
1806
- fn as O,
1807
- un as R,
1808
- hn as S,
1802
+ fn as N,
1803
+ dn as O,
1804
+ cn as R,
1805
+ mn as S,
1809
1806
  re as a,
1810
- dn as b,
1811
- ln as c,
1812
- on as d,
1807
+ hn as b,
1808
+ sn as c,
1809
+ ln as d,
1813
1810
  dt as e,
1814
- sn as f,
1815
- Bt as g,
1811
+ un as f,
1812
+ Ht as g,
1816
1813
  et as h,
1817
1814
  we as i,
1818
1815
  H as m,
1819
- an as r,
1816
+ on as r,
1820
1817
  N as u
1821
1818
  };
1822
- //# sourceMappingURL=chunk-KNED5TY2-BUPjb3LQ.js.map
1819
+ //# sourceMappingURL=chunk-BAXFHI7N-CFrZQ7Oh.js.map