zudoku 0.16.3 → 0.18.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.
- package/dist/app/demo.js +0 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.js +14 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +5 -4
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +1 -1
- package/dist/app/main.js +2 -2
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +0 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/codegen.d.ts +3 -0
- package/dist/codegen.js +45 -0
- package/dist/codegen.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +10 -10
- package/dist/config/validators/validate.d.ts +114 -114
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -2
- package/dist/lib/authentication/hook.d.ts +5 -4
- package/dist/lib/authentication/hook.js +1 -3
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -11
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +0 -1
- package/dist/lib/authentication/providers/openid.js +11 -26
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +25 -4
- package/dist/lib/authentication/state.js +28 -3
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
- package/dist/lib/authentication/use-broadcast/shared.js +243 -0
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
- package/dist/lib/components/Bootstrap.d.ts +3 -1
- package/dist/lib/components/Bootstrap.js +11 -3
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +4 -2
- package/dist/lib/components/ClientOnly.js +1 -1
- package/dist/lib/components/ClientOnly.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +2 -1
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +5 -7
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Layout.js +11 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +6 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/SyntaxHighlight.js +16 -12
- package/dist/lib/components/SyntaxHighlight.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.d.ts +1 -0
- package/dist/lib/components/ThemeSwitch.js +13 -0
- package/dist/lib/components/ThemeSwitch.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +2 -0
- package/dist/lib/components/TopNavigation.js +13 -7
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
- package/dist/lib/components/{DevPortal.js → Zudoku.js} +13 -14
- package/dist/lib/components/Zudoku.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
- package/dist/lib/components/context/ZudokuContext.js +8 -13
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/index.d.ts +18 -10
- package/dist/lib/components/index.js +2 -3
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +1 -1
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +2 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +3 -7
- package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -7
- package/dist/lib/core/ZudokuContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +12 -12
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +1 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -9
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +2 -2
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +13 -9
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +5 -9
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationList.js +7 -22
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/Route.d.ts +4 -4
- package/dist/lib/plugins/openapi/Route.js +2 -4
- package/dist/lib/plugins/openapi/Route.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +34 -33
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +102 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
- package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +1 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.d.ts +4 -1
- package/dist/lib/plugins/openapi/client/worker.js +23 -14
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -52
- package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +134 -9
- package/dist/lib/plugins/openapi/graphql/graphql.js +194 -778
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +40 -53
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi-worker.d.ts +1 -1
- package/dist/lib/plugins/openapi-worker.js +7 -1
- package/dist/lib/plugins/openapi-worker.js.map +1 -1
- package/dist/lib/plugins/redirect/index.d.ts +2 -2
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/ui/ActionButton.d.ts +3 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/lib/util/useOnScreen.d.ts +4 -0
- package/dist/lib/util/useOnScreen.js +19 -0
- package/dist/lib/util/useOnScreen.js.map +1 -0
- package/dist/vite/config.js +0 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/html.js +0 -2
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-component.js +1 -1
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +0 -6
- package/dist/vite/plugin-mdx.js +3 -2
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin.js +0 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/remarkStaticGeneration.d.ts +3 -0
- package/dist/vite/remarkStaticGeneration.js +125 -0
- package/dist/vite/remarkStaticGeneration.js.map +1 -0
- package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-CDlhr8gL.js} +11 -10
- package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-CDlhr8gL.js.map} +1 -1
- package/lib/{AuthenticationPlugin-C9BHGXlE.js → AuthenticationPlugin-DeGDVa1r.js} +6 -5
- package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-DeGDVa1r.js.map} +1 -1
- package/lib/{Spinner-ChOGyPls.js → Button-jK0EsymC.js} +12 -15
- package/lib/Button-jK0EsymC.js.map +1 -0
- package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
- package/lib/ClientOnly-E7hGysn1.js.map +1 -0
- package/lib/Markdown-ievDDhFT.js +15192 -0
- package/lib/Markdown-ievDDhFT.js.map +1 -0
- package/lib/{MdxPage-DKMH_t0f.js → MdxPage-Bwn-VSsH.js} +5 -5
- package/lib/{MdxPage-DKMH_t0f.js.map → MdxPage-Bwn-VSsH.js.map} +1 -1
- package/lib/OperationList-BwBl1xrD.js +4691 -0
- package/lib/OperationList-BwBl1xrD.js.map +1 -0
- package/lib/Route-DlG_HTMu.js +11 -0
- package/lib/Route-DlG_HTMu.js.map +1 -0
- package/lib/{Select-Bagt3Bme.js → Select-O9ZM3ZgX.js} +7 -7
- package/lib/Select-O9ZM3ZgX.js.map +1 -0
- package/lib/SidebarBadge-DxFJcJ6V.js +51 -0
- package/lib/SidebarBadge-DxFJcJ6V.js.map +1 -0
- package/lib/SlotletProvider-DyomlzGx.js +252 -0
- package/lib/SlotletProvider-DyomlzGx.js.map +1 -0
- package/lib/Spinner-3cQDBVGr.js +7 -0
- package/lib/Spinner-3cQDBVGr.js.map +1 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js +2983 -0
- package/lib/SyntaxHighlight-DkLOsjHS.js.map +1 -0
- package/lib/assets/{worker-YA-aCP3P.js → worker-CPsGZsve.js} +24 -22
- package/lib/assets/{worker-YA-aCP3P.js.map → worker-CPsGZsve.js.map} +1 -1
- package/lib/context-D1nXWxm7.js +22 -0
- package/lib/context-D1nXWxm7.js.map +1 -0
- package/lib/createServer-DK-g7kbB.js +16089 -0
- package/lib/createServer-DK-g7kbB.js.map +1 -0
- package/lib/{hook-sn0zMTkE.js → hook-hEqe7fPB.js} +12 -14
- package/lib/hook-hEqe7fPB.js.map +1 -0
- package/lib/index-Czzd9rjU.js +899 -0
- package/lib/index-Czzd9rjU.js.map +1 -0
- package/lib/index-DNxQ_rCt.js +1273 -0
- package/lib/index-DNxQ_rCt.js.map +1 -0
- package/lib/index-Yn8c3UWE.js +921 -0
- package/lib/index-Yn8c3UWE.js.map +1 -0
- package/lib/{router-BsfSoK2j.js → router-lfyopgBI.js} +23 -23
- package/lib/{router-BsfSoK2j.js.map → router-lfyopgBI.js.map} +1 -1
- package/lib/state-tsXBLONe.js +203 -0
- package/lib/{state-CsuHT8ZO.js.map → state-tsXBLONe.js.map} +1 -1
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/useExposedProps-CTPtylCV.js +10 -0
- package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-CTPtylCV.js.map} +1 -1
- package/lib/{ZudokuContext-BKXGJTmu.js → utils-DcpDOncX.js} +242 -246
- package/lib/utils-DcpDOncX.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +24 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +124 -138
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1284 -1121
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +10 -16346
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +18 -18
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +2 -2
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -9
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +14 -4
- package/src/app/demo.tsx +0 -3
- package/src/app/entry.client.tsx +14 -0
- package/src/app/entry.server.tsx +59 -57
- package/src/app/main.tsx +4 -4
- package/src/app/standalone.tsx +0 -3
- package/src/lib/authentication/authentication.ts +2 -2
- package/src/lib/authentication/hook.ts +1 -3
- package/src/lib/authentication/providers/auth0.tsx +16 -11
- package/src/lib/authentication/providers/openid.tsx +12 -30
- package/src/lib/authentication/state.ts +50 -9
- package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
- package/src/lib/authentication/use-broadcast/shared.ts +372 -0
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
- package/src/lib/components/Bootstrap.tsx +36 -9
- package/src/lib/components/ClientOnly.tsx +6 -3
- package/src/lib/components/DeveloperHint.tsx +6 -1
- package/src/lib/components/Header.tsx +32 -37
- package/src/lib/components/Layout.tsx +48 -36
- package/src/lib/components/MobileTopNavigation.tsx +15 -18
- package/src/lib/components/SyntaxHighlight.tsx +81 -46
- package/src/lib/components/ThemeSwitch.tsx +26 -0
- package/src/lib/components/TopNavigation.tsx +27 -19
- package/src/lib/components/Zudoku.tsx +108 -0
- package/src/lib/components/context/ZudokuContext.ts +11 -16
- package/src/lib/components/context/ZudokuProvider.tsx +2 -2
- package/src/lib/components/index.ts +2 -3
- package/src/lib/components/navigation/Sidebar.tsx +3 -3
- package/src/lib/components/navigation/utils.ts +2 -2
- package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +3 -11
- package/src/lib/core/plugins.ts +12 -16
- package/src/lib/errors/ErrorAlert.tsx +2 -1
- package/src/lib/plugins/api-keys/index.tsx +9 -9
- package/src/lib/plugins/custom-pages/index.tsx +2 -2
- package/src/lib/plugins/markdown/index.tsx +2 -2
- package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -14
- package/src/lib/plugins/openapi/Endpoint.tsx +5 -10
- package/src/lib/plugins/openapi/OperationList.tsx +6 -40
- package/src/lib/plugins/openapi/Route.tsx +11 -12
- package/src/lib/plugins/openapi/Sidecar.tsx +72 -61
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +140 -0
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
- package/src/lib/plugins/openapi/client/createServer.ts +2 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
- package/src/lib/plugins/openapi/client/worker.ts +38 -24
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
- package/src/lib/plugins/openapi/graphql/gql.ts +7 -25
- package/src/lib/plugins/openapi/graphql/graphql.ts +351 -782
- package/src/lib/plugins/openapi/index.tsx +42 -67
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -1
- package/src/lib/plugins/openapi-worker.ts +11 -1
- package/src/lib/plugins/redirect/index.tsx +2 -2
- package/src/lib/plugins/search-inkeep/index.tsx +2 -2
- package/src/lib/ui/ActionButton.tsx +1 -1
- package/src/lib/util/useOnScreen.ts +32 -0
- package/dist/lib/components/DevPortal.js.map +0 -1
- package/dist/lib/components/context/ThemeContext.d.ts +0 -2
- package/dist/lib/components/context/ThemeContext.js +0 -7
- package/dist/lib/components/context/ThemeContext.js.map +0 -1
- package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
- package/dist/lib/components/context/ThemeProvider.js +0 -23
- package/dist/lib/components/context/ThemeProvider.js.map +0 -1
- package/dist/lib/core/DevPortalContext.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -9
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -54
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -62
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
- package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
- package/dist/lib/themeToggle.d.ts +0 -1
- package/dist/lib/themeToggle.js +0 -7
- package/dist/lib/themeToggle.js.map +0 -1
- package/dist/lib/util/createWaitForNotify.d.ts +0 -1
- package/dist/lib/util/createWaitForNotify.js +0 -15
- package/dist/lib/util/createWaitForNotify.js.map +0 -1
- package/dist/vite/plugin-html-transform.d.ts +0 -2
- package/dist/vite/plugin-html-transform.js +0 -15
- package/dist/vite/plugin-html-transform.js.map +0 -1
- package/lib/ClientOnly-CVN6leDu.js.map +0 -1
- package/lib/DeveloperHint-DHdLXGHA.js +0 -16
- package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
- package/lib/Markdown-BDcCAWwm.js +0 -18059
- package/lib/Markdown-BDcCAWwm.js.map +0 -1
- package/lib/OperationList-BjppA5yM.js +0 -621
- package/lib/OperationList-BjppA5yM.js.map +0 -1
- package/lib/Route-D_djzMv3.js +0 -13
- package/lib/Route-D_djzMv3.js.map +0 -1
- package/lib/Select-Bagt3Bme.js.map +0 -1
- package/lib/SidebarBadge-Bbt92M5K.js +0 -38
- package/lib/SidebarBadge-Bbt92M5K.js.map +0 -1
- package/lib/SlotletProvider-Da7eFgd2.js +0 -241
- package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
- package/lib/Spinner-ChOGyPls.js.map +0 -1
- package/lib/StaggeredRender-DDHSzQKE.js +0 -17
- package/lib/StaggeredRender-DDHSzQKE.js.map +0 -1
- package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
- package/lib/hook-sn0zMTkE.js.map +0 -1
- package/lib/index-CRo94sKK.js +0 -1783
- package/lib/index-CRo94sKK.js.map +0 -1
- package/lib/index-_gtpPhlu.js +0 -5877
- package/lib/index-_gtpPhlu.js.map +0 -1
- package/lib/state-CsuHT8ZO.js +0 -183
- package/lib/urql-core-35Qt_U4i.js +0 -1511
- package/lib/urql-core-35Qt_U4i.js.map +0 -1
- package/lib/useExposedProps-ChOIUaS4.js +0 -9
- package/src/lib/components/DevPortal.tsx +0 -111
- package/src/lib/components/context/ThemeContext.tsx +0 -8
- package/src/lib/components/context/ThemeProvider.tsx +0 -27
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -65
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -79
- package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
- package/src/lib/themeToggle.ts +0 -7
- package/src/lib/util/createWaitForNotify.ts +0 -18
|
@@ -0,0 +1,899 @@
|
|
|
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
|