react-router 0.0.0-experimental-e16afd9b7 → 0.0.0-experimental-52e9b8eb3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +10 -1
  3. package/dist/index.d.ts +16 -33
  4. package/dist/index.js +1114 -9501
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/components.d.ts +19 -189
  7. package/dist/lib/context.d.ts +4 -4
  8. package/dist/lib/hooks.d.ts +17 -46
  9. package/dist/main.js +1 -1
  10. package/dist/react-router.development.js +1152 -10370
  11. package/dist/react-router.development.js.map +1 -1
  12. package/dist/react-router.production.min.js +2 -2
  13. package/dist/react-router.production.min.js.map +1 -1
  14. package/dist/umd/react-router.development.js +1259 -10541
  15. package/dist/umd/react-router.development.js.map +1 -1
  16. package/dist/umd/react-router.production.min.js +2 -2
  17. package/dist/umd/react-router.production.min.js.map +1 -1
  18. package/package.json +4 -19
  19. package/dist/lib/dom/dom.d.ts +0 -104
  20. package/dist/lib/dom/global.d.ts +0 -38
  21. package/dist/lib/dom/lib.d.ts +0 -572
  22. package/dist/lib/dom/server.d.ts +0 -32
  23. package/dist/lib/dom/ssr/browser.d.ts +0 -3
  24. package/dist/lib/dom/ssr/components.d.ts +0 -94
  25. package/dist/lib/dom/ssr/create-remix-stub.d.ts +0 -56
  26. package/dist/lib/dom/ssr/data.d.ts +0 -7
  27. package/dist/lib/dom/ssr/errorBoundaries.d.ts +0 -33
  28. package/dist/lib/dom/ssr/errors.d.ts +0 -2
  29. package/dist/lib/dom/ssr/fallback.d.ts +0 -2
  30. package/dist/lib/dom/ssr/invariant.d.ts +0 -2
  31. package/dist/lib/dom/ssr/links.d.ts +0 -126
  32. package/dist/lib/dom/ssr/markup.d.ts +0 -5
  33. package/dist/lib/dom/ssr/routeModules.d.ts +0 -141
  34. package/dist/lib/dom/ssr/routes.d.ts +0 -32
  35. package/dist/lib/dom/ssr/server.d.ts +0 -13
  36. package/dist/lib/dom/ssr/single-fetch.d.ts +0 -37
  37. package/dist/lib/router/history.d.ts +0 -249
  38. package/dist/lib/router/index.d.ts +0 -9
  39. package/dist/lib/router/router.d.ts +0 -521
  40. package/dist/lib/router/utils.d.ts +0 -520
  41. package/dist/rsc.js +0 -1641
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v0.0.0-experimental-e16afd9b7
2
+ * React Router v0.0.0-experimental-52e9b8eb3
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("turbo-stream")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","turbo-stream"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactRouter={},e.React,e.ReactDOM,e.turboStream)}(this,(function(e,t,r,n){"use strict";function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=a(t),i=a(r);function l(){return l=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},l.apply(this,arguments)}function s(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}let u=function(e){return e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE",e}({});const c="popstate";function d(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map(((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let o=s(null==n?t.length-1:n),i=u.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[o]}function d(e,r,n){return void 0===r&&(r=null),v(t?c().pathname:"/",e,r,n)}function h(e){return"string"==typeof e?e:y(e)}return{get index(){return o},get action(){return i},get location(){return c()},createHref:h,createURL:e=>new URL(h(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=u.Push;let n=d(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=u.Replace;let n=d(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=u.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function h(e){return void 0===e&&(e={}),w((function(e,t){let{pathname:r,search:n,hash:a}=e.location;return v("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:y(t)}),null,e)}function f(e){return void 0===e&&(e={}),w((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=g(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),v("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:y(t))}),(function(e,t){}),e)}function m(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function v(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?g(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function y(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function g(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function w(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=u.Pop,d=null,h=f();function f(){return(i.state||{idx:null}).idx}function g(){s=u.Pop;let e=f(),t=null==e?null:e-h;h=e,d&&d({action:s,location:b.location,delta:t})}function w(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:y(e);return r=r.replace(/ $/,"%20"),t||m(!1),new URL(r,t)}null==h&&(h=0,i.replaceState(l({},i.state,{idx:h}),""));let b={get action(){return s},get location(){return e(a,i)},listen(e){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(c,g),d=e,()=>{a.removeEventListener(c,g),d=null}},createHref:e=>t(a,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=u.Push;let n=v(b.location,e,t);r&&r(n,e),h=f()+1;let l=p(n,h),c=b.createHref(n);try{i.pushState(l,"",c)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(c)}o&&d&&d({action:s,location:b.location,delta:1})},replace:function(e,t){s=u.Replace;let n=v(b.location,e,t);r&&r(n,e),h=f();let a=p(n,h),l=b.createHref(n);i.replaceState(a,"",l),o&&d&&d({action:s,location:b.location,delta:0})},go:e=>i.go(e)};return b}let b=function(e){return e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error",e}({});const E=new Set(["lazy","caseSensitive","path","id","index","children"]);function S(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map(((e,a)=>{let o=[...r,a],i="string"==typeof e.id?e.id:o.join("-");if(!0===e.index&&e.children&&m(!1),n[i]&&m(!1),function(e){return!0===e.index}(e)){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=S(e.children,t,o,n)),r}}))}function x(e,t,r){void 0===r&&(r="/");let n=T(("string"==typeof t?g(t):t).pathname||"/",r);if(null==n)return null;let a=_(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e<a.length;++e){let t=A(n);o=P(a[e],t)}return o}function R(e,t){let{route:r,pathname:n,params:a}=e;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="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(n)||m(!1),i.relativePath=i.relativePath.slice(n.length));let l=N([n,i.relativePath]),s=r.concat(i);e.children&&e.children.length>0&&(!0===e.index&&m(!1),_(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:k(l,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of C(e.path))a(e,t,r);else a(e,t)})),t}function C(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=C(n.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const D=/^:[\w-]+$/,L=e=>"*"===e;function k(e,t){let r=e.split("/"),n=r.length;return r.some(L)&&(n+=-2),t&&(n+=2),r.filter((e=>!L(e))).reduce(((e,t)=>e+(D.test(t)?3:""===t?1:10)),n)}function P(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,s="/"===a?t:t.slice(a.length)||"/",u=M({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},s);if(!u)return null;Object.assign(n,u.params);let c=i.route;o.push({params:n,pathname:N([a,u.pathname]),pathnameBase:H(N([a,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(a=N([a,u.pathnameBase]))}return o}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");return[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[r];return e[n]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function A(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return e}}function T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function U(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?g(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:B(n),hash:I(a)}}function j(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function F(e,t){let r=j(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function O(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=g(e):(a=l({},e),a.pathname&&a.pathname.includes("?")&&m(!1),a.pathname&&a.pathname.includes("#")&&m(!1),a.search&&a.search.includes("#")&&m(!1));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=U(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&r.endsWith("/");return u.pathname.endsWith("/")||!c&&!d||(u.pathname+="/"),u}const N=e=>e.join("/").replace(/\/\/+/g,"/"),H=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class z extends Error{}class J{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],(!e||"object"!=typeof e||Array.isArray(e))&&m(!1),this.abortPromise=new Promise(((e,t)=>r=t)),this.controller=new AbortController;let n=()=>r(new z("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})}),{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(r,e,void 0,t)),(t=>this.onSettle(r,e,t)));return r.catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof z)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=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:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach((r=>r(e,t)))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t))),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise((t=>{this.subscribe((n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return null!==this.data&&this.done||m(!1),Object.entries(this.data).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:W(n)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function W(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const q=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))};class K{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Y(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const $=["post","put","patch","delete"],V=new Set($),X=["get",...$],G=new Set(X),Q=new Set([301,302,303,307,308]),Z=new Set([307,308]),ee={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},te={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),oe="remix-router-transitions";function ie(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,n=!r;let a;if(e.routes.length>0||m(!1),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=ae;let o,i,s={},c=S(e.routes,a,void 0,s),d=e.basename||"/",h=e.unstable_dataStrategy||ye,f=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),p=null,y=new Set,g=null,w=null,E=null,_=null!=e.hydrationData,C=x(c,e.history.location,d),D=null;if(null==C){let t=Me(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Pe(c);C=r,D={[n.id]:t}}let L,k=C.some((e=>e.route.lazy)),P=C.some((e=>e.route.loader));if(k)i=!1;else if(P)if(f.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=C.findIndex((e=>void 0!==r[e.route.id]));i=C.slice(0,e+1).every(n)}else i=C.every(n)}else i=null!=e.hydrationData;else i=!0;let M,A={historyAction:e.history.action,location:e.history.location,matches:C,initialized:i,navigation:ee,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||D,fetchers:new Map,blockers:new Map},U=u.Pop,j=!1,F=!1,O=new Map,N=null,H=!1,B=!1,I=[],z=[],J=new Map,W=0,q=-1,K=new Map,Y=new Set,$=new Map,V=new Map,X=new Set,G=new Map,Q=new Map,ie=!1,le=null;function se(e,t){void 0===t&&(t={}),A=l({},A,e);let r=[],n=[];f.v7_fetcherPersist&&A.fetchers.forEach(((e,t)=>{"idle"===e.state&&(X.has(t)?n.push(t):r.push(t))})),[...y].forEach((e=>e(A,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),f.v7_fetcherPersist&&(r.forEach((e=>A.fetchers.delete(e))),n.forEach((e=>Ne(e))))}function ue(t,r,n){var a,i,s;let d,{flushSync:h}=void 0===n?{}:n,f=null!=A.actionData&&null!=A.navigation.formMethod&&Be(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);d=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:f?A.actionData:null;let m=r.loaderData?De(A.loaderData,r.loaderData,r.matches||[],r.errors):A.loaderData,p=A.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,re))));let v,y=!0===j||null!=A.navigation.formMethod&&Be(A.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(o&&(c=o,o=void 0),H||U===u.Pop||(U===u.Push?e.history.push(t,t.state):U===u.Replace&&e.history.replace(t,t.state)),U===u.Pop){let e=O.get(A.location.pathname);e&&e.has(t.pathname)?v={currentLocation:A.location,nextLocation:t}:O.has(t.pathname)&&(v={currentLocation:t,nextLocation:A.location})}else if(F){let e=O.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),O.set(A.location.pathname,e)),v={currentLocation:A.location,nextLocation:t}}se(l({},r,{actionData:d,loaderData:m,historyAction:U,location:t,initialized:!0,navigation:ee,revalidation:"idle",restoreScrollPosition:nt(t,r.matches||A.matches),preventScrollReset:y,blockers:p}),{viewTransitionOpts:v,flushSync:!0===h}),U=u.Pop,j=!1,F=!1,H=!1,B=!1,null==(s=le)||s.resolve(),le=null,I=[],z=[]}async function he(t,r,n){M&&M.abort(),M=null,U=t,H=!0===(n&&n.startUninterruptedRevalidation),function(e,t){if(g&&E){let r=rt(e,t);g[r]=E()}}(A.location,A.matches),j=!0===(n&&n.preventScrollReset),F=!0===(n&&n.enableViewTransition);let a=o||c,i=n&&n.overrideNavigation,s=x(a,r,d),h=!0===(n&&n.flushSync);if(!s){let e=Me(404,{pathname:r.pathname}),{matches:t,route:n}=Pe(a);return tt(),void ue(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:h})}if(A.initialized&&!B&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(A.location,r)&&!(n&&n.submission&&Be(n.submission.formMethod)))return void ue(r,{matches:s},{flushSync:h});M=new AbortController;let m,p=Se(e.history,r,M.signal,n&&n.submission);if(n&&n.pendingError)m=[ke(s).route.id,{type:b.error,error:n.pendingError}];else if(n&&n.submission&&Be(n.submission.formMethod)){let t=await async function(e,t,r,n,a){void 0===a&&(a={});let o;xe(),se({navigation:Ye(t,r)},{flushSync:!0===a.flushSync});let i=We(n,t);if(i.route.action||i.route.lazy){if(o=(await pe("action",e,[i],n))[0],e.signal.aborted)return{shortCircuited:!0}}else o={type:b.error,error:Me(405,{method:e.method,pathname:t.pathname,routeId:i.route.id})};if(Oe(o)){let t;if(a&&null!=a.replace)t=a.replace;else{t=Ee(o.response.headers.get("Location"),new URL(e.url),d)===A.location.pathname+A.location.search}return await me(e,o,{submission:r,replace:t}),{shortCircuited:!0}}if(je(o))throw Me(400,{type:"defer-action"});if(Fe(o)){let e=ke(n,i.route.id);return!0!==(a&&a.replace)&&(U=u.Push),{pendingActionResult:[e.route.id,o]}}return{pendingActionResult:[i.route.id,o]}}(p,r,n.submission,s,{replace:n.replace,flushSync:h});if(t.shortCircuited)return;m=t.pendingActionResult,i=Ke(r,n.submission),h=!1,p=Se(e.history,p.url,p.signal)}let{shortCircuited:v,loaderData:y,errors:w}=await async function(t,r,n,a,i,s,u,h,m,p){let v=a||Ke(r,i),y=i||s||qe(v),g=o||c,[w,b]=fe(e.history,A,n,y,r,f.v7_partialHydration&&!0===h,f.unstable_skipActionErrorRevalidation,B,I,z,X,$,Y,g,d,p);if(tt((e=>!(n&&n.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),q=++W,0===w.length&&0===b.length){let e=Xe();return ue(r,l({matches:n,loaderData:{},errors:p&&Fe(p[1])?{[p[0]]:p[1].error}:null},Le(p),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:m}),{shortCircuited:!0}}if(!(H||f.v7_partialHydration&&h)){let e;b.forEach((e=>{let t=A.fetchers.get(e.key),r=$e(void 0,t?t.data:void 0);A.fetchers.set(e.key,r)})),p&&!Fe(p[1])?e={[p[0]]:p[1].data}:A.actionData&&(e=0===Object.keys(A.actionData).length?null:A.actionData),se(l({navigation:v},void 0!==e?{actionData:e}:{},b.length>0?{fetchers:new Map(A.fetchers)}:{}),{flushSync:m})}b.forEach((e=>{J.has(e.key)&&He(e.key),e.controller&&J.set(e.key,e.controller)}));let E=()=>b.forEach((e=>He(e.key)));M&&M.signal.addEventListener("abort",E);let{loaderResults:S,fetcherResults:x}=await ve(A.matches,n,w,b,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",E);b.forEach((e=>J.delete(e.key)));let R=Ae([...S,...x]);if(R){if(R.idx>=w.length){let e=b[R.idx-w.length].key;Y.add(e)}return await me(t,R.result,{replace:u}),{shortCircuited:!0}}let{loaderData:_,errors:C}=Ce(A,n,w,S,p,b,x,G);G.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&G.delete(t)}))})),f.v7_partialHydration&&h&&A.errors&&Object.entries(A.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;C=Object.assign(C||{},{[t]:r})}));let D=Xe(),L=Ge(q),k=D||L||b.length>0;return l({loaderData:_,errors:C},k?{fetchers:new Map(A.fetchers)}:{})}(p,r,s,i,n&&n.submission,n&&n.fetcherSubmission,n&&n.replace,n&&!0===n.initialHydration,h,m);v||(M=null,ue(r,l({matches:s},Le(m),{loaderData:y,errors:w})))}async function me(n,a,o){let{submission:i,fetcherSubmission:s,replace:c}=void 0===o?{}:o;a.response.headers.has("X-Remix-Revalidate")&&(B=!0);let h=a.response.headers.get("Location");h||m(!1),h=Ee(h,new URL(n.url),d);let f=v(A.location,h,{_isRedirect:!0});if(r){let r=!1;if(a.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(ne.test(h)){const n=e.history.createURL(h);r=n.origin!==t.location.origin||null==T(n.pathname,d)}if(r)return void(c?t.location.replace(h):t.location.assign(h))}M=null;let p=!0===c?u.Replace:u.Push,{formMethod:y,formAction:g,formEncType:w}=A.navigation;!i&&!s&&y&&g&&w&&(i=qe(A.navigation));let b=i||s;if(Z.has(a.response.status)&&b&&Be(b.formMethod))await he(p,f,{submission:l({},b,{formAction:h}),preventScrollReset:j});else{let e=Ke(f,i);await he(p,f,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:j})}}async function pe(e,t,r,n){try{let o=await ge(h,e,t,r,n,s,a);return await Promise.all(o.map(((e,a)=>{if(Ue(e)){let o=e.result;return{type:b.redirect,response:be(o,t,r[a].route.id,n,d,f.v7_relativeSplatPath)}}return we(e)})))}catch(e){return r.map((()=>({type:b.error,error:e})))}}async function ve(t,r,n,a,o){let[i,...l]=await Promise.all([n.length?pe("loader",o,n,r):[],...a.map((t=>{if(t.matches&&t.match&&t.controller){return pe("loader",Se(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0]))}return Promise.resolve({type:b.error,error:Me(404,{pathname:t.path})})}))]);return await Promise.all([Ie(t,n,i,i.map((()=>o.signal)),!1,A.loaderData),Ie(t,a.map((e=>e.match)),l,a.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:i,fetcherResults:l}}function xe(){B=!0,I.push(...tt()),$.forEach(((e,t)=>{J.has(t)&&(z.push(t),He(t))}))}function Re(e,t,r){void 0===r&&(r={}),A.fetchers.set(e,t),se({fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function _e(e,t,r,n){void 0===n&&(n={});let a=ke(A.matches,t);Ne(e),se({errors:{[a.route.id]:r},fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Te(e){return f.v7_fetcherPersist&&(V.set(e,(V.get(e)||0)+1),X.has(e)&&X.delete(e)),A.fetchers.get(e)||te}function Ne(e){let t=A.fetchers.get(e);!J.has(e)||t&&"loading"===t.state&&K.has(e)||He(e),$.delete(e),K.delete(e),Y.delete(e),X.delete(e),A.fetchers.delete(e)}function He(e){let t=J.get(e);t||m(!1),t.abort(),J.delete(e)}function Je(e){for(let t of e){let e=Ve(Te(t).data);A.fetchers.set(t,e)}}function Xe(){let e=[],t=!1;for(let r of Y){let n=A.fetchers.get(r);n||m(!1),"loading"===n.state&&(Y.delete(r),e.push(r),t=!0)}return Je(e),t}function Ge(e){let t=[];for(let[r,n]of K)if(n<e){let e=A.fetchers.get(r);e||m(!1),"loading"===e.state&&(He(r),K.delete(r),t.push(r))}return Je(t),t.length>0}function Qe(e){A.blockers.delete(e),Q.delete(e)}function Ze(e,t){let r=A.blockers.get(e)||re;"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||m(!1);let n=new Map(A.blockers);n.set(e,t),se({blockers:n})}function et(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===Q.size)return;Q.size;let a=Array.from(Q.entries()),[o,i]=a[a.length-1],l=A.blockers.get(o);return l&&"proceeding"===l.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function tt(e){let t=[];return G.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),G.delete(n))})),t}function rt(e,t){if(w){return w(e,t.map((e=>R(e,A.loaderData))))||e.key}return e.key}function nt(e,t){if(g){let r=rt(e,t),n=g[r];if("number"==typeof n)return n}return null}return L={get basename(){return d},get future(){return f},get state(){return A},get routes(){return c},get window(){return t},initialize:function(){if(p=e.history.listen((t=>{let{action:r,location:n,delta:a}=t;if(ie)return void(ie=!1);let o=et({currentLocation:A.location,nextLocation:n,historyAction:r});return o&&null!=a?(ie=!0,e.history.go(-1*a),void Ze(o,{state:"blocked",location:n,proceed(){Ze(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(A.blockers);e.set(o,re),se({blockers:e})}})):he(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(oe);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,O);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(oe,JSON.stringify(r))}catch(e){}}}(t,O);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return A.initialized||he(u.Pop,A.location,{initialHydration:!0}),L},subscribe:function(e){return y.add(e),()=>y.delete(e)},enableScrollRestoration:function(e,t,r){if(g=e,E=t,w=r||null,!_&&A.navigation===ee){_=!0;let e=nt(A.location,A.matches);null!=e&&se({restoreScrollPosition:e})}return()=>{g=null,E=null,w=null}},navigate:async function t(r,n){if("number"==typeof r)return void e.history.go(r);let a=ce(A.location,A.matches,d,f.v7_prependBasename,r,f.v7_relativeSplatPath,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:o,submission:i,error:s}=de(f.v7_normalizeFormMethod,!1,a,n),c=A.location,h=v(A.location,o,n&&n.state);h=l({},h,e.history.encodeLocation(h));let m=n&&null!=n.replace?n.replace:void 0,p=u.Push;!0===m?p=u.Replace:!1===m||null!=i&&Be(i.formMethod)&&i.formAction===A.location.pathname+A.location.search&&(p=u.Replace);let y=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,g=!0===(n&&n.unstable_flushSync),w=et({currentLocation:c,nextLocation:h,historyAction:p});w?Ze(w,{state:"blocked",location:h,proceed(){Ze(w,{state:"proceeding",proceed:void 0,reset:void 0,location:h}),t(r,n)},reset(){let e=new Map(A.blockers);e.set(w,re),se({blockers:e})}}):await he(p,h,{submission:i,pendingError:s,preventScrollReset:y,replace:n&&n.replace,enableViewTransition:n&&n.unstable_viewTransition,flushSync:g})},fetch:async function(t,r,a,i){if(n)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.");J.has(t)&&He(t);let l=!0===(i&&i.unstable_flushSync),s=o||c,u=ce(A.location,A.matches,d,f.v7_prependBasename,a,f.v7_relativeSplatPath,r,null==i?void 0:i.relative),h=x(s,u,d);if(!h)return void _e(t,r,Me(404,{pathname:u}),{flushSync:l});let{path:p,submission:v,error:y}=de(f.v7_normalizeFormMethod,!0,u,i);if(y)return void _e(t,r,y,{flushSync:l});let g=We(h,p);j=!0===(i&&i.preventScrollReset),v&&Be(v.formMethod)?await async function(t,r,n,a,i,l,s){if(xe(),$.delete(t),!a.route.action&&!a.route.lazy){let e=Me(405,{method:s.formMethod,pathname:n,routeId:r});return void _e(t,r,e,{flushSync:l})}let u=A.fetchers.get(t);Re(t,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}}(s,u),{flushSync:l});let h=new AbortController,p=Se(e.history,n,h.signal,s);J.set(t,h);let v=W,y=(await pe("action",p,[a],i))[0];if(p.signal.aborted)return void(J.get(t)===h&&J.delete(t));if(f.v7_fetcherPersist&&X.has(t)){if(Oe(y)||Fe(y))return void Re(t,Ve(void 0))}else{if(Oe(y))return J.delete(t),q>v?void Re(t,Ve(void 0)):(Y.add(t),Re(t,$e(s)),me(p,y,{fetcherSubmission:s}));if(Fe(y))return void _e(t,r,y.error)}if(je(y))throw Me(400,{type:"defer-action"});let g=A.navigation.location||A.location,w=Se(e.history,g,h.signal),b=o||c,E="idle"!==A.navigation.state?x(b,A.navigation.location,d):A.matches;E||m(!1);let S=++W;K.set(t,S);let R=$e(s,y.data);A.fetchers.set(t,R);let[_,C]=fe(e.history,A,E,s,g,!1,f.unstable_skipActionErrorRevalidation,B,I,z,X,$,Y,b,d,[a.route.id,y]);C.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=A.fetchers.get(t),n=$e(void 0,r?r.data:void 0);A.fetchers.set(t,n),J.has(t)&&He(t),e.controller&&J.set(t,e.controller)})),se({fetchers:new Map(A.fetchers)});let D=()=>C.forEach((e=>He(e.key)));h.signal.addEventListener("abort",D);let{loaderResults:L,fetcherResults:k}=await ve(A.matches,E,_,C,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",D),K.delete(t),J.delete(t),C.forEach((e=>J.delete(e.key)));let P=Ae([...L,...k]);if(P){if(P.idx>=_.length){let e=C[P.idx-_.length].key;Y.add(e)}return me(w,P.result)}let{loaderData:T,errors:j}=Ce(A,A.matches,_,L,void 0,C,k,G);if(A.fetchers.has(t)){let e=Ve(y.data);A.fetchers.set(t,e)}Ge(S),"loading"===A.navigation.state&&S>q?(U||m(!1),M&&M.abort(),ue(A.navigation.location,{matches:E,loaderData:T,errors:j,fetchers:new Map(A.fetchers)})):(se({errors:j,loaderData:De(A.loaderData,T,E,j),fetchers:new Map(A.fetchers)}),B=!1)}(t,r,p,g,h,l,v):($.set(t,{routeId:r,path:p}),await async function(t,r,n,a,o,i,l){let s=A.fetchers.get(t);Re(t,$e(l,s?s.data:void 0),{flushSync:i});let u=new AbortController,c=Se(e.history,n,u.signal);J.set(t,u);let d=W,h=(await pe("loader",c,[a],o))[0];je(h)&&(h=await ze(h,c.signal,!0)||h);J.get(t)===u&&J.delete(t);if(c.signal.aborted)return;if(X.has(t))return void Re(t,Ve(void 0));if(Oe(h))return q>d?void Re(t,Ve(void 0)):(Y.add(t),void await me(c,h));if(Fe(h))return void _e(t,r,h.error);je(h)&&m(!1),Re(t,Ve(h.data))}(t,r,p,g,h,l,v))},revalidate:function(){le||(le=function(){let e,t,r=new Promise(((n,a)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{a(e);try{await r}catch(e){}}}));return{promise:r,resolve:e,reject:t}}()),xe(),se({revalidation:"loading"});let e=le.promise;return"submitting"===A.navigation.state?e:"idle"===A.navigation.state?(he(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),e):(he(U||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Te,deleteFetcher:function(e){if(f.v7_fetcherPersist){let t=(V.get(e)||0)-1;t<=0?(V.delete(e),X.add(e)):V.set(e,t)}else Ne(e);se({fetchers:new Map(A.fetchers)})},dispose:function(){p&&p(),N&&N(),y.clear(),M&&M.abort(),A.fetchers.forEach(((e,t)=>Ne(t))),A.blockers.forEach(((e,t)=>Qe(t)))},getBlocker:function(e,t){let r=A.blockers.get(e)||re;return Q.get(e)!==t&&Q.set(e,t),r},deleteBlocker:Qe,_internalFetchControllers:J,_internalActiveDeferreds:G,_internalSetRoutes:function(e){s={},o=S(e,a,void 0,s)}},L}const le=Symbol("deferred");function se(e,t){e.length>0||m(!1);let r,n={},a=(t?t.basename:null)||"/";if(null!=t&&t.mapRouteProperties)r=t.mapRouteProperties;else if(null!=t&&t.detectErrorBoundary){let e=t.detectErrorBoundary;r=t=>({hasErrorBoundary:e(t)})}else r=ae;let o=l({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},t?t.future:null),i=S(e,r,void 0,n);async function s(e,t,r,n,a,i,s){e.signal||m(!1);try{if(Be(e.method.toLowerCase())){let d=await async function(e,t,r,n,a,i,s){let d;if(r.route.action||r.route.lazy){d=(await c("action",e,[r],t,s,n,a))[0],e.signal.aborted&&ue(e,s,o)}else{let t=Me(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:r.route.id});if(s)throw t;d={type:b.error,error:t}}if(Oe(d))throw new Response(null,{status:d.response.status,headers:{Location:d.response.headers.get("Location")}});if(je(d)){let e=Me(400,{type:"defer-action"});if(s)throw e;d={type:b.error,error:e}}if(s){if(Fe(d))throw d.error;return{matches:[r],loaderData:{},actionData:{[r.route.id]:d.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let h=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});if(Fe(d)){let e=i?r:ke(t,r.route.id);return l({},await u(h,t,n,a,i,null,[e.route.id,d]),{statusCode:Y(d.error)?d.error.status:null!=d.statusCode?d.statusCode:500,actionData:null,actionHeaders:l({},d.headers?{[r.route.id]:d.headers}:{})})}return l({},await u(h,t,n,a,i,null),{actionData:{[r.route.id]:d.data}},d.statusCode?{statusCode:d.statusCode}:{},{actionHeaders:d.headers?{[r.route.id]:d.headers}:{}})}(e,r,s||We(r,t),n,a,i,null!=s);return d}let d=await u(e,r,n,a,i,s);return Ne(d)?d:l({},d,{actionData:null,actionHeaders:{}})}catch(e){if(function(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&(e.type===b.data||e.type===b.error)}(e)&&Ne(e.result)){if(e.type===b.error)throw e.result;return e.result}if(function(e){if(!Ne(e))return!1;let t=e.status,r=e.headers.get("Location");return t>=300&&t<=399&&null!=r}(e))return e;throw e}}async function u(e,t,r,n,a,i,s){let u=null!=i;if(u&&(null==i||!i.route.loader)&&(null==i||!i.route.lazy))throw Me(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:null==i?void 0:i.route.id});let d=(i?[i]:s&&Fe(s[1])?he(t,s[0]):t).filter((e=>e.route.loader||e.route.lazy));if(0===d.length)return{matches:t,loaderData:t.reduce(((e,t)=>Object.assign(e,{[t.route.id]:null})),{}),errors:s&&Fe(s[1])?{[s[0]]:s[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let h=await c("loader",e,d,t,u,r,n);e.signal.aborted&&ue(e,u,o);let f=new Map,m=_e(t,d,h,s,f,a),p=new Set(d.map((e=>e.route.id)));return t.forEach((e=>{p.has(e.route.id)||(m.loaderData[e.route.id]=null)})),l({},m,{matches:t,activeDeferreds:f.size>0?Object.fromEntries(f.entries()):null})}async function c(e,t,i,l,s,u,c){let d=await ge(c||ye,e,t,i,l,n,r,u);return await Promise.all(d.map(((e,r)=>{if(Ue(e)){throw be(e.result,t,i[r].route.id,l,a,o.v7_relativeSplatPath)}if(Ne(e.result)&&s)throw e;return we(e)})))}return{dataRoutes:i,query:async function(e,t){let{requestContext:r,skipLoaderErrorBubbling:n,unstable_dataStrategy:o}=void 0===t?{}:t,u=new URL(e.url),c=e.method,d=v("",y(u),null,"default"),h=x(i,d,a);if(!He(c)&&"HEAD"!==c){let e=Me(405,{method:c}),{matches:t,route:r}=Pe(i);return{basename:a,location:d,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(!h){let e=Me(404,{pathname:d.pathname}),{matches:t,route:r}=Pe(i);return{basename:a,location:d,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let f=await s(e,d,h,r,o||null,!0===n,null);return Ne(f)?f:l({location:d,basename:a},f)},queryRoute:async function(e,t){let{routeId:r,requestContext:n}=void 0===t?{}:t,o=new URL(e.url),l=e.method,u=v("",y(o),null,"default"),c=x(i,u,a);if(!He(l)&&"HEAD"!==l&&"OPTIONS"!==l)throw Me(405,{method:l});if(!c)throw Me(404,{pathname:u.pathname});let d=r?c.find((e=>e.route.id===r)):We(c,u);if(r&&!d)throw Me(403,{pathname:u.pathname,routeId:r});if(!d)throw Me(404,{pathname:u.pathname});let h=await s(e,u,c,n,null,!1,d);if(Ne(h))return h;let f=h.errors?Object.values(h.errors)[0]:void 0;if(void 0!==f)throw f;if(h.actionData)return Object.values(h.actionData)[0];if(h.loaderData){var m;let e=Object.values(h.loaderData)[0];return null!=(m=h.activeDeferreds)&&m[d.route.id]&&(e[le]=h.activeDeferreds[d.route.id]),e}}}}function ue(e,t,r){if(r.v7_throwAbortReason&&void 0!==e.signal.reason)throw e.signal.reason;throw new Error((t?"queryRoute":"query")+"() call aborted: "+e.method+" "+e.url)}function ce(e,t,r,n,a,o,i,l){let s,u;if(i){s=[];for(let e of t)if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=O(a||".",F(s,o),T(e.pathname,r)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),null!=a&&""!==a&&"."!==a||!u||!u.route.index||Je(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:N([r,c.pathname])),y(c)}function de(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&&!He(n.formMethod))return{path:r,error:Me(405,{method:n.formMethod})};let a,o,i=()=>({path:r,error:Me(400,{type:"invalid-body"})}),l=n.formMethod||"get",s=e?l.toUpperCase():l.toLowerCase(),u=Te(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Be(s))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:s,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Be(s))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:s,formAction:u,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if("function"!=typeof FormData&&m(!1),n.formData)a=xe(n.formData),o=n.formData;else if(n.body instanceof FormData)a=xe(n.body),o=n.body;else if(n.body instanceof URLSearchParams)a=n.body,o=Re(a);else if(null==n.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(n.body),o=Re(a)}catch(e){return i()}let c={formMethod:s,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Be(c.formMethod))return{path:r,submission:c};let d=g(r);return t&&d.search&&Je(d.search)&&a.append("index",""),d.search="?"+a,{path:y(d),submission:c}}function he(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}function fe(e,t,r,n,a,o,i,s,u,c,d,h,f,m,p,v){let y=v?Fe(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),b=v&&Fe(v[1])?v[0]:void 0,E=b?he(r,b):r,S=v?v[1].statusCode:void 0,R=i&&S&&S>=400,_=E.filter(((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return!("function"==typeof a.loader&&!a.loader.hydrate)||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,r){let 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((t=>t===e.route.id)))return!0;let i=t.matches[r],c=e;return pe(e,l({currentUrl:g,currentParams:i.params,nextUrl:w,nextParams:c.params},n,{actionResult:y,unstable_actionStatus:S,defaultShouldRevalidate:!R&&(s||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||me(i,c))}))})),C=[];return h.forEach(((e,a)=>{if(o||!r.some((t=>t.route.id===e.routeId))||d.has(a))return;let i=x(m,e.path,p);if(!i)return void C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=We(i,e.path),v=!1;v=!f.has(a)&&(!!c.includes(a)||(u&&"idle"!==u.state&&void 0===u.data?s:pe(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,unstable_actionStatus:S,defaultShouldRevalidate:!R&&s})))),v&&C.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})})),[_,C]}function me(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function pe(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function ve(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];a||m(!1);let o={};for(let e in n){void 0!==a[e]&&"hasErrorBoundary"!==e||E.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}function ye(e){return Promise.all(e.matches.map((e=>e.resolve())))}async function ge(e,t,r,n,a,o,i,s){let u=n.reduce(((e,t)=>e.add(t.route.id)),new Set),c=new Set,d=await e({matches:a.map((e=>{let n=u.has(e.route.id);return l({},e,{shouldLoad:n,resolve:a=>(c.add(e.route.id),n?async function(e,t,r,n,a,o,i){let l,s,u=n=>{let a,l=new Promise(((e,t)=>a=t));s=()=>a(),t.signal.addEventListener("abort",s);let u,c=a=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return u=o?o((e=>c(e))):(async()=>{try{return{type:"data",result:await c()}}catch(e){return{type:"error",result:e}}})(),Promise.race([u,l])};try{let o=r.route[e];if(r.route.lazy)if(o){let e,[t]=await Promise.all([u(o).catch((t=>{e=t})),ve(r.route,a,n)]);if(void 0!==e)throw e;l=t}else{if(await ve(r.route,a,n),o=r.route[e],!o){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Me(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:b.data,result:void 0}}l=await u(o)}else{if(!o){let e=new URL(t.url);throw Me(404,{pathname:e.pathname+e.search})}l=await u(o)}void 0===l.result&&m(!1)}catch(e){return{type:b.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return l}(t,r,e,o,i,a,s):Promise.resolve({type:b.data,result:void 0}))})})),request:r,params:a[0].params,context:s});return a.forEach((e=>c.has(e.route.id)?void 0:m(!1))),d.filter(((e,t)=>u.has(a[t].route.id)))}async function we(e){let{result:t,type:r,status:n}=e;if(Ne(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:b.error,error:e}}return r===b.error?{type:b.error,error:new K(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:b.data,data:e,statusCode:t.status,headers:t.headers}}return r===b.error?{type:b.error,error:t,statusCode:Y(t)?t.status:n}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:b.deferred,deferredData:t,statusCode:null==(a=t.init)?void 0:a.status,headers:(null==(o=t.init)?void 0:o.headers)&&new Headers(t.init.headers)}:{type:b.data,data:t,statusCode:n};var a,o}function be(e,t,r,n,a,o){let i=e.headers.get("Location");if(i||m(!1),!ne.test(i)){let l=n.slice(0,n.findIndex((e=>e.route.id===r))+1);i=ce(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}function Ee(e,t,r){if(ne.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=T(a.pathname,r);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Se(e,t,r,n){let a=e.createURL(Te(t)).toString(),o={signal:r};if(n&&Be(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=xe(n.formData):o.body=n.formData}return new Request(a,o)}function xe(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Re(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function _e(e,t,r,n,a,o){let i,l={},s=null,u=!1,c={},d=n&&Fe(n[1])?n[1].error:void 0;return r.forEach(((r,n)=>{let h=t[n].route.id;if(Oe(r)&&m(!1),Fe(r)){let t=r.error;if(void 0!==d&&(t=d,d=void 0),s=s||{},o)s[h]=t;else{let r=ke(e,h);null==s[r.route.id]&&(s[r.route.id]=t)}l[h]=void 0,u||(u=!0,i=Y(r.error)?r.error.status:500),r.headers&&(c[h]=r.headers)}else je(r)?(a.set(h,r.deferredData),l[h]=r.deferredData.data,null==r.statusCode||200===r.statusCode||u||(i=r.statusCode),r.headers&&(c[h]=r.headers)):(l[h]=r.data,r.statusCode&&200!==r.statusCode&&!u&&(i=r.statusCode),r.headers&&(c[h]=r.headers))})),void 0!==d&&n&&(s={[n[0]]:d},l[n[0]]=void 0),{loaderData:l,errors:s,statusCode:i||200,loaderHeaders:c}}function Ce(e,t,r,n,a,o,i,s){let{loaderData:u,errors:c}=_e(t,r,n,a,s,!1);for(let t=0;t<o.length;t++){let{key:r,match:n,controller:a}=o[t];(void 0===i||void 0===i[t])&&m(!1);let s=i[t];if(!a||!a.signal.aborted)if(Fe(s)){let t=ke(e.matches,null==n?void 0:n.route.id);c&&c[t.route.id]||(c=l({},c,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(Oe(s))m(!1);else if(je(s))m(!1);else{let t=Ve(s.data);e.fetchers.set(r,t)}}return{loaderData:u,errors:c}}function De(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function Le(e){return e?Fe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ke(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Pe(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Me(e,t){let{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new K(e||500,i,new Error(l),!0)}function Ae(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Oe(r))return{result:r,idx:t}}}function Te(e){return y(l({},"string"==typeof e?g(e):e,{hash:""}))}function Ue(e){return Ne(e.result)&&Q.has(e.result.status)}function je(e){return e.type===b.deferred}function Fe(e){return e.type===b.error}function Oe(e){return(e&&e.type)===b.redirect}function Ne(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function He(e){return G.has(e.toLowerCase())}function Be(e){return V.has(e.toLowerCase())}async function Ie(e,t,r,n,a,o){for(let i=0;i<r.length;i++){let l=r[i],s=t[i];if(!s)continue;let u=e.find((e=>e.route.id===s.route.id)),c=null!=u&&!me(u,s)&&void 0!==(o&&o[s.route.id]);if(je(l)&&(a||c)){let e=n[i];e||m(!1),await ze(l,e,a).then((e=>{e&&(r[i]=e||r[i])}))}}}async function ze(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:b.data,data:e.deferredData.unwrappedData}}catch(e){return{type:b.error,error:e}}return{type:b.data,data:e.deferredData.data}}}function Je(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function We(e,t){let r="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&Je(r||""))return e[e.length-1];let n=j(e);return n[n.length-1]}function qe(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;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 Ke(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ye(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}}function $e(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ve(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}const Xe=o.createContext(null);Xe.displayName="DataRouter";const Ge=o.createContext(null);Ge.displayName="DataRouterState";const Qe=o.createContext(null);Qe.displayName="Await";const Ze=o.createContext(null);Ze.displayName="Navigation";const et=o.createContext(null);et.displayName="Location";const tt=o.createContext({outlet:null,matches:[],isDataRoute:!1});tt.displayName="Route";const rt=o.createContext(null);function nt(e,t){let{relative:r}=void 0===t?{}:t;at()||m(!1);let{basename:n,navigator:a}=o.useContext(Ze),{hash:i,pathname:l,search:s}=ct(e,{relative:r}),u=l;return"/"!==n&&(u="/"===l?n:N([n,l])),a.createHref({pathname:u,search:s,hash:i})}function at(){return null!=o.useContext(et)}function ot(){return at()||m(!1),o.useContext(et).location}function it(e){o.useContext(Ze).static||o.useLayoutEffect(e)}function lt(){let{isDataRoute:e}=o.useContext(tt);return e?function(){let{router:e}=bt(gt.UseNavigateStable),t=St(wt.UseNavigateStable),r=o.useRef(!1);return it((()=>{r.current=!0})),o.useCallback((async function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):await e.navigate(n,l({fromRouteId:t},a)))}),[e,t])}():function(){at()||m(!1);let e=o.useContext(Xe),{basename:t,future:r,navigator:n}=o.useContext(Ze),{matches:a}=o.useContext(tt),{pathname:i}=ot(),l=JSON.stringify(F(a,r.v7_relativeSplatPath)),s=o.useRef(!1);return it((()=>{s.current=!0})),o.useCallback((function(r,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof r)return void n.go(r);let o=O(r,JSON.parse(l),i,"path"===a.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:N([t,o.pathname])),(a.replace?n.replace:n.push)(o,a.state,a)}),[t,n,l,i,e])}()}rt.displayName="RouteError";const st=o.createContext(null);function ut(e){let t=o.useContext(tt).outlet;return t?o.createElement(st.Provider,{value:e},t):t}function ct(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=o.useContext(Ze),{matches:a}=o.useContext(tt),{pathname:i}=ot(),l=JSON.stringify(F(a,n.v7_relativeSplatPath));return o.useMemo((()=>O(e,JSON.parse(l),i,"path"===r)),[e,l,i,r])}function dt(e,t){return ht(e,t)}function ht(e,t,r,n){at()||m(!1);let{navigator:a}=o.useContext(Ze),{matches:i}=o.useContext(tt),s=i[i.length-1],c=s?s.params:{},d=s?s.pathname:"/",h=s?s.pathnameBase:"/",f=s&&s.route;{let e=f&&f.path||"";Mt(d,!f||e.endsWith("*"))}let p,v=ot();if(t){var y;let e="string"==typeof t?g(t):t;"/"===h||(null==(y=e.pathname)?void 0:y.startsWith(h))||m(!1),p=e}else p=v;let w=p.pathname||"/",b=w;if("/"!==h){let e=h.replace(/^\//,"").split("/");b="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=x(e,{pathname:b}),S=yt(E&&E.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:N([h,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:N([h,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,r,n);return t&&S?o.createElement(et.Provider,{value:{location:l({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:u.Pop}},S):S}function ft(){let e=Ct(),t=Y(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:i},"ErrorBoundary")," or"," ",o.createElement("code",{style:i},"errorElement")," prop on your route.")),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),r?o.createElement("pre",{style:a},r):null,l)}const mt=o.createElement(ft,null);class pt extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(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}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?o.createElement(tt.Provider,{value:this.props.routeContext},o.createElement(rt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vt(e){let{routeContext:t,match:r,children:n}=e,a=o.useContext(Xe);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),o.createElement(tt.Provider,{value:t},n)}function yt(e,t,r,n){var a;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}let l=e,s=null==(a=r)?void 0:a.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||m(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){u=!0,l=c>=0?l.slice(0,c+1):[l[0]];break}}}return l.reduceRight(((e,n,a)=>{let i,d=!1,h=null,f=null;r&&(i=s&&n.route.id?s[n.route.id]:void 0,h=n.route.errorElement||mt,u&&(c<0&&0===a?(Mt("route-fallback",!1),d=!0,f=null):c===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,a+1)),p=()=>{let t;return t=i?h:d?f:n.route.Component?o.createElement(n.route.Component,null):n.route.element?n.route.element:e,o.createElement(vt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?o.createElement(pt,{location:r.location,revalidation:r.revalidation,component:h,error:i,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()}),null)}var gt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gt||{}),wt=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}(wt||{});function bt(e){let t=o.useContext(Xe);return t||m(!1),t}function Et(e){let t=o.useContext(Ge);return t||m(!1),t}function St(e){let t=function(e){let t=o.useContext(tt);return t||m(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||m(!1),r.route.id}function xt(){return St(wt.UseRouteId)}function Rt(){return Et(wt.UseNavigation).navigation}function _t(){let{matches:e,loaderData:t}=Et(wt.UseMatches);return o.useMemo((()=>e.map((e=>R(e,t)))),[e,t])}function Ct(){var e;let t=o.useContext(rt),r=Et(wt.UseRouteError),n=St(wt.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function Dt(){let e=o.useContext(Qe);return null==e?void 0:e._data}let Lt=0;function kt(e){let{router:t,basename:r}=bt(gt.UseBlocker),n=Et(wt.UseBlocker),[a,i]=o.useState(""),s=o.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:l({},n,{pathname:T(n.pathname,r)||n.pathname}),nextLocation:l({},a,{pathname:T(a.pathname,r)||a.pathname}),historyAction:o})}),[r,e]);return o.useEffect((()=>{let e=String(++Lt);return i(e),()=>t.deleteBlocker(e)}),[t]),o.useEffect((()=>{""!==a&&t.getBlocker(a,s)}),[t,a,s]),a&&n.blockers.has(a)?n.blockers.get(a):re}const Pt={};function Mt(e,t,r){t||Pt[e]||(Pt[e]=!0)}function At(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element,Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement,Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement,Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function Tt(e,t){return ie({basename:null==t?void 0:t.basename,future:l({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:d({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:At,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy}).initialize()}const Ut=o.startTransition;function jt(e){let{routes:t,future:r,state:n}=e;return ht(t,void 0,n,r)}function Ft(e){return ut(e.context)}function Ot(e){m(!1)}function Nt(e){let{basename:t="/",children:r=null,location:n,navigationType:a=u.Pop,navigator:i,static:s=!1,future:c}=e;at()&&m(!1);let d=t.replace(/^\/*/,"/"),h=o.useMemo((()=>({basename:d,navigator:i,static:s,future:l({v7_relativeSplatPath:!1},c)})),[d,c,i,s]);"string"==typeof n&&(n=g(n));let{pathname:f="/",search:p="",hash:v="",state:y=null,key:w="default"}=n,b=o.useMemo((()=>{let e=T(f,d);return null==e?null:{location:{pathname:e,search:p,hash:v,state:y,key:w},navigationType:a}}),[d,f,p,v,y,w,a]);return null==b?null:o.createElement(Ze.Provider,{value:h},o.createElement(et.Provider,{children:r,value:b}))}var Ht=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Ht||{});const Bt=new Promise((()=>{}));class It extends o.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=Ht.pending;if(r instanceof Promise)if(this.state.error){a=Ht.error;let e=this.state.error;n=Promise.reject().catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?(n=r,a=void 0!==n._error?Ht.error:void 0!==n._data?Ht.success:Ht.pending):(a=Ht.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then((e=>Object.defineProperty(r,"_data",{get:()=>e})),(e=>Object.defineProperty(r,"_error",{get:()=>e}))));else a=Ht.success,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===Ht.error&&n._error instanceof z)throw Bt;if(a===Ht.error&&!t)throw n._error;if(a===Ht.error)return o.createElement(Qe.Provider,{value:n,children:t});if(a===Ht.success)return o.createElement(Qe.Provider,{value:n,children:e});throw n}}function zt(e){let{children:t}=e,r=Dt(),n="function"==typeof t?t(r):t;return o.createElement(o.Fragment,null,n)}function Jt(e,t){void 0===t&&(t=[]);let r=[];return o.Children.forEach(e,((e,n)=>{if(!o.isValidElement(e))return;let a=[...t,n];if(e.type===o.Fragment)return void r.push.apply(r,Jt(e.props.children,a));e.type!==Ot&&m(!1),e.props.index&&e.props.children&&m(!1);let i={id:e.props.id||a.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:!0===e.props.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=Jt(e.props.children,a)),r.push(i)})),r}const Wt="get",qt="application/x-www-form-urlencoded";function Kt(e){return null!=e&&"string"==typeof e.tagName}function Yt(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}let $t=null;const Vt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xt(e){return null==e||Vt.has(e)?e:null}function Gt(e,t){let r,n,a,o,i;if(Kt(l=e)&&"form"===l.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?T(i,t):null,r=e.getAttribute("method")||Wt,a=Xt(e.getAttribute("enctype"))||qt,o=new FormData(e)}else if(function(e){return Kt(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Kt(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?T(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||Wt,a=Xt(e.getAttribute("formenctype"))||Xt(i.getAttribute("enctype"))||qt,o=new FormData(i,e),!function(){if(null===$t)try{new FormData(document.createElement("form"),0),$t=!1}catch(e){$t=!0}return $t}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else{if(Kt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Wt,n=null,a=qt,i=e}var l;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}function Qt(e,t){if(!1===e||null==e)throw new Error(t)}async function Zt(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(e){return window.__remixContext&&window.__remixContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function er(e,t,r){let n=e.map((e=>{let n=t[e.route.id],a=r.routes[e.route.id];return[a.css?a.css.map((e=>({rel:"stylesheet",href:e}))):[],(null==n||null==n.links?void 0:n.links())||[]]})).flat(2),a=function(e,t){return ir(e.map((e=>{let r=t.routes[e.route.id],n=[r.module];return r.imports&&(n=n.concat(r.imports)),n})).flat(1))}(e,r);return lr(n,a)}async function tr(e,t){if(!e.css&&!t.links||!function(){if(void 0!==sr)return sr;let e=document.createElement("link");return sr=e.relList.supports("preload"),e=null,sr}())return;let r=[];if(e.css&&r.push(...e.css.map((e=>({rel:"stylesheet",href:e})))),t.links&&r.push(...t.links()),0===r.length)return;let n=[];for(let e of r)nr(e)||"stylesheet"!==e.rel||n.push(l({},e,{rel:"preload",as:"style"}));let a=n.filter((e=>(!e.media||window.matchMedia(e.media).matches)&&!document.querySelector('link[rel="stylesheet"][href="'+e.href+'"]')));await Promise.all(a.map(rr))}async function rr(e){return new Promise((t=>{let r=document.createElement("link");function n(){document.head.contains(r)&&document.head.removeChild(r)}Object.assign(r,e),r.onload=()=>{n(),t()},r.onerror=()=>{n(),t()},document.head.appendChild(r)}))}function nr(e){return null!=e&&"string"==typeof e.page}function ar(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function or(e,t,r,n,a,o){let i=function(e){let t=g(e);void 0===t.search&&(t.search="");return t}(e),l=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>{var n;return r[t].pathname!==e.pathname||(null==(n=r[t].route.path)?void 0:n.endsWith("*"))&&r[t].params["*"]!==e.params["*"]};return"data"===o&&a.search!==i.search?t.filter(((t,o)=>{if(!n.routes[t.route.id].hasLoader)return!1;if(l(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){var i;let n=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:(null==(i=r[0])?void 0:i.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0})):t.filter(((e,t)=>{let r=n.routes[e.route.id];return("assets"===o||r.hasLoader)&&(l(e,t)||s(e,t))}))}function ir(e){return[...new Set(e)]}function lr(e,t){let r=new Set,n=new Set(t);return e.reduce(((e,a)=>{if(t&&!nr(a)&&"script"===a.as&&a.href&&n.has(a.href))return e;let o=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(a));return r.has(o)||(r.add(o),e.push({key:o,link:a})),e}),[])}let sr;const ur={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},cr=/[&><\u2028\u2029]/g;function dr(e){return{__html:e}}const hr=Symbol("SingleFetchRedirect");function fr(e){let{context:t,identifier:r,reader:n,textDecoder:a,isAction:i}=e;if(!t.renderMeta||!t.renderMeta.didRenderScripts)return null;t.renderMeta.streamCache||(t.renderMeta.streamCache={});let l=i?t.renderMeta.streamCacheAction:t.renderMeta.streamCache;l||(i?(t.renderMeta.streamCacheAction={},l=t.renderMeta.streamCacheAction):(t.renderMeta.streamCache={},l=t.renderMeta.streamCache));let s=l[r];if(s||(s=l[r]=n.read().then((e=>{l[r].result={done:e.done,value:a.decode(e.value,{stream:!0})}})).catch((e=>{l[r].error=e}))),s.error)throw s.error;if(void 0===s.result)throw s;let{done:u,value:c}=s.result,d=c?o.createElement("script",{dangerouslySetInnerHTML:{__html:"window.__remixContext.streamController"+(i?"Action":"")+".enqueue("+(h=JSON.stringify(c),h.replace(cr,(e=>ur[e]))+");")}}):null;var h;return u?o.createElement(o.Fragment,null,d,o.createElement("script",{dangerouslySetInnerHTML:{__html:"window.__remixContext.streamController"+(i?"Action":"")+".close();"}})):o.createElement(o.Fragment,null,d,o.createElement(o.Suspense,null,o.createElement(fr,{context:t,identifier:r+1,reader:n,textDecoder:a,isAction:i})))}function mr(e,t){return async r=>{let{request:n,matches:a}=r;return"GET"!==n.method?function(e,t){return Promise.all(t.map((async t=>{let r,n=await t.resolve((async n=>{let a=await n((async()=>{let n=vr(e.url),a=await async function(e){let t={signal:e.signal};if("GET"!==e.method){t.method=e.method;let r=e.headers.get("Content-Type");r&&/\bapplication\/json\b/.test(r)?(t.headers={"Content-Type":r},t.body=JSON.stringify(await e.json())):r&&/\btext\/plain\b/.test(r)?(t.headers={"Content-Type":r},t.body=await e.text()):r&&/\bapplication\/x-www-form-urlencoded\b/.test(r)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}(e),{data:o,status:i}=await yr(n,a);return r=i,br(o,t.route.id)}));return{type:"data",result:a,status:r}}));return l({},n,{status:r})})))}(n,a):function(e,t,r,n){let a;return Promise.all(n.map((async o=>o.resolve((async i=>{let l,s=function(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let r=[];for(let e of t)e&&r.push(e);for(let t of r)e.searchParams.append("index",t);return e}(vr(r.url));return l=e.routes[o.route.id].hasClientLoader?await i((async()=>{s.searchParams.set("_routes",o.route.id);let{data:e}=await yr(s);return wr(e,o.route.id)})):await i((async()=>(a||(s=pr(e,t,n.map((e=>e.route)),n.filter((e=>e.shouldLoad)).map((e=>e.route)),s),a=yr(s).then((e=>{let{data:t}=e;return t}))),wr(await a,o.route.id)))),{type:"data",result:l}})))))}(e,t,n,a)}}function pr(e,t,r,n,a){let o=t=>t.filter((t=>e.routes[t].hasLoader)).join(",");if(!r.some((r=>{var n,a;return(null==(n=t[r.id])?void 0:n.shouldRevalidate)||(null==(a=e.routes[r.id])?void 0:a.hasClientLoader)})))return a;let i=o(r.map((e=>e.id))),l=o(n.filter((t=>{var r;return!(null!=(r=e.routes[t.id])&&r.hasClientLoader)})).map((e=>e.id)));return i!==l&&a.searchParams.set("_routes",l),a}function vr(e){let t="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return t.pathname=("/"===t.pathname?"_root":t.pathname)+".data",t}async function yr(e,t){var r;let n=await fetch(e,t);if(n.body||Qt(!1),null!=(r=n.headers.get("Content-Type"))&&r.includes("text/x-component")){n.body||Qt(!1);let e=await window.createFromReadableStream(n.body);return{status:n.status,data:e}}try{let e=await gr(n.body,window);return{status:n.status,data:e.value}}catch(e){throw new Error("Unable to decode turbo-stream response")}}function gr(e,t){return n.decode(e,{plugins:[function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];if("SanitizedError"===e){let[e,r,a]=n,o=Error;e&&e in t&&"function"==typeof t[e]&&(o=t[e]);let i=new o(r);return i.stack=a,{value:i}}if("ErrorResponse"===e){let[e,t,r]=n;return{value:new K(t,r,e)}}if("SingleFetchRedirect"===e)return{value:{[hr]:n[0]}}}]})}function wr(e,t){let r=e[hr];return r?br(r,t):void 0!==e[t]?br(e[t],t):null}function br(e,t){if("error"in e)throw e.error;if("redirect"in e){let t={};return e.revalidate&&(t["X-Remix-Revalidate"]="yes"),e.reload&&(t["X-Remix-Reload-Document"]="yes"),q(e.redirect,{status:e.status,headers:t})}if("data"in e)return e.data;throw new Error('No response found for routeId "'+t+'"')}const Er=["page"],Sr=["page","matches"],xr=["tagName"];function Rr(){let e=o.useContext(Xe);return e||Qt(!1),e}function _r(){let e=o.useContext(Ge);return e||Qt(!1),e}const Cr=o.createContext(void 0);function Dr(){let e=o.useContext(Cr);return e||Qt(!1),e}function Lr(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function kr(e,t,r){if(r&&!Tr)return[e[0]];if(t){let r=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,r+1)}return e}function Pr(e){let{page:t}=e,r=s(e,Er),{router:n}=Rr(),a=o.useMemo((()=>x(n.routes,t,n.basename)),[n.routes,t,n.basename]);return a?o.createElement(Ar,l({page:t,matches:a},r)):(console.warn("Tried to prefetch "+t+" but no routes matched."),null)}function Mr(e){let{manifest:t,routeModules:r}=Dr(),[n,a]=o.useState([]);return o.useEffect((()=>{let n=!1;return async function(e,t,r){return lr((await Promise.all(e.map((async e=>{let n=await Zt(t.routes[e.route.id],r);return n.links?n.links():[]})))).flat(1).filter(ar).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?l({},e,{rel:"prefetch",as:"style"}):l({},e,{rel:"prefetch"}))))}(e,t,r).then((e=>{n||a(e)})),()=>{n=!0}}),[e,t,r]),n}function Ar(e){let{page:t,matches:r}=e,n=s(e,Sr),a=ot(),{manifest:i,routeModules:u}=Dr(),{matches:c}=_r(),d=o.useMemo((()=>or(t,r,c,i,a,"data")),[t,r,c,i,a]),h=o.useMemo((()=>or(t,r,c,i,a,"assets")),[t,r,c,i,a]),f=o.useMemo((()=>function(e,t){return ir(e.map((e=>{let r=t.routes[e.route.id],n=[r.module];return r.imports&&(n=n.concat(r.imports)),n})).flat(1))}(h,i)),[h,i]),m=Mr(h),p=null;if(d.length>0){let e=pr(i,u,r.map((e=>e.route)),d.map((e=>e.route)),vr(t));""!==e.searchParams.get("_routes")&&(p=o.createElement("link",l({key:e.pathname+e.search,rel:"prefetch",as:"fetch",href:e.pathname+e.search},n)))}return o.createElement(o.Fragment,null,p,f.map((e=>o.createElement("link",l({key:e,rel:"modulepreload",href:e},n)))),m.map((e=>{let{key:t,link:r}=e;return o.createElement("link",l({key:t},r))})))}Cr.displayName="Remix";let Tr=!1;function Ur(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:a,future:i}=Dr(),{router:s,static:u,staticContext:c}=Rr(),{matches:d}=_r(),h=Rt();a&&(a.didRenderScripts=!0);let f=kr(d,null,n);o.useEffect((()=>{Tr=!0}),[]);let m=o.useMemo((()=>{var n;let a="window.__remixContext.stream = new ReadableStream({start(controller){window.__remixContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());";i.unstable_serverComponents&&null!=c&&c.actionData&&(a+="window.__remixContext.streamAction = new ReadableStream({start(controller){window.__remixContext.streamControllerAction = controller;}}).pipeThrough(new TextEncoderStream());");let s=c?"window.__remixContext = "+r+";"+a:" ",d=u?(null!=(n=t.hmr)&&n.runtime?"import "+JSON.stringify(t.hmr.runtime)+";":"")+"import "+JSON.stringify(t.url)+";\n"+f.map(((e,r)=>"import * as route"+r+" from "+JSON.stringify(t.routes[e.route.id].module)+";")).join("\n")+"\nwindow.__remixRouteModules = {"+f.map(((e,t)=>JSON.stringify(e.route.id)+":route"+t)).join(",")+"};\n\nimport("+JSON.stringify(t.entry.module)+");":" ";return o.createElement(o.Fragment,null,o.createElement("script",l({},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:dr(s),type:void 0})),o.createElement("script",l({},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:dr(d),type:"module",async:!0})))}),[]),p=o.useMemo((()=>{if(h.location){let e=x(s.routes,h.location,s.basename);return e||Qt(!1),e}return[]}),[h.location,s.routes,s.basename]),v=f.concat(p).map((e=>{let r=t.routes[e.route.id];return(r.imports||[]).concat([r.module])})).flat(1),y=Tr?[]:t.entry.imports.concat(v);return Tr?null:o.createElement(o.Fragment,null,o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),(g=y,[...new Set(g)]).map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin}))),m);var g}function jr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>{t.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}}const Fr=["onClick","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Or=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Nr=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],Hr=["getKey","storageKey"],Br="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Br&&(window.__reactRouterVersion="0")}catch(e){}function Ir(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=l({},t,{errors:zr(t.errors)})),t}function zr(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new K(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const Jr=o.createContext({isTransitioning:!1});Jr.displayName="ViewTransition";const Wr=o.createContext(new Map);Wr.displayName="Fetchers";const qr=o.startTransition,Kr=i.flushSync,Yr=o.useId;function $r(e){Kr?Kr(e):e()}class Vr{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function Xr(e){let{fallbackElement:t,router:r,future:n}=e,[a,i]=o.useState(r.state),[l,s]=o.useState(),[u,c]=o.useState({isTransitioning:!1}),[d,h]=o.useState(),[f,m]=o.useState(),[p,v]=o.useState(),y=o.useRef(new Map),{v7_startTransition:g}=n||{},w=o.useCallback((e=>{g?function(e){qr?qr(e):e()}(e):e()}),[g]),b=o.useCallback(((e,t)=>{let{deletedFetchers:n,unstable_flushSync:a,unstable_viewTransitionOpts:o}=t;n.forEach((e=>y.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}));let l=null==r.window||"function"!=typeof r.window.document.startViewTransition;if(o&&!l){if(a){$r((()=>{f&&(d&&d.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=r.window.document.startViewTransition((()=>{$r((()=>i(e)))}));return t.finished.finally((()=>{$r((()=>{h(void 0),m(void 0),s(void 0),c({isTransitioning:!1})}))})),void $r((()=>m(t)))}f?(d&&d.resolve(),f.skipTransition(),v({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(s(e),c({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?$r((()=>i(e))):w((()=>i(e)))}),[r.window,f,d,y,w]);o.useLayoutEffect((()=>r.subscribe(b)),[r,b]),o.useEffect((()=>{u.isTransitioning&&!u.flushSync&&h(new Vr)}),[u]),o.useEffect((()=>{if(d&&l&&r.window){let e=l,t=d.promise,n=r.window.document.startViewTransition((async()=>{w((()=>i(e))),await t}));n.finished.finally((()=>{h(void 0),m(void 0),s(void 0),c({isTransitioning:!1})})),m(n)}}),[w,l,d,r.window]),o.useEffect((()=>{d&&l&&a.location.key===l.location.key&&d.resolve()}),[d,f,a.location,l]),o.useEffect((()=>{!u.isTransitioning&&p&&(s(p.state),c({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),v(void 0))}),[u.isTransitioning,p]),o.useEffect((()=>{}),[]);let E=o.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),S=r.basename||"/",x=o.useMemo((()=>({router:r,navigator:E,static:!1,basename:S})),[r,E,S]);return o.createElement(o.Fragment,null,o.createElement(Xe.Provider,{value:x},o.createElement(Ge.Provider,{value:a},o.createElement(Wr.Provider,{value:y.current},o.createElement(Jr.Provider,{value:u},o.createElement(Nt,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?o.createElement(Gr,{routes:r.routes,future:r.future,state:a}):t))))),null)}function Gr(e){let{routes:t,future:r,state:n}=e;return ht(t,void 0,n,r)}function Qr(e){let{basename:t,children:r,future:n,history:a}=e,[i,l]=o.useState({action:a.action,location:a.location}),{v7_startTransition:s}=n||{},u=o.useCallback((e=>{s&&qr?qr((()=>l(e))):l(e)}),[l,s]);return o.useLayoutEffect((()=>a.listen(u)),[a,u]),o.createElement(Nt,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a,future:n})}Qr.displayName="unstable_HistoryRouter";const Zr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,en=o.forwardRef((function(e,t){let r,{onClick:n,prefetch:a="none",relative:i,reloadDocument:u,replace:c,state:d,target:h,to:f,preventScrollReset:m,unstable_viewTransition:p}=e,v=s(e,Fr),{basename:y}=o.useContext(Ze),g="string"==typeof f&&Zr.test(f),w=!1;if("string"==typeof f&&g&&(r=f,Br))try{let e=new URL(window.location.href),t=f.startsWith("//")?new URL(e.protocol+f):new URL(f),r=T(t.pathname,y);t.origin===e.origin&&null!=r?f=r+t.search+t.hash:w=!0}catch(e){}let b=nt(f,{relative:i}),[E,S,x]=function(e,t){let r=o.useContext(Cr),[n,a]=o.useState(!1),[i,l]=o.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:h}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{l(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(n){let e=setTimeout((()=>{l(!0)}),100);return()=>{clearTimeout(e)}}}),[n]);let m=()=>{a(!0)},p=()=>{a(!1),l(!1)};return r?"intent"!==e?[i,f,{}]:[i,f,{onFocus:Lr(s,m),onBlur:Lr(u,p),onMouseEnter:Lr(c,m),onMouseLeave:Lr(d,p),onTouchStart:Lr(h,m)}]:[!1,f,{}]}(a,v),R=un(f,{replace:c,state:d,target:h,preventScrollReset:m,relative:i,unstable_viewTransition:p});let _=o.createElement("a",l({},v,x,{href:r||b,onClick:w||u?n:function(e){n&&n(e),e.defaultPrevented||R(e)},ref:jr(t,S),target:h}));return E&&!g?o.createElement(o.Fragment,null,_,o.createElement(Pr,{page:b})):_}));en.displayName="Link";const tn=o.forwardRef((function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:a="",end:i=!1,style:u,to:c,unstable_viewTransition:d,children:h}=e,f=s(e,Or),m=ct(c,{relative:f.relative}),p=ot(),v=o.useContext(Ge),{navigator:y,basename:g}=o.useContext(Ze),w=null!=v&&gn(m)&&!0===d,b=y.encodeLocation?y.encodeLocation(m).pathname:m.pathname,E=p.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(E=E.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&g&&(S=T(S,g)||S);const x="/"!==b&&b.endsWith("/")?b.length-1:b.length;let R,_=E===b||!i&&E.startsWith(b)&&"/"===E.charAt(x),C=null!=S&&(S===b||!i&&S.startsWith(b)&&"/"===S.charAt(b.length)),D={isActive:_,isPending:C,isTransitioning:w},L=_?r:void 0;R="function"==typeof a?a(D):[a,_?"active":null,C?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof u?u(D):u;return o.createElement(en,l({},f,{"aria-current":L,className:R,ref:t,style:k,to:c,unstable_viewTransition:d}),"function"==typeof h?h(D):h)}));tn.displayName="NavLink";const rn=o.forwardRef(((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:i,state:u,method:c=Wt,action:d,onSubmit:h,relative:f,preventScrollReset:m,unstable_viewTransition:p}=e,v=s(e,Nr),y=hn(),g=fn(d,{relative:f}),w="get"===c.toLowerCase()?"get":"post";return o.createElement("form",l({ref:t,method:w,action:g,onSubmit:a?h:e=>{if(h&&h(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||c;y(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:i,state:u,relative:f,preventScrollReset:m,unstable_viewTransition:p})}},v))}));function nn(e){let{getKey:t,storageKey:r}=e,n=s(e,Hr),a=o.useContext(Cr),{basename:i}=o.useContext(Ze),u=ot(),c=_t();yn({getKey:t,storageKey:r});let d=o.useMemo((()=>{if(!a||!t)return null;let e=vn(u,c,i,t);return e!==u.key?e:null}),[]);if(!a||a.isSpaMode)return null;let h=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let r=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof r&&window.scrollTo(0,r)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return o.createElement("script",l({},n,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"("+h+")("+JSON.stringify(r||mn)+", "+JSON.stringify(d)+")"}}))}rn.displayName="Form",nn.displayName="ScrollRestoration";var an=function(e){return e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState",e}(an||{}),on=function(e){return e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration",e}(on||{});function ln(e){let t=o.useContext(Xe);return t||m(!1),t}function sn(e){let t=o.useContext(Ge);return t||m(!1),t}function un(e,t){let{target:r,replace:n,state:a,preventScrollReset:i,relative:l,unstable_viewTransition:s}=void 0===t?{}:t,u=lt(),c=ot(),d=ct(e,{relative:l});return o.useCallback((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,r)){t.preventDefault();let r=void 0!==n?n:y(c)===y(d);u(e,{replace:r,state:a,preventScrollReset:i,relative:l,unstable_viewTransition:s})}}),[c,u,d,n,a,r,e,i,l,s])}let cn=0,dn=()=>"__"+String(++cn)+"__";function hn(){let{router:e}=ln(an.UseSubmit),{basename:t}=o.useContext(Ze),r=xt();return o.useCallback((async 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.")}();let{action:o,method:i,encType:l,formData:s,body:u}=Gt(n,t);if(!1===a.navigate){let t=a.fetcherKey||dn();await e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,unstable_flushSync:a.unstable_flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,unstable_flushSync:a.unstable_flushSync,unstable_viewTransition:a.unstable_viewTransition})}),[e,t,r])}function fn(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=o.useContext(Ze),a=o.useContext(tt);a||m(!1);let[i]=a.matches.slice(-1),s=l({},ct(e||".",{relative:r})),u=ot();if(null==e){s.search=u.search;let e=new URLSearchParams(s.search);e.has("index")&&""===e.get("index")&&(e.delete("index"),s.search=e.toString()?"?"+e.toString():"")}return e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(s.pathname="/"===s.pathname?n:N([n,s.pathname])),y(s)}const mn="react-router-scroll-positions";let pn={};function vn(e,t,r,n){let a=null;return n&&(a=n("/"!==r?l({},e,{pathname:T(e.pathname,r)||e.pathname}):e,t)),null==a&&(a=e.key),a}function yn(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=ln(an.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:i}=sn(on.UseScrollRestoration),{basename:l}=o.useContext(Ze),s=ot(),u=_t(),c=Rt();o.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),function(e,t){let{capture:r}=t||{};o.useEffect((()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}}),[e,r])}(o.useCallback((()=>{if("idle"===c.state){let e=vn(s,u,l,t);pn[e]=window.scrollY}try{sessionStorage.setItem(r||mn,JSON.stringify(pn))}catch(e){}window.history.scrollRestoration="auto"}),[c.state,t,l,s,u,r])),"undefined"!=typeof document&&(o.useLayoutEffect((()=>{try{let e=sessionStorage.getItem(r||mn);e&&(pn=JSON.parse(e))}catch(e){}}),[r]),o.useLayoutEffect((()=>{let e=null==n?void 0:n.enableScrollRestoration(pn,(()=>window.scrollY),t?(e,r)=>vn(e,r,l,t):void 0);return()=>e&&e()}),[n,l,t]),o.useLayoutEffect((()=>{if(!1!==a)if("number"!=typeof a){if(s.hash){let e=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==i&&window.scrollTo(0,0)}else window.scrollTo(0,a)}),[s,a,i]))}function gn(e,t){void 0===t&&(t={});let r=o.useContext(Jr);null==r&&m(!1);let{basename:n}=ln(an.useViewTransitionState),a=ct(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=T(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=T(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=M(a.pathname,l)||null!=M(a.pathname,i)}function wn(e){let{context:t,router:r,hydrate:n=!0,nonce:a}=e;r&&t||m(!1);let i={router:r,navigator:Sn(),static:!0,staticContext:t,basename:t.basename||"/"},l=new Map,s="";if(!1!==n){let e={loaderData:t.loaderData,actionData:t.actionData,errors:En(t.errors)};s="window.__staticRouterHydrationData = JSON.parse("+JSON.stringify(JSON.stringify(e)).replace(Ln,(e=>Dn[e]))+");"}let{state:u}=i.router;return o.createElement(o.Fragment,null,o.createElement(Xe.Provider,{value:i},o.createElement(Ge.Provider,{value:u},o.createElement(Wr.Provider,{value:l},o.createElement(Jr.Provider,{value:{isTransitioning:!1}},o.createElement(Nt,{basename:i.basename,location:u.location,navigationType:u.historyAction,navigator:i.navigator,static:i.static,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},o.createElement(bn,{routes:r.routes,future:r.future,state:u})))))),s?o.createElement("script",{suppressHydrationWarning:!0,nonce:a,dangerouslySetInnerHTML:{__html:s}}):null)}function bn(e){let{routes:t,future:r,state:n}=e;return ht(t,void 0,n,r)}function En(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)Y(n)?r[e]=l({},n,{__type:"RouteErrorResponse"}):n instanceof Error?r[e]=l({message:n.message,__type:"Error"},"Error"!==n.name?{__subType:n.name}:{}):r[e]=n;return r}function Sn(){return{createHref:Rn,encodeLocation:_n,push(e){throw new Error("You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a `navigate("+JSON.stringify(e)+")` somewhere in your app.")},replace(e){throw new Error("You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a `navigate("+JSON.stringify(e)+", { replace: true })` somewhere in your app.")},go(e){throw new Error("You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a `navigate("+e+")` somewhere in your app.")},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}}}function xn(e,t,r){void 0===r&&(r={});let n={},a=S(e,At,void 0,n),o=t.matches.map((e=>l({},e,{route:n[e.route.id]||e.route}))),i=e=>"You cannot use router."+e+"() on the server because it is a stateless environment";return{get basename(){return t.basename},get future(){var e,t;return{v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!0===(null==(e=r.future)?void 0:e.v7_partialHydration),v7_prependBasename:!1,v7_relativeSplatPath:!0===(null==(t=r.future)?void 0:t.v7_relativeSplatPath),unstable_skipActionErrorRevalidation:!1}},get state(){return{historyAction:u.Pop,location:t.location,matches:o,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,navigation:ee,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",fetchers:new Map,blockers:new Map}},get routes(){return a},get window(){},initialize(){throw i("initialize")},subscribe(){throw i("subscribe")},enableScrollRestoration(){throw i("enableScrollRestoration")},navigate(){throw i("navigate")},fetch(){throw i("fetch")},revalidate(){throw i("revalidate")},createHref:Rn,encodeLocation:_n,getFetcher:()=>te,deleteFetcher(){throw i("deleteFetcher")},dispose(){throw i("dispose")},getBlocker:()=>re,deleteBlocker(){throw i("deleteBlocker")},_internalFetchControllers:new Map,_internalActiveDeferreds:new Map,_internalSetRoutes(){throw i("_internalSetRoutes")}}}function Rn(e){return"string"==typeof e?e:y(e)}function _n(e){let t="string"==typeof e?e:y(e);t=t.replace(/ $/,"%20");let r=Cn.test(t)?new URL(t):new URL(t,"http://localhost");return{pathname:r.pathname,search:r.search,hash:r.hash}}const Cn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dn={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ln=/[&><\u2028\u2029]/g;class kn extends o.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?o.createElement(Pn,{error:this.state.error}):this.props.children}}function Pn(e){let{error:t}=e;console.error(t);let r,n=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n );\n '}});if(Y(t))return o.createElement(Mn,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),n);if(t instanceof Error)r=t;else{let e=null==t?"Unknown Error":"object"==typeof t&&"toString"in t?t.toString():JSON.stringify(t);r=new Error(e)}return o.createElement(Mn,{title:"Application Error!"},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function Mn(e){var t;let{title:r,renderScripts:n,children:a}=e,{routeModules:i}=Dr();return null!=(t=i.root)&&t.Layout?a:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,r)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},a,n?o.createElement(Ur,null):null)))}function An(){return o.createElement(Mn,{title:"Loading...",renderScripts:!0},o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this " +\n "when your app is running `clientLoader` functions on hydration. " +\n "Check out https://remix.run/route/hydrate-fallback for more information."\n );\n '}}))}function Tn(e){let t={};return Object.values(e).forEach((e=>{let r=e.parentId||"";t[r]||(t[r]=[]),t[r].push(e)})),t}function Un(e,t,r){let n=In(t),a=!t.HydrateFallback||r&&"root"!==e.id?"root"===e.id?An:void 0:t.HydrateFallback,i=t.ErrorBoundary?t.ErrorBoundary:"root"===e.id?()=>o.createElement(Pn,{error:Ct()}):void 0;return"root"===e.id&&t.Layout?l({},n?{element:o.createElement(t.Layout,null,o.createElement(n,null))}:{Component:n},i?{errorElement:o.createElement(t.Layout,null,o.createElement(i,null))}:{ErrorBoundary:i},a?{hydrateFallbackElement:o.createElement(t.Layout,null,o.createElement(a,null))}:{HydrateFallback:a}):{Component:n,ErrorBoundary:i,HydrateFallback:a}}function jn(e,t,r,n,a,o,i){return void 0===a&&(a=""),void 0===o&&(o=Tn(e)),void 0===i&&(i=Promise.resolve({Component:()=>null})),(o[a]||[]).map((a=>{let s=t[a.id];s||Qt(!1);let u=l({},Un(a,s,n),{caseSensitive:a.caseSensitive,id:a.id,index:a.index,path:a.path,handle:s.handle,lazy:n?()=>i:void 0,loader:!(!a.hasLoader&&!a.hasClientLoader)||void 0}),c=jn(e,t,r,n,a.id,o,i);return c.length>0&&(u.children=c),u}))}function Fn(e,t,r,n,a,o){return Hn(t,r,n,a,o,"",Tn(t),e)}function On(e,t,r){if(r){let r="You cannot call "+("action"===e?"serverAction()":"serverLoader()")+' in SPA Mode (routeId: "'+t.id+'")';throw console.error(r),new K(400,"Bad Request",new Error(r),!0)}let n="You are trying to call "+("action"===e?"serverAction()":"serverLoader()")+" on a route that does not have a server "+e+' (routeId: "'+t.id+'")';if("loader"===e&&!t.hasLoader||"action"===e&&!t.hasAction)throw console.error(n),new K(400,"Bad Request",new Error(n),!0)}function Nn(e,t){let r="clientAction"===e?"a":"an",n='Route "'+t+'" does not have '+r+" "+e+", but you are trying to submit to it. To fix this, please add "+r+" `"+e+"` function to the route";throw console.error(n),new K(405,"Method Not Allowed",new Error(n),!0)}function Hn(e,t,r,n,a,o,i,s){return void 0===o&&(o=""),void 0===i&&(i=Tn(e)),(i[o]||[]).map((o=>{let u=t[o.id];function c(e){return"function"!=typeof e&&Qt(!1),e()}function d(e){return o.hasLoader?c(e):Promise.resolve(null)}function h(e){if(!o.hasAction)throw Nn("action",o.id);return c(e)}async function f(e){let r=t[o.id],n=r?tr(o,r):Promise.resolve();try{return e()}finally{await n}}let m={id:o.id,index:o.index,path:o.path};if(u){var p,v,y;Object.assign(m,l({},m,Un(o,u,a),{handle:u.handle,shouldRevalidate:s?Bn(o.id,u.shouldRevalidate,s):u.shouldRevalidate}));let e=null==r||null==(p=r.loaderData)?void 0:p[o.id],t=null==r||null==(v=r.errors)?void 0:v[o.id],n=null==s&&(!0===(null==(y=u.clientLoader)?void 0:y.hydrate)||!o.hasLoader);m.loader=async(r,i)=>{let{request:l,params:s}=r;try{return await f((async()=>(u||Qt(!1),u.clientLoader?u.clientLoader({request:l,params:s,async serverLoader(){if(On("loader",o,a),n){if(void 0!==t)throw t;return e}return d(i)}}):a?null:d(i))))}finally{n=!1}},m.loader.hydrate=zn(o,u,a),m.action=(e,t)=>{let{request:r,params:n}=e;return f((async()=>{if(u||Qt(!1),!u.clientAction){if(a)throw Nn("clientAction",o.id);return h(t)}return u.clientAction({request:r,params:n,serverAction:async()=>(On("action",o,a),h(t))})}))}}else o.hasClientLoader||(m.loader=(e,t)=>f((()=>a?Promise.resolve(null):d(t)))),o.hasClientAction||(m.action=(e,t)=>f((()=>{if(a)throw Nn("clientAction",o.id);return h(t)}))),m.lazy=async()=>{let e=await async function(e,t){let r=await Zt(e,t);return await tr(e,r),{Component:In(r),ErrorBoundary:r.ErrorBoundary,clientAction:r.clientAction,clientLoader:r.clientLoader,handle:r.handle,links:r.links,meta:r.meta,shouldRevalidate:r.shouldRevalidate}}(o,t),r=l({},e);if(e.clientLoader){let t=e.clientLoader;r.loader=(e,r)=>t(l({},e,{serverLoader:async()=>(On("loader",o,a),d(r))}))}if(e.clientAction){let t=e.clientAction;r.action=(e,r)=>t(l({},e,{serverAction:async()=>(On("action",o,a),h(r))}))}return s&&(r.shouldRevalidate=Bn(o.id,e.shouldRevalidate,s)),l({},r.loader?{loader:r.loader}:{},r.action?{action:r.action}:{},{hasErrorBoundary:r.hasErrorBoundary,shouldRevalidate:r.shouldRevalidate,handle:r.handle,Component:r.Component,ErrorBoundary:r.ErrorBoundary})};let g=Hn(e,t,r,n,a,o.id,i,s);return g.length>0&&(m.children=g),m}))}function Bn(e,t,r){let n=!1;return a=>n?t?t(a):a.defaultShouldRevalidate:(n=!0,r.has(e))}function In(e){if(null==e.default)return;return"object"==typeof e.default&&0===Object.keys(e.default).length?void 0:e.default}function zn(e,t,r){return r&&"root"!==e.id||null!=t.clientLoader&&(!0===t.clientLoader.hydrate||!0!==e.hasLoader)}let Jn=null,Wn=null;let qn=null;function Kn(){var e;if(!Jn&&window.__remixContext&&window.__remixManifest&&window.__remixRouteModules&&(Jn={context:window.__remixContext,manifest:window.__remixManifest,routeModules:window.__remixRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}),!Jn)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let t=Jn;if(!Jn.stateDecodingPromise){let e=Jn.context.stream,r=Jn.context.streamAction;e||Qt(!1),Jn.context.stream=void 0,Jn.context.future.unstable_serverComponents?Jn.stateDecodingPromise=Promise.all([window.createFromReadableStream(e),r?window.createFromReadableStream(r):void 0]).then((e=>{let[r,n]=e,a={};for(let e of Object.keys(Jn.routeModules))"error"in r[e]?(a.errors=a.errors||{},a.errors[e]=r[e].error):"data"in r[e]&&(a.loaderData=a.loaderData||{},a.loaderData[e]=r[e].data);if(n){const e=window.__remixContext.serverHandoffActionId;"error"in n?(a.errors=a.errors||{},a.errors[e]=n.error):"data"in n&&(a.actionData=a.actionData||{},a.actionData[e]=n.data)}Jn.context.state=a,t.stateDecodingPromise.value=!0})).catch((e=>{t.stateDecodingPromise.error=e})):Jn.stateDecodingPromise=gr(e,window).then((e=>{Jn.context.state=e.value,t.stateDecodingPromise.value=!0})).catch((e=>{t.stateDecodingPromise.error=e}))}if(Jn.stateDecodingPromise.error)throw Jn.stateDecodingPromise.error;if(!Jn.stateDecodingPromise.value)throw Jn.stateDecodingPromise;let r,n=Hn(Jn.manifest.routes,Jn.routeModules,Jn.context.state,Jn.context.future,Jn.context.isSpaMode);if(!Jn.context.isSpaMode){r=l({},Jn.context.state,{loaderData:l({},Jn.context.state.loaderData)});let e=x(n,window.location);if(e)for(let t of e){let e=t.route.id,n=Jn.routeModules[e],a=Jn.manifest.routes[e];n&&zn(a,n,Jn.context.isSpaMode)&&(n.HydrateFallback||!a.hasLoader)?r.loaderData[e]=void 0:a&&!a.hasLoader&&(r.loaderData[e]=null)}r&&r.errors&&(r.errors=function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new K(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack=n.stack,r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack=n.stack,r[e]=t}}else r[e]=n;return r}(r.errors))}let a=ie({routes:n,history:h(),basename:Jn.context.basename,future:{v7_normalizeFormMethod:!0,v7_fetcherPersist:Jn.context.future.v3_fetcherPersist,v7_partialHydration:!0,v7_prependBasename:!0,v7_relativeSplatPath:Jn.context.future.v3_relativeSplatPath,unstable_skipActionErrorRevalidation:!0},hydrationData:r,mapRouteProperties:At,unstable_dataStrategy:mr(Jn.manifest,Jn.routeModules)});return Jn.router=a,a.state.initialized&&(Jn.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=Fn,window.__remixRouter=a,null==(e=qn)||e.routerReadyResolve(a),a}function Yn(e,t,r,n,a){return e.map((e=>{if(!e.id)throw new Error("Expected a route.id in @remix-run/testing processRoutes() function");let{loader:o,action:i}=e,s={id:e.id,path:e.path,index:e.index,Component:e.Component,ErrorBoundary:e.ErrorBoundary,action:i?e=>i(l({},e,{context:t})):void 0,loader:o?e=>o(l({},e,{context:t})):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},u={id:e.id,path:e.path,index:e.index,parentId:a,hasAction:null!=e.action,hasLoader:null!=e.loader,hasClientAction:!1,hasClientLoader:!1,hasErrorBoundary:null!=e.ErrorBoundary,module:"build/stub-path-to-module.js"};return r.routes[s.id]=u,n[e.id]={default:e.Component||Ft,ErrorBoundary:e.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(s.children=Yn(e.children,t,r,n,s.id)),s}))}"undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("react-router.production.min.js",document.baseURI).href,e.AbortedDeferredError=z,e.Await=function(e){let{children:t,errorElement:r,resolve:n}=e;return o.createElement(It,{resolve:n,errorElement:r},o.createElement(zt,null,t))},e.BrowserRouter=function(e){let{basename:t,children:r,future:n,window:a}=e,i=o.useRef();null==i.current&&(i.current=h({window:a,v5Compat:!0}));let l=i.current,[s,u]=o.useState({action:l.action,location:l.location}),{v7_startTransition:c}=n||{},d=o.useCallback((e=>{c&&qr?qr((()=>u(e))):u(e)}),[u,c]);return o.useLayoutEffect((()=>l.listen(d)),[l,d]),o.createElement(Nt,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:n})},e.Form=rn,e.HashRouter=function(e){let{basename:t,children:r,future:n,window:a}=e,i=o.useRef();null==i.current&&(i.current=f({window:a,v5Compat:!0}));let l=i.current,[s,u]=o.useState({action:l.action,location:l.location}),{v7_startTransition:c}=n||{},d=o.useCallback((e=>{c&&qr?qr((()=>u(e))):u(e)}),[u,c]);return o.useLayoutEffect((()=>l.listen(d)),[l,d]),o.createElement(Nt,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:n})},e.HydratedRouter=function(){Wn||(Wn=Kn());let[e,t]=o.useState(void 0),[r,n]=o.useState(Wn.state.location);return o.useLayoutEffect((()=>{Jn&&Jn.router&&!Jn.routerInitialized&&(Jn.routerInitialized=!0,Jn.router.initialize())}),[]),o.useLayoutEffect((()=>{if(Jn&&Jn.router)return Jn.router.subscribe((e=>{e.location!==r&&n(e.location)}))}),[r]),Jn||Qt(!1),o.createElement(o.Fragment,null,o.createElement(Cr.Provider,{value:{manifest:Jn.manifest,routeModules:Jn.routeModules,future:Jn.context.future,criticalCss:e,isSpaMode:Jn.context.isSpaMode}},o.createElement(kn,{location:r},o.createElement(Xr,{router:Wn,fallbackElement:null,future:{v7_startTransition:!0}}))),o.createElement(o.Fragment,null))},e.Link=en,e.Links=function(){let{isSpaMode:e,manifest:t,routeModules:r,criticalCss:n}=Dr(),{errors:a,matches:i}=_r(),s=kr(i,a,e),u=o.useMemo((()=>er(s,r,t)),[s,r,t]);return o.createElement(o.Fragment,null,n?o.createElement("style",{dangerouslySetInnerHTML:{__html:n}}):null,u.map((e=>{let{key:t,link:r}=e;return nr(r)?o.createElement(Pr,l({key:t},r)):o.createElement("link",l({key:t},r))})))},e.MemoryRouter=function(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:i}=e,l=o.useRef();null==l.current&&(l.current=d({initialEntries:n,initialIndex:a,v5Compat:!0}));let s=l.current,[u,c]=o.useState({action:s.action,location:s.location}),{v7_startTransition:h}=i||{},f=o.useCallback((e=>{h&&Ut?Ut((()=>c(e))):c(e)}),[c,h]);return o.useLayoutEffect((()=>s.listen(f)),[s,f]),o.createElement(Nt,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:s,future:i})},e.Meta=function(){let{isSpaMode:e,routeModules:t}=Dr(),{errors:r,matches:n,loaderData:a}=_r(),i=ot(),u=kr(n,r,e),c=null;r&&(c=r[u[u.length-1].route.id]);let d=[],h=null,f=[];for(let e=0;e<u.length;e++){let r=u[e],n=r.route.id,o=a[n],l=r.params,s=t[n],m=[],p={id:n,data:o,meta:[],params:r.params,pathname:r.pathname,handle:r.route.handle,error:c};if(f[e]=p,null!=s&&s.meta?m="function"==typeof s.meta?s.meta({data:o,params:l,location:i,matches:f,error:c}):Array.isArray(s.meta)?[...s.meta]:s.meta:h&&(m=[...h]),m=m||[],!Array.isArray(m))throw new Error("The route at "+r.route.path+" returns an invalid value. All route meta functions must return an array of meta objects.\n\nTo reference the meta function API, see https://remix.run/route/meta");p.meta=m,f[e]=p,d=[...m],h=d}return o.createElement(o.Fragment,null,d.flat().map((e=>{if(!e)return null;if("tagName"in e){let{tagName:t}=e,r=s(e,xr);if(!function(e){return"string"==typeof e&&/^(meta|link)$/.test(e)}(t))return console.warn("A meta object uses an invalid tagName: "+t+". Expected either 'link' or 'meta'"),null;let n=t;return o.createElement(n,l({key:JSON.stringify(r)},r))}if("title"in e)return o.createElement("title",{key:"title"},String(e.title));"charset"in e&&(null!=e.charSet||(e.charSet=e.charset),delete e.charset);if("charSet"in e&&null!=e.charSet)return"string"==typeof e.charSet?o.createElement("meta",{key:"charSet",charSet:e.charSet}):null;if("script:ld+json"in e)try{let t=JSON.stringify(e["script:ld+json"]);return o.createElement("script",{key:"script:ld+json:"+t,type:"application/ld+json",dangerouslySetInnerHTML:{__html:t}})}catch(e){return null}return o.createElement("meta",l({key:JSON.stringify(e)},e))})))},e.NavLink=tn,e.Navigate=function(e){let{to:t,replace:r,state:n,relative:a}=e;at()||m(!1);let{future:i,static:l}=o.useContext(Ze),{matches:s}=o.useContext(tt),{pathname:u}=ot(),c=lt(),d=O(t,F(s,i.v7_relativeSplatPath),u,"path"===a),h=JSON.stringify(d);return o.useEffect((()=>{c(JSON.parse(h),{replace:r,state:n,relative:a})}),[c,h,a,r,n]),null},e.NavigationType=u,e.Outlet=Ft,e.PrefetchPageLinks=Pr,e.RemixServer=function(e){let{context:t,url:r,abortDelay:n}=e;"string"==typeof r&&(r=new URL(r));let{manifest:a,routeModules:i,criticalCss:s,serverHandoffString:u}=t,c=jn(a.routes,i,t.future,t.isSpaMode);t.staticHandlerContext.loaderData=l({},t.staticHandlerContext.loaderData);for(let e of t.staticHandlerContext.matches){let r=e.route.id,n=i[r],a=t.manifest.routes[r];n&&zn(a,n,t.isSpaMode)&&(n.HydrateFallback||!a.hasLoader)&&(t.staticHandlerContext.loaderData[r]=void 0)}let d=xn(c,t.staticHandlerContext,{future:{v7_partialHydration:!0,v7_relativeSplatPath:t.future.v3_relativeSplatPath}});return o.createElement(o.Fragment,null,o.createElement(Cr.Provider,{value:{manifest:a,routeModules:i,criticalCss:s,serverHandoffString:u,future:t.future,isSpaMode:t.isSpaMode,serializeError:t.serializeError,abortDelay:n,renderMeta:t.renderMeta}},o.createElement(kn,{location:d.state.location},o.createElement(wn,{router:d,context:t.staticHandlerContext,hydrate:!1}))),t.serverHandoffStreamAction?o.createElement(o.Suspense,null,o.createElement(fr,{context:t,identifier:0,reader:t.serverHandoffStreamAction.getReader(),textDecoder:new TextDecoder,isAction:!0})):null,t.serverHandoffStream?o.createElement(o.Suspense,null,o.createElement(fr,{context:t,identifier:0,reader:t.serverHandoffStream.getReader(),textDecoder:new TextDecoder,isAction:!1})):null)},e.Route=Ot,e.Router=Nt,e.RouterProvider=function(e){let{fallbackElement:t,router:r,future:n}=e,[a,i]=o.useState(r.state),{v7_startTransition:l}=n||{},s=o.useCallback((e=>{l&&Ut?Ut((()=>i(e))):i(e)}),[i,l]);o.useLayoutEffect((()=>r.subscribe(s)),[r,s]),o.useEffect((()=>{}),[]);let u=o.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),c=r.basename||"/",d=o.useMemo((()=>({router:r,navigator:u,static:!1,basename:c})),[r,u,c]);return o.createElement(o.Fragment,null,o.createElement(Xe.Provider,{value:d},o.createElement(Ge.Provider,{value:a},o.createElement(Nt,{basename:c,location:a.location,navigationType:a.historyAction,navigator:u,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?o.createElement(jt,{routes:r.routes,future:r.future,state:a}):t))),null)},e.Routes=function(e){let{children:t,location:r}=e;return dt(Jt(t),r)},e.Scripts=Ur,e.ScrollRestoration=nn,e.StaticRouter=function(e){let{basename:t,children:r,location:n="/",future:a}=e;"string"==typeof n&&(n=g(n));let i=u.Pop,l={pathname:n.pathname||"/",search:n.search||"",hash:n.hash||"",state:n.state||null,key:n.key||"default"},s=Sn();return o.createElement(Nt,{basename:t,children:r,location:l,navigationType:i,navigator:s,future:a,static:!0})},e.StaticRouterProvider=wn,e.UNSAFE_DEFERRED_SYMBOL=le,e.UNSAFE_DataRouterContext=Xe,e.UNSAFE_DataRouterStateContext=Ge,e.UNSAFE_ErrorResponseImpl=K,e.UNSAFE_FetchersContext=Wr,e.UNSAFE_LocationContext=et,e.UNSAFE_NavigationContext=Ze,e.UNSAFE_RemixContext=Cr,e.UNSAFE_RouteContext=tt,e.UNSAFE_SingleFetchRedirectSymbol=hr,e.UNSAFE_ViewTransitionContext=Jr,e.UNSAFE_convertRoutesToDataRoutes=S,e.UNSAFE_decodeViaTurboStream=gr,e.UNSAFE_mapRouteProperties=At,e.UNSAFE_useRouteId=xt,e.UNSAFE_useRoutesImpl=ht,e.UNSAFE_useScrollRestoration=yn,e.createBrowserRouter=function(e,t){return ie({basename:null==t?void 0:t.basename,future:l({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:h({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||Ir(),routes:e,mapRouteProperties:At,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,window:null==t?void 0:t.window}).initialize()},e.createHashRouter=function(e,t){return ie({basename:null==t?void 0:t.basename,future:l({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:f({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||Ir(),routes:e,mapRouteProperties:At,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,window:null==t?void 0:t.window}).initialize()},e.createMemoryRouter=Tt,e.createPath=y,e.createRemixStub=function(e,t){return void 0===t&&(t={}),function(r){let{initialEntries:n,initialIndex:a,hydrationData:i,future:l}=r,s=o.useRef(),u=o.useRef();if(null==s.current){u.current={future:{v3_fetcherPersist:!0===(null==l?void 0:l.v3_fetcherPersist),v3_relativeSplatPath:!0===(null==l?void 0:l.v3_relativeSplatPath),unstable_serverComponents:!0===(null==l?void 0:l.unstable_serverComponents)},manifest:{routes:{},entry:{imports:[],module:""},url:"",version:""},routeModules:{},isSpaMode:!1};let r=Yn(S(e,(e=>e)),t,u.current.manifest,u.current.routeModules);s.current=Tt(r,{initialEntries:n,initialIndex:a,hydrationData:i})}return o.createElement(Cr.Provider,{value:u.current},o.createElement(Xr,{router:s.current}))}},e.createRoutesFromChildren=Jt,e.createRoutesFromElements=Jt,e.createSearchParams=Yt,e.createStaticHandler=function(e,t){return se(e,l({},t,{mapRouteProperties:At}))},e.createStaticRouter=xn,e.defer=function(e,t){return void 0===t&&(t={}),new J(e,"number"==typeof t?{status:t}:t)},e.generatePath=function(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map(((e,r,n)=>{if(r===n.length-1&&"*"===e){return a(t["*"])}const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];return"?"!==r&&null==n&&m(!1),a(n)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")},e.getStaticContextFromError=function(e,t,r){return l({},t,{statusCode:Y(r)?r.status:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:r}})},e.isRouteErrorResponse=Y,e.json=function(e,t){void 0===t&&(t={});let 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),l({},r,{headers:n}))},e.matchPath=M,e.matchRoutes=x,e.parsePath=g,e.redirect=q,e.redirectDocument=(e,t)=>{let r=q(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},e.renderMatches=function(e){return yt(e)},e.resolvePath=U,e.stripBasename=T,e.unstable_HistoryRouter=Qr,e.unstable_usePrompt=function(e){let{when:t,message:r}=e,n=kt(t);o.useEffect((()=>{if("blocked"===n.state){window.confirm(r)?setTimeout(n.proceed,0):n.reset()}}),[n,r]),o.useEffect((()=>{"blocked"!==n.state||t||n.reset()}),[n,t])},e.unstable_useViewTransitionState=gn,e.useActionData=function(){let e=Et(wt.UseActionData),t=St(wt.UseLoaderData);return e.actionData?e.actionData[t]:void 0},e.useAsyncError=function(){let e=o.useContext(Qe);return null==e?void 0:e._error},e.useAsyncValue=Dt,e.useBeforeUnload=function(e,t){let{capture:r}=t||{};o.useEffect((()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}}),[e,r])},e.useBlocker=kt,e.useFetcher=function(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=ln(an.UseFetcher),a=sn(on.UseFetcher),i=o.useContext(Wr),s=o.useContext(tt),u=null==(t=s.matches[s.matches.length-1])?void 0:t.route.id;i||m(!1),s||m(!1),null==u&&m(!1);let c=Yr?Yr():"",[d,h]=o.useState(r||c);r&&r!==d?h(r):d||h(dn()),o.useEffect((()=>(n.getFetcher(d),()=>{n.deleteFetcher(d)})),[n,d]);let f=o.useCallback((async(e,t)=>{u||m(!1),await n.fetch(d,u,e,t)}),[d,u,n]),p=hn(),v=o.useCallback((async(e,t)=>{await p(e,l({},t,{navigate:!1,fetcherKey:d}))}),[d,p]),y=o.useMemo((()=>{let e=o.forwardRef(((e,t)=>o.createElement(rn,l({},e,{navigate:!1,fetcherKey:d,ref:t}))));return e.displayName="fetcher.Form",e}),[d]),g=a.fetchers.get(d)||te,w=i.get(d);return o.useMemo((()=>l({Form:y,submit:v,load:f},g,{data:w})),[y,v,f,g,w])},e.useFetchers=function(){let e=sn(on.UseFetchers);return Array.from(e.fetchers.entries()).map((e=>{let[t,r]=e;return l({},r,{key:t})}))},e.useFormAction=fn,e.useHref=nt,e.useInRouterContext=at,e.useLinkClickHandler=un,e.useLoaderData=function(){let e=Et(wt.UseLoaderData),t=St(wt.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")},e.useLocation=ot,e.useMatch=function(e){at()||m(!1);let{pathname:t}=ot();return o.useMemo((()=>M(e,t)),[t,e])},e.useMatches=_t,e.useNavigate=lt,e.useNavigation=Rt,e.useNavigationType=function(){return o.useContext(et).navigationType},e.useOutlet=ut,e.useOutletContext=function(){return o.useContext(st)},e.useParams=function(){let{matches:e}=o.useContext(tt),t=e[e.length-1];return t?t.params:{}},e.useResolvedPath=ct,e.useRevalidator=function(){let e=bt(gt.UseRevalidator),t=Et(wt.UseRevalidator);return o.useMemo((()=>({async revalidate(){await e.router.revalidate()},state:t.revalidation})),[e.router,t.revalidation])},e.useRouteError=Ct,e.useRouteLoaderData=function(e){return Et(wt.UseRouteLoaderData).loaderData[e]},e.useRoutes=dt,e.useSearchParams=function(e){let t=o.useRef(Yt(e)),r=o.useRef(!1),n=ot(),a=o.useMemo((()=>function(e,t){let r=Yt(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(n.search,r.current?null:t.current)),[n.search]),i=lt(),l=o.useCallback(((e,t)=>{const n=Yt("function"==typeof e?e(a):e);r.current=!0,i("?"+n,t)}),[i,a]);return[a,l]},e.useSubmit=hn,Object.defineProperty(e,"__esModule",{value:!0})}));
11
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@remix-run/router")):"function"==typeof define&&define.amd?define(["exports","react","@remix-run/router"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactRouter={},e.React,e.RemixRouter)}(this,(function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=n(t);function o(){return o=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},o.apply(this,arguments)}const i=a.createContext(null),u=a.createContext(null),l=a.createContext(null),s=a.createContext(null),c=a.createContext(null),d=a.createContext({outlet:null,matches:[],isDataRoute:!1}),p=a.createContext(null);function f(){return null!=a.useContext(c)}function m(){return f()||r.UNSAFE_invariant(!1),a.useContext(c).location}function v(e){a.useContext(s).static||a.useLayoutEffect(e)}function h(){let{isDataRoute:e}=a.useContext(d);return e?function(){let{router:e}=O(U.UseNavigateStable),t=j(N.UseNavigateStable),r=a.useRef(!1);return v((()=>{r.current=!0})),a.useCallback((function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,o({fromRouteId:t},a)))}),[e,t])}():function(){f()||r.UNSAFE_invariant(!1);let e=a.useContext(i),{basename:t,future:n,navigator:o}=a.useContext(s),{matches:u}=a.useContext(d),{pathname:l}=m(),c=JSON.stringify(r.UNSAFE_getResolveToMatches(u,n.v7_relativeSplatPath)),p=a.useRef(!1);return v((()=>{p.current=!0})),a.useCallback((function(n,a){if(void 0===a&&(a={}),!p.current)return;if("number"==typeof n)return void o.go(n);let i=r.resolveTo(n,JSON.parse(c),l,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:r.joinPaths([t,i.pathname])),(a.replace?o.replace:o.push)(i,a.state,a)}),[t,o,c,l,e])}()}const E=a.createContext(null);function g(e){let t=a.useContext(d).outlet;return t?a.createElement(E.Provider,{value:e},t):t}function y(e,t){let{relative:n}=void 0===t?{}:t,{future:o}=a.useContext(s),{matches:i}=a.useContext(d),{pathname:u}=m(),l=JSON.stringify(r.UNSAFE_getResolveToMatches(i,o.v7_relativeSplatPath));return a.useMemo((()=>r.resolveTo(e,JSON.parse(l),u,"path"===n)),[e,l,u,n])}function b(e,t){return R(e,t)}function R(e,t,n,i){f()||r.UNSAFE_invariant(!1);let{navigator:u}=a.useContext(s),{matches:l}=a.useContext(d),p=l[l.length-1],v=p?p.params:{};!p||p.pathname;let h=p?p.pathnameBase:"/";p&&p.route;let E,g=m();if(t){var y;let e="string"==typeof t?r.parsePath(t):t;"/"===h||(null==(y=e.pathname)?void 0:y.startsWith(h))||r.UNSAFE_invariant(!1),E=e}else E=g;let b=E.pathname||"/",R=b;if("/"!==h){let e=h.replace(/^\//,"").split("/");R="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let P=r.matchRoutes(e,{pathname:R}),x=_(P&&P.map((e=>Object.assign({},e,{params:Object.assign({},v,e.params),pathname:r.joinPaths([h,u.encodeLocation?u.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:r.joinPaths([h,u.encodeLocation?u.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,i);return t&&x?a.createElement(c.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},E),navigationType:r.Action.Pop}},x):x}function P(){let e=F(),t=r.isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={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),n?a.createElement("pre",{style:o},n):null,null)}const x=a.createElement(P,null);class C extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(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}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(d.Provider,{value:this.props.routeContext},a.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function S(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(i);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(d.Provider,{value:t},n)}function _(e,t,n,o){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var u;if(null==(u=n)||!u.errors)return null;e=n.matches}let l=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||r.UNSAFE_invariant(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,d=-1;if(n&&o&&o.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){c=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,r,o)=>{let i,u=!1,p=null,f=null;var m;n&&(i=s&&r.route.id?s[r.route.id]:void 0,p=r.route.errorElement||x,c&&(d<0&&0===o?(m="route-fallback",!1||B[m]||(B[m]=!0),u=!0,f=null):d===o&&(u=!0,f=r.route.hydrateFallbackElement||null)));let v=t.concat(l.slice(0,o+1)),h=()=>{let t;return t=i?p:u?f:r.route.Component?a.createElement(r.route.Component,null):r.route.element?r.route.element:e,a.createElement(S,{match:r,routeContext:{outlet:e,matches:v,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?a.createElement(C,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:h(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):h()}),null)}var U=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(U||{}),N=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}(N||{});function O(e){let t=a.useContext(i);return t||r.UNSAFE_invariant(!1),t}function A(e){let t=a.useContext(u);return t||r.UNSAFE_invariant(!1),t}function j(e){let t=function(e){let t=a.useContext(d);return t||r.UNSAFE_invariant(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||r.UNSAFE_invariant(!1),n.route.id}function F(){var e;let t=a.useContext(p),r=A(N.UseRouteError),n=j(N.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function D(){let e=a.useContext(l);return null==e?void 0:e._data}let k=0;const B={};const L=a.startTransition;function M(e){let{routes:t,future:r,state:n}=e;return R(t,void 0,n,r)}function T(e){r.UNSAFE_invariant(!1)}function I(e){let{basename:t="/",children:n=null,location:i,navigationType:u=r.Action.Pop,navigator:l,static:d=!1,future:p}=e;f()&&r.UNSAFE_invariant(!1);let m=t.replace(/^\/*/,"/"),v=a.useMemo((()=>({basename:m,navigator:l,static:d,future:o({v7_relativeSplatPath:!1},p)})),[m,p,l,d]);"string"==typeof i&&(i=r.parsePath(i));let{pathname:h="/",search:E="",hash:g="",state:y=null,key:b="default"}=i,R=a.useMemo((()=>{let e=r.stripBasename(h,m);return null==e?null:{location:{pathname:e,search:E,hash:g,state:y,key:b},navigationType:u}}),[m,h,E,g,y,b,u]);return null==R?null:a.createElement(s.Provider,{value:v},a.createElement(c.Provider,{children:n,value:R}))}var H=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(H||{});const w=new Promise((()=>{}));class J extends a.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,o=null,i=H.pending;if(n instanceof Promise)if(this.state.error){i=H.error;let e=this.state.error;o=Promise.reject().catch((()=>{})),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>e})}else n._tracked?(o=n,i="_error"in o?H.error:"_data"in o?H.success:H.pending):(i=H.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),o=n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else i=H.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>n});if(i===H.error&&o._error instanceof r.AbortedDeferredError)throw w;if(i===H.error&&!t)throw o._error;if(i===H.error)return a.createElement(l.Provider,{value:o,children:t});if(i===H.success)return a.createElement(l.Provider,{value:o,children:e});throw o}}function z(e){let{children:t}=e,r=D(),n="function"==typeof t?t(r):t;return a.createElement(a.Fragment,null,n)}function q(e,t){void 0===t&&(t=[]);let n=[];return a.Children.forEach(e,((e,o)=>{if(!a.isValidElement(e))return;let i=[...t,o];if(e.type===a.Fragment)return void n.push.apply(n,q(e.props.children,i));e.type!==T&&r.UNSAFE_invariant(!1),e.props.index&&e.props.children&&r.UNSAFE_invariant(!1);let u={id:e.props.id||i.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&&(u.children=q(e.props.children,i)),n.push(u)})),n}function V(e){let 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}Object.defineProperty(e,"AbortedDeferredError",{enumerable:!0,get:function(){return r.AbortedDeferredError}}),Object.defineProperty(e,"NavigationType",{enumerable:!0,get:function(){return r.Action}}),Object.defineProperty(e,"createPath",{enumerable:!0,get:function(){return r.createPath}}),Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return r.defer}}),Object.defineProperty(e,"generatePath",{enumerable:!0,get:function(){return r.generatePath}}),Object.defineProperty(e,"isRouteErrorResponse",{enumerable:!0,get:function(){return r.isRouteErrorResponse}}),Object.defineProperty(e,"json",{enumerable:!0,get:function(){return r.json}}),Object.defineProperty(e,"matchPath",{enumerable:!0,get:function(){return r.matchPath}}),Object.defineProperty(e,"matchRoutes",{enumerable:!0,get:function(){return r.matchRoutes}}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r.parsePath}}),Object.defineProperty(e,"redirect",{enumerable:!0,get:function(){return r.redirect}}),Object.defineProperty(e,"redirectDocument",{enumerable:!0,get:function(){return r.redirectDocument}}),Object.defineProperty(e,"resolvePath",{enumerable:!0,get:function(){return r.resolvePath}}),e.Await=function(e){let{children:t,errorElement:r,resolve:n}=e;return a.createElement(J,{resolve:n,errorElement:r},a.createElement(z,null,t))},e.MemoryRouter=function(e){let{basename:t,children:n,initialEntries:o,initialIndex:i,future:u}=e,l=a.useRef();null==l.current&&(l.current=r.createMemoryHistory({initialEntries:o,initialIndex:i,v5Compat:!0}));let s=l.current,[c,d]=a.useState({action:s.action,location:s.location}),{v7_startTransition:p}=u||{},f=a.useCallback((e=>{p&&L?L((()=>d(e))):d(e)}),[d,p]);return a.useLayoutEffect((()=>s.listen(f)),[s,f]),a.createElement(I,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:s,future:u})},e.Navigate=function(e){let{to:t,replace:n,state:o,relative:i}=e;f()||r.UNSAFE_invariant(!1);let{future:u,static:l}=a.useContext(s),{matches:c}=a.useContext(d),{pathname:p}=m(),v=h(),E=r.resolveTo(t,r.UNSAFE_getResolveToMatches(c,u.v7_relativeSplatPath),p,"path"===i),g=JSON.stringify(E);return a.useEffect((()=>v(JSON.parse(g),{replace:n,state:o,relative:i})),[v,g,i,n,o]),null},e.Outlet=function(e){return g(e.context)},e.Route=T,e.Router=I,e.RouterProvider=function(e){let{fallbackElement:t,router:r,future:n}=e,[o,l]=a.useState(r.state),{v7_startTransition:s}=n||{},c=a.useCallback((e=>{s&&L?L((()=>l(e))):l(e)}),[l,s]);a.useLayoutEffect((()=>r.subscribe(c)),[r,c]),a.useEffect((()=>{}),[]);let d=a.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),p=r.basename||"/",f=a.useMemo((()=>({router:r,navigator:d,static:!1,basename:p})),[r,d,p]);return a.createElement(a.Fragment,null,a.createElement(i.Provider,{value:f},a.createElement(u.Provider,{value:o},a.createElement(I,{basename:p,location:o.location,navigationType:o.historyAction,navigator:d,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},o.initialized||r.future.v7_partialHydration?a.createElement(M,{routes:r.routes,future:r.future,state:o}):t))),null)},e.Routes=function(e){let{children:t,location:r}=e;return b(q(t),r)},e.UNSAFE_DataRouterContext=i,e.UNSAFE_DataRouterStateContext=u,e.UNSAFE_LocationContext=c,e.UNSAFE_NavigationContext=s,e.UNSAFE_RouteContext=d,e.UNSAFE_mapRouteProperties=V,e.UNSAFE_useRouteId=function(){return j(N.UseRouteId)},e.UNSAFE_useRoutesImpl=R,e.createMemoryRouter=function(e,t){return r.createRouter({basename:null==t?void 0:t.basename,future:o({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:r.createMemoryHistory({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:V,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy}).initialize()},e.createRoutesFromChildren=q,e.createRoutesFromElements=q,e.renderMatches=function(e){return _(e)},e.useActionData=function(){let e=A(N.UseActionData),t=j(N.UseLoaderData);return e.actionData?e.actionData[t]:void 0},e.useAsyncError=function(){let e=a.useContext(l);return null==e?void 0:e._error},e.useAsyncValue=D,e.useBlocker=function(e){let{router:t,basename:n}=O(U.UseBlocker),i=A(N.UseBlocker),[u,l]=a.useState(""),s=a.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:a,nextLocation:i,historyAction:u}=t;return e({currentLocation:o({},a,{pathname:r.stripBasename(a.pathname,n)||a.pathname}),nextLocation:o({},i,{pathname:r.stripBasename(i.pathname,n)||i.pathname}),historyAction:u})}),[n,e]);return a.useEffect((()=>{let e=String(++k);return l(e),()=>t.deleteBlocker(e)}),[t]),a.useEffect((()=>{""!==u&&t.getBlocker(u,s)}),[t,u,s]),u&&i.blockers.has(u)?i.blockers.get(u):r.IDLE_BLOCKER},e.useHref=function(e,t){let{relative:n}=void 0===t?{}:t;f()||r.UNSAFE_invariant(!1);let{basename:o,navigator:i}=a.useContext(s),{hash:u,pathname:l,search:c}=y(e,{relative:n}),d=l;return"/"!==o&&(d="/"===l?o:r.joinPaths([o,l])),i.createHref({pathname:d,search:c,hash:u})},e.useInRouterContext=f,e.useLoaderData=function(){let e=A(N.UseLoaderData),t=j(N.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")},e.useLocation=m,e.useMatch=function(e){f()||r.UNSAFE_invariant(!1);let{pathname:t}=m();return a.useMemo((()=>r.matchPath(e,t)),[t,e])},e.useMatches=function(){let{matches:e,loaderData:t}=A(N.UseMatches);return a.useMemo((()=>e.map((e=>r.UNSAFE_convertRouteMatchToUiMatch(e,t)))),[e,t])},e.useNavigate=h,e.useNavigation=function(){return A(N.UseNavigation).navigation},e.useNavigationType=function(){return a.useContext(c).navigationType},e.useOutlet=g,e.useOutletContext=function(){return a.useContext(E)},e.useParams=function(){let{matches:e}=a.useContext(d),t=e[e.length-1];return t?t.params:{}},e.useResolvedPath=y,e.useRevalidator=function(){let e=O(U.UseRevalidator),t=A(N.UseRevalidator);return a.useMemo((()=>({revalidate:e.router.revalidate,state:t.revalidation})),[e.router.revalidate,t.revalidation])},e.useRouteError=F,e.useRouteLoaderData=function(e){return A(N.UseRouteLoaderData).loaderData[e]},e.useRoutes=b,Object.defineProperty(e,"__esModule",{value:!0})}));
12
12
  //# sourceMappingURL=react-router.production.min.js.map