@modern-js/devtools-client 2.46.1 → 2.47.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.
- package/dist/html/client/index.html +3 -3
- package/dist/html/mount/index.html +3 -3
- package/dist/modern.config.json +39 -14
- package/dist/nestedRoutes.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +106 -72
- package/dist/static/css/async/client_doctor/page.4b5b3f70.css +1 -0
- package/dist/static/css/async/client_headers/editor/page.1e269ab4.css +1 -0
- package/dist/static/css/async/client_overview/page.a21fd53b.css +1 -0
- package/dist/static/css/async/client_pages/page.f6b1fb86.css +1 -0
- package/dist/static/css/client.8fa82b25.css +1 -0
- package/dist/static/css/components.f0d2e418.css +1 -0
- package/dist/static/css/mount.85d07e8a.css +1 -0
- package/dist/static/font/NotoSans-latin-subset.0dd84d42.woff2 +0 -0
- package/dist/static/image/rsdoctor-large.b2f496d9.png +0 -0
- package/dist/static/js/28.ff9cf79c.js +6 -0
- package/dist/static/js/{544.a062c5bf.js.LICENSE.txt → 28.ff9cf79c.js.LICENSE.txt} +405 -321
- package/dist/static/js/405.a362a59e.js +2 -0
- package/dist/static/js/405.a362a59e.js.LICENSE.txt +162 -0
- package/dist/static/js/669.4c467935.js +2 -0
- package/dist/static/js/{971.dfaf371b.js.LICENSE.txt → 669.4c467935.js.LICENSE.txt} +269 -269
- package/dist/static/js/768.cc6b6105.js +12 -0
- package/dist/static/js/{821.746e4296.js.LICENSE.txt → 768.cc6b6105.js.LICENSE.txt} +3 -3
- package/dist/static/js/async/574.5ecbe81d.js +2 -0
- package/dist/static/js/async/{199.632ea604.js.LICENSE.txt → 574.5ecbe81d.js.LICENSE.txt} +9 -9
- package/dist/static/js/async/{769.d97a8752.js → 769.e476d373.js} +2 -2
- package/dist/static/js/async/{769.d97a8752.js.LICENSE.txt → 769.e476d373.js.LICENSE.txt} +64 -64
- package/dist/static/js/async/851.10db2ec6.js +107 -0
- package/dist/static/js/async/{851.f1680ec1.js.LICENSE.txt → 851.10db2ec6.js.LICENSE.txt} +9 -9
- package/dist/static/js/async/client_config/{layout.166501ba.js → layout.74621de5.js} +2 -2
- package/dist/static/js/async/client_config/page.aab3b105.js +1 -0
- package/dist/static/js/async/client_context/builder/page.4fb84cc6.js +2 -0
- package/dist/static/js/async/client_context/{framework/page.0e7a358d.js.LICENSE.txt → builder/page.4fb84cc6.js.LICENSE.txt} +4 -4
- package/dist/static/js/async/client_context/framework/page.8193408b.js +2 -0
- package/dist/static/js/async/client_context/{builder/page.4a147316.js.LICENSE.txt → framework/page.8193408b.js.LICENSE.txt} +4 -4
- package/dist/static/js/async/client_context/{layout.7142f660.js → layout.5323e5cd.js} +2 -2
- package/dist/static/js/async/client_context/page.e011c45f.js +1 -0
- package/dist/static/js/async/client_doctor/page.9757e8c5.js +2 -0
- package/dist/static/js/async/client_doctor/page.9757e8c5.js.LICENSE.txt +47 -0
- package/dist/static/js/async/client_headers/editor/page.f6e89a4f.js +2 -0
- package/dist/static/js/async/client_headers/editor/{page.8a90ebab.js.LICENSE.txt → page.f6e89a4f.js.LICENSE.txt} +17 -21
- package/dist/static/js/async/client_headers/layout.1c0290a9.js +2 -0
- package/dist/static/js/async/client_headers/page.d98208e7.js +1 -0
- package/dist/static/js/async/client_headers/welcome/page.8e092837.js +2 -0
- package/dist/static/js/async/client_overview/page.b36b0893.js +2 -0
- package/dist/static/js/async/client_overview/{page.e2907cdb.js.LICENSE.txt → page.b36b0893.js.LICENSE.txt} +18 -12
- package/dist/static/js/async/client_page.50bf0cdc.js +1 -0
- package/dist/static/js/async/client_pages/layout.c9ca92dd.js +2 -0
- package/dist/static/js/async/{client_headers/layout.a02ba20e.js.LICENSE.txt → client_pages/layout.c9ca92dd.js.LICENSE.txt} +3 -3
- package/dist/static/js/async/client_pages/page.7fbc044c.js +2 -0
- package/dist/static/js/async/client_pages/{page.cbbcc027.js.LICENSE.txt → page.7fbc044c.js.LICENSE.txt} +64 -76
- package/dist/static/js/async/client_react/(tab)/layout.b9d4424b.js +2 -0
- package/dist/static/js/async/client_react/(tab)/page.e4b4ca14.js +2 -0
- package/dist/static/js/async/client_react/(tab)/{page.3990630b.js.LICENSE.txt → page.e4b4ca14.js.LICENSE.txt} +12 -18
- package/dist/static/js/async/client_react/offscreen/page.fe448b0c.js +2 -0
- package/dist/static/js/async/client_react/offscreen/page.fe448b0c.js.LICENSE.txt +5 -0
- package/dist/static/js/async/client_react/page.b813d5a5.js +1 -0
- package/dist/static/js/builder-runtime.292aab36.js +1 -0
- package/dist/static/js/client.f70bf229.js +2 -0
- package/dist/static/js/{client.83082cde.js.LICENSE.txt → client.f70bf229.js.LICENSE.txt} +191 -113
- package/dist/static/js/components.449e2c3f.js +1 -0
- package/dist/static/js/lib-lodash.104ea357.js +1 -0
- package/dist/static/js/lib-polyfill.f1a659c9.js +2 -0
- package/dist/static/js/{lib-polyfill.65ea0a24.js.LICENSE.txt → lib-polyfill.f1a659c9.js.LICENSE.txt} +2350 -2350
- package/dist/static/js/lib-react.38c297f4.js +2 -0
- package/dist/static/js/{lib-react.5131ac93.js.LICENSE.txt → lib-react.38c297f4.js.LICENSE.txt} +16 -16
- package/dist/static/js/lib-router.651a118d.js +2 -0
- package/dist/static/js/{lib-router.ad2f384b.js.LICENSE.txt → lib-router.651a118d.js.LICENSE.txt} +14 -12
- package/dist/static/js/mount.510535ae.js +2 -0
- package/dist/static/js/{mount.b89b187f.js.LICENSE.txt → mount.510535ae.js.LICENSE.txt} +48 -40
- package/package.json +14 -13
- package/dist/static/css/971.c51346c6.css +0 -1
- package/dist/static/css/async/199.3d9e4afb.css +0 -1
- package/dist/static/css/async/client_context/builder/page.3d9e4afb.css +0 -1
- package/dist/static/css/async/client_context/framework/page.3d9e4afb.css +0 -1
- package/dist/static/css/async/client_headers/editor/page.1b30ff56.css +0 -1
- package/dist/static/css/async/client_overview/page.d48aa01a.css +0 -1
- package/dist/static/css/async/client_pages/page.0e57d947.css +0 -1
- package/dist/static/css/client.30616823.css +0 -1
- package/dist/static/css/mount.6e2e9a58.css +0 -1
- package/dist/static/js/535.6ec7133e.js +0 -2
- package/dist/static/js/535.6ec7133e.js.LICENSE.txt +0 -168
- package/dist/static/js/544.a062c5bf.js +0 -6
- package/dist/static/js/821.746e4296.js +0 -12
- package/dist/static/js/971.dfaf371b.js +0 -2
- package/dist/static/js/async/199.632ea604.js +0 -2
- package/dist/static/js/async/851.f1680ec1.js +0 -107
- package/dist/static/js/async/client_config/page.af0017fb.js +0 -1
- package/dist/static/js/async/client_context/builder/page.4a147316.js +0 -2
- package/dist/static/js/async/client_context/framework/page.0e7a358d.js +0 -2
- package/dist/static/js/async/client_context/page.227fc159.js +0 -1
- package/dist/static/js/async/client_headers/editor/page.8a90ebab.js +0 -2
- package/dist/static/js/async/client_headers/layout.a02ba20e.js +0 -2
- package/dist/static/js/async/client_headers/page.83f30498.js +0 -2
- package/dist/static/js/async/client_headers/page.83f30498.js.LICENSE.txt +0 -11
- package/dist/static/js/async/client_headers/welcome/page.bb592578.js +0 -2
- package/dist/static/js/async/client_overview/page.e2907cdb.js +0 -2
- package/dist/static/js/async/client_page.f1d2eb8e.js +0 -1
- package/dist/static/js/async/client_pages/layout.02f7cf3a.js +0 -2
- package/dist/static/js/async/client_pages/page.cbbcc027.js +0 -2
- package/dist/static/js/async/client_react/(tab)/layout.3becf66e.js +0 -2
- package/dist/static/js/async/client_react/(tab)/page.3990630b.js +0 -2
- package/dist/static/js/async/client_react/offscreen/page.0074d754.js +0 -2
- package/dist/static/js/async/client_react/offscreen/page.0074d754.js.LICENSE.txt +0 -5
- package/dist/static/js/async/client_react/page.be45dcc6.js +0 -1
- package/dist/static/js/builder-runtime.985eaf68.js +0 -1
- package/dist/static/js/client.83082cde.js +0 -2
- package/dist/static/js/lib-lodash.423c7620.js +0 -1
- package/dist/static/js/lib-polyfill.65ea0a24.js +0 -2
- package/dist/static/js/lib-react.5131ac93.js +0 -2
- package/dist/static/js/lib-router.ad2f384b.js +0 -2
- package/dist/static/js/mount.b89b187f.js +0 -2
- package/exports/.eslintrc.js +0 -13
- package/exports/mount.mjs +0 -40
- /package/dist/static/css/{544.b0b76183.css → 28.1aa2771e.css} +0 -0
- /package/dist/static/css/async/client_headers/{layout.26c871c9.css → layout.6a59fdd7.css} +0 -0
- /package/dist/static/css/async/client_pages/{layout.7beb3bbd.css → layout.20ccbdd7.css} +0 -0
- /package/dist/static/js/async/client_config/{layout.166501ba.js.LICENSE.txt → layout.74621de5.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_context/{layout.7142f660.js.LICENSE.txt → layout.5323e5cd.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{client_pages/layout.02f7cf3a.js.LICENSE.txt → client_headers/layout.1c0290a9.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_headers/welcome/{page.bb592578.js.LICENSE.txt → page.8e092837.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_react/(tab)/{layout.3becf66e.js.LICENSE.txt → layout.b9d4424b.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see lib-router.ad2f384b.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["118"],{75078:function(e,t,n){"use strict";var r,o,a,i;function l(){return(l=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 _},UNSAFE_convertRouteMatchToUiMatch:function(){return E},UNSAFE_getPathContributingMatches:function(){return U},UNSAFE_invariant:function(){return d},createBrowserHistory:function(){return u},createHashHistory:function(){return c},createPath:function(){return m},createRouter:function(){return Y},isRouteErrorResponse:function(){return T},joinPaths:function(){return L},matchPath:function(){return S},matchRoutes:function(){return b},parsePath:function(){return v},redirect:function(){return N},resolveTo:function(){return C},stripBasename:function(){return P}}),(a=r||(r={})).Pop="POP",a.Push="PUSH",a.Replace="REPLACE";let s="popstate";function u(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{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:m(t)},null,e)}function c(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=v(e.location.hash.substr(1));return!n.startsWith("/")&&!n.startsWith(".")&&(n="/"+n),p("",{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:m(t))},function(e,t){h("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function d(e,t){if(!1===e||null==e)throw Error(t)}function h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function m(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 v(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 g(e,t,n,o){void 0===o&&(o={});let{window:a=document.defaultView,v5Compat:i=!1}=o,u=a.history,c=r.Pop,h=null,v=g();function g(){return(u.state||{idx:null}).idx}function y(){c=r.Pop;let e=g(),t=null==e?null:e-v;v=e,h&&h({action:c,location:b.location,delta:t})}null==v&&(v=0,u.replaceState(l({},u.state,{idx:v}),""));function w(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:m(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}let b={get action(){return c},get location(){return e(a,u)},listen(e){if(h)throw Error("A history only accepts one active listener");return a.addEventListener(s,y),h=e,()=>{a.removeEventListener(s,y),h=null}},createHref:e=>t(a,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=r.Push;let o=p(b.location,e,t);n&&n(o,e);let l=f(o,v=g()+1),s=b.createHref(o);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(s)}i&&h&&h({action:c,location:b.location,delta:1})},replace:function(e,t){c=r.Replace;let o=p(b.location,e,t);n&&n(o,e);let a=f(o,v=g()),l=b.createHref(o);u.replaceState(a,"",l),i&&h&&h({action:c,location:b.location,delta:0})},go:e=>u.go(e)};return b}(i=o||(o={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let y=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((e,o)=>{let a=[...n,o],i="string"==typeof e.id?e.id:a.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!r[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let n=l({},e,t(e),{id:i});return r[i]=n,n}{let n=l({},e,t(e),{id:i,children:void 0});return r[i]=n,e.children&&(n.children=w(e.children,t,a,r)),n}})}function b(e,t,n){void 0===n&&(n="/");let r=P(("string"==typeof t?v(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("/")&&(d(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=L([o,l.relativePath]),u=r.concat(l);t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),e(t.children,n,u,s)),(null!=t.path||t.index)&&n.push({path:s,score:function(e,t){let n=e.split("/"),r=n.length;return n.some(x)&&(r+=-2),t&&(r+=2),n.filter(e=>!x(e)).reduce((e,t)=>e+(R.test(t)?3:""===t?1:10),r)}(s,t.index),routesMeta:u})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&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=S({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:L([o,u.pathname]),pathnameBase:A(L([o,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(o=L([o,u.pathnameBase]))}return a}(o[e],function(e){try{return decodeURI(e)}catch(t){return h(!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 E(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 R=/^:\w+$/,x=e=>"*"===e;function S(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),h("*"===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 h(!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 P(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 D(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 U(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function C(e,t,n,r){let o,a;void 0===r&&(r=!1),"string"==typeof e?o=v(e):(d(!(o=l({},e)).pathname||!o.pathname.includes("?"),D("?","pathname","search",o)),d(!o.pathname||!o.pathname.includes("#"),D("#","pathname","hash",o)),d(!o.search||!o.search.includes("#"),D("#","search","hash",o)));let i=""===e||""===o.pathname,s=i?"/":o.pathname;if(r||null==s)a=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("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?v(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:M(r),hash:k(o)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),h=(i||"."===s)&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||h)&&(u.pathname+="/"),u}let L=e=>e.join("/").replace(/\/\/+/g,"/"),A=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);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,l({},n,{headers:r}))};class _{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 T(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let F=["post","put","patch","delete"],j=new Set(F),O=["get",...F],B=new Set(O),z=new Set([301,302,303,307,308]),I=new Set([307,308]),H={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},W={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),V="remix-router-transitions";function Y(e){let t,n,a,i;let s=e.window?e.window:"undefined"!=typeof window?window:void 0,u=void 0!==s&&void 0!==s.document&&void 0!==s.document.createElement,c=!u;if(d(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=J;let f={},m=w(e.routes,t,void 0,f),v=e.basename||"/",g=l({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),y=null,R=new Set,x=null,S=null,D=null,U=null!=e.hydrationData,C=b(m,e.history.location,v),L=null;if(null==C){let t=eu(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=es(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:H,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,B=[],z=[],Y=new Map,Q=0,Z=-1,ee=new Map,er=new Set,eo=new Map,ed=new Map,ey=new Map,eS=!1;function eP(e,t){M=l({},M,e),R.forEach(e=>e(M,{unstable_viewTransitionOpts:t}))}function eD(t,o){var a,i;let s,u;let c=null!=M.actionData&&null!=M.navigation.formMethod&&em(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(a=t.state)?void 0:a._isRedirect)!==!0;s=o.actionData?Object.keys(o.actionData).length>0?o.actionData:null:c?M.actionData:null;let d=o.loaderData?ei(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,$));let f=!0===N||null!=M.navigation.formMethod&&em(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._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(l({},o,{actionData:s,loaderData:d,historyAction:k,location:t,initialized:!0,navigation:H,revalidation:"idle",restoreScrollPosition:eY(t,o.matches||M.matches),preventScrollReset:f,blockers:h}),u),k=r.Pop,N=!1,_=!1,j=!1,O=!1,B=[],z=[]}async function eU(t,n){if("number"==typeof t){e.history.go(t);return}let o=K(M.location,M.matches,v,g.v7_prependBasename,t,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:a,submission:i,error:s}=X(g.v7_normalizeFormMethod,!1,o,n),u=M.location,c=p(M.location,a,n&&n.state);c=l({},c,e.history.encodeLocation(c));let d=n&&null!=n.replace?n.replace:void 0,h=r.Push;!0===d?h=r.Replace:!1===d||null!=i&&em(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=r.Replace);let f=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,m=eq({currentLocation:u,nextLocation:c,historyAction:h});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,$),eP({blockers:e})}});return}return await eC(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.unstable_viewTransition})}async function eC(t,r,o){let a,s;i&&i.abort(),i=null,k=t,j=!0===(o&&o.startUninterruptedRevalidation),function(e,t){x&&D&&(x[eV(e,t)]=D())}(M.location,M.matches),N=!0===(o&&o.preventScrollReset),_=!0===(o&&o.enableViewTransition);let u=n||m,c=o&&o.overrideNavigation,d=b(u,r,v);if(!d){let e=eu(404,{pathname:r.pathname}),{matches:t,route:n}=es(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&&em(o.submission.formMethod))){eD(r,{matches:d});return}i=new AbortController;let h=en(e.history,r,i.signal,o&&o.submission);if(o&&o.pendingError)s={[el(d).route.id]:o.pendingError};else if(o&&o.submission&&em(o.submission.formMethod)){let e=await eL(h,r,o.submission,d,{replace:o.replace});if(e.shortCircuited)return;a=e.pendingActionData,s=e.pendingActionError,c=eE(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,a,s);!f&&(i=null,eD(r,l({matches:d},a?{actionData:a}:{},{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=ew(i,n);if(u.route.action||u.route.lazy){if(s=await et("action",e,u,i,f,t,v),e.signal.aborted)return{shortCircuited:!0}}else s={type:o.error,error:eu(405,{method:e.method,pathname:n.pathname,routeId:u.route.id})};if(ep(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(ef(s)){let e=el(i,u.route.id);return!0!==(l&&l.replace)&&(k=r.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(eh(s))throw eu(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:s.data}}}async function eA(t,r,o,a,s,u,c,d,h){let f=a||eE(r,s),p=s||u||eb(f),g=n||m,[y,w]=G(e.history,M,o,p,r,O,B,z,eo,er,g,v,d,h);if(eJ(e=>!(o&&o.some(t=>t.route.id===e))||y&&y.some(t=>t.route.id===e)),Z=++Q,0===y.length&&0===w.length){let e=eI();return eD(r,l({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=eR(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)});let e=d||M.actionData;eP(l({navigation:f},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},w.length>0?{fetchers:new Map(M.fetchers)}:{}))}w.forEach(e=>{Y.has(e.key)&&eB(e.key),e.controller&&Y.set(e.key,e.controller)});let b=()=>w.forEach(e=>eB(e.key));i&&i.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};i&&i.signal.removeEventListener("abort",b),w.forEach(e=>Y.delete(e.key));let S=ec(E);if(S){if(S.idx>=y.length){let e=w[S.idx-y.length].key;er.add(e)}return await e_(M,S.result,{replace:c}),{shortCircuited:!0}}let{loaderData:P,errors:D}=ea(M,o,y,R,h,w,x,ed);ed.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&ed.delete(t)})});let U=eI(),C=eH(Z),L=U||C||w.length>0;return l({loaderData:P,errors:D},L?{fetchers:new Map(M.fetchers)}:{})}function eM(e){return M.fetchers.get(e)||W}async function ek(r,o,a,s,u,c){if(eF(),eo.delete(r),!s.route.action&&!s.route.lazy){let e=eu(405,{method:c.formMethod,pathname:a,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}}(c,M.fetchers.get(r));M.fetchers.set(r,h),eP({fetchers:new Map(M.fetchers)});let p=new AbortController,g=en(e.history,a,p.signal,c);Y.set(r,p);let y=Q,w=await et("action",g,s,u,f,t,v);if(g.signal.aborted){Y.get(r)===p&&Y.delete(r);return}if(ep(w)){if(Y.delete(r),Z>y){let e=ex(void 0);M.fetchers.set(r,e),eP({fetchers:new Map(M.fetchers)});return}{er.add(r);let e=eR(c);return M.fetchers.set(r,e),eP({fetchers:new Map(M.fetchers)}),e_(M,w,{fetcherSubmission:c})}}if(ef(w)){ej(r,o,w.error);return}if(eh(w))throw eu(400,{type:"defer-action"});let E=M.navigation.location||M.location,R=en(e.history,E,p.signal),x=n||m,S="idle"!==M.navigation.state?b(x,M.navigation.location,v):M.matches;d(S,"Didn't find any matches after fetcher action");let P=++Q;ee.set(r,P);let D=eR(c,w.data);M.fetchers.set(r,D);let[U,C]=G(e.history,M,S,c,E,O,B,z,eo,er,x,v,{[s.route.id]:w.data},void 0);C.filter(e=>e.key!==r).forEach(e=>{let t=e.key,n=M.fetchers.get(t),r=eR(void 0,n?n.data:void 0);M.fetchers.set(t,r),Y.has(t)&&eB(t),e.controller&&Y.set(t,e.controller)}),eP({fetchers:new Map(M.fetchers)});let L=()=>C.forEach(e=>eB(e.key));p.signal.addEventListener("abort",L);let{results:A,loaderResults:N,fetcherResults:_}=await eT(M.matches,S,U,C,R);if(p.signal.aborted)return;p.signal.removeEventListener("abort",L),ee.delete(r),Y.delete(r),C.forEach(e=>Y.delete(e.key));let T=ec(A);if(T){if(T.idx>=U.length){let e=C[T.idx-U.length].key;er.add(e)}return e_(M,T.result)}let{loaderData:F,errors:j}=ea(M,M.matches,U,N,void 0,C,_,ed);if(M.fetchers.has(r)){let e=ex(w.data);M.fetchers.set(r,e)}let I=eH(P);"loading"===M.navigation.state&&P>Z?(d(k,"Expected pending action"),i&&i.abort(),eD(M.navigation.location,{matches:S,loaderData:F,errors:j,fetchers:new Map(M.fetchers)})):(eP(l({errors:j,loaderData:ei(M.loaderData,F,S,j)},I||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),u=eR(l,s?s.data:void 0);M.fetchers.set(n,u),eP({fetchers:new Map(M.fetchers)});let c=new AbortController,h=en(e.history,o,c.signal);Y.set(n,c);let p=Q,m=await et("loader",h,a,i,f,t,v);if(eh(m)&&(m=await eg(m,h.signal,!0)||m),Y.get(n)===c&&Y.delete(n),h.signal.aborted)return;if(ep(m)){if(Z>p){let e=ex(void 0);M.fetchers.set(n,e),eP({fetchers:new Map(M.fetchers)});return}er.add(n),await e_(M,m);return}if(ef(m)){let e=el(M.matches,r);M.fetchers.delete(n),eP({fetchers:new Map(M.fetchers),errors:{[e.route.id]:m.error}});return}d(!eh(m),"Unhandled fetcher deferred data");let g=ex(m.data);M.fetchers.set(n,g),eP({fetchers:new Map(M.fetchers)})}async function e_(t,n,o){let{submission:a,fetcherSubmission:c,replace:h}=void 0===o?{}:o;n.revalidate&&(O=!0);let f=p(t.location,n.location,{_isRedirect:!0});if(d(f,"Expected a location on the redirect navigation"),u){let t=!1;if(n.reloadDocument)t=!0;else if(q.test(n.location)){let r=e.history.createURL(n.location);t=r.origin!==s.location.origin||null==P(r.pathname,v)}if(t){h?s.location.replace(n.location):s.location.assign(n.location);return}}i=null;let m=!0===h?r.Replace:r.Push,{formMethod:g,formAction:y,formEncType:w}=t.navigation;!a&&!c&&g&&y&&w&&(a=eb(t.navigation));let b=a||c;if(I.has(n.status)&&b&&em(b.formMethod))await eC(m,f,{submission:l({},b,{formAction:n.location}),preventScrollReset:N});else{let e=eE(f,a);await eC(m,f,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:N})}}async function eT(n,r,a,i,l){let s=await Promise.all([...a.map(e=>et("loader",l,e,r,f,t,v)),...i.map(n=>n.matches&&n.match&&n.controller?et("loader",en(e.history,n.path,n.controller.signal),n.match,n.matches,f,t,v):{type:o.error,error:eu(404,{pathname:n.path})})]),u=s.slice(0,a.length),c=s.slice(a.length);return await Promise.all([ev(n,a,u,u.map(()=>l.signal),!1,M.loaderData),ev(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,B.push(...eJ()),eo.forEach((e,t)=>{Y.has(t)&&(z.push(t),eB(t))})}function ej(e,t,n){let r=el(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);Y.has(e)&&!(t&&"loading"===t.state&&ee.has(e))&&eB(e),eo.delete(e),ee.delete(e),er.delete(e),M.fetchers.delete(e)}function eB(e){let t=Y.get(e);d(t,"Expected fetch controller: "+e),t.abort(),Y.delete(e)}function ez(e){for(let t of e){let e=ex(eM(t).data);M.fetchers.set(t,e)}}function eI(){let e=[],t=!1;for(let n of er){let r=M.fetchers.get(n);d(r,"Expected fetcher: "+n),"loading"===r.state&&(er.delete(n),e.push(n),t=!0)}return ez(e),t}function eH(e){let t=[];for(let[n,r]of ee)if(r<e){let e=M.fetchers.get(n);d(e,"Expected fetcher: "+n),"loading"===e.state&&(eB(n),ee.delete(n),t.push(n))}return ez(t),t.length>0}function eW(e){M.blockers.delete(e),ey.delete(e)}function e$(e,t){let n=M.blockers.get(e)||$;d("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===ey.size)return;ey.size>1&&h(!1,"A router only supports one blocker at a time");let o=Array.from(ey.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 ed.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),ed.delete(r))}),t}function eV(e,t){return S&&S(e,t.map(e=>E(e,M.loaderData)))||e.key}function eY(e,t){if(x){let n=x[eV(e,t)];if("number"==typeof n)return n}return null}return a={get basename(){return v},get state(){return M},get routes(){return m},get window(){return s},initialize:function(){if(y=e.history.listen(t=>{let{action:n,location:r,delta:o}=t;if(eS){eS=!1;return}h(0===ey.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,$),eP({blockers:e})}});return}return eC(n,r)}),u){(function(e,t){try{let n=e.sessionStorage.getItem(V);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(V,JSON.stringify(n))}catch(e){h(!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),a},subscribe:function(e){return R.add(e),()=>R.delete(e)},enableScrollRestoration:function(e,t,n){if(x=e,D=t,S=n||null,!U&&M.navigation===H){U=!0;let e=eY(M.location,M.matches);null!=e&&eP({restoreScrollPosition:e})}return()=>{x=null,D=null,S=null}},navigate:eU,fetch:function(e,t,r,o){if(c)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.");Y.has(e)&&eB(e);let a=n||m,i=K(M.location,M.matches,v,g.v7_prependBasename,r,t,null==o?void 0:o.relative),l=b(a,i,v);if(!l){ej(e,t,eu(404,{pathname:i}));return}let{path:s,submission:u,error:d}=X(g.v7_normalizeFormMethod,!0,i,o);if(d){ej(e,t,d);return}let h=ew(l,s);if(N=!0===(o&&o.preventScrollReset),u&&em(u.formMethod)){ek(e,t,s,h,l,u);return}eo.set(e,{routeId:t,path:s}),eN(e,t,s,h,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(){y&&y(),F&&F(),R.clear(),i&&i.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)||$;return ey.get(e)!==t&&ey.set(e,t),n},deleteBlocker:eW,_internalFetchControllers:Y,_internalActiveDeferreds:ed,_internalSetRoutes:function(e){n=w(e,t,void 0,f={})}}}Symbol("deferred");function K(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=C(o||".",U(l).map(e=>e.pathnameBase),P(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&&!ey(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(u.pathname="/"===u.pathname?n:L([n,u.pathname])),m(u)}function X(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 B.has(e.toLowerCase())}(r.formMethod))return{path:n,error:eu(405,{method:r.formMethod})};let l=()=>({path:n,error:eu(400,{type:"invalid-body"})}),s=r.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=ed(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!em(u))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:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!em(u))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=er(r.formData),i=r.formData;else if(r.body instanceof FormData)a=er(r.body),i=r.body;else if(r.body instanceof URLSearchParams)i=eo(a=r.body);else if(null==r.body)a=new URLSearchParams,i=new FormData;else try{a=new URLSearchParams(r.body),i=eo(a)}catch(e){return l()}let h={formMethod:u,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(em(h.formMethod))return{path:n,submission:h};let f=v(n);return t&&f.search&&ey(f.search)&&a.append("index",""),f.search="?"+a,{path:m(f),submission:h}}function G(e,t,n,r,o,a,i,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),y=(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)||i.some(t=>t===e.route.id))return!0;let o=t.matches[n];return Z(e,l({currentUrl:v,currentParams:o.params,nextUrl:g,nextParams:e.params},r,{actionResult:m,defaultShouldRevalidate:a||v.pathname+v.search===g.pathname+g.search||v.search!==g.search||Q(o,e)}))}),w=[];return u.forEach((e,o)=>{if(!n.some(t=>t.route.id===e.routeId))return;let i=b(d,e.path,h);if(!i){w.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let u=t.fetchers.get(o),f=ew(i,e.path),p=!1;(p=!c.has(o)&&(!!s.includes(o)||(u&&"idle"!==u.state&&void 0===u.data?a:Z(f,l({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:m,defaultShouldRevalidate:a})))))&&w.push({key:o,routeId:e.routeId,path:e.path,matches:i,match:f,controller:new AbortController})}),[y,w]}function Q(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Z(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function ee(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];d(o,"No route found in manifest");let a={};for(let e in r){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;h(!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&&!y.has(e)&&(a[e]=r[e])}Object.assign(o,a),Object.assign(o,l({},t(o),{lazy:void 0}))}async function et(e,t,n,r,a,i,l,s){let u,c,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}),ee(n.route,i,a)]);if(e)throw e;c=t[0]}else if(await ee(n.route,i,a),r=n.route[e])c=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 eu(405,{method:t.method,pathname:a,routeId:n.route.id})}}else if(r)c=await f(r);else{let e=new URL(t.url),n=e.pathname+e.search;throw eu(404,{pathname:n})}d(void 0!==c,"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){u=o.error,c=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}(c)){let e,a=c.status;if(z.has(a)){let e=c.headers.get("Location");if(d(e,"Redirects returned/thrown from loaders/actions must have a Location header"),q.test(e)){if(!s.isStaticRequest){let n=new URL(t.url),r=new URL(e.startsWith("//")?n.protocol+e:e),o=null!=P(r.pathname,l);r.origin===n.origin&&o&&(e=r.pathname+r.search+r.hash)}}else e=K(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,e);if(s.isStaticRequest)throw c.headers.set("Location",e),c;return{type:o.redirect,status:a,location:e,revalidate:null!==c.headers.get("X-Remix-Revalidate"),reloadDocument:null!==c.headers.get("X-Remix-Reload-Document")}}if(s.isRouteRequest)throw{type:u===o.error?o.error:o.data,response:c};let i=c.headers.get("Content-Type");return(e=i&&/\bapplication\/json\b/.test(i)?await c.json():await c.text(),u===o.error)?{type:u,error:new _(a,c.statusText,e),headers:c.headers}:{type:o.data,data:e,statusCode:c.status,headers:c.headers}}if(u===o.error)return{type:u,error:c};if(function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(c)){var p,m;return{type:o.deferred,deferredData:c,statusCode:null==(p=c.init)?void 0:p.status,headers:(null==(m=c.init)?void 0:m.headers)&&new Headers(c.init.headers)}}return{type:o.data,data:c}}function en(e,t,n,r){let o=e.createURL(ed(t)).toString(),a={signal:n};if(r&&em(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=er(r.formData):a.body=r.formData}return new Request(o,a)}function er(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function eo(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ea(e,t,n,r,o,a,i,s){var u,c,h,f,p;let m,v,g,y,w;let{loaderData:b,errors:E}=(u=t,c=n,h=r,f=o,p=s,v={},g=null,y=!1,w={},h.forEach((e,t)=>{let n=c[t].route.id;if(d(!ep(e),"Cannot handle redirect results in processLoaderData"),ef(e)){let t=el(u,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=T(e.error)?e.error.status:500),e.headers&&(w[n]=e.headers)}else eh(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<a.length;t++){let{key:n,match:r,controller:o}=a[t];d(void 0!==i&&void 0!==i[t],"Did not find corresponding fetcher result");let s=i[t];if(!o||!o.signal.aborted)if(ef(s)){let t=el(e.matches,null==r?void 0:r.route.id);!(E&&E[t.route.id])&&(E=l({},E,{[t.route.id]:s.error})),e.fetchers.delete(n)}else if(ep(s))d(!1,"Unhandled fetcher revalidation redirect");else if(eh(s))d(!1,"Unhandled fetcher deferred data");else{let t=ex(s.data);e.fetchers.set(n,t)}}return{loaderData:b,errors:E}}function ei(e,t,n,r){let o=l({},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 el(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 es(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 eu(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 _(e||500,i,Error(l),!0)}function ec(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ep(n))return{result:n,idx:t}}}function ed(e){let t="string"==typeof e?v(e):e;return m(l({},t,{hash:""}))}function eh(e){return e.type===o.deferred}function ef(e){return e.type===o.error}function ep(e){return(e&&e.type)===o.redirect}function em(e){return j.has(e.toLowerCase())}async function ev(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 u=e.find(e=>e.route.id===s.route.id),c=null!=u&&!Q(u,s)&&(a&&a[s.route.id])!==void 0;if(eh(l)&&(o||c)){let e=r[i];d(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await eg(l,e,o).then(e=>{e&&(n[i]=e||n[i])})}}}async function eg(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 ey(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function ew(e,t){let n="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&ey(n||""))return e[e.length-1];let r=U(e);return r[r.length-1]}function eb(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 eE(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 eR(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 ex(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},3369:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return A},NavLink:function(){return M},Outlet:function(){return s.Outlet},Route:function(){return s.Route},RouterProvider:function(){return D},createBrowserRouter:function(){return b},createHashRouter:function(){return E},createRoutesFromElements:function(){return s.createRoutesFromElements},matchPath:function(){return s.matchPath},matchRoutes:function(){return s.matchRoutes},redirect:function(){return s.redirect},useHref:function(){return s.useHref},useLocation:function(){return s.useLocation},useMatches:function(){return s.useMatches},useNavigate:function(){return s.useNavigate},useParams:function(){return s.useParams},useResolvedPath:function(){return s.useResolvedPath}});var r,o,a,i,l=n("5872"),s=n("62137"),u=n("75078");function c(){return(c=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 d(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 h="application/x-www-form-urlencoded";function f(e){return null!=e&&"string"==typeof e.tagName}let p=null,m=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function v(e){return null==e||m.has(e)?e:null}let g=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],y=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],w=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset","unstable_viewTransition"];function b(e,t){return(0,u.createRouter)({basename:null==t?void 0:t.basename,future:c({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,u.createBrowserHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||R(),routes:e,mapRouteProperties:s.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function E(e,t){return(0,u.createRouter)({basename:null==t?void 0:t.basename,future:c({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,u.createHashHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||R(),routes:e,mapRouteProperties:s.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function R(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=c({},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 u.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 x=l.createContext({isTransitioning:!1}),S=l.startTransition;class P{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 D(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=l.useState(n.state),[i,u]=l.useState(),[c,d]=l.useState({isTransitioning:!1}),[h,f]=l.useState(),[p,m]=l.useState(),[v,g]=l.useState(),{v7_startTransition:y}=r||{},w=l.useCallback(e=>{if(y){var t;t=e,S?S(t):t()}else e()},[y]),b=l.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(()=>a(e))},[w,p,h,n.window]);l.useLayoutEffect(()=>n.subscribe(b),[n,b]),l.useEffect(()=>{c.isTransitioning&&f(new P)},[c.isTransitioning]),l.useEffect(()=>{if(h&&i&&n.window){let e=h.promise,t=n.window.document.startViewTransition(async()=>{w(()=>a(i)),await e});t.finished.finally(()=>{f(void 0),m(void 0),u(void 0),d({isTransitioning:!1})}),m(t)}},[w,i,h,n.window]),l.useEffect(()=>{h&&i&&o.location.key===i.location.key&&h.resolve()},[h,p,o.location,i]),l.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),d({isTransitioning:!0,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),g(void 0))},[c.isTransitioning,v]);let E=l.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]),R=n.basename||"/",D=l.useMemo(()=>({router:n,navigator:E,static:!1,basename:R}),[n,E,R]);return l.createElement(l.Fragment,null,l.createElement(s.UNSAFE_DataRouterContext.Provider,{value:D},l.createElement(s.UNSAFE_DataRouterStateContext.Provider,{value:o},l.createElement(x.Provider,{value:c},l.createElement(s.Router,{basename:R,location:o.location,navigationType:o.historyAction,navigator:E},o.initialized?l.createElement(U,{routes:n.routes,state:o}):t)))),null)}function U(e){let{routes:t,state:n}=e;return(0,s.UNSAFE_useRoutesImpl)(t,void 0,n)}let C="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,L=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,A=l.forwardRef(function(e,t){let n,{onClick:r,relative:o,reloadDocument:a,replace:i,state:h,target:f,to:p,preventScrollReset:m,unstable_viewTransition:v}=e,y=d(e,g),{basename:w}=l.useContext(s.UNSAFE_NavigationContext),b=!1;if("string"==typeof p&&L.test(p)&&(n=p,C))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),n=(0,u.stripBasename)(t.pathname,w);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:b=!0}catch(e){}let E=(0,s.useHref)(p,{relative:o}),R=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:u}=void 0===t?{}:t,c=(0,s.useNavigate)(),d=(0,s.useLocation)(),h=(0,s.useResolvedPath)(e,{relative:i});return l.useCallback(t=>{var l,f,p;if(l=t,f=n,0===l.button&&(!f||"_self"===f)&&!((p=l).metaKey||p.altKey||p.ctrlKey||p.shiftKey))t.preventDefault(),c(e,{replace:void 0!==r?r:(0,s.createPath)(d)===(0,s.createPath)(h),state:o,preventScrollReset:a,relative:i,unstable_viewTransition:u})},[d,c,h,r,o,n,e,a,i,u])}(p,{replace:i,state:h,target:f,preventScrollReset:m,relative:o,unstable_viewTransition:v});return l.createElement("a",c({},y,{href:n||E,onClick:b||a?r:function(e){r&&r(e),!e.defaultPrevented&&R(e)},ref:t,target:f}))}),M=l.forwardRef(function(e,t){let n,{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:h=!1,style:f,to:p,unstable_viewTransition:m,children:v}=e,g=d(e,y),w=(0,s.useResolvedPath)(p,{relative:g.relative}),b=(0,s.useLocation)(),E=l.useContext(s.UNSAFE_DataRouterStateContext),{navigator:R}=l.useContext(s.UNSAFE_NavigationContext),S=null!=E&&function(e,t){void 0===t&&(t={});let n=l.useContext(x);null!=n||(0,u.UNSAFE_invariant)(!1);let{basename:r}=N(a.useViewTransitionState),o=(0,s.useResolvedPath)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=(0,u.stripBasename)(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=(0,u.stripBasename)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,u.matchPath)(o.pathname,c)||null!=(0,u.matchPath)(o.pathname,i)}(w)&&!0===m,P=R.encodeLocation?R.encodeLocation(w).pathname:w.pathname,D=b.pathname,U=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;!o&&(D=D.toLowerCase(),U=U?U.toLowerCase():null,P=P.toLowerCase());let C=D===P||!h&&D.startsWith(P)&&"/"===D.charAt(P.length),L=null!=U&&(U===P||!h&&U.startsWith(P)&&"/"===U.charAt(P.length)),M={isActive:C,isPending:L,isTransitioning:S},k=C?r:void 0;n="function"==typeof i?i(M):[i,C?"active":null,L?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof f?f(M):f;return l.createElement(A,c({},g,{"aria-current":k,className:n,ref:t,style:_,to:p,unstable_viewTransition:m}),"function"==typeof v?v(M):v)}),k=l.forwardRef((e,t)=>{let{reloadDocument:n,replace:r,state:o,method:a="get",action:i,onSubmit:h,submit:f,relative:p,preventScrollReset:m,unstable_viewTransition:v}=e,g=d(e,w),y="get"===a.toLowerCase()?"get":"post",b=function(e,t){let{relative:n}=void 0===t?{}:t,{basename:r}=l.useContext(s.UNSAFE_NavigationContext),o=l.useContext(s.UNSAFE_RouteContext);o||(0,u.UNSAFE_invariant)(!1);let[a]=o.matches.slice(-1),i=c({},(0,s.useResolvedPath)(e||".",{relative:n})),d=(0,s.useLocation)();if(null==e&&(i.search=d.search,a.route.index)){let e=new URLSearchParams(i.search);e.delete("index"),i.search=e.toString()?"?"+e.toString():""}return(!e||"."===e)&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(i.pathname="/"===i.pathname?r:(0,u.joinPaths)([r,i.pathname])),(0,s.createPath)(i)}(i,{relative:p});return l.createElement("form",c({ref:t,method:y,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"))||a;f(t||e.currentTarget,{method:n,replace:r,state:o,relative:p,preventScrollReset:m,unstable_viewTransition:v})}},g))});function N(e){let t=l.useContext(s.UNSAFE_DataRouterContext);return t||(0,u.UNSAFE_invariant)(!1),t}(r=a||(a={})).UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState",(o=i||(i={})).UseFetchers="useFetchers",o.UseScrollRestoration="useScrollRestoration"},62137:function(e,t,n){"use strict";n.r(t),n.d(t,{Outlet:function(){return N},Route:function(){return _},Router:function(){return T},UNSAFE_DataRouterContext:function(){return u},UNSAFE_DataRouterStateContext:function(){return c},UNSAFE_NavigationContext:function(){return d},UNSAFE_RouteContext:function(){return f},UNSAFE_mapRouteProperties:function(){return j},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!==_&&(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}});var r,o,a,i=n("5872"),l=n("75078");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||(null==(y=e.pathname)?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(null==(o=n)||!o.errors)return null;e=n.matches}let a=e,s=null==(r=n)?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=function(){var e;let t=i.useContext(p),n=L(C.UseRouteError),r=A(C.UseRouteError);return t?t:null==(e=n.errors)?void 0:e[r]}(),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(e){var t;let n;return t=e.context,(n=i.useContext(f).outlet)?i.createElement(b.Provider,{value:t},n):n}function _(e){(0,l.UNSAFE_invariant)(!1)}function T(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 F=((a=F||{})[a.pending=0]="pending",a[a.success=1]="success",a[a.error=2]="error",a);new Promise(()=>{});function j(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.b89b187f.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{18829:function(e,t,n){"use strict";n.r(t),n.d(t,{ReactComponent:function(){return i}});var o=n("90247"),a=n("55709"),r=n("86834");n("5872");let i=e=>(0,r.jsx)("svg",(0,a._)((0,o._)({xmlns:"http://www.w3.org/2000/svg",width:455.127,height:76.954,viewBox:"0 0 455.127 76.954"},e),{children:(0,r.jsx)("g",{fill:"currentColor",fillRule:"evenodd",strokeLinecap:"round",fontSize:12,children:(0,r.jsx)("path",{d:"M23.096 75.977H0V4.59h24.707a55.919 55.919 0 0 1 8.783.653q4.823.767 8.844 2.438a32.184 32.184 0 0 1 1.904.864q8.008 3.955 12.183 11.572a32.438 32.438 0 0 1 3.257 9.058q.803 3.869.903 8.313a56.775 56.775 0 0 1 .015 1.282 55.441 55.441 0 0 1-.653 8.747q-1.087 6.798-3.986 11.956-4.639 8.252-13.061 12.378-8.423 4.126-19.8 4.126Zm1.806-55.811h-5.615v39.99h4.297a23.978 23.978 0 0 0 4.805-.449q5.202-1.066 8.086-4.653a15.925 15.925 0 0 0 2.578-4.81q1.523-4.394 1.523-10.791a40.21 40.21 0 0 0-.234-4.469q-.402-3.594-1.499-6.297a14.688 14.688 0 0 0-2.006-3.534 11.922 11.922 0 0 0-3.194-2.863 13.658 13.658 0 0 0-4.056-1.626q-1.731-.405-3.742-.48a24.996 24.996 0 0 0-.943-.018ZM123.291 44.971v8.496H89.16a10.988 10.988 0 0 0 .884 3.843 9.877 9.877 0 0 0 2.363 3.286q3.003 2.783 8.863 2.783 5.175 0 9.497-1.025a42.981 42.981 0 0 0 5.506-1.721 52.544 52.544 0 0 0 3.405-1.453V72.9q-4.004 2.1-8.74 3.077a41.172 41.172 0 0 1-3.859.59q-3.56.386-8.104.386a40.077 40.077 0 0 1-8.372-.84 32.226 32.226 0 0 1-6.57-2.138 22.906 22.906 0 0 1-10.376-9.229q-3.289-5.432-3.719-13.556a47.413 47.413 0 0 1-.065-2.508q0-9.961 3.418-16.382a22.599 22.599 0 0 1 5.501-6.864 21.455 21.455 0 0 1 4.069-2.658 28.536 28.536 0 0 1 8.473-2.664 37.588 37.588 0 0 1 5.834-.436q7.915 0 13.709 2.71a24.328 24.328 0 0 1 .207.097q5.859 2.808 9.033 8.423a23.114 23.114 0 0 1 2.381 6.323q.632 2.802.76 6.053a42.733 42.733 0 0 1 .033 1.687Zm-33.74-3.516h16.406a11.664 11.664 0 0 0-.404-2.879 10.108 10.108 0 0 0-.573-1.564q-.927-2.002-2.709-3.174a6.912 6.912 0 0 0-2.409-.977 9.817 9.817 0 0 0-2.01-.195 8.801 8.801 0 0 0-2.918.467 7.628 7.628 0 0 0-2.722 1.657 7.286 7.286 0 0 0-1.672 2.421q-.46 1.046-.723 2.346a16.942 16.942 0 0 0-.266 1.898ZM167.48 75.977h-18.896L127.49 20.654h19.922l9.375 32.715q.137.411.467 2.02a112.258 112.258 0 0 1 .046.226 19.061 19.061 0 0 1 .291 1.903 14.863 14.863 0 0 1 .075 1.466h.342a14.573 14.573 0 0 1 .252-2.745 13.298 13.298 0 0 1 .09-.428q.261-1.159.437-1.918a136.744 136.744 0 0 1 .1-.426l9.814-32.813h19.873L167.48 75.977ZM227.783 20.361v55.616h-19.287V20.361h-17.432V4.59h54.102v15.771h-17.383ZM306.662 54.35a43.23 43.23 0 0 0 .418-6.157q0-4.303-.778-7.983a26.737 26.737 0 0 0-2.762-7.544 23.91 23.91 0 0 0-9.741-9.668 27.016 27.016 0 0 0-6.2-2.383 32.596 32.596 0 0 0-7.96-.937 37.958 37.958 0 0 0-6.862.591 27.435 27.435 0 0 0-8.006 2.729 22.673 22.673 0 0 0-9.571 9.668 24.588 24.588 0 0 0-.648 1.325q-2.697 5.959-2.697 14.202a41.077 41.077 0 0 0 .388 5.768 30.674 30.674 0 0 0 1.639 6.537 28.789 28.789 0 0 0 .856 2.033 24.022 24.022 0 0 0 4.881 7 24.539 24.539 0 0 0 8.716 5.542 28.236 28.236 0 0 0 4.232 1.217 33.502 33.502 0 0 0 6.779.663 39.162 39.162 0 0 0 5.019-.31 30.239 30.239 0 0 0 6.553-1.57 26.901 26.901 0 0 0 .477-.18 23.287 23.287 0 0 0 8.263-5.362q3.613-3.662 5.518-9.033a32.011 32.011 0 0 0 1.486-6.148Zm-35.422-6.157q0 4.737.83 7.984t2.661 4.931a6.244 6.244 0 0 0 3.102 1.529 8.91 8.91 0 0 0 1.708.156 8.544 8.544 0 0 0 1.983-.218 5.857 5.857 0 0 0 2.753-1.467 7.765 7.765 0 0 0 1.439-1.922q.479-.883.831-1.974a15.643 15.643 0 0 0 .294-1.035 24.171 24.171 0 0 0 .491-2.645q.195-1.477.269-3.179a49.717 49.717 0 0 0 .045-2.16 46.12 46.12 0 0 0-.11-3.3q-.188-2.614-.695-4.61-.806-3.174-2.588-4.785a6.007 6.007 0 0 0-2.635-1.365q-.922-.229-2.009-.245a11.184 11.184 0 0 0-.166-.001 8.132 8.132 0 0 0-2.619.398q-2.256.764-3.532 2.992a8.551 8.551 0 0 0-.123.223 13.288 13.288 0 0 0-1.078 2.819q-.851 3.173-.851 7.874ZM370.382 54.35a43.23 43.23 0 0 0 .419-6.157q0-4.303-.778-7.983a26.737 26.737 0 0 0-2.762-7.544 23.91 23.91 0 0 0-9.741-9.668 27.016 27.016 0 0 0-6.2-2.383 32.596 32.596 0 0 0-7.961-.937 37.958 37.958 0 0 0-6.862.591 27.435 27.435 0 0 0-8.006 2.729 22.673 22.673 0 0 0-9.57 9.668 24.588 24.588 0 0 0-.648 1.325q-2.697 5.959-2.697 14.202a41.077 41.077 0 0 0 .388 5.768 30.674 30.674 0 0 0 1.639 6.537 28.789 28.789 0 0 0 .855 2.033 24.022 24.022 0 0 0 4.882 7 24.539 24.539 0 0 0 8.716 5.542 28.236 28.236 0 0 0 4.231 1.217 33.502 33.502 0 0 0 6.779.663 39.162 39.162 0 0 0 5.02-.31 30.239 30.239 0 0 0 6.553-1.57 26.901 26.901 0 0 0 .477-.18 23.287 23.287 0 0 0 8.263-5.362q3.613-3.662 5.517-9.033a32.011 32.011 0 0 0 1.486-6.148Zm-35.421-6.157q0 4.737.83 7.984t2.661 4.931a6.244 6.244 0 0 0 3.101 1.529 8.91 8.91 0 0 0 1.709.156 8.544 8.544 0 0 0 1.983-.218 5.857 5.857 0 0 0 2.753-1.467 7.765 7.765 0 0 0 1.439-1.922q.479-.883.831-1.974a15.643 15.643 0 0 0 .294-1.035 24.171 24.171 0 0 0 .49-2.645q.196-1.477.27-3.179a49.717 49.717 0 0 0 .045-2.16 46.12 46.12 0 0 0-.111-3.3q-.188-2.614-.694-4.61-.806-3.174-2.588-4.785a6.007 6.007 0 0 0-2.635-1.365q-.923-.229-2.01-.245a11.184 11.184 0 0 0-.165-.001 8.132 8.132 0 0 0-2.619.398q-2.256.764-3.532 2.992a8.551 8.551 0 0 0-.123.223 13.288 13.288 0 0 0-1.079 2.819q-.85 3.173-.85 7.874ZM400.781 0v75.977h-19.092V0h19.092ZM411.719 73.877V58.594a46.942 46.942 0 0 0 10.644 3.442q4.467.865 7.376 1.017a22.453 22.453 0 0 0 1.169.033 23.338 23.338 0 0 0 1.633-.053q1.997-.141 3.079-.655a3.273 3.273 0 0 0 .737-.469 2.089 2.089 0 0 0 .752-1.655q0-1.221-1.001-2.075a6.393 6.393 0 0 0-.664-.488q-.753-.489-1.94-1.053a34.704 34.704 0 0 0-.96-.437q-1.963-.86-5.142-2.177a655.312 655.312 0 0 0-2.06-.85q-4.59-1.904-7.642-4.151a15.29 15.29 0 0 1-3.214-3.151 13.596 13.596 0 0 1-1.351-2.22 14.224 14.224 0 0 1-1.111-3.359q-.321-1.566-.386-3.371a25.946 25.946 0 0 1-.017-.936 16.624 16.624 0 0 1 .773-5.204 13.104 13.104 0 0 1 5.477-7.003q5.212-3.42 13.244-3.988a46.937 46.937 0 0 1 3.309-.113 44.511 44.511 0 0 1 7.533.618 38.904 38.904 0 0 1 2.77.578 56.912 56.912 0 0 1 6.491 2.043 69.134 69.134 0 0 1 3.518 1.448l-5.224 12.305q-4.102-1.856-8.301-2.979-3.888-1.039-6.311-1.116a11.911 11.911 0 0 0-.379-.007q-2.246 0-3.466.586a2.789 2.789 0 0 0-.59.372 1.672 1.672 0 0 0-.631 1.337 2.288 2.288 0 0 0 .586 1.531 3.206 3.206 0 0 0 .268.276q.649.593 2.184 1.327a28.563 28.563 0 0 0 1.064.48q2.392 1.025 6.982 2.88a51.888 51.888 0 0 1 3.65 1.632q1.693.841 3.107 1.728a27.253 27.253 0 0 1 1.226.815 14.95 14.95 0 0 1 3.24 3.061 13.247 13.247 0 0 1 1.448 2.335 14.028 14.028 0 0 1 1.051 3.104q.487 2.206.487 4.952a20.16 20.16 0 0 1-.662 5.259 16.821 16.821 0 0 1-1.682 4.068 14.139 14.139 0 0 1-4.22 4.516 19.641 19.641 0 0 1-3.275 1.831 23.27 23.27 0 0 1-4.52 1.443q-2.2.479-4.782.689a52.548 52.548 0 0 1-4.248.163 94.534 94.534 0 0 1-5.265-.139q-2.829-.158-5.306-.496a42.222 42.222 0 0 1-7.658-1.805 48.282 48.282 0 0 1-1.79-.636Z",vectorEffect:"non-scaling-stroke"})})}))},91101:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsActionButton:function(){return p}});var o=n("90247"),a=n("55709"),r=n("86834"),i=n("83982"),l=n("5872"),s=n("20421"),c=n("55058"),u=n("15785"),d=n("36916"),v=n("57844"),h=n("18829"),f=n("21967");let p=e=>{let t=e.def.assets.logo,[n,p]=(0,s.useToggle)(!1),g=(0,c.withQuery)(e.endpoint,{src:e.dataSource}),m=(0,f.useStickyDraggable)({clamp:!0}),[q,_]=(0,l.useState)(()=>{var e;let t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});return(0,s.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&_(e.newValue||void 0)}),(0,s.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&p()}),(0,r.jsxs)(i.Theme,{appearance:q,className:q,children:[(0,r.jsx)(u.default,{when:n,keepAlive:!0,children:(0,r.jsx)("div",{className:d.container,children:(0,r.jsx)(v.FrameBox,{src:g,onClose:()=>p(!1),style:{pointerEvents:m.isDragging?"none":"auto"}})})}),(0,r.jsx)(i.Flex,{asChild:!0,py:"1",px:"2",align:"center",children:(0,r.jsxs)("button",(0,a._)((0,o._)({className:d.fab,onClick:()=>p()},m.props),{children:[(0,r.jsx)("img",{className:d.logo,src:t,alt:""}),(0,r.jsx)(h.ReactComponent,{className:d.heading})]}))})]})}},57844:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return f}});var o=n("90247"),a=n("55709"),r=n("16170"),i=n("86834"),l=n("5872"),s=n("83982"),c=n("20421"),u=n("29214"),d=n("19512"),v=n("11981"),h=n("78225");let f=e=>{var{src:t,onClose:n}=e,f=(0,r._)(e,["src","onClose"]);let[p,g]=(0,l.useState)(!1);return(0,c.useAsync)(async()=>{(await h.$client).hooks.hook("onFinishRender",async()=>g(!0))},[]),(0,i.jsxs)(s.Box,(0,a._)((0,o._)({className:v.container},f),{children:[(0,i.jsx)("iframe",{className:v.frame,src:t}),(0,i.jsx)(u.HiMiniXMark,{className:v.closeButton,onClick:n}),(0,i.jsx)("div",{className:v.backdrop,style:{display:p?"none":void 0},children:(0,i.jsx)(d.Loading,{})})]}))}},15785:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("86834"),a=n("5872"),r=e=>{var t;let n=null===(t=e.keepAlive)||void 0===t||t,{when:r}=e,i=(0,a.useRef)(!1);r&&(i.current=!0);let l=n?i.current:r;return l?(0,o.jsx)("div",{style:{display:!n||r?"unset":"none"},children:e.children}):null}},76942:function(e,t,n){"use strict";n.r(t);var o=n("90247"),a=n("86834");n("24547"),n("78225");var r=n("60182"),i=n("55058"),l=n("52493"),s=n.n(l),c=n("16298"),u=n("91101");let{container:d,resourceQuery:v}=window._modern_js_devtools_app;d.classList.add(c.container);let h=(0,r.createRoot)(d),f=(0,i.parseQuery)(v);if(!s().isString(f.dataSource)||!s().isString(f.def)||!s().isString(f.endpoint))throw TypeError("Failed to parse client definitions of devtools: ".concat(v));let p={dataSource:f.dataSource,endpoint:f.endpoint,def:JSON.parse(f.def)};h.render((0,a.jsx)(u.DevtoolsActionButton,(0,o._)({},p)))},24547: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)}},78225:function(e,t,n){"use strict";n.r(t),n.d(t,{$client:function(){return h}});var o=n("90247"),a=n("55709"),r=n("93549"),i=n("88739"),l=n("65872"),s=n("57662"),c=n("48463");let u=r.MessagePortChannel.wait(window,"channel:connect:client"),d=new c.WallAgent,v=(0,s.createBridge)(window,d),h=u.then(e=>{let t=(0,l.createHooks)();return{remote:(0,i.createBirpc)({async activateReactDevtools(){(0,s.activate)(window,{bridge:v})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,a._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}});h.then(e=>{let{remote:t}=e;d.bindRemote(t,"sendReactDevtoolsData")})},21967:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return s}});var o=n("5872"),a=n("20421");let r=(e,t)=>{var n,o;return null!==(o=null===(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===n?void 0:n.includes(t))&&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 r(t.key,n)}),[a]=n.splice(o,1);return[t,a,n[0],n[1]]},l=e=>{let{top:t,left:n,height:o,width:a}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-a}},s=e=>{var t;let n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",r="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(l(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{c(void 0),e.style[t.key]=r})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==s?void 0:s.moveable))return;let{startX:o,startY:a}=s;(o-n.clientX)**2+(a-n.clientY)**2>9&&(s.clickable=!1);let{width:l,height:c}=s.el.getBoundingClientRect(),u=n.clientY-s.offsetY,d=n.clientX-s.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-c,right:window.innerWidth-d-l}).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 v){let t=["top","bottom"].includes(e.key)?window.innerHeight-c:window.innerWidth-l;e.value="clamp(".concat(r,", ").concat(e.value,", ").concat(t,"px)")}let[h,f,...p]=v,{style:g}=s.el;g.transition="",g[h.key]=h.value,g[f.key]=f.value,g[p[0].key]="auto",g[p[1].key]="auto"};(0,a.useEvent)("blur",u),(0,a.useEvent)("mouseup",u),(0,a.useEvent)("touchend",u),(0,a.useEvent)("mousemove",d),(0,a.useEvent)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),a=t.clientX-o.left;c({el:n,clickable:!0,moveable:!0,offsetX:a,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!s,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==s?void 0:s.clickable)||e.stopPropagation()}}}}},48463:function(e,t,n){"use strict";n.r(t),n.d(t,{WallAgent:function(){return a}});var o=n("65872");class a extends o.Hookable{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];n.callHook("receive",...t)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];e[t](...o)}),this}}},36916:function(e){"use strict";e.exports={container:"container-_2b857",fab:"fab-_08a6e",heading:"heading-_1bbcd",logo:"logo-ed314b"}},11981:function(e){"use strict";e.exports={backdrop:"backdrop-_51706","close-button":"close-button-c3742a",closeButton:"close-button-c3742a",container:"container-fb8255",frame:"frame-_5d7ff"}},16298:function(e){"use strict";e.exports={container:"container-d972e2"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","544","58","707","821","971"],function(){return t("18466"),t("82900"),t("26397"),t("24366"),t("76942")}),e.O()}]);
|
package/exports/.eslintrc.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** @type {import('eslint').Linter.Config} */
|
|
2
|
-
// eslint-disable-next-line import/no-commonjs
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
extends: ['@modern-js-app'],
|
|
6
|
-
parserOptions: {
|
|
7
|
-
tsconfigRootDir: __dirname,
|
|
8
|
-
project: ['../tsconfig.json'],
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
curly: 'off',
|
|
12
|
-
},
|
|
13
|
-
};
|
package/exports/mount.mjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import routesManifest from '../dist/routes-manifest.json';
|
|
2
|
-
|
|
3
|
-
try {
|
|
4
|
-
const container = document.createElement('div');
|
|
5
|
-
container.className = '_modern_js_devtools_container';
|
|
6
|
-
document.body.appendChild(container);
|
|
7
|
-
|
|
8
|
-
const shadow = container.attachShadow({ mode: 'closed' });
|
|
9
|
-
|
|
10
|
-
for (const asset of routesManifest.routeAssets.mount.assets) {
|
|
11
|
-
if (asset.endsWith('.js')) {
|
|
12
|
-
const el = document.createElement('script');
|
|
13
|
-
el.src = asset;
|
|
14
|
-
shadow.appendChild(el);
|
|
15
|
-
} else if (asset.endsWith('.css')) {
|
|
16
|
-
const el = document.createElement('link');
|
|
17
|
-
el.href = asset;
|
|
18
|
-
el.rel = 'stylesheet';
|
|
19
|
-
shadow.appendChild(el);
|
|
20
|
-
} else {
|
|
21
|
-
console.warn(new Error(`Can't resolve unknown asset tag: ${asset}`));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const app = document.createElement('div');
|
|
26
|
-
app.className = '_modern_js_devtools_mountpoint theme-register';
|
|
27
|
-
const appGlobalExport = '_modern_js_devtools_app';
|
|
28
|
-
window[appGlobalExport] ||= {};
|
|
29
|
-
Object.assign(window[appGlobalExport], {
|
|
30
|
-
container: app,
|
|
31
|
-
// eslint-disable-next-line no-undef
|
|
32
|
-
resourceQuery: __resourceQuery,
|
|
33
|
-
});
|
|
34
|
-
shadow.appendChild(app);
|
|
35
|
-
} catch (err) {
|
|
36
|
-
const e = new Error('Failed to execute mount point of DevTools.');
|
|
37
|
-
e.cause = err;
|
|
38
|
-
console.error(e);
|
|
39
|
-
console.error(err);
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|