@modern-js/devtools-client 2.41.0 → 2.42.0
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 +28 -20
- package/dist/public/sw-proxy.js +1 -0
- package/dist/routes-manifest.json +158 -78
- package/dist/static/css/427.35f47c8d.css +1 -0
- package/dist/static/css/async/691.e8297067.css +1 -0
- package/dist/static/css/async/client_context/builder/page.e8297067.css +1 -0
- package/dist/static/css/async/client_context/framework/page.e8297067.css +1 -0
- package/dist/static/css/async/client_headers/editor/page.bc281307.css +1 -0
- package/dist/static/css/async/client_headers/layout.4327b86c.css +1 -0
- package/dist/static/css/async/client_overview/page.433bcf1f.css +1 -0
- package/dist/static/css/async/client_pages/layout.92139656.css +1 -0
- package/dist/static/css/async/client_pages/page.9a3525cc.css +1 -0
- package/dist/static/css/client.b2f6a1ff.css +1 -0
- package/dist/static/js/111.c8d9772c.js +2 -0
- package/dist/static/js/111.c8d9772c.js.LICENSE.txt +967 -0
- package/dist/static/js/427.a564f291.js +2 -0
- package/dist/static/js/427.a564f291.js.LICENSE.txt +677 -0
- package/dist/static/js/550.61f5d86c.js +2 -0
- package/dist/static/js/550.61f5d86c.js.LICENSE.txt +178 -0
- package/dist/static/js/async/328.f47b0b7d.js +2 -0
- package/dist/static/js/async/328.f47b0b7d.js.LICENSE.txt +191 -0
- package/dist/static/js/async/682.9a0d8be9.js +2 -0
- package/dist/static/js/async/682.9a0d8be9.js.LICENSE.txt +29 -0
- package/dist/static/js/async/691.d425c0ba.js +2 -0
- package/dist/static/js/async/691.d425c0ba.js.LICENSE.txt +21 -0
- package/dist/static/js/async/client_config/layout.c77c2d12.js +2 -0
- package/dist/static/js/async/client_config/layout.c77c2d12.js.LICENSE.txt +5 -0
- package/dist/static/js/async/client_config/page.9f1bc141.js +1 -0
- package/dist/static/js/async/client_context/builder/page.5cff83cf.js +2 -0
- package/dist/static/js/async/client_context/builder/page.5cff83cf.js.LICENSE.txt +19 -0
- package/dist/static/js/async/client_context/framework/page.b7695acd.js +2 -0
- package/dist/static/js/async/client_context/framework/page.b7695acd.js.LICENSE.txt +19 -0
- package/dist/static/js/async/client_context/layout.4613614c.js +2 -0
- package/dist/static/js/async/client_context/layout.4613614c.js.LICENSE.txt +5 -0
- package/dist/static/js/async/client_context/page.6b42e31b.js +1 -0
- package/dist/static/js/async/client_headers/editor/page.231ec51c.js +2 -0
- package/dist/static/js/async/client_headers/editor/page.231ec51c.js.LICENSE.txt +57 -0
- package/dist/static/js/async/client_headers/layout.4080bda6.js +2 -0
- package/dist/static/js/async/client_headers/layout.4080bda6.js.LICENSE.txt +7 -0
- package/dist/static/js/async/client_headers/page.b7d32de3.js +2 -0
- package/dist/static/js/async/client_headers/page.b7d32de3.js.LICENSE.txt +13 -0
- package/dist/static/js/async/client_headers/welcome/page.4fd84315.js +2 -0
- package/dist/static/js/async/client_headers/welcome/page.4fd84315.js.LICENSE.txt +7 -0
- package/dist/static/js/async/client_overview/page.4f95cdda.js +2 -0
- package/dist/static/js/async/client_overview/page.4f95cdda.js.LICENSE.txt +27 -0
- package/dist/static/js/async/client_page.3ceb6a2d.js +1 -0
- package/dist/static/js/async/client_pages/layout.e2857deb.js +2 -0
- package/dist/static/js/async/client_pages/layout.e2857deb.js.LICENSE.txt +7 -0
- package/dist/static/js/async/client_pages/page.3e09447c.js +2 -0
- package/dist/static/js/async/client_pages/page.3e09447c.js.LICENSE.txt +161 -0
- package/dist/static/js/async/client_react/(tab)/layout.d4899ee6.js +2 -0
- package/dist/static/js/async/client_react/(tab)/layout.d4899ee6.js.LICENSE.txt +3 -0
- package/dist/static/js/async/client_react/(tab)/page.ebc3fba0.js +2 -0
- package/dist/static/js/async/client_react/(tab)/page.ebc3fba0.js.LICENSE.txt +15 -0
- package/dist/static/js/async/client_react/offscreen/page.9c94ca38.js +2 -0
- package/dist/static/js/async/client_react/offscreen/page.9c94ca38.js.LICENSE.txt +5 -0
- package/dist/static/js/async/client_react/page.c68a0205.js +1 -0
- package/dist/static/js/builder-runtime.3e8d3f25.js +1 -0
- package/dist/static/js/client.9c782e45.js +2 -0
- package/dist/static/js/client.9c782e45.js.LICENSE.txt +351 -0
- package/dist/static/js/lib-lodash.891c9332.js +1 -0
- package/dist/static/js/lib-polyfill.05203cb9.js +2 -0
- package/dist/static/js/lib-polyfill.05203cb9.js.LICENSE.txt +4971 -0
- package/dist/static/js/lib-react.5856752b.js +2 -0
- package/dist/static/js/{lib-react.f762ee87.js.LICENSE.txt → lib-react.5856752b.js.LICENSE.txt} +24 -8
- package/dist/static/js/lib-router.b2c6e9a5.js +2 -0
- package/dist/static/js/{lib-router.d9cdb309.js.LICENSE.txt → lib-router.b2c6e9a5.js.LICENSE.txt} +16 -2
- package/dist/static/js/mount.8b5aa6ee.js +2 -0
- package/dist/static/js/mount.8b5aa6ee.js.LICENSE.txt +11 -0
- package/exports/mount.mjs +54 -32
- package/package.json +23 -15
- package/dist/nestedRoutes.json +0 -1
- package/dist/route.json +0 -20
- package/dist/static/css/476.b9e8376d.css +0 -1
- package/dist/static/css/async/18.53f666ec.css +0 -1
- package/dist/static/css/async/client_context/builder/page.53f666ec.css +0 -1
- package/dist/static/css/async/client_context/framework/page.53f666ec.css +0 -1
- package/dist/static/css/async/client_overview/page.487a2419.css +0 -1
- package/dist/static/css/async/client_pages/layout.e8532955.css +0 -1
- package/dist/static/css/async/client_pages/page.44fef189.css +0 -1
- package/dist/static/css/client.db2f0fbf.css +0 -1
- package/dist/static/js/476.e429e33b.js +0 -1
- package/dist/static/js/481.d463f921.js +0 -2
- package/dist/static/js/481.d463f921.js.LICENSE.txt +0 -5
- package/dist/static/js/61.34a273ea.js +0 -2
- package/dist/static/js/61.34a273ea.js.LICENSE.txt +0 -18
- package/dist/static/js/async/18.6b935f14.js +0 -1
- package/dist/static/js/async/328.a6a783d3.js +0 -1
- package/dist/static/js/async/client_config/layout.2c3d7702.js +0 -1
- package/dist/static/js/async/client_config/page.b7a92ab4.js +0 -1
- package/dist/static/js/async/client_context/builder/page.c49419a6.js +0 -1
- package/dist/static/js/async/client_context/framework/page.aa8244ae.js +0 -1
- package/dist/static/js/async/client_context/layout.d776421f.js +0 -1
- package/dist/static/js/async/client_context/page.ffa36380.js +0 -1
- package/dist/static/js/async/client_overview/page.3b79916c.js +0 -1
- package/dist/static/js/async/client_page.31a1a6b8.js +0 -1
- package/dist/static/js/async/client_pages/layout.6b7a4740.js +0 -1
- package/dist/static/js/async/client_pages/page.45537297.js +0 -1
- package/dist/static/js/builder-runtime.def3b0c4.js +0 -1
- package/dist/static/js/client.ce85c19c.js +0 -1
- package/dist/static/js/lib-lodash.5b84db09.js +0 -1
- package/dist/static/js/lib-polyfill.4035b7b7.js +0 -1
- package/dist/static/js/lib-react.f762ee87.js +0 -2
- package/dist/static/js/lib-router.d9cdb309.js +0 -2
- package/dist/static/js/mount.3dd9a2e9.js +0 -1
- /package/dist/static/css/{481.e856de15.css → 111.e856de15.css} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see lib-router.b2c6e9a5.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).push([["700"],{70765:function(e,t,r){"use strict";r.r(t),r.d(t,{Action:function(){return o},UNSAFE_ErrorResponseImpl:function(){return T},UNSAFE_convertRouteMatchToUiMatch:function(){return R},UNSAFE_getPathContributingMatches:function(){return C},UNSAFE_invariant:function(){return h},createBrowserHistory:function(){return c},createHashHistory:function(){return d},createPath:function(){return m},createRouter:function(){return K},isRouteErrorResponse:function(){return F},joinPaths:function(){return A},matchPath:function(){return P},matchRoutes:function(){return E},parsePath:function(){return y},redirect:function(){return N},resolveTo:function(){return L},stripBasename:function(){return D}});var n,a,o,i,s=r("61078");function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}(n=o||(o={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";var l="popstate";function c(e){return void 0===e&&(e={}),g(function(e,t){var{pathname:r,search:n,hash:a}=e.location;return p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:m(t)},null,e)}function d(e){return void 0===e&&(e={}),g(function(e,t){var{pathname:r="/",search:n="",hash:a=""}=y(e.location.hash.substr(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){var r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){var a=e.location.href,o=a.indexOf("#");n=-1===o?a:a.slice(0,o)}return n+"#"+("string"==typeof t?t:m(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),u({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(e){var{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function y(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,n){void 0===n&&(n={});var{window:a=document.defaultView,v5Compat:i=!1}=n,s=a.history,c=o.Pop,d=null,f=y();function y(){return(s.state||{idx:null}).idx}function g(){c=o.Pop;var e=y(),t=null==e?null:e-f;f=e,d&&d({action:c,location:w.location,delta:t})}null==f&&(f=0,s.replaceState(u({},s.state,{idx:f}),""));function b(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:m(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}var w={get action(){return c},get location(){return e(a,s)},listen(e){if(d)throw Error("A history only accepts one active listener");return a.addEventListener(l,g),d=e,()=>{a.removeEventListener(l,g),d=null}},createHref:e=>t(a,e),createURL:b,encodeLocation(e){var t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=o.Push;var n=p(w.location,e,t);r&&r(n,e);var u=v(n,f=y()+1),l=w.createHref(n);try{s.pushState(u,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(l)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=o.Replace;var n=p(w.location,e,t);r&&r(n,e);var a=v(n,f=y()),u=w.createHref(n);s.replaceState(a,"",u),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>s.go(e)};return w}(a=i||(i={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";var b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{var o=[...r,a],i="string"==typeof e.id?e.id:o.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){var s=u({},e,t(e),{id:i});return n[i]=s,s}var l=u({},e,t(e),{id:i,children:void 0});return n[i]=l,e.children&&(l.children=w(e.children,t,o,n)),l})}function E(e,t,r){void 0===r&&(r="/");var n=D(("string"==typeof t?y(t):t).pathname||"/",r);if(null==n)return null;var a=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");var o=(t,o,i)=>{var s={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};s.relativePath.startsWith("/")&&(h(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(a.length));var u=A([a,s.relativePath]),l=n.concat(s);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),e(t.children,r,l,u)),(null!=t.path||t.index)&&r.push({path:u,score:function(e,t){var r=e.split("/"),n=r.length;return r.some(S)&&(n+=-2),t&&(n+=2),r.filter(e=>!S(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),n)}(u,t.index),routesMeta:l})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(var n of function e(t){var r=t.split("/");if(0===r.length)return[];var[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];var s=e(a.join("/")),u=[];return u.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&u.push(...s),u.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,n);else o(e,t)}),r}(e);(function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(a);for(var o=null,i=0;null==o&&i<a.length;++i)o=function(e,t){for(var{routesMeta:r}=e,n={},a="/",o=[],i=0;i<r.length;++i){var s=r[i],u=i===r.length-1,l="/"===a?t:t.slice(a.length)||"/",c=P({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},l);if(!c)return null;Object.assign(n,c.params);var d=s.route;o.push({params:n,pathname:A([a,c.pathname]),pathnameBase:_(A([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=A([a,c.pathnameBase]))}return o}(a[i],function(e){try{return decodeURI(e)}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t)+")."),e}}(n));return o}function R(e,t){var{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}var x=/^:\w+$/,S=e=>"*"===e;function P(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});var[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),f("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*"))+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, '+('please change the route path to "'+e.replace(/\*$/,"/*"))+'".');var n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(n.push(t),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;var o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((e,t,r)=>{if("*"===t){var n=s[r]||"";i=o.slice(0,o.length-n.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return f(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e)+'" is a malformed URL segment. This is probably'+(" due to a bad percent encoding ("+r)+")."),e}}(s[r]||"",t),e},{}),pathname:o,pathnameBase:i,pattern:e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function U(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n))+"]. Please separate it out to the "+("`to."+r)+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function C(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function L(e,t,r,n){void 0===n&&(n=!1),"string"==typeof e?a=y(e):(h(!(a=u({},e)).pathname||!a.pathname.includes("?"),U("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),U("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),U("#","search","hash",a)));var a,o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(n||null==s)o=r;else{var l=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;a.pathname=c.join("/")}o=l>=0?t[l]:"/"}var d=function(e,t){void 0===t&&(t="/");var{pathname:r,search:n="",hash:a=""}="string"==typeof e?y(e):e;return{pathname:r?r.startsWith("/")?r:function(e,t){var r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t,search:M(n),hash:k(a)}}(a,o),f=s&&"/"!==s&&s.endsWith("/"),v=(i||"."===s)&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||v)&&(d.pathname+="/"),d}var A=e=>e.join("/").replace(/\/\/+/g,"/"),_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",k=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",N=function(e,t){void 0===t&&(t=302);var r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);var n=new Headers(r.headers);return n.set("Location",e),new Response(null,u({},r,{headers:n}))};class T{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var j=["post","put","patch","delete"],O=new Set(j),B=["get",...j],z=new Set(B),I=new Set([301,302,303,307,308]),H=new Set([307,308]),W={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},q={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},J=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Y="remix-router-transitions";function K(e){var t,r,n,a,l=e.window?e.window:"undefined"!=typeof window?window:void 0,c=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,d=!c;if(h(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){var v=e.detectErrorBoundary;t=e=>({hasErrorBoundary:v(e)})}else t=V;var m={},y=w(e.routes,t,void 0,m),g=e.basename||"/",b=u({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),x=null,S=new Set,P=null,U=null,C=null,L=null!=e.hydrationData,A=E(y,e.history.location,g),_=null;if(null==A){var M=eh(404,{pathname:e.history.location.pathname}),{matches:k,route:N}=ed(y);A=k,_={[N.id]:M}}var T=!A.some(e=>e.route.lazy)&&(!A.some(e=>e.route.loader)||null!=e.hydrationData),F={historyAction:e.history.action,location:e.history.location,matches:A,initialized:T,navigation:W,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},j=o.Pop,O=!1,B=!1,z=new Map,I=null,K=!1,Z=!1,ee=[],et=[],er=new Map,ea=0,ei=-1,es=new Map,ev=new Set,ew=new Map,eR=new Map,ex=new Map,eL=!1;function eA(e,t){F=u({},F,e),S.forEach(e=>e(F,{unstable_viewTransitionOpts:t}))}function e_(t,n){var a,i,s,l,c=null!=F.actionData&&null!=F.navigation.formMethod&&eg(F.navigation.formMethod)&&"loading"===F.navigation.state&&(null==(a=t.state)?void 0:a._isRedirect)!==!0;s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:c?F.actionData:null;var d=n.loaderData?el(F.loaderData,n.loaderData,n.matches||[],n.errors):F.loaderData,h=F.blockers;h.size>0&&(h=new Map(h)).forEach((e,t)=>h.set(t,q));var f=!0===O||null!=F.navigation.formMethod&&eg(F.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(y=r,r=void 0),K||j===o.Pop||(j===o.Push?e.history.push(t,t.state):j===o.Replace&&e.history.replace(t,t.state)),j===o.Pop){var v=z.get(F.location.pathname);v&&v.has(t.pathname)?l={currentLocation:F.location,nextLocation:t}:z.has(t.pathname)&&(l={currentLocation:t,nextLocation:F.location})}else if(B){var p=z.get(F.location.pathname);p?p.add(t.pathname):(p=new Set([t.pathname]),z.set(F.location.pathname,p)),l={currentLocation:F.location,nextLocation:t}}eA(u({},n,{actionData:s,loaderData:d,historyAction:j,location:t,initialized:!0,navigation:W,revalidation:"idle",restoreScrollPosition:e7(t,n.matches||F.matches),preventScrollReset:f,blockers:h}),l),j=o.Pop,O=!1,B=!1,K=!1,Z=!1,ee=[],et=[]}function eM(e,t){return ek.apply(this,arguments)}function ek(){return(ek=(0,s._)(function*(t,r){if("number"==typeof t){e.history.go(t);return}var n=X(F.location,F.matches,g,b.v7_prependBasename,t,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:i,error:s}=G(b.v7_normalizeFormMethod,!1,n,r),l=F.location,c=p(F.location,a,r&&r.state);c=u({},c,e.history.encodeLocation(c));var d=r&&null!=r.replace?r.replace:void 0,h=o.Push;!0===d?h=o.Replace:!1===d||null!=i&&eg(i.formMethod)&&i.formAction===F.location.pathname+F.location.search&&(h=o.Replace);var f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=e0({currentLocation:l,nextLocation:c,historyAction:h});if(v){eZ(v,{state:"blocked",location:c,proceed(){eZ(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eM(t,r)},reset(){var e=new Map(F.blockers);e.set(v,q),eA({blockers:e})}});return}return yield eN(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition})})).apply(this,arguments)}function eN(e,t,r){return eT.apply(this,arguments)}function eT(){return(eT=(0,s._)(function*(t,n,o){a&&a.abort(),a=null,j=t,K=!0===(o&&o.startUninterruptedRevalidation),function(e,t){P&&C&&(P[e4(e,t)]=C())}(F.location,F.matches),O=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);var i,s,l=r||y,c=o&&o.overrideNavigation,d=E(l,n,g);if(!d){var h=eh(404,{pathname:n.pathname}),{matches:f,route:v}=ed(l);e1(),e_(n,{matches:f,loaderData:{},errors:{[v.id]:h}});return}if(F.initialized&&!Z&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(F.location,n)&&!(o&&o.submission&&eg(o.submission.formMethod))){e_(n,{matches:d});return}a=new AbortController;var p=eo(e.history,n,a.signal,o&&o.submission);if(o&&o.pendingError)s={[ec(d).route.id]:o.pendingError};else if(o&&o.submission&&eg(o.submission.formMethod)){var m=yield function(e,t,r,n,a){return eF.apply(this,arguments)}(p,n,o.submission,d,{replace:o.replace});if(m.shortCircuited)return;i=m.pendingActionData,s=m.pendingActionError,c=eD(n,o.submission),p=new Request(p.url,{signal:p.signal})}var{shortCircuited:b,loaderData:w,errors:R}=yield function(e,t,r,n,a,o,i,s,u){return ej.apply(this,arguments)}(p,n,d,c,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,i,s);!b&&(a=null,e_(n,u({matches:d},i?{actionData:i}:{},{loaderData:w,errors:R})))})).apply(this,arguments)}function eF(){return(eF=(0,s._)(function*(e,r,n,a,s){void 0===s&&(s={}),eq(),eA({navigation:function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(r,n)});var u,l,c=eS(a,r);if(c.route.action||c.route.lazy){if(u=yield en("action",e,c,a,m,t,g),e.signal.aborted)return{shortCircuited:!0}}else u={type:i.error,error:eh(405,{method:e.method,pathname:r.pathname,routeId:c.route.id})};if(ey(u))return l=s&&null!=s.replace?s.replace:u.location===F.location.pathname+F.location.search,yield eI(F,u,{submission:n,replace:l}),{shortCircuited:!0};if(em(u)){var d=ec(a,c.route.id);return!0!==(s&&s.replace)&&(j=o.Push),{pendingActionData:{},pendingActionError:{[d.route.id]:u.error}}}if(ep(u))throw eh(400,{type:"defer-action"});return{pendingActionData:{[c.route.id]:u.data}}})).apply(this,arguments)}function ej(){return(ej=(0,s._)(function*(t,n,o,i,s,l,c,d,h){var f=i||eD(n,s),v=s||l||eP(f),p=r||y,[m,b]=Q(e.history,F,o,v,n,Z,ee,et,ew,ev,p,g,d,h);if(e1(e=>!(o&&o.some(t=>t.route.id===e))||m&&m.some(t=>t.route.id===e)),ei=++ea,0===m.length&&0===b.length){var w=eX();return e_(n,u({matches:o,loaderData:{},errors:h||null},d?{actionData:d}:{},w?{fetchers:new Map(F.fetchers)}:{})),{shortCircuited:!0}}if(!K){b.forEach(e=>{var t=F.fetchers.get(e.key),r=eU(void 0,t?t.data:void 0);F.fetchers.set(e.key,r)});var E=d||F.actionData;eA(u({navigation:f},E?0===Object.keys(E).length?{actionData:null}:{actionData:E}:{},b.length>0?{fetchers:new Map(F.fetchers)}:{}))}b.forEach(e=>{er.has(e.key)&&eY(e.key),e.controller&&er.set(e.key,e.controller)});var R=()=>b.forEach(e=>eY(e.key));a&&a.signal.addEventListener("abort",R);var{results:x,loaderResults:S,fetcherResults:P}=yield eW(F.matches,o,m,b,t);if(t.signal.aborted)return{shortCircuited:!0};a&&a.signal.removeEventListener("abort",R),b.forEach(e=>er.delete(e.key));var D=ef(x);if(D){if(D.idx>=m.length){var U=b[D.idx-m.length].key;ev.add(U)}return yield eI(F,D.result,{replace:c}),{shortCircuited:!0}}var{loaderData:C,errors:L}=eu(F,o,m,S,h,b,P,eR);eR.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eR.delete(t)})});var A=eX(),_=eG(ei),M=A||_||b.length>0;return u({loaderData:C,errors:L},M?{fetchers:new Map(F.fetchers)}:{})})).apply(this,arguments)}function eO(e){return F.fetchers.get(e)||$}function eB(){return(eB=(0,s._)(function*(n,o,i,s,l,c){if(eq(),ew.delete(n),!s.route.action&&!s.route.lazy){var d=eh(405,{method:c.formMethod,pathname:i,routeId:o});eJ(n,o,d);return}var f=function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(c,F.fetchers.get(n));F.fetchers.set(n,f),eA({fetchers:new Map(F.fetchers)});var v=new AbortController,p=eo(e.history,i,v.signal,c);er.set(n,v);var b=ea,w=yield en("action",p,s,l,m,t,g);if(p.signal.aborted){er.get(n)===v&&er.delete(n);return}if(ey(w)){if(er.delete(n),ei>b){var R=eC(void 0);F.fetchers.set(n,R),eA({fetchers:new Map(F.fetchers)});return}ev.add(n);var x=eU(c);return F.fetchers.set(n,x),eA({fetchers:new Map(F.fetchers)}),eI(F,w,{fetcherSubmission:c})}if(em(w)){eJ(n,o,w.error);return}if(ep(w))throw eh(400,{type:"defer-action"});var S=F.navigation.location||F.location,P=eo(e.history,S,v.signal),D=r||y,U="idle"!==F.navigation.state?E(D,F.navigation.location,g):F.matches;h(U,"Didn't find any matches after fetcher action");var C=++ea;es.set(n,C);var L=eU(c,w.data);F.fetchers.set(n,L);var[A,_]=Q(e.history,F,U,c,S,Z,ee,et,ew,ev,D,g,{[s.route.id]:w.data},void 0);_.filter(e=>e.key!==n).forEach(e=>{var t=e.key,r=F.fetchers.get(t),n=eU(void 0,r?r.data:void 0);F.fetchers.set(t,n),er.has(t)&&eY(t),e.controller&&er.set(t,e.controller)}),eA({fetchers:new Map(F.fetchers)});var M=()=>_.forEach(e=>eY(e.key));v.signal.addEventListener("abort",M);var{results:k,loaderResults:N,fetcherResults:T}=yield eW(F.matches,U,A,_,P);if(!v.signal.aborted){v.signal.removeEventListener("abort",M),es.delete(n),er.delete(n),_.forEach(e=>er.delete(e.key));var O=ef(k);if(O){if(O.idx>=A.length){var B=_[O.idx-A.length].key;ev.add(B)}return eI(F,O.result)}var{loaderData:z,errors:I}=eu(F,F.matches,A,N,void 0,_,T,eR);if(F.fetchers.has(n)){var H=eC(w.data);F.fetchers.set(n,H)}var W=eG(C);"loading"===F.navigation.state&&C>ei?(h(j,"Expected pending action"),a&&a.abort(),e_(F.navigation.location,{matches:U,loaderData:z,errors:I,fetchers:new Map(F.fetchers)})):(eA(u({errors:I,loaderData:el(F.loaderData,z,U,I)},W||_.length>0?{fetchers:new Map(F.fetchers)}:{})),Z=!1)}})).apply(this,arguments)}function ez(){return(ez=(0,s._)(function*(r,n,a,o,i,s){var u=F.fetchers.get(r),l=eU(s,u?u.data:void 0);F.fetchers.set(r,l),eA({fetchers:new Map(F.fetchers)});var c=new AbortController,d=eo(e.history,a,c.signal);er.set(r,c);var f=ea,v=yield en("loader",d,o,i,m,t,g);if(ep(v)&&(v=(yield eE(v,d.signal,!0))||v),er.get(r)===c&&er.delete(r),!d.signal.aborted){if(ey(v)){if(ei>f){var p=eC(void 0);F.fetchers.set(r,p),eA({fetchers:new Map(F.fetchers)});return}ev.add(r),yield eI(F,v);return}if(em(v)){var y=ec(F.matches,n);F.fetchers.delete(r),eA({fetchers:new Map(F.fetchers),errors:{[y.route.id]:v.error}});return}h(!ep(v),"Unhandled fetcher deferred data");var b=eC(v.data);F.fetchers.set(r,b),eA({fetchers:new Map(F.fetchers)})}})).apply(this,arguments)}function eI(e,t,r){return eH.apply(this,arguments)}function eH(){return(eH=(0,s._)(function*(t,r,n){var{submission:i,fetcherSubmission:s,replace:d}=void 0===n?{}:n;r.revalidate&&(Z=!0);var f=p(t.location,r.location,{_isRedirect:!0});if(h(f,"Expected a location on the redirect navigation"),c){var v=!1;if(r.reloadDocument)v=!0;else if(J.test(r.location)){var m=e.history.createURL(r.location);v=m.origin!==l.location.origin||null==D(m.pathname,g)}if(v){d?l.location.replace(r.location):l.location.assign(r.location);return}}a=null;var y=!0===d?o.Replace:o.Push,{formMethod:b,formAction:w,formEncType:E}=t.navigation;!i&&!s&&b&&w&&E&&(i=eP(t.navigation));var R=i||s;if(H.has(r.status)&&R&&eg(R.formMethod))yield eN(y,f,{submission:u({},R,{formAction:r.location}),preventScrollReset:O});else{var x=eD(f,i);yield eN(y,f,{overrideNavigation:x,fetcherSubmission:s,preventScrollReset:O})}})).apply(this,arguments)}function eW(e,t,r,n,a){return e$.apply(this,arguments)}function e$(){return(e$=(0,s._)(function*(r,n,a,o,s){var u=yield Promise.all([...a.map(e=>en("loader",s,e,n,m,t,g)),...o.map(r=>r.matches&&r.match&&r.controller?en("loader",eo(e.history,r.path,r.controller.signal),r.match,r.matches,m,t,g):{type:i.error,error:eh(404,{pathname:r.path})})]),l=u.slice(0,a.length),c=u.slice(a.length);return yield Promise.all([eb(r,a,l,l.map(()=>s.signal),!1,F.loaderData),eb(r,o.map(e=>e.match),c,o.map(e=>e.controller?e.controller.signal:null),!0)]),{results:u,loaderResults:l,fetcherResults:c}})).apply(this,arguments)}function eq(){Z=!0,ee.push(...e1()),ew.forEach((e,t)=>{er.has(t)&&(et.push(t),eY(t))})}function eJ(e,t,r){var n=ec(F.matches,t);eV(e),eA({errors:{[n.route.id]:r},fetchers:new Map(F.fetchers)})}function eV(e){var t=F.fetchers.get(e);er.has(e)&&!(t&&"loading"===t.state&&es.has(e))&&eY(e),ew.delete(e),es.delete(e),ev.delete(e),F.fetchers.delete(e)}function eY(e){var t=er.get(e);h(t,"Expected fetch controller: "+e),t.abort(),er.delete(e)}function eK(e){for(var t of e){var r=eC(eO(t).data);F.fetchers.set(t,r)}}function eX(){var e=[],t=!1;for(var r of ev){var n=F.fetchers.get(r);h(n,"Expected fetcher: "+r),"loading"===n.state&&(ev.delete(r),e.push(r),t=!0)}return eK(e),t}function eG(e){var t=[];for(var[r,n]of es)if(n<e){var a=F.fetchers.get(r);h(a,"Expected fetcher: "+r),"loading"===a.state&&(eY(r),es.delete(r),t.push(r))}return eK(t),t.length>0}function eQ(e){F.blockers.delete(e),ex.delete(e)}function eZ(e,t){var r=F.blockers.get(e)||q;h("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);var n=new Map(F.blockers);n.set(e,t),eA({blockers:n})}function e0(e){var{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0!==ex.size){ex.size>1&&f(!1,"A router only supports one blocker at a time");var a=Array.from(ex.entries()),[o,i]=a[a.length-1],s=F.blockers.get(o);if((!s||"proceeding"!==s.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}}function e1(e){var t=[];return eR.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eR.delete(n))}),t}function e4(e,t){return U&&U(e,t.map(e=>R(e,F.loaderData)))||e.key}function e7(e,t){if(P){var r=P[e4(e,t)];if("number"==typeof r)return r}return null}return n={get basename(){return g},get state(){return F},get routes(){return y},get window(){return l},initialize:function(){if(x=e.history.listen(t=>{var{action:r,location:n,delta:a}=t;if(eL){eL=!1;return}f(0===ex.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");var o=e0({currentLocation:F.location,nextLocation:n,historyAction:r});if(o&&null!=a){eL=!0,e.history.go(-1*a),eZ(o,{state:"blocked",location:n,proceed(){eZ(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){var e=new Map(F.blockers);e.set(o,q),eA({blockers:e})}});return}return eN(r,n)}),c){(function(e,t){try{var r=e.sessionStorage.getItem(Y);if(r){var n=JSON.parse(r);for(var[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch(e){}})(l,z);var t=()=>(function(e,t){if(t.size>0){var r={};for(var[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(Y,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,z);l.addEventListener("pagehide",t),I=()=>l.removeEventListener("pagehide",t)}return!F.initialized&&eN(o.Pop,F.location),n},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,r){if(P=e,C=t,U=r||null,!L&&F.navigation===W){L=!0;var n=e7(F.location,F.matches);null!=n&&eA({restoreScrollPosition:n})}return()=>{P=null,C=null,U=null}},navigate:eM,fetch:function(e,t,n,a){if(d)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");er.has(e)&&eY(e);var o=r||y,i=X(F.location,F.matches,g,b.v7_prependBasename,n,t,null==a?void 0:a.relative),s=E(o,i,g);if(!s){eJ(e,t,eh(404,{pathname:i}));return}var{path:u,submission:l,error:c}=G(b.v7_normalizeFormMethod,!0,i,a);if(c){eJ(e,t,c);return}var h=eS(s,u);if(O=!0===(a&&a.preventScrollReset),l&&eg(l.formMethod)){(function(e,t,r,n,a,o){eB.apply(this,arguments)})(e,t,u,h,s,l);return}ew.set(e,{routeId:t,path:u}),function(e,t,r,n,a,o){ez.apply(this,arguments)}(e,t,u,h,s,l)},revalidate:function(){if(eq(),eA({revalidation:"loading"}),"submitting"!==F.navigation.state){if("idle"===F.navigation.state){eN(F.historyAction,F.location,{startUninterruptedRevalidation:!0});return}eN(j||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eO,deleteFetcher:eV,dispose:function(){x&&x(),I&&I(),S.clear(),a&&a.abort(),F.fetchers.forEach((e,t)=>eV(t)),F.blockers.forEach((e,t)=>eQ(t))},getBlocker:function(e,t){var r=F.blockers.get(e)||q;return ex.get(e)!==t&&ex.set(e,t),r},deleteBlocker:eQ,_internalFetchControllers:er,_internalActiveDeferreds:eR,_internalSetRoutes:function(e){r=w(e,t,void 0,m={})}}}Symbol("deferred");function X(e,t,r,n,a,o,i){if(null!=o&&"path"!==i){for(var s of(u=[],t))if(u.push(s),s.route.id===o){l=s;break}}else u=t,l=t[t.length-1];var u,l,c=L(a||".",C(u).map(e=>e.pathnameBase),D(e.pathname,r)||e.pathname,"path"===i);return null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&l&&l.route.index&&!ex(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:A([r,c.pathname])),m(c)}function G(e,t,r,n){if(!n||!(null!=(a=n)&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:r};if(n.formMethod&&!function(e){return z.has(e.toLowerCase())}(n.formMethod))return{path:r,error:eh(405,{method:n.formMethod})};var a,o,i,s=()=>({path:r,error:eh(400,{type:"invalid-body"})}),u=n.formMethod||"get",l=e?u.toUpperCase():u.toLowerCase(),c=ev(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eg(l))return s();var d="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{var[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}if("application/json"===n.formEncType){if(!eg(l))return s();try{var f="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch(e){return s()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ei(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ei(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=es(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=es(o)}catch(e){return s()}var v={formMethod:l,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eg(v.formMethod))return{path:r,submission:v};var p=y(r);return t&&p.search&&ex(p.search)&&o.append("index",""),p.search="?"+o,{path:m(p),submission:v}}function Q(e,t,r,n,a,o,i,s,l,c,d,h,f,v){var p=v?Object.values(v)[0]:f?Object.values(f)[0]:void 0,m=e.createURL(t.location),y=e.createURL(a),g=(function(e,t){var r=e;if(t){var n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r})(r,v?Object.keys(v)[0]:void 0).filter((e,r)=>{if(e.route.lazy)return!0;if(null==e.route.loader)return!1;if(function(e,t,r){var n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||i.some(t=>t===e.route.id))return!0;var a=t.matches[r];return ee(e,u({currentUrl:m,currentParams:a.params,nextUrl:y,nextParams:e.params},n,{actionResult:p,defaultShouldRevalidate:o||m.pathname+m.search===y.pathname+y.search||m.search!==y.search||Z(a,e)}))}),b=[];return l.forEach((e,a)=>{if(r.some(t=>t.route.id===e.routeId)){var i=E(d,e.path,h);if(!i){b.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}var l=t.fetchers.get(a),f=eS(i,e.path),v=!1;(v=!c.has(a)&&(!!s.includes(a)||(l&&"idle"!==l.state&&void 0===l.data?o:ee(f,u({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:p,defaultShouldRevalidate:o})))))&&b.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:f,controller:new AbortController})}}),[g,b]}function Z(e,t){var r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ee(e,t){if(e.route.shouldRevalidate){var r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function et(e,t,r){return er.apply(this,arguments)}function er(){return(er=(0,s._)(function*(e,t,r){if(!!e.lazy){var n=yield e.lazy();if(e.lazy){var a=r[e.id];h(a,"No route found in manifest");var o={};for(var i in n){var s=void 0!==a[i]&&"hasErrorBoundary"!==i;f(!s,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i)+'" will be ignored.'),!s&&!b.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,u({},t(a),{lazy:void 0}))}}})).apply(this,arguments)}function en(e,t,r,n,a,o,i,s){return ea.apply(this,arguments)}function ea(){return(ea=(0,s._)(function*(e,t,r,n,a,o,s,u){void 0===u&&(u={});var l,c,d=e=>{var n,a=new Promise((e,t)=>n=t);return m=()=>n(),t.signal.addEventListener("abort",m),Promise.race([e({request:t,params:r.params,context:u.requestContext}),a])};try{var f=r.route[e];if(r.route.lazy){if(f){var v,p,m,y,g=yield Promise.all([d(f).catch(e=>{y=e}),et(r.route,o,a)]);if(y)throw y;p=g[0]}else if(yield et(r.route,o,a),f=r.route[e])p=yield d(f);else{if("action"!==e)return{type:i.data,data:void 0};var b=new URL(t.url),w=b.pathname+b.search;throw eh(405,{method:t.method,pathname:w,routeId:r.route.id})}}else if(f)p=yield d(f);else{var E=new URL(t.url),R=E.pathname+E.search;throw eh(404,{pathname:R})}h(void 0!==p,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e)+"` function. Please return a value or `null`.")}catch(e){v=i.error,p=e}finally{m&&t.signal.removeEventListener("abort",m)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(p)){var x,S=p.status;if(I.has(S)){var P=p.headers.get("Location");if(h(P,"Redirects returned/thrown from loaders/actions must have a Location header"),J.test(P)){if(!u.isStaticRequest){var U=new URL(t.url),C=new URL(P.startsWith("//")?U.protocol+P:P),L=null!=D(C.pathname,s);C.origin===U.origin&&L&&(P=C.pathname+C.search+C.hash)}}else P=X(new URL(t.url),n.slice(0,n.indexOf(r)+1),s,!0,P);if(u.isStaticRequest)throw p.headers.set("Location",P),p;return{type:i.redirect,status:S,location:P,revalidate:null!==p.headers.get("X-Remix-Revalidate"),reloadDocument:null!==p.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:v===i.error?i.error:i.data,response:p};var A=p.headers.get("Content-Type");return(x=A&&/\bapplication\/json\b/.test(A)?yield p.json():yield p.text(),v===i.error)?{type:v,error:new T(S,p.statusText,x),headers:p.headers}:{type:i.data,data:x,statusCode:p.status,headers:p.headers}}return v===i.error?{type:v,error:p}:function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(p)?{type:i.deferred,deferredData:p,statusCode:null==(l=p.init)?void 0:l.status,headers:(null==(c=p.init)?void 0:c.headers)&&new Headers(p.init.headers)}:{type:i.data,data:p}})).apply(this,arguments)}function eo(e,t,r,n){var a=e.createURL(ev(t)).toString(),o={signal:r};if(n&&eg(n.formMethod)){var{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),"application/json"===s?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):"text/plain"===s?o.body=n.text:"application/x-www-form-urlencoded"===s&&n.formData?o.body=ei(n.formData):o.body=n.formData}return new Request(a,o)}function ei(e){var t=new URLSearchParams;for(var[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function es(e){var t=new FormData;for(var[r,n]of e.entries())t.append(r,n);return t}function eu(e,t,r,n,a,o,i,s){for(var l,c,d,f,v,p,m,y,g,b,{loaderData:w,errors:E}=(l=t,c=r,d=n,f=a,v=s,m={},y=null,g=!1,b={},d.forEach((e,t)=>{var r=c[t].route.id;if(h(!ey(e),"Cannot handle redirect results in processLoaderData"),em(e)){var n=ec(l,r),a=e.error;f&&(a=Object.values(f)[0],f=void 0),null==(y=y||{})[n.route.id]&&(y[n.route.id]=a),m[r]=void 0,!g&&(g=!0,p=F(e.error)?e.error.status:500),e.headers&&(b[r]=e.headers)}else ep(e)?(v.set(r,e.deferredData),m[r]=e.deferredData.data):m[r]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(p=e.statusCode),e.headers&&(b[r]=e.headers)}),f&&(y=f,m[Object.keys(f)[0]]=void 0),{loaderData:m,errors:y,statusCode:p||200,loaderHeaders:b}),R=0;R<o.length;R++){var{key:x,match:S,controller:P}=o[R];h(void 0!==i&&void 0!==i[R],"Did not find corresponding fetcher result");var D=i[R];if(!P||!P.signal.aborted)if(em(D)){var U=ec(e.matches,null==S?void 0:S.route.id);!(E&&E[U.route.id])&&(E=u({},E,{[U.route.id]:D.error})),e.fetchers.delete(x)}else if(ey(D))h(!1,"Unhandled fetcher revalidation redirect");else if(ep(D))h(!1,"Unhandled fetcher deferred data");else{var C=eC(D.data);e.fetchers.set(x,C)}}return{loaderData:w,errors:E}}function el(e,t,r,n){var a=u({},t);for(var o of r){var i=o.route.id;if(t.hasOwnProperty(i)?void 0!==t[i]&&(a[i]=t[i]):void 0!==e[i]&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function ec(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function ed(e){var t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eh(e,t){var{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n)+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",s='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n)+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new T(e||500,i,Error(s),!0)}function ef(e){for(var t=e.length-1;t>=0;t--){var r=e[t];if(ey(r))return{result:r,idx:t}}}function ev(e){var t="string"==typeof e?y(e):e;return m(u({},t,{hash:""}))}function ep(e){return e.type===i.deferred}function em(e){return e.type===i.error}function ey(e){return(e&&e.type)===i.redirect}function eg(e){return O.has(e.toLowerCase())}function eb(e,t,r,n,a,o){return ew.apply(this,arguments)}function ew(){return(ew=(0,s._)(function*(e,t,r,n,a,o){for(var i=function*(i){var s=r[i],u=t[i];if(!u)return"continue";var l=e.find(e=>e.route.id===u.route.id),c=null!=l&&!Z(l,u)&&(o&&o[u.route.id])!==void 0;if(ep(s)&&(a||c)){var d=n[i];h(d,"Expected an AbortSignal for revalidating fetcher deferred result"),yield eE(s,d,a).then(e=>{e&&(r[i]=e||r[i])})}},s=0;s<r.length;s++)yield*i(s)})).apply(this,arguments)}function eE(e,t,r){return eR.apply(this,arguments)}function eR(){return(eR=(0,s._)(function*(e,t,r){if(void 0===r&&(r=!1),!(yield e.deferredData.resolveData(t))){if(r)try{return{type:i.data,data:e.deferredData.unwrappedData}}catch(e){return{type:i.error,error:e}}return{type:i.data,data:e.deferredData.data}}})).apply(this,arguments)}function ex(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eS(e,t){var r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&ex(r||""))return e[e.length-1];var n=C(e);return n[n.length-1]}function eP(e){var{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eD(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eU(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eC(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},52161:function(e,t,r){"use strict";r.r(t),r.d(t,{Outlet:function(){return l.Outlet},Route:function(){return l.Route},createRoutesFromElements:function(){return l.createRoutesFromElements},matchPath:function(){return l.matchPath},matchRoutes:function(){return l.matchRoutes},redirect:function(){return l.redirect},useHref:function(){return l.useHref},useLocation:function(){return l.useLocation},useMatches:function(){return l.useMatches},useNavigate:function(){return l.useNavigate},useParams:function(){return l.useParams},useResolvedPath:function(){return l.useResolvedPath},Link:function(){return _},NavLink:function(){return M},RouterProvider:function(){return U},createBrowserRouter:function(){return E},createHashRouter:function(){return R}});var n,a,o,i,s=r("61078"),u=r("82157"),l=r("95912"),c=r("70765");function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}var f="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}var p=null,m=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function y(e){return null==e||m.has(e)?e:null}var g=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],b=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],w=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset","unstable_viewTransition"];function E(e,t){return(0,c.createRouter)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.createBrowserHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:l.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function R(e,t){return(0,c.createRouter)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.createHashHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:l.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function x(){var e,t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d({},t,{errors:function(e){if(!e)return null;var t=Object.entries(e),r={};for(var[n,a]of t)if(a&&"RouteErrorResponse"===a.__type)r[n]=new c.UNSAFE_ErrorResponseImpl(a.status,a.statusText,a.data,!0===a.internal);else if(a&&"Error"===a.__type){if(a.__subType){var o=window[a.__subType];if("function"==typeof o)try{var i=new o(a.message);i.stack="",r[n]=i}catch(e){}}if(null==r[n]){var s=Error(a.message);s.stack="",r[n]=s}}else r[n]=a;return r}(t.errors)})),t}var S=u.createContext({isTransitioning:!1}),P=u.startTransition;class D{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function U(e){var{fallbackElement:t,router:r,future:n}=e,[a,o]=u.useState(r.state),[i,c]=u.useState(),[d,h]=u.useState({isTransitioning:!1}),[f,v]=u.useState(),[p,m]=u.useState(),[y,g]=u.useState(),{v7_startTransition:b}=n||{},w=u.useCallback(e=>{if(b){var t;t=e,P?P(t):t()}else e()},[b]),E=u.useCallback((e,t)=>{var{unstable_viewTransitionOpts:n}=t;n&&null!=r.window&&"function"==typeof r.window.document.startViewTransition?p&&f?(f.resolve(),p.skipTransition(),g({state:e,currentLocation:n.currentLocation,nextLocation:n.nextLocation})):(c(e),h({isTransitioning:!0,currentLocation:n.currentLocation,nextLocation:n.nextLocation})):w(()=>o(e))},[w,p,f,r.window]);u.useLayoutEffect(()=>r.subscribe(E),[r,E]),u.useEffect(()=>{d.isTransitioning&&v(new D)},[d.isTransitioning]),u.useEffect(()=>{if(f&&i&&r.window){var e=f.promise,t=r.window.document.startViewTransition((0,s._)(function*(){w(()=>o(i)),yield e}));t.finished.finally(()=>{v(void 0),m(void 0),c(void 0),h({isTransitioning:!1})}),m(t)}},[w,i,f,r.window]),u.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,p,a.location,i]),u.useEffect(()=>{!d.isTransitioning&&y&&(c(y.state),h({isTransitioning:!0,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),g(void 0))},[d.isTransitioning,y]);var R=u.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),x=r.basename||"/",U=u.useMemo(()=>({router:r,navigator:R,static:!1,basename:x}),[r,R,x]);return u.createElement(u.Fragment,null,u.createElement(l.UNSAFE_DataRouterContext.Provider,{value:U},u.createElement(l.UNSAFE_DataRouterStateContext.Provider,{value:a},u.createElement(S.Provider,{value:d},u.createElement(l.Router,{basename:x,location:a.location,navigationType:a.historyAction,navigator:R},a.initialized?u.createElement(C,{routes:r.routes,state:a}):t)))),null)}function C(e){var{routes:t,state:r}=e;return(0,l.UNSAFE_useRoutesImpl)(t,void 0,r)}var L="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,A=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_=u.forwardRef(function(e,t){var r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:f,to:v,preventScrollReset:p,unstable_viewTransition:m}=e,y=h(e,g),{basename:b}=u.useContext(l.UNSAFE_NavigationContext),w=!1;if("string"==typeof v&&A.test(v)&&(r=v,L))try{var E=new URL(window.location.href),R=new URL(v.startsWith("//")?E.protocol+v:v),x=(0,c.stripBasename)(R.pathname,b);R.origin===E.origin&&null!=x?v=x+R.search+R.hash:w=!0}catch(e){}var S=(0,l.useHref)(v,{relative:a}),P=function(e,t){var{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=void 0===t?{}:t,c=(0,l.useNavigate)(),d=(0,l.useLocation)(),h=(0,l.useResolvedPath)(e,{relative:i});return u.useCallback(t=>{var u,f,v;if(u=t,f=r,0===u.button&&(!f||"_self"===f)&&!((v=u).metaKey||v.altKey||v.ctrlKey||v.shiftKey))t.preventDefault(),c(e,{replace:void 0!==n?n:(0,l.createPath)(d)===(0,l.createPath)(h),state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})},[d,c,h,n,a,r,e,o,i,s])}(v,{replace:i,state:s,target:f,preventScrollReset:p,relative:a,unstable_viewTransition:m});return u.createElement("a",d({},y,{href:r||S,onClick:w||o?n:function(e){n&&n(e),!e.defaultPrevented&&P(e)},ref:t,target:f}))}),M=u.forwardRef(function(e,t){var r,{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:s=!1,style:f,to:v,unstable_viewTransition:p,children:m}=e,y=h(e,b),g=(0,l.useResolvedPath)(v,{relative:y.relative}),w=(0,l.useLocation)(),E=u.useContext(l.UNSAFE_DataRouterStateContext),{navigator:R}=u.useContext(l.UNSAFE_NavigationContext),x=null!=E&&function(e,t){void 0===t&&(t={});var r=u.useContext(S);null!=r||(0,c.UNSAFE_invariant)(!1);var{basename:n}=N(o.useViewTransitionState),a=(0,l.useResolvedPath)(e,{relative:t.relative});if(!r.isTransitioning)return!1;var i=(0,c.stripBasename)(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=(0,c.stripBasename)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,c.matchPath)(a.pathname,s)||null!=(0,c.matchPath)(a.pathname,i)}(g)&&!0===p,P=R.encodeLocation?R.encodeLocation(g).pathname:g.pathname,D=w.pathname,U=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;!a&&(D=D.toLowerCase(),U=U?U.toLowerCase():null,P=P.toLowerCase());var C=D===P||!s&&D.startsWith(P)&&"/"===D.charAt(P.length),L=null!=U&&(U===P||!s&&U.startsWith(P)&&"/"===U.charAt(P.length)),A={isActive:C,isPending:L,isTransitioning:x},M=C?n:void 0;r="function"==typeof i?i(A):[i,C?"active":null,L?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");var k="function"==typeof f?f(A):f;return u.createElement(_,d({},y,{"aria-current":M,className:r,ref:t,style:k,to:v,unstable_viewTransition:p}),"function"==typeof m?m(A):m)}),k=u.forwardRef((e,t)=>{var{reloadDocument:r,replace:n,state:a,method:o="get",action:i,onSubmit:s,submit:f,relative:v,preventScrollReset:p,unstable_viewTransition:m}=e,y=h(e,w),g="get"===o.toLowerCase()?"get":"post",b=function(e,t){var{relative:r}=void 0===t?{}:t,{basename:n}=u.useContext(l.UNSAFE_NavigationContext),a=u.useContext(l.UNSAFE_RouteContext);a||(0,c.UNSAFE_invariant)(!1);var[o]=a.matches.slice(-1),i=d({},(0,l.useResolvedPath)(e||".",{relative:r})),s=(0,l.useLocation)();if(null==e&&(i.search=s.search,o.route.index)){var h=new URLSearchParams(i.search);h.delete("index"),i.search=h.toString()?"?"+h.toString():""}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:(0,c.joinPaths)([n,i.pathname])),(0,l.createPath)(i)}(i,{relative:v});return u.createElement("form",d({ref:t,method:g,action:b,onSubmit:r?s:e=>{if(s&&s(e),!e.defaultPrevented){e.preventDefault();var t=e.nativeEvent.submitter,r=(null==t?void 0:t.getAttribute("formmethod"))||o;f(t||e.currentTarget,{method:r,replace:n,state:a,relative:v,preventScrollReset:p,unstable_viewTransition:m})}}},y))});function N(e){var t=u.useContext(l.UNSAFE_DataRouterContext);return t||(0,c.UNSAFE_invariant)(!1),t}(n=o||(o={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=i||(i={})).UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"},95912:function(e,t,r){"use strict";r.r(t),r.d(t,{createPath:function(){return s.createPath},matchPath:function(){return s.matchPath},matchRoutes:function(){return s.matchRoutes},redirect:function(){return s.redirect},Outlet:function(){return k},Route:function(){return N},Router:function(){return T},UNSAFE_DataRouterContext:function(){return l},UNSAFE_DataRouterStateContext:function(){return c},UNSAFE_NavigationContext:function(){return d},UNSAFE_RouteContext:function(){return f},UNSAFE_mapRouteProperties:function(){return j},UNSAFE_useRouteId:function(){return _},UNSAFE_useRoutesImpl:function(){return x},createRoutesFromElements:function(){return function e(t,r){void 0===r&&(r=[]);var n=[];return i.Children.forEach(t,(t,a)=>{if(i.isValidElement(t)){var o=[...r,a];if(t.type===i.Fragment){n.push.apply(n,e(t.props.children,o));return}t.type!==N&&(0,s.UNSAFE_invariant)(!1),!t.props.index||!t.props.children||(0,s.UNSAFE_invariant)(!1);var u={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(u.children=e(t.props.children,o)),n.push(u)}}),n}},useHref:function(){return p},useLocation:function(){return y},useMatches:function(){return M},useNavigate:function(){return b},useParams:function(){return E},useResolvedPath:function(){return R}});var n,a,o,i=r("82157"),s=r("70765");function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var l=i.createContext(null),c=i.createContext(null),d=i.createContext(null),h=i.createContext(null),f=i.createContext({outlet:null,matches:[],isDataRoute:!1}),v=i.createContext(null);function p(e,t){var{relative:r}=void 0===t?{}:t;m()||(0,s.UNSAFE_invariant)(!1);var{basename:n,navigator:a}=i.useContext(d),{hash:o,pathname:u,search:l}=R(e,{relative:r}),c=u;return"/"!==n&&(c="/"===u?n:(0,s.joinPaths)([n,u])),a.createHref({pathname:c,search:l,hash:o})}function m(){return null!=i.useContext(h)}function y(){return m()||(0,s.UNSAFE_invariant)(!1),i.useContext(h).location}function g(e){!i.useContext(d).static&&i.useLayoutEffect(e)}function b(){var{isDataRoute:e}=i.useContext(f);return e?function(){var e,t,{router:r}=(e=U.UseNavigateStable,(t=i.useContext(l))||(0,s.UNSAFE_invariant)(!1),t),n=A(C.UseNavigateStable),a=i.useRef(!1);return g(()=>{a.current=!0}),i.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?r.navigate(e):r.navigate(e,u({fromRouteId:n},t)))},[r,n])}():function(){m()||(0,s.UNSAFE_invariant)(!1);var e=i.useContext(l),{basename:t,navigator:r}=i.useContext(d),{matches:n}=i.useContext(f),{pathname:a}=y(),o=JSON.stringify((0,s.UNSAFE_getPathContributingMatches)(n).map(e=>e.pathnameBase)),u=i.useRef(!1);return g(()=>{u.current=!0}),i.useCallback(function(n,i){if(void 0===i&&(i={}),u.current){if("number"==typeof n){r.go(n);return}var l=(0,s.resolveTo)(n,JSON.parse(o),a,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.joinPaths)([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}},[t,r,o,a,e])}()}var w=i.createContext(null);function E(){var{matches:e}=i.useContext(f),t=e[e.length-1];return t?t.params:{}}function R(e,t){var{relative:r}=void 0===t?{}:t,{matches:n}=i.useContext(f),{pathname:a}=y(),o=JSON.stringify((0,s.UNSAFE_getPathContributingMatches)(n).map(e=>e.pathnameBase));return i.useMemo(()=>(0,s.resolveTo)(e,JSON.parse(o),a,"path"===r),[e,o,a,r])}function x(e,t,r){m()||(0,s.UNSAFE_invariant)(!1);var{navigator:n}=i.useContext(d),{matches:a}=i.useContext(f),o=a[a.length-1],l=o?o.params:{};o&&o.pathname;var c=o?o.pathnameBase:"/";o&&o.route;var v=y();if(t){var p,g,b="string"==typeof t?(0,s.parsePath)(t):t;"/"===c||(null==(g=b.pathname)?void 0:g.startsWith(c))||(0,s.UNSAFE_invariant)(!1),p=b}else p=v;var w=p.pathname||"/",E="/"===c?w:w.slice(c.length)||"/",R=(0,s.matchRoutes)(e,{pathname:E}),x=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=null),null==e){if(null==(a=r)||!a.errors)return null;e=r.matches}var n,a,o=e,u=null==(n=r)?void 0:n.errors;if(null!=u){var l=o.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));l>=0||(0,s.UNSAFE_invariant)(!1),o=o.slice(0,Math.min(o.length,l+1))}return o.reduceRight((e,n,a)=>{var s=n.route.id?null==u?void 0:u[n.route.id]:null,l=null;r&&(l=n.route.errorElement||S);var c=t.concat(o.slice(0,a+1)),d=()=>{var t;return t=s?l:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(D,{match:n,routeContext:{outlet:e,matches:c,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?i.createElement(P,{location:r.location,revalidation:r.revalidation,component:l,error:s,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()},null)}(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:(0,s.joinPaths)([c,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:(0,s.joinPaths)([c,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,r);return t&&x?i.createElement(h.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:s.Action.Pop}},x):x}var S=i.createElement(function(){var e=function(){var e,t=i.useContext(v),r=L(C.UseRouteError),n=A(C.UseRouteError);return t?t:null==(e=r.errors)?void 0:e[n]}(),t=(0,s.isRouteErrorResponse)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class P extends i.Component{static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?i.createElement(f.Provider,{value:this.props.routeContext},i.createElement(v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function D(e){var{routeContext:t,match:r,children:n}=e,a=i.useContext(l);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(f.Provider,{value:t},n)}var U=((n=U||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n);var C=((a=C||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function L(e){var t=i.useContext(c);return t||(0,s.UNSAFE_invariant)(!1),t}function A(e){var t,r,n=(t=0,(r=i.useContext(f))||(0,s.UNSAFE_invariant)(!1),r),a=n.matches[n.matches.length-1];return a.route.id||(0,s.UNSAFE_invariant)(!1),a.route.id}function _(){return A(C.UseRouteId)}function M(){var{matches:e,loaderData:t}=L(C.UseMatches);return i.useMemo(()=>e.map(e=>(0,s.UNSAFE_convertRouteMatchToUiMatch)(e,t)),[e,t])}function k(e){var t,r;return t=e.context,(r=i.useContext(f).outlet)?i.createElement(w.Provider,{value:t},r):r}function N(e){(0,s.UNSAFE_invariant)(!1)}function T(e){var{basename:t="/",children:r=null,location:n,navigationType:a=s.Action.Pop,navigator:o,static:u=!1}=e;m()&&(0,s.UNSAFE_invariant)(!1);var l=t.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:l,navigator:o,static:u}),[l,o,u]);"string"==typeof n&&(n=(0,s.parsePath)(n));var{pathname:f="/",search:v="",hash:p="",state:y=null,key:g="default"}=n,b=i.useMemo(()=>{var e=(0,s.stripBasename)(f,l);return null==e?null:{location:{pathname:e,search:v,hash:p,state:y,key:g},navigationType:a}},[l,f,v,p,y,g,a]);return null==b?null:i.createElement(d.Provider,{value:c},i.createElement(h.Provider,{children:r,value:b}))}i.startTransition;var F=((o=F||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);new Promise(()=>{});function j(e){var t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}}}]);
|
package/dist/static/js/{lib-router.d9cdb309.js.LICENSE.txt → lib-router.b2c6e9a5.js.LICENSE.txt}
RENAMED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
/*! @remix-run/router */
|
|
2
|
+
|
|
3
|
+
/*! react */
|
|
4
|
+
|
|
5
|
+
/*! @swc/helpers/_/_async_to_generator */
|
|
6
|
+
|
|
7
|
+
/*! @remix-run/router */
|
|
8
|
+
|
|
9
|
+
/*! react-router */
|
|
10
|
+
|
|
1
11
|
/**
|
|
2
|
-
* React Router
|
|
12
|
+
* React Router v6.17.0
|
|
3
13
|
*
|
|
4
14
|
* Copyright (c) Remix Software Inc.
|
|
5
15
|
*
|
|
@@ -10,7 +20,7 @@
|
|
|
10
20
|
*/
|
|
11
21
|
|
|
12
22
|
/**
|
|
13
|
-
* React Router v6.17.0
|
|
23
|
+
* React Router DOM v6.17.0
|
|
14
24
|
*
|
|
15
25
|
* Copyright (c) Remix Software Inc.
|
|
16
26
|
*
|
|
@@ -20,6 +30,10 @@
|
|
|
20
30
|
* @license MIT
|
|
21
31
|
*/
|
|
22
32
|
|
|
33
|
+
/*! @swc/helpers/_/_async_to_generator */
|
|
34
|
+
|
|
35
|
+
/*! react */
|
|
36
|
+
|
|
23
37
|
/**
|
|
24
38
|
* @remix-run/router v1.10.0
|
|
25
39
|
*
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see mount.8b5aa6ee.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).push([["400"],{56961:function(e,t,r){"use strict";var o,n=Symbol.for("react.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen");function $(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case f:case u:case s:case m:case p:return e;default:switch(e=e&&e.$$typeof){case l:case a:case y:case S:case d:case i:return e;default:return t}}case c:return t}}}o=Symbol.for("react.module.reference"),t.ContextConsumer=a,t.ContextProvider=i,t.Element=n,t.ForwardRef=y,t.Fragment=f,t.Lazy=S,t.Memo=d,t.Portal=c,t.Profiler=u,t.StrictMode=s,t.Suspense=m,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return $(e)===a},t.isContextProvider=function(e){return $(e)===i},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return $(e)===y},t.isFragment=function(e){return $(e)===f},t.isLazy=function(e){return $(e)===S},t.isMemo=function(e){return $(e)===d},t.isPortal=function(e){return $(e)===c},t.isProfiler=function(e){return $(e)===u},t.isStrictMode=function(e){return $(e)===s},t.isSuspense=function(e){return $(e)===m},t.isSuspenseList=function(e){return $(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===f||e===u||e===s||e===m||e===p||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===S||e.$$typeof===d||e.$$typeof===i||e.$$typeof===a||e.$$typeof===y||e.$$typeof===o||void 0!==e.getModuleId)},t.typeOf=$},29955:function(e,t,r){"use strict";e.exports=r("56961")}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["111","361","378","427","707"],function(){return t("54094"),t("91201"),t("14694"),t("55597"),t("27345")}),e.O()}]);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*! ./cjs/react-is.production.min.js */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-is.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
package/exports/mount.mjs
CHANGED
|
@@ -1,41 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
/* eslint-disable no-inner-declarations */
|
|
3
|
-
/* eslint-disable no-var */
|
|
1
|
+
import { initialize } from 'react-devtools-inline/backend';
|
|
4
2
|
import routesManifest from '../dist/routes-manifest.json';
|
|
5
3
|
|
|
6
|
-
|
|
4
|
+
if (!window.opener) {
|
|
7
5
|
try {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} else if (asset.endsWith('.css')) {
|
|
20
|
-
el = document.createElement('link');
|
|
21
|
-
el.href = asset;
|
|
22
|
-
el.rel = 'stylesheet';
|
|
6
|
+
// Delete existing devtools hooks registered by react devtools extension.
|
|
7
|
+
try {
|
|
8
|
+
delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
9
|
+
} catch {}
|
|
10
|
+
// Call this before importing React (or any other packages that might import React).
|
|
11
|
+
initialize(window);
|
|
12
|
+
// Deny react devtools extension to activate.
|
|
13
|
+
const originSubHook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;
|
|
14
|
+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub = (e, handler) => {
|
|
15
|
+
if (e === 'devtools-backend-installed') {
|
|
16
|
+
return undefined;
|
|
23
17
|
}
|
|
24
|
-
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var app = document.createElement('div');
|
|
28
|
-
app.className = '_modern_js_devtools_mountpoint theme-register';
|
|
29
|
-
var appGlobalExport = '_modern_js_devtools_app';
|
|
30
|
-
window[appGlobalExport] = {
|
|
31
|
-
container: app,
|
|
32
|
-
// eslint-disable-next-line no-undef
|
|
33
|
-
resourceQuery: __resourceQuery,
|
|
18
|
+
return originSubHook(e, handler);
|
|
34
19
|
};
|
|
35
|
-
shadow.appendChild(app);
|
|
36
20
|
} catch (err) {
|
|
37
|
-
|
|
21
|
+
const e = new Error('Failed to inject React DevTools backend.');
|
|
38
22
|
e.cause = err;
|
|
39
23
|
console.error(e);
|
|
40
24
|
}
|
|
41
|
-
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
try {
|
|
28
|
+
const container = document.createElement('div');
|
|
29
|
+
container.className = '_modern_js_devtools_container';
|
|
30
|
+
document.body.appendChild(container);
|
|
31
|
+
|
|
32
|
+
const shadow = container.attachShadow({ mode: 'closed' });
|
|
33
|
+
|
|
34
|
+
for (const asset of routesManifest.routeAssets.mount.assets) {
|
|
35
|
+
if (asset.endsWith('.js')) {
|
|
36
|
+
const el = document.createElement('script');
|
|
37
|
+
el.src = asset;
|
|
38
|
+
shadow.appendChild(el);
|
|
39
|
+
} else if (asset.endsWith('.css')) {
|
|
40
|
+
const el = document.createElement('link');
|
|
41
|
+
el.href = asset;
|
|
42
|
+
el.rel = 'stylesheet';
|
|
43
|
+
shadow.appendChild(el);
|
|
44
|
+
} else {
|
|
45
|
+
console.warn(new Error(`Can't resolve unknown asset tag: ${asset}`));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const app = document.createElement('div');
|
|
50
|
+
app.className = '_modern_js_devtools_mountpoint theme-register';
|
|
51
|
+
const appGlobalExport = '_modern_js_devtools_app';
|
|
52
|
+
window[appGlobalExport] ||= {};
|
|
53
|
+
Object.assign(window[appGlobalExport], {
|
|
54
|
+
container: app,
|
|
55
|
+
// eslint-disable-next-line no-undef
|
|
56
|
+
resourceQuery: __resourceQuery,
|
|
57
|
+
});
|
|
58
|
+
shadow.appendChild(app);
|
|
59
|
+
} catch (err) {
|
|
60
|
+
const e = new Error('Failed to execute mount point of DevTools.');
|
|
61
|
+
e.cause = err;
|
|
62
|
+
console.error(e);
|
|
63
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/devtools-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.42.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0"
|
|
6
6
|
},
|
|
@@ -12,49 +12,57 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": "./dist/html/client/index.html",
|
|
14
14
|
"./mount": "./exports/mount.mjs",
|
|
15
|
+
"./sw-proxy": "./dist/public/sw-proxy.js",
|
|
15
16
|
"./package.json": "./package.json"
|
|
16
17
|
},
|
|
17
|
-
"dependencies": {},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
20
20
|
"@radix-ui/react-icons": "^1.3.0",
|
|
21
21
|
"@radix-ui/react-popover": "^1.0.7",
|
|
22
22
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
23
23
|
"@radix-ui/themes": "^2.0.0",
|
|
24
|
+
"@rsbuild/core": "^0.1.0",
|
|
24
25
|
"@types/jest": "^29",
|
|
25
26
|
"@types/lodash": "^4.14.202",
|
|
26
27
|
"@types/node": "~16.11.7",
|
|
27
28
|
"@types/react": "^18",
|
|
29
|
+
"@types/react-devtools-inline": "^4.24.8",
|
|
28
30
|
"@types/react-dom": "^18",
|
|
29
31
|
"birpc": "0.2.13",
|
|
30
32
|
"clsx": "^1.2.1",
|
|
31
33
|
"lodash": "^4.17.21",
|
|
34
|
+
"nanoid": "3.3.4",
|
|
32
35
|
"p-defer": "^3.0.0",
|
|
33
36
|
"postcss-custom-media": "^10.0.1",
|
|
34
|
-
"react": "
|
|
37
|
+
"react": "^18.2.0",
|
|
38
|
+
"react-exp": "npm:react@0.0.0-experimental-51ffd3564-20231025",
|
|
35
39
|
"react-base16-styling": "^0.9.1",
|
|
36
|
-
"react-
|
|
40
|
+
"react-devtools-inline": "^4.28.5",
|
|
41
|
+
"react-dom": "^18.2.0",
|
|
42
|
+
"react-dom-exp": "npm:react-dom@0.0.0-experimental-51ffd3564-20231025",
|
|
37
43
|
"react-icons": "^4.11.0",
|
|
44
|
+
"react-is": "^18",
|
|
38
45
|
"react-json-tree": "^0.18.0",
|
|
39
46
|
"react-json-view": "^1.21.3",
|
|
40
47
|
"react-use": "^17.4.0",
|
|
41
48
|
"rimraf": "^3.0.2",
|
|
49
|
+
"scheduler": "^0.23.0",
|
|
42
50
|
"suspend-react": "^0.1.3",
|
|
43
51
|
"type-fest": "^4.1.0",
|
|
44
52
|
"typescript": "~5.0.4",
|
|
45
53
|
"ufo": "^1.3.0",
|
|
46
54
|
"valtio": "^1.11.1",
|
|
47
|
-
"@modern-js-app/eslint-config": "2.
|
|
48
|
-
"@modern-js/
|
|
49
|
-
"@modern-js/
|
|
50
|
-
"@modern-js/builder-shared": "2.
|
|
51
|
-
"@modern-js/devtools-kit": "2.
|
|
52
|
-
"@modern-js/eslint-config": "2.
|
|
53
|
-
"@modern-js/plugin-proxy": "2.
|
|
54
|
-
"@modern-js/
|
|
55
|
-
"@modern-js/tsconfig": "2.
|
|
56
|
-
"@modern-js/
|
|
57
|
-
"@modern-js/
|
|
55
|
+
"@modern-js-app/eslint-config": "2.42.0",
|
|
56
|
+
"@modern-js/app-tools": "2.42.0",
|
|
57
|
+
"@modern-js/builder-rspack-provider": "2.42.0",
|
|
58
|
+
"@modern-js/builder-shared": "2.42.0",
|
|
59
|
+
"@modern-js/devtools-kit": "2.42.0",
|
|
60
|
+
"@modern-js/eslint-config": "2.42.0",
|
|
61
|
+
"@modern-js/plugin-proxy": "2.42.0",
|
|
62
|
+
"@modern-js/runtime": "2.42.0",
|
|
63
|
+
"@modern-js/tsconfig": "2.42.0",
|
|
64
|
+
"@modern-js/types": "2.42.0",
|
|
65
|
+
"@modern-js/utils": "2.42.0"
|
|
58
66
|
},
|
|
59
67
|
"scripts": {
|
|
60
68
|
"reset": "npx rimraf ./**/node_modules",
|
package/dist/nestedRoutes.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"client":[{"path":"/","children":[{"path":"config","children":[{"_component":"@_modern_js_src/client/routes/config/[toolkit].[type]/page.tsx","id":"client_config/(toolkit).(type)/page","type":"nested","loader":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/config/[toolkit].[type]/page.loader.ts","path":":toolkit/:type"},{"_component":"@_modern_js_src/client/routes/config/page.tsx","index":true,"id":"client_config/page","type":"nested","loader":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/config/page.loader.ts"}],"isRoot":false,"config":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/config/layout.config.tsx","_component":"@_modern_js_src/client/routes/config/layout.tsx","id":"client_config/layout","type":"nested"},{"path":"context","children":[{"_component":"@_modern_js_src/client/routes/context/builder/page.tsx","id":"client_context/builder/page","type":"nested","path":"builder"},{"_component":"@_modern_js_src/client/routes/context/framework/page.tsx","id":"client_context/framework/page","type":"nested","path":"framework"},{"_component":"@_modern_js_src/client/routes/context/page.tsx","index":true,"id":"client_context/page","type":"nested","loader":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/context/page.loader.ts"}],"isRoot":false,"config":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/context/layout.config.tsx","_component":"@_modern_js_src/client/routes/context/layout.tsx","id":"client_context/layout","type":"nested"},{"path":"overview","children":[{"_component":"@_modern_js_src/client/routes/overview/page.tsx","index":true,"id":"client_overview/page","type":"nested"}],"isRoot":false,"config":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/overview/layout.config.tsx","id":"client_overview/layout","type":"nested"},{"_component":"@_modern_js_src/client/routes/page.tsx","index":true,"id":"client_page","type":"nested","loader":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/page.loader.ts"},{"path":"pages","children":[{"_component":"@_modern_js_src/client/routes/pages/page.tsx","index":true,"id":"client_pages/page","type":"nested"}],"isRoot":false,"config":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/pages/layout.config.ts","_component":"@_modern_js_src/client/routes/pages/layout.tsx","id":"client_pages/layout","type":"nested"}],"isRoot":true,"config":"/home/bytedance/actions-runner/_work/modern.js/modern.js/packages/devtools/client/src/client/routes/layout.config.tsx","_component":"@_modern_js_src/client/routes/layout.tsx","id":"client_layout","type":"nested"}]}
|
package/dist/route.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"routes": [
|
|
3
|
-
{
|
|
4
|
-
"urlPath": "/",
|
|
5
|
-
"entryName": "client",
|
|
6
|
-
"entryPath": "html/client/index.html",
|
|
7
|
-
"isSPA": true,
|
|
8
|
-
"isStream": false,
|
|
9
|
-
"isSSR": false
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"urlPath": "/mount",
|
|
13
|
-
"entryName": "mount",
|
|
14
|
-
"entryPath": "html/mount/index.html",
|
|
15
|
-
"isSPA": true,
|
|
16
|
-
"isStream": false,
|
|
17
|
-
"isSSR": false
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.container-c37215{align-items:center;bottom:0;display:flex;justify-content:center;left:0;pointer-events:none;position:fixed;right:0;top:0}.container-c37215>*{pointer-events:auto}.fab-_7c8ca{background-color:var(--gray-2);border:none;border-radius:999px;bottom:10px;box-shadow:var(--shadow-5);cursor:pointer;display:flex;height:-webkit-max-content;height:-moz-max-content;height:max-content;position:fixed;right:10px;touch-action:none;width:-webkit-max-content;width:-moz-max-content;width:max-content}.fab-_7c8ca *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.logo-_20f35{height:1.5rem;object-fit:contain;width:1.5rem}.heading-_3cf55{color:var(--gray-a10);height:1rem;margin:0 var(--space-2);width:3.25rem}.container-_51019{bottom:0;box-shadow:var(--shadow-5);left:0;overflow:hidden;position:fixed;right:0;top:0}@media (min-width:520px){.container-_51019{border-radius:.75rem;height:35rem;position:relative;width:50rem}}.close-button-_5ece7{color:var(--gray-8);cursor:pointer;position:absolute;right:10px;top:10px}.frame-f01876{border:none;height:100%;width:100%}.backdrop-_5650a{stroke:#555;align-items:center;background-color:var(--gray-2);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.loading-c577a3{animation:rotate-c881c2 1s linear infinite}@keyframes rotate-c881c2{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.container-_550b5{font-size:var(--font-size-2)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.container-_550b5{font-size:var(--font-size-2)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.container-_550b5{font-size:var(--font-size-2)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.container-cff7d1{max-width:40rem}.bottom-tip-_19da6{opacity:.3;transition:opacity .3s}.bottom-tip-_19da6:hover{opacity:1}.indicate-card-f0a338{border-radius:var(--radius-6);box-shadow:var(--shadow-4);padding:var(--space-5)}.dark .indicate-card-f0a338{background-color:var(--gray-1)}.primary-card-c472eb{background-color:var(--blue-9);flex:4 1;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.dark .primary-card-c472eb{background-color:var(--blue-10)}.primary-card-c472eb button{background-color:var(--black-a2);border:none;border-radius:var(--radius-thumb);font-size:var(--font-size-1);font-weight:var(--font-weight-medium);overflow:hidden;padding:var(--space-1) var(--space-2)}.primary-card-c472eb button:active,.primary-card-c472eb button:hover{background-color:var(--black-a1)}.compile-time-card-d26ed6{flex:2 1}.plugin-card-_404b0{flex:2 1;min-width:15rem}.info-card-_377eb{flex:2 1;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.indicate-bar-_6e86d{color:var(--gray-9);flex:1 1;font-size:var(--font-size-1);min-width:var(--space-1);white-space:nowrap}.indicate-bar-_6e86d:before{border-radius:var(--radius-thumb);content:"";display:block;height:var(--space-1);text-align:center;width:100%}.indicate-bar-_6e86d:nth-child(odd):before{background-color:var(--blue-9)}.indicate-bar-_6e86d:nth-child(2n):before{background-color:var(--red-9)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.container-b3aa71{max-width:40rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.input-d6980e{background-image:linear-gradient(to bottom,var(--gray-2),95%,transparent);left:var(--navigator-width);padding-bottom:10px;padding-top:var(--breadcrumb-height);position:fixed;right:0;top:0}.container-_42539{background-color:var(--gray-1);border-radius:var(--radius-2);box-shadow:var(--shadow-4)}.trigger-_79929{all:unset;align-items:center;cursor:pointer;display:flex;gap:var(--space-2);width:100%}.trigger-_79929 *{cursor:pointer}.content-_3d70b{overflow:hidden;padding-top:var(--space-2)}.content-_3d70b[data-state=open]{animation:slideDown-_29ebd .15s ease-out}.content-_3d70b[data-state=closed]{animation:slideUp-bb3123 .15s ease-out}@keyframes slideDown-_29ebd{0%{height:0;opacity:0}to{height:var(--radix-collapsible-content-height);opacity:1}}@keyframes slideUp-bb3123{0%{height:var(--radix-collapsible-content-height);opacity:1}to{height:0;opacity:0}}.url-text-dbc4b7{color:var(--gray-12);font-size:var(--font-size-2);transition:color .2s}.mark-d151cd{align-items:center;background-color:transparent;border-radius:var(--radius-2);display:flex;height:var(--font-size-5);justify-content:center;transition:background-color .1s;width:var(--font-size-5)}.mark-d151cd[data-open=true]{background-color:var(--gray-4)}.stats-_3b29b{color:var(--gray-10);font-size:var(--font-size-1);white-space:nowrap}.endpoint-tag-_799fe{font-size:var(--font-size-2)}.endpoint-tag-_799fe[data-compose=head]{border-bottom-right-radius:0;border-top-right-radius:0;padding-right:0}.endpoint-tag-_799fe[data-compose=tail]{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:0}.shy-link-_2110a{color:var(--gray-9);font-size:var(--font-size-1)}.endpoint-container-_5a4a3{display:flex;transition:opacity .2s}.endpoint-container-_5a4a3[data-matched=false]{opacity:.5}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
button{cursor:pointer}.wrapper-e34ad3{--navigator-width:var(--space-8);--breadcrumb-height:var(--space-7)}.inner-_79c5a{min-height:100vh;padding-left:var(--navigator-width);width:100vw}.inner-right-_5a7d0{background-color:var(--gray-2);padding-top:var(--breadcrumb-height)}.container-ff1a18{min-height:calc(100vh - var(--breadcrumb-height))}.navigator-ff3a9d{border-right:solid 1px var(--gray-3);bottom:0;left:0;padding:var(--space-1) 0;position:fixed;top:0;width:var(--navigator-width)}.breadcrumbs-_1e5ef{background-image:linear-gradient(to bottom,var(--color-panel-solid),85%,transparent);height:var(--breadcrumb-height);left:var(--navigator-width);position:fixed;right:0;top:0;width:auto}.tab-button-a5bd7c{align-items:center;color:var(--gray-8);cursor:pointer;display:flex;gap:var(--space-1);padding:var(--space-1) var(--space-2);transition:color .1s;width:var(--space-8)}.tab-button-a5bd7c.active,.tab-button-a5bd7c:hover{color:var(--gray-11)}.tab-button-inner-_607f8{border-radius:var(--radius-3);transition:background-color .3s}.tab-button-a5bd7c.active .tab-button-inner-_607f8{background-color:var(--gray-4)}.fading-mask-_45c37{background:linear-gradient(to bottom,var(--color-background),transparent);left:0;pointer-events:none;position:absolute;right:0;top:0}.link-_02359{color:var(--gray-10)}.connector-_2c5bd{color:var(--gray-6);height:var(--font-size-2);width:var(--font-size-2)}.tooltip-_56e94{--radix-tooltip-content-available-height:20rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).push([["476"],{33360:function(e,t,a){"use strict";a.r(t),a.d(t,{ReactComponent:function(){return i}});var n,o=a("6171");function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}var i=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:455.127,height:76.954,viewBox:"0 0 455.127 76.954"},e),n||(n=o.createElement("g",{fill:"currentColor",fillRule:"evenodd",strokeLinecap:"round",fontSize:12},o.createElement("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"}))))},53946:function(e,t,a){"use strict";a.r(t),a.d(t,{ReactComponent:function(){return i}});var n,o=a("6171");function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}var i=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",stroke:"currentColor",strokeWidth:0,"aria-hidden":"true",style:{"--darkreader-inline-fill":"currentColor","--darkreader-inline-stroke":"currentColor"},viewBox:"0 0 20 20"},e),n||(n=o.createElement("path",{stroke:"none",d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22z"})))},99037:function(e,t,a){"use strict";e.exports={container:"container-c37215",container:"container-c37215",fab:"fab-_7c8ca",fab:"fab-_7c8ca",heading:"heading-_3cf55",heading:"heading-_3cf55",logo:"logo-_20f35",logo:"logo-_20f35"}},49945:function(e,t,a){"use strict";e.exports={backdrop:"backdrop-_5650a",backdrop:"backdrop-_5650a","close-button":"close-button-_5ece7",closeButton:"close-button-_5ece7",container:"container-_51019",container:"container-_51019",frame:"frame-f01876",frame:"frame-f01876",loading:"loading-c577a3",loading:"loading-c577a3",rotate:"rotate-c881c2",rotate:"rotate-c881c2"}},91201:function(e,t,a){"use strict";a.r(t),a("25264"),a("59769"),a("19993"),a("80192"),a("13581"),a("34770"),a("83853"),a("40789"),a("36986"),a("21159"),a("56525"),a("40993"),a("54313"),a("54935"),a("6383"),a("5737"),a("97381"),a("82623"),a("63351"),a("14560"),a("81253"),a("59000"),a("33668"),a("43016"),a("67279"),a("78494"),a("33905"),a("72659"),a("21042"),a("16679"),a("48253"),a("72013"),a("99933"),a("44073"),a("7856"),a("84160"),a("25046"),a("7382"),a("60371"),a("28963"),a("73"),a("55070"),a("73817"),a("25737"),a("7028"),a("27834"),a("21023"),a("72143"),a("18207"),a("22545"),a("71471"),a("88287"),a("83196"),a("22308"),a("6524"),a("77783"),a("84393"),a("88170"),a("63442"),a("28067"),a("77247"),a("19415"),a("81022"),a("92444"),a("79028"),a("22935"),a("32985"),a("6564"),a("97603"),a("96341"),a("42071"),a("53951"),a("51004"),a("35656"),a("75634"),a("96228"),a("24323"),a("80483"),a("68545"),a("31745"),a("45498"),a("22921"),a("39375"),a("11188"),a("42032"),a("38444"),a("12036"),a("24183"),a("60872"),a("88046"),a("78639"),a("59841"),a("26729"),a("45460"),a("90954"),a("45605"),a("36543"),a("97936"),a("75550"),a("88694"),a("3887"),a("55667"),a("86740"),a("23170"),a("8468"),a("17653"),a("66547"),a("39560"),a("50301"),a("93346"),a("48386"),a("78771"),a("83960"),a("38116"),a("31623"),a("57764"),a("32049"),a("27409"),a("5330"),a("89184"),a("60402"),a("56710"),a("42543"),a("55220"),a("8296"),a("97540"),a("63145"),a("83731"),a("92210"),a("90517"),a("11017"),a("89095"),a("68691"),a("61931"),a("62522"),a("31397"),a("83685"),a("80422"),a("16038"),a("81471"),a("83769"),a("41644"),a("79346"),a("49217"),a("62558"),a("68514"),a("49449"),a("45145"),a("52622"),a("21629"),a("60996"),a("6369"),a("72880"),a("63298"),a("52832"),a("68900"),a("58554"),a("87253"),a("54368"),a("60049"),a("16790"),a("30406"),a("38193"),a("68902"),a("85179"),a("13767"),a("16549"),a("44400"),a("43186"),a("24468"),a("19272"),a("77544"),a("99353"),a("36852"),a("16476"),a("92260"),a("78420"),a("55001"),a("21860"),a("39193"),a("86167"),a("77253"),a("9316"),a("73455"),a("90095"),a("68571"),a("86842"),a("58618"),a("34453"),a("19418"),a("65881"),a("37367"),a("418"),a("190"),a("10283"),a("22111"),a("69392"),a("65383"),a("69724"),a("50848"),a("64008"),a("31898"),a("54130"),a("43136"),a("3686"),a("81048"),a("58754"),a("19416"),a("70071"),a("97588"),a("75213"),a("88265"),a("57275"),a("91654"),a("83788"),a("70920"),a("280"),a("67399"),a("84881"),a("54622"),a("93019"),a("65163"),a("21687"),a("87805"),a("19578"),a("56610"),a("85390"),a("43976"),a("2516"),a("99936"),a("33346"),a("46300"),a("45839"),a("83872"),a("28875"),a("46407"),a("99373"),a("53726"),a("9345"),a("12116"),a("41730"),a("49387"),a("99109"),a("56786"),a("78391"),a("75810"),a("85291"),a("61990"),a("67097"),a("43350"),a("46275"),a("35014"),a("30146"),a("7429"),a("77351"),a("44783"),a("37840"),a("32502"),a("90639"),a("7709"),a("54939"),a("96127"),a("33369"),a("18954"),a("51038"),a("2147"),a("58466"),a("91204"),a("83314"),a("12778"),a("1950"),a("44384"),a("92402"),a("15862"),a("98909"),a("31034"),a("50144"),a("18766"),a("55879"),a("8781"),a("97739"),a("98844"),a("89491"),a("24415"),a("88523"),a("54763"),a("48068"),a("70675"),a("6767"),a("29655"),a("36454"),a("13689"),a("93322"),a("74755")},54094:function(e,t,a){"use strict";a.r(t),window.__assetPrefix__="/__devtools"},21954:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p}});var n=a("15169"),o=a("43932"),r=a("9880"),i=a("54824"),c=a("6171"),l=a("34104"),s=a("78164"),u=a("57753"),d=a("99037"),v=a("18208"),f=a("33360"),h=a("30592"),p=e=>{var t=e.def.assets.logo,[a,p]=(0,l.useToggle)(!1),g=(0,s.withQuery)(e.endpoint,{src:e.dataSource}),m=(0,h.useStickyDraggable)({clamp:!0}),[q,_]=(0,c.useState)(()=>{var e,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,l.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&_(e.newValue||void 0)}),(0,l.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:a,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,o._)((0,n._)({className:d.fab,onClick:()=>p()},m.props),{children:[(0,r.jsx)("img",{className:d.logo,src:t,alt:""}),(0,r.jsx)(f.ReactComponent,{className:d.heading})]}))})]})}},18208:function(e,t,a){"use strict";a.r(t),a.d(t,{FrameBox:function(){return v}});var n=a("15169"),o=a("43932"),r=a("85056"),i=a("9880"),c=a("6171"),l=a("54824"),s=a("50824"),u=a("49945"),d=a("53946"),v=e=>{var{src:t,onClose:a}=e,v=(0,r._)(e,["src","onClose"]),[f,h]=(0,c.useState)(!1);return(0,i.jsxs)(l.Box,(0,o._)((0,n._)({className:u.container},v),{children:[(0,i.jsx)("iframe",{className:u.frame,onLoad:()=>h(!0),src:t}),(0,i.jsx)(d.ReactComponent,{className:u.closeButton,onClick:()=>null==a?void 0:a()}),(0,i.jsx)("div",{className:u.backdrop,style:{display:f?"none":void 0},children:(0,i.jsx)(s.LoaderIcon,{className:u.loading})})]}))}},50824:function(e,t,a){"use strict";a.r(t),a.d(t,{LoaderIcon:function(){return i}});var n=a("15169"),o=a("43932"),r=a("9880");a("6171");var i=e=>(0,r.jsx)("svg",(0,o._)((0,n._)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeDasharray:"56.548667764616276",strokeDashoffset:"14.137166941154069"})}))},57753:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return r}});var n=a("9880"),o=a("6171"),r=e=>{var t,a=null===(t=e.keepAlive)||void 0===t||t,{when:r}=e,i=(0,o.useRef)(!1);r&&(i.current=!0);var c=a?i.current:r;return c?(0,n.jsx)("div",{style:{display:!a||r?"unset":"none"},children:e.children}):null}},23873:function(e,t,a){"use strict";a.r(t);var n=a("15169"),o=a("9880"),r=a("32361"),i=a("78164"),c=a("20918"),l=a.n(c),s=a("21954"),{container:u,resourceQuery:d}=window._modern_js_devtools_app,v=(0,r.createRoot)(u),f=(0,i.parseQuery)(d);if(!l.isString(f.dataSource)||!l.isString(f.def)||!l.isString(f.endpoint))throw TypeError("Failed to parse client definitions of devtools: ".concat(d));var h={dataSource:f.dataSource,endpoint:f.endpoint,def:JSON.parse(f.def)};v.render((0,o.jsx)(s.default,(0,n._)({},h)))},30592:function(e,t,a){"use strict";a.r(t),a.d(t,{useStickyDraggable:function(){return l}});var n=a("6171"),o=a("34104"),r=(e,t)=>{var a,n;return null!==(n=null===(a=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===a?void 0:a.includes(t))&&void 0!==n&&n},i=e=>{var[t,...a]=[{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),n=a.findIndex(e=>{var{key:a}=e;return r(t.key,a)}),[o]=a.splice(n,1);return[t,o,a[0],a[1]]},c=e=>{var{top:t,left:a,height:n,width:o}=e.getBoundingClientRect();return{top:t,left:a,bottom:window.innerHeight-t-n,right:window.innerWidth-a-o}},l=e=>{var t,a=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",r="number"==typeof a?"".concat(a,"px"):a,[l,s]=(0,n.useState)(),u=()=>{if(l){l.moveable=!1;var{el:e}=l,[t]=i(c(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{s(void 0),e.style[t.key]=r})}},d=t=>{var a="touches"in t?t.touches[0]:t;if(null==l?void 0:l.moveable){var{startX:n,startY:o}=l;Math.pow(n-a.clientX,2)+Math.pow(o-a.clientY,2)>9&&(l.clickable=!1);var{width:c,height:s}=l.el.getBoundingClientRect(),u=a.clientY-l.offsetY,d=a.clientX-l.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-s,right:window.innerWidth-d-c}).map(e=>{var{key:t,value:a}=e;return{key:t,value:"".concat(a,"px")}});if(null==e?void 0:e.clamp)for(var f of v){var h=["top","bottom"].includes(f.key)?window.innerHeight-s:window.innerWidth-c;f.value="clamp(".concat(r,", ").concat(f.value,", ").concat(h,"px)")}var[p,g,...m]=v,{style:q}=l.el;q.transition="",q[p.key]=p.value,q[g.key]=g.value,q[m[0].key]="auto",q[m[1].key]="auto"}};(0,o.useEvent)("blur",u),(0,o.useEvent)("mouseup",u),(0,o.useEvent)("touchend",u),(0,o.useEvent)("mousemove",d),(0,o.useEvent)("touchmove",d);var v=e=>{var t="touches"in e?e.touches[0]:e,a=e.currentTarget,n=a.getBoundingClientRect(),o=t.clientX-n.left;s({el:a,clickable:!0,moveable:!0,offsetX:o,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}}}}]);
|