@openmrs/esm-laboratory-app 1.1.2-pre.88 → 1.2.1-pre.590
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/.turbo/cache/99f2b2ec58ba1a5e-meta.json +1 -0
- package/.turbo/cache/99f2b2ec58ba1a5e.tar.zst +0 -0
- package/.turbo/turbo-build.log +27 -29
- package/dist/1026.js +2 -0
- package/dist/1026.js.map +1 -0
- package/dist/1083.js +1 -0
- package/dist/{7328.js.map → 1083.js.map} +1 -1
- package/dist/1119.js +1 -0
- package/dist/1120.js +1 -0
- package/dist/1120.js.map +1 -0
- package/dist/1197.js +1 -0
- package/dist/1788.js +1 -0
- package/dist/1788.js.map +1 -0
- package/dist/2058.js +1 -0
- package/dist/2058.js.map +1 -0
- package/dist/2146.js +1 -0
- package/dist/2246.js +1 -0
- package/dist/2246.js.map +1 -0
- package/dist/2690.js +1 -0
- package/dist/2934.js +2 -0
- package/dist/2934.js.map +1 -0
- package/dist/3099.js +1 -0
- package/dist/3495.js +2 -0
- package/dist/3495.js.map +1 -0
- package/dist/3584.js +1 -0
- package/dist/3656.js +1 -0
- package/dist/{8684.js.map → 3656.js.map} +1 -1
- package/dist/3671.js +1 -0
- package/dist/3671.js.map +1 -0
- package/dist/4055.js +1 -0
- package/dist/4069.js +1 -0
- package/dist/{7724.js.map → 4069.js.map} +1 -1
- package/dist/4132.js +1 -0
- package/dist/4239.js +1 -0
- package/dist/{6092.js.map → 4239.js.map} +1 -1
- package/dist/4300.js +1 -0
- package/dist/4335.js +1 -0
- package/dist/4369.js +1 -0
- package/dist/{2156.js.map → 4369.js.map} +1 -1
- package/dist/4618.js +1 -0
- package/dist/4652.js +1 -0
- package/dist/4944.js +1 -0
- package/dist/5085.js +1 -0
- package/dist/5085.js.map +1 -0
- package/dist/5173.js +1 -0
- package/dist/520.js +2 -0
- package/dist/{7936.js.LICENSE.txt → 520.js.LICENSE.txt} +5 -0
- package/dist/520.js.map +1 -0
- package/dist/5241.js +1 -0
- package/dist/5442.js +1 -0
- package/dist/5661.js +1 -0
- package/dist/6022.js +1 -0
- package/dist/6052.js +1 -0
- package/dist/6052.js.map +1 -0
- package/dist/6134.js +1 -0
- package/dist/6134.js.map +1 -0
- package/dist/6468.js +1 -0
- package/dist/6547.js +1 -0
- package/dist/6547.js.map +1 -0
- package/dist/6679.js +1 -0
- package/dist/6840.js +1 -0
- package/dist/6859.js +1 -0
- package/dist/7003.js +2 -0
- package/dist/7003.js.LICENSE.txt +9 -0
- package/dist/7003.js.map +1 -0
- package/dist/7097.js +1 -0
- package/dist/7159.js +1 -0
- package/dist/723.js +1 -0
- package/dist/7423.js +1 -0
- package/dist/{1708.js.map → 7423.js.map} +1 -1
- package/dist/7617.js +1 -0
- package/dist/795.js +1 -0
- package/dist/8163.js +1 -0
- package/dist/8349.js +1 -0
- package/dist/8554.js +1 -0
- package/dist/{3956.js.map → 8554.js.map} +1 -1
- package/dist/8618.js +1 -0
- package/dist/8667.js +1 -0
- package/dist/{1636.js.map → 8667.js.map} +1 -1
- package/dist/876.js +1 -0
- package/dist/876.js.map +1 -0
- package/dist/890.js +1 -0
- package/dist/9214.js +1 -0
- package/dist/9538.js +1 -0
- package/dist/9569.js +1 -0
- package/dist/9630.js +2 -0
- package/dist/9630.js.LICENSE.txt +29 -0
- package/dist/9630.js.map +1 -0
- package/dist/986.js +1 -0
- package/dist/9879.js +1 -0
- package/dist/9895.js +1 -0
- package/dist/9900.js +1 -0
- package/dist/9913.js +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +5 -0
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-laboratory-app.js +1 -1
- package/dist/openmrs-esm-laboratory-app.js.buildmanifest.json +429 -363
- package/dist/openmrs-esm-laboratory-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/e2e/README.md +117 -0
- package/e2e/commands/encounter-operations.ts +63 -0
- package/e2e/commands/index.ts +5 -0
- package/e2e/commands/patient-operations.ts +109 -0
- package/e2e/commands/provider-operations.ts +9 -0
- package/e2e/commands/test-order-operations.ts +46 -0
- package/e2e/commands/types/index.ts +157 -0
- package/e2e/commands/visit-operations.ts +38 -0
- package/e2e/core/global-setup.ts +32 -0
- package/e2e/core/index.ts +1 -0
- package/e2e/core/test.ts +31 -0
- package/e2e/fixtures/api.ts +27 -0
- package/e2e/fixtures/fhirApi.ts +28 -0
- package/e2e/fixtures/index.ts +2 -0
- package/e2e/pages/index.ts +1 -0
- package/e2e/pages/laboratory-page.ts +9 -0
- package/e2e/specs/add-lab-results.spec.ts +100 -0
- package/e2e/specs/test-orders.spec.ts +16 -0
- package/e2e/support/github/Dockerfile +34 -0
- package/e2e/support/github/docker-compose.yml +24 -0
- package/e2e/support/github/run-e2e-docker-env.sh +58 -0
- package/example.env +7 -0
- package/jest.config.js +10 -2
- package/package.json +9 -6
- package/playwright.config.ts +36 -0
- package/src/components/orders-table/list-order-details.component.tsx +91 -98
- package/src/components/orders-table/list-order-details.scss +77 -55
- package/src/components/orders-table/orders-data-table.component.tsx +19 -12
- package/src/components/orders-table/orders-data-table.scss +12 -6
- package/src/components/orders-table/orders-date-range-picker.component.tsx +2 -2
- package/src/components/overlay/overlay.component.tsx +8 -10
- package/src/index.ts +1 -0
- package/src/lab-tabs/actions/pickup-lab-request-action.component.tsx +4 -4
- package/src/lab-tabs/laboratory-tabs.component.tsx +48 -50
- package/src/lab-tabs/laboratory-tabs.scss +0 -9
- package/translations/am.json +6 -5
- package/translations/ar.json +6 -5
- package/translations/ar_SY.json +6 -5
- package/translations/bn.json +6 -5
- package/translations/de.json +6 -5
- package/translations/en.json +4 -4
- package/translations/en_US.json +68 -0
- package/translations/es.json +6 -5
- package/translations/es_MX.json +6 -5
- package/translations/fr.json +6 -5
- package/translations/he.json +6 -5
- package/translations/hi.json +6 -5
- package/translations/hi_IN.json +6 -5
- package/translations/id.json +64 -63
- package/translations/it.json +6 -5
- package/translations/ka.json +68 -0
- package/translations/km.json +6 -5
- package/translations/ku.json +6 -5
- package/translations/ky.json +6 -5
- package/translations/lg.json +6 -5
- package/translations/ne.json +6 -5
- package/translations/pl.json +6 -5
- package/translations/pt.json +6 -5
- package/translations/pt_BR.json +6 -5
- package/translations/qu.json +6 -5
- package/translations/ro_RO.json +65 -64
- package/translations/ru_RU.json +6 -5
- package/translations/si.json +6 -5
- package/translations/sw.json +6 -5
- package/translations/sw_KE.json +6 -5
- package/translations/tr.json +6 -5
- package/translations/tr_TR.json +6 -5
- package/translations/uk.json +6 -5
- package/translations/uz.json +6 -5
- package/translations/uz@Latn.json +6 -5
- package/translations/uz_UZ.json +6 -5
- package/translations/vi.json +6 -5
- package/translations/zh.json +6 -5
- package/translations/zh_CN.json +9 -8
- package/.turbo/cache/4de59823a6517c3e-meta.json +0 -1
- package/.turbo/cache/4de59823a6517c3e.tar.zst +0 -0
- package/dist/1448.js +0 -1
- package/dist/1636.js +0 -1
- package/dist/1708.js +0 -1
- package/dist/2156.js +0 -1
- package/dist/2326.js +0 -1
- package/dist/2328.js +0 -1
- package/dist/2636.js +0 -1
- package/dist/2636.js.map +0 -1
- package/dist/2664.js +0 -1
- package/dist/2816.js +0 -1
- package/dist/3240.js +0 -1
- package/dist/3264.js +0 -1
- package/dist/3264.js.map +0 -1
- package/dist/370.js +0 -1
- package/dist/3724.js +0 -1
- package/dist/3724.js.map +0 -1
- package/dist/3872.js +0 -1
- package/dist/3956.js +0 -1
- package/dist/400.js +0 -1
- package/dist/400.js.map +0 -1
- package/dist/436.js +0 -2
- package/dist/436.js.map +0 -1
- package/dist/4412.js +0 -1
- package/dist/4592.js +0 -1
- package/dist/464.js +0 -1
- package/dist/4656.js +0 -1
- package/dist/4744.js +0 -1
- package/dist/4868.js +0 -1
- package/dist/5028.js +0 -1
- package/dist/5086.js +0 -1
- package/dist/5136.js +0 -1
- package/dist/5144.js +0 -2
- package/dist/5144.js.map +0 -1
- package/dist/552.js +0 -1
- package/dist/5992.js +0 -1
- package/dist/6048.js +0 -1
- package/dist/6048.js.map +0 -1
- package/dist/6092.js +0 -1
- package/dist/6172.js +0 -1
- package/dist/6172.js.map +0 -1
- package/dist/6352.js +0 -1
- package/dist/6504.js +0 -1
- package/dist/6676.js +0 -1
- package/dist/6676.js.map +0 -1
- package/dist/6856.js +0 -1
- package/dist/6936.js +0 -1
- package/dist/7295.js +0 -1
- package/dist/7295.js.map +0 -1
- package/dist/7328.js +0 -1
- package/dist/7540.js +0 -1
- package/dist/7540.js.map +0 -1
- package/dist/7640.js +0 -1
- package/dist/7724.js +0 -1
- package/dist/7936.js +0 -2
- package/dist/7936.js.map +0 -1
- package/dist/8064.js +0 -1
- package/dist/8170.js +0 -1
- package/dist/8256.js +0 -1
- package/dist/8320.js +0 -1
- package/dist/8320.js.map +0 -1
- package/dist/8552.js +0 -1
- package/dist/8552.js.map +0 -1
- package/dist/8570.js +0 -1
- package/dist/8684.js +0 -1
- package/dist/8698.js +0 -1
- package/dist/8720.js +0 -1
- package/dist/8728.js +0 -2
- package/dist/8728.js.LICENSE.txt +0 -7
- package/dist/8728.js.map +0 -1
- package/dist/8936.js +0 -1
- package/dist/9064.js +0 -2
- package/dist/9064.js.map +0 -1
- package/dist/9372.js +0 -1
- package/dist/9464.js +0 -1
- package/dist/9656.js +0 -1
- package/dist/9832.js +0 -1
- package/dist/9864.js +0 -1
- package/dist/9960.js +0 -1
- /package/dist/{436.js.LICENSE.txt → 1026.js.LICENSE.txt} +0 -0
- /package/dist/{9064.js.LICENSE.txt → 2934.js.LICENSE.txt} +0 -0
- /package/dist/{5144.js.LICENSE.txt → 3495.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"hash":"99f2b2ec58ba1a5e","duration":52416}
|
|
Binary file
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
+ 58 assets
|
|
13
|
-
assets by path *.json 31.2 KiB
|
|
14
|
-
asset openmrs-esm-laboratory-app.js.buildmanifest.json 28.9 KiB [emitted]
|
|
1
|
+
assets by path *.js 3.97 MiB
|
|
2
|
+
assets by chunk 2.88 MiB (id hint: vendors)
|
|
3
|
+
assets by status 2.64 MiB [big]
|
|
4
|
+
asset 9630.js 2.13 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
|
|
5
|
+
asset 520.js 530 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
|
|
6
|
+
asset 2934.js 131 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
|
|
7
|
+
asset 1026.js 93.4 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
|
|
8
|
+
asset 3495.js 19.3 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
|
|
9
|
+
+ 60 assets
|
|
10
|
+
assets by path *.json 32.6 KiB
|
|
11
|
+
asset openmrs-esm-laboratory-app.js.buildmanifest.json 30.2 KiB [emitted]
|
|
15
12
|
asset routes.json 2.37 KiB [emitted] [from: src/routes.json] [copied]
|
|
16
|
-
orphan modules
|
|
17
|
-
runtime modules
|
|
18
|
-
built modules 9.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
./translations/
|
|
22
|
-
+
|
|
13
|
+
orphan modules 12.5 MiB [orphan] 3080 modules
|
|
14
|
+
runtime modules 40.2 KiB 30 modules
|
|
15
|
+
built modules 9.34 MiB (javascript) 252 bytes (consume-shared) 210 bytes (share-init) [built]
|
|
16
|
+
modules by path ./node_modules/ 8.99 MiB 497 modules
|
|
17
|
+
modules by path ./translations/ 84.1 KiB
|
|
18
|
+
./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
|
|
19
|
+
+ 39 modules
|
|
20
|
+
modules by path ./src/ 273 KiB 27 modules
|
|
23
21
|
consume-shared-module modules 252 bytes
|
|
24
22
|
modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
|
|
25
23
|
+ 4 modules
|
|
26
24
|
provide-module modules 210 bytes
|
|
27
|
-
provide shared module (default) @openmrs/esm-framework@
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
provide shared module (default) @openmrs/esm-framework@7.0.1-pre.3259 = ./node_m...(truncated) 42 bytes [built] [code generated]
|
|
26
|
+
+ 4 modules
|
|
27
|
+
container entry 42 bytes [built] [code generated]
|
|
30
28
|
|
|
31
29
|
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
32
30
|
This can impact web performance.
|
|
33
31
|
Assets:
|
|
34
|
-
main.js (
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
main.js (724 KiB)
|
|
33
|
+
9630.js (2.13 MiB)
|
|
34
|
+
520.js (530 KiB)
|
|
37
35
|
|
|
38
36
|
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
|
39
37
|
Entrypoints:
|
|
40
|
-
main (
|
|
38
|
+
main (724 KiB)
|
|
41
39
|
main.js
|
|
42
40
|
|
|
43
|
-
webpack 5.
|
|
41
|
+
webpack 5.99.9 compiled with 2 warnings in 49296 ms
|
package/dist/1026.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 1026.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_laboratory_app=globalThis.webpackChunk_openmrs_esm_laboratory_app||[]).push([[1026],{91026:(e,t,r)=>{r.r(t),r.d(t,{AbortedDeferredError:()=>me,Await:()=>Sr,BrowserRouter:()=>an,Form:()=>vn,HashRouter:()=>on,Link:()=>dn,MemoryRouter:()=>pr,NavLink:()=>hn,Navigate:()=>mr,NavigationType:()=>n,Outlet:()=>yr,Route:()=>br,Router:()=>gr,RouterProvider:()=>rn,Routes:()=>wr,ScrollRestoration:()=>pn,UNSAFE_DataRouterContext:()=>Rt,UNSAFE_DataRouterStateContext:()=>Dt,UNSAFE_FetchersContext:()=>Xr,UNSAFE_LocationContext:()=>Ct,UNSAFE_NavigationContext:()=>Pt,UNSAFE_RouteContext:()=>_t,UNSAFE_ViewTransitionContext:()=>Yr,UNSAFE_useRouteId:()=>tr,UNSAFE_useScrollRestoration:()=>Cn,createBrowserRouter:()=>$r,createHashRouter:()=>Jr,createMemoryRouter:()=>_r,createPath:()=>I,createRoutesFromChildren:()=>kr,createRoutesFromElements:()=>kr,createSearchParams:()=>Ir,defer:()=>be,generatePath:()=>re,isRouteErrorResponse:()=>Ee,json:()=>pe,matchPath:()=>ne,matchRoutes:()=>W,parsePath:()=>B,redirect:()=>ge,redirectDocument:()=>we,renderMatches:()=>Pr,resolvePath:()=>ie,unstable_HistoryRouter:()=>un,unstable_usePrompt:()=>Ln,unstable_useViewTransitionState:()=>Tn,useActionData:()=>ur,useAsyncError:()=>lr,useAsyncValue:()=>cr,useBeforeUnload:()=>_n,useBlocker:()=>dr,useFetcher:()=>Rn,useFetchers:()=>Dn,useFormAction:()=>xn,useHref:()=>Tt,useInRouterContext:()=>At,useLinkClickHandler:()=>bn,useLoaderData:()=>or,useLocation:()=>jt,useMatch:()=>Ut,useMatches:()=>ar,useNavigate:()=>Ft,useNavigation:()=>rr,useNavigationType:()=>Ot,useOutlet:()=>Nt,useOutletContext:()=>Bt,useParams:()=>zt,useResolvedPath:()=>Ht,useRevalidator:()=>nr,useRouteError:()=>sr,useRouteLoaderData:()=>ir,useRoutes:()=>Wt,useSearchParams:()=>gn,useSubmit:()=>En});var n,a=r(16072),o=r(32934),i=r.t(o,2);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){if(Array.isArray(e))return e}function c(e,t,r,n,a,o,i){try{var u=e[o](i),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,a)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){c(o,n,a,i,u,"next",e)}function u(e){c(o,n,a,i,u,"throw",e)}i(void 0)}))}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t,r){return d=D()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&g(a,r.prototype),a},d.apply(null,arguments)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function w(e,t){return s(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}}(e,t)||x(e,t)||b()}function S(e){return function(e){if(Array.isArray(e))return u(e)}(e)||y(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function x(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function R(e){var t="function"==typeof Map?new Map:void 0;return R=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return d(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)},R(e)}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D=function(){return!!e})()}function k(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function P(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));var _,L="popstate";function T(e){void 0===e&&(e={});var t,r=e.initialEntries,a=void 0===r?["/"]:r,o=e.initialIndex,i=e.v5Compat,u=void 0!==i&&i;t=a.map((function(e,t){return h(e,"string"==typeof e?null:e.state,0===t?"default":void 0)}));var s=f(null==o?t.length-1:o),c=n.Pop,l=null;function f(e){return Math.min(Math.max(e,0),t.length-1)}function d(){return t[s]}function h(e,r,n){void 0===r&&(r=null);var a=F(t?d().pathname:"/",e,r,n);return U("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function v(e){return"string"==typeof e?e:I(e)}return{get index(){return s},get action(){return c},get location(){return d()},createHref:v,createURL:function(e){return new URL(v(e),"http://localhost")},encodeLocation:function(e){var t="string"==typeof e?B(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push:function(e,r){c=n.Push;var a=h(e,r);s+=1,t.splice(s,t.length,a),u&&l&&l({action:c,location:a,delta:1})},replace:function(e,r){c=n.Replace;var a=h(e,r);t[s]=a,u&&l&&l({action:c,location:a,delta:0})},go:function(e){c=n.Pop;var r=f(s+e),a=t[r];s=r,l&&l({action:c,location:a,delta:e})},listen:function(e){return l=e,function(){l=null}}}}function A(e){return void 0===e&&(e={}),N((function(e,t){var r=e.location;return F("",{pathname:r.pathname,search:r.search,hash:r.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:I(t)}),null,e)}function j(e){return void 0===e&&(e={}),N((function(e,t){var r=B(e.location.hash.substr(1)),n=r.pathname,a=void 0===n?"/":n,o=r.search,i=void 0===o?"":o,u=r.hash,s=void 0===u?"":u;return a.startsWith("/")||a.startsWith(".")||(a="/"+a),F("",{pathname:a,search:i,hash:s},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){var r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){var a=e.location.href,o=a.indexOf("#");n=-1===o?a:a.slice(0,o)}return n+"#"+("string"==typeof t?t:I(t))}),(function(e,t){U("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function O(e,t){if(!1===e||null==e)throw new Error(t)}function U(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function M(e,t){return{usr:e.state,key:e.key,idx:t}}function F(e,t,r,n){return void 0===r&&(r=null),C({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?B(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function I(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,a=void 0===n?"":n,o=e.hash,i=void 0===o?"":o;return a&&"?"!==a&&(r+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function B(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function N(e,t,r,a){void 0===a&&(a={});var o=a.window,i=void 0===o?document.defaultView:o,u=a.v5Compat,s=void 0!==u&&u,c=i.history,l=n.Pop,f=null,d=h();function h(){return(c.state||{idx:null}).idx}function v(){l=n.Pop;var e=h(),t=null==e?null:e-d;d=e,f&&f({action:l,location:y.location,delta:t})}function p(e){var t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"==typeof e?e:I(e);return O(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==d&&(d=0,c.replaceState(C({},c.state,{idx:d}),""));var y={get action(){return l},get location(){return e(i,c)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(L,v),f=e,function(){i.removeEventListener(L,v),f=null}},createHref:function(e){return t(i,e)},createURL:p,encodeLocation:function(e){var t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=n.Push;var a=F(y.location,e,t);r&&r(a,e);var o=M(a,d=h()+1),u=y.createHref(a);try{c.pushState(o,"",u)}catch(e){if(m(e,DOMException)&&"DataCloneError"===e.name)throw e;i.location.assign(u)}s&&f&&f({action:l,location:y.location,delta:1})},replace:function(e,t){l=n.Replace;var a=F(y.location,e,t);r&&r(a,e);var o=M(a,d=h()),i=y.createHref(a);c.replaceState(o,"",i),s&&f&&f({action:l,location:y.location,delta:0})},go:function(e){return c.go(e)}};return y}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(_||(_={}));var z=new Set(["lazy","caseSensitive","path","id","index","children"]);function H(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((function(e,a){var o=S(r).concat([a]),i="string"==typeof e.id?e.id:o.join("-");if(O(!0!==e.index||!e.children,"Cannot specify children on an index route"),O(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){var u=C({},e,t(e),{id:i});return n[i]=u,u}var s=C({},e,t(e),{id:i,children:void 0});return n[i]=s,e.children&&(s.children=H(e.children,t,o,n)),s}))}function W(e,t,r){void 0===r&&(r="/");var n=oe(("string"==typeof t?B(t):t).pathname||"/",r);if(null==n)return null;var a=$(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var r=e.length===t.length&&e.slice(0,-1).every((function(e,r){return e===t[r]}));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(a);for(var o=null,i=0;null==o&&i<a.length;++i)o=te(a[i],ae(n));return o}function K(e,t){var r=e.route,n=e.pathname,a=e.params;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function $(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");var a=function(e,a,o){var i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(O(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));var u=fe([n,i.relativePath]),s=r.concat(i);e.children&&e.children.length>0&&(O(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),$(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:ee(u,e.index),routesMeta:s})};return e.forEach((function(e,t){var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?")){var n=!0,o=!1,i=void 0;try{for(var u,s=J(e.path)[Symbol.iterator]();!(n=(u=s.next()).done);n=!0){var c=u.value;a(e,t,c)}}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}}else a(e,t)})),t}function J(e){var t,r=e.split("/");if(0===r.length)return[];var n,a=s(n=r)||y(n)||x(n)||b(),o=a[0],i=a.slice(1),u=o.endsWith("?"),c=o.replace(/\?$/,"");if(0===i.length)return u?[c,""]:[c];var l,f=J(i.join("/")),d=[];return(t=d).push.apply(t,S(f.map((function(e){return""===e?c:[c,e].join("/")})))),u&&(l=d).push.apply(l,S(f)),d.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var q=/^:[\w-]+$/,V=3,Y=2,X=1,G=10,Q=-2,Z=function(e){return"*"===e};function ee(e,t){var r=e.split("/"),n=r.length;return r.some(Z)&&(n+=Q),t&&(n+=Y),r.filter((function(e){return!Z(e)})).reduce((function(e,t){return e+(q.test(t)?V:""===t?X:G)}),n)}function te(e,t){for(var r=e.routesMeta,n={},a="/",o=[],i=0;i<r.length;++i){var u=r[i],s=i===r.length-1,c="/"===a?t:t.slice(a.length)||"/",l=ne({path:u.relativePath,caseSensitive:u.caseSensitive,end:s},c);if(!l)return null;Object.assign(n,l.params);var f=u.route;o.push({params:n,pathname:fe([a,l.pathname]),pathnameBase:de(fe([a,l.pathnameBase])),route:f}),"/"!==l.pathnameBase&&(a=fe([a,l.pathnameBase]))}return o}function re(e,t){void 0===t&&(t={});var r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(U(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));var n=r.startsWith("/")?"/":"",a=function(e){return null==e?"":"string"==typeof e?e:String(e)};return n+r.split(/\/+/).map((function(e,r,n){if(r===n.length-1&&"*"===e)return a(t["*"]);var o=e.match(/^:([\w-]+)(\??)$/);if(o){var i=w(o,3),u=i[1],s=i[2],c=t[u];return O("?"===s||null!=c,'Missing ":'+u+'" param'),a(c)}return e.replace(/\?$/g,"")})).filter((function(e){return!!e})).join("/")}function ne(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});var r=w(function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),U("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(function(e,t,r){return n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"}));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),2),n=r[0],a=r[1],o=t.match(n);if(!o)return null;var i=o[0],u=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:a.reduce((function(e,t,r){var n=t.paramName,a=t.isOptional;if("*"===n){var o=s[r]||"";u=i.slice(0,i.length-o.length).replace(/(.)\/+$/,"$1")}var c=s[r];return e[n]=a&&!c?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return U(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(c||"",n),e}),{}),pathname:i,pathnameBase:u,pattern:e}}function ae(e){try{return decodeURI(e)}catch(t){return U(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function oe(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function ie(e,t){void 0===t&&(t="/");var r="string"==typeof e?B(e):e,n=r.pathname,a=r.search,o=void 0===a?"":a,i=r.hash,u=void 0===i?"":i,s=n?n.startsWith("/")?n:function(e,t){var r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(n,t):t;return{pathname:s,search:he(o),hash:ve(u)}}function ue(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function se(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function ce(e,t){var r=se(e);return t?r.map((function(t,r){return r===e.length-1?t.pathname:t.pathnameBase})):r.map((function(e){return e.pathnameBase}))}function le(e,t,r,n){var a;void 0===n&&(n=!1),"string"==typeof e?a=B(e):(O(!(a=C({},e)).pathname||!a.pathname.includes("?"),ue("?","pathname","search",a)),O(!a.pathname||!a.pathname.includes("#"),ue("#","pathname","hash",a)),O(!a.search||!a.search.includes("#"),ue("#","search","hash",a)));var o,i=""===e||""===a.pathname,u=i?"/":a.pathname;if(null==u)o=r;else{var s=t.length-1;if(!n&&u.startsWith("..")){for(var c=u.split("/");".."===c[0];)c.shift(),s-=1;a.pathname=c.join("/")}o=s>=0?t[s]:"/"}var l=ie(a,o),f=u&&"/"!==u&&u.endsWith("/"),d=(i||"."===u)&&r.endsWith("/");return l.pathname.endsWith("/")||!f&&!d||(l.pathname+="/"),l}var fe=function(e){return e.join("/").replace(/\/\/+/g,"/")},de=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},he=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},ve=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},pe=function(e,t){void 0===t&&(t={});var r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),C({},r,{headers:n}))},me=function(e){function t(){return f(this,t),e=this,n=arguments,r=p(r=t),a=e,!(o=D()?Reflect.construct(r,n||[],p(e).constructor):r.apply(e,n))||"object"!==E(o)&&"function"!=typeof o?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a):o;var e,r,n,a,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),t}(R(Error)),ye=function(){function e(t,r){var n,a=this;f(this,e),this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],O(t&&"object"===(void 0===t?"undefined":E(t))&&!Array.isArray(t),"defer() only accepts plain objects"),this.abortPromise=new Promise((function(e,t){return n=t})),this.controller=new AbortController;var o=function(){return n(new me("Deferred data aborted"))};this.unlistenAbortSignal=function(){return a.controller.signal.removeEventListener("abort",o)},this.controller.signal.addEventListener("abort",o),this.data=Object.entries(t).reduce((function(e,t){var r=w(t,2),n=r[0],o=r[1];return Object.assign(e,v({},n,a.trackPromise(n,o)))}),{}),this.done&&this.unlistenAbortSignal(),this.init=r}var t,r;return t=e,(r=[{key:"trackPromise",value:function(e,t){var r=this;if(!m(t,Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);var n=Promise.race([t,this.abortPromise]).then((function(t){return r.onSettle(n,e,void 0,t)}),(function(t){return r.onSettle(n,e,t)}));return n.catch((function(){})),Object.defineProperty(n,"_tracked",{get:function(){return!0}}),n}},{key:"onSettle",value:function(e,t,r,n){if(this.controller.signal.aborted&&m(r,me))return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:function(){return r}}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){var a=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:function(){return a}}),this.emit(!1,t),Promise.reject(a)}return void 0===n?(Object.defineProperty(e,"_error",{get:function(){return r}}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:function(){return n}}),this.emit(!1,t),n)}},{key:"emit",value:function(e,t){this.subscribers.forEach((function(r){return r(e,t)}))}},{key:"subscribe",value:function(e){var t=this;return this.subscribers.add(e),function(){return t.subscribers.delete(e)}}},{key:"cancel",value:function(){var e=this;this.controller.abort(),this.pendingKeysSet.forEach((function(t,r){return e.pendingKeysSet.delete(r)})),this.emit(!0)}},{key:"resolveData",value:function(e){return l((function(){var t,r,n;return k(this,(function(a){switch(a.label){case 0:return t=this,r=!1,this.done?[3,2]:(n=function(){return t.cancel()},e.addEventListener("abort",n),[4,new Promise((function(r){t.subscribe((function(a){e.removeEventListener("abort",n),(a||t.done)&&r(a)}))}))]);case 1:r=a.sent(),a.label=2;case 2:return[2,r]}}))})).call(this)}},{key:"done",get:function(){return 0===this.pendingKeysSet.size}},{key:"unwrappedData",get:function(){return O(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((function(e,t){var r=w(t,2),n=r[0],a=r[1];return Object.assign(e,v({},n,function(e){if(!function(e){return m(e,Promise)&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}(a)))}),{})}},{key:"pendingKeys",get:function(){return Array.from(this.pendingKeysSet)}}])&&h(t.prototype,r),e}(),be=function(e,t){return void 0===t&&(t={}),new ye(e,"number"==typeof t?{status:t}:t)},ge=function(e,t){void 0===t&&(t=302);var r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);var n=new Headers(r.headers);return n.set("Location",e),new Response(null,C({},r,{headers:n}))},we=function(e,t){var r=ge(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},Se=function e(t,r,n,a){f(this,e),void 0===a&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,m(n,Error)?(this.data=n.toString(),this.error=n):this.data=n};function Ee(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var xe=["post","put","patch","delete"],Re=new Set(xe),De=["get"].concat(S(xe)),ke=new Set(De),Pe=new Set([301,302,303,307,308]),Ce=new Set([307,308]),_e={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Le={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Te={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=function(e){return{hasErrorBoundary:Boolean(e.hasErrorBoundary)}},Oe="remix-router-transitions";function Ue(e){var t,r=e.window?e.window:"undefined"!=typeof window?window:void 0,a=void 0!==r&&void 0!==r.document&&void 0!==r.document.createElement,o=!a;if(O(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){var i=e.detectErrorBoundary;t=function(e){return{hasErrorBoundary:i(e)}}}else t=je;var u,s,c={},f=H(e.routes,t,void 0,c),d=e.basename||"/",h=C({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),p=null,m=new Set,y=null,b=null,g=null,E=null!=e.hydrationData,x=W(f,e.history.location,d),R=null;if(null==x){var D=Xe(404,{pathname:e.history.location.pathname}),P=Ye(f);x=P.matches,R=v({},P.route.id,D)}var L,T=x.some((function(e){return e.route.lazy})),A=x.some((function(e){return e.route.loader}));if(T)s=!1;else if(A)if(h.v7_partialHydration){var j=e.hydrationData?e.hydrationData.loaderData:null,M=e.hydrationData?e.hydrationData.errors:null;s=x.every((function(e){return e.route.loader&&!0!==e.route.loader.hydrate&&(j&&void 0!==j[e.route.id]||M&&void 0!==M[e.route.id])}))}else s=null!=e.hydrationData;else s=!0;var I,B={historyAction:e.history.action,location:e.history.location,matches:x,initialized:s,navigation:_e,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},N=n.Pop,z=!1,$=!1,J=new Map,q=null,V=!1,Y=!1,X=[],G=[],Q=new Map,Z=0,ee=-1,te=new Map,re=new Set,ne=new Map,ae=new Map,ie=new Set,ue=new Map,se=new Map,ce=!1;function le(e,t){void 0===t&&(t={}),B=C({},B,e);var r=[],n=[];h.v7_fetcherPersist&&B.fetchers.forEach((function(e,t){"idle"===e.state&&(ie.has(t)?n.push(t):r.push(t))})),S(m).forEach((function(e){return e(B,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})})),h.v7_fetcherPersist&&(r.forEach((function(e){return B.fetchers.delete(e)})),n.forEach((function(e){return Se(e)})))}function fe(t,r,a){var o,i,s,c=(void 0===a?{}:a).flushSync,l=null!=B.actionData&&null!=B.navigation.formMethod&&rt(B.navigation.formMethod)&&"loading"===B.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);s=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:l?B.actionData:null;var d=r.loaderData?qe(B.loaderData,r.loaderData,r.matches||[],r.errors):B.loaderData,h=B.blockers;h.size>0&&(h=new Map(h)).forEach((function(e,t){return h.set(t,Te)}));var v,p=!0===z||null!=B.navigation.formMethod&&rt(B.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(u&&(f=u,u=void 0),V||N===n.Pop||(N===n.Push?e.history.push(t,t.state):N===n.Replace&&e.history.replace(t,t.state)),N===n.Pop){var m=J.get(B.location.pathname);m&&m.has(t.pathname)?v={currentLocation:B.location,nextLocation:t}:J.has(t.pathname)&&(v={currentLocation:t,nextLocation:B.location})}else if($){var y=J.get(B.location.pathname);y?y.add(t.pathname):(y=new Set([t.pathname]),J.set(B.location.pathname,y)),v={currentLocation:B.location,nextLocation:t}}le(C({},r,{actionData:s,loaderData:d,historyAction:N,location:t,initialized:!0,navigation:_e,revalidation:"idle",restoreScrollPosition:ze(t,r.matches||B.matches),preventScrollReset:p,blockers:h}),{viewTransitionOpts:v,flushSync:!0===c}),N=n.Pop,z=!1,$=!1,V=!1,Y=!1,X=[],G=[]}function de(t,r,n){return l((function(){var a,o,i,s,c,l,h,p,m,b,w,S,E,x,R,D;return k(this,(function(k){switch(k.label){case 0:return I&&I.abort(),I=null,N=t,V=!0===(n&&n.startUninterruptedRevalidation),function(e,t){if(y&&g){var r=Ne(e,t);y[r]=g()}}(B.location,B.matches),z=!0===(n&&n.preventScrollReset),$=!0===(n&&n.enableViewTransition),a=u||f,o=n&&n.overrideNavigation,i=W(a,r,d),s=!0===(n&&n.flushSync),i?!B.initialized||Y||(P=B.location,_=r,P.pathname!==_.pathname||P.search!==_.search||(""===P.hash||P.hash!==_.hash)&&""===_.hash)||n&&n.submission&&rt(n.submission.formMethod)?(I=new AbortController,m=We(e.history,r,I.signal,n&&n.submission),n&&n.pendingError?(w=v({},Ve(i).route.id,n.pendingError),[3,3]):[3,1]):(fe(r,{matches:i},{flushSync:s}),[2]):(c=Xe(404,{pathname:r.pathname}),l=Ye(a),h=l.matches,p=l.route,Be(),fe(r,{matches:h,loaderData:{},errors:v({},p.id,c)},{flushSync:s}),[2]);case 1:return n&&n.submission&&rt(n.submission.formMethod)?[4,he(m,r,n.submission,i,{replace:n.replace,flushSync:s})]:[3,3];case 2:if((S=k.sent()).shortCircuited)return[2];b=S.pendingActionData,w=S.pendingActionError,o=st(r,n.submission),s=!1,m=new Request(m.url,{signal:m.signal}),k.label=3;case 3:return[4,ve(m,r,i,o,n&&n.submission,n&&n.fetcherSubmission,n&&n.replace,n&&!0===n.initialHydration,s,b,w)];case 4:return E=k.sent(),x=E.shortCircuited,R=E.loaderData,D=E.errors,x||(I=null,fe(r,C({matches:i},b?{actionData:b}:{},{loaderData:R,errors:D}))),[2]}var P,_}))}))()}function he(e,r,a,o,i){return l((function(){var u,s,l,f,p;return k(this,(function(m){switch(m.label){case 0:return void 0===i&&(i={}),ye(),u=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(r,a),le({navigation:u},{flushSync:!0===i.flushSync}),(l=it(o,r)).route.action||l.route.lazy?[3,1]:(s={type:_.error,error:Xe(405,{method:e.method,pathname:r.pathname,routeId:l.route.id})},[3,3]);case 1:return[4,He("action",e,l,o,c,t,d,h.v7_relativeSplatPath)];case 2:if(s=m.sent(),e.signal.aborted)return[2,{shortCircuited:!0}];m.label=3;case 3:return tt(s)?(f=i&&null!=i.replace?i.replace:s.location===B.location.pathname+B.location.search,[4,pe(B,s,{submission:a,replace:f})]):[3,5];case 4:return m.sent(),[2,{shortCircuited:!0}];case 5:if(et(s))return p=Ve(o,l.route.id),!0!==(i&&i.replace)&&(N=n.Push),[2,{pendingActionData:{},pendingActionError:v({},p.route.id,s.error)}];if(Ze(s))throw Xe(400,{type:"defer-action"});return[2,{pendingActionData:v({},l.route.id,s.data)}]}}))}))()}function ve(t,r,n,a,o,i,s,c,v,p,m){return l((function(){var l,y,b,g,S,E,x,R,D,P,_,L,T,A,j,O,U,M,F,N,z;return k(this,(function(k){switch(k.label){case 0:return l=a||st(r,o),y=o||i||ut(l),b=u||f,g=w(Ie(e.history,B,n,y,r,h.v7_partialHydration&&!0===c,Y,X,G,ie,ne,re,b,d,p,m),2),S=g[0],E=g[1],Be((function(e){return!(n&&n.some((function(t){return t.route.id===e})))||S&&S.some((function(t){return t.route.id===e}))})),ee=++Z,0===S.length&&0===E.length?(x=Re(),fe(r,C({matches:n,loaderData:{},errors:m||null},p?{actionData:p}:{},x?{fetchers:new Map(B.fetchers)}:{}),{flushSync:v}),[2,{shortCircuited:!0}]):(V||h.v7_partialHydration&&c||(E.forEach((function(e){var t=B.fetchers.get(e.key),r=ct(void 0,t?t.data:void 0);B.fetchers.set(e.key,r)})),R=p||B.actionData,le(C({navigation:l},R?0===Object.keys(R).length?{actionData:null}:{actionData:R}:{},E.length>0?{fetchers:new Map(B.fetchers)}:{}),{flushSync:v})),E.forEach((function(e){Q.has(e.key)&&Ee(e.key),e.controller&&Q.set(e.key,e.controller)})),D=function(){return E.forEach((function(e){return Ee(e.key)}))},I&&I.signal.addEventListener("abort",D),[4,me(B.matches,n,S,E,t)]);case 1:return P=k.sent(),_=P.results,L=P.loaderResults,T=P.fetcherResults,t.signal.aborted?[2,{shortCircuited:!0}]:(I&&I.signal.removeEventListener("abort",D),E.forEach((function(e){return Q.delete(e.key)})),(A=Ge(_))?(A.idx>=S.length&&(j=E[A.idx-S.length].key,re.add(j)),[4,pe(B,A.result,{replace:s})]):[3,3]);case 2:return k.sent(),[2,{shortCircuited:!0}];case 3:return O=Je(B,n,S,L,m,E,T,ue),U=O.loaderData,M=O.errors,ue.forEach((function(e,t){e.subscribe((function(r){(r||e.done)&&ue.delete(t)}))})),F=Re(),N=De(ee),z=F||N||E.length>0,[2,C({loaderData:U,errors:M},z?{fetchers:new Map(B.fetchers)}:{})]}}))}))()}function pe(t,o,i){return l((function(){var u,s,c,l,f,h,v,p,m,y,b,g,w,S;return k(this,(function(E){switch(E.label){case 0:return s=(u=void 0===i?{}:i).submission,c=u.fetcherSubmission,l=u.replace,o.revalidate&&(Y=!0),O(f=F(t.location,o.location,{_isRedirect:!0}),"Expected a location on the redirect navigation"),a&&(h=!1,o.reloadDocument?h=!0:Ae.test(o.location)&&(v=e.history.createURL(o.location),h=v.origin!==r.location.origin||null==oe(v.pathname,d)),h)?(l?r.location.replace(o.location):r.location.assign(o.location),[2]):(I=null,p=!0===l?n.Replace:n.Push,m=t.navigation,y=m.formMethod,b=m.formAction,g=m.formEncType,!s&&!c&&y&&b&&g&&(s=ut(t.navigation)),w=s||c,Ce.has(o.status)&&w&&rt(w.formMethod)?[4,de(p,f,{submission:C({},w,{formAction:o.location}),preventScrollReset:z})]:[3,2]);case 1:return E.sent(),[3,4];case 2:return S=st(f,s),[4,de(p,f,{overrideNavigation:S,fetcherSubmission:c,preventScrollReset:z})];case 3:E.sent(),E.label=4;case 4:return[2]}}))}))()}function me(r,n,a,o,i){return l((function(){var u,s,l;return k(this,(function(f){switch(f.label){case 0:return[4,Promise.all(S(a.map((function(e){return He("loader",i,e,n,c,t,d,h.v7_relativeSplatPath)}))).concat(S(o.map((function(r){return r.matches&&r.match&&r.controller?He("loader",We(e.history,r.path,r.controller.signal),r.match,r.matches,c,t,d,h.v7_relativeSplatPath):{type:_.error,error:Xe(404,{pathname:r.path})}})))))];case 1:return u=f.sent(),s=u.slice(0,a.length),l=u.slice(a.length),[4,Promise.all([nt(r,a,s,s.map((function(){return i.signal})),!1,B.loaderData),nt(r,o.map((function(e){return e.match})),l,o.map((function(e){return e.controller?e.controller.signal:null})),!0)])];case 2:return f.sent(),[2,{results:u,loaderResults:s,fetcherResults:l}]}}))}))()}function ye(){var e;Y=!0,(e=X).push.apply(e,S(Be())),ne.forEach((function(e,t){Q.has(t)&&(G.push(t),Ee(t))}))}function be(e,t,r){void 0===r&&(r={}),B.fetchers.set(e,t),le({fetchers:new Map(B.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function ge(e,t,r,n){void 0===n&&(n={});var a=Ve(B.matches,t);Se(e),le({errors:v({},a.route.id,r),fetchers:new Map(B.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function we(e){return h.v7_fetcherPersist&&(ae.set(e,(ae.get(e)||0)+1),ie.has(e)&&ie.delete(e)),B.fetchers.get(e)||Le}function Se(e){var t=B.fetchers.get(e);!Q.has(e)||t&&"loading"===t.state&&te.has(e)||Ee(e),ne.delete(e),te.delete(e),re.delete(e),ie.delete(e),B.fetchers.delete(e)}function Ee(e){var t=Q.get(e);O(t,"Expected fetch controller: "+e),t.abort(),Q.delete(e)}function xe(e){var t=!0,r=!1,n=void 0;try{for(var a,o=e[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){var i=a.value,u=lt(we(i).data);B.fetchers.set(i,u)}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}}function Re(){var e=[],t=!1,r=!0,n=!1,a=void 0;try{for(var o,i=re[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var u=o.value,s=B.fetchers.get(u);O(s,"Expected fetcher: "+u),"loading"===s.state&&(re.delete(u),e.push(u),t=!0)}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return xe(e),t}function De(e){var t=[],r=!0,n=!1,a=void 0;try{for(var o,i=te[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var u=w(o.value,2),s=u[0];if(u[1]<e){var c=B.fetchers.get(s);O(c,"Expected fetcher: "+s),"loading"===c.state&&(Ee(s),te.delete(s),t.push(s))}}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return xe(t),t.length>0}function ke(e){B.blockers.delete(e),se.delete(e)}function Pe(e,t){var r=B.blockers.get(e)||Te;O("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);var n=new Map(B.blockers);n.set(e,t),le({blockers:n})}function Ue(e){var t=e.currentLocation,r=e.nextLocation,n=e.historyAction;if(0!==se.size){se.size>1&&U(!1,"A router only supports one blocker at a time");var a=Array.from(se.entries()),o=w(a[a.length-1],2),i=o[0],u=o[1],s=B.blockers.get(i);if(!s||"proceeding"!==s.state)return u({currentLocation:t,nextLocation:r,historyAction:n})?i:void 0}}function Be(e){var t=[];return ue.forEach((function(r,n){e&&!e(n)||(r.cancel(),t.push(n),ue.delete(n))})),t}function Ne(e,t){return b&&b(e,t.map((function(e){return K(e,B.loaderData)})))||e.key}function ze(e,t){if(y){var r=Ne(e,t),n=y[r];if("number"==typeof n)return n}return null}return L={get basename(){return d},get future(){return h},get state(){return B},get routes(){return f},get window(){return r},initialize:function(){if(p=e.history.listen((function(t){var r=t.action,n=t.location,a=t.delta;if(!ce){U(0===se.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");var o=Ue({currentLocation:B.location,nextLocation:n,historyAction:r});return o&&null!=a?(ce=!0,e.history.go(-1*a),void Pe(o,{state:"blocked",location:n,proceed:function(){Pe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset:function(){var e=new Map(B.blockers);e.set(o,Te),le({blockers:e})}})):de(r,n)}ce=!1})),a){!function(e,t){try{var r=e.sessionStorage.getItem(Oe);if(r){var n=JSON.parse(r),a=!0,o=!1,i=void 0;try{for(var u,s=Object.entries(n||{})[Symbol.iterator]();!(a=(u=s.next()).done);a=!0){var c=w(u.value,2),l=c[0],f=c[1];f&&Array.isArray(f)&&t.set(l,new Set(f||[]))}}catch(e){o=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(o)throw i}}}}catch(e){}}(r,J);var t=function(){return function(e,t){if(t.size>0){var r={},n=!0,a=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var s=w(i.value,2),c=s[0],l=s[1];r[c]=S(l)}}catch(e){a=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(a)throw o}}try{e.sessionStorage.setItem(Oe,JSON.stringify(r))}catch(e){U(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(r,J)};r.addEventListener("pagehide",t),q=function(){return r.removeEventListener("pagehide",t)}}return B.initialized||de(n.Pop,B.location,{initialHydration:!0}),L},subscribe:function(e){return m.add(e),function(){return m.delete(e)}},enableScrollRestoration:function(e,t,r){if(y=e,g=t,b=r||null,!E&&B.navigation===_e){E=!0;var n=ze(B.location,B.matches);null!=n&&le({restoreScrollPosition:n})}return function(){y=null,g=null,b=null}},navigate:function t(r,a){return l((function(){var o,i,u,s,c,l,f,v,p,m,y,b;return k(this,(function(g){switch(g.label){case 0:return"number"==typeof r?(e.history.go(r),[2]):(o=Me(B.location,B.matches,d,h.v7_prependBasename,r,h.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),i=Fe(h.v7_normalizeFormMethod,!1,o,a),u=i.path,s=i.submission,c=i.error,l=B.location,f=C({},f=F(B.location,u,a&&a.state),e.history.encodeLocation(f)),v=a&&null!=a.replace?a.replace:void 0,p=n.Push,!0===v?p=n.Replace:!1===v||null!=s&&rt(s.formMethod)&&s.formAction===B.location.pathname+B.location.search&&(p=n.Replace),m=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,y=!0===(a&&a.unstable_flushSync),(b=Ue({currentLocation:l,nextLocation:f,historyAction:p}))?(Pe(b,{state:"blocked",location:f,proceed:function(){Pe(b,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),t(r,a)},reset:function(){var e=new Map(B.blockers);e.set(b,Te),le({blockers:e})}}),[2]):[4,de(p,f,{submission:s,pendingError:c,preventScrollReset:m,replace:a&&a.replace,enableViewTransition:a&&a.unstable_viewTransition,flushSync:y})]);case 1:return[2,g.sent()]}}))}))()},fetch:function(r,n,a,i){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Q.has(r)&&Ee(r);var s=!0===(i&&i.unstable_flushSync),p=u||f,m=Me(B.location,B.matches,d,h.v7_prependBasename,a,h.v7_relativeSplatPath,n,null==i?void 0:i.relative),y=W(p,m,d);if(y){var b=Fe(h.v7_normalizeFormMethod,!0,m,i),g=b.path,S=b.submission,E=b.error;if(E)ge(r,n,E,{flushSync:s});else{var x=it(y,g);z=!0===(i&&i.preventScrollReset),S&&rt(S.formMethod)?function(r,n,a,o,i,s,p){l((function(){var l,m,y,b,g,S,E,x,R,D,P,C,_,L,T,A,j,U,M,F,z,H,K,$,J,q;return k(this,(function(k){switch(k.label){case 0:return ye(),ne.delete(r),o.route.action||o.route.lazy?(m=B.fetchers.get(r),be(r,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(p,m),{flushSync:s}),y=new AbortController,b=We(e.history,a,y.signal,p),Q.set(r,y),g=Z,[4,He("action",b,o,i,c,t,d,h.v7_relativeSplatPath)]):(l=Xe(405,{method:p.formMethod,pathname:a,routeId:n}),ge(r,n,l,{flushSync:s}),[2]);case 1:if(S=k.sent(),b.signal.aborted)return Q.get(r)===y&&Q.delete(r),[2];if(h.v7_fetcherPersist&&ie.has(r)){if(tt(S)||et(S))return be(r,lt(void 0)),[2]}else{if(tt(S))return Q.delete(r),ee>g?(be(r,lt(void 0)),[2]):(re.add(r),be(r,ct(p)),[2,pe(B,S,{fetcherSubmission:p})]);if(et(S))return ge(r,n,S.error),[2]}if(Ze(S))throw Xe(400,{type:"defer-action"});return E=B.navigation.location||B.location,x=We(e.history,E,y.signal),R=u||f,O(D="idle"!==B.navigation.state?W(R,B.navigation.location,d):B.matches,"Didn't find any matches after fetcher action"),P=++Z,te.set(r,P),C=ct(p,S.data),B.fetchers.set(r,C),_=w(Ie(e.history,B,D,p,E,!1,Y,X,G,ie,ne,re,R,d,v({},o.route.id,S.data),void 0),2),L=_[0],(T=_[1]).filter((function(e){return e.key!==r})).forEach((function(e){var t=e.key,r=B.fetchers.get(t),n=ct(void 0,r?r.data:void 0);B.fetchers.set(t,n),Q.has(t)&&Ee(t),e.controller&&Q.set(t,e.controller)})),le({fetchers:new Map(B.fetchers)}),A=function(){return T.forEach((function(e){return Ee(e.key)}))},y.signal.addEventListener("abort",A),[4,me(B.matches,D,L,T,x)];case 2:return j=k.sent(),U=j.results,M=j.loaderResults,F=j.fetcherResults,y.signal.aborted?[2]:(y.signal.removeEventListener("abort",A),te.delete(r),Q.delete(r),T.forEach((function(e){return Q.delete(e.key)})),(z=Ge(U))?(z.idx>=L.length&&(H=T[z.idx-L.length].key,re.add(H)),[2,pe(B,z.result)]):(K=Je(B,B.matches,L,M,void 0,T,F,ue),$=K.loaderData,J=K.errors,B.fetchers.has(r)&&(q=lt(S.data),B.fetchers.set(r,q)),De(P),"loading"===B.navigation.state&&P>ee?(O(N,"Expected pending action"),I&&I.abort(),fe(B.navigation.location,{matches:D,loaderData:$,errors:J,fetchers:new Map(B.fetchers)})):(le({errors:J,loaderData:qe(B.loaderData,$,D,J),fetchers:new Map(B.fetchers)}),Y=!1),[2]))}}))}))()}(r,n,g,x,y,s,S):(ne.set(r,{routeId:n,path:g}),function(r,n,a,o,i,u,s){l((function(){var l,f,v,p,m;return k(this,(function(y){switch(y.label){case 0:return l=B.fetchers.get(r),be(r,ct(s,l?l.data:void 0),{flushSync:u}),f=new AbortController,v=We(e.history,a,f.signal),Q.set(r,f),p=Z,[4,He("loader",v,o,i,c,t,d,h.v7_relativeSplatPath)];case 1:return Ze(m=y.sent())?[4,at(m,v.signal,!0)]:[3,3];case 2:m=y.sent()||m,y.label=3;case 3:return Q.get(r)===f&&Q.delete(r),v.signal.aborted?[2]:ie.has(r)?(be(r,lt(void 0)),[2]):tt(m)?ee>p?(be(r,lt(void 0)),[2]):[3,4]:[3,6];case 4:return re.add(r),[4,pe(B,m)];case 5:return y.sent(),[2];case 6:return et(m)?(ge(r,n,m.error),[2]):(O(!Ze(m),"Unhandled fetcher deferred data"),be(r,lt(m.data)),[2])}}))}))()}(r,n,g,x,y,s,S))}}else ge(r,n,Xe(404,{pathname:m}),{flushSync:s})},revalidate:function(){ye(),le({revalidation:"loading"}),"submitting"!==B.navigation.state&&("idle"!==B.navigation.state?de(N||B.historyAction,B.navigation.location,{overrideNavigation:B.navigation}):de(B.historyAction,B.location,{startUninterruptedRevalidation:!0}))},createHref:function(t){return e.history.createHref(t)},encodeLocation:function(t){return e.history.encodeLocation(t)},getFetcher:we,deleteFetcher:function(e){if(h.v7_fetcherPersist){var t=(ae.get(e)||0)-1;t<=0?(ae.delete(e),ie.add(e)):ae.set(e,t)}else Se(e);le({fetchers:new Map(B.fetchers)})},dispose:function(){p&&p(),q&&q(),m.clear(),I&&I.abort(),B.fetchers.forEach((function(e,t){return Se(t)})),B.blockers.forEach((function(e,t){return ke(t)}))},getBlocker:function(e,t){var r=B.blockers.get(e)||Te;return se.get(e)!==t&&se.set(e,t),r},deleteBlocker:ke,_internalFetchControllers:Q,_internalActiveDeferreds:ue,_internalSetRoutes:function(e){u=H(e,t,void 0,c={})}},L}function Me(e,t,r,n,a,o,i,u){var s,c;if(i){s=[];var l=!0,f=!1,d=void 0;try{for(var h,v=t[Symbol.iterator]();!(l=(h=v.next()).done);l=!0){var p=h.value;if(s.push(p),p.route.id===i){c=p;break}}}catch(e){f=!0,d=e}finally{try{l||null==v.return||v.return()}finally{if(f)throw d}}}else s=t,c=t[t.length-1];var m=le(a||".",ce(s,o),oe(e.pathname,r)||e.pathname,"path"===u);return null==a&&(m.search=e.search,m.hash=e.hash),null!=a&&""!==a&&"."!==a||!c||!c.route.index||ot(m.search)||(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(m.pathname="/"===m.pathname?r:fe([r,m.pathname])),I(m)}function Fe(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!ke.has(a.toLowerCase())))return{path:r,error:Xe(405,{method:n.formMethod})};var a,o,i,u=function(){return{path:r,error:Xe(400,{type:"invalid-body"})}},s=n.formMethod||"get",c=e?s.toUpperCase():s.toLowerCase(),l=Qe(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!rt(c))return u();var f="string"==typeof n.body?n.body:m(n.body,FormData)||m(n.body,URLSearchParams)?Array.from(n.body.entries()).reduce((function(e,t){var r=w(t,2);return""+e+r[0]+"="+r[1]+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:c,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}if("application/json"===n.formEncType){if(!rt(c))return u();try{var d="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:c,formAction:l,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch(e){return u()}}}if(O("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=Ke(n.formData),i=n.formData;else if(m(n.body,FormData))o=Ke(n.body),i=n.body;else if(m(n.body,URLSearchParams))i=$e(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{i=$e(o=new URLSearchParams(n.body))}catch(e){return u()}var h={formMethod:c,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(rt(h.formMethod))return{path:r,submission:h};var v=B(r);return t&&v.search&&ot(v.search)&&o.append("index",""),v.search="?"+o,{path:I(v),submission:h}}function Ie(e,t,r,n,a,o,i,u,s,c,l,f,d,h,v,p){var m=p?Object.values(p)[0]:v?Object.values(v)[0]:void 0,y=e.createURL(t.location),b=e.createURL(a),g=p?Object.keys(p)[0]:void 0,w=function(e,t){var r=e;if(t){var n=e.findIndex((function(e){return e.route.id===t}));n>=0&&(r=e.slice(0,n))}return r}(r,g).filter((function(e,r){var a=e.route;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return!!a.loader.hydrate||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,r){var n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||u.some((function(t){return t===e.route.id})))return!0;var s=t.matches[r],c=e;return Ne(e,C({currentUrl:y,currentParams:s.params,nextUrl:b,nextParams:c.params},n,{actionResult:m,defaultShouldRevalidate:i||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||Be(s,c)}))})),S=[];return l.forEach((function(e,a){if(!o&&r.some((function(t){return t.route.id===e.routeId}))&&!c.has(a)){var u=W(d,e.path,h);if(u){var l=t.fetchers.get(a),v=it(u,e.path);!f.has(a)&&(s.includes(a)||(l&&"idle"!==l.state&&void 0===l.data?i:Ne(v,C({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:m,defaultShouldRevalidate:i}))))&&S.push({key:a,routeId:e.routeId,path:e.path,matches:u,match:v,controller:new AbortController})}else S.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null})}})),[w,S]}function Be(e,t){var r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ne(e,t){if(e.route.shouldRevalidate){var r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ze(e,t,r){return l((function(){var n,a,o,i,u;return k(this,(function(s){switch(s.label){case 0:return e.lazy?[4,e.lazy()]:[2];case 1:if(n=s.sent(),!e.lazy)return[2];for(var c in O(a=r[e.id],"No route found in manifest"),o={},n)i=a[c],U(!(u=void 0!==i&&"hasErrorBoundary"!==c),'Route "'+a.id+'" has a static property "'+c+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+c+'" will be ignored.'),u||z.has(c)||(o[c]=n[c]);return Object.assign(a,o),Object.assign(a,C({},t(a),{lazy:void 0})),[2]}}))}))()}function He(e,t,r,n,a,o,i,u,s){return l((function(){var c,l,f,d,h,v,p,m,y,b,g,w,S,x,R,D,P,C,L,T,A;return k(this,(function(k){switch(k.label){case 0:void 0===s&&(s={}),d=function(e){var n,a=new Promise((function(e,t){return n=t}));return f=function(){return n()},t.signal.addEventListener("abort",f),Promise.race([e({request:t,params:r.params,context:s.requestContext}),a])},k.label=1;case 1:return k.trys.push([1,12,13,14]),h=r.route[e],r.route.lazy?h?[4,Promise.all([d(h).catch((function(e){v=e})),ze(r.route,o,a)])]:[3,3]:[3,8];case 2:if(p=k.sent(),v)throw v;return l=p[0],[3,7];case 3:return[4,ze(r.route,o,a)];case 4:return k.sent(),(h=r.route[e])?[4,d(h)]:[3,6];case 5:return l=k.sent(),[3,7];case 6:if("action"===e)throw m=new URL(t.url),y=m.pathname+m.search,Xe(405,{method:t.method,pathname:y,routeId:r.route.id});return[2,{type:_.data,data:void 0}];case 7:return[3,11];case 8:if(h)return[3,9];throw Xe(404,{pathname:(b=new URL(t.url)).pathname+b.search});case 9:return[4,d(h)];case 10:l=k.sent(),k.label=11;case 11:return O(void 0!==l,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`."),[3,14];case 12:return g=k.sent(),c=_.error,l=g,[3,14];case 13:return f&&t.signal.removeEventListener("abort",f),[7];case 14:if(null==(j=l)||"number"!=typeof j.status||"string"!=typeof j.statusText||"object"!==E(j.headers)||void 0===j.body)return[3,24];if(w=l.status,Pe.has(w)){if(O(S=l.headers.get("Location"),"Redirects returned/thrown from loaders/actions must have a Location header"),Ae.test(S)?s.isStaticRequest||(x=new URL(t.url),R=S.startsWith("//")?new URL(x.protocol+S):new URL(S),D=null!=oe(R.pathname,i),R.origin===x.origin&&D&&(S=R.pathname+R.search+R.hash)):S=Me(new URL(t.url),n.slice(0,n.indexOf(r)+1),i,!0,S,u),s.isStaticRequest)throw l.headers.set("Location",S),l;return[2,{type:_.redirect,status:w,location:S,revalidate:null!==l.headers.get("X-Remix-Revalidate"),reloadDocument:null!==l.headers.get("X-Remix-Reload-Document")}]}if(s.isRouteRequest)throw{type:c===_.error?_.error:_.data,response:l};k.label=15;case 15:return k.trys.push([15,22,,23]),(C=l.headers.get("Content-Type"))&&/\bapplication\/json\b/.test(C)?null!=l.body?[3,16]:(P=null,[3,18]):[3,19];case 16:return[4,l.json()];case 17:P=k.sent(),k.label=18;case 18:return[3,21];case 19:return[4,l.text()];case 20:P=k.sent(),k.label=21;case 21:return[3,23];case 22:return L=k.sent(),[2,{type:_.error,error:L}];case 23:return c===_.error?[2,{type:c,error:new Se(w,l.statusText,P),headers:l.headers}]:[2,{type:_.data,data:P,statusCode:l.status,headers:l.headers}];case 24:return c===_.error?[2,{type:c,error:l}]:(U=l)&&"object"===(void 0===U?"undefined":E(U))&&"object"===E(U.data)&&"function"==typeof U.subscribe&&"function"==typeof U.cancel&&"function"==typeof U.resolveData?[2,{type:_.deferred,deferredData:l,statusCode:null==(T=l.init)?void 0:T.status,headers:(null==(A=l.init)?void 0:A.headers)&&new Headers(l.init.headers)}]:[2,{type:_.data,data:l}]}var j,U}))}))()}function We(e,t,r,n){var a=e.createURL(Qe(t)).toString(),o={signal:r};if(n&&rt(n.formMethod)){var i=n.formMethod,u=n.formEncType;o.method=i.toUpperCase(),"application/json"===u?(o.headers=new Headers({"Content-Type":u}),o.body=JSON.stringify(n.json)):"text/plain"===u?o.body=n.text:"application/x-www-form-urlencoded"===u&&n.formData?o.body=Ke(n.formData):o.body=n.formData}return new Request(a,o)}function Ke(e){var t=new URLSearchParams,r=!0,n=!1,a=void 0;try{for(var o,i=e.entries()[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var u=w(o.value,2),s=u[0],c=u[1];t.append(s,"string"==typeof c?c:c.name)}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return t}function $e(e){var t=new FormData,r=!0,n=!1,a=void 0;try{for(var o,i=e.entries()[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var u=w(o.value,2),s=u[0],c=u[1];t.append(s,c)}}catch(e){n=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw a}}return t}function Je(e,t,r,n,a,o,i,u){for(var s=function(e,t,r,n,a){var o,i={},u=null,s=!1,c={};return r.forEach((function(r,l){var f=t[l].route.id;if(O(!tt(r),"Cannot handle redirect results in processLoaderData"),et(r)){var d=Ve(e,f),h=r.error;n&&(h=Object.values(n)[0],n=void 0),null==(u=u||{})[d.route.id]&&(u[d.route.id]=h),i[f]=void 0,s||(s=!0,o=Ee(r.error)?r.error.status:500),r.headers&&(c[f]=r.headers)}else Ze(r)?(a.set(f,r.deferredData),i[f]=r.deferredData.data):i[f]=r.data,null==r.statusCode||200===r.statusCode||s||(o=r.statusCode),r.headers&&(c[f]=r.headers)})),n&&(u=n,i[Object.keys(n)[0]]=void 0),{loaderData:i,errors:u,statusCode:o||200,loaderHeaders:c}}(t,r,n,a,u),c=s.loaderData,l=s.errors,f=0;f<o.length;f++){var d=o[f],h=d.key,p=d.match,m=d.controller;O(void 0!==i&&void 0!==i[f],"Did not find corresponding fetcher result");var y=i[f];if(!m||!m.signal.aborted)if(et(y)){var b=Ve(e.matches,null==p?void 0:p.route.id);l&&l[b.route.id]||(l=C({},l,v({},b.route.id,y.error))),e.fetchers.delete(h)}else if(tt(y))O(!1,"Unhandled fetcher revalidation redirect");else if(Ze(y))O(!1,"Unhandled fetcher deferred data");else{var g=lt(y.data);e.fetchers.set(h,g)}}return{loaderData:c,errors:l}}function qe(e,t,r,n){var a=C({},t),o=!0,i=!1,u=void 0;try{for(var s,c=r[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=l.route.id;if(t.hasOwnProperty(f)?void 0!==t[f]&&(a[f]=t[f]):void 0!==e[f]&&l.route.loader&&(a[f]=e[f]),n&&n.hasOwnProperty(f))break}}catch(e){i=!0,u=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}return a}function Ve(e,t){return(t?e.slice(0,e.findIndex((function(e){return e.route.id===t}))+1):S(e)).reverse().find((function(e){return!0===e.route.hasErrorBoundary}))||e[0]}function Ye(e){var t=1===e.length?e[0]:e.find((function(e){return e.index||!e.path||"/"===e.path}))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Xe(e,t){var r=void 0===t?{}:t,n=r.pathname,a=r.routeId,o=r.method,i=r.type,u="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(u="Bad Request",o&&n&&a?s="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+a+'", so there is no way to handle the request.':"defer-action"===i?s="defer() is not supported in actions":"invalid-body"===i&&(s="Unable to encode submission body")):403===e?(u="Forbidden",s='Route "'+a+'" does not match URL "'+n+'"'):404===e?(u="Not Found",s='No route matches URL "'+n+'"'):405===e&&(u="Method Not Allowed",o&&n&&a?s="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+a+'", so there is no way to handle the request.':o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new Se(e||500,u,new Error(s),!0)}function Ge(e){for(var t=e.length-1;t>=0;t--){var r=e[t];if(tt(r))return{result:r,idx:t}}}function Qe(e){return I(C({},"string"==typeof e?B(e):e,{hash:""}))}function Ze(e){return e.type===_.deferred}function et(e){return e.type===_.error}function tt(e){return(e&&e.type)===_.redirect}function rt(e){return Re.has(e.toLowerCase())}function nt(e,t,r,n,a,o){return l((function(){var i,u;return k(this,(function(s){switch(s.label){case 0:i=function(i){var u,s,c,l,f;return k(this,(function(d){switch(d.label){case 0:return u=r[i],(s=t[i])?(c=e.find((function(e){return e.route.id===s.route.id})),l=null!=c&&!Be(c,s)&&void 0!==(o&&o[s.route.id]),Ze(u)&&(a||l)?(O(f=n[i],"Expected an AbortSignal for revalidating fetcher deferred result"),[4,at(u,f,a).then((function(e){e&&(r[i]=e||r[i])}))]):[3,2]):[2,"continue"];case 1:d.sent(),d.label=2;case 2:return[2]}}))},u=0,s.label=1;case 1:return u<r.length?[5,P(i(u))]:[3,4];case 2:s.sent(),s.label=3;case 3:return u++,[3,1];case 4:return[2]}}))}))()}function at(e,t,r){return l((function(){return k(this,(function(n){switch(n.label){case 0:return void 0===r&&(r=!1),[4,e.deferredData.resolveData(t)];case 1:if(n.sent())return[2];if(r)try{return[2,{type:_.data,data:e.deferredData.unwrappedData}]}catch(e){return[2,{type:_.error,error:e}]}return[2,{type:_.data,data:e.deferredData.data}]}}))}))()}function ot(e){return new URLSearchParams(e).getAll("index").some((function(e){return""===e}))}function it(e,t){var r="string"==typeof t?B(t).search:t.search;if(e[e.length-1].route.index&&ot(r||""))return e[e.length-1];var n=se(e);return n[n.length-1]}function ut(e){var t=e.formMethod,r=e.formAction,n=e.formEncType,a=e.text,o=e.formData,i=e.json;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function st(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ct(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function lt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dt(e,t,r){return t=mt(t),n=e,!(a=Et()?Reflect.construct(t,r||[],mt(e).constructor):t.apply(e,r))||"object"!=((o=a)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof a?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n):a;var n,a,o}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pt(e,t,r){return t&&vt(e.prototype,t),r&&vt(e,r),e}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}function yt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&>(e,t)}function bt(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function gt(e,t){return gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gt(e,t)}function wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}}(e,t)||St(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){if(e){if("string"==typeof e)return ft(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ft(e,t):void 0}}function Et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Et=function(){return!!e})()}function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xt.apply(this,arguments)}Symbol("deferred");var Rt=a.createContext(null),Dt=a.createContext(null),kt=a.createContext(null),Pt=a.createContext(null),Ct=a.createContext(null),_t=a.createContext({outlet:null,matches:[],isDataRoute:!1}),Lt=a.createContext(null);function Tt(e,t){var r=(void 0===t?{}:t).relative;At()||O(!1);var n=a.useContext(Pt),o=n.basename,i=n.navigator,u=Ht(e,{relative:r}),s=u.hash,c=u.pathname,l=u.search,f=c;return"/"!==o&&(f="/"===c?o:fe([o,c])),i.createHref({pathname:f,search:l,hash:s})}function At(){return null!=a.useContext(Ct)}function jt(){return At()||O(!1),a.useContext(Ct).location}function Ot(){return a.useContext(Ct).navigationType}function Ut(e){At()||O(!1);var t=jt().pathname;return a.useMemo((function(){return ne(e,t)}),[t,e])}function Mt(e){a.useContext(Pt).static||a.useLayoutEffect(e)}function Ft(){var e,t,r;return a.useContext(_t).isDataRoute?(e=Qt(Xt.UseNavigateStable).router,t=er(Gt.UseNavigateStable),r=a.useRef(!1),Mt((function(){r.current=!0})),a.useCallback((function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,xt({fromRouteId:t},a)))}),[e,t])):function(){At()||O(!1);var e=a.useContext(Rt),t=a.useContext(Pt),r=t.basename,n=t.future,o=t.navigator,i=a.useContext(_t).matches,u=jt().pathname,s=JSON.stringify(ce(i,n.v7_relativeSplatPath)),c=a.useRef(!1);return Mt((function(){c.current=!0})),a.useCallback((function(t,n){if(void 0===n&&(n={}),c.current)if("number"!=typeof t){var a=le(t,JSON.parse(s),u,"path"===n.relative);null==e&&"/"!==r&&(a.pathname="/"===a.pathname?r:fe([r,a.pathname])),(n.replace?o.replace:o.push)(a,n.state,n)}else o.go(t)}),[r,o,s,u,e])}()}var It=a.createContext(null);function Bt(){return a.useContext(It)}function Nt(e){var t=a.useContext(_t).outlet;return t?a.createElement(It.Provider,{value:e},t):t}function zt(){var e=a.useContext(_t).matches,t=e[e.length-1];return t?t.params:{}}function Ht(e,t){var r=(void 0===t?{}:t).relative,n=a.useContext(Pt).future,o=a.useContext(_t).matches,i=jt().pathname,u=JSON.stringify(ce(o,n.v7_relativeSplatPath));return a.useMemo((function(){return le(e,JSON.parse(u),i,"path"===r)}),[e,u,i,r])}function Wt(e,t){return Kt(e,t)}function Kt(e,t,r,o){At()||O(!1);var i,u=a.useContext(Pt).navigator,s=a.useContext(_t).matches,c=s[s.length-1],l=c?c.params:{},f=(c&&c.pathname,c?c.pathnameBase:"/"),d=(c&&c.route,jt());if(t){var h,v="string"==typeof t?B(t):t;"/"===f||(null==(h=v.pathname)?void 0:h.startsWith(f))||O(!1),i=v}else i=d;var p=i.pathname||"/",m=W(e,{pathname:"/"===f?p:p.slice(f.length)||"/"}),y=Yt(m&&m.map((function(e){return Object.assign({},e,{params:Object.assign({},l,e.params),pathname:fe([f,u.encodeLocation?u.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:fe([f,u.encodeLocation?u.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),s,r,o);return t&&y?a.createElement(Ct.Provider,{value:{location:xt({pathname:"/",search:"",hash:"",state:null,key:"default"},i),navigationType:n.Pop}},y):y}function $t(){var e=sr(),t=Ee(e)?e.status+" "+e.statusText:bt(e,Error)?e.message:JSON.stringify(e),r=bt(e,Error)?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:n},r):null,null)}var Jt=a.createElement($t,null),qt=function(e){function t(e){var r;return ht(this,t),(r=dt(this,t,[e])).state={location:e.location,revalidation:e.revalidation,error:e.error},r}return yt(t,e),pt(t,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return void 0!==this.state.error?a.createElement(_t.Provider,{value:this.props.routeContext},a.createElement(Lt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}}]),t}(a.Component);function Vt(e){var t=e.routeContext,r=e.match,n=e.children,o=a.useContext(Rt);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(_t.Provider,{value:t},n)}function Yt(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var i;if(null==(i=r)||!i.errors)return null;e=r.matches}var u=e,s=null==(o=r)?void 0:o.errors;if(null!=s){var c=u.findIndex((function(e){return e.route.id&&(null==s?void 0:s[e.route.id])}));c>=0||O(!1),u=u.slice(0,Math.min(u.length,c+1))}var l=!1,f=-1;if(r&&n&&n.v7_partialHydration)for(var d=0;d<u.length;d++){var h=u[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){var v=r.loaderData,p=r.errors,m=h.route.loader&&void 0===v[h.route.id]&&(!p||void 0===p[h.route.id]);if(h.route.lazy||m){l=!0,u=f>=0?u.slice(0,f+1):[u[0]];break}}}return u.reduceRight((function(e,n,o){var i,c,d=!1,h=null,v=null;r&&(i=s&&n.route.id?s[n.route.id]:void 0,h=n.route.errorElement||Jt,l&&(f<0&&0===o?(hr[c="route-fallback"]||(hr[c]=!0),d=!0,v=null):f===o&&(d=!0,v=n.route.hydrateFallbackElement||null)));var p=t.concat(u.slice(0,o+1)),m=function(){var t;return t=i?h:d?v:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Vt,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(qt,{location:r.location,revalidation:r.revalidation,component:h,error:i,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}var Xt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Xt||{}),Gt=function(e){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}(Gt||{});function Qt(e){var t=a.useContext(Rt);return t||O(!1),t}function Zt(e){var t=a.useContext(Dt);return t||O(!1),t}function er(e){var t=function(){var e=a.useContext(_t);return e||O(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||O(!1),r.route.id}function tr(){return er(Gt.UseRouteId)}function rr(){return Zt(Gt.UseNavigation).navigation}function nr(){var e=Qt(Xt.UseRevalidator),t=Zt(Gt.UseRevalidator);return a.useMemo((function(){return{revalidate:e.router.revalidate,state:t.revalidation}}),[e.router.revalidate,t.revalidation])}function ar(){var e=Zt(Gt.UseMatches),t=e.matches,r=e.loaderData;return a.useMemo((function(){return t.map((function(e){return K(e,r)}))}),[t,r])}function or(){var e=Zt(Gt.UseLoaderData),t=er(Gt.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function ir(e){return Zt(Gt.UseRouteLoaderData).loaderData[e]}function ur(){var e=Zt(Gt.UseActionData),t=er(Gt.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function sr(){var e,t=a.useContext(Lt),r=Zt(Gt.UseRouteError),n=er(Gt.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function cr(){var e=a.useContext(kt);return null==e?void 0:e._data}function lr(){var e=a.useContext(kt);return null==e?void 0:e._error}var fr=0;function dr(e){var t=Qt(Xt.UseBlocker),r=t.router,n=t.basename,o=Zt(Gt.UseBlocker),i=wt(a.useState(""),2),u=i[0],s=i[1],c=a.useCallback((function(t){if("function"!=typeof e)return!!e;if("/"===n)return e(t);var r=t.currentLocation,a=t.nextLocation,o=t.historyAction;return e({currentLocation:xt({},r,{pathname:oe(r.pathname,n)||r.pathname}),nextLocation:xt({},a,{pathname:oe(a.pathname,n)||a.pathname}),historyAction:o})}),[n,e]);return a.useEffect((function(){var e=String(++fr);return s(e),function(){return r.deleteBlocker(e)}}),[r]),a.useEffect((function(){""!==u&&r.getBlocker(u,c)}),[r,u,c]),u&&o.blockers.has(u)?o.blockers.get(u):Te}var hr={},vr=a.startTransition;function pr(e){var t=e.basename,r=e.children,n=e.initialEntries,o=e.initialIndex,i=e.future,u=a.useRef();null==u.current&&(u.current=T({initialEntries:n,initialIndex:o,v5Compat:!0}));var s=u.current,c=wt(a.useState({action:s.action,location:s.location}),2),l=c[0],f=c[1],d=(i||{}).v7_startTransition,h=a.useCallback((function(e){d&&vr?vr((function(){return f(e)})):f(e)}),[f,d]);return a.useLayoutEffect((function(){return s.listen(h)}),[s,h]),a.createElement(gr,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:i})}function mr(e){var t=e.to,r=e.replace,n=e.state,o=e.relative;At()||O(!1);var i=a.useContext(Pt),u=i.future,s=(i.static,a.useContext(_t).matches),c=jt().pathname,l=Ft(),f=le(t,ce(s,u.v7_relativeSplatPath),c,"path"===o),d=JSON.stringify(f);return a.useEffect((function(){return l(JSON.parse(d),{replace:r,state:n,relative:o})}),[l,d,o,r,n]),null}function yr(e){return Nt(e.context)}function br(e){O(!1)}function gr(e){var t=e.basename,r=void 0===t?"/":t,o=e.children,i=void 0===o?null:o,u=e.location,s=e.navigationType,c=void 0===s?n.Pop:s,l=e.navigator,f=e.static,d=void 0!==f&&f,h=e.future;At()&&O(!1);var v=r.replace(/^\/*/,"/"),p=a.useMemo((function(){return{basename:v,navigator:l,static:d,future:xt({v7_relativeSplatPath:!1},h)}}),[v,h,l,d]);"string"==typeof u&&(u=B(u));var m=u.pathname,y=void 0===m?"/":m,b=u.search,g=void 0===b?"":b,w=u.hash,S=void 0===w?"":w,E=u.state,x=void 0===E?null:E,R=u.key,D=void 0===R?"default":R,k=a.useMemo((function(){var e=oe(y,v);return null==e?null:{location:{pathname:e,search:g,hash:S,state:x,key:D},navigationType:c}}),[v,y,g,S,x,D,c]);return null==k?null:a.createElement(Pt.Provider,{value:p},a.createElement(Ct.Provider,{children:i,value:k}))}function wr(e){var t=e.children,r=e.location;return Wt(kr(t),r)}function Sr(e){var t=e.children,r=e.errorElement,n=e.resolve;return a.createElement(Rr,{resolve:n,errorElement:r},a.createElement(Dr,null,t))}var Er=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Er||{}),xr=new Promise((function(){})),Rr=function(e){function t(e){var r;return ht(this,t),(r=dt(this,t,[e])).state={error:null},r}return yt(t,e),pt(t,[{key:"componentDidCatch",value:function(e,t){console.error("<Await> caught the following error during render",e,t)}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.errorElement,n=e.resolve,o=null,i=Er.pending;if(bt(n,Promise))if(this.state.error){i=Er.error;var u=this.state.error;o=Promise.reject().catch((function(){})),Object.defineProperty(o,"_tracked",{get:function(){return!0}}),Object.defineProperty(o,"_error",{get:function(){return u}})}else n._tracked?i=void 0!==(o=n)._error?Er.error:void 0!==o._data?Er.success:Er.pending:(i=Er.pending,Object.defineProperty(n,"_tracked",{get:function(){return!0}}),o=n.then((function(e){return Object.defineProperty(n,"_data",{get:function(){return e}})}),(function(e){return Object.defineProperty(n,"_error",{get:function(){return e}})})));else i=Er.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:function(){return!0}}),Object.defineProperty(o,"_data",{get:function(){return n}});if(i===Er.error&&bt(o._error,me))throw xr;if(i===Er.error&&!r)throw o._error;if(i===Er.error)return a.createElement(kt.Provider,{value:o,children:r});if(i===Er.success)return a.createElement(kt.Provider,{value:o,children:t});throw o}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),t}(a.Component);function Dr(e){var t=e.children,r=cr(),n="function"==typeof t?t(r):t;return a.createElement(a.Fragment,null,n)}function kr(e,t){void 0===t&&(t=[]);var r=[];return a.Children.forEach(e,(function(e,n){if(a.isValidElement(e)){var o=(u=t,function(e){if(Array.isArray(e))return ft(e)}(u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||St(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([n]);if(e.type!==a.Fragment){e.type!==br&&O(!1),e.props.index&&e.props.children&&O(!1);var i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=kr(e.props.children,o)),r.push(i)}else r.push.apply(r,kr(e.props.children,o))}var u})),r}function Pr(e){return Yt(e)}function Cr(e){var t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function _r(e,t){return Ue({basename:null==t?void 0:t.basename,future:xt({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:T({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:Cr}).initialize()}function Lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tr(e,t,r,n,a,o,i){try{var u=e[o](i),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,a)}function Ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(this,arguments)}function Or(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}var Ur="get",Mr="application/x-www-form-urlencoded";function Fr(e){return null!=e&&"string"==typeof e.tagName}function Ir(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||(t=e,null!=(r=URLSearchParams)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e:Object.keys(e).reduce((function(t,r){var n=e[r];return t.concat(Array.isArray(n)?n.map((function(e){return[r,e]})):[[r,n]])}),[]));var t,r}var Br=null,Nr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zr(e){return null==e||Nr.has(e)?e:null}var Hr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Wr=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Kr=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function $r(e,t){return Ue({basename:null==t?void 0:t.basename,future:jr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:A({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||qr(),routes:e,mapRouteProperties:Cr,window:null==t?void 0:t.window}).initialize()}function Jr(e,t){return Ue({basename:null==t?void 0:t.basename,future:jr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:j({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||qr(),routes:e,mapRouteProperties:Cr,window:null==t?void 0:t.window}).initialize()}function qr(){var e,t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=jr({},t,{errors:Vr(t.errors)})),t}function Vr(e){if(!e)return null;var t=Object.entries(e),r={},n=!0,a=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var s=Ar(i.value,2),c=s[0],l=s[1];if(l&&"RouteErrorResponse"===l.__type)r[c]=new Se(l.status,l.statusText,l.data,!0===l.internal);else if(l&&"Error"===l.__type){if(l.__subType){var f=window[l.__subType];if("function"==typeof f)try{var d=new f(l.message);d.stack="",r[c]=d}catch(e){}}if(null==r[c]){var h=new Error(l.message);h.stack="",r[c]=h}}else r[c]=l}}catch(e){a=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(a)throw o}}return r}var Yr=a.createContext({isTransitioning:!1}),Xr=a.createContext(new Map),Gr=a.startTransition,Qr=i.flushSync,Zr=a.useId;function en(e){Qr?Qr(e):e()}var tn=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status="pending",this.promise=new Promise((function(e,r){t.resolve=function(r){"pending"===t.status&&(t.status="resolved",e(r))},t.reject=function(e){"pending"===t.status&&(t.status="rejected",r(e))}}))};function rn(e){var t=e.fallbackElement,r=e.router,n=e.future,o=Ar(a.useState(r.state),2),i=o[0],u=o[1],s=Ar(a.useState(),2),c=s[0],l=s[1],f=Ar(a.useState({isTransitioning:!1}),2),d=f[0],h=f[1],v=Ar(a.useState(),2),p=v[0],m=v[1],y=Ar(a.useState(),2),b=y[0],g=y[1],w=Ar(a.useState(),2),S=w[0],E=w[1],x=a.useRef(new Map),R=(n||{}).v7_startTransition,D=a.useCallback((function(e){R?function(e){Gr?Gr(e):e()}(e):e()}),[R]),k=a.useCallback((function(e,t){var n=t.deletedFetchers,a=t.unstable_flushSync,o=t.unstable_viewTransitionOpts;n.forEach((function(e){return x.current.delete(e)})),e.fetchers.forEach((function(e,t){void 0!==e.data&&x.current.set(t,e.data)}));var i=null==r.window||"function"!=typeof r.window.document.startViewTransition;if(o&&!i){if(a){en((function(){b&&(p&&p.resolve(),b.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));var s=r.window.document.startViewTransition((function(){en((function(){return u(e)}))}));return s.finished.finally((function(){en((function(){m(void 0),g(void 0),l(void 0),h({isTransitioning:!1})}))})),void en((function(){return g(s)}))}b?(p&&p.resolve(),b.skipTransition(),E({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(l(e),h({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?en((function(){return u(e)})):D((function(){return u(e)}))}),[r.window,b,p,x,D]);a.useLayoutEffect((function(){return r.subscribe(k)}),[r,k]),a.useEffect((function(){d.isTransitioning&&!d.flushSync&&m(new tn)}),[d]),a.useEffect((function(){if(p&&c&&r.window){var e=c,t=p.promise,n=r.window.document.startViewTransition((function(){return(r=function(){return function(e,t){var r,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}(this,(function(r){switch(r.label){case 0:return D((function(){return u(e)})),[4,t];case 1:return r.sent(),[2]}}))},function(){var e=this,t=arguments;return new Promise((function(n,a){var o=r.apply(e,t);function i(e){Tr(o,n,a,i,u,"next",e)}function u(e){Tr(o,n,a,i,u,"throw",e)}i(void 0)}))})();var r}));n.finished.finally((function(){m(void 0),g(void 0),l(void 0),h({isTransitioning:!1})})),g(n)}}),[D,c,p,r.window]),a.useEffect((function(){p&&c&&i.location.key===c.location.key&&p.resolve()}),[p,b,i.location,c]),a.useEffect((function(){!d.isTransitioning&&S&&(l(S.state),h({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),E(void 0))}),[d.isTransitioning,S]),a.useEffect((function(){}),[]);var P=a.useMemo((function(){return{createHref:r.createHref,encodeLocation:r.encodeLocation,go:function(e){return r.navigate(e)},push:function(e,t,n){return r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})},replace:function(e,t,n){return r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}}}),[r]),C=r.basename||"/",_=a.useMemo((function(){return{router:r,navigator:P,static:!1,basename:C}}),[r,P,C]);return a.createElement(a.Fragment,null,a.createElement(Rt.Provider,{value:_},a.createElement(Dt.Provider,{value:i},a.createElement(Xr.Provider,{value:x.current},a.createElement(Yr.Provider,{value:d},a.createElement(gr,{basename:C,location:i.location,navigationType:i.historyAction,navigator:P,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?a.createElement(nn,{routes:r.routes,future:r.future,state:i}):t))))),null)}function nn(e){var t=e.routes,r=e.future;return Kt(t,void 0,e.state,r)}function an(e){var t=e.basename,r=e.children,n=e.future,o=e.window,i=a.useRef();null==i.current&&(i.current=A({window:o,v5Compat:!0}));var u=i.current,s=Ar(a.useState({action:u.action,location:u.location}),2),c=s[0],l=s[1],f=(n||{}).v7_startTransition,d=a.useCallback((function(e){f&&Gr?Gr((function(){return l(e)})):l(e)}),[l,f]);return a.useLayoutEffect((function(){return u.listen(d)}),[u,d]),a.createElement(gr,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:u,future:n})}function on(e){var t=e.basename,r=e.children,n=e.future,o=e.window,i=a.useRef();null==i.current&&(i.current=j({window:o,v5Compat:!0}));var u=i.current,s=Ar(a.useState({action:u.action,location:u.location}),2),c=s[0],l=s[1],f=(n||{}).v7_startTransition,d=a.useCallback((function(e){f&&Gr?Gr((function(){return l(e)})):l(e)}),[l,f]);return a.useLayoutEffect((function(){return u.listen(d)}),[u,d]),a.createElement(gr,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:u,future:n})}function un(e){var t=e.basename,r=e.children,n=e.future,o=e.history,i=Ar(a.useState({action:o.action,location:o.location}),2),u=i[0],s=i[1],c=(n||{}).v7_startTransition,l=a.useCallback((function(e){c&&Gr?Gr((function(){return s(e)})):s(e)}),[s,c]);return a.useLayoutEffect((function(){return o.listen(l)}),[o,l]),a.createElement(gr,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:o,future:n})}var sn,cn,ln="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,fn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dn=a.forwardRef((function(e,t){var r,n=e.onClick,o=e.relative,i=e.reloadDocument,u=e.replace,s=e.state,c=e.target,l=e.to,f=e.preventScrollReset,d=e.unstable_viewTransition,h=Or(e,Hr),v=a.useContext(Pt).basename,p=!1;if("string"==typeof l&&fn.test(l)&&(r=l,ln))try{var m=new URL(window.location.href),y=l.startsWith("//")?new URL(m.protocol+l):new URL(l),b=oe(y.pathname,v);y.origin===m.origin&&null!=b?l=b+y.search+y.hash:p=!0}catch(e){}var g=Tt(l,{relative:o}),w=bn(l,{replace:u,state:s,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:d});return a.createElement("a",jr({},h,{href:r||g,onClick:p||i?n:function(e){n&&n(e),e.defaultPrevented||w(e)},ref:t,target:c}))})),hn=a.forwardRef((function(e,t){var r=e["aria-current"],n=void 0===r?"page":r,o=e.caseSensitive,i=void 0!==o&&o,u=e.className,s=void 0===u?"":u,c=e.end,l=void 0!==c&&c,f=e.style,d=e.to,h=e.unstable_viewTransition,v=e.children,p=Or(e,Wr),m=Ht(d,{relative:p.relative}),y=jt(),b=a.useContext(Dt),g=a.useContext(Pt),w=g.navigator,S=g.basename,E=null!=b&&Tn(m)&&!0===h,x=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,R=y.pathname,D=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(R=R.toLowerCase(),D=D?D.toLowerCase():null,x=x.toLowerCase()),D&&S&&(D=oe(D,S)||D);var k,P="/"!==x&&x.endsWith("/")?x.length-1:x.length,C=R===x||!l&&R.startsWith(x)&&"/"===R.charAt(P),_=null!=D&&(D===x||!l&&D.startsWith(x)&&"/"===D.charAt(x.length)),L={isActive:C,isPending:_,isTransitioning:E},T=C?n:void 0;k="function"==typeof s?s(L):[s,C?"active":null,_?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");var A="function"==typeof f?f(L):f;return a.createElement(dn,jr({},p,{"aria-current":T,className:k,ref:t,style:A,to:d,unstable_viewTransition:h}),"function"==typeof v?v(L):v)})),vn=a.forwardRef((function(e,t){var r=e.fetcherKey,n=e.navigate,o=e.reloadDocument,i=e.replace,u=e.state,s=e.method,c=void 0===s?Ur:s,l=e.action,f=e.onSubmit,d=e.relative,h=e.preventScrollReset,v=e.unstable_viewTransition,p=Or(e,Kr),m=En(),y=xn(l,{relative:d}),b="get"===c.toLowerCase()?"get":"post";return a.createElement("form",jr({ref:t,method:b,action:y,onSubmit:o?f:function(e){if(f&&f(e),!e.defaultPrevented){e.preventDefault();var t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||c;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:i,state:u,relative:d,preventScrollReset:h,unstable_viewTransition:v})}}},p))}));function pn(e){return Cn({getKey:e.getKey,storageKey:e.storageKey}),null}function mn(e){var t=a.useContext(Rt);return t||O(!1),t}function yn(e){var t=a.useContext(Dt);return t||O(!1),t}function bn(e,t){var r=void 0===t?{}:t,n=r.target,o=r.replace,i=r.state,u=r.preventScrollReset,s=r.relative,c=r.unstable_viewTransition,l=Ft(),f=jt(),d=Ht(e,{relative:s});return a.useCallback((function(t){if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();var r=void 0!==o?o:I(f)===I(d);l(e,{replace:r,state:i,preventScrollReset:u,relative:s,unstable_viewTransition:c})}}),[f,l,d,o,i,n,e,u,s,c])}function gn(e){var t=a.useRef(Ir(e)),r=a.useRef(!1),n=jt(),o=a.useMemo((function(){return function(e,t){var r=Ir(e);return t&&t.forEach((function(e,n){r.has(n)||t.getAll(n).forEach((function(e){r.append(n,e)}))})),r}(n.search,r.current?null:t.current)}),[n.search]),i=Ft(),u=a.useCallback((function(e,t){var n=Ir("function"==typeof e?e(o):e);r.current=!0,i("?"+n,t)}),[i,o]);return[o,u]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(sn||(sn={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(cn||(cn={}));var wn=0,Sn=function(){return"__"+String(++wn)+"__"};function En(){var e=mn(sn.UseSubmit).router,t=a.useContext(Pt).basename,r=tr();return a.useCallback((function(n,a){void 0===a&&(a={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();var o=function(e,t){var r,n,a,o,i,u;if(Fr(u=e)&&"form"===u.tagName.toLowerCase()){var s=e.getAttribute("action");n=s?oe(s,t):null,r=e.getAttribute("method")||Ur,a=zr(e.getAttribute("enctype"))||Mr,o=new FormData(e)}else if(function(e){return Fr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Fr(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){var c=e.form;if(null==c)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');var l=e.getAttribute("formaction")||c.getAttribute("action");if(n=l?oe(l,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||Ur,a=zr(e.getAttribute("formenctype"))||zr(c.getAttribute("enctype"))||Mr,o=new FormData(c,e),!function(){if(null===Br)try{new FormData(document.createElement("form"),0),Br=!1}catch(e){Br=!0}return Br}()){var f=e.name,d=e.type,h=e.value;if("image"===d){var v=f?f+".":"";o.append(v+"x","0"),o.append(v+"y","0")}else f&&o.append(f,h)}}else{if(Fr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ur,n=null,a=Mr,i=e}return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t),i=o.action,u=o.method,s=o.encType,c=o.formData,l=o.body;if(!1===a.navigate){var f=a.fetcherKey||Sn();e.fetch(f,r,a.action||i,{preventScrollReset:a.preventScrollReset,formData:c,body:l,formMethod:a.method||u,formEncType:a.encType||s,unstable_flushSync:a.unstable_flushSync})}else e.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:c,body:l,formMethod:a.method||u,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:r,unstable_flushSync:a.unstable_flushSync,unstable_viewTransition:a.unstable_viewTransition})}),[e,t,r])}function xn(e,t){var r=(void 0===t?{}:t).relative,n=a.useContext(Pt).basename,o=a.useContext(_t);o||O(!1);var i=Ar(o.matches.slice(-1),1)[0],u=jr({},Ht(e||".",{relative:r})),s=jt();if(null==e){u.search=s.search;var c=new URLSearchParams(u.search);c.has("index")&&""===c.get("index")&&(c.delete("index"),u.search=c.toString()?"?"+c.toString():"")}return e&&"."!==e||!i.route.index||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(u.pathname="/"===u.pathname?n:fe([n,u.pathname])),I(u)}function Rn(e){var t,r=(void 0===e?{}:e).key,n=mn(sn.UseFetcher).router,o=yn(cn.UseFetcher),i=a.useContext(Xr),u=a.useContext(_t),s=null==(t=u.matches[u.matches.length-1])?void 0:t.route.id;i||O(!1),u||O(!1),null==s&&O(!1);var c=Zr?Zr():"",l=Ar(a.useState(r||c),2),f=l[0],d=l[1];r&&r!==f?d(r):f||d(Sn()),a.useEffect((function(){return n.getFetcher(f),function(){n.deleteFetcher(f)}}),[n,f]);var h=a.useCallback((function(e,t){s||O(!1),n.fetch(f,s,e,t)}),[f,s,n]),v=En(),p=a.useCallback((function(e,t){v(e,jr({},t,{navigate:!1,fetcherKey:f}))}),[f,v]),m=a.useMemo((function(){return a.forwardRef((function(e,t){return a.createElement(vn,jr({},e,{navigate:!1,fetcherKey:f,ref:t}))}))}),[f]),y=o.fetchers.get(f)||Le,b=i.get(f);return a.useMemo((function(){return jr({Form:m,submit:p,load:h},y,{data:b})}),[m,p,h,y,b])}function Dn(){var e=yn(cn.UseFetchers);return Array.from(e.fetchers.entries()).map((function(e){var t=Ar(e,2),r=t[0];return jr({},t[1],{key:r})}))}var kn="react-router-scroll-positions",Pn={};function Cn(e){var t,r,n=void 0===e?{}:e,o=n.getKey,i=n.storageKey,u=mn(sn.UseScrollRestoration).router,s=yn(cn.UseScrollRestoration),c=s.restoreScrollPosition,l=s.preventScrollReset,f=a.useContext(Pt).basename,d=jt(),h=ar(),v=rr();a.useEffect((function(){return window.history.scrollRestoration="manual",function(){window.history.scrollRestoration="auto"}}),[]),t=a.useCallback((function(){if("idle"===v.state){var e=(o?o(d,h):null)||d.key;Pn[e]=window.scrollY}try{sessionStorage.setItem(i||kn,JSON.stringify(Pn))}catch(e){}window.history.scrollRestoration="auto"}),[i,o,v.state,d,h]),r={}.capture,a.useEffect((function(){var e=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",t,e),function(){window.removeEventListener("pagehide",t,e)}}),[t,r]),"undefined"!=typeof document&&(a.useLayoutEffect((function(){try{var e=sessionStorage.getItem(i||kn);e&&(Pn=JSON.parse(e))}catch(e){}}),[i]),a.useLayoutEffect((function(){var e=o&&"/"!==f?function(e,t){return o(jr({},e,{pathname:oe(e.pathname,f)||e.pathname}),t)}:o,t=null==u?void 0:u.enableScrollRestoration(Pn,(function(){return window.scrollY}),e);return function(){return t&&t()}}),[u,f,o]),a.useLayoutEffect((function(){if(!1!==c)if("number"!=typeof c){if(d.hash){var e=document.getElementById(decodeURIComponent(d.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==l&&window.scrollTo(0,0)}else window.scrollTo(0,c)}),[d,c,l]))}function _n(e,t){var r=(t||{}).capture;a.useEffect((function(){var t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),function(){window.removeEventListener("beforeunload",e,t)}}),[e,r])}function Ln(e){var t=e.when,r=e.message,n=dr(t);a.useEffect((function(){"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())}),[n,r]),a.useEffect((function(){"blocked"!==n.state||t||n.reset()}),[n,t])}function Tn(e,t){void 0===t&&(t={});var r=a.useContext(Yr);null==r&&O(!1);var n=mn(sn.useViewTransitionState).basename,o=Ht(e,{relative:t.relative});if(!r.isTransitioning)return!1;var i=oe(r.currentLocation.pathname,n)||r.currentLocation.pathname,u=oe(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=ne(o.pathname,u)||null!=ne(o.pathname,i)}}}]);
|