zudoku 0.21.15 → 0.23.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 (357) hide show
  1. package/dist/app/demo.js +1 -1
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +1 -15
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +1 -2
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/sentry.js +1 -1
  9. package/dist/app/sentry.js.map +1 -1
  10. package/dist/app/standalone.js +1 -1
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cmds/build.js +1 -0
  13. package/dist/cli/cmds/build.js.map +1 -1
  14. package/dist/config/validators/common.d.ts +104 -104
  15. package/dist/config/validators/icon-types.d.ts +1 -1
  16. package/dist/config/validators/validate.d.ts +90 -90
  17. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  18. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  19. package/dist/lib/authentication/components/SignIn.js +1 -1
  20. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  21. package/dist/lib/authentication/components/SignOut.js +1 -1
  22. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  23. package/dist/lib/components/AnchorLink.d.ts +1 -1
  24. package/dist/lib/components/AnchorLink.js +1 -1
  25. package/dist/lib/components/AnchorLink.js.map +1 -1
  26. package/dist/lib/components/Bootstrap.d.ts +1 -2
  27. package/dist/lib/components/Bootstrap.js +3 -3
  28. package/dist/lib/components/Bootstrap.js.map +1 -1
  29. package/dist/lib/components/Header.js +1 -1
  30. package/dist/lib/components/Header.js.map +1 -1
  31. package/dist/lib/components/Layout.js +1 -1
  32. package/dist/lib/components/Layout.js.map +1 -1
  33. package/dist/lib/components/Markdown.js +1 -1
  34. package/dist/lib/components/Markdown.js.map +1 -1
  35. package/dist/lib/components/NotFoundPage.js +1 -1
  36. package/dist/lib/components/NotFoundPage.js.map +1 -1
  37. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  38. package/dist/lib/components/ReactMarkdown.js +182 -0
  39. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  40. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  41. package/dist/lib/components/TopNavigation.js +1 -1
  42. package/dist/lib/components/TopNavigation.js.map +1 -1
  43. package/dist/lib/components/Zudoku.js +1 -1
  44. package/dist/lib/components/Zudoku.js.map +1 -1
  45. package/dist/lib/components/context/ZudokuContext.js +1 -1
  46. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  47. package/dist/lib/components/index.d.ts +4 -4
  48. package/dist/lib/components/index.js +1 -1
  49. package/dist/lib/components/index.js.map +1 -1
  50. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  51. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  52. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  53. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  54. package/dist/lib/components/navigation/utils.js +1 -1
  55. package/dist/lib/components/navigation/utils.js.map +1 -1
  56. package/dist/lib/core/plugins.d.ts +3 -5
  57. package/dist/lib/core/plugins.js.map +1 -1
  58. package/dist/lib/errors/RouterError.js +1 -1
  59. package/dist/lib/errors/RouterError.js.map +1 -1
  60. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  61. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  62. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  63. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  64. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  65. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  66. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  67. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  68. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  69. package/dist/lib/plugins/markdown/index.js.map +1 -1
  70. package/dist/lib/plugins/openapi/Route.js +1 -1
  71. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  72. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  73. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  74. package/dist/lib/plugins/openapi/index.js +1 -1
  75. package/dist/lib/plugins/openapi/index.js.map +1 -1
  76. package/dist/lib/plugins/redirect/index.js +1 -1
  77. package/dist/lib/plugins/redirect/index.js.map +1 -1
  78. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  79. package/dist/lib/plugins/search-inkeep/index.js +27 -5
  80. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  81. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  82. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  83. package/dist/lib/util/MdxComponents.d.ts +16 -16
  84. package/dist/lib/util/MdxComponents.js +1 -3
  85. package/dist/lib/util/MdxComponents.js.map +1 -1
  86. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  87. package/dist/lib/util/useExposedProps.js +1 -1
  88. package/dist/lib/util/useExposedProps.js.map +1 -1
  89. package/dist/lib/util/useOnScreen.d.ts +1 -1
  90. package/dist/lib/util/useScrollToAnchor.js +1 -1
  91. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  92. package/dist/lib/util/useScrollToTop.js +1 -1
  93. package/dist/lib/util/useScrollToTop.js.map +1 -1
  94. package/dist/vite/config.js +15 -8
  95. package/dist/vite/config.js.map +1 -1
  96. package/dist/vite/css/collect.d.ts +2 -0
  97. package/dist/vite/css/collect.js +27 -0
  98. package/dist/vite/css/collect.js.map +1 -0
  99. package/dist/vite/css/plugin.d.ts +5 -0
  100. package/dist/vite/css/plugin.js +79 -0
  101. package/dist/vite/css/plugin.js.map +1 -0
  102. package/dist/vite/dev-server.js +7 -3
  103. package/dist/vite/dev-server.js.map +1 -1
  104. package/dist/vite/plugin-mdx.js +2 -0
  105. package/dist/vite/plugin-mdx.js.map +1 -1
  106. package/dist/vite/plugin.js +4 -0
  107. package/dist/vite/plugin.js.map +1 -1
  108. package/lib/{AnchorLink-BR0MvI7n.js → AnchorLink-DFZZbmvr.js} +13 -14
  109. package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
  110. package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-DQy635W9.js} +15 -16
  111. package/lib/AuthenticationPlugin-DQy635W9.js.map +1 -0
  112. package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
  113. package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
  114. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
  115. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
  116. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  117. package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
  118. package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
  119. package/lib/{Markdown-CdkU5HcM.js → Markdown-CZDLNOFc.js} +13235 -13225
  120. package/lib/Markdown-CZDLNOFc.js.map +1 -0
  121. package/lib/{MdxPage-ChziqNPp.js → MdxPage-CBa4X6L5.js} +9 -9
  122. package/lib/MdxPage-CBa4X6L5.js.map +1 -0
  123. package/lib/OperationList-Bj-6EKhp.js +4889 -0
  124. package/lib/{OperationList-CQKkyrZH.js.map → OperationList-Bj-6EKhp.js.map} +1 -1
  125. package/lib/Route-C9cYcP-j.js +11 -0
  126. package/lib/Route-C9cYcP-j.js.map +1 -0
  127. package/lib/{Select-O9ZM3ZgX.js → Select-Bb_Hqc70.js} +5 -5
  128. package/lib/{Select-O9ZM3ZgX.js.map → Select-Bb_Hqc70.js.map} +1 -1
  129. package/lib/{SidebarBadge-DxFJcJ6V.js → SidebarBadge-Bm793GDY.js} +3 -3
  130. package/lib/{SidebarBadge-DxFJcJ6V.js.map → SidebarBadge-Bm793GDY.js.map} +1 -1
  131. package/lib/SlotletProvider-pfc9oejW.js +221 -0
  132. package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
  133. package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
  134. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
  135. package/lib/{SyntaxHighlight-C31iouiO.js → SyntaxHighlight-Bz-lOJtH.js} +8 -10
  136. package/lib/{SyntaxHighlight-C31iouiO.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
  137. package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
  138. package/lib/assets/index-C7jnHK4b.js.map +1 -0
  139. package/lib/assets/{worker-C_2va8B8.js → worker-BmEAZjUP.js} +5249 -4922
  140. package/lib/assets/worker-BmEAZjUP.js.map +1 -0
  141. package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
  142. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
  143. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  144. package/lib/cn-qaFjX9_3.js.map +1 -0
  145. package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
  146. package/lib/{context-D1nXWxm7.js.map → context-h_UkBLvr.js.map} +1 -1
  147. package/lib/{createServer-BCAHdrpE.js → createServer-BVFp6Bl3.js} +4521 -4195
  148. package/lib/createServer-BVFp6Bl3.js.map +1 -0
  149. package/lib/{hook-hEqe7fPB.js → hook-DMHiUaIV.js} +3 -3
  150. package/lib/{hook-hEqe7fPB.js.map → hook-DMHiUaIV.js.map} +1 -1
  151. package/lib/{index-DjB6H4GT.js → index-B6rTMjdI.js} +47 -47
  152. package/lib/{index-DjB6H4GT.js.map → index-B6rTMjdI.js.map} +1 -1
  153. package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
  154. package/lib/index-CBXSgjaE.js.map +1 -0
  155. package/lib/index-CPNSgwSb.js +36 -0
  156. package/lib/index-CPNSgwSb.js.map +1 -0
  157. package/lib/index-LNp6rxyU.js.map +1 -1
  158. package/lib/index.esm-BSV1C092.js +692 -0
  159. package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-BSV1C092.js.map} +1 -1
  160. package/lib/index.esm-BnnBRKJX.js +1214 -0
  161. package/lib/index.esm-BnnBRKJX.js.map +1 -0
  162. package/lib/invariant-Caa8-XvF.js.map +1 -1
  163. package/lib/jsx-runtime-Dx-03ztt.js +446 -0
  164. package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
  165. package/lib/object_hash-BNWPnMN9.js +787 -0
  166. package/lib/object_hash-BNWPnMN9.js.map +1 -0
  167. package/lib/post-processors/removeExtensions.js.map +1 -1
  168. package/lib/post-processors/removePaths.js.map +1 -1
  169. package/lib/post-processors/traverse.js.map +1 -1
  170. package/lib/prism-csharp.min-DUwvItt4.js +63 -0
  171. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
  172. package/lib/prism-java.min-BtgBR4yd.js +35 -0
  173. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
  174. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  175. package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
  176. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
  177. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  178. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  179. package/lib/state-CFQsUZUP.js +202 -0
  180. package/lib/state-CFQsUZUP.js.map +1 -0
  181. package/lib/ui/Accordion.js +2 -2
  182. package/lib/ui/Accordion.js.map +1 -1
  183. package/lib/ui/ActionButton.js +4 -4
  184. package/lib/ui/ActionButton.js.map +1 -1
  185. package/lib/ui/Alert.js +3 -3
  186. package/lib/ui/Alert.js.map +1 -1
  187. package/lib/ui/AlertDialog.js +2 -2
  188. package/lib/ui/AlertDialog.js.map +1 -1
  189. package/lib/ui/Badge.js +3 -3
  190. package/lib/ui/Badge.js.map +1 -1
  191. package/lib/ui/Breadcrumb.js +2 -2
  192. package/lib/ui/Breadcrumb.js.map +1 -1
  193. package/lib/ui/Button.js +3 -3
  194. package/lib/ui/Button.js.map +1 -1
  195. package/lib/ui/Callout.js +2 -2
  196. package/lib/ui/Callout.js.map +1 -1
  197. package/lib/ui/Card.js +2 -2
  198. package/lib/ui/Card.js.map +1 -1
  199. package/lib/ui/Carousel.js +407 -401
  200. package/lib/ui/Carousel.js.map +1 -1
  201. package/lib/ui/Checkbox.js +2 -2
  202. package/lib/ui/Checkbox.js.map +1 -1
  203. package/lib/ui/Command.js +111 -108
  204. package/lib/ui/Command.js.map +1 -1
  205. package/lib/ui/Dialog.js +2 -2
  206. package/lib/ui/Dialog.js.map +1 -1
  207. package/lib/ui/Drawer.js +2 -2
  208. package/lib/ui/Drawer.js.map +1 -1
  209. package/lib/ui/DropdownMenu.js +2 -2
  210. package/lib/ui/DropdownMenu.js.map +1 -1
  211. package/lib/ui/Form.js +3 -3
  212. package/lib/ui/Form.js.map +1 -1
  213. package/lib/ui/HoverCard.js +2 -2
  214. package/lib/ui/Input.js +2 -2
  215. package/lib/ui/Input.js.map +1 -1
  216. package/lib/ui/Label.js +3 -3
  217. package/lib/ui/Pagination.js +2 -2
  218. package/lib/ui/Pagination.js.map +1 -1
  219. package/lib/ui/Popover.js +2 -2
  220. package/lib/ui/Popover.js.map +1 -1
  221. package/lib/ui/Progress.js +2 -2
  222. package/lib/ui/Progress.js.map +1 -1
  223. package/lib/ui/RadioGroup.js +2 -2
  224. package/lib/ui/RadioGroup.js.map +1 -1
  225. package/lib/ui/ScrollArea.js +2 -2
  226. package/lib/ui/ScrollArea.js.map +1 -1
  227. package/lib/ui/Select.js +2 -2
  228. package/lib/ui/Select.js.map +1 -1
  229. package/lib/ui/Skeleton.js +2 -2
  230. package/lib/ui/Skeleton.js.map +1 -1
  231. package/lib/ui/Slider.js +2 -2
  232. package/lib/ui/Switch.js +2 -2
  233. package/lib/ui/Switch.js.map +1 -1
  234. package/lib/ui/Tabs.js +2 -2
  235. package/lib/ui/Textarea.js +2 -2
  236. package/lib/ui/Textarea.js.map +1 -1
  237. package/lib/ui/Toggle.js +3 -3
  238. package/lib/ui/Toggle.js.map +1 -1
  239. package/lib/ui/ToggleGroup.js +2 -2
  240. package/lib/ui/ToggleGroup.js.map +1 -1
  241. package/lib/ui/Tooltip.js +2 -2
  242. package/lib/useExposedProps-DE9lR6MF.js +9 -0
  243. package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
  244. package/lib/{utils-DcpDOncX.js → utils-R0j3Raw1.js} +30 -31
  245. package/lib/{utils-DcpDOncX.js.map → utils-R0j3Raw1.js.map} +1 -1
  246. package/lib/zudoku.auth-auth0.js +1 -1
  247. package/lib/zudoku.auth-auth0.js.map +1 -1
  248. package/lib/zudoku.auth-clerk.js +2 -2
  249. package/lib/zudoku.auth-clerk.js.map +1 -1
  250. package/lib/zudoku.auth-openid.js +348 -346
  251. package/lib/zudoku.auth-openid.js.map +1 -1
  252. package/lib/zudoku.components.js +679 -939
  253. package/lib/zudoku.components.js.map +1 -1
  254. package/lib/zudoku.openapi-worker.js +1 -1
  255. package/lib/zudoku.openapi-worker.js.map +1 -1
  256. package/lib/zudoku.plugin-api-catalog.js +3 -3
  257. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  258. package/lib/zudoku.plugin-api-keys.js +15 -16
  259. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  260. package/lib/zudoku.plugin-custom-pages.js +4 -4
  261. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  262. package/lib/zudoku.plugin-markdown.js +2 -2
  263. package/lib/zudoku.plugin-markdown.js.map +1 -1
  264. package/lib/zudoku.plugin-openapi.js +5 -5
  265. package/lib/zudoku.plugin-redirect.js +1 -1
  266. package/lib/zudoku.plugin-redirect.js.map +1 -1
  267. package/lib/zudoku.plugin-search-inkeep.js +45 -24
  268. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  269. package/package.json +43 -37
  270. package/src/app/demo.tsx +1 -1
  271. package/src/app/entry.client.tsx +1 -15
  272. package/src/app/entry.server.tsx +2 -2
  273. package/src/app/main.tsx +1 -1
  274. package/src/app/sentry.ts +1 -1
  275. package/src/app/standalone.tsx +1 -1
  276. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  277. package/src/lib/authentication/components/SignIn.tsx +1 -1
  278. package/src/lib/authentication/components/SignOut.tsx +1 -1
  279. package/src/lib/components/AnchorLink.tsx +1 -1
  280. package/src/lib/components/Bootstrap.tsx +4 -6
  281. package/src/lib/components/Header.tsx +1 -1
  282. package/src/lib/components/Layout.tsx +1 -1
  283. package/src/lib/components/Markdown.tsx +1 -1
  284. package/src/lib/components/NotFoundPage.tsx +1 -1
  285. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  286. package/src/lib/components/ReactMarkdown.tsx +264 -0
  287. package/src/lib/components/SlotletProvider.tsx +1 -1
  288. package/src/lib/components/TopNavigation.tsx +1 -1
  289. package/src/lib/components/Zudoku.tsx +1 -1
  290. package/src/lib/components/context/ZudokuContext.ts +1 -1
  291. package/src/lib/components/index.ts +1 -1
  292. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  293. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  294. package/src/lib/components/navigation/utils.ts +1 -1
  295. package/src/lib/core/plugins.ts +3 -7
  296. package/src/lib/errors/RouterError.tsx +1 -1
  297. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  298. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  299. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  300. package/src/lib/plugins/api-keys/index.tsx +1 -1
  301. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  302. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  303. package/src/lib/plugins/markdown/index.tsx +2 -1
  304. package/src/lib/plugins/openapi/Route.tsx +1 -1
  305. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  306. package/src/lib/plugins/openapi/index.tsx +1 -1
  307. package/src/lib/plugins/redirect/index.tsx +1 -1
  308. package/src/lib/plugins/search-inkeep/index.tsx +59 -23
  309. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  310. package/src/lib/util/MdxComponents.tsx +1 -3
  311. package/src/lib/util/createVariantComponent.tsx +2 -2
  312. package/src/lib/util/useExposedProps.tsx +1 -1
  313. package/src/lib/util/useScrollToAnchor.ts +1 -1
  314. package/src/lib/util/useScrollToTop.ts +1 -1
  315. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  316. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  317. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  318. package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
  319. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  320. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  321. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  322. package/lib/Markdown-CdkU5HcM.js.map +0 -1
  323. package/lib/MdxPage-ChziqNPp.js.map +0 -1
  324. package/lib/OperationList-CQKkyrZH.js +0 -4706
  325. package/lib/Route-DlG_HTMu.js +0 -11
  326. package/lib/Route-DlG_HTMu.js.map +0 -1
  327. package/lib/SlotletProvider-D77pO-fA.js +0 -252
  328. package/lib/SlotletProvider-D77pO-fA.js.map +0 -1
  329. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  330. package/lib/assets/worker-C_2va8B8.js.map +0 -1
  331. package/lib/cn-BmFQLtkS.js.map +0 -1
  332. package/lib/createServer-BCAHdrpE.js.map +0 -1
  333. package/lib/index-BuAyrJe3.js +0 -46
  334. package/lib/index-BuAyrJe3.js.map +0 -1
  335. package/lib/index-CkwDvuPt.js.map +0 -1
  336. package/lib/index-Czzd9rjU.js +0 -899
  337. package/lib/index-Czzd9rjU.js.map +0 -1
  338. package/lib/index-Yn8c3UWE.js +0 -921
  339. package/lib/index-Yn8c3UWE.js.map +0 -1
  340. package/lib/index.esm-Bm8pj-bc.js +0 -675
  341. package/lib/index.esm-C5mr_sKO.js +0 -1193
  342. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  343. package/lib/jsx-runtime-B6kdoens.js +0 -635
  344. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  345. package/lib/object_hash-CvlLgU-M.js +0 -785
  346. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  347. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  348. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  349. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  350. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  351. package/lib/router-lfyopgBI.js +0 -3024
  352. package/lib/router-lfyopgBI.js.map +0 -1
  353. package/lib/state-tsXBLONe.js +0 -203
  354. package/lib/state-tsXBLONe.js.map +0 -1
  355. package/lib/useExposedProps-CTPtylCV.js +0 -10
  356. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  357. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
@@ -1,899 +0,0 @@
1
- import * as n from "react";
2
- import { i as p, j as I, t as A, w as R, u as H, l as Q, e as z, p as J, s as T, m as Z, v as he, h as $, x as me, y as Ee, z as ee, A as te, a as ye, c as ge, f as Ne, g as be, k as Re, r as Ce, n as xe, o as _e, q as De } from "./router-lfyopgBI.js";
3
- /**
4
- * React Router v6.27.0
5
- *
6
- * Copyright (c) Remix Software Inc.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE.md file in the root directory of this source tree.
10
- *
11
- * @license MIT
12
- */
13
- function _() {
14
- return _ = Object.assign ? Object.assign.bind() : function(e) {
15
- for (var t = 1; t < arguments.length; t++) {
16
- var r = arguments[t];
17
- for (var a in r)
18
- Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
19
- }
20
- return e;
21
- }, _.apply(this, arguments);
22
- }
23
- const F = /* @__PURE__ */ n.createContext(null);
24
- process.env.NODE_ENV !== "production" && (F.displayName = "DataRouter");
25
- const j = /* @__PURE__ */ n.createContext(null);
26
- process.env.NODE_ENV !== "production" && (j.displayName = "DataRouterState");
27
- const B = /* @__PURE__ */ n.createContext(null);
28
- process.env.NODE_ENV !== "production" && (B.displayName = "Await");
29
- const x = /* @__PURE__ */ n.createContext(null);
30
- process.env.NODE_ENV !== "production" && (x.displayName = "Navigation");
31
- const U = /* @__PURE__ */ n.createContext(null);
32
- process.env.NODE_ENV !== "production" && (U.displayName = "Location");
33
- const N = /* @__PURE__ */ n.createContext({
34
- outlet: null,
35
- matches: [],
36
- isDataRoute: !1
37
- });
38
- process.env.NODE_ENV !== "production" && (N.displayName = "Route");
39
- const Y = /* @__PURE__ */ n.createContext(null);
40
- process.env.NODE_ENV !== "production" && (Y.displayName = "RouteError");
41
- function Oe(e, t) {
42
- let {
43
- relative: r
44
- } = t === void 0 ? {} : t;
45
- D() || (process.env.NODE_ENV !== "production" ? p(
46
- !1,
47
- // TODO: This error is probably because they somehow have 2 versions of the
48
- // router loaded. We can help them understand how to avoid that.
49
- "useHref() may be used only in the context of a <Router> component."
50
- ) : p(!1));
51
- let {
52
- basename: a,
53
- navigator: o
54
- } = n.useContext(x), {
55
- hash: l,
56
- pathname: i,
57
- search: d
58
- } = le(e, {
59
- relative: r
60
- }), f = i;
61
- return a !== "/" && (f = i === "/" ? a : I([a, i])), o.createHref({
62
- pathname: f,
63
- search: d,
64
- hash: l
65
- });
66
- }
67
- function D() {
68
- return n.useContext(U) != null;
69
- }
70
- function k() {
71
- return D() || (process.env.NODE_ENV !== "production" ? p(
72
- !1,
73
- // TODO: This error is probably because they somehow have 2 versions of the
74
- // router loaded. We can help them understand how to avoid that.
75
- "useLocation() may be used only in the context of a <Router> component."
76
- ) : p(!1)), n.useContext(U).location;
77
- }
78
- function Pe() {
79
- return n.useContext(U).navigationType;
80
- }
81
- function Ue(e) {
82
- D() || (process.env.NODE_ENV !== "production" ? p(
83
- !1,
84
- // TODO: This error is probably because they somehow have 2 versions of the
85
- // router loaded. We can help them understand how to avoid that.
86
- "useMatch() may be used only in the context of a <Router> component."
87
- ) : p(!1));
88
- let {
89
- pathname: t
90
- } = k();
91
- return n.useMemo(() => Z(e, he(t)), [t, e]);
92
- }
93
- const re = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
94
- function ne(e) {
95
- n.useContext(x).static || n.useLayoutEffect(e);
96
- }
97
- function ae() {
98
- let {
99
- isDataRoute: e
100
- } = n.useContext(N);
101
- return e ? Ke() : Ve();
102
- }
103
- function Ve() {
104
- D() || (process.env.NODE_ENV !== "production" ? p(
105
- !1,
106
- // TODO: This error is probably because they somehow have 2 versions of the
107
- // router loaded. We can help them understand how to avoid that.
108
- "useNavigate() may be used only in the context of a <Router> component."
109
- ) : p(!1));
110
- let e = n.useContext(F), {
111
- basename: t,
112
- future: r,
113
- navigator: a
114
- } = n.useContext(x), {
115
- matches: o
116
- } = n.useContext(N), {
117
- pathname: l
118
- } = k(), i = JSON.stringify(A(o, r.v7_relativeSplatPath)), d = n.useRef(!1);
119
- return ne(() => {
120
- d.current = !0;
121
- }), n.useCallback(function(u, c) {
122
- if (c === void 0 && (c = {}), process.env.NODE_ENV !== "production" && R(d.current, re), !d.current) return;
123
- if (typeof u == "number") {
124
- a.go(u);
125
- return;
126
- }
127
- let s = H(u, JSON.parse(i), l, c.relative === "path");
128
- e == null && t !== "/" && (s.pathname = s.pathname === "/" ? t : I([t, s.pathname])), (c.replace ? a.replace : a.push)(s, c.state, c);
129
- }, [t, a, i, l, e]);
130
- }
131
- const oe = /* @__PURE__ */ n.createContext(null);
132
- function Fe() {
133
- return n.useContext(oe);
134
- }
135
- function ie(e) {
136
- let t = n.useContext(N).outlet;
137
- return t && /* @__PURE__ */ n.createElement(oe.Provider, {
138
- value: e
139
- }, t);
140
- }
141
- function ke() {
142
- let {
143
- matches: e
144
- } = n.useContext(N), t = e[e.length - 1];
145
- return t ? t.params : {};
146
- }
147
- function le(e, t) {
148
- let {
149
- relative: r
150
- } = t === void 0 ? {} : t, {
151
- future: a
152
- } = n.useContext(x), {
153
- matches: o
154
- } = n.useContext(N), {
155
- pathname: l
156
- } = k(), i = JSON.stringify(A(o, a.v7_relativeSplatPath));
157
- return n.useMemo(() => H(e, JSON.parse(i), l, r === "path"), [e, i, l, r]);
158
- }
159
- function se(e, t) {
160
- return W(e, t);
161
- }
162
- function W(e, t, r, a) {
163
- D() || (process.env.NODE_ENV !== "production" ? p(
164
- !1,
165
- // TODO: This error is probably because they somehow have 2 versions of the
166
- // router loaded. We can help them understand how to avoid that.
167
- "useRoutes() may be used only in the context of a <Router> component."
168
- ) : p(!1));
169
- let {
170
- navigator: o
171
- } = n.useContext(x), {
172
- matches: l
173
- } = n.useContext(N), i = l[l.length - 1], d = i ? i.params : {}, f = i ? i.pathname : "/", u = i ? i.pathnameBase : "/", c = i && i.route;
174
- if (process.env.NODE_ENV !== "production") {
175
- let h = c && c.path || "";
176
- pe(f, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + f + '" (under <Route path="' + h + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
177
-
178
- ` + ('Please change the parent <Route path="' + h + '"> to <Route ') + ('path="' + (h === "/" ? "*" : h + "/*") + '">.'));
179
- }
180
- let s = k(), v;
181
- if (t) {
182
- var m;
183
- let h = typeof t == "string" ? J(t) : t;
184
- u === "/" || (m = h.pathname) != null && m.startsWith(u) || (process.env.NODE_ENV !== "production" ? p(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + u + '" ') + ('but pathname "' + h.pathname + '" was given in the `location` prop.')) : p(!1)), v = h;
185
- } else
186
- v = s;
187
- let b = v.pathname || "/", C = b;
188
- if (u !== "/") {
189
- let h = u.replace(/^\//, "").split("/");
190
- C = "/" + b.replace(/^\//, "").split("/").slice(h.length).join("/");
191
- }
192
- let E = Q(e, {
193
- pathname: C
194
- });
195
- process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && R(c || E != null, 'No routes matched location "' + v.pathname + v.search + v.hash + '" '), process.env.NODE_ENV !== "production" && R(E == null || E[E.length - 1].route.element !== void 0 || E[E.length - 1].route.Component !== void 0 || E[E.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + v.pathname + v.search + v.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
196
- let V = ue(E && E.map((h) => Object.assign({}, h, {
197
- params: Object.assign({}, d, h.params),
198
- pathname: I([
199
- u,
200
- // Re-encode pathnames that were decoded inside matchRoutes
201
- o.encodeLocation ? o.encodeLocation(h.pathname).pathname : h.pathname
202
- ]),
203
- pathnameBase: h.pathnameBase === "/" ? u : I([
204
- u,
205
- // Re-encode pathnames that were decoded inside matchRoutes
206
- o.encodeLocation ? o.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
207
- ])
208
- })), l, r, a);
209
- return t && V ? /* @__PURE__ */ n.createElement(U.Provider, {
210
- value: {
211
- location: _({
212
- pathname: "/",
213
- search: "",
214
- hash: "",
215
- state: null,
216
- key: "default"
217
- }, v),
218
- navigationType: z.Pop
219
- }
220
- }, V) : V;
221
- }
222
- function Be() {
223
- let e = ce(), t = $(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", o = {
224
- padding: "0.5rem",
225
- backgroundColor: a
226
- }, l = {
227
- padding: "2px 4px",
228
- backgroundColor: a
229
- }, i = null;
230
- return process.env.NODE_ENV !== "production" && (console.error("Error handled by React Router default ErrorBoundary:", e), i = /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ n.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ n.createElement("code", {
231
- style: l
232
- }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ n.createElement("code", {
233
- style: l
234
- }, "errorElement"), " prop on your route."))), /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ n.createElement("h3", {
235
- style: {
236
- fontStyle: "italic"
237
- }
238
- }, t), r ? /* @__PURE__ */ n.createElement("pre", {
239
- style: o
240
- }, r) : null, i);
241
- }
242
- const Le = /* @__PURE__ */ n.createElement(Be, null);
243
- class Se extends n.Component {
244
- constructor(t) {
245
- super(t), this.state = {
246
- location: t.location,
247
- revalidation: t.revalidation,
248
- error: t.error
249
- };
250
- }
251
- static getDerivedStateFromError(t) {
252
- return {
253
- error: t
254
- };
255
- }
256
- static getDerivedStateFromProps(t, r) {
257
- return r.location !== t.location || r.revalidation !== "idle" && t.revalidation === "idle" ? {
258
- error: t.error,
259
- location: t.location,
260
- revalidation: t.revalidation
261
- } : {
262
- error: t.error !== void 0 ? t.error : r.error,
263
- location: r.location,
264
- revalidation: t.revalidation || r.revalidation
265
- };
266
- }
267
- componentDidCatch(t, r) {
268
- console.error("React Router caught the following error during render", t, r);
269
- }
270
- render() {
271
- return this.state.error !== void 0 ? /* @__PURE__ */ n.createElement(N.Provider, {
272
- value: this.props.routeContext
273
- }, /* @__PURE__ */ n.createElement(Y.Provider, {
274
- value: this.state.error,
275
- children: this.props.component
276
- })) : this.props.children;
277
- }
278
- }
279
- function Ie(e) {
280
- let {
281
- routeContext: t,
282
- match: r,
283
- children: a
284
- } = e, o = n.useContext(F);
285
- return o && o.static && o.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ n.createElement(N.Provider, {
286
- value: t
287
- }, a);
288
- }
289
- function ue(e, t, r, a) {
290
- var o;
291
- if (t === void 0 && (t = []), r === void 0 && (r = null), a === void 0 && (a = null), e == null) {
292
- var l;
293
- if (!r)
294
- return null;
295
- if (r.errors)
296
- e = r.matches;
297
- else if ((l = a) != null && l.v7_partialHydration && t.length === 0 && !r.initialized && r.matches.length > 0)
298
- e = r.matches;
299
- else
300
- return null;
301
- }
302
- let i = e, d = (o = r) == null ? void 0 : o.errors;
303
- if (d != null) {
304
- let c = i.findIndex((s) => s.route.id && (d == null ? void 0 : d[s.route.id]) !== void 0);
305
- c >= 0 || (process.env.NODE_ENV !== "production" ? p(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(d).join(",")) : p(!1)), i = i.slice(0, Math.min(i.length, c + 1));
306
- }
307
- let f = !1, u = -1;
308
- if (r && a && a.v7_partialHydration)
309
- for (let c = 0; c < i.length; c++) {
310
- let s = i[c];
311
- if ((s.route.HydrateFallback || s.route.hydrateFallbackElement) && (u = c), s.route.id) {
312
- let {
313
- loaderData: v,
314
- errors: m
315
- } = r, b = s.route.loader && v[s.route.id] === void 0 && (!m || m[s.route.id] === void 0);
316
- if (s.route.lazy || b) {
317
- f = !0, u >= 0 ? i = i.slice(0, u + 1) : i = [i[0]];
318
- break;
319
- }
320
- }
321
- }
322
- return i.reduceRight((c, s, v) => {
323
- let m, b = !1, C = null, E = null;
324
- r && (m = d && s.route.id ? d[s.route.id] : void 0, C = s.route.errorElement || Le, f && (u < 0 && v === 0 ? (pe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), b = !0, E = null) : u === v && (b = !0, E = s.route.hydrateFallbackElement || null)));
325
- let V = t.concat(i.slice(0, v + 1)), h = () => {
326
- let P;
327
- return m ? P = C : b ? P = E : s.route.Component ? P = /* @__PURE__ */ n.createElement(s.route.Component, null) : s.route.element ? P = s.route.element : P = c, /* @__PURE__ */ n.createElement(Ie, {
328
- match: s,
329
- routeContext: {
330
- outlet: c,
331
- matches: V,
332
- isDataRoute: r != null
333
- },
334
- children: P
335
- });
336
- };
337
- return r && (s.route.ErrorBoundary || s.route.errorElement || v === 0) ? /* @__PURE__ */ n.createElement(Se, {
338
- location: r.location,
339
- revalidation: r.revalidation,
340
- component: C,
341
- error: m,
342
- children: h(),
343
- routeContext: {
344
- outlet: null,
345
- matches: V,
346
- isDataRoute: !0
347
- }
348
- }) : h();
349
- }, null);
350
- }
351
- var M = /* @__PURE__ */ function(e) {
352
- return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
353
- }(M || {}), y = /* @__PURE__ */ function(e) {
354
- return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
355
- }(y || {});
356
- function q(e) {
357
- return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
358
- }
359
- function K(e) {
360
- let t = n.useContext(F);
361
- return t || (process.env.NODE_ENV !== "production" ? p(!1, q(e)) : p(!1)), t;
362
- }
363
- function O(e) {
364
- let t = n.useContext(j);
365
- return t || (process.env.NODE_ENV !== "production" ? p(!1, q(e)) : p(!1)), t;
366
- }
367
- function we(e) {
368
- let t = n.useContext(N);
369
- return t || (process.env.NODE_ENV !== "production" ? p(!1, q(e)) : p(!1)), t;
370
- }
371
- function S(e) {
372
- let t = we(e), r = t.matches[t.matches.length - 1];
373
- return r.route.id || (process.env.NODE_ENV !== "production" ? p(!1, e + ' can only be used on routes that contain a unique "id"') : p(!1)), r.route.id;
374
- }
375
- function je() {
376
- return S(y.UseRouteId);
377
- }
378
- function Me() {
379
- return O(y.UseNavigation).navigation;
380
- }
381
- function Te() {
382
- let e = K(M.UseRevalidator), t = O(y.UseRevalidator);
383
- return n.useMemo(() => ({
384
- revalidate: e.router.revalidate,
385
- state: t.revalidation
386
- }), [e.router.revalidate, t.revalidation]);
387
- }
388
- function Ae() {
389
- let {
390
- matches: e,
391
- loaderData: t
392
- } = O(y.UseMatches);
393
- return n.useMemo(() => e.map((r) => me(r, t)), [e, t]);
394
- }
395
- function He() {
396
- let e = O(y.UseLoaderData), t = S(y.UseLoaderData);
397
- if (e.errors && e.errors[t] != null) {
398
- console.error("You cannot `useLoaderData` in an errorElement (routeId: " + t + ")");
399
- return;
400
- }
401
- return e.loaderData[t];
402
- }
403
- function ze(e) {
404
- return O(y.UseRouteLoaderData).loaderData[e];
405
- }
406
- function Je() {
407
- let e = O(y.UseActionData), t = S(y.UseLoaderData);
408
- return e.actionData ? e.actionData[t] : void 0;
409
- }
410
- function ce() {
411
- var e;
412
- let t = n.useContext(Y), r = O(y.UseRouteError), a = S(y.UseRouteError);
413
- return t !== void 0 ? t : (e = r.errors) == null ? void 0 : e[a];
414
- }
415
- function de() {
416
- let e = n.useContext(B);
417
- return e == null ? void 0 : e._data;
418
- }
419
- function Ye() {
420
- let e = n.useContext(B);
421
- return e == null ? void 0 : e._error;
422
- }
423
- let We = 0;
424
- function qe(e) {
425
- let {
426
- router: t,
427
- basename: r
428
- } = K(M.UseBlocker), a = O(y.UseBlocker), [o, l] = n.useState(""), i = n.useCallback((d) => {
429
- if (typeof e != "function")
430
- return !!e;
431
- if (r === "/")
432
- return e(d);
433
- let {
434
- currentLocation: f,
435
- nextLocation: u,
436
- historyAction: c
437
- } = d;
438
- return e({
439
- currentLocation: _({}, f, {
440
- pathname: T(f.pathname, r) || f.pathname
441
- }),
442
- nextLocation: _({}, u, {
443
- pathname: T(u.pathname, r) || u.pathname
444
- }),
445
- historyAction: c
446
- });
447
- }, [r, e]);
448
- return n.useEffect(() => {
449
- let d = String(++We);
450
- return l(d), () => t.deleteBlocker(d);
451
- }, [t]), n.useEffect(() => {
452
- o !== "" && t.getBlocker(o, i);
453
- }, [t, o, i]), o && a.blockers.has(o) ? a.blockers.get(o) : Ee;
454
- }
455
- function Ke() {
456
- let {
457
- router: e
458
- } = K(M.UseNavigateStable), t = S(y.UseNavigateStable), r = n.useRef(!1);
459
- return ne(() => {
460
- r.current = !0;
461
- }), n.useCallback(function(o, l) {
462
- l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && R(r.current, re), r.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o, _({
463
- fromRouteId: t
464
- }, l)));
465
- }, [e, t]);
466
- }
467
- const X = {};
468
- function pe(e, t, r) {
469
- !t && !X[e] && (X[e] = !0, process.env.NODE_ENV !== "production" && R(!1, r));
470
- }
471
- const Ge = "startTransition", w = n[Ge];
472
- function Xe(e) {
473
- let {
474
- fallbackElement: t,
475
- router: r,
476
- future: a
477
- } = e, [o, l] = n.useState(r.state), {
478
- v7_startTransition: i
479
- } = a || {}, d = n.useCallback((s) => {
480
- i && w ? w(() => l(s)) : l(s);
481
- }, [l, i]);
482
- n.useLayoutEffect(() => r.subscribe(d), [r, d]), n.useEffect(() => {
483
- process.env.NODE_ENV !== "production" && R(t == null || !r.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead");
484
- }, []);
485
- let f = n.useMemo(() => ({
486
- createHref: r.createHref,
487
- encodeLocation: r.encodeLocation,
488
- go: (s) => r.navigate(s),
489
- push: (s, v, m) => r.navigate(s, {
490
- state: v,
491
- preventScrollReset: m == null ? void 0 : m.preventScrollReset
492
- }),
493
- replace: (s, v, m) => r.navigate(s, {
494
- replace: !0,
495
- state: v,
496
- preventScrollReset: m == null ? void 0 : m.preventScrollReset
497
- })
498
- }), [r]), u = r.basename || "/", c = n.useMemo(() => ({
499
- router: r,
500
- navigator: f,
501
- static: !1,
502
- basename: u
503
- }), [r, f, u]);
504
- return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(F.Provider, {
505
- value: c
506
- }, /* @__PURE__ */ n.createElement(j.Provider, {
507
- value: o
508
- }, /* @__PURE__ */ n.createElement(G, {
509
- basename: u,
510
- location: o.location,
511
- navigationType: o.historyAction,
512
- navigator: f,
513
- future: {
514
- v7_relativeSplatPath: r.future.v7_relativeSplatPath
515
- }
516
- }, o.initialized || r.future.v7_partialHydration ? /* @__PURE__ */ n.createElement(Qe, {
517
- routes: r.routes,
518
- future: r.future,
519
- state: o
520
- }) : t))), null);
521
- }
522
- function Qe(e) {
523
- let {
524
- routes: t,
525
- future: r,
526
- state: a
527
- } = e;
528
- return W(t, void 0, a, r);
529
- }
530
- function Ze(e) {
531
- let {
532
- basename: t,
533
- children: r,
534
- initialEntries: a,
535
- initialIndex: o,
536
- future: l
537
- } = e, i = n.useRef();
538
- i.current == null && (i.current = ee({
539
- initialEntries: a,
540
- initialIndex: o,
541
- v5Compat: !0
542
- }));
543
- let d = i.current, [f, u] = n.useState({
544
- action: d.action,
545
- location: d.location
546
- }), {
547
- v7_startTransition: c
548
- } = l || {}, s = n.useCallback((v) => {
549
- c && w ? w(() => u(v)) : u(v);
550
- }, [u, c]);
551
- return n.useLayoutEffect(() => d.listen(s), [d, s]), /* @__PURE__ */ n.createElement(G, {
552
- basename: t,
553
- children: r,
554
- location: f.location,
555
- navigationType: f.action,
556
- navigator: d,
557
- future: l
558
- });
559
- }
560
- function $e(e) {
561
- let {
562
- to: t,
563
- replace: r,
564
- state: a,
565
- relative: o
566
- } = e;
567
- D() || (process.env.NODE_ENV !== "production" ? p(
568
- !1,
569
- // TODO: This error is probably because they somehow have 2 versions of
570
- // the router loaded. We can help them understand how to avoid that.
571
- "<Navigate> may be used only in the context of a <Router> component."
572
- ) : p(!1));
573
- let {
574
- future: l,
575
- static: i
576
- } = n.useContext(x);
577
- process.env.NODE_ENV !== "production" && R(!i, "<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.");
578
- let {
579
- matches: d
580
- } = n.useContext(N), {
581
- pathname: f
582
- } = k(), u = ae(), c = H(t, A(d, l.v7_relativeSplatPath), f, o === "path"), s = JSON.stringify(c);
583
- return n.useEffect(() => u(JSON.parse(s), {
584
- replace: r,
585
- state: a,
586
- relative: o
587
- }), [u, s, o, r, a]), null;
588
- }
589
- function et(e) {
590
- return ie(e.context);
591
- }
592
- function fe(e) {
593
- process.env.NODE_ENV !== "production" ? p(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.") : p(!1);
594
- }
595
- function G(e) {
596
- let {
597
- basename: t = "/",
598
- children: r = null,
599
- location: a,
600
- navigationType: o = z.Pop,
601
- navigator: l,
602
- static: i = !1,
603
- future: d
604
- } = e;
605
- D() && (process.env.NODE_ENV !== "production" ? p(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : p(!1));
606
- let f = t.replace(/^\/*/, "/"), u = n.useMemo(() => ({
607
- basename: f,
608
- navigator: l,
609
- static: i,
610
- future: _({
611
- v7_relativeSplatPath: !1
612
- }, d)
613
- }), [f, d, l, i]);
614
- typeof a == "string" && (a = J(a));
615
- let {
616
- pathname: c = "/",
617
- search: s = "",
618
- hash: v = "",
619
- state: m = null,
620
- key: b = "default"
621
- } = a, C = n.useMemo(() => {
622
- let E = T(c, f);
623
- return E == null ? null : {
624
- location: {
625
- pathname: E,
626
- search: s,
627
- hash: v,
628
- state: m,
629
- key: b
630
- },
631
- navigationType: o
632
- };
633
- }, [f, c, s, v, m, b, o]);
634
- return process.env.NODE_ENV !== "production" && R(C != null, '<Router basename="' + f + '"> is not able to match the URL ' + ('"' + c + s + v + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), C == null ? null : /* @__PURE__ */ n.createElement(x.Provider, {
635
- value: u
636
- }, /* @__PURE__ */ n.createElement(U.Provider, {
637
- children: r,
638
- value: C
639
- }));
640
- }
641
- function tt(e) {
642
- let {
643
- children: t,
644
- location: r
645
- } = e;
646
- return se(L(t), r);
647
- }
648
- function rt(e) {
649
- let {
650
- children: t,
651
- errorElement: r,
652
- resolve: a
653
- } = e;
654
- return /* @__PURE__ */ n.createElement(at, {
655
- resolve: a,
656
- errorElement: r
657
- }, /* @__PURE__ */ n.createElement(ot, null, t));
658
- }
659
- var g = /* @__PURE__ */ function(e) {
660
- return e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error", e;
661
- }(g || {});
662
- const nt = new Promise(() => {
663
- });
664
- class at extends n.Component {
665
- constructor(t) {
666
- super(t), this.state = {
667
- error: null
668
- };
669
- }
670
- static getDerivedStateFromError(t) {
671
- return {
672
- error: t
673
- };
674
- }
675
- componentDidCatch(t, r) {
676
- console.error("<Await> caught the following error during render", t, r);
677
- }
678
- render() {
679
- let {
680
- children: t,
681
- errorElement: r,
682
- resolve: a
683
- } = this.props, o = null, l = g.pending;
684
- if (!(a instanceof Promise))
685
- l = g.success, o = Promise.resolve(), Object.defineProperty(o, "_tracked", {
686
- get: () => !0
687
- }), Object.defineProperty(o, "_data", {
688
- get: () => a
689
- });
690
- else if (this.state.error) {
691
- l = g.error;
692
- let i = this.state.error;
693
- o = Promise.reject().catch(() => {
694
- }), Object.defineProperty(o, "_tracked", {
695
- get: () => !0
696
- }), Object.defineProperty(o, "_error", {
697
- get: () => i
698
- });
699
- } else a._tracked ? (o = a, l = "_error" in o ? g.error : "_data" in o ? g.success : g.pending) : (l = g.pending, Object.defineProperty(a, "_tracked", {
700
- get: () => !0
701
- }), o = a.then((i) => Object.defineProperty(a, "_data", {
702
- get: () => i
703
- }), (i) => Object.defineProperty(a, "_error", {
704
- get: () => i
705
- })));
706
- if (l === g.error && o._error instanceof te)
707
- throw nt;
708
- if (l === g.error && !r)
709
- throw o._error;
710
- if (l === g.error)
711
- return /* @__PURE__ */ n.createElement(B.Provider, {
712
- value: o,
713
- children: r
714
- });
715
- if (l === g.success)
716
- return /* @__PURE__ */ n.createElement(B.Provider, {
717
- value: o,
718
- children: t
719
- });
720
- throw o;
721
- }
722
- }
723
- function ot(e) {
724
- let {
725
- children: t
726
- } = e, r = de(), a = typeof t == "function" ? t(r) : t;
727
- return /* @__PURE__ */ n.createElement(n.Fragment, null, a);
728
- }
729
- function L(e, t) {
730
- t === void 0 && (t = []);
731
- let r = [];
732
- return n.Children.forEach(e, (a, o) => {
733
- if (!/* @__PURE__ */ n.isValidElement(a))
734
- return;
735
- let l = [...t, o];
736
- if (a.type === n.Fragment) {
737
- r.push.apply(r, L(a.props.children, l));
738
- return;
739
- }
740
- a.type !== fe && (process.env.NODE_ENV !== "production" ? p(!1, "[" + (typeof a.type == "string" ? a.type : a.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : p(!1)), !a.props.index || !a.props.children || (process.env.NODE_ENV !== "production" ? p(!1, "An index route cannot have child routes.") : p(!1));
741
- let i = {
742
- id: a.props.id || l.join("-"),
743
- caseSensitive: a.props.caseSensitive,
744
- element: a.props.element,
745
- Component: a.props.Component,
746
- index: a.props.index,
747
- path: a.props.path,
748
- loader: a.props.loader,
749
- action: a.props.action,
750
- errorElement: a.props.errorElement,
751
- ErrorBoundary: a.props.ErrorBoundary,
752
- hasErrorBoundary: a.props.ErrorBoundary != null || a.props.errorElement != null,
753
- shouldRevalidate: a.props.shouldRevalidate,
754
- handle: a.props.handle,
755
- lazy: a.props.lazy
756
- };
757
- a.props.children && (i.children = L(a.props.children, l)), r.push(i);
758
- }), r;
759
- }
760
- function it(e) {
761
- return ue(e);
762
- }
763
- function ve(e) {
764
- let t = {
765
- // Note: this check also occurs in createRoutesFromChildren so update
766
- // there if you change this -- please and thank you!
767
- hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
768
- };
769
- return e.Component && (process.env.NODE_ENV !== "production" && e.element && process.env.NODE_ENV !== "production" && R(!1, "You should not include both `Component` and `element` on your route - `Component` will be used."), Object.assign(t, {
770
- element: /* @__PURE__ */ n.createElement(e.Component),
771
- Component: void 0
772
- })), e.HydrateFallback && (process.env.NODE_ENV !== "production" && e.hydrateFallbackElement && process.env.NODE_ENV !== "production" && R(!1, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."), Object.assign(t, {
773
- hydrateFallbackElement: /* @__PURE__ */ n.createElement(e.HydrateFallback),
774
- HydrateFallback: void 0
775
- })), e.ErrorBoundary && (process.env.NODE_ENV !== "production" && e.errorElement && process.env.NODE_ENV !== "production" && R(!1, "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."), Object.assign(t, {
776
- errorElement: /* @__PURE__ */ n.createElement(e.ErrorBoundary),
777
- ErrorBoundary: void 0
778
- })), t;
779
- }
780
- function lt(e, t) {
781
- return ye({
782
- basename: t == null ? void 0 : t.basename,
783
- future: _({}, t == null ? void 0 : t.future, {
784
- v7_prependBasename: !0
785
- }),
786
- history: ee({
787
- initialEntries: t == null ? void 0 : t.initialEntries,
788
- initialIndex: t == null ? void 0 : t.initialIndex
789
- }),
790
- hydrationData: t == null ? void 0 : t.hydrationData,
791
- routes: e,
792
- mapRouteProperties: ve,
793
- dataStrategy: t == null ? void 0 : t.dataStrategy,
794
- patchRoutesOnNavigation: t == null ? void 0 : t.patchRoutesOnNavigation
795
- }).initialize();
796
- }
797
- const ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
798
- __proto__: null,
799
- AbortedDeferredError: te,
800
- Await: rt,
801
- MemoryRouter: Ze,
802
- Navigate: $e,
803
- get NavigationType() {
804
- return z;
805
- },
806
- Outlet: et,
807
- Route: fe,
808
- Router: G,
809
- RouterProvider: Xe,
810
- Routes: tt,
811
- UNSAFE_DataRouterContext: F,
812
- UNSAFE_DataRouterStateContext: j,
813
- UNSAFE_LocationContext: U,
814
- UNSAFE_NavigationContext: x,
815
- UNSAFE_RouteContext: N,
816
- UNSAFE_mapRouteProperties: ve,
817
- UNSAFE_useRouteId: je,
818
- UNSAFE_useRoutesImpl: W,
819
- createMemoryRouter: lt,
820
- createPath: ge,
821
- createRoutesFromChildren: L,
822
- createRoutesFromElements: L,
823
- defer: Ne,
824
- generatePath: be,
825
- isRouteErrorResponse: $,
826
- json: Re,
827
- matchPath: Z,
828
- matchRoutes: Q,
829
- parsePath: J,
830
- redirect: Ce,
831
- redirectDocument: xe,
832
- renderMatches: it,
833
- replace: _e,
834
- resolvePath: De,
835
- useActionData: Je,
836
- useAsyncError: Ye,
837
- useAsyncValue: de,
838
- useBlocker: qe,
839
- useHref: Oe,
840
- useInRouterContext: D,
841
- useLoaderData: He,
842
- useLocation: k,
843
- useMatch: Ue,
844
- useMatches: Ae,
845
- useNavigate: ae,
846
- useNavigation: Me,
847
- useNavigationType: Pe,
848
- useOutlet: ie,
849
- useOutletContext: Fe,
850
- useParams: ke,
851
- useResolvedPath: le,
852
- useRevalidator: Te,
853
- useRouteError: ce,
854
- useRouteLoaderData: ze,
855
- useRoutes: se
856
- }, Symbol.toStringTag, { value: "Module" }));
857
- export {
858
- rt as A,
859
- ie as B,
860
- Fe as C,
861
- j as D,
862
- Te as E,
863
- ce as F,
864
- ze as G,
865
- se as H,
866
- ut as I,
867
- U as L,
868
- Ze as M,
869
- x as N,
870
- et as O,
871
- N as R,
872
- ae as a,
873
- ke as b,
874
- Oe as c,
875
- le as d,
876
- je as e,
877
- F as f,
878
- G as g,
879
- W as h,
880
- Ae as i,
881
- Me as j,
882
- qe as k,
883
- $e as l,
884
- ve as m,
885
- fe as n,
886
- tt as o,
887
- lt as p,
888
- L as q,
889
- it as r,
890
- Je as s,
891
- Ye as t,
892
- k as u,
893
- de as v,
894
- D as w,
895
- He as x,
896
- Ue as y,
897
- Pe as z
898
- };
899
- //# sourceMappingURL=index-Czzd9rjU.js.map