@modern-js/devtools-client 0.0.0-nightly-20240131170643 → 0.0.0-nightly-20240201170631
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/html/client/index.html +3 -3
- package/dist/html/mount/index.html +3 -3
- package/dist/modern.config.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +71 -71
- package/dist/static/css/{mount.bbb74de0.css → mount.a1149398.css} +1 -1
- package/dist/static/js/663.9d7c1200.js +2 -0
- package/dist/static/js/{762.88edea52.js.LICENSE.txt → 663.9d7c1200.js.LICENSE.txt} +78 -78
- package/dist/static/js/768.15ad6345.js +12 -0
- package/dist/static/js/{768.6ad50c56.js.LICENSE.txt → 768.15ad6345.js.LICENSE.txt} +5 -5
- package/dist/static/js/894.b4edc691.js +6 -0
- package/dist/static/js/{490.a4d7ae9b.js.LICENSE.txt → 894.b4edc691.js.LICENSE.txt} +270 -270
- package/dist/static/js/{949.897066bd.js → 963.67b90191.js} +2 -2
- package/dist/static/js/{949.897066bd.js.LICENSE.txt → 963.67b90191.js.LICENSE.txt} +172 -172
- package/dist/static/js/async/199.6639d0ae.js +2 -0
- package/dist/static/js/async/{126.c2685732.js.LICENSE.txt → 199.6639d0ae.js.LICENSE.txt} +9 -9
- package/dist/static/js/async/{769.d306ff71.js → 769.d97a8752.js} +2 -2
- package/dist/static/js/async/{769.d306ff71.js.LICENSE.txt → 769.d97a8752.js.LICENSE.txt} +64 -64
- package/dist/static/js/async/851.f1680ec1.js +107 -0
- package/dist/static/js/async/{851.af8a68ad.js.LICENSE.txt → 851.f1680ec1.js.LICENSE.txt} +3 -3
- package/dist/static/js/async/client_config/{layout.2415fc4a.js → layout.166501ba.js} +2 -2
- package/dist/static/js/async/client_config/page.af0017fb.js +1 -0
- package/dist/static/js/async/client_context/builder/page.2f20003d.js +2 -0
- package/dist/static/js/async/client_context/{framework/page.cb417279.js.LICENSE.txt → builder/page.2f20003d.js.LICENSE.txt} +4 -4
- package/dist/static/js/async/client_context/framework/page.5da3a416.js +2 -0
- package/dist/static/js/async/client_context/{builder/page.a0be2a35.js.LICENSE.txt → framework/page.5da3a416.js.LICENSE.txt} +4 -4
- package/dist/static/js/async/client_context/{layout.de8d18cc.js → layout.7142f660.js} +2 -2
- package/dist/static/js/async/client_context/page.227fc159.js +1 -0
- package/dist/static/js/async/client_headers/editor/page.480da12a.js +2 -0
- package/dist/static/js/async/client_headers/editor/{page.3e46efa0.js.LICENSE.txt → page.480da12a.js.LICENSE.txt} +19 -19
- package/dist/static/js/async/client_headers/layout.2b809c91.js +2 -0
- package/dist/static/js/async/{client_pages/layout.a7bdf897.js.LICENSE.txt → client_headers/layout.2b809c91.js.LICENSE.txt} +3 -3
- package/dist/static/js/async/client_headers/page.2865a66c.js +1 -0
- package/dist/static/js/async/client_headers/welcome/page.bb592578.js +2 -0
- package/dist/static/js/async/client_headers/welcome/{page.09b38acd.js.LICENSE.txt → page.bb592578.js.LICENSE.txt} +3 -3
- package/dist/static/js/async/client_overview/page.eb7afddf.js +2 -0
- package/dist/static/js/async/client_overview/{page.784368a5.js.LICENSE.txt → page.eb7afddf.js.LICENSE.txt} +14 -14
- package/dist/static/js/async/client_page.f1d2eb8e.js +1 -0
- package/dist/static/js/async/client_pages/layout.f25702f6.js +2 -0
- package/dist/static/js/async/client_pages/page.e87cee29.js +2 -0
- package/dist/static/js/async/client_pages/{page.43b5d54c.js.LICENSE.txt → page.e87cee29.js.LICENSE.txt} +71 -71
- package/dist/static/js/async/client_react/(tab)/layout.3becf66e.js +2 -0
- package/dist/static/js/async/client_react/(tab)/page.5f6acbff.js +2 -0
- package/dist/static/js/async/client_react/(tab)/{page.73b7d636.js.LICENSE.txt → page.5f6acbff.js.LICENSE.txt} +5 -5
- package/dist/static/js/async/client_react/offscreen/page.0074d754.js +2 -0
- package/dist/static/js/async/client_react/page.be45dcc6.js +1 -0
- package/dist/static/js/builder-runtime.5780821c.js +1 -0
- package/dist/static/js/client.0cf46394.js +2 -0
- package/dist/static/js/{client.a0a7b458.js.LICENSE.txt → client.0cf46394.js.LICENSE.txt} +137 -137
- package/dist/static/js/lib-lodash.423c7620.js +1 -0
- package/dist/static/js/lib-polyfill.65ea0a24.js +2 -0
- package/dist/static/js/{lib-polyfill.7e78ba2b.js.LICENSE.txt → lib-polyfill.65ea0a24.js.LICENSE.txt} +2345 -2345
- package/dist/static/js/lib-react.023116e5.js +2 -0
- package/dist/static/js/lib-router.2a47df19.js +2 -0
- package/dist/static/js/{lib-router.c62c9c13.js.LICENSE.txt → lib-router.2a47df19.js.LICENSE.txt} +8 -8
- package/dist/static/js/mount.3ea3bdb1.js +2 -0
- package/dist/static/js/{mount.634b6bc0.js.LICENSE.txt → mount.3ea3bdb1.js.LICENSE.txt} +44 -44
- package/package.json +12 -12
- package/dist/static/js/490.a4d7ae9b.js +0 -6
- package/dist/static/js/762.88edea52.js +0 -2
- package/dist/static/js/768.6ad50c56.js +0 -12
- package/dist/static/js/async/126.c2685732.js +0 -2
- package/dist/static/js/async/851.af8a68ad.js +0 -107
- package/dist/static/js/async/client_config/page.fe27f2b0.js +0 -1
- package/dist/static/js/async/client_context/builder/page.a0be2a35.js +0 -2
- package/dist/static/js/async/client_context/framework/page.cb417279.js +0 -2
- package/dist/static/js/async/client_context/page.773ec69e.js +0 -1
- package/dist/static/js/async/client_headers/editor/page.3e46efa0.js +0 -2
- package/dist/static/js/async/client_headers/layout.b06df1fb.js +0 -2
- package/dist/static/js/async/client_headers/page.4285ba78.js +0 -1
- package/dist/static/js/async/client_headers/welcome/page.09b38acd.js +0 -2
- package/dist/static/js/async/client_overview/page.784368a5.js +0 -2
- package/dist/static/js/async/client_page.9a07de5a.js +0 -1
- package/dist/static/js/async/client_pages/layout.a7bdf897.js +0 -2
- package/dist/static/js/async/client_pages/page.43b5d54c.js +0 -2
- package/dist/static/js/async/client_react/(tab)/layout.30279efa.js +0 -2
- package/dist/static/js/async/client_react/(tab)/page.73b7d636.js +0 -2
- package/dist/static/js/async/client_react/offscreen/page.3f77610a.js +0 -2
- package/dist/static/js/async/client_react/page.c15c023b.js +0 -1
- package/dist/static/js/builder-runtime.bd3ef3b0.js +0 -1
- package/dist/static/js/client.a0a7b458.js +0 -2
- package/dist/static/js/lib-lodash.85696196.js +0 -1
- package/dist/static/js/lib-polyfill.7e78ba2b.js +0 -2
- package/dist/static/js/lib-react.38c297f4.js +0 -2
- package/dist/static/js/lib-router.c62c9c13.js +0 -2
- package/dist/static/js/mount.634b6bc0.js +0 -2
- /package/dist/static/css/{490.0b7306d3.css → 894.ad540914.css} +0 -0
- /package/dist/static/css/{949.7cecb121.css → 963.d3a7b418.css} +0 -0
- /package/dist/static/css/async/{126.d9a9eb8e.css → 199.c5c9f155.css} +0 -0
- /package/dist/static/css/async/client_context/builder/{page.d9a9eb8e.css → page.c5c9f155.css} +0 -0
- /package/dist/static/css/async/client_context/framework/{page.d9a9eb8e.css → page.c5c9f155.css} +0 -0
- /package/dist/static/css/async/client_headers/editor/{page.191f8aba.css → page.1cafd3ec.css} +0 -0
- /package/dist/static/css/async/client_headers/{layout.fb614ed9.css → layout.90917891.css} +0 -0
- /package/dist/static/css/async/client_overview/{page.b33534f3.css → page.a49e16bb.css} +0 -0
- /package/dist/static/css/async/client_pages/{layout.ca1340b2.css → layout.4e0a9ce4.css} +0 -0
- /package/dist/static/css/async/client_pages/{page.2f422ebc.css → page.0e153ba3.css} +0 -0
- /package/dist/static/css/{client.5b8b7966.css → client.a698094e.css} +0 -0
- /package/dist/static/js/async/client_config/{layout.2415fc4a.js.LICENSE.txt → layout.166501ba.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_context/{layout.de8d18cc.js.LICENSE.txt → layout.7142f660.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{client_headers/layout.b06df1fb.js.LICENSE.txt → client_pages/layout.f25702f6.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_react/(tab)/{layout.30279efa.js.LICENSE.txt → layout.3becf66e.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_react/offscreen/{page.3f77610a.js.LICENSE.txt → page.0074d754.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{lib-react.38c297f4.js.LICENSE.txt → lib-react.023116e5.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see lib-router.c62c9c13.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["118"],{74700:function(e,t,n){"use strict";var r,o;function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.r(t),n.d(t,{Action:function(){return r},UNSAFE_ErrorResponseImpl:function(){return k},UNSAFE_convertRouteMatchToUiMatch:function(){return w},UNSAFE_getPathContributingMatches:function(){return P},UNSAFE_invariant:function(){return u},createBrowserHistory:function(){return l},createHashHistory:function(){return s},createPath:function(){return f},createRouter:function(){return J},isRouteErrorResponse:function(){return N},joinPaths:function(){return U},matchPath:function(){return R},matchRoutes:function(){return y},parsePath:function(){return p},redirect:function(){return M},resolveTo:function(){return D},stripBasename:function(){return x}}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));let i="popstate";function l(e){return void 0===e&&(e={}),m(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return h("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:f(t)},null,e)}function s(e){return void 0===e&&(e={}),m(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=p(e.location.hash.substr(1));return!n.startsWith("/")&&!n.startsWith(".")&&(n="/"+n),h("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:f(t))},function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function u(e,t){if(!1===e||null==e)throw Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,n,r){return void 0===n&&(n=null),a({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n,o){void 0===o&&(o={});let{window:l=document.defaultView,v5Compat:s=!1}=o,c=l.history,p=r.Pop,m=null,v=g();function g(){return(c.state||{idx:null}).idx}function y(){p=r.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:p,location:b.location,delta:t})}null==v&&(v=0,c.replaceState(a({},c.state,{idx:v}),""));function w(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:f(e);return u(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}let b={get action(){return p},get location(){return e(l,c)},listen(e){if(m)throw Error("A history only accepts one active listener");return l.addEventListener(i,y),m=e,()=>{l.removeEventListener(i,y),m=null}},createHref:e=>t(l,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=r.Push;let o=h(b.location,e,t);n&&n(o,e);let a=d(o,v=g()+1),i=b.createHref(o);try{c.pushState(a,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(i)}s&&m&&m({action:p,location:b.location,delta:1})},replace:function(e,t){p=r.Replace;let o=h(b.location,e,t);n&&n(o,e);let a=d(o,v=g()),i=b.createHref(o);c.replaceState(a,"",i),s&&m&&m({action:p,location:b.location,delta:0})},go:e=>c.go(e)};return b}(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(o||(o={}));let v=new Set(["lazy","caseSensitive","path","id","index","children"]);function g(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((e,o)=>{let i=[...n,o],l="string"==typeof e.id?e.id:i.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!r[l],'Found a route id collision on id "'+l+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let n=a({},e,t(e),{id:l});return r[l]=n,n}{let n=a({},e,t(e),{id:l,children:void 0});return r[l]=n,e.children&&(n.children=g(e.children,t,i,r)),n}})}function y(e,t,n){void 0===n&&(n="/");let r=x(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let o=function e(t,n,r,o){void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===o&&(o="");let a=(t,a,i)=>{let l={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};l.relativePath.startsWith("/")&&(u(l.relativePath.startsWith(o),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(o.length));let s=U([o,l.relativePath]),c=r.concat(l);t.children&&t.children.length>0&&(u(!0!==t.index,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),e(t.children,n,c,s)),(null!=t.path||t.index)&&n.push({path:s,score:function(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=-2),t&&(r+=2),n.filter(e=>!E(e)).reduce((e,t)=>e+(b.test(t)?3:""===t?1:10),r)}(s,t.index),routesMeta:c})};return t.forEach((e,t)=>{var n;if(""!==e.path&&(n=e.path)!=null&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...o]=n,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===o.length)return a?[i,""]:[i];let l=e(o.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),a&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))a(e,t,n);else a(e,t)}),n}(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,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(o);let a=null;for(let e=0;null==a&&e<o.length;++e)a=function(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.length-1,s="/"===o?t:t.slice(o.length)||"/",u=R({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},s);if(!u)return null;Object.assign(r,u.params);let c=i.route;a.push({params:r,pathname:U([o,u.pathname]),pathnameBase:C(U([o,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(o=U([o,u.pathnameBase]))}return a}(o[e],function(e){try{return decodeURI(e)}catch(t){return c(!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}}(r));return a}function w(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}let b=/^:\w+$/,E=e=>"*"===e;function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),c("*"===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(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(r.push(t),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((e,t,n)=>{if("*"===t){let e=l[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return c(!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 ("+n+").")),e}}(l[n]||"",t),e},{}),pathname:a,pathnameBase:i,pattern:e}}function x(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function S(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function P(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function D(e,t,n,r){let o,i;void 0===r&&(r=!1),"string"==typeof e?o=p(e):(u(!(o=a({},e)).pathname||!o.pathname.includes("?"),S("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),S("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),S("#","search","hash",o)));let l=""===e||""===o.pathname,s=l?"/":o.pathname;if(r||null==s)i=n;else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?p(e):e;return{pathname:n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t,search:L(r),hash:A(o)}}(o,i),d=s&&"/"!==s&&s.endsWith("/"),h=(l||"."===s)&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||h)&&(c.pathname+="/"),c}let U=e=>e.join("/").replace(/\/\/+/g,"/"),C=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",A=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",M=function(e,t){void 0===t&&(t=302);let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",e),new Response(null,a({},n,{headers:r}))};class k{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function N(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let _=["post","put","patch","delete"],T=new Set(_),F=["get",..._],j=new Set(F),O=new Set([301,302,303,307,308]),B=new Set([307,308]),z={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},I={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},W=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),q="remix-router-transitions";function J(e){let t,n,i,l;let s=e.window?e.window:"undefined"!=typeof window?window:void 0,d=void 0!==s&&void 0!==s.document&&void 0!==s.document.createElement,f=!d;if(u(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let n=e.detectErrorBoundary;t=e=>({hasErrorBoundary:n(e)})}else t=$;let p={},m=g(e.routes,t,void 0,p),v=e.basename||"/",b=a({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),E=null,R=new Set,S=null,P=null,D=null,U=null!=e.hydrationData,C=y(m,e.history.location,v),L=null;if(null==C){let t=el(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ei(m);C=n,L={[r.id]:t}}let A=!C.some(e=>e.route.lazy)&&(!C.some(e=>e.route.loader)||null!=e.hydrationData),M={historyAction:e.history.action,location:e.history.location,matches:C,initialized:A,navigation:z,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||L,fetchers:new Map,blockers:new Map},k=r.Pop,N=!1,_=!1,T=new Map,F=null,j=!1,O=!1,J=[],X=[],G=new Map,Q=0,et=-1,en=new Map,eu=new Set,ev=new Map,eR=new Map,ex=new Map,eS=!1;function eP(e,t){M=a({},M,e),R.forEach(e=>e(M,{unstable_viewTransitionOpts:t}))}function eD(t,o){var i,l;let s,u;let c=null!=M.actionData&&null!=M.navigation.formMethod&&ef(M.navigation.formMethod)&&"loading"===M.navigation.state&&((i=t.state)==null?void 0:i._isRedirect)!==!0;s=o.actionData?Object.keys(o.actionData).length>0?o.actionData:null:c?M.actionData:null;let d=o.loaderData?eo(M.loaderData,o.loaderData,o.matches||[],o.errors):M.loaderData,h=M.blockers;h.size>0&&(h=new Map(h)).forEach((e,t)=>h.set(t,H));let f=!0===N||null!=M.navigation.formMethod&&ef(M.navigation.formMethod)&&((l=t.state)==null?void 0:l._isRedirect)!==!0;if(n&&(m=n,n=void 0),j||k===r.Pop||(k===r.Push?e.history.push(t,t.state):k===r.Replace&&e.history.replace(t,t.state)),k===r.Pop){let e=T.get(M.location.pathname);e&&e.has(t.pathname)?u={currentLocation:M.location,nextLocation:t}:T.has(t.pathname)&&(u={currentLocation:t,nextLocation:M.location})}else if(_){let e=T.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),T.set(M.location.pathname,e)),u={currentLocation:M.location,nextLocation:t}}eP(a({},o,{actionData:s,loaderData:d,historyAction:k,location:t,initialized:!0,navigation:z,revalidation:"idle",restoreScrollPosition:eY(t,o.matches||M.matches),preventScrollReset:f,blockers:h}),u),k=r.Pop,N=!1,_=!1,j=!1,O=!1,J=[],X=[]}async function eU(t,n){if("number"==typeof t){e.history.go(t);return}let o=V(M.location,M.matches,v,b.v7_prependBasename,t,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:i,submission:l,error:s}=Y(b.v7_normalizeFormMethod,!1,o,n),u=M.location,c=h(M.location,i,n&&n.state);c=a({},c,e.history.encodeLocation(c));let d=n&&null!=n.replace?n.replace:void 0,f=r.Push;!0===d?f=r.Replace:!1===d||null!=l&&ef(l.formMethod)&&l.formAction===M.location.pathname+M.location.search&&(f=r.Replace);let p=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,m=eq({currentLocation:u,nextLocation:c,historyAction:f});if(m){e$(m,{state:"blocked",location:c,proceed(){e$(m,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eU(t,n)},reset(){let e=new Map(M.blockers);e.set(m,H),eP({blockers:e})}});return}return await eC(f,c,{submission:l,pendingError:s,preventScrollReset:p,replace:n&&n.replace,enableViewTransition:n&&n.unstable_viewTransition})}async function eC(t,r,o){let i,s;l&&l.abort(),l=null,k=t,j=(o&&o.startUninterruptedRevalidation)===!0,function(e,t){S&&D&&(S[eV(e,t)]=D())}(M.location,M.matches),N=(o&&o.preventScrollReset)===!0,_=(o&&o.enableViewTransition)===!0;let u=n||m,c=o&&o.overrideNavigation,d=y(u,r,v);if(!d){let e=el(404,{pathname:r.pathname}),{matches:t,route:n}=ei(u);eJ(),eD(r,{matches:t,loaderData:{},errors:{[n.id]:e}});return}if(M.initialized&&!O&&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}(M.location,r)&&!(o&&o.submission&&ef(o.submission.formMethod))){eD(r,{matches:d});return}l=new AbortController;let h=ee(e.history,r,l.signal,o&&o.submission);if(o&&o.pendingError)s={[ea(d).route.id]:o.pendingError};else if(o&&o.submission&&ef(o.submission.formMethod)){let e=await eL(h,r,o.submission,d,{replace:o.replace});if(e.shortCircuited)return;i=e.pendingActionData,s=e.pendingActionError,c=ew(r,o.submission),h=new Request(h.url,{signal:h.signal})}let{shortCircuited:f,loaderData:p,errors:g}=await eA(h,r,d,c,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,i,s);!f&&(l=null,eD(r,a({matches:d},i?{actionData:i}:{},{loaderData:p,errors:g})))}async function eL(e,n,a,i,l){let s;void 0===l&&(l={}),eF(),eP({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}}(n,a)});let u=eg(i,n);if(u.route.action||u.route.lazy){if(s=await Z("action",e,u,i,p,t,v),e.signal.aborted)return{shortCircuited:!0}}else s={type:o.error,error:el(405,{method:e.method,pathname:n.pathname,routeId:u.route.id})};if(eh(s)){let e;return e=l&&null!=l.replace?l.replace:s.location===M.location.pathname+M.location.search,await e_(M,s,{submission:a,replace:e}),{shortCircuited:!0}}if(ed(s)){let e=ea(i,u.route.id);return(l&&l.replace)!==!0&&(k=r.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(ec(s))throw el(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:s.data}}}async function eA(t,r,o,i,s,u,c,d,h){let f=i||ew(r,s),p=s||u||ey(f),g=n||m,[y,w]=K(e.history,M,o,p,r,O,J,X,ev,eu,g,v,d,h);if(eJ(e=>!(o&&o.some(t=>t.route.id===e))||y&&y.some(t=>t.route.id===e)),et=++Q,0===y.length&&0===w.length){let e=eI();return eD(r,a({matches:o,loaderData:{},errors:h||null},d?{actionData:d}:{},e?{fetchers:new Map(M.fetchers)}:{})),{shortCircuited:!0}}if(!j){w.forEach(e=>{let t=M.fetchers.get(e.key),n=eb(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)});let e=d||M.actionData;eP(a({navigation:f},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},w.length>0?{fetchers:new Map(M.fetchers)}:{}))}w.forEach(e=>{G.has(e.key)&&eB(e.key),e.controller&&G.set(e.key,e.controller)});let b=()=>w.forEach(e=>eB(e.key));l&&l.signal.addEventListener("abort",b);let{results:E,loaderResults:R,fetcherResults:x}=await eT(M.matches,o,y,w,t);if(t.signal.aborted)return{shortCircuited:!0};l&&l.signal.removeEventListener("abort",b),w.forEach(e=>G.delete(e.key));let S=es(E);if(S){if(S.idx>=y.length){let e=w[S.idx-y.length].key;eu.add(e)}return await e_(M,S.result,{replace:c}),{shortCircuited:!0}}let{loaderData:P,errors:D}=er(M,o,y,R,h,w,x,eR);eR.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&eR.delete(t)})});let U=eI(),C=eH(et),L=U||C||w.length>0;return a({loaderData:P,errors:D},L?{fetchers:new Map(M.fetchers)}:{})}function eM(e){return M.fetchers.get(e)||I}async function ek(r,o,i,s,c,d){if(eF(),ev.delete(r),!s.route.action&&!s.route.lazy){let e=el(405,{method:d.formMethod,pathname:i,routeId:o});ej(r,o,e);return}let h=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}}(d,M.fetchers.get(r));M.fetchers.set(r,h),eP({fetchers:new Map(M.fetchers)});let f=new AbortController,g=ee(e.history,i,f.signal,d);G.set(r,f);let w=Q,b=await Z("action",g,s,c,p,t,v);if(g.signal.aborted){G.get(r)===f&&G.delete(r);return}if(eh(b)){if(G.delete(r),et>w){let e=eE(void 0);M.fetchers.set(r,e),eP({fetchers:new Map(M.fetchers)});return}{eu.add(r);let e=eb(d);return M.fetchers.set(r,e),eP({fetchers:new Map(M.fetchers)}),e_(M,b,{fetcherSubmission:d})}}if(ed(b)){ej(r,o,b.error);return}if(ec(b))throw el(400,{type:"defer-action"});let E=M.navigation.location||M.location,R=ee(e.history,E,f.signal),x=n||m,S="idle"!==M.navigation.state?y(x,M.navigation.location,v):M.matches;u(S,"Didn't find any matches after fetcher action");let P=++Q;en.set(r,P);let D=eb(d,b.data);M.fetchers.set(r,D);let[U,C]=K(e.history,M,S,d,E,O,J,X,ev,eu,x,v,{[s.route.id]:b.data},void 0);C.filter(e=>e.key!==r).forEach(e=>{let t=e.key,n=M.fetchers.get(t),r=eb(void 0,n?n.data:void 0);M.fetchers.set(t,r),G.has(t)&&eB(t),e.controller&&G.set(t,e.controller)}),eP({fetchers:new Map(M.fetchers)});let L=()=>C.forEach(e=>eB(e.key));f.signal.addEventListener("abort",L);let{results:A,loaderResults:N,fetcherResults:_}=await eT(M.matches,S,U,C,R);if(f.signal.aborted)return;f.signal.removeEventListener("abort",L),en.delete(r),G.delete(r),C.forEach(e=>G.delete(e.key));let T=es(A);if(T){if(T.idx>=U.length){let e=C[T.idx-U.length].key;eu.add(e)}return e_(M,T.result)}let{loaderData:F,errors:j}=er(M,M.matches,U,N,void 0,C,_,eR);if(M.fetchers.has(r)){let e=eE(b.data);M.fetchers.set(r,e)}let B=eH(P);"loading"===M.navigation.state&&P>et?(u(k,"Expected pending action"),l&&l.abort(),eD(M.navigation.location,{matches:S,loaderData:F,errors:j,fetchers:new Map(M.fetchers)})):(eP(a({errors:j,loaderData:eo(M.loaderData,F,S,j)},B||C.length>0?{fetchers:new Map(M.fetchers)}:{})),O=!1)}async function eN(n,r,o,a,i,l){let s=M.fetchers.get(n),c=eb(l,s?s.data:void 0);M.fetchers.set(n,c),eP({fetchers:new Map(M.fetchers)});let d=new AbortController,h=ee(e.history,o,d.signal);G.set(n,d);let f=Q,m=await Z("loader",h,a,i,p,t,v);if(ec(m)&&(m=await em(m,h.signal,!0)||m),G.get(n)===d&&G.delete(n),h.signal.aborted)return;if(eh(m)){if(et>f){let e=eE(void 0);M.fetchers.set(n,e),eP({fetchers:new Map(M.fetchers)});return}eu.add(n),await e_(M,m);return}if(ed(m)){let e=ea(M.matches,r);M.fetchers.delete(n),eP({fetchers:new Map(M.fetchers),errors:{[e.route.id]:m.error}});return}u(!ec(m),"Unhandled fetcher deferred data");let g=eE(m.data);M.fetchers.set(n,g),eP({fetchers:new Map(M.fetchers)})}async function e_(t,n,o){let{submission:i,fetcherSubmission:c,replace:f}=void 0===o?{}:o;n.revalidate&&(O=!0);let p=h(t.location,n.location,{_isRedirect:!0});if(u(p,"Expected a location on the redirect navigation"),d){let t=!1;if(n.reloadDocument)t=!0;else if(W.test(n.location)){let r=e.history.createURL(n.location);t=r.origin!==s.location.origin||null==x(r.pathname,v)}if(t){f?s.location.replace(n.location):s.location.assign(n.location);return}}l=null;let m=!0===f?r.Replace:r.Push,{formMethod:g,formAction:y,formEncType:w}=t.navigation;!i&&!c&&g&&y&&w&&(i=ey(t.navigation));let b=i||c;if(B.has(n.status)&&b&&ef(b.formMethod))await eC(m,p,{submission:a({},b,{formAction:n.location}),preventScrollReset:N});else{let e=ew(p,i);await eC(m,p,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:N})}}async function eT(n,r,a,i,l){let s=await Promise.all([...a.map(e=>Z("loader",l,e,r,p,t,v)),...i.map(n=>n.matches&&n.match&&n.controller?Z("loader",ee(e.history,n.path,n.controller.signal),n.match,n.matches,p,t,v):{type:o.error,error:el(404,{pathname:n.path})})]),u=s.slice(0,a.length),c=s.slice(a.length);return await Promise.all([ep(n,a,u,u.map(()=>l.signal),!1,M.loaderData),ep(n,i.map(e=>e.match),c,i.map(e=>e.controller?e.controller.signal:null),!0)]),{results:s,loaderResults:u,fetcherResults:c}}function eF(){O=!0,J.push(...eJ()),ev.forEach((e,t)=>{G.has(t)&&(X.push(t),eB(t))})}function ej(e,t,n){let r=ea(M.matches,t);eO(e),eP({errors:{[r.route.id]:n},fetchers:new Map(M.fetchers)})}function eO(e){let t=M.fetchers.get(e);G.has(e)&&!(t&&"loading"===t.state&&en.has(e))&&eB(e),ev.delete(e),en.delete(e),eu.delete(e),M.fetchers.delete(e)}function eB(e){let t=G.get(e);u(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function ez(e){for(let t of e){let e=eE(eM(t).data);M.fetchers.set(t,e)}}function eI(){let e=[],t=!1;for(let n of eu){let r=M.fetchers.get(n);u(r,"Expected fetcher: "+n),"loading"===r.state&&(eu.delete(n),e.push(n),t=!0)}return ez(e),t}function eH(e){let t=[];for(let[n,r]of en)if(r<e){let e=M.fetchers.get(n);u(e,"Expected fetcher: "+n),"loading"===e.state&&(eB(n),en.delete(n),t.push(n))}return ez(t),t.length>0}function eW(e){M.blockers.delete(e),ex.delete(e)}function e$(e,t){let n=M.blockers.get(e)||H;u("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(M.blockers);r.set(e,t),eP({blockers:r})}function eq(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===ex.size)return;ex.size>1&&c(!1,"A router only supports one blocker at a time");let o=Array.from(ex.entries()),[a,i]=o[o.length-1],l=M.blockers.get(a);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:n,historyAction:r}))return a}function eJ(e){let t=[];return eR.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),eR.delete(r))}),t}function eV(e,t){return P&&P(e,t.map(e=>w(e,M.loaderData)))||e.key}function eY(e,t){if(S){let n=S[eV(e,t)];if("number"==typeof n)return n}return null}return i={get basename(){return v},get state(){return M},get routes(){return m},get window(){return s},initialize:function(){if(E=e.history.listen(t=>{let{action:n,location:r,delta:o}=t;if(eS){eS=!1;return}c(0===ex.size||null!=o,"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.");let a=eq({currentLocation:M.location,nextLocation:r,historyAction:n});if(a&&null!=o){eS=!0,e.history.go(-1*o),e$(a,{state:"blocked",location:r,proceed(){e$(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(o)},reset(){let e=new Map(M.blockers);e.set(a,H),eP({blockers:e})}});return}return eC(n,r)}),d){(function(e,t){try{let n=e.sessionStorage.getItem(q);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}})(s,T);let e=()=>(function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(q,JSON.stringify(n))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(s,T);s.addEventListener("pagehide",e),F=()=>s.removeEventListener("pagehide",e)}return!M.initialized&&eC(r.Pop,M.location),i},subscribe:function(e){return R.add(e),()=>R.delete(e)},enableScrollRestoration:function(e,t,n){if(S=e,D=t,P=n||null,!U&&M.navigation===z){U=!0;let e=eY(M.location,M.matches);null!=e&&eP({restoreScrollPosition:e})}return()=>{S=null,D=null,P=null}},navigate:eU,fetch:function(e,t,r,o){if(f)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.");G.has(e)&&eB(e);let a=n||m,i=V(M.location,M.matches,v,b.v7_prependBasename,r,t,null==o?void 0:o.relative),l=y(a,i,v);if(!l){ej(e,t,el(404,{pathname:i}));return}let{path:s,submission:u,error:c}=Y(b.v7_normalizeFormMethod,!0,i,o);if(c){ej(e,t,c);return}let d=eg(l,s);if(N=(o&&o.preventScrollReset)===!0,u&&ef(u.formMethod)){ek(e,t,s,d,l,u);return}ev.set(e,{routeId:t,path:s}),eN(e,t,s,d,l,u)},revalidate:function(){if(eF(),eP({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state){eC(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}eC(k||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eM,deleteFetcher:eO,dispose:function(){E&&E(),F&&F(),R.clear(),l&&l.abort(),M.fetchers.forEach((e,t)=>eO(t)),M.blockers.forEach((e,t)=>eW(t))},getBlocker:function(e,t){let n=M.blockers.get(e)||H;return ex.get(e)!==t&&ex.set(e,t),n},deleteBlocker:eW,_internalFetchControllers:G,_internalActiveDeferreds:eR,_internalSetRoutes:function(e){n=g(e,t,void 0,p={})}}}Symbol("deferred");function V(e,t,n,r,o,a,i){let l,s;if(null!=a&&"path"!==i){for(let e of(l=[],t))if(l.push(e),e.route.id===a){s=e;break}}else l=t,s=t[t.length-1];let u=D(o||".",P(l).map(e=>e.pathnameBase),x(e.pathname,n)||e.pathname,"path"===i);return null==o&&(u.search=e.search,u.hash=e.hash),(null==o||""===o||"."===o)&&s&&s.route.index&&!ev(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(u.pathname="/"===u.pathname?n:U([n,u.pathname])),f(u)}function Y(e,t,n,r){var o;let a,i;if(!r||!(null!=(o=r)&&("formData"in o&&null!=o.formData||"body"in o&&void 0!==o.body)))return{path:n};if(r.formMethod&&!function(e){return j.has(e.toLowerCase())}(r.formMethod))return{path:n,error:el(405,{method:r.formMethod})};let l=()=>({path:n,error:el(400,{type:"invalid-body"})}),s=r.formMethod||"get",c=e?s.toUpperCase():s.toLowerCase(),d=eu(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ef(c))return l();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ef(c))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=et(r.formData),i=r.formData;else if(r.body instanceof FormData)a=et(r.body),i=r.body;else if(r.body instanceof URLSearchParams)i=en(a=r.body);else if(null==r.body)a=new URLSearchParams,i=new FormData;else try{a=new URLSearchParams(r.body),i=en(a)}catch(e){return l()}let h={formMethod:c,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ef(h.formMethod))return{path:n,submission:h};let m=p(n);return t&&m.search&&ev(m.search)&&a.append("index",""),m.search="?"+a,{path:f(m),submission:h}}function K(e,t,n,r,o,i,l,s,u,c,d,h,f,p){let m=p?Object.values(p)[0]:f?Object.values(f)[0]:void 0,v=e.createURL(t.location),g=e.createURL(o),w=(function(e,t){let n=e;if(t){let r=e.findIndex(e=>e.route.id===t);r>=0&&(n=e.slice(0,r))}return n})(n,p?Object.keys(p)[0]:void 0).filter((e,n)=>{if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||l.some(t=>t===e.route.id))return!0;let o=t.matches[n];return G(e,a({currentUrl:v,currentParams:o.params,nextUrl:g,nextParams:e.params},r,{actionResult:m,defaultShouldRevalidate:i||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||X(o,e)}))}),b=[];return u.forEach((e,o)=>{if(!n.some(t=>t.route.id===e.routeId))return;let l=y(d,e.path,h);if(!l){b.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let u=t.fetchers.get(o),f=eg(l,e.path),p=!1;(p=!c.has(o)&&(!!s.includes(o)||(u&&"idle"!==u.state&&void 0===u.data?i:G(f,a({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:m,defaultShouldRevalidate:i})))))&&b.push({key:o,routeId:e.routeId,path:e.path,matches:l,match:f,controller:new AbortController})}),[w,b]}function X(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function G(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function Q(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];u(o,"No route found in manifest");let i={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+e+'" will be ignored.')),!t&&!v.has(e)&&(i[e]=r[e])}Object.assign(o,i),Object.assign(o,a({},t(o),{lazy:void 0}))}async function Z(e,t,n,r,a,i,l,s){let c,d,h;void 0===s&&(s={});let f=e=>{let r;let o=new Promise((e,t)=>r=t);return h=()=>r(),t.signal.addEventListener("abort",h),Promise.race([e({request:t,params:n.params,context:s.requestContext}),o])};try{let r=n.route[e];if(n.route.lazy){if(r){let e;let t=await Promise.all([f(r).catch(t=>{e=t}),Q(n.route,i,a)]);if(e)throw e;d=t[0]}else if(await Q(n.route,i,a),r=n.route[e])d=await f(r);else{if("action"!==e)return{type:o.data,data:void 0};let r=new URL(t.url),a=r.pathname+r.search;throw el(405,{method:t.method,pathname:a,routeId:n.route.id})}}else if(r)d=await f(r);else{let e=new URL(t.url),n=e.pathname+e.search;throw el(404,{pathname:n})}u(void 0!==d,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(e){c=o.error,d=e}finally{h&&t.signal.removeEventListener("abort",h)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(d)){let e,a=d.status;if(O.has(a)){let e=d.headers.get("Location");if(u(e,"Redirects returned/thrown from loaders/actions must have a Location header"),W.test(e)){if(!s.isStaticRequest){let n=new URL(t.url),r=new URL(e.startsWith("//")?n.protocol+e:e),o=null!=x(r.pathname,l);r.origin===n.origin&&o&&(e=r.pathname+r.search+r.hash)}}else e=V(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,e);if(s.isStaticRequest)throw d.headers.set("Location",e),d;return{type:o.redirect,status:a,location:e,revalidate:null!==d.headers.get("X-Remix-Revalidate"),reloadDocument:null!==d.headers.get("X-Remix-Reload-Document")}}if(s.isRouteRequest)throw{type:c===o.error?o.error:o.data,response:d};let i=d.headers.get("Content-Type");return(e=i&&/\bapplication\/json\b/.test(i)?await d.json():await d.text(),c===o.error)?{type:c,error:new k(a,d.statusText,e),headers:d.headers}:{type:o.data,data:e,statusCode:d.status,headers:d.headers}}if(c===o.error)return{type:c,error:d};if(function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(d)){var p,m;return{type:o.deferred,deferredData:d,statusCode:(p=d.init)==null?void 0:p.status,headers:((m=d.init)==null?void 0:m.headers)&&new Headers(d.init.headers)}}return{type:o.data,data:d}}function ee(e,t,n,r){let o=e.createURL(eu(t)).toString(),a={signal:n};if(r&&ef(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=et(r.formData):a.body=r.formData}return new Request(o,a)}function et(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function en(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function er(e,t,n,r,o,i,l,s){var c,d,h,f,p;let m,v,g,y,w;let{loaderData:b,errors:E}=(c=t,d=n,h=r,f=o,p=s,v={},g=null,y=!1,w={},h.forEach((e,t)=>{let n=d[t].route.id;if(u(!eh(e),"Cannot handle redirect results in processLoaderData"),ed(e)){let t=ea(c,n),r=e.error;f&&(r=Object.values(f)[0],f=void 0),null==(g=g||{})[t.route.id]&&(g[t.route.id]=r),v[n]=void 0,!y&&(y=!0,m=N(e.error)?e.error.status:500),e.headers&&(w[n]=e.headers)}else ec(e)?(p.set(n,e.deferredData),v[n]=e.deferredData.data):v[n]=e.data,null!=e.statusCode&&200!==e.statusCode&&!y&&(m=e.statusCode),e.headers&&(w[n]=e.headers)}),f&&(g=f,v[Object.keys(f)[0]]=void 0),{loaderData:v,errors:g,statusCode:m||200,loaderHeaders:w});for(let t=0;t<i.length;t++){let{key:n,match:r,controller:o}=i[t];u(void 0!==l&&void 0!==l[t],"Did not find corresponding fetcher result");let s=l[t];if(!o||!o.signal.aborted)if(ed(s)){let t=ea(e.matches,null==r?void 0:r.route.id);!(E&&E[t.route.id])&&(E=a({},E,{[t.route.id]:s.error})),e.fetchers.delete(n)}else if(eh(s))u(!1,"Unhandled fetcher revalidation redirect");else if(ec(s))u(!1,"Unhandled fetcher deferred data");else{let t=eE(s.data);e.fetchers.set(n,t)}}return{loaderData:b,errors:E}}function eo(e,t,n,r){let o=a({},t);for(let a of n){let n=a.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function ea(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 ei(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 el(e,t){let{pathname:n,routeId:r,method:o,type:a}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":"defer-action"===a?l="defer() is not supported in actions":"invalid-body"===a&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(i="Not Found",l='No route matches URL "'+n+'"'):405===e&&(i="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new k(e||500,i,Error(l),!0)}function es(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(eh(n))return{result:n,idx:t}}}function eu(e){let t="string"==typeof e?p(e):e;return f(a({},t,{hash:""}))}function ec(e){return e.type===o.deferred}function ed(e){return e.type===o.error}function eh(e){return(e&&e.type)===o.redirect}function ef(e){return T.has(e.toLowerCase())}async function ep(e,t,n,r,o,a){for(let i=0;i<n.length;i++){let l=n[i],s=t[i];if(!s)continue;let c=e.find(e=>e.route.id===s.route.id),d=null!=c&&!X(c,s)&&(a&&a[s.route.id])!==void 0;if(ec(l)&&(o||d)){let e=r[i];u(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await em(l,e,o).then(e=>{e&&(n[i]=e||n[i])})}}}async function em(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:o.data,data:e.deferredData.unwrappedData}}catch(e){return{type:o.error,error:e}}return{type:o.data,data:e.deferredData.data}}}function ev(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eg(e,t){let n="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&ev(n||""))return e[e.length-1];let r=P(e);return r[r.length-1]}function ey(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r){if(null!=o)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};else if(null!=a)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function ew(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 eb(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 eE(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},97336:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return C},NavLink:function(){return L},Outlet:function(){return i.Outlet},Route:function(){return i.Route},RouterProvider:function(){return S},createBrowserRouter:function(){return y},createHashRouter:function(){return w},createRoutesFromElements:function(){return i.createRoutesFromElements},matchPath:function(){return i.matchPath},matchRoutes:function(){return i.matchRoutes},redirect:function(){return i.redirect},useHref:function(){return i.useHref},useLocation:function(){return i.useLocation},useMatches:function(){return i.useMatches},useNavigate:function(){return i.useNavigate},useParams:function(){return i.useParams},useResolvedPath:function(){return i.useResolvedPath},useRouteError:function(){return i.useRouteError}});var r,o,a=n("5872"),i=n("32501"),l=n("74700");function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}let c="application/x-www-form-urlencoded";function d(e){return null!=e&&"string"==typeof e.tagName}let h=null,f=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function p(e){return null==e||f.has(e)?e:null}let m=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],v=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],g=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset","unstable_viewTransition"];function y(e,t){return(0,l.createRouter)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.createBrowserHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||b(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function w(e,t){return(0,l.createRouter)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.createHashHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||b(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function b(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=s({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new l.UNSAFE_ErrorResponseImpl(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}(t.errors)})),t}let E=a.createContext({isTransitioning:!1}),R=a.startTransition;class x{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 S(e){let{fallbackElement:t,router:n,future:r}=e,[o,l]=a.useState(n.state),[s,u]=a.useState(),[c,d]=a.useState({isTransitioning:!1}),[h,f]=a.useState(),[p,m]=a.useState(),[v,g]=a.useState(),{v7_startTransition:y}=r||{},w=a.useCallback(e=>{if(y){var t;t=e,R?R(t):t()}else e()},[y]),b=a.useCallback((e,t)=>{let{unstable_viewTransitionOpts:r}=t;r&&null!=n.window&&"function"==typeof n.window.document.startViewTransition?p&&h?(h.resolve(),p.skipTransition(),g({state:e,currentLocation:r.currentLocation,nextLocation:r.nextLocation})):(u(e),d({isTransitioning:!0,currentLocation:r.currentLocation,nextLocation:r.nextLocation})):w(()=>l(e))},[w,p,h,n.window]);a.useLayoutEffect(()=>n.subscribe(b),[n,b]),a.useEffect(()=>{c.isTransitioning&&f(new x)},[c.isTransitioning]),a.useEffect(()=>{if(h&&s&&n.window){let e=h.promise,t=n.window.document.startViewTransition(async()=>{w(()=>l(s)),await e});t.finished.finally(()=>{f(void 0),m(void 0),u(void 0),d({isTransitioning:!1})}),m(t)}},[w,s,h,n.window]),a.useEffect(()=>{h&&s&&o.location.key===s.location.key&&h.resolve()},[h,p,o.location,s]),a.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),d({isTransitioning:!0,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),g(void 0))},[c.isTransitioning,v]);let S=a.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),D=n.basename||"/",U=a.useMemo(()=>({router:n,navigator:S,static:!1,basename:D}),[n,S,D]);return a.createElement(a.Fragment,null,a.createElement(i.UNSAFE_DataRouterContext.Provider,{value:U},a.createElement(i.UNSAFE_DataRouterStateContext.Provider,{value:o},a.createElement(E.Provider,{value:c},a.createElement(i.Router,{basename:D,location:o.location,navigationType:o.historyAction,navigator:S},o.initialized?a.createElement(P,{routes:n.routes,state:o}):t)))),null)}function P(e){let{routes:t,state:n}=e;return(0,i.UNSAFE_useRoutesImpl)(t,void 0,n)}let D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,U=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C=a.forwardRef(function(e,t){let n,{onClick:r,relative:o,reloadDocument:c,replace:d,state:h,target:f,to:p,preventScrollReset:v,unstable_viewTransition:g}=e,y=u(e,m),{basename:w}=a.useContext(i.UNSAFE_NavigationContext),b=!1;if("string"==typeof p&&U.test(p)&&(n=p,D))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),n=(0,l.stripBasename)(t.pathname,w);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:b=!0}catch(e){}let E=(0,i.useHref)(p,{relative:o}),R=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:u}=void 0===t?{}:t,c=(0,i.useNavigate)(),d=(0,i.useLocation)(),h=(0,i.useResolvedPath)(e,{relative:s});return a.useCallback(t=>{var a,f,p;if(a=t,f=n,0===a.button&&(!f||"_self"===f)&&(p=a,!(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey)))t.preventDefault(),c(e,{replace:void 0!==r?r:(0,i.createPath)(d)===(0,i.createPath)(h),state:o,preventScrollReset:l,relative:s,unstable_viewTransition:u})},[d,c,h,r,o,n,e,l,s,u])}(p,{replace:d,state:h,target:f,preventScrollReset:v,relative:o,unstable_viewTransition:g});return a.createElement("a",s({},y,{href:n||E,onClick:b||c?r:function(e){r&&r(e),!e.defaultPrevented&&R(e)},ref:t,target:f}))}),L=a.forwardRef(function(e,t){let n,{"aria-current":o="page",caseSensitive:c=!1,className:d="",end:h=!1,style:f,to:p,unstable_viewTransition:m,children:g}=e,y=u(e,v),w=(0,i.useResolvedPath)(p,{relative:y.relative}),b=(0,i.useLocation)(),R=a.useContext(i.UNSAFE_DataRouterStateContext),{navigator:x}=a.useContext(i.UNSAFE_NavigationContext),S=null!=R&&function(e,t){void 0===t&&(t={});let n=a.useContext(E);null!=n||(0,l.UNSAFE_invariant)(!1);let{basename:o}=M(r.useViewTransitionState),s=(0,i.useResolvedPath)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let u=(0,l.stripBasename)(n.currentLocation.pathname,o)||n.currentLocation.pathname,c=(0,l.stripBasename)(n.nextLocation.pathname,o)||n.nextLocation.pathname;return null!=(0,l.matchPath)(s.pathname,c)||null!=(0,l.matchPath)(s.pathname,u)}(w)&&!0===m,P=x.encodeLocation?x.encodeLocation(w).pathname:w.pathname,D=b.pathname,U=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;!c&&(D=D.toLowerCase(),U=U?U.toLowerCase():null,P=P.toLowerCase());let L=D===P||!h&&D.startsWith(P)&&"/"===D.charAt(P.length),A=null!=U&&(U===P||!h&&U.startsWith(P)&&"/"===U.charAt(P.length)),k={isActive:L,isPending:A,isTransitioning:S},N=L?o:void 0;n="function"==typeof d?d(k):[d,L?"active":null,A?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof f?f(k):f;return a.createElement(C,s({},y,{"aria-current":N,className:n,ref:t,style:_,to:p,unstable_viewTransition:m}),"function"==typeof g?g(k):g)}),A=a.forwardRef((e,t)=>{let{reloadDocument:n,replace:r,state:o,method:c="get",action:d,onSubmit:h,submit:f,relative:p,preventScrollReset:m,unstable_viewTransition:v}=e,y=u(e,g),w="get"===c.toLowerCase()?"get":"post",b=function(e,t){let{relative:n}=void 0===t?{}:t,{basename:r}=a.useContext(i.UNSAFE_NavigationContext),o=a.useContext(i.UNSAFE_RouteContext);o||(0,l.UNSAFE_invariant)(!1);let[u]=o.matches.slice(-1),c=s({},(0,i.useResolvedPath)(e||".",{relative:n})),d=(0,i.useLocation)();if(null==e&&(c.search=d.search,u.route.index)){let e=new URLSearchParams(c.search);e.delete("index"),c.search=e.toString()?"?"+e.toString():""}return(!e||"."===e)&&u.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(c.pathname="/"===c.pathname?r:(0,l.joinPaths)([r,c.pathname])),(0,i.createPath)(c)}(d,{relative:p});return a.createElement("form",s({ref:t,method:w,action:b,onSubmit:n?h:e=>{if(h&&h(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null==t?void 0:t.getAttribute("formmethod"))||c;f(t||e.currentTarget,{method:n,replace:r,state:o,relative:p,preventScrollReset:m,unstable_viewTransition:v})}},y))});function M(e){let t=a.useContext(i.UNSAFE_DataRouterContext);return t||(0,l.UNSAFE_invariant)(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(r||(r={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(o||(o={}))},32501:function(e,t,n){"use strict";n.r(t),n.d(t,{Outlet:function(){return _},Route:function(){return T},Router:function(){return F},UNSAFE_DataRouterContext:function(){return u},UNSAFE_DataRouterStateContext:function(){return c},UNSAFE_NavigationContext:function(){return d},UNSAFE_RouteContext:function(){return f},UNSAFE_mapRouteProperties:function(){return O},UNSAFE_useRouteId:function(){return M},UNSAFE_useRoutesImpl:function(){return x},createPath:function(){return l.createPath},createRoutesFromElements:function(){return function e(t,n){void 0===n&&(n=[]);let r=[];return i.Children.forEach(t,(t,o)=>{if(!i.isValidElement(t))return;let a=[...n,o];if(t.type===i.Fragment){r.push.apply(r,e(t.props.children,a));return}t.type===T||(0,l.UNSAFE_invariant)(!1),!t.props.index||!t.props.children||(0,l.UNSAFE_invariant)(!1);let s={id:t.props.id||a.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&&(s.children=e(t.props.children,a)),r.push(s)}),r}},matchPath:function(){return l.matchPath},matchRoutes:function(){return l.matchRoutes},redirect:function(){return l.redirect},useHref:function(){return m},useLocation:function(){return g},useMatches:function(){return k},useNavigate:function(){return w},useParams:function(){return E},useResolvedPath:function(){return R},useRouteError:function(){return N}});var r,o,a,i=n("5872"),l=n("74700");function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let u=i.createContext(null),c=i.createContext(null),d=i.createContext(null),h=i.createContext(null),f=i.createContext({outlet:null,matches:[],isDataRoute:!1}),p=i.createContext(null);function m(e,t){let{relative:n}=void 0===t?{}:t;v()||(0,l.UNSAFE_invariant)(!1);let{basename:r,navigator:o}=i.useContext(d),{hash:a,pathname:s,search:u}=R(e,{relative:n}),c=s;return"/"!==r&&(c="/"===s?r:(0,l.joinPaths)([r,s])),o.createHref({pathname:c,search:u,hash:a})}function v(){return null!=i.useContext(h)}function g(){return v()||(0,l.UNSAFE_invariant)(!1),i.useContext(h).location}function y(e){!i.useContext(d).static&&i.useLayoutEffect(e)}function w(){let{isDataRoute:e}=i.useContext(f);return e?function(){var e;let t;let{router:n}=(e=U.UseNavigateStable,(t=i.useContext(u))||(0,l.UNSAFE_invariant)(!1),t),r=A(C.UseNavigateStable),o=i.useRef(!1);return y(()=>{o.current=!0}),i.useCallback(function(e,t){void 0===t&&(t={}),o.current&&("number"==typeof e?n.navigate(e):n.navigate(e,s({fromRouteId:r},t)))},[n,r])}():function(){v()||(0,l.UNSAFE_invariant)(!1);let e=i.useContext(u),{basename:t,navigator:n}=i.useContext(d),{matches:r}=i.useContext(f),{pathname:o}=g(),a=JSON.stringify((0,l.UNSAFE_getPathContributingMatches)(r).map(e=>e.pathnameBase)),s=i.useRef(!1);return y(()=>{s.current=!0}),i.useCallback(function(r,i){if(void 0===i&&(i={}),!s.current)return;if("number"==typeof r){n.go(r);return}let u=(0,l.resolveTo)(r,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(u.pathname="/"===u.pathname?t:(0,l.joinPaths)([t,u.pathname])),(i.replace?n.replace:n.push)(u,i.state,i)},[t,n,a,o,e])}()}let b=i.createContext(null);function E(){let{matches:e}=i.useContext(f),t=e[e.length-1];return t?t.params:{}}function R(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=i.useContext(f),{pathname:o}=g(),a=JSON.stringify((0,l.UNSAFE_getPathContributingMatches)(r).map(e=>e.pathnameBase));return i.useMemo(()=>(0,l.resolveTo)(e,JSON.parse(a),o,"path"===n),[e,a,o,n])}function x(e,t,n){let r;v()||(0,l.UNSAFE_invariant)(!1);let{navigator:o}=i.useContext(d),{matches:a}=i.useContext(f),u=a[a.length-1],c=u?u.params:{};u&&u.pathname;let p=u?u.pathnameBase:"/";u&&u.route;let m=g();if(t){var y;let e="string"==typeof t?(0,l.parsePath)(t):t;"/"===p||((y=e.pathname)==null?void 0:y.startsWith(p))||(0,l.UNSAFE_invariant)(!1),r=e}else r=m;let w=r.pathname||"/",b="/"===p?w:w.slice(p.length)||"/",E=(0,l.matchRoutes)(e,{pathname:b}),R=function(e,t,n){var r,o;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){if((o=n)==null||!o.errors)return null;e=n.matches}let a=e,s=(r=n)==null?void 0:r.errors;if(null!=s){let e=a.findIndex(e=>e.route.id&&(null==s?void 0:s[e.route.id]));e>=0||(0,l.UNSAFE_invariant)(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight((e,r,o)=>{let l=r.route.id?null==s?void 0:s[r.route.id]:null,u=null;n&&(u=r.route.errorElement||S);let c=t.concat(a.slice(0,o+1)),d=()=>{let t;return t=l?u:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(D,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(P,{location:n.location,revalidation:n.revalidation,component:u,error:l,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()},null)}(E&&E.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:(0,l.joinPaths)([p,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:(0,l.joinPaths)([p,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,n);return t&&R?i.createElement(h.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:l.Action.Pop}},R):R}let S=i.createElement(function(){let e=N(),t=(0,l.isRouteErrorResponse)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=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),n?i.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},n):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(p.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){let{routeContext:t,match:n,children:r}=e,o=i.useContext(u);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(f.Provider,{value:t},r)}var U=((r=U||{}).UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r);var C=((o=C||{}).UseBlocker="useBlocker",o.UseLoaderData="useLoaderData",o.UseActionData="useActionData",o.UseRouteError="useRouteError",o.UseNavigation="useNavigation",o.UseRouteLoaderData="useRouteLoaderData",o.UseMatches="useMatches",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o.UseRouteId="useRouteId",o);function L(e){let t=i.useContext(c);return t||(0,l.UNSAFE_invariant)(!1),t}function A(e){var t;let n;let r=(t=0,(n=i.useContext(f))||(0,l.UNSAFE_invariant)(!1),n),o=r.matches[r.matches.length-1];return o.route.id||(0,l.UNSAFE_invariant)(!1),o.route.id}function M(){return A(C.UseRouteId)}function k(){let{matches:e,loaderData:t}=L(C.UseMatches);return i.useMemo(()=>e.map(e=>(0,l.UNSAFE_convertRouteMatchToUiMatch)(e,t)),[e,t])}function N(){var e;let t=i.useContext(p),n=L(C.UseRouteError),r=A(C.UseRouteError);return t?t:(e=n.errors)==null?void 0:e[r]}function _(e){var t;let n;return t=e.context,(n=i.useContext(f).outlet)?i.createElement(b.Provider,{value:t},n):n}function T(e){(0,l.UNSAFE_invariant)(!1)}function F(e){let{basename:t="/",children:n=null,location:r,navigationType:o=l.Action.Pop,navigator:a,static:s=!1}=e;v()&&(0,l.UNSAFE_invariant)(!1);let u=t.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:u,navigator:a,static:s}),[u,a,s]);"string"==typeof r&&(r=(0,l.parsePath)(r));let{pathname:f="/",search:p="",hash:m="",state:g=null,key:y="default"}=r,w=i.useMemo(()=>{let e=(0,l.stripBasename)(f,u);return null==e?null:{location:{pathname:e,search:p,hash:m,state:g,key:y},navigationType:o}},[u,f,p,m,g,y,o]);return null==w?null:i.createElement(d.Provider,{value:c},i.createElement(h.Provider,{children:n,value:w}))}i.startTransition;var j=((a=j||{})[a.pending=0]="pending",a[a.success=1]="success",a[a.error=2]="error",a);new Promise(()=>{});function O(e){let 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,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see mount.634b6bc0.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{99291:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsuleButton:function(){return i}});var o=n("86834");n("5872");var r=n("20421"),l=n("93935");let i=e=>{var t;let[n,i]=(0,r.useAsyncFn)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:l.container,onClick:i,"data-type":(t=e.type)!==null&&void 0!==t?t:"default",disabled:n.loading,children:e.children})}},3988:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsule:function(){return g}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("83982"),a=n("5872"),s=n("20421"),c=n("29214"),u=n("55058"),d=n("89529"),m=n("27683"),v=n("82056"),p=n("99291"),f=n("8270"),h=n("54050"),_=n("12353");let g=e=>{let t=e.def.assets.logo,[n,g]=(0,s.useToggle)(!1),[y,w]=(0,a.useState)(!1),k=(0,u.withQuery)(e.endpoint,{src:e.dataSource}),b=(0,f.useStickyDraggable)({clamp:!0}),[x,E]=(0,a.useState)(()=>{var e;let t=(e=localStorage.getItem("__modern_js_devtools_appearance"))!==null&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});(0,s.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&E(e.newValue||void 0)}),(0,s.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&g()}),(0,a.useEffect)(()=>{h.wallAgent.hook("receive",e=>{"startInspectingNative"===e.event&&(g(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(g(!0),document.documentElement.style.removeProperty("cursor"))};return h.wallAgent.hook("send",e),()=>{h.wallAgent.removeHook("send",e)}},[]);let C=async()=>{document.documentElement.style.setProperty("cursor","wait"),g(!1),w(!0);try{(await (0,_.pTimeout)(h.$client,1e4)).remote.pullUpReactInspector()}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,l.jsxs)(i.Theme,{appearance:x,className:x,children:[(0,l.jsx)(d.default,{when:n,keepAlive:!0,load:y,children:(0,l.jsx)("div",{className:m.container,children:(0,l.jsx)(v.FrameBox,{src:k,onClose:()=>g(!1),style:{pointerEvents:b.isDragging?"none":"auto"}})})}),(0,l.jsxs)(i.Flex,(0,r._)((0,o._)({className:m.fab},b.props),{align:"center",children:[(0,l.jsx)(p.DevtoolsCapsuleButton,{type:"primary",onClick:g,children:(0,l.jsx)("img",{className:m.logo,src:t})}),(0,l.jsx)(p.DevtoolsCapsuleButton,{onClick:C,children:(0,l.jsx)(c.HiMiniCursorArrowRipple,{})})]}))]})}},82056:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return v}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),a=n("83982");n("5872");var s=n("29214"),c=n("42700"),u=n("43084"),d=n("51889"),m=n("54050");let v=e=>{var{src:t,onClose:n}=e,v=(0,l._)(e,["src","onClose"]);let{loaded:p}=(0,c.useSnapshot)(m.$inner);return(0,i.jsxs)(a.Box,(0,r._)((0,o._)({className:d.container},v),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(s.HiMiniXMark,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:p?"none":void 0},children:(0,i.jsx)(u.Loading,{})})]}))}},89529:function(e,t,n){"use strict";n.r(t);var o=n("86834"),r=n("5872");t.default=e=>{var t;let n=(t=e.keepAlive)===null||void 0===t||t,{when:l}=e,i=(0,r.useRef)(!1);l&&(i.current=!0);let a=e.load||(n?i.current:l);return a?(0,o.jsx)("div",{style:{display:!n||l?"unset":"none"},children:e.children}):null}},20955:function(e,t,n){"use strict";n.r(t);var o=n("90247"),r=n("86834");n("47779"),n("54050");var l=n("60182"),i=n("28111"),a=n("3988");document.addEventListener("DOMContentLoaded",()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),n=document.getElementById("_modern_js_devtools_styles");if(!(n instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(n.content);let s=document.createElement("div");s.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(s);let c=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(s).render((0,r.jsx)(a.DevtoolsCapsule,(0,o._)({},c)))})},47779:function(e,t,n){"use strict";n.r(t);var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},54050:function(e,t,n){"use strict";n.r(t),n.d(t,{$client:function(){return h},$inner:function(){return _},wallAgent:function(){return p}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),a=n("65872"),s=n("9880"),c=n.n(s),u=n("42700"),d=n("57662"),m=n("39808");let v=l.MessagePortChannel.wait(window,"channel:connect:client"),p=new m.WallAgent,f=(0,d.createBridge)(window,p),h=v.then(e=>{let t=(0,a.createHooks)();return{remote:(0,i.createBirpc)({async activateReactDevtools(){(0,d.activate)(window,{bridge:f})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.proxy)({loaded:!1}),g=c()();h.then(e=>{let{remote:t,hooks:n}=e;p.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,g.resolve()})})},8270:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return s}});var o=n("5872"),r=n("20421");let l=(e,t)=>{var n,o;return(o=(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])===null||void 0===n?void 0:n.includes(t))!==null&&void 0!==o&&o},i=e=>{let[t,...n]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),o=n.findIndex(e=>{let{key:n}=e;return l(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},a=e=>{let{top:t,left:n,height:o,width:r}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-r}},s=e=>{var t;let n=(t=null==e?void 0:e.margin)!==null&&void 0!==t?t:"10px",l="number"==typeof n?"".concat(n,"px"):n,[s,c]=(0,o.useState)(),u=()=>{if(!s)return;s.moveable=!1;let{el:e}=s,[t]=i(a(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{c(void 0),e.style[t.key]=l}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==s?void 0:s.moveable))return;let{startX:o,startY:r}=s;(o-n.clientX)**2+(r-n.clientY)**2>9&&(s.clickable=!1);let{width:a,height:c}=s.el.getBoundingClientRect(),u=n.clientY-s.offsetY,d=n.clientX-s.offsetX,m=i({top:u,left:d,bottom:window.innerHeight-u-c,right:window.innerWidth-d-a}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of m){let t=["top","bottom"].includes(e.key)?window.innerHeight-c:window.innerWidth-a;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[v,p,...f]=m,{style:h}=s.el;h.transition="",h[v.key]=v.value,h[p.key]=p.value,h[f[0].key]="auto",h[f[1].key]="auto"};(0,r.useEvent)("blur",u),(0,r.useEvent)("mouseup",u),(0,r.useEvent)("touchend",u),(0,r.useEvent)("mousemove",d),(0,r.useEvent)("touchmove",d);let m=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),r=t.clientX-o.left;c({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!s,props:{onMouseDown:m,onTouchStart:m,onClickCapture:e=>{(null==s?void 0:s.clickable)||e.stopPropagation()}}}}},12353:function(e,t,n){"use strict";n.r(t),n.d(t,{pTimeout:function(){return o}});let o=(e,t)=>new Promise((n,o)=>{let r=!0,l=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(l)}),e.catch(o)})},93935:function(e){"use strict";e.exports={container:"container-a41eae"}},27683:function(e){"use strict";e.exports={container:"container-c37ff8",fab:"fab-b17740",logo:"logo-c7a29e",slideInFromRight:"slideInFromRight-e1026d"}},51889:function(e){"use strict";e.exports={backdrop:"backdrop-_51706","close-button":"close-button-c3742a",closeButton:"close-button-c3742a",container:"container-fb8255",frame:"frame-_5d7ff"}},28111:function(e){"use strict";e.exports={container:"container-d972e2"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["490","526","58","768","949"],function(){return t("74347"),t("56950"),t("7728"),t("54069"),t("20955")}),e.O()}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/static/css/async/client_context/builder/{page.d9a9eb8e.css → page.c5c9f155.css}
RENAMED
|
File without changes
|
/package/dist/static/css/async/client_context/framework/{page.d9a9eb8e.css → page.c5c9f155.css}
RENAMED
|
File without changes
|
/package/dist/static/css/async/client_headers/editor/{page.191f8aba.css → page.1cafd3ec.css}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/static/js/{lib-react.38c297f4.js.LICENSE.txt → lib-react.023116e5.js.LICENSE.txt}
RENAMED
|
File without changes
|