@modern-js/devtools-client 2.39.0 → 2.39.1

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.
@@ -1,5 +1,5 @@
1
1
  <!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,viewport-fit=cover,minimum-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="renderer" content="webkit"><meta name="layoutmode" content="standard"><meta name="imagemode" content="force"><meta name="wap-font-scale" content="no"><meta name="format-detection" content="telephone=no"><title></title><script defer="defer">!function(){var e,t,n,r,o,a,i,c,s,u,l,f,p,d,g={},b={};function y(e){var t=b[e];if(void 0!==t)return t.exports;var n=b[e]={id:e,loaded:!1,exports:{}};return g[e](n,n.exports,y),n.loaded=!0,n.exports}y.m=g,y.es=function(e,t){return Object.keys(e).forEach((function(n){"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})),e},e={12635:["overview/page"],17843:["page"],22757:["pages/layout"],29385:["328","497"],44603:["pages/page"],56005:["context/layout"],79765:["328","context/framework/page"],83595:["328","context/builder/page"],83768:["config/layout"],93866:["context/page"],95930:["config/page"]},y.el=function(t){var n=e[t];return void 0===n?Promise.resolve():n.length>1?Promise.all(n.map(y.e)):y.e(n[0])},y.f={},y.e=function(e){return Promise.all(Object.keys(y.f).reduce((function(t,n){return y.f[n](e,t),t}),[]))},y.p="/__devtools/",y.u=function(e){return{328:"static/js/async/328.a2a47b6a.js",497:"static/js/async/497.63240d2a.js","config/layout":"static/js/async/config/layout.7fccb2d6.js","config/page":"static/js/async/config/page.40d352df.js","context/builder/page":"static/js/async/context/builder/page.9a2ee9fa.js","context/framework/page":"static/js/async/context/framework/page.c7d63c62.js","context/layout":"static/js/async/context/layout.52908030.js","context/page":"static/js/async/context/page.94cbdf00.js","overview/page":"static/js/async/overview/page.bbc0594d.js",page:"static/js/async/page.ae98c3d4.js","pages/layout":"static/js/async/pages/layout.29881c1e.js","pages/page":"static/js/async/pages/page.f0108467.js"}[e]},y.k=function(e){return{497:"static/css/async/497.46174d9d.css","context/builder/page":"static/css/async/context/builder/page.46174d9d.css","context/framework/page":"static/css/async/context/framework/page.46174d9d.css","overview/page":"static/css/async/overview/page.cec1bb0f.css","pages/layout":"static/css/async/pages/layout.be52df78.css","pages/page":"static/css/async/pages/page.9fb294c4.css"}[e]},t={},y.l=function(e,n,r,o){if(t[e])t[e].push(n);else{if(void 0!==r)for(var a,i,c=document.getElementsByTagName("script"),s=0;s<c.length;s++){var u=c[s];if(u.getAttribute("src")==e){a=u;break}}!a&&(i=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,a.src=e),t[e]=[n];var l=function(n,r){a.onerror=a.onload=null,clearTimeout(f);var o=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(r)})),n)return n(r)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),i&&document.head.appendChild(a)}},y.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n=[],y.O=function(e,t,r,o){if(!t){var a=1/0;for(u=0;u<n.length;u++){t=n[u][0],r=n[u][1],o=n[u][2];for(var i=!0,c=0;c<t.length;c++)a>=o&&Object.keys(y.O).every((function(e){return y.O[e](t[c])}))?t.splice(c--,1):(i=!1,o<a&&(a=o));if(i){n.splice(u--,1);var s=r()}}return s}o=o||0;for(var u=n.length;u>0&&n[u-1][2]>o;u--)n[u]=n[u-1];n[u]=[t,r,o]},y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.d=function(e,t){for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.n=function(e){return e&&e.__esModule?e.default:e},o=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var n=Object.create(null);y.r(n);var a={};r=r||[null,o({}),o([]),o(o)];for(var i=2&t&&e;"object"==typeof i&&!~r.indexOf(i);i=o(i))Object.getOwnPropertyNames(i).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},y.d(n,a),n},y.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},a={"builder-runtime":0,"lib-lodash":0,"lib-polyfill":0,"lib-react":0,"lib-router":0},i="webpack",c="data-webpack-loading",s=function(e,t,n,r){var o,a,s="chunk-"+e;if(!r){for(var u=document.getElementsByTagName("link"),l=0;l<u.length;l++){var f=u[l],p=f.getAttribute("href")||f.href;if(p&&!p.startsWith(y.p)&&(p=y.p+(p.startsWith("/")?p.slice(1):p)),"stylesheet"==f.rel&&(p&&p.startsWith(t)||f.getAttribute("data-webpack")==i+":"+s)){o=f;break}}if(!n)return o}!o&&(a=!0,(o=document.createElement("link")).setAttribute("data-webpack",i+":"+s),o.setAttribute(c,1),o.rel="stylesheet",o.href=t);var d=function(e,t){if(o.onerror=o.onload=null,o.removeAttribute(c),clearTimeout(g),t&&"load"!=t.type&&o.parentNode.removeChild(o),n(t),e)return e(t)};if(o.getAttribute(c)){var g=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload)}else d(void 0,{type:"load",target:o});return r?r.parentNode.insertBefore(o,r):a&&document.head.appendChild(o),o},y.f.css=function(e,t){var n=y.o(a,e)?a[e]:void 0;if(0!==n)if(n)t.push(n[2]);else if(["371","497","context/builder/page","context/framework/page","main","overview/page","pages/layout","pages/page"].indexOf(e)>-1){var r=new Promise((function(t,r){n=a[e]=[t,r]}));t.push(n[2]=r);var o=y.p+y.k(e),i=Error();s(e,o,(function(t){if(y.o(a,e)&&(0!==(n=a[e])&&(a[e]=void 0),n))if("load"!==t.type){var r=t&&t.type,o=t&&t.target&&t.target.src;i.message="Loading css chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}else n[0]()}))}else a[e]=0},u=function(e,t){var n=t[0];e&&e(t);for(var r=0;r<n.length;r++)void 0===a[n[r]]&&(a[n[r]]=0)},(l=self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).forEach(u.bind(null,0)),l.push=u.bind(null,l.push.bind(l)),f={"builder-runtime":0},y.f.j=function(e,t){var n=y.o(f,e)?f[e]:void 0;if(0!==n)if(n)t.push(n[2]);else if(["328","371","497","config/layout","config/page","context/builder/page","context/framework/page","context/layout","context/page","lib-lodash","lib-polyfill","lib-react","lib-router","main","overview/page","page","pages/layout","pages/page"].indexOf(e)>-1){var r=new Promise((function(t,r){n=f[e]=[t,r]}));t.push(n[2]=r);var o=y.p+y.u(e),a=Error();y.l(o,(function(t){if(y.o(f,e)&&(0!==(n=f[e])&&(f[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}}),"chunk-"+e,e)}else f[e]=0},y.O.j=function(e){return 0===f[e]},p=function(e,t){var n,r,o=t[0],a=t[1],i=t[2],c=0;if(o.some((function(e){return 0!==f[e]}))){for(n in a)y.o(a,n)&&(y.m[n]=a[n]);if(i)var s=i(y)}for(e&&e(t);c<o.length;c++)r=o[c],y.o(f,r)&&f[r]&&f[r][0](),f[r]=0;return y.O(s)},(d=self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).forEach(p.bind(null,0)),d.push=p.bind(null,d.push.bind(d))}()</script><script >
2
2
  ;(function(){
3
- window._MODERNJS_ROUTE_MANIFEST = {"routeAssets":{"config/layout":{"chunkIds":["config/layout"],"assets":["static/js/async/config/layout.7fccb2d6.js"],"referenceCssAssets":[]},"config/page":{"chunkIds":["config/page"],"assets":["static/js/async/config/page.40d352df.js"],"referenceCssAssets":[]},"context/builder/page":{"chunkIds":["328","context/builder/page"],"assets":["static/js/async/328.a2a47b6a.js","static/css/async/context/builder/page.46174d9d.css","static/js/async/context/builder/page.9a2ee9fa.js"],"referenceCssAssets":["static/css/async/context/builder/page.46174d9d.css"]},"context/framework/page":{"chunkIds":["328","context/framework/page"],"assets":["static/js/async/328.a2a47b6a.js","static/js/async/context/framework/page.c7d63c62.js","static/css/async/context/framework/page.46174d9d.css"],"referenceCssAssets":["static/css/async/context/framework/page.46174d9d.css"]},"context/layout":{"chunkIds":["context/layout"],"assets":["static/js/async/context/layout.52908030.js"],"referenceCssAssets":[]},"context/page":{"chunkIds":["context/page"],"assets":["static/js/async/context/page.94cbdf00.js"],"referenceCssAssets":[]},"main":{"chunkIds":["builder-runtime","lib-polyfill","lib-react","lib-router","lib-lodash","371","main"],"assets":["static/js/lib-polyfill.db046de0.js","static/js/lib-react.e131c6da.js","static/js/lib-router.34126dbe.js","static/js/lib-lodash.d4590abd.js","static/js/371.1e9c889c.js","static/css/371.14b3f152.css","static/js/main.8ca73d77.js","static/css/main.ba1f1015.css"],"referenceCssAssets":["static/css/371.14b3f152.css","static/css/main.ba1f1015.css"]},"overview/page":{"chunkIds":["overview/page"],"assets":["static/js/async/overview/page.bbc0594d.js","static/css/async/overview/page.cec1bb0f.css"],"referenceCssAssets":["static/css/async/overview/page.cec1bb0f.css"]},"page":{"chunkIds":["page"],"assets":["static/js/async/page.ae98c3d4.js"],"referenceCssAssets":[]},"pages/layout":{"chunkIds":["pages/layout"],"assets":["static/js/async/pages/layout.29881c1e.js","static/css/async/pages/layout.be52df78.css"],"referenceCssAssets":["static/css/async/pages/layout.be52df78.css"]},"pages/page":{"chunkIds":["pages/page"],"assets":["static/css/async/pages/page.9fb294c4.css","static/js/async/pages/page.f0108467.js"],"referenceCssAssets":["static/css/async/pages/page.9fb294c4.css"]}}};
3
+ window._MODERNJS_ROUTE_MANIFEST = {"routeAssets":{"config/layout":{"chunkIds":["config/layout"],"assets":["static/js/async/config/layout.7fccb2d6.js"],"referenceCssAssets":[]},"config/page":{"chunkIds":["config/page"],"assets":["static/js/async/config/page.40d352df.js"],"referenceCssAssets":[]},"context/builder/page":{"chunkIds":["328","context/builder/page"],"assets":["static/js/async/328.a2a47b6a.js","static/css/async/context/builder/page.46174d9d.css","static/js/async/context/builder/page.9a2ee9fa.js"],"referenceCssAssets":["static/css/async/context/builder/page.46174d9d.css"]},"context/framework/page":{"chunkIds":["328","context/framework/page"],"assets":["static/js/async/328.a2a47b6a.js","static/js/async/context/framework/page.c7d63c62.js","static/css/async/context/framework/page.46174d9d.css"],"referenceCssAssets":["static/css/async/context/framework/page.46174d9d.css"]},"context/layout":{"chunkIds":["context/layout"],"assets":["static/js/async/context/layout.52908030.js"],"referenceCssAssets":[]},"context/page":{"chunkIds":["context/page"],"assets":["static/js/async/context/page.94cbdf00.js"],"referenceCssAssets":[]},"main":{"chunkIds":["builder-runtime","lib-polyfill","lib-react","lib-router","lib-lodash","371","main"],"assets":["static/js/lib-polyfill.db046de0.js","static/js/lib-react.e131c6da.js","static/js/lib-router.58db29f2.js","static/js/lib-lodash.d4590abd.js","static/js/371.1e9c889c.js","static/css/371.14b3f152.css","static/css/main.ba1f1015.css","static/js/main.560cd2ef.js"],"referenceCssAssets":["static/css/371.14b3f152.css","static/css/main.ba1f1015.css"]},"overview/page":{"chunkIds":["overview/page"],"assets":["static/js/async/overview/page.bbc0594d.js","static/css/async/overview/page.cec1bb0f.css"],"referenceCssAssets":["static/css/async/overview/page.cec1bb0f.css"]},"page":{"chunkIds":["page"],"assets":["static/js/async/page.ae98c3d4.js"],"referenceCssAssets":[]},"pages/layout":{"chunkIds":["pages/layout"],"assets":["static/js/async/pages/layout.29881c1e.js","static/css/async/pages/layout.be52df78.css"],"referenceCssAssets":["static/css/async/pages/layout.be52df78.css"]},"pages/page":{"chunkIds":["pages/page"],"assets":["static/css/async/pages/page.9fb294c4.css","static/js/async/pages/page.f0108467.js"],"referenceCssAssets":["static/css/async/pages/page.9fb294c4.css"]}}};
4
4
  })();
5
- </script><script defer="defer" src="/__devtools/static/js/lib-polyfill.db046de0.js"></script><script defer="defer" src="/__devtools/static/js/lib-react.e131c6da.js"></script><script defer="defer" src="/__devtools/static/js/lib-router.34126dbe.js"></script><script defer="defer" src="/__devtools/static/js/lib-lodash.d4590abd.js"></script><script defer="defer" src="/__devtools/static/js/371.1e9c889c.js"></script><script defer="defer" src="/__devtools/static/js/main.8ca73d77.js"></script><link href="/__devtools/static/css/371.14b3f152.css" rel="stylesheet"><link href="/__devtools/static/css/main.ba1f1015.css" rel="stylesheet"></head><body><div id="root"><!--<?- html ?>--></div><!--<?- chunksMap.js ?>--><!--<?- SSRDataScript ?>--></body></html>
5
+ </script><script defer="defer" src="/__devtools/static/js/lib-polyfill.db046de0.js"></script><script defer="defer" src="/__devtools/static/js/lib-react.e131c6da.js"></script><script defer="defer" src="/__devtools/static/js/lib-router.58db29f2.js"></script><script defer="defer" src="/__devtools/static/js/lib-lodash.d4590abd.js"></script><script defer="defer" src="/__devtools/static/js/371.1e9c889c.js"></script><script defer="defer" src="/__devtools/static/js/main.560cd2ef.js"></script><link href="/__devtools/static/css/371.14b3f152.css" rel="stylesheet"><link href="/__devtools/static/css/main.ba1f1015.css" rel="stylesheet"></head><body><div id="root"><!--<?- html ?>--></div><!--<?- chunksMap.js ?>--><!--<?- SSRDataScript ?>--></body></html>
@@ -22,7 +22,7 @@
22
22
  },
23
23
  null,
24
24
  {
25
- "process.env.PKG_VERSION": "2.39.0"
25
+ "process.env.PKG_VERSION": "2.39.1"
26
26
  }
27
27
  ],
28
28
  "aliasStrategy": "prefer-tsconfig",
@@ -77,12 +77,12 @@
77
77
  "assets": [
78
78
  "/__devtools/static/js/lib-polyfill.db046de0.js",
79
79
  "/__devtools/static/js/lib-react.e131c6da.js",
80
- "/__devtools/static/js/lib-router.34126dbe.js",
80
+ "/__devtools/static/js/lib-router.58db29f2.js",
81
81
  "/__devtools/static/js/lib-lodash.d4590abd.js",
82
82
  "/__devtools/static/js/371.1e9c889c.js",
83
83
  "/__devtools/static/css/371.14b3f152.css",
84
- "/__devtools/static/js/main.8ca73d77.js",
85
- "/__devtools/static/css/main.ba1f1015.css"
84
+ "/__devtools/static/css/main.ba1f1015.css",
85
+ "/__devtools/static/js/main.560cd2ef.js"
86
86
  ],
87
87
  "referenceCssAssets": [
88
88
  "/__devtools/static/css/371.14b3f152.css",
@@ -0,0 +1 @@
1
+ (self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).push([["lib-router"],{70765:function(e,t,r){"use strict";r.r(t),r.d(t,{Action:function(){return o},UNSAFE_ErrorResponseImpl:function(){return T},UNSAFE_convertRouteMatchToUiMatch:function(){return R},UNSAFE_getPathContributingMatches:function(){return C},UNSAFE_invariant:function(){return h},createBrowserHistory:function(){return c},createHashHistory:function(){return d},createPath:function(){return m},createRouter:function(){return K},isRouteErrorResponse:function(){return F},joinPaths:function(){return A},matchPath:function(){return P},matchRoutes:function(){return E},parsePath:function(){return y},redirect:function(){return N},resolveTo:function(){return L},stripBasename:function(){return D}});var n,a,o,i,s=r("61078");function u(){return(u=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}).apply(this,arguments)}(n=o||(o={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";var l="popstate";function c(e){return void 0===e&&(e={}),g(function(e,t){var{pathname:r,search:n,hash:a}=e.location;return p("",{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:m(t)},null,e)}function d(e){return void 0===e&&(e={}),g(function(e,t){var{pathname:r="/",search:n="",hash:a=""}=y(e.location.hash.substr(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){var r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){var a=e.location.href,o=a.indexOf("#");n=-1===o?a:a.slice(0,o)}return n+"#"+("string"==typeof t?t:m(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),u({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(e){var{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 y(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,n){void 0===n&&(n={});var{window:a=document.defaultView,v5Compat:i=!1}=n,s=a.history,c=o.Pop,d=null,f=y();function y(){return(s.state||{idx:null}).idx}function g(){c=o.Pop;var e=y(),t=null==e?null:e-f;f=e,d&&d({action:c,location:w.location,delta:t})}null==f&&(f=0,s.replaceState(u({},s.state,{idx:f}),""));function b(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:m(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}var w={get action(){return c},get location(){return e(a,s)},listen(e){if(d)throw Error("A history only accepts one active listener");return a.addEventListener(l,g),d=e,()=>{a.removeEventListener(l,g),d=null}},createHref:e=>t(a,e),createURL:b,encodeLocation(e){var t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=o.Push;var n=p(w.location,e,t);r&&r(n,e);var u=v(n,f=y()+1),l=w.createHref(n);try{s.pushState(u,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(l)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=o.Replace;var n=p(w.location,e,t);r&&r(n,e);var a=v(n,f=y()),u=w.createHref(n);s.replaceState(a,"",u),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>s.go(e)};return w}(a=i||(i={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";var b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{var o=[...r,a],i="string"==typeof e.id?e.id:o.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){var s=u({},e,t(e),{id:i});return n[i]=s,s}var l=u({},e,t(e),{id:i,children:void 0});return n[i]=l,e.children&&(l.children=w(e.children,t,o,n)),l})}function E(e,t,r){void 0===r&&(r="/");var n=D(("string"==typeof t?y(t):t).pathname||"/",r);if(null==n)return null;var a=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");var o=(t,o,i)=>{var s={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};s.relativePath.startsWith("/")&&(h(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(a.length));var u=A([a,s.relativePath]),l=n.concat(s);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),e(t.children,r,l,u)),(null!=t.path||t.index)&&r.push({path:u,score:function(e,t){var r=e.split("/"),n=r.length;return r.some(S)&&(n+=-2),t&&(n+=2),r.filter(e=>!S(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),n)}(u,t.index),routesMeta:l})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(var n of function e(t){var r=t.split("/");if(0===r.length)return[];var[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];var s=e(a.join("/")),u=[];return u.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&u.push(...s),u.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,n);else o(e,t)}),r}(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);for(var o=null,i=0;null==o&&i<a.length;++i)o=function(e,t){for(var{routesMeta:r}=e,n={},a="/",o=[],i=0;i<r.length;++i){var s=r[i],u=i===r.length-1,l="/"===a?t:t.slice(a.length)||"/",c=P({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},l);if(!c)return null;Object.assign(n,c.params);var d=s.route;o.push({params:n,pathname:A([a,c.pathname]),pathnameBase:_(A([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=A([a,c.pathnameBase]))}return o}(a[i],function(e){try{return decodeURI(e)}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t)+")."),e}}(n));return o}function R(e,t){var{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}var x=/^:\w+$/,S=e=>"*"===e;function P(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});var[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),f("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*"))+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, '+('please change the route path to "'+e.replace(/\*$/,"/*"))+'".');var n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(n.push(t),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;var o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((e,t,r)=>{if("*"===t){var n=s[r]||"";i=o.slice(0,o.length-n.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return f(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e)+'" is a malformed URL segment. This is probably'+(" due to a bad percent encoding ("+r)+")."),e}}(s[r]||"",t),e},{}),pathname:o,pathnameBase:i,pattern:e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function U(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n))+"]. Please separate it out to the "+("`to."+r)+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function C(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function L(e,t,r,n){void 0===n&&(n=!1),"string"==typeof e?a=y(e):(h(!(a=u({},e)).pathname||!a.pathname.includes("?"),U("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),U("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),U("#","search","hash",a)));var a,o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(n||null==s)o=r;else{var l=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;a.pathname=c.join("/")}o=l>=0?t[l]:"/"}var d=function(e,t){void 0===t&&(t="/");var{pathname:r,search:n="",hash:a=""}="string"==typeof e?y(e):e;return{pathname:r?r.startsWith("/")?r:function(e,t){var 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,search:M(n),hash:k(a)}}(a,o),f=s&&"/"!==s&&s.endsWith("/"),v=(i||"."===s)&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||v)&&(d.pathname+="/"),d}var A=e=>e.join("/").replace(/\/\/+/g,"/"),_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",k=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",N=function(e,t){void 0===t&&(t=302);var r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);var n=new Headers(r.headers);return n.set("Location",e),new Response(null,u({},r,{headers:n}))};class T{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 F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var j=["post","put","patch","delete"],O=new Set(j),B=["get",...j],z=new Set(B),I=new Set([301,302,303,307,308]),H=new Set([307,308]),W={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},q={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},J=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Y="remix-router-transitions";function K(e){var t,r,n,a,l=e.window?e.window:"undefined"!=typeof window?window:void 0,c=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,d=!c;if(h(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){var v=e.detectErrorBoundary;t=e=>({hasErrorBoundary:v(e)})}else t=V;var m={},y=w(e.routes,t,void 0,m),g=e.basename||"/",b=u({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),x=null,S=new Set,P=null,U=null,C=null,L=null!=e.hydrationData,A=E(y,e.history.location,g),_=null;if(null==A){var M=eh(404,{pathname:e.history.location.pathname}),{matches:k,route:N}=ed(y);A=k,_={[N.id]:M}}var T=!A.some(e=>e.route.lazy)&&(!A.some(e=>e.route.loader)||null!=e.hydrationData),F={historyAction:e.history.action,location:e.history.location,matches:A,initialized:T,navigation:W,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||_,fetchers:new Map,blockers:new Map},j=o.Pop,O=!1,B=!1,z=new Map,I=null,K=!1,Z=!1,ee=[],et=[],er=new Map,ea=0,ei=-1,es=new Map,ev=new Set,ew=new Map,eR=new Map,ex=new Map,eL=!1;function eA(e,t){F=u({},F,e),S.forEach(e=>e(F,{unstable_viewTransitionOpts:t}))}function e_(t,n){var a,i,s,l,c=null!=F.actionData&&null!=F.navigation.formMethod&&eg(F.navigation.formMethod)&&"loading"===F.navigation.state&&(null==(a=t.state)?void 0:a._isRedirect)!==!0;s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:c?F.actionData:null;var d=n.loaderData?el(F.loaderData,n.loaderData,n.matches||[],n.errors):F.loaderData,h=F.blockers;h.size>0&&(h=new Map(h)).forEach((e,t)=>h.set(t,q));var f=!0===O||null!=F.navigation.formMethod&&eg(F.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(y=r,r=void 0),K||j===o.Pop||(j===o.Push?e.history.push(t,t.state):j===o.Replace&&e.history.replace(t,t.state)),j===o.Pop){var v=z.get(F.location.pathname);v&&v.has(t.pathname)?l={currentLocation:F.location,nextLocation:t}:z.has(t.pathname)&&(l={currentLocation:t,nextLocation:F.location})}else if(B){var p=z.get(F.location.pathname);p?p.add(t.pathname):(p=new Set([t.pathname]),z.set(F.location.pathname,p)),l={currentLocation:F.location,nextLocation:t}}eA(u({},n,{actionData:s,loaderData:d,historyAction:j,location:t,initialized:!0,navigation:W,revalidation:"idle",restoreScrollPosition:e7(t,n.matches||F.matches),preventScrollReset:f,blockers:h}),l),j=o.Pop,O=!1,B=!1,K=!1,Z=!1,ee=[],et=[]}function eM(e,t){return ek.apply(this,arguments)}function ek(){return(ek=(0,s._)(function*(t,r){if("number"==typeof t){e.history.go(t);return}var n=X(F.location,F.matches,g,b.v7_prependBasename,t,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:i,error:s}=G(b.v7_normalizeFormMethod,!1,n,r),l=F.location,c=p(F.location,a,r&&r.state);c=u({},c,e.history.encodeLocation(c));var d=r&&null!=r.replace?r.replace:void 0,h=o.Push;!0===d?h=o.Replace:!1===d||null!=i&&eg(i.formMethod)&&i.formAction===F.location.pathname+F.location.search&&(h=o.Replace);var f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=e0({currentLocation:l,nextLocation:c,historyAction:h});if(v){eZ(v,{state:"blocked",location:c,proceed(){eZ(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eM(t,r)},reset(){var e=new Map(F.blockers);e.set(v,q),eA({blockers:e})}});return}return yield eN(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition})})).apply(this,arguments)}function eN(e,t,r){return eT.apply(this,arguments)}function eT(){return(eT=(0,s._)(function*(t,n,o){a&&a.abort(),a=null,j=t,K=!0===(o&&o.startUninterruptedRevalidation),function(e,t){P&&C&&(P[e4(e,t)]=C())}(F.location,F.matches),O=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);var i,s,l=r||y,c=o&&o.overrideNavigation,d=E(l,n,g);if(!d){var h=eh(404,{pathname:n.pathname}),{matches:f,route:v}=ed(l);e1(),e_(n,{matches:f,loaderData:{},errors:{[v.id]:h}});return}if(F.initialized&&!Z&&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}(F.location,n)&&!(o&&o.submission&&eg(o.submission.formMethod))){e_(n,{matches:d});return}a=new AbortController;var p=eo(e.history,n,a.signal,o&&o.submission);if(o&&o.pendingError)s={[ec(d).route.id]:o.pendingError};else if(o&&o.submission&&eg(o.submission.formMethod)){var m=yield function(e,t,r,n,a){return eF.apply(this,arguments)}(p,n,o.submission,d,{replace:o.replace});if(m.shortCircuited)return;i=m.pendingActionData,s=m.pendingActionError,c=eD(n,o.submission),p=new Request(p.url,{signal:p.signal})}var{shortCircuited:b,loaderData:w,errors:R}=yield function(e,t,r,n,a,o,i,s,u){return ej.apply(this,arguments)}(p,n,d,c,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,i,s);!b&&(a=null,e_(n,u({matches:d},i?{actionData:i}:{},{loaderData:w,errors:R})))})).apply(this,arguments)}function eF(){return(eF=(0,s._)(function*(e,r,n,a,s){void 0===s&&(s={}),eq(),eA({navigation:function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(r,n)});var u,l,c=eS(a,r);if(c.route.action||c.route.lazy){if(u=yield en("action",e,c,a,m,t,g),e.signal.aborted)return{shortCircuited:!0}}else u={type:i.error,error:eh(405,{method:e.method,pathname:r.pathname,routeId:c.route.id})};if(ey(u))return l=s&&null!=s.replace?s.replace:u.location===F.location.pathname+F.location.search,yield eI(F,u,{submission:n,replace:l}),{shortCircuited:!0};if(em(u)){var d=ec(a,c.route.id);return!0!==(s&&s.replace)&&(j=o.Push),{pendingActionData:{},pendingActionError:{[d.route.id]:u.error}}}if(ep(u))throw eh(400,{type:"defer-action"});return{pendingActionData:{[c.route.id]:u.data}}})).apply(this,arguments)}function ej(){return(ej=(0,s._)(function*(t,n,o,i,s,l,c,d,h){var f=i||eD(n,s),v=s||l||eP(f),p=r||y,[m,b]=Q(e.history,F,o,v,n,Z,ee,et,ew,ev,p,g,d,h);if(e1(e=>!(o&&o.some(t=>t.route.id===e))||m&&m.some(t=>t.route.id===e)),ei=++ea,0===m.length&&0===b.length){var w=eX();return e_(n,u({matches:o,loaderData:{},errors:h||null},d?{actionData:d}:{},w?{fetchers:new Map(F.fetchers)}:{})),{shortCircuited:!0}}if(!K){b.forEach(e=>{var t=F.fetchers.get(e.key),r=eU(void 0,t?t.data:void 0);F.fetchers.set(e.key,r)});var E=d||F.actionData;eA(u({navigation:f},E?0===Object.keys(E).length?{actionData:null}:{actionData:E}:{},b.length>0?{fetchers:new Map(F.fetchers)}:{}))}b.forEach(e=>{er.has(e.key)&&eY(e.key),e.controller&&er.set(e.key,e.controller)});var R=()=>b.forEach(e=>eY(e.key));a&&a.signal.addEventListener("abort",R);var{results:x,loaderResults:S,fetcherResults:P}=yield eW(F.matches,o,m,b,t);if(t.signal.aborted)return{shortCircuited:!0};a&&a.signal.removeEventListener("abort",R),b.forEach(e=>er.delete(e.key));var D=ef(x);if(D){if(D.idx>=m.length){var U=b[D.idx-m.length].key;ev.add(U)}return yield eI(F,D.result,{replace:c}),{shortCircuited:!0}}var{loaderData:C,errors:L}=eu(F,o,m,S,h,b,P,eR);eR.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eR.delete(t)})});var A=eX(),_=eG(ei),M=A||_||b.length>0;return u({loaderData:C,errors:L},M?{fetchers:new Map(F.fetchers)}:{})})).apply(this,arguments)}function eO(e){return F.fetchers.get(e)||$}function eB(){return(eB=(0,s._)(function*(n,o,i,s,l,c){if(eq(),ew.delete(n),!s.route.action&&!s.route.lazy){var d=eh(405,{method:c.formMethod,pathname:i,routeId:o});eJ(n,o,d);return}var f=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}}(c,F.fetchers.get(n));F.fetchers.set(n,f),eA({fetchers:new Map(F.fetchers)});var v=new AbortController,p=eo(e.history,i,v.signal,c);er.set(n,v);var b=ea,w=yield en("action",p,s,l,m,t,g);if(p.signal.aborted){er.get(n)===v&&er.delete(n);return}if(ey(w)){if(er.delete(n),ei>b){var R=eC(void 0);F.fetchers.set(n,R),eA({fetchers:new Map(F.fetchers)});return}ev.add(n);var x=eU(c);return F.fetchers.set(n,x),eA({fetchers:new Map(F.fetchers)}),eI(F,w,{fetcherSubmission:c})}if(em(w)){eJ(n,o,w.error);return}if(ep(w))throw eh(400,{type:"defer-action"});var S=F.navigation.location||F.location,P=eo(e.history,S,v.signal),D=r||y,U="idle"!==F.navigation.state?E(D,F.navigation.location,g):F.matches;h(U,"Didn't find any matches after fetcher action");var C=++ea;es.set(n,C);var L=eU(c,w.data);F.fetchers.set(n,L);var[A,_]=Q(e.history,F,U,c,S,Z,ee,et,ew,ev,D,g,{[s.route.id]:w.data},void 0);_.filter(e=>e.key!==n).forEach(e=>{var t=e.key,r=F.fetchers.get(t),n=eU(void 0,r?r.data:void 0);F.fetchers.set(t,n),er.has(t)&&eY(t),e.controller&&er.set(t,e.controller)}),eA({fetchers:new Map(F.fetchers)});var M=()=>_.forEach(e=>eY(e.key));v.signal.addEventListener("abort",M);var{results:k,loaderResults:N,fetcherResults:T}=yield eW(F.matches,U,A,_,P);if(!v.signal.aborted){v.signal.removeEventListener("abort",M),es.delete(n),er.delete(n),_.forEach(e=>er.delete(e.key));var O=ef(k);if(O){if(O.idx>=A.length){var B=_[O.idx-A.length].key;ev.add(B)}return eI(F,O.result)}var{loaderData:z,errors:I}=eu(F,F.matches,A,N,void 0,_,T,eR);if(F.fetchers.has(n)){var H=eC(w.data);F.fetchers.set(n,H)}var W=eG(C);"loading"===F.navigation.state&&C>ei?(h(j,"Expected pending action"),a&&a.abort(),e_(F.navigation.location,{matches:U,loaderData:z,errors:I,fetchers:new Map(F.fetchers)})):(eA(u({errors:I,loaderData:el(F.loaderData,z,U,I)},W||_.length>0?{fetchers:new Map(F.fetchers)}:{})),Z=!1)}})).apply(this,arguments)}function ez(){return(ez=(0,s._)(function*(r,n,a,o,i,s){var u=F.fetchers.get(r),l=eU(s,u?u.data:void 0);F.fetchers.set(r,l),eA({fetchers:new Map(F.fetchers)});var c=new AbortController,d=eo(e.history,a,c.signal);er.set(r,c);var f=ea,v=yield en("loader",d,o,i,m,t,g);if(ep(v)&&(v=(yield eE(v,d.signal,!0))||v),er.get(r)===c&&er.delete(r),!d.signal.aborted){if(ey(v)){if(ei>f){var p=eC(void 0);F.fetchers.set(r,p),eA({fetchers:new Map(F.fetchers)});return}ev.add(r),yield eI(F,v);return}if(em(v)){var y=ec(F.matches,n);F.fetchers.delete(r),eA({fetchers:new Map(F.fetchers),errors:{[y.route.id]:v.error}});return}h(!ep(v),"Unhandled fetcher deferred data");var b=eC(v.data);F.fetchers.set(r,b),eA({fetchers:new Map(F.fetchers)})}})).apply(this,arguments)}function eI(e,t,r){return eH.apply(this,arguments)}function eH(){return(eH=(0,s._)(function*(t,r,n){var{submission:i,fetcherSubmission:s,replace:d}=void 0===n?{}:n;r.revalidate&&(Z=!0);var f=p(t.location,r.location,{_isRedirect:!0});if(h(f,"Expected a location on the redirect navigation"),c){var v=!1;if(r.reloadDocument)v=!0;else if(J.test(r.location)){var m=e.history.createURL(r.location);v=m.origin!==l.location.origin||null==D(m.pathname,g)}if(v){d?l.location.replace(r.location):l.location.assign(r.location);return}}a=null;var y=!0===d?o.Replace:o.Push,{formMethod:b,formAction:w,formEncType:E}=t.navigation;!i&&!s&&b&&w&&E&&(i=eP(t.navigation));var R=i||s;if(H.has(r.status)&&R&&eg(R.formMethod))yield eN(y,f,{submission:u({},R,{formAction:r.location}),preventScrollReset:O});else{var x=eD(f,i);yield eN(y,f,{overrideNavigation:x,fetcherSubmission:s,preventScrollReset:O})}})).apply(this,arguments)}function eW(e,t,r,n,a){return e$.apply(this,arguments)}function e$(){return(e$=(0,s._)(function*(r,n,a,o,s){var u=yield Promise.all([...a.map(e=>en("loader",s,e,n,m,t,g)),...o.map(r=>r.matches&&r.match&&r.controller?en("loader",eo(e.history,r.path,r.controller.signal),r.match,r.matches,m,t,g):{type:i.error,error:eh(404,{pathname:r.path})})]),l=u.slice(0,a.length),c=u.slice(a.length);return yield Promise.all([eb(r,a,l,l.map(()=>s.signal),!1,F.loaderData),eb(r,o.map(e=>e.match),c,o.map(e=>e.controller?e.controller.signal:null),!0)]),{results:u,loaderResults:l,fetcherResults:c}})).apply(this,arguments)}function eq(){Z=!0,ee.push(...e1()),ew.forEach((e,t)=>{er.has(t)&&(et.push(t),eY(t))})}function eJ(e,t,r){var n=ec(F.matches,t);eV(e),eA({errors:{[n.route.id]:r},fetchers:new Map(F.fetchers)})}function eV(e){var t=F.fetchers.get(e);er.has(e)&&!(t&&"loading"===t.state&&es.has(e))&&eY(e),ew.delete(e),es.delete(e),ev.delete(e),F.fetchers.delete(e)}function eY(e){var t=er.get(e);h(t,"Expected fetch controller: "+e),t.abort(),er.delete(e)}function eK(e){for(var t of e){var r=eC(eO(t).data);F.fetchers.set(t,r)}}function eX(){var e=[],t=!1;for(var r of ev){var n=F.fetchers.get(r);h(n,"Expected fetcher: "+r),"loading"===n.state&&(ev.delete(r),e.push(r),t=!0)}return eK(e),t}function eG(e){var t=[];for(var[r,n]of es)if(n<e){var a=F.fetchers.get(r);h(a,"Expected fetcher: "+r),"loading"===a.state&&(eY(r),es.delete(r),t.push(r))}return eK(t),t.length>0}function eQ(e){F.blockers.delete(e),ex.delete(e)}function eZ(e,t){var r=F.blockers.get(e)||q;h("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);var n=new Map(F.blockers);n.set(e,t),eA({blockers:n})}function e0(e){var{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0!==ex.size){ex.size>1&&f(!1,"A router only supports one blocker at a time");var a=Array.from(ex.entries()),[o,i]=a[a.length-1],s=F.blockers.get(o);if((!s||"proceeding"!==s.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}}function e1(e){var t=[];return eR.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eR.delete(n))}),t}function e4(e,t){return U&&U(e,t.map(e=>R(e,F.loaderData)))||e.key}function e7(e,t){if(P){var r=P[e4(e,t)];if("number"==typeof r)return r}return null}return n={get basename(){return g},get state(){return F},get routes(){return y},get window(){return l},initialize:function(){if(x=e.history.listen(t=>{var{action:r,location:n,delta:a}=t;if(eL){eL=!1;return}f(0===ex.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");var o=e0({currentLocation:F.location,nextLocation:n,historyAction:r});if(o&&null!=a){eL=!0,e.history.go(-1*a),eZ(o,{state:"blocked",location:n,proceed(){eZ(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){var e=new Map(F.blockers);e.set(o,q),eA({blockers:e})}});return}return eN(r,n)}),c){(function(e,t){try{var r=e.sessionStorage.getItem(Y);if(r){var n=JSON.parse(r);for(var[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch(e){}})(l,z);var t=()=>(function(e,t){if(t.size>0){var r={};for(var[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(Y,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,z);l.addEventListener("pagehide",t),I=()=>l.removeEventListener("pagehide",t)}return!F.initialized&&eN(o.Pop,F.location),n},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,r){if(P=e,C=t,U=r||null,!L&&F.navigation===W){L=!0;var n=e7(F.location,F.matches);null!=n&&eA({restoreScrollPosition:n})}return()=>{P=null,C=null,U=null}},navigate:eM,fetch:function(e,t,n,a){if(d)throw 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.");er.has(e)&&eY(e);var o=r||y,i=X(F.location,F.matches,g,b.v7_prependBasename,n,t,null==a?void 0:a.relative),s=E(o,i,g);if(!s){eJ(e,t,eh(404,{pathname:i}));return}var{path:u,submission:l,error:c}=G(b.v7_normalizeFormMethod,!0,i,a);if(c){eJ(e,t,c);return}var h=eS(s,u);if(O=!0===(a&&a.preventScrollReset),l&&eg(l.formMethod)){(function(e,t,r,n,a,o){eB.apply(this,arguments)})(e,t,u,h,s,l);return}ew.set(e,{routeId:t,path:u}),function(e,t,r,n,a,o){ez.apply(this,arguments)}(e,t,u,h,s,l)},revalidate:function(){if(eq(),eA({revalidation:"loading"}),"submitting"!==F.navigation.state){if("idle"===F.navigation.state){eN(F.historyAction,F.location,{startUninterruptedRevalidation:!0});return}eN(j||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eO,deleteFetcher:eV,dispose:function(){x&&x(),I&&I(),S.clear(),a&&a.abort(),F.fetchers.forEach((e,t)=>eV(t)),F.blockers.forEach((e,t)=>eQ(t))},getBlocker:function(e,t){var r=F.blockers.get(e)||q;return ex.get(e)!==t&&ex.set(e,t),r},deleteBlocker:eQ,_internalFetchControllers:er,_internalActiveDeferreds:eR,_internalSetRoutes:function(e){r=w(e,t,void 0,m={})}}}Symbol("deferred");function X(e,t,r,n,a,o,i){if(null!=o&&"path"!==i){for(var s of(u=[],t))if(u.push(s),s.route.id===o){l=s;break}}else u=t,l=t[t.length-1];var u,l,c=L(a||".",C(u).map(e=>e.pathnameBase),D(e.pathname,r)||e.pathname,"path"===i);return null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&l&&l.route.index&&!ex(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:A([r,c.pathname])),m(c)}function G(e,t,r,n){if(!n||!(null!=(a=n)&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:r};if(n.formMethod&&!function(e){return z.has(e.toLowerCase())}(n.formMethod))return{path:r,error:eh(405,{method:n.formMethod})};var a,o,i,s=()=>({path:r,error:eh(400,{type:"invalid-body"})}),u=n.formMethod||"get",l=e?u.toUpperCase():u.toLowerCase(),c=ev(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eg(l))return s();var d="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{var[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}if("application/json"===n.formEncType){if(!eg(l))return s();try{var f="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch(e){return s()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ei(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ei(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=es(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=es(o)}catch(e){return s()}var v={formMethod:l,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eg(v.formMethod))return{path:r,submission:v};var p=y(r);return t&&p.search&&ex(p.search)&&o.append("index",""),p.search="?"+o,{path:m(p),submission:v}}function Q(e,t,r,n,a,o,i,s,l,c,d,h,f,v){var p=v?Object.values(v)[0]:f?Object.values(f)[0]:void 0,m=e.createURL(t.location),y=e.createURL(a),g=(function(e,t){var r=e;if(t){var n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r})(r,v?Object.keys(v)[0]:void 0).filter((e,r)=>{if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,r){var n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||i.some(t=>t===e.route.id))return!0;var a=t.matches[r];return ee(e,u({currentUrl:m,currentParams:a.params,nextUrl:y,nextParams:e.params},n,{actionResult:p,defaultShouldRevalidate:o||m.pathname+m.search===y.pathname+y.search||m.search!==y.search||Z(a,e)}))}),b=[];return l.forEach((e,a)=>{if(r.some(t=>t.route.id===e.routeId)){var i=E(d,e.path,h);if(!i){b.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}var l=t.fetchers.get(a),f=eS(i,e.path),v=!1;(v=!c.has(a)&&(!!s.includes(a)||(l&&"idle"!==l.state&&void 0===l.data?o:ee(f,u({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:p,defaultShouldRevalidate:o})))))&&b.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:f,controller:new AbortController})}}),[g,b]}function Z(e,t){var r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ee(e,t){if(e.route.shouldRevalidate){var r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function et(e,t,r){return er.apply(this,arguments)}function er(){return(er=(0,s._)(function*(e,t,r){if(!!e.lazy){var n=yield e.lazy();if(e.lazy){var a=r[e.id];h(a,"No route found in manifest");var o={};for(var i in n){var s=void 0!==a[i]&&"hasErrorBoundary"!==i;f(!s,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i)+'" will be ignored.'),!s&&!b.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,u({},t(a),{lazy:void 0}))}}})).apply(this,arguments)}function en(e,t,r,n,a,o,i,s){return ea.apply(this,arguments)}function ea(){return(ea=(0,s._)(function*(e,t,r,n,a,o,s,u){void 0===u&&(u={});var l,c,d=e=>{var n,a=new Promise((e,t)=>n=t);return m=()=>n(),t.signal.addEventListener("abort",m),Promise.race([e({request:t,params:r.params,context:u.requestContext}),a])};try{var f=r.route[e];if(r.route.lazy){if(f){var v,p,m,y,g=yield Promise.all([d(f).catch(e=>{y=e}),et(r.route,o,a)]);if(y)throw y;p=g[0]}else if(yield et(r.route,o,a),f=r.route[e])p=yield d(f);else{if("action"!==e)return{type:i.data,data:void 0};var b=new URL(t.url),w=b.pathname+b.search;throw eh(405,{method:t.method,pathname:w,routeId:r.route.id})}}else if(f)p=yield d(f);else{var E=new URL(t.url),R=E.pathname+E.search;throw eh(404,{pathname:R})}h(void 0!==p,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e)+"` function. Please return a value or `null`.")}catch(e){v=i.error,p=e}finally{m&&t.signal.removeEventListener("abort",m)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(p)){var x,S=p.status;if(I.has(S)){var P=p.headers.get("Location");if(h(P,"Redirects returned/thrown from loaders/actions must have a Location header"),J.test(P)){if(!u.isStaticRequest){var U=new URL(t.url),C=new URL(P.startsWith("//")?U.protocol+P:P),L=null!=D(C.pathname,s);C.origin===U.origin&&L&&(P=C.pathname+C.search+C.hash)}}else P=X(new URL(t.url),n.slice(0,n.indexOf(r)+1),s,!0,P);if(u.isStaticRequest)throw p.headers.set("Location",P),p;return{type:i.redirect,status:S,location:P,revalidate:null!==p.headers.get("X-Remix-Revalidate"),reloadDocument:null!==p.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:v===i.error?i.error:i.data,response:p};var A=p.headers.get("Content-Type");return(x=A&&/\bapplication\/json\b/.test(A)?yield p.json():yield p.text(),v===i.error)?{type:v,error:new T(S,p.statusText,x),headers:p.headers}:{type:i.data,data:x,statusCode:p.status,headers:p.headers}}return v===i.error?{type:v,error:p}:function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(p)?{type:i.deferred,deferredData:p,statusCode:null==(l=p.init)?void 0:l.status,headers:(null==(c=p.init)?void 0:c.headers)&&new Headers(p.init.headers)}:{type:i.data,data:p}})).apply(this,arguments)}function eo(e,t,r,n){var a=e.createURL(ev(t)).toString(),o={signal:r};if(n&&eg(n.formMethod)){var{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),"application/json"===s?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):"text/plain"===s?o.body=n.text:"application/x-www-form-urlencoded"===s&&n.formData?o.body=ei(n.formData):o.body=n.formData}return new Request(a,o)}function ei(e){var t=new URLSearchParams;for(var[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function es(e){var t=new FormData;for(var[r,n]of e.entries())t.append(r,n);return t}function eu(e,t,r,n,a,o,i,s){for(var l,c,d,f,v,p,m,y,g,b,{loaderData:w,errors:E}=(l=t,c=r,d=n,f=a,v=s,m={},y=null,g=!1,b={},d.forEach((e,t)=>{var r=c[t].route.id;if(h(!ey(e),"Cannot handle redirect results in processLoaderData"),em(e)){var n=ec(l,r),a=e.error;f&&(a=Object.values(f)[0],f=void 0),null==(y=y||{})[n.route.id]&&(y[n.route.id]=a),m[r]=void 0,!g&&(g=!0,p=F(e.error)?e.error.status:500),e.headers&&(b[r]=e.headers)}else ep(e)?(v.set(r,e.deferredData),m[r]=e.deferredData.data):m[r]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(p=e.statusCode),e.headers&&(b[r]=e.headers)}),f&&(y=f,m[Object.keys(f)[0]]=void 0),{loaderData:m,errors:y,statusCode:p||200,loaderHeaders:b}),R=0;R<o.length;R++){var{key:x,match:S,controller:P}=o[R];h(void 0!==i&&void 0!==i[R],"Did not find corresponding fetcher result");var D=i[R];if(!P||!P.signal.aborted)if(em(D)){var U=ec(e.matches,null==S?void 0:S.route.id);!(E&&E[U.route.id])&&(E=u({},E,{[U.route.id]:D.error})),e.fetchers.delete(x)}else if(ey(D))h(!1,"Unhandled fetcher revalidation redirect");else if(ep(D))h(!1,"Unhandled fetcher deferred data");else{var C=eC(D.data);e.fetchers.set(x,C)}}return{loaderData:w,errors:E}}function el(e,t,r,n){var a=u({},t);for(var o of r){var i=o.route.id;if(t.hasOwnProperty(i)?void 0!==t[i]&&(a[i]=t[i]):void 0!==e[i]&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function ec(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 ed(e){var 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 eh(e,t){var{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&r&&n?s="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?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",s='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?s="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&&(s='Invalid request method "'+a.toUpperCase()+'"')),new T(e||500,i,Error(s),!0)}function ef(e){for(var t=e.length-1;t>=0;t--){var r=e[t];if(ey(r))return{result:r,idx:t}}}function ev(e){var t="string"==typeof e?y(e):e;return m(u({},t,{hash:""}))}function ep(e){return e.type===i.deferred}function em(e){return e.type===i.error}function ey(e){return(e&&e.type)===i.redirect}function eg(e){return O.has(e.toLowerCase())}function eb(e,t,r,n,a,o){return ew.apply(this,arguments)}function ew(){return(ew=(0,s._)(function*(e,t,r,n,a,o){for(var i=function*(i){var s=r[i],u=t[i];if(!u)return"continue";var l=e.find(e=>e.route.id===u.route.id),c=null!=l&&!Z(l,u)&&(o&&o[u.route.id])!==void 0;if(ep(s)&&(a||c)){var d=n[i];h(d,"Expected an AbortSignal for revalidating fetcher deferred result"),yield eE(s,d,a).then(e=>{e&&(r[i]=e||r[i])})}},s=0;s<r.length;s++)yield*i(s)})).apply(this,arguments)}function eE(e,t,r){return eR.apply(this,arguments)}function eR(){return(eR=(0,s._)(function*(e,t,r){if(void 0===r&&(r=!1),!(yield e.deferredData.resolveData(t))){if(r)try{return{type:i.data,data:e.deferredData.unwrappedData}}catch(e){return{type:i.error,error:e}}return{type:i.data,data:e.deferredData.data}}})).apply(this,arguments)}function ex(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eS(e,t){var r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&ex(r||""))return e[e.length-1];var n=C(e);return n[n.length-1]}function eP(e){var{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eD(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eU(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eC(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},52161:function(e,t,r){"use strict";r.r(t),r.d(t,{Outlet:function(){return l.Outlet},Route:function(){return l.Route},createRoutesFromElements:function(){return l.createRoutesFromElements},matchPath:function(){return l.matchPath},matchRoutes:function(){return l.matchRoutes},redirect:function(){return l.redirect},useHref:function(){return l.useHref},useLocation:function(){return l.useLocation},useMatches:function(){return l.useMatches},useNavigate:function(){return l.useNavigate},useParams:function(){return l.useParams},useResolvedPath:function(){return l.useResolvedPath},Link:function(){return _},NavLink:function(){return M},RouterProvider:function(){return U},createBrowserRouter:function(){return E},createHashRouter:function(){return R}});var n,a,o,i,s=r("61078"),u=r("6171"),l=r("95912"),c=r("70765");function d(){return(d=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}).apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}var f="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}var p=null,m=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function y(e){return null==e||m.has(e)?e:null}var g=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],b=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],w=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset","unstable_viewTransition"];function E(e,t){return(0,c.createRouter)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.createBrowserHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:l.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function R(e,t){return(0,c.createRouter)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.createHashHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:l.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function x(){var e,t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d({},t,{errors:function(e){if(!e)return null;var t=Object.entries(e),r={};for(var[n,a]of t)if(a&&"RouteErrorResponse"===a.__type)r[n]=new c.UNSAFE_ErrorResponseImpl(a.status,a.statusText,a.data,!0===a.internal);else if(a&&"Error"===a.__type){if(a.__subType){var o=window[a.__subType];if("function"==typeof o)try{var i=new o(a.message);i.stack="",r[n]=i}catch(e){}}if(null==r[n]){var s=Error(a.message);s.stack="",r[n]=s}}else r[n]=a;return r}(t.errors)})),t}var S=u.createContext({isTransitioning:!1}),P=u.startTransition;class D{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 U(e){var{fallbackElement:t,router:r,future:n}=e,[a,o]=u.useState(r.state),[i,c]=u.useState(),[d,h]=u.useState({isTransitioning:!1}),[f,v]=u.useState(),[p,m]=u.useState(),[y,g]=u.useState(),{v7_startTransition:b}=n||{},w=u.useCallback(e=>{if(b){var t;t=e,P?P(t):t()}else e()},[b]),E=u.useCallback((e,t)=>{var{unstable_viewTransitionOpts:n}=t;n&&null!=r.window&&"function"==typeof r.window.document.startViewTransition?p&&f?(f.resolve(),p.skipTransition(),g({state:e,currentLocation:n.currentLocation,nextLocation:n.nextLocation})):(c(e),h({isTransitioning:!0,currentLocation:n.currentLocation,nextLocation:n.nextLocation})):w(()=>o(e))},[w,p,f,r.window]);u.useLayoutEffect(()=>r.subscribe(E),[r,E]),u.useEffect(()=>{d.isTransitioning&&v(new D)},[d.isTransitioning]),u.useEffect(()=>{if(f&&i&&r.window){var e=f.promise,t=r.window.document.startViewTransition((0,s._)(function*(){w(()=>o(i)),yield e}));t.finished.finally(()=>{v(void 0),m(void 0),c(void 0),h({isTransitioning:!1})}),m(t)}},[w,i,f,r.window]),u.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,p,a.location,i]),u.useEffect(()=>{!d.isTransitioning&&y&&(c(y.state),h({isTransitioning:!0,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),g(void 0))},[d.isTransitioning,y]);var R=u.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]),x=r.basename||"/",U=u.useMemo(()=>({router:r,navigator:R,static:!1,basename:x}),[r,R,x]);return u.createElement(u.Fragment,null,u.createElement(l.UNSAFE_DataRouterContext.Provider,{value:U},u.createElement(l.UNSAFE_DataRouterStateContext.Provider,{value:a},u.createElement(S.Provider,{value:d},u.createElement(l.Router,{basename:x,location:a.location,navigationType:a.historyAction,navigator:R},a.initialized?u.createElement(C,{routes:r.routes,state:a}):t)))),null)}function C(e){var{routes:t,state:r}=e;return(0,l.UNSAFE_useRoutesImpl)(t,void 0,r)}var L="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,A=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_=u.forwardRef(function(e,t){var r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:f,to:v,preventScrollReset:p,unstable_viewTransition:m}=e,y=h(e,g),{basename:b}=u.useContext(l.UNSAFE_NavigationContext),w=!1;if("string"==typeof v&&A.test(v)&&(r=v,L))try{var E=new URL(window.location.href),R=new URL(v.startsWith("//")?E.protocol+v:v),x=(0,c.stripBasename)(R.pathname,b);R.origin===E.origin&&null!=x?v=x+R.search+R.hash:w=!0}catch(e){}var S=(0,l.useHref)(v,{relative:a}),P=function(e,t){var{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=void 0===t?{}:t,c=(0,l.useNavigate)(),d=(0,l.useLocation)(),h=(0,l.useResolvedPath)(e,{relative:i});return u.useCallback(t=>{var u,f,v;if(u=t,f=r,0===u.button&&(!f||"_self"===f)&&!((v=u).metaKey||v.altKey||v.ctrlKey||v.shiftKey))t.preventDefault(),c(e,{replace:void 0!==n?n:(0,l.createPath)(d)===(0,l.createPath)(h),state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})},[d,c,h,n,a,r,e,o,i,s])}(v,{replace:i,state:s,target:f,preventScrollReset:p,relative:a,unstable_viewTransition:m});return u.createElement("a",d({},y,{href:r||S,onClick:w||o?n:function(e){n&&n(e),!e.defaultPrevented&&P(e)},ref:t,target:f}))}),M=u.forwardRef(function(e,t){var r,{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:s=!1,style:f,to:v,unstable_viewTransition:p,children:m}=e,y=h(e,b),g=(0,l.useResolvedPath)(v,{relative:y.relative}),w=(0,l.useLocation)(),E=u.useContext(l.UNSAFE_DataRouterStateContext),{navigator:R}=u.useContext(l.UNSAFE_NavigationContext),x=null!=E&&function(e,t){void 0===t&&(t={});var r=u.useContext(S);null!=r||(0,c.UNSAFE_invariant)(!1);var{basename:n}=N(o.useViewTransitionState),a=(0,l.useResolvedPath)(e,{relative:t.relative});if(!r.isTransitioning)return!1;var i=(0,c.stripBasename)(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=(0,c.stripBasename)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,c.matchPath)(a.pathname,s)||null!=(0,c.matchPath)(a.pathname,i)}(g)&&!0===p,P=R.encodeLocation?R.encodeLocation(g).pathname:g.pathname,D=w.pathname,U=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;!a&&(D=D.toLowerCase(),U=U?U.toLowerCase():null,P=P.toLowerCase());var C=D===P||!s&&D.startsWith(P)&&"/"===D.charAt(P.length),L=null!=U&&(U===P||!s&&U.startsWith(P)&&"/"===U.charAt(P.length)),A={isActive:C,isPending:L,isTransitioning:x},M=C?n:void 0;r="function"==typeof i?i(A):[i,C?"active":null,L?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");var k="function"==typeof f?f(A):f;return u.createElement(_,d({},y,{"aria-current":M,className:r,ref:t,style:k,to:v,unstable_viewTransition:p}),"function"==typeof m?m(A):m)}),k=u.forwardRef((e,t)=>{var{reloadDocument:r,replace:n,state:a,method:o="get",action:i,onSubmit:s,submit:f,relative:v,preventScrollReset:p,unstable_viewTransition:m}=e,y=h(e,w),g="get"===o.toLowerCase()?"get":"post",b=function(e,t){var{relative:r}=void 0===t?{}:t,{basename:n}=u.useContext(l.UNSAFE_NavigationContext),a=u.useContext(l.UNSAFE_RouteContext);a||(0,c.UNSAFE_invariant)(!1);var[o]=a.matches.slice(-1),i=d({},(0,l.useResolvedPath)(e||".",{relative:r})),s=(0,l.useLocation)();if(null==e&&(i.search=s.search,o.route.index)){var h=new URLSearchParams(i.search);h.delete("index"),i.search=h.toString()?"?"+h.toString():""}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:(0,c.joinPaths)([n,i.pathname])),(0,l.createPath)(i)}(i,{relative:v});return u.createElement("form",d({ref:t,method:g,action:b,onSubmit:r?s:e=>{if(s&&s(e),!e.defaultPrevented){e.preventDefault();var t=e.nativeEvent.submitter,r=(null==t?void 0:t.getAttribute("formmethod"))||o;f(t||e.currentTarget,{method:r,replace:n,state:a,relative:v,preventScrollReset:p,unstable_viewTransition:m})}}},y))});function N(e){var t=u.useContext(l.UNSAFE_DataRouterContext);return t||(0,c.UNSAFE_invariant)(!1),t}(n=o||(o={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=i||(i={})).UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"},95912:function(e,t,r){"use strict";r.r(t),r.d(t,{createPath:function(){return s.createPath},matchPath:function(){return s.matchPath},matchRoutes:function(){return s.matchRoutes},redirect:function(){return s.redirect},Outlet:function(){return k},Route:function(){return N},Router:function(){return T},UNSAFE_DataRouterContext:function(){return l},UNSAFE_DataRouterStateContext:function(){return c},UNSAFE_NavigationContext:function(){return d},UNSAFE_RouteContext:function(){return f},UNSAFE_mapRouteProperties:function(){return j},UNSAFE_useRouteId:function(){return _},UNSAFE_useRoutesImpl:function(){return x},createRoutesFromElements:function(){return function e(t,r){void 0===r&&(r=[]);var n=[];return i.Children.forEach(t,(t,a)=>{if(i.isValidElement(t)){var o=[...r,a];if(t.type===i.Fragment){n.push.apply(n,e(t.props.children,o));return}t.type!==N&&(0,s.UNSAFE_invariant)(!1),!t.props.index||!t.props.children||(0,s.UNSAFE_invariant)(!1);var u={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(u.children=e(t.props.children,o)),n.push(u)}}),n}},useHref:function(){return p},useLocation:function(){return y},useMatches:function(){return M},useNavigate:function(){return b},useParams:function(){return E},useResolvedPath:function(){return R}});var n,a,o,i=r("6171"),s=r("70765");function u(){return(u=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}).apply(this,arguments)}var l=i.createContext(null),c=i.createContext(null),d=i.createContext(null),h=i.createContext(null),f=i.createContext({outlet:null,matches:[],isDataRoute:!1}),v=i.createContext(null);function p(e,t){var{relative:r}=void 0===t?{}:t;m()||(0,s.UNSAFE_invariant)(!1);var{basename:n,navigator:a}=i.useContext(d),{hash:o,pathname:u,search:l}=R(e,{relative:r}),c=u;return"/"!==n&&(c="/"===u?n:(0,s.joinPaths)([n,u])),a.createHref({pathname:c,search:l,hash:o})}function m(){return null!=i.useContext(h)}function y(){return m()||(0,s.UNSAFE_invariant)(!1),i.useContext(h).location}function g(e){!i.useContext(d).static&&i.useLayoutEffect(e)}function b(){var{isDataRoute:e}=i.useContext(f);return e?function(){var e,t,{router:r}=(e=U.UseNavigateStable,(t=i.useContext(l))||(0,s.UNSAFE_invariant)(!1),t),n=A(C.UseNavigateStable),a=i.useRef(!1);return g(()=>{a.current=!0}),i.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?r.navigate(e):r.navigate(e,u({fromRouteId:n},t)))},[r,n])}():function(){m()||(0,s.UNSAFE_invariant)(!1);var e=i.useContext(l),{basename:t,navigator:r}=i.useContext(d),{matches:n}=i.useContext(f),{pathname:a}=y(),o=JSON.stringify((0,s.UNSAFE_getPathContributingMatches)(n).map(e=>e.pathnameBase)),u=i.useRef(!1);return g(()=>{u.current=!0}),i.useCallback(function(n,i){if(void 0===i&&(i={}),u.current){if("number"==typeof n){r.go(n);return}var l=(0,s.resolveTo)(n,JSON.parse(o),a,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.joinPaths)([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}},[t,r,o,a,e])}()}var w=i.createContext(null);function E(){var{matches:e}=i.useContext(f),t=e[e.length-1];return t?t.params:{}}function R(e,t){var{relative:r}=void 0===t?{}:t,{matches:n}=i.useContext(f),{pathname:a}=y(),o=JSON.stringify((0,s.UNSAFE_getPathContributingMatches)(n).map(e=>e.pathnameBase));return i.useMemo(()=>(0,s.resolveTo)(e,JSON.parse(o),a,"path"===r),[e,o,a,r])}function x(e,t,r){m()||(0,s.UNSAFE_invariant)(!1);var{navigator:n}=i.useContext(d),{matches:a}=i.useContext(f),o=a[a.length-1],l=o?o.params:{};o&&o.pathname;var c=o?o.pathnameBase:"/";o&&o.route;var v=y();if(t){var p,g,b="string"==typeof t?(0,s.parsePath)(t):t;"/"===c||(null==(g=b.pathname)?void 0:g.startsWith(c))||(0,s.UNSAFE_invariant)(!1),p=b}else p=v;var w=p.pathname||"/",E="/"===c?w:w.slice(c.length)||"/",R=(0,s.matchRoutes)(e,{pathname:E}),x=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=null),null==e){if(null==(a=r)||!a.errors)return null;e=r.matches}var n,a,o=e,u=null==(n=r)?void 0:n.errors;if(null!=u){var l=o.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));l>=0||(0,s.UNSAFE_invariant)(!1),o=o.slice(0,Math.min(o.length,l+1))}return o.reduceRight((e,n,a)=>{var s=n.route.id?null==u?void 0:u[n.route.id]:null,l=null;r&&(l=n.route.errorElement||S);var c=t.concat(o.slice(0,a+1)),d=()=>{var t;return t=s?l:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(D,{match:n,routeContext:{outlet:e,matches:c,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?i.createElement(P,{location:r.location,revalidation:r.revalidation,component:l,error:s,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()},null)}(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:(0,s.joinPaths)([c,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:(0,s.joinPaths)([c,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,r);return t&&x?i.createElement(h.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:s.Action.Pop}},x):x}var S=i.createElement(function(){var e=function(){var e,t=i.useContext(v),r=L(C.UseRouteError),n=A(C.UseRouteError);return t?t:null==(e=r.errors)?void 0:e[n]}(),t=(0,s.isRouteErrorResponse)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class P extends i.Component{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: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 this.state.error?i.createElement(f.Provider,{value:this.props.routeContext},i.createElement(v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function D(e){var{routeContext:t,match:r,children:n}=e,a=i.useContext(l);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(f.Provider,{value:t},n)}var U=((n=U||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n);var C=((a=C||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function L(e){var t=i.useContext(c);return t||(0,s.UNSAFE_invariant)(!1),t}function A(e){var t,r,n=(t=0,(r=i.useContext(f))||(0,s.UNSAFE_invariant)(!1),r),a=n.matches[n.matches.length-1];return a.route.id||(0,s.UNSAFE_invariant)(!1),a.route.id}function _(){return A(C.UseRouteId)}function M(){var{matches:e,loaderData:t}=L(C.UseMatches);return i.useMemo(()=>e.map(e=>(0,s.UNSAFE_convertRouteMatchToUiMatch)(e,t)),[e,t])}function k(e){var t,r;return t=e.context,(r=i.useContext(f).outlet)?i.createElement(w.Provider,{value:t},r):r}function N(e){(0,s.UNSAFE_invariant)(!1)}function T(e){var{basename:t="/",children:r=null,location:n,navigationType:a=s.Action.Pop,navigator:o,static:u=!1}=e;m()&&(0,s.UNSAFE_invariant)(!1);var l=t.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:l,navigator:o,static:u}),[l,o,u]);"string"==typeof n&&(n=(0,s.parsePath)(n));var{pathname:f="/",search:v="",hash:p="",state:y=null,key:g="default"}=n,b=i.useMemo(()=>{var e=(0,s.stripBasename)(f,l);return null==e?null:{location:{pathname:e,search:v,hash:p,state:y,key:g},navigationType:a}},[l,f,v,p,y,g,a]);return null==b?null:i.createElement(d.Provider,{value:c},i.createElement(h.Provider,{children:r,value:b}))}i.startTransition;var F=((o=F||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);new Promise(()=>{});function j(e){var t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}}}]);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v1.8.0
2
+ * React Router DOM v6.17.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  /**
13
- * React Router v6.15.0
13
+ * React Router v6.17.0
14
14
  *
15
15
  * Copyright (c) Remix Software Inc.
16
16
  *
@@ -21,7 +21,7 @@
21
21
  */
22
22
 
23
23
  /**
24
- * React Router DOM v6.15.0
24
+ * @remix-run/router v1.10.0
25
25
  *
26
26
  * Copyright (c) Remix Software Inc.
27
27
  *