@modern-js/devtools-client 2.46.1 → 2.47.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.
Files changed (121) hide show
  1. package/dist/html/client/index.html +3 -3
  2. package/dist/html/mount/index.html +3 -3
  3. package/dist/modern.config.json +39 -14
  4. package/dist/nestedRoutes.json +1 -1
  5. package/dist/public/sw-proxy.js +1 -1
  6. package/dist/routes-manifest.json +106 -72
  7. package/dist/static/css/async/client_doctor/page.8de5f7c8.css +1 -0
  8. package/dist/static/css/async/client_headers/editor/page.39d6ad02.css +1 -0
  9. package/dist/static/css/async/client_overview/page.25bd77f5.css +1 -0
  10. package/dist/static/css/async/client_pages/page.ad73bc47.css +1 -0
  11. package/dist/static/css/client.79f9b2ff.css +1 -0
  12. package/dist/static/css/components.374798fa.css +1 -0
  13. package/dist/static/css/mount.4d5756e9.css +1 -0
  14. package/dist/static/font/NotoSans-latin-subset.0dd84d42.woff2 +0 -0
  15. package/dist/static/image/rsdoctor-large.b2f496d9.png +0 -0
  16. package/dist/static/js/101.25761306.js +2 -0
  17. package/dist/static/js/101.25761306.js.LICENSE.txt +164 -0
  18. package/dist/static/js/637.e491a64f.js +2 -0
  19. package/dist/static/js/{971.dfaf371b.js.LICENSE.txt → 637.e491a64f.js.LICENSE.txt} +94 -94
  20. package/dist/static/js/768.cc6b6105.js +12 -0
  21. package/dist/static/js/{821.746e4296.js.LICENSE.txt → 768.cc6b6105.js.LICENSE.txt} +3 -3
  22. package/dist/static/js/820.d47d2d6a.js +6 -0
  23. package/dist/static/js/{544.a062c5bf.js.LICENSE.txt → 820.d47d2d6a.js.LICENSE.txt} +397 -313
  24. package/dist/static/js/async/447.fbf96e90.js +2 -0
  25. package/dist/static/js/async/{199.632ea604.js.LICENSE.txt → 447.fbf96e90.js.LICENSE.txt} +5 -5
  26. package/dist/static/js/async/{769.d97a8752.js → 769.e476d373.js} +2 -2
  27. package/dist/static/js/async/{769.d97a8752.js.LICENSE.txt → 769.e476d373.js.LICENSE.txt} +64 -64
  28. package/dist/static/js/async/851.10db2ec6.js +107 -0
  29. package/dist/static/js/async/{851.f1680ec1.js.LICENSE.txt → 851.10db2ec6.js.LICENSE.txt} +9 -9
  30. package/dist/static/js/async/client_config/{layout.166501ba.js → layout.ba4d2992.js} +2 -2
  31. package/dist/static/js/async/client_config/page.a63f5a35.js +1 -0
  32. package/dist/static/js/async/client_context/builder/page.ec2d5c56.js +2 -0
  33. package/dist/static/js/async/client_context/{framework/page.0e7a358d.js.LICENSE.txt → builder/page.ec2d5c56.js.LICENSE.txt} +4 -4
  34. package/dist/static/js/async/client_context/framework/page.3dd49436.js +2 -0
  35. package/dist/static/js/async/client_context/{builder/page.4a147316.js.LICENSE.txt → framework/page.3dd49436.js.LICENSE.txt} +4 -4
  36. package/dist/static/js/async/client_context/{layout.7142f660.js → layout.d57d4a8b.js} +2 -2
  37. package/dist/static/js/async/client_context/page.635cc0cb.js +1 -0
  38. package/dist/static/js/async/client_doctor/page.4f782f6e.js +2 -0
  39. package/dist/static/js/async/client_doctor/page.4f782f6e.js.LICENSE.txt +47 -0
  40. package/dist/static/js/async/client_headers/editor/page.b0193352.js +2 -0
  41. package/dist/static/js/async/client_headers/editor/{page.8a90ebab.js.LICENSE.txt → page.b0193352.js.LICENSE.txt} +17 -21
  42. package/dist/static/js/async/client_headers/layout.0f8eb6f9.js +2 -0
  43. package/dist/static/js/async/client_headers/page.d2a0f47d.js +1 -0
  44. package/dist/static/js/async/client_headers/welcome/page.1af1ede1.js +2 -0
  45. package/dist/static/js/async/client_headers/welcome/{page.bb592578.js.LICENSE.txt → page.1af1ede1.js.LICENSE.txt} +3 -3
  46. package/dist/static/js/async/client_overview/page.9bc222f5.js +2 -0
  47. package/dist/static/js/async/client_overview/{page.e2907cdb.js.LICENSE.txt → page.9bc222f5.js.LICENSE.txt} +18 -12
  48. package/dist/static/js/async/client_page.5e12b570.js +1 -0
  49. package/dist/static/js/async/client_pages/layout.3498bfe7.js +2 -0
  50. package/dist/static/js/async/client_pages/page.513222d6.js +2 -0
  51. package/dist/static/js/async/client_pages/{page.cbbcc027.js.LICENSE.txt → page.513222d6.js.LICENSE.txt} +64 -76
  52. package/dist/static/js/async/client_react/(tab)/layout.b25a0a9b.js +2 -0
  53. package/dist/static/js/async/client_react/(tab)/page.aede693e.js +2 -0
  54. package/dist/static/js/async/client_react/(tab)/{page.3990630b.js.LICENSE.txt → page.aede693e.js.LICENSE.txt} +11 -17
  55. package/dist/static/js/async/client_react/offscreen/page.44e6922b.js +2 -0
  56. package/dist/static/js/async/client_react/page.5660dc8e.js +1 -0
  57. package/dist/static/js/builder-runtime.fb6b7b59.js +1 -0
  58. package/dist/static/js/client.c8108468.js +2 -0
  59. package/dist/static/js/{client.83082cde.js.LICENSE.txt → client.c8108468.js.LICENSE.txt} +190 -112
  60. package/dist/static/js/components.c5a5e74d.js +1 -0
  61. package/dist/static/js/lib-lodash.104ea357.js +1 -0
  62. package/dist/static/js/lib-polyfill.f1a659c9.js +2 -0
  63. package/dist/static/js/{lib-polyfill.65ea0a24.js.LICENSE.txt → lib-polyfill.f1a659c9.js.LICENSE.txt} +2350 -2350
  64. package/dist/static/js/lib-react.38c297f4.js +2 -0
  65. package/dist/static/js/{lib-react.5131ac93.js.LICENSE.txt → lib-react.38c297f4.js.LICENSE.txt} +16 -16
  66. package/dist/static/js/lib-router.e45bd42a.js +2 -0
  67. package/dist/static/js/{lib-router.ad2f384b.js.LICENSE.txt → lib-router.e45bd42a.js.LICENSE.txt} +13 -11
  68. package/dist/static/js/mount.f9efe099.js +2 -0
  69. package/dist/static/js/{mount.b89b187f.js.LICENSE.txt → mount.f9efe099.js.LICENSE.txt} +49 -41
  70. package/package.json +14 -13
  71. package/dist/static/css/971.c51346c6.css +0 -1
  72. package/dist/static/css/async/199.3d9e4afb.css +0 -1
  73. package/dist/static/css/async/client_context/builder/page.3d9e4afb.css +0 -1
  74. package/dist/static/css/async/client_context/framework/page.3d9e4afb.css +0 -1
  75. package/dist/static/css/async/client_headers/editor/page.1b30ff56.css +0 -1
  76. package/dist/static/css/async/client_overview/page.d48aa01a.css +0 -1
  77. package/dist/static/css/async/client_pages/page.0e57d947.css +0 -1
  78. package/dist/static/css/client.30616823.css +0 -1
  79. package/dist/static/css/mount.6e2e9a58.css +0 -1
  80. package/dist/static/js/535.6ec7133e.js +0 -2
  81. package/dist/static/js/535.6ec7133e.js.LICENSE.txt +0 -168
  82. package/dist/static/js/544.a062c5bf.js +0 -6
  83. package/dist/static/js/821.746e4296.js +0 -12
  84. package/dist/static/js/971.dfaf371b.js +0 -2
  85. package/dist/static/js/async/199.632ea604.js +0 -2
  86. package/dist/static/js/async/851.f1680ec1.js +0 -107
  87. package/dist/static/js/async/client_config/page.af0017fb.js +0 -1
  88. package/dist/static/js/async/client_context/builder/page.4a147316.js +0 -2
  89. package/dist/static/js/async/client_context/framework/page.0e7a358d.js +0 -2
  90. package/dist/static/js/async/client_context/page.227fc159.js +0 -1
  91. package/dist/static/js/async/client_headers/editor/page.8a90ebab.js +0 -2
  92. package/dist/static/js/async/client_headers/layout.a02ba20e.js +0 -2
  93. package/dist/static/js/async/client_headers/page.83f30498.js +0 -2
  94. package/dist/static/js/async/client_headers/page.83f30498.js.LICENSE.txt +0 -11
  95. package/dist/static/js/async/client_headers/welcome/page.bb592578.js +0 -2
  96. package/dist/static/js/async/client_overview/page.e2907cdb.js +0 -2
  97. package/dist/static/js/async/client_page.f1d2eb8e.js +0 -1
  98. package/dist/static/js/async/client_pages/layout.02f7cf3a.js +0 -2
  99. package/dist/static/js/async/client_pages/page.cbbcc027.js +0 -2
  100. package/dist/static/js/async/client_react/(tab)/layout.3becf66e.js +0 -2
  101. package/dist/static/js/async/client_react/(tab)/page.3990630b.js +0 -2
  102. package/dist/static/js/async/client_react/offscreen/page.0074d754.js +0 -2
  103. package/dist/static/js/async/client_react/page.be45dcc6.js +0 -1
  104. package/dist/static/js/builder-runtime.985eaf68.js +0 -1
  105. package/dist/static/js/client.83082cde.js +0 -2
  106. package/dist/static/js/lib-lodash.423c7620.js +0 -1
  107. package/dist/static/js/lib-polyfill.65ea0a24.js +0 -2
  108. package/dist/static/js/lib-react.5131ac93.js +0 -2
  109. package/dist/static/js/lib-router.ad2f384b.js +0 -2
  110. package/dist/static/js/mount.b89b187f.js +0 -2
  111. package/exports/.eslintrc.js +0 -13
  112. package/exports/mount.mjs +0 -40
  113. /package/dist/static/css/{544.b0b76183.css → 820.e0b6557d.css} +0 -0
  114. /package/dist/static/css/async/client_headers/{layout.26c871c9.css → layout.15850da7.css} +0 -0
  115. /package/dist/static/css/async/client_pages/{layout.7beb3bbd.css → layout.d0dfd54d.css} +0 -0
  116. /package/dist/static/js/async/client_config/{layout.166501ba.js.LICENSE.txt → layout.ba4d2992.js.LICENSE.txt} +0 -0
  117. /package/dist/static/js/async/client_context/{layout.7142f660.js.LICENSE.txt → layout.d57d4a8b.js.LICENSE.txt} +0 -0
  118. /package/dist/static/js/async/client_headers/{layout.a02ba20e.js.LICENSE.txt → layout.0f8eb6f9.js.LICENSE.txt} +0 -0
  119. /package/dist/static/js/async/client_pages/{layout.02f7cf3a.js.LICENSE.txt → layout.3498bfe7.js.LICENSE.txt} +0 -0
  120. /package/dist/static/js/async/client_react/(tab)/{layout.3becf66e.js.LICENSE.txt → layout.b25a0a9b.js.LICENSE.txt} +0 -0
  121. /package/dist/static/js/async/client_react/offscreen/{page.0074d754.js.LICENSE.txt → page.44e6922b.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see lib-router.e45bd42a.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["118"],{77393:function(e,t,r){"use strict";var n,a;function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.r(t),r.d(t,{Action:function(){return n},UNSAFE_ErrorResponseImpl:function(){return T},UNSAFE_convertRouteMatchToUiMatch:function(){return w},UNSAFE_getResolveToMatches:function(){return D},UNSAFE_invariant:function(){return u},createBrowserHistory:function(){return l},createHashHistory:function(){return s},createPath:function(){return f},createRouter:function(){return V},isRouteErrorResponse:function(){return F},joinPaths:function(){return U},matchPath:function(){return S},matchRoutes:function(){return g},parsePath:function(){return p},redirect:function(){return k},resolveTo:function(){return _},stripBasename:function(){return R}}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));let i="popstate";function l(e){return void 0===e&&(e={}),m(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return h("",{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:f(t)},null,e)}function s(e){return void 0===e&&(e={}),m(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=p(e.location.hash.substr(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),h("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:f(t))},function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function u(e,t){if(!1===e||null==e)throw Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,r,n){return void 0===r&&(r=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function p(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function m(e,t,r,a){void 0===a&&(a={});let{window:l=document.defaultView,v5Compat:s=!1}=a,c=l.history,p=n.Pop,m=null,v=y();function y(){return(c.state||{idx:null}).idx}function g(){p=n.Pop;let e=y(),t=null==e?null:e-v;v=e,m&&m({action:p,location:b.location,delta:t})}null==v&&(v=0,c.replaceState(o({},c.state,{idx:v}),""));function w(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,r="string"==typeof e?e:f(e);return u(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}let b={get action(){return p},get location(){return e(l,c)},listen(e){if(m)throw Error("A history only accepts one active listener");return l.addEventListener(i,g),m=e,()=>{l.removeEventListener(i,g),m=null}},createHref:e=>t(l,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=n.Push;let a=h(b.location,e,t);r&&r(a,e);let o=d(a,v=y()+1),i=b.createHref(a);try{c.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(i)}s&&m&&m({action:p,location:b.location,delta:1})},replace:function(e,t){p=n.Replace;let a=h(b.location,e,t);r&&r(a,e);let o=d(a,v=y()),i=b.createHref(a);c.replaceState(o,"",i),s&&m&&m({action:p,location:b.location,delta:0})},go:e=>c.go(e)};return b}(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(a||(a={}));let v=new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let i=[...r,a],l="string"==typeof e.id?e.id:i.join("-");if(u(!0!==e.index||!e.children,"Cannot specify children on an index route"),u(!n[l],'Found a route id collision on id "'+l+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=o({},e,t(e),{id:l});return n[l]=r,r}{let r=o({},e,t(e),{id:l,children:void 0});return n[l]=r,e.children&&(r.children=y(e.children,t,i,n)),r}})}function g(e,t,r){void 0===r&&(r="/");let n=R(("string"==typeof t?p(t):t).pathname||"/",r);if(null==n)return null;let a=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{let l={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};l.relativePath.startsWith("/")&&(u(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(a.length));let s=U([a,l.relativePath]),c=n.concat(l);t.children&&t.children.length>0&&(u(!0!==t.index,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),e(t.children,r,c,s)),(null!=t.path||t.index)&&r.push({path:s,score:function(e,t){let r=e.split("/"),n=r.length;return r.some(E)&&(n+=-2),t&&(n+=2),r.filter(e=>!E(e)).reduce((e,t)=>e+(b.test(t)?3:""===t?1:10),n)}(s,t.index),routesMeta:c})};return t.forEach((e,t)=>{var r;if(""!==e.path&&(r=e.path)!=null&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);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);let o=null;for(let e=0;null==o&&e<a.length;++e)o=function(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,s="/"===a?t:t.slice(a.length)||"/",u=S({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},s);if(!u)return null;Object.assign(n,u.params);let c=i.route;o.push({params:n,pathname:U([a,u.pathname]),pathnameBase:C(U([a,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(a=U([a,u.pathnameBase]))}return o}(a[e],function(e){try{return decodeURI(e)}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}(n));return o}function w(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let b=/^:[\w-]+$/,E=e=>"*"===e;function S(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),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;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let s=l[r];return a&&!s?e[n]=void 0:e[n]=function(e,t){try{return decodeURIComponent(e)}catch(r){return c(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}(s||"",n),e},{}),pathname:o,pathnameBase:i,pattern:e}}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function x(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 P(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function D(e,t){let r=P(e);return t?r.map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase):r.map(e=>e.pathnameBase)}function _(e,t,r,n){let a,i;void 0===n&&(n=!1),"string"==typeof e?a=p(e):(u(!(a=o({},e)).pathname||!a.pathname.includes("?"),x("?","pathname","search",a)),u(!a.pathname||!a.pathname.includes("#"),x("#","pathname","hash",a)),u(!a.search||!a.search.includes("#"),x("#","search","hash",a)));let l=""===e||""===a.pathname,s=l?"/":a.pathname;if(null==s)i=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?p(e):e;return{pathname:r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t,search:L(n),hash:A(a)}}(a,i),d=s&&"/"!==s&&s.endsWith("/"),h=(l||"."===s)&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||h)&&(c.pathname+="/"),c}let U=e=>e.join("/").replace(/\/\/+/g,"/"),C=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",A=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",k=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,o({},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}let M=["post","put","patch","delete"],N=new Set(M),j=["get",...M],O=new Set(j),B=new Set([301,302,303,307,308]),H=new Set([307,308]),z={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},I={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},W={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),J="remix-router-transitions";function V(e){let t,r,i,l,s;let d=e.window?e.window:"undefined"!=typeof window?window:void 0,f=void 0!==d&&void 0!==d.document&&void 0!==d.document.createElement,p=!f;if(u(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=q;let m={},v=y(e.routes,t,void 0,m),b=e.basename||"/",E=o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),S=null,x=new Set,P=null,D=null,_=null,U=null!=e.hydrationData,C=g(v,e.history.location,b),L=null;if(null==C){let t=es(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=el(v);C=r,L={[n.id]:t}}let A=C.some(e=>e.route.lazy),k=C.some(e=>e.route.loader);if(A)i=!1;else if(k){if(E.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;i=C.every(e=>e.route.loader&&!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]))}else i=null!=e.hydrationData}else i=!0;let T={historyAction:e.history.action,location:e.history.location,matches:C,initialized:i,navigation:z,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||L,fetchers:new Map,blockers:new Map},F=n.Pop,M=!1,N=!1,j=new Map,O=null,B=!1,V=!1,G=[],Q=[],Z=new Map,er=0,en=-1,ec=new Map,ey=new Set,eR=new Map,ex=new Map,eP=new Set,eD=new Map,e_=new Map,eU=!1;function eC(e,t){void 0===t&&(t={}),T=o({},T,e);let r=[],n=[];E.v7_fetcherPersist&&T.fetchers.forEach((e,t)=>{"idle"===e.state&&(eP.has(t)?n.push(t):r.push(t))}),[...x].forEach(e=>e(T,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),E.v7_fetcherPersist&&(r.forEach(e=>T.fetchers.delete(e)),n.forEach(e=>eW(e)))}function eL(t,a,i){var l,s;let u,c;let{flushSync:d}=void 0===i?{}:i,h=null!=T.actionData&&null!=T.navigation.formMethod&&ep(T.navigation.formMethod)&&"loading"===T.navigation.state&&((l=t.state)==null?void 0:l._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?T.actionData:null;let f=a.loaderData?eo(T.loaderData,a.loaderData,a.matches||[],a.errors):T.loaderData,p=T.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,W));let m=!0===M||null!=T.navigation.formMethod&&ep(T.navigation.formMethod)&&((s=t.state)==null?void 0:s._isRedirect)!==!0;if(r&&(v=r,r=void 0),B||F===n.Pop||(F===n.Push?e.history.push(t,t.state):F===n.Replace&&e.history.replace(t,t.state)),F===n.Pop){let e=j.get(T.location.pathname);e&&e.has(t.pathname)?c={currentLocation:T.location,nextLocation:t}:j.has(t.pathname)&&(c={currentLocation:t,nextLocation:T.location})}else if(N){let e=j.get(T.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),j.set(T.location.pathname,e)),c={currentLocation:T.location,nextLocation:t}}eC(o({},a,{actionData:u,loaderData:f,historyAction:F,location:t,initialized:!0,navigation:z,revalidation:"idle",restoreScrollPosition:eZ(t,a.matches||T.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),F=n.Pop,M=!1,N=!1,B=!1,V=!1,G=[],Q=[]}async function eA(t,r){if("number"==typeof t){e.history.go(t);return}let a=Y(T.location,T.matches,b,E.v7_prependBasename,t,E.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:i,submission:l,error:s}=K(E.v7_normalizeFormMethod,!1,a,r),u=T.location,c=h(T.location,i,r&&r.state);c=o({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,f=n.Push;!0===d?f=n.Replace:!1===d||null!=l&&ep(l.formMethod)&&l.formAction===T.location.pathname+T.location.search&&(f=n.Replace);let p=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=(r&&r.unstable_flushSync)===!0,v=eX({currentLocation:u,nextLocation:c,historyAction:f});if(v){eK(v,{state:"blocked",location:c,proceed(){eK(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eA(t,r)},reset(){let e=new Map(T.blockers);e.set(v,W),eC({blockers:e})}});return}return await ek(f,c,{submission:l,pendingError:s,preventScrollReset:p,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:m})}async function ek(t,n,a){let i,l;s&&s.abort(),s=null,F=t,B=(a&&a.startUninterruptedRevalidation)===!0,function(e,t){P&&_&&(P[eQ(e,t)]=_())}(T.location,T.matches),M=(a&&a.preventScrollReset)===!0,N=(a&&a.enableViewTransition)===!0;let u=r||v,c=a&&a.overrideNavigation,d=g(u,n,b),h=(a&&a.flushSync)===!0;if(!d){let e=es(404,{pathname:n.pathname}),{matches:t,route:r}=el(u);eG(),eL(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:h});return}if(T.initialized&&!V&&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}(T.location,n)&&!(a&&a.submission&&ep(a.submission.formMethod))){eL(n,{matches:d},{flushSync:h});return}s=new AbortController;let f=et(e.history,n,s.signal,a&&a.submission);if(a&&a.pendingError)l={[ei(d).route.id]:a.pendingError};else if(a&&a.submission&&ep(a.submission.formMethod)){let e=await eT(f,n,a.submission,d,{replace:a.replace,flushSync:h});if(e.shortCircuited)return;i=e.pendingActionData,l=e.pendingActionError,c=eb(n,a.submission),h=!1,f=new Request(f.url,{signal:f.signal})}let{shortCircuited:p,loaderData:m,errors:y}=await eF(f,n,d,c,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,h,i,l);!p&&(s=null,eL(n,o({matches:d},i?{actionData:i}:{},{loaderData:m,errors:y})))}async function eT(e,r,o,i,l){let s;void 0===l&&(l={}),eB(),eC({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,o)},{flushSync:!0===l.flushSync});let u=eg(i,r);if(u.route.action||u.route.lazy){if(s=await ee("action",e,u,i,m,t,b,E.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else s={type:a.error,error:es(405,{method:e.method,pathname:r.pathname,routeId:u.route.id})};if(ef(s)){let e;return e=l&&null!=l.replace?l.replace:s.location===T.location.pathname+T.location.search,await ej(T,s,{submission:o,replace:e}),{shortCircuited:!0}}if(eh(s)){let e=ei(i,u.route.id);return(l&&l.replace)!==!0&&(F=n.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(ed(s))throw es(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:s.data}}}async function eF(t,n,a,i,l,u,c,d,h,f,p){let m=i||eb(n,l),y=l||u||ew(m),g=r||v,[w,S]=X(e.history,T,a,y,n,E.v7_partialHydration&&!0===d,V,G,Q,eP,eR,ey,g,b,f,p);if(eG(e=>!(a&&a.some(t=>t.route.id===e))||w&&w.some(t=>t.route.id===e)),en=++er,0===w.length&&0===S.length){let e=eJ();return eL(n,o({matches:a,loaderData:{},errors:p||null},f?{actionData:f}:{},e?{fetchers:new Map(T.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(!B&&(!E.v7_partialHydration||!d)){S.forEach(e=>{let t=T.fetchers.get(e.key),r=eE(void 0,t?t.data:void 0);T.fetchers.set(e.key,r)});let e=f||T.actionData;eC(o({navigation:m},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},S.length>0?{fetchers:new Map(T.fetchers)}:{}),{flushSync:h})}S.forEach(e=>{Z.has(e.key)&&e$(e.key),e.controller&&Z.set(e.key,e.controller)});let R=()=>S.forEach(e=>e$(e.key));s&&s.signal.addEventListener("abort",R);let{results:x,loaderResults:P,fetcherResults:D}=await eO(T.matches,a,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",R),S.forEach(e=>Z.delete(e.key));let _=eu(x);if(_){if(_.idx>=w.length){let e=S[_.idx-w.length].key;ey.add(e)}return await ej(T,_.result,{replace:c}),{shortCircuited:!0}}let{loaderData:U,errors:C}=ea(T,a,w,P,p,S,D,eD);eD.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eD.delete(t)})});let L=eJ(),A=eV(en),k=L||A||S.length>0;return o({loaderData:U,errors:C},k?{fetchers:new Map(T.fetchers)}:{})}async function eM(n,a,o,i,l,c,d){if(eB(),eR.delete(n),!i.route.action&&!i.route.lazy){let e=es(405,{method:d.formMethod,pathname:o,routeId:a});ez(n,a,e,{flushSync:c});return}let h=T.fetchers.get(n);eH(n,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(d,h),{flushSync:c});let f=new AbortController,p=et(e.history,o,f.signal,d);Z.set(n,f);let y=er,w=await ee("action",p,i,l,m,t,b,E.v7_relativeSplatPath);if(p.signal.aborted){Z.get(n)===f&&Z.delete(n);return}if(E.v7_fetcherPersist&&eP.has(n)){if(ef(w)||eh(w)){eH(n,eS(void 0));return}}else{if(ef(w)){if(Z.delete(n),!(en>y))return ey.add(n),eH(n,eE(d)),ej(T,w,{fetcherSubmission:d});eH(n,eS(void 0));return}if(eh(w)){ez(n,a,w.error);return}}if(ed(w))throw es(400,{type:"defer-action"});let S=T.navigation.location||T.location,R=et(e.history,S,f.signal),x=r||v,P="idle"!==T.navigation.state?g(x,T.navigation.location,b):T.matches;u(P,"Didn't find any matches after fetcher action");let D=++er;ec.set(n,D);let _=eE(d,w.data);T.fetchers.set(n,_);let[U,C]=X(e.history,T,P,d,S,!1,V,G,Q,eP,eR,ey,x,b,{[i.route.id]:w.data},void 0);C.filter(e=>e.key!==n).forEach(e=>{let t=e.key,r=T.fetchers.get(t),n=eE(void 0,r?r.data:void 0);T.fetchers.set(t,n),Z.has(t)&&e$(t),e.controller&&Z.set(t,e.controller)}),eC({fetchers:new Map(T.fetchers)});let L=()=>C.forEach(e=>e$(e.key));f.signal.addEventListener("abort",L);let{results:A,loaderResults:k,fetcherResults:M}=await eO(T.matches,P,U,C,R);if(f.signal.aborted)return;f.signal.removeEventListener("abort",L),ec.delete(n),Z.delete(n),C.forEach(e=>Z.delete(e.key));let N=eu(A);if(N){if(N.idx>=U.length){let e=C[N.idx-U.length].key;ey.add(e)}return ej(T,N.result)}let{loaderData:j,errors:O}=ea(T,T.matches,U,k,void 0,C,M,eD);if(T.fetchers.has(n)){let e=eS(w.data);T.fetchers.set(n,e)}eV(D),"loading"===T.navigation.state&&D>en?(u(F,"Expected pending action"),s&&s.abort(),eL(T.navigation.location,{matches:P,loaderData:j,errors:O,fetchers:new Map(T.fetchers)})):(eC({errors:O,loaderData:eo(T.loaderData,j,P,O),fetchers:new Map(T.fetchers)}),V=!1)}async function eN(r,n,a,o,i,l,s){let c=T.fetchers.get(r);eH(r,eE(s,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=et(e.history,a,d.signal);Z.set(r,d);let f=er,p=await ee("loader",h,o,i,m,t,b,E.v7_relativeSplatPath);if(ed(p)&&(p=await ev(p,h.signal,!0)||p),Z.get(r)===d&&Z.delete(r),!h.signal.aborted){if(eP.has(r)){eH(r,eS(void 0));return}if(ef(p)){if(en>f){eH(r,eS(void 0));return}ey.add(r),await ej(T,p);return}if(eh(p)){ez(r,n,p.error);return}u(!ed(p),"Unhandled fetcher deferred data"),eH(r,eS(p.data))}}async function ej(t,r,a){let{submission:i,fetcherSubmission:l,replace:c}=void 0===a?{}:a;r.revalidate&&(V=!0);let p=h(t.location,r.location,{_isRedirect:!0});if(u(p,"Expected a location on the redirect navigation"),f){let t=!1;if(r.reloadDocument)t=!0;else if($.test(r.location)){let n=e.history.createURL(r.location);t=n.origin!==d.location.origin||null==R(n.pathname,b)}if(t){c?d.location.replace(r.location):d.location.assign(r.location);return}}s=null;let m=!0===c?n.Replace:n.Push,{formMethod:v,formAction:y,formEncType:g}=t.navigation;!i&&!l&&v&&y&&g&&(i=ew(t.navigation));let w=i||l;if(H.has(r.status)&&w&&ep(w.formMethod))await ek(m,p,{submission:o({},w,{formAction:r.location}),preventScrollReset:M});else{let e=eb(p,i);await ek(m,p,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:M})}}async function eO(r,n,o,i,l){let s=await Promise.all([...o.map(e=>ee("loader",l,e,n,m,t,b,E.v7_relativeSplatPath)),...i.map(r=>r.matches&&r.match&&r.controller?ee("loader",et(e.history,r.path,r.controller.signal),r.match,r.matches,m,t,b,E.v7_relativeSplatPath):{type:a.error,error:es(404,{pathname:r.path})})]),u=s.slice(0,o.length),c=s.slice(o.length);return await Promise.all([em(r,o,u,u.map(()=>l.signal),!1,T.loaderData),em(r,i.map(e=>e.match),c,i.map(e=>e.controller?e.controller.signal:null),!0)]),{results:s,loaderResults:u,fetcherResults:c}}function eB(){V=!0,G.push(...eG()),eR.forEach((e,t)=>{Z.has(t)&&(Q.push(t),e$(t))})}function eH(e,t,r){void 0===r&&(r={}),T.fetchers.set(e,t),eC({fetchers:new Map(T.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function ez(e,t,r,n){void 0===n&&(n={});let a=ei(T.matches,t);eW(e),eC({errors:{[a.route.id]:r},fetchers:new Map(T.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function eI(e){return E.v7_fetcherPersist&&(ex.set(e,(ex.get(e)||0)+1),eP.has(e)&&eP.delete(e)),T.fetchers.get(e)||I}function eW(e){let t=T.fetchers.get(e);Z.has(e)&&!(t&&"loading"===t.state&&ec.has(e))&&e$(e),eR.delete(e),ec.delete(e),ey.delete(e),eP.delete(e),T.fetchers.delete(e)}function e$(e){let t=Z.get(e);u(t,"Expected fetch controller: "+e),t.abort(),Z.delete(e)}function eq(e){for(let t of e){let e=eS(eI(t).data);T.fetchers.set(t,e)}}function eJ(){let e=[],t=!1;for(let r of ey){let n=T.fetchers.get(r);u(n,"Expected fetcher: "+r),"loading"===n.state&&(ey.delete(r),e.push(r),t=!0)}return eq(e),t}function eV(e){let t=[];for(let[r,n]of ec)if(n<e){let e=T.fetchers.get(r);u(e,"Expected fetcher: "+r),"loading"===e.state&&(e$(r),ec.delete(r),t.push(r))}return eq(t),t.length>0}function eY(e){T.blockers.delete(e),e_.delete(e)}function eK(e,t){let r=T.blockers.get(e)||W;u("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);let n=new Map(T.blockers);n.set(e,t),eC({blockers:n})}function eX(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===e_.size)return;e_.size>1&&c(!1,"A router only supports one blocker at a time");let a=Array.from(e_.entries()),[o,i]=a[a.length-1],l=T.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function eG(e){let t=[];return eD.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eD.delete(n))}),t}function eQ(e,t){return D&&D(e,t.map(e=>w(e,T.loaderData)))||e.key}function eZ(e,t){if(P){let r=P[eQ(e,t)];if("number"==typeof r)return r}return null}return l={get basename(){return b},get future(){return E},get state(){return T},get routes(){return v},get window(){return d},initialize:function(){if(S=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(eU){eU=!1;return}c(0===e_.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.");let o=eX({currentLocation:T.location,nextLocation:n,historyAction:r});if(o&&null!=a){eU=!0,e.history.go(-1*a),eK(o,{state:"blocked",location:n,proceed(){eK(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(T.blockers);e.set(o,W),eC({blockers:e})}});return}return ek(r,n)}),f){(function(e,t){try{let r=e.sessionStorage.getItem(J);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}})(d,j);let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(J,JSON.stringify(r))}catch(e){c(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(d,j);d.addEventListener("pagehide",e),O=()=>d.removeEventListener("pagehide",e)}return!T.initialized&&ek(n.Pop,T.location,{initialHydration:!0}),l},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,r){if(P=e,_=t,D=r||null,!U&&T.navigation===z){U=!0;let e=eZ(T.location,T.matches);null!=e&&eC({restoreScrollPosition:e})}return()=>{P=null,_=null,D=null}},navigate:eA,fetch:function(e,t,n,a){if(p)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.");Z.has(e)&&e$(e);let o=(a&&a.unstable_flushSync)===!0,i=r||v,l=Y(T.location,T.matches,b,E.v7_prependBasename,n,E.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=g(i,l,b);if(!s){ez(e,t,es(404,{pathname:l}),{flushSync:o});return}let{path:u,submission:c,error:d}=K(E.v7_normalizeFormMethod,!0,l,a);if(d){ez(e,t,d,{flushSync:o});return}let h=eg(s,u);if(M=(a&&a.preventScrollReset)===!0,c&&ep(c.formMethod)){eM(e,t,u,h,s,o,c);return}eR.set(e,{routeId:t,path:u}),eN(e,t,u,h,s,o,c)},revalidate:function(){if(eB(),eC({revalidation:"loading"}),"submitting"!==T.navigation.state){if("idle"===T.navigation.state){ek(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}ek(F||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eI,deleteFetcher:function(e){if(E.v7_fetcherPersist){let t=(ex.get(e)||0)-1;t<=0?(ex.delete(e),eP.add(e)):ex.set(e,t)}else eW(e);eC({fetchers:new Map(T.fetchers)})},dispose:function(){S&&S(),O&&O(),x.clear(),s&&s.abort(),T.fetchers.forEach((e,t)=>eW(t)),T.blockers.forEach((e,t)=>eY(t))},getBlocker:function(e,t){let r=T.blockers.get(e)||W;return e_.get(e)!==t&&e_.set(e,t),r},deleteBlocker:eY,_internalFetchControllers:Z,_internalActiveDeferreds:eD,_internalSetRoutes:function(e){r=y(e,t,void 0,m={})}}}Symbol("deferred");function Y(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=_(a||".",D(s,o),R(e.pathname,r)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u&&u.route.index&&!ey(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:U([r,c.pathname])),f(c)}function K(e,t,r,n){var a;let o,i;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 O.has(e.toLowerCase())}(n.formMethod))return{path:r,error:es(405,{method:n.formMethod})};let l=()=>({path:r,error:es(400,{type:"invalid-body"})}),s=n.formMethod||"get",c=e?s.toUpperCase():s.toLowerCase(),d=ec(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ep(c))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:c,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!ep(c))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:c,formAction:d,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(u("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=er(n.formData),i=n.formData;else if(n.body instanceof FormData)o=er(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=en(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=en(o)}catch(e){return l()}let h={formMethod:c,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ep(h.formMethod))return{path:r,submission:h};let m=p(r);return t&&m.search&&ey(m.search)&&o.append("index",""),m.search="?"+o,{path:f(m),submission:h}}function X(e,t,r,n,a,i,l,s,u,c,d,h,f,p,m,v){let y=v?Object.values(v)[0]:m?Object.values(m)[0]:void 0,w=e.createURL(t.location),b=e.createURL(a),E=(function(e,t){let r=e;if(t){let n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r})(r,v?Object.keys(v)[0]:void 0).filter((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(i)return!!a.loader.hydrate||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||s.some(t=>t===e.route.id))return!0;let u=t.matches[r];return Q(e,o({currentUrl:w,currentParams:u.params,nextUrl:b,nextParams:e.params},n,{actionResult:y,defaultShouldRevalidate:l||w.pathname+w.search===b.pathname+b.search||w.search!==b.search||G(u,e)}))}),S=[];return d.forEach((e,a)=>{if(i||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let s=g(f,e.path,p);if(!s){S.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let d=t.fetchers.get(a),m=eg(s,e.path),v=!1;(v=!h.has(a)&&(!!u.includes(a)||(d&&"idle"!==d.state&&void 0===d.data?l:Q(m,o({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,defaultShouldRevalidate:l})))))&&S.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:m,controller:new AbortController})}),[E,S]}function G(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Q(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function Z(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];u(a,"No route found in manifest");let i={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;c(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+e+'" will be ignored.')),!t&&!v.has(e)&&(i[e]=n[e])}Object.assign(a,i),Object.assign(a,o({},t(a),{lazy:void 0}))}async function ee(e,t,r,n,o,i,l,s,c){let d,h,f;void 0===c&&(c={});let p=e=>{let n;let a=new Promise((e,t)=>n=t);return f=()=>n(),t.signal.addEventListener("abort",f),Promise.race([e({request:t,params:r.params,context:c.requestContext}),a])};try{let n=r.route[e];if(r.route.lazy){if(n){let e;let t=await Promise.all([p(n).catch(t=>{e=t}),Z(r.route,i,o)]);if(e)throw e;h=t[0]}else if(await Z(r.route,i,o),n=r.route[e])h=await p(n);else{if("action"!==e)return{type:a.data,data:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw es(405,{method:t.method,pathname:o,routeId:r.route.id})}}else if(n)h=await p(n);else{let e=new URL(t.url),r=e.pathname+e.search;throw es(404,{pathname:r})}u(void 0!==h,"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){d=a.error,h=e}finally{f&&t.signal.removeEventListener("abort",f)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(h)){let e,o=h.status;if(B.has(o)){let e=h.headers.get("Location");if(u(e,"Redirects returned/thrown from loaders/actions must have a Location header"),$.test(e)){if(!c.isStaticRequest){let r=new URL(t.url),n=new URL(e.startsWith("//")?r.protocol+e:e),a=null!=R(n.pathname,l);n.origin===r.origin&&a&&(e=n.pathname+n.search+n.hash)}}else e=Y(new URL(t.url),n.slice(0,n.indexOf(r)+1),l,!0,e,s);if(c.isStaticRequest)throw h.headers.set("Location",e),h;return{type:a.redirect,status:o,location:e,revalidate:null!==h.headers.get("X-Remix-Revalidate"),reloadDocument:null!==h.headers.get("X-Remix-Reload-Document")}}if(c.isRouteRequest)throw{type:d===a.error?a.error:a.data,response:h};try{let t=h.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==h.body?null:await h.json():await h.text()}catch(e){return{type:a.error,error:e}}return d===a.error?{type:d,error:new T(o,h.statusText,e),headers:h.headers}:{type:a.data,data:e,statusCode:h.status,headers:h.headers}}if(d===a.error)return{type:d,error:h};if(function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(h)){var m,v;return{type:a.deferred,deferredData:h,statusCode:(m=h.init)==null?void 0:m.status,headers:((v=h.init)==null?void 0:v.headers)&&new Headers(h.init.headers)}}return{type:a.data,data:h}}function et(e,t,r,n){let a=e.createURL(ec(t)).toString(),o={signal:r};if(n&&ep(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=er(n.formData):o.body=n.formData}return new Request(a,o)}function er(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function en(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ea(e,t,r,n,a,i,l,s){var c,d,h,f,p;let m,v,y,g,w;let{loaderData:b,errors:E}=(c=t,d=r,h=n,f=a,p=s,v={},y=null,g=!1,w={},h.forEach((e,t)=>{let r=d[t].route.id;if(u(!ef(e),"Cannot handle redirect results in processLoaderData"),eh(e)){let t=ei(c,r),n=e.error;f&&(n=Object.values(f)[0],f=void 0),null==(y=y||{})[t.route.id]&&(y[t.route.id]=n),v[r]=void 0,!g&&(g=!0,m=F(e.error)?e.error.status:500),e.headers&&(w[r]=e.headers)}else ed(e)?(p.set(r,e.deferredData),v[r]=e.deferredData.data):v[r]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(m=e.statusCode),e.headers&&(w[r]=e.headers)}),f&&(y=f,v[Object.keys(f)[0]]=void 0),{loaderData:v,errors:y,statusCode:m||200,loaderHeaders:w});for(let t=0;t<i.length;t++){let{key:r,match:n,controller:a}=i[t];u(void 0!==l&&void 0!==l[t],"Did not find corresponding fetcher result");let s=l[t];if(!a||!a.signal.aborted)if(eh(s)){let t=ei(e.matches,null==n?void 0:n.route.id);!(E&&E[t.route.id])&&(E=o({},E,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(ef(s))u(!1,"Unhandled fetcher revalidation redirect");else if(ed(s))u(!1,"Unhandled fetcher deferred data");else{let t=eS(s.data);e.fetchers.set(r,t)}}return{loaderData:b,errors:E}}function eo(e,t,r,n){let a=o({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ei(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 el(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function es(e,t){let{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new T(e||500,i,Error(l),!0)}function eu(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(ef(r))return{result:r,idx:t}}}function ec(e){let t="string"==typeof e?p(e):e;return f(o({},t,{hash:""}))}function ed(e){return e.type===a.deferred}function eh(e){return e.type===a.error}function ef(e){return(e&&e.type)===a.redirect}function ep(e){return N.has(e.toLowerCase())}async function em(e,t,r,n,a,o){for(let i=0;i<r.length;i++){let l=r[i],s=t[i];if(!s)continue;let c=e.find(e=>e.route.id===s.route.id),d=null!=c&&!G(c,s)&&(o&&o[s.route.id])!==void 0;if(ed(l)&&(a||d)){let e=n[i];u(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await ev(l,e,a).then(e=>{e&&(r[i]=e||r[i])})}}}async function ev(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function ey(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eg(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&ey(r||""))return e[e.length-1];let n=P(e);return n[n.length-1]}function ew(e){let{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 eb(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 eE(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 eS(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},31988:function(e,t,r){"use strict";r.r(t),r.d(t,{Link:function(){return k},NavLink:function(){return T},Outlet:function(){return l.Outlet},Route:function(){return l.Route},RouterProvider:function(){return U},createBrowserRouter:function(){return w},createHashRouter:function(){return b},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},useRouteError:function(){return l.useRouteError}});var n,a,o=r("5872"),i=r("13922"),l=r("92927"),s=r("77393");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)}function c(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}let d="application/x-www-form-urlencoded";function h(e){return null!=e&&"string"==typeof e.tagName}let f=null,p=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function m(e){return null==e||p.has(e)?e:null}let v=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],y=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],g=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function w(e,t){return(0,s.createRouter)({basename:null==t?void 0:t.basename,future:u({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,s.createBrowserHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||E(),routes:e,mapRouteProperties:l.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function b(e,t){return(0,s.createRouter)({basename:null==t?void 0:t.basename,future:u({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,s.createHashHistory)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||E(),routes:e,mapRouteProperties:l.UNSAFE_mapRouteProperties,window:null==t?void 0:t.window}).initialize()}function E(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=u({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new s.UNSAFE_ErrorResponseImpl(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let S=o.createContext({isTransitioning:!1}),R=o.createContext(new Map),x=o.startTransition,P=i.flushSync;o.useId;function D(e){P?P(e):e()}class _{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){let{fallbackElement:t,router:r,future:n}=e,[a,i]=o.useState(r.state),[s,u]=o.useState(),[c,d]=o.useState({isTransitioning:!1}),[h,f]=o.useState(),[p,m]=o.useState(),[v,y]=o.useState(),g=o.useRef(new Map),{v7_startTransition:w}=n||{},b=o.useCallback(e=>{if(w){var t;t=e,x?x(t):t()}else e()},[w]),E=o.useCallback((e,t)=>{let{deletedFetchers:n,unstable_flushSync:a,unstable_viewTransitionOpts:o}=t;n.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let l=null==r.window||"function"!=typeof r.window.document.startViewTransition;if(!o||l){a?D(()=>i(e)):b(()=>i(e));return}if(a){D(()=>{p&&(h&&h.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=r.window.document.startViewTransition(()=>{D(()=>i(e))});t.finished.finally(()=>{D(()=>{f(void 0),m(void 0),u(void 0),d({isTransitioning:!1})})}),D(()=>m(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(u(e),d({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))},[r.window,p,h,g,b]);o.useLayoutEffect(()=>r.subscribe(E),[r,E]),o.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new _)},[c]),o.useEffect(()=>{if(h&&s&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{b(()=>i(s)),await e});t.finished.finally(()=>{f(void 0),m(void 0),u(void 0),d({isTransitioning:!1})}),m(t)}},[b,s,h,r.window]),o.useEffect(()=>{h&&s&&a.location.key===s.location.key&&h.resolve()},[h,p,a.location,s]),o.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),o.useEffect(()=>{},[]);let P=o.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),U=r.basename||"/",L=o.useMemo(()=>({router:r,navigator:P,static:!1,basename:U}),[r,P,U]);return o.createElement(o.Fragment,null,o.createElement(l.UNSAFE_DataRouterContext.Provider,{value:L},o.createElement(l.UNSAFE_DataRouterStateContext.Provider,{value:a},o.createElement(R.Provider,{value:g.current},o.createElement(S.Provider,{value:c},o.createElement(l.Router,{basename:U,location:a.location,navigationType:a.historyAction,navigator:P,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?o.createElement(C,{routes:r.routes,future:r.future,state:a}):t))))),null)}function C(e){let{routes:t,future:r,state:n}=e;return(0,l.UNSAFE_useRoutesImpl)(t,void 0,n,r)}let L="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,A=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k=o.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:i,replace:d,state:h,target:f,to:p,preventScrollReset:m,unstable_viewTransition:y}=e,g=c(e,v),{basename:w}=o.useContext(l.UNSAFE_NavigationContext),b=!1;if("string"==typeof p&&A.test(p)&&(r=p,L))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),r=(0,s.stripBasename)(t.pathname,w);t.origin===e.origin&&null!=r?p=r+t.search+t.hash:b=!0}catch(e){}let E=(0,l.useHref)(p,{relative:a}),S=function(e,t){let{target:r,replace:n,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:u}=void 0===t?{}:t,c=(0,l.useNavigate)(),d=(0,l.useLocation)(),h=(0,l.useResolvedPath)(e,{relative:s});return o.useCallback(t=>{var o,f,p;if(o=t,f=r,0===o.button&&(!f||"_self"===f)&&(p=o,!(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey)))t.preventDefault(),c(e,{replace:void 0!==n?n:(0,l.createPath)(d)===(0,l.createPath)(h),state:a,preventScrollReset:i,relative:s,unstable_viewTransition:u})},[d,c,h,n,a,r,e,i,s,u])}(p,{replace:d,state:h,target:f,preventScrollReset:m,relative:a,unstable_viewTransition:y});return o.createElement("a",u({},g,{href:r||E,onClick:b||i?n:function(e){n&&n(e),!e.defaultPrevented&&S(e)},ref:t,target:f}))}),T=o.forwardRef(function(e,t){let r,{"aria-current":a="page",caseSensitive:i=!1,className:d="",end:h=!1,style:f,to:p,unstable_viewTransition:m,children:v}=e,g=c(e,y),w=(0,l.useResolvedPath)(p,{relative:g.relative}),b=(0,l.useLocation)(),E=o.useContext(l.UNSAFE_DataRouterStateContext),{navigator:R,basename:x}=o.useContext(l.UNSAFE_NavigationContext),P=null!=E&&function(e,t){void 0===t&&(t={});let r=o.useContext(S);null!=r||(0,s.UNSAFE_invariant)(!1);let{basename:a}=F(n.useViewTransitionState),i=(0,l.useResolvedPath)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let u=(0,s.stripBasename)(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=(0,s.stripBasename)(r.nextLocation.pathname,a)||r.nextLocation.pathname;return null!=(0,s.matchPath)(i.pathname,c)||null!=(0,s.matchPath)(i.pathname,u)}(w)&&!0===m,D=R.encodeLocation?R.encodeLocation(w).pathname:w.pathname,_=b.pathname,U=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;!i&&(_=_.toLowerCase(),U=U?U.toLowerCase():null,D=D.toLowerCase()),U&&x&&(U=(0,s.stripBasename)(U,x)||U);let C="/"!==D&&D.endsWith("/")?D.length-1:D.length,L=_===D||!h&&_.startsWith(D)&&"/"===_.charAt(C),A=null!=U&&(U===D||!h&&U.startsWith(D)&&"/"===U.charAt(D.length)),T={isActive:L,isPending:A,isTransitioning:P},M=L?a:void 0;r="function"==typeof d?d(T):[d,L?"active":null,A?"pending":null,P?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof f?f(T):f;return o.createElement(k,u({},g,{"aria-current":M,className:r,ref:t,style:N,to:p,unstable_viewTransition:m}),"function"==typeof v?v(T):v)});function F(e){let t=o.useContext(l.UNSAFE_DataRouterContext);return t||(0,s.UNSAFE_invariant)(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(n||(n={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(a||(a={}));let M=0,N=()=>"__"+String(++M)+"__"},92927:function(e,t,r){"use strict";r.r(t),r.d(t,{Outlet:function(){return M},Route:function(){return N},Router:function(){return j},UNSAFE_DataRouterContext:function(){return u},UNSAFE_DataRouterStateContext:function(){return c},UNSAFE_NavigationContext:function(){return d},UNSAFE_RouteContext:function(){return f},UNSAFE_mapRouteProperties:function(){return B},UNSAFE_useRouteId:function(){return A},UNSAFE_useRoutesImpl:function(){return R},createPath:function(){return l.createPath},createRoutesFromElements:function(){return function e(t,r){void 0===r&&(r=[]);let n=[];return i.Children.forEach(t,(t,a)=>{if(!i.isValidElement(t))return;let o=[...r,a];if(t.type===i.Fragment){n.push.apply(n,e(t.props.children,o));return}t.type===N||(0,l.UNSAFE_invariant)(!1),!t.props.index||!t.props.children||(0,l.UNSAFE_invariant)(!1);let s={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&&(s.children=e(t.props.children,o)),n.push(s)}),n}},matchPath:function(){return l.matchPath},matchRoutes:function(){return l.matchRoutes},redirect:function(){return l.redirect},useHref:function(){return m},useLocation:function(){return y},useMatches:function(){return k},useNavigate:function(){return w},useParams:function(){return E},useResolvedPath:function(){return S},useRouteError:function(){return T}});var n,a,o,i=r("5872"),l=r("77393");function s(){return(s=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)}let u=i.createContext(null),c=i.createContext(null),d=i.createContext(null),h=i.createContext(null),f=i.createContext({outlet:null,matches:[],isDataRoute:!1}),p=i.createContext(null);function m(e,t){let{relative:r}=void 0===t?{}:t;v()||(0,l.UNSAFE_invariant)(!1);let{basename:n,navigator:a}=i.useContext(d),{hash:o,pathname:s,search:u}=S(e,{relative:r}),c=s;return"/"!==n&&(c="/"===s?n:(0,l.joinPaths)([n,s])),a.createHref({pathname:c,search:u,hash:o})}function v(){return null!=i.useContext(h)}function y(){return v()||(0,l.UNSAFE_invariant)(!1),i.useContext(h).location}function g(e){!i.useContext(d).static&&i.useLayoutEffect(e)}function w(){let{isDataRoute:e}=i.useContext(f);return e?function(){var e;let t;let{router:r}=(e=_.UseNavigateStable,(t=i.useContext(u))||(0,l.UNSAFE_invariant)(!1),t),n=L(U.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,s({fromRouteId:n},t)))},[r,n])}():function(){v()||(0,l.UNSAFE_invariant)(!1);let e=i.useContext(u),{basename:t,future:r,navigator:n}=i.useContext(d),{matches:a}=i.useContext(f),{pathname:o}=y(),s=JSON.stringify((0,l.UNSAFE_getResolveToMatches)(a,r.v7_relativeSplatPath)),c=i.useRef(!1);return g(()=>{c.current=!0}),i.useCallback(function(r,a){if(void 0===a&&(a={}),!c.current)return;if("number"==typeof r){n.go(r);return}let i=(0,l.resolveTo)(r,JSON.parse(s),o,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,l.joinPaths)([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,s,o,e])}()}let b=i.createContext(null);function E(){let{matches:e}=i.useContext(f),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(d),{matches:a}=i.useContext(f),{pathname:o}=y(),s=JSON.stringify((0,l.UNSAFE_getResolveToMatches)(a,n.v7_relativeSplatPath));return i.useMemo(()=>(0,l.resolveTo)(e,JSON.parse(s),o,"path"===r),[e,s,o,r])}function R(e,t,r,n){let a;v()||(0,l.UNSAFE_invariant)(!1);let{navigator:o}=i.useContext(d),{matches:u}=i.useContext(f),c=u[u.length-1],p=c?c.params:{};c&&c.pathname;let m=c?c.pathnameBase:"/";c&&c.route;let g=y();if(t){var w;let e="string"==typeof t?(0,l.parsePath)(t):t;"/"===m||((w=e.pathname)==null?void 0:w.startsWith(m))||(0,l.UNSAFE_invariant)(!1),a=e}else a=g;let b=a.pathname||"/",E="/"===m?b:b.slice(m.length)||"/",S=(0,l.matchRoutes)(e,{pathname:E}),R=function(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if((o=r)==null||!o.errors)return null;e=r.matches}let s=e,u=(a=r)==null?void 0:a.errors;if(null!=u){let e=s.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));e>=0||(0,l.UNSAFE_invariant)(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((e,n,a)=>{let o;let l=!1,h=null,f=null;r&&(o=u&&n.route.id?u[n.route.id]:void 0,h=n.route.errorElement||x,c&&(d<0&&0===a?(function(e,t,r){!t&&!F[e]&&(F[e]=!0)}("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),l=!0,f=null):d===a&&(l=!0,f=n.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,a+1)),m=()=>{let t;return t=o?h:l?f: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:p,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:h,error:o,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}(S&&S.map(e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,l.joinPaths)([m,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,l.joinPaths)([m,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),u,r,n);return t&&R?i.createElement(h.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:l.Action.Pop}},R):R}let x=i.createElement(function(){let e=T(),t=(0,l.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:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(f.Provider,{value:this.props.routeContext},i.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function D(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(u);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 _=((n=_||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n);var U=((a=U||{}).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 C(e){let t=i.useContext(c);return t||(0,l.UNSAFE_invariant)(!1),t}function L(e){var t;let r;let n=(t=0,(r=i.useContext(f))||(0,l.UNSAFE_invariant)(!1),r),a=n.matches[n.matches.length-1];return a.route.id||(0,l.UNSAFE_invariant)(!1),a.route.id}function A(){return L(U.UseRouteId)}function k(){let{matches:e,loaderData:t}=C(U.UseMatches);return i.useMemo(()=>e.map(e=>(0,l.UNSAFE_convertRouteMatchToUiMatch)(e,t)),[e,t])}function T(){var e;let t=i.useContext(p),r=C(U.UseRouteError),n=L(U.UseRouteError);return void 0!==t?t:(e=r.errors)==null?void 0:e[n]}let F={};function M(e){var t;let r;return t=e.context,(r=i.useContext(f).outlet)?i.createElement(b.Provider,{value:t},r):r}function N(e){(0,l.UNSAFE_invariant)(!1)}function j(e){let{basename:t="/",children:r=null,location:n,navigationType:a=l.Action.Pop,navigator:o,static:u=!1,future:c}=e;v()&&(0,l.UNSAFE_invariant)(!1);let f=t.replace(/^\/*/,"/"),p=i.useMemo(()=>({basename:f,navigator:o,static:u,future:s({v7_relativeSplatPath:!1},c)}),[f,c,o,u]);"string"==typeof n&&(n=(0,l.parsePath)(n));let{pathname:m="/",search:y="",hash:g="",state:w=null,key:b="default"}=n,E=i.useMemo(()=>{let e=(0,l.stripBasename)(m,f);return null==e?null:{location:{pathname:e,search:y,hash:g,state:w,key:b},navigationType:a}},[f,m,y,g,w,b,a]);return null==E?null:i.createElement(d.Provider,{value:p},i.createElement(h.Provider,{children:r,value:E}))}i.startTransition;var O=((o=O||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);new Promise(()=>{});function B(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}}}]);
@@ -1,13 +1,5 @@
1
- /*! @remix-run/router */
2
-
3
- /*! @remix-run/router */
4
-
5
- /*! react-router */
6
-
7
- /*! react */
8
-
9
1
  /**
10
- * @remix-run/router v1.10.0
2
+ * React Router DOM v6.22.0
11
3
  *
12
4
  * Copyright (c) Remix Software Inc.
13
5
  *
@@ -17,8 +9,14 @@
17
9
  * @license MIT
18
10
  */
19
11
 
12
+ /*! react */
13
+
14
+ /*! react-dom */
15
+
16
+ /*! @remix-run/router */
17
+
20
18
  /**
21
- * React Router v6.17.0
19
+ * @remix-run/router v1.15.0
22
20
  *
23
21
  * Copyright (c) Remix Software Inc.
24
22
  *
@@ -29,7 +27,7 @@
29
27
  */
30
28
 
31
29
  /**
32
- * React Router DOM v6.17.0
30
+ * React Router v6.22.0
33
31
  *
34
32
  * Copyright (c) Remix Software Inc.
35
33
  *
@@ -39,4 +37,8 @@
39
37
  * @license MIT
40
38
  */
41
39
 
40
+ /*! @remix-run/router */
41
+
42
+ /*! react-router */
43
+
42
44
  /*! react */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see mount.f9efe099.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsuleButton:function(){return i}});var o=n("86834");n("5872");var r=n("20421"),l=n("35092");let i=e=>{var t;let[n,i]=(0,r.useAsyncFn)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:l.container,onClick:i,"data-type":(t=e.type)!==null&&void 0!==t?t:"default",disabled:n.loading,children:e.children})}},62325:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsule:function(){return y}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("83982"),s=n("5872"),a=n("20421"),c=n("29214"),u=n("55058"),d=n("45967"),v=n("54053"),m=n("10734"),p=n("74709"),h=n("94258"),f=n("28391"),_=n("51879");let g=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:n}=t,o=(e=n.match(/^#\/__devtools(.*)/))===null||void 0===e?void 0:e[1];return"string"!=typeof o?null:""===o?"/":o},y=e=>{let t=e.def.assets.logo,n=g(),[y,w]=(0,a.useToggle)(!!n),[k,b]=(0,s.useState)(!1),E=(0,u.withQuery)(e.endpoint,{src:e.dataSource}),x=(0,h.useStickyDraggable)({clamp:!0}),[C,j]=(0,s.useState)(()=>{var e;let t=(e=localStorage.getItem("__modern_js_devtools_appearance"))!==null&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});(0,a.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&j(e.newValue||void 0)}),(0,a.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&w()}),(0,s.useEffect)(()=>{f.wallAgent.hook("receive",e=>{"startInspectingNative"===e.event&&(w(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(w(!0),document.documentElement.style.removeProperty("cursor"))};return f.wallAgent.hook("send",e),()=>{f.wallAgent.removeHook("send",e)}},[]);let O=async()=>{document.documentElement.style.setProperty("cursor","wait"),w(!1),b(!0);try{(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,a.useAsync)(async()=>{if(!!n)(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp(n)},[]),(0,l.jsxs)(i.Theme,{appearance:C,className:C,children:[(0,l.jsx)(d.default,{when:y,keepAlive:!0,load:k,children:(0,l.jsx)("div",{className:v.container,children:(0,l.jsx)(m.FrameBox,{src:E,onClose:()=>w(!1),style:{pointerEvents:x.isDragging?"none":"auto"}})})}),(0,l.jsxs)(i.Flex,(0,r._)((0,o._)({className:v.fab},x.props),{align:"center",children:[(0,l.jsx)(p.DevtoolsCapsuleButton,{type:"primary",onClick:w,children:(0,l.jsx)("img",{className:v.logo,src:t})}),(0,l.jsx)(p.DevtoolsCapsuleButton,{onClick:O,children:(0,l.jsx)(c.HiMiniCursorArrowRipple,{})})]}))]})}},10734:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return m}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),s=n("83982");n("5872");var a=n("29214"),c=n("42700"),u=n("428"),d=n("45426"),v=n("28391");let m=e=>{var{src:t,onClose:n}=e,m=(0,l._)(e,["src","onClose"]);let{loaded:p}=(0,c.useSnapshot)(v.$inner);return(0,i.jsxs)(s.Box,(0,r._)((0,o._)({className:d.container},m),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(a.HiMiniXMark,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:p?"none":void 0},children:(0,i.jsx)(u.Loading,{})})]}))}},45967:function(e,t,n){"use strict";n.r(t);var o=n("86834"),r=n("5872");t.default=e=>{var t;let n=(t=e.keepAlive)===null||void 0===t||t,{when:l}=e,i=(0,r.useRef)(!1);l&&(i.current=!0);let s=e.load||(n?i.current:l);return s?(0,o.jsx)("div",{style:{display:!n||l?"unset":"none"},children:e.children}):null}},80295:function(e,t,n){"use strict";n.r(t);var o=n("90247"),r=n("86834");n("82231"),n("28391");var l=n("60182"),i=n("82528"),s=n("62325");document.addEventListener("DOMContentLoaded",()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),n=document.getElementById("_modern_js_devtools_styles");if(!(n instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(n.content);let a=document.createElement("div");a.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(a);let c=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(a).render((0,r.jsx)(s.DevtoolsCapsule,(0,o._)({},c)))})},82231:function(e,t,n){"use strict";n.r(t);var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},28391:function(e,t,n){"use strict";n.r(t),n.d(t,{$client:function(){return f},$inner:function(){return _},wallAgent:function(){return p}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),s=n("65872"),a=n("9880"),c=n.n(a),u=n("42700"),d=n("57662"),v=n("24933");let m=l.MessagePortChannel.wait(window,"channel:connect:client"),p=new v.WallAgent,h=(0,d.createBridge)(window,p),f=m.then(e=>{let t=(0,s.createHooks)();return{remote:(0,i.createBirpc)({async activateReactDevtools(){(0,d.activate)(window,{bridge:h})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.proxy)({loaded:!1}),g=c()();f.then(e=>{let{remote:t,hooks:n}=e;p.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,g.resolve()})})},94258:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return a}});var o=n("5872"),r=n("20421");let l=(e,t)=>{var n,o;return(o=(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])===null||void 0===n?void 0:n.includes(t))!==null&&void 0!==o&&o},i=e=>{let[t,...n]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),o=n.findIndex(e=>{let{key:n}=e;return l(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},s=e=>{let{top:t,left:n,height:o,width:r}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-r}},a=e=>{var t;let n=(t=null==e?void 0:e.margin)!==null&&void 0!==t?t:"10px",l="number"==typeof n?"".concat(n,"px"):n,[a,c]=(0,o.useState)(),u=()=>{if(!a)return;a.moveable=!1;let{el:e}=a,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{c(void 0),e.style[t.key]=l}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==a?void 0:a.moveable))return;let{startX:o,startY:r}=a;(o-n.clientX)**2+(r-n.clientY)**2>9&&(a.clickable=!1);let{width:s,height:c}=a.el.getBoundingClientRect(),u=n.clientY-a.offsetY,d=n.clientX-a.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-c,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of v){let t=["top","bottom"].includes(e.key)?window.innerHeight-c:window.innerWidth-s;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[m,p,...h]=v,{style:f}=a.el;f.transition="",f[m.key]=m.value,f[p.key]=p.value,f[h[0].key]="auto",f[h[1].key]="auto"};(0,r.useEvent)("blur",u),(0,r.useEvent)("mouseup",u),(0,r.useEvent)("touchend",u),(0,r.useEvent)("mousemove",d),(0,r.useEvent)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),r=t.clientX-o.left;c({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!a,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==a?void 0:a.clickable)||e.stopPropagation()}}}}},51879:function(e,t,n){"use strict";n.r(t),n.d(t,{pTimeout:function(){return o}});let o=(e,t)=>new Promise((n,o)=>{let r=!0,l=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(l)}),e.catch(o)})},24933:function(e,t,n){"use strict";n.r(t),n.d(t,{WallAgent:function(){return l}});var o=n("18360"),r=n("65872");class l extends r.Hookable{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];n.callHook("receive",e,...o)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];e[t](...o)}),this}constructor(){super(),(0,o._)(this,"status","close");let e=e=>{this.status!==e&&(this.status=e,this.callHook(e))};this.hook("send",t=>{"shutdown"===t.event&&e("close")}),this.hook("receive",t=>{"shutdown"===t.event?e("close"):"operations"===t.event?e("active"):e("open")})}}},82528:function(e){"use strict";e.exports={container:"container-d972e2"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","567","58","637","768","820"],function(){return t("90915"),t("55008"),t("20073"),t("19449"),t("80295")}),e.O()}]);
@@ -1,97 +1,105 @@
1
- /*! @swc/helpers/_/_object_spread */
1
+ /*! react/jsx-runtime */
2
2
 
3
- /*! react-icons/hi2 */
3
+ /*! ./Capsule.module.scss */
4
4
 
5
- /*! react */
5
+ /*! ../Visible */
6
6
 
7
- /*! react/jsx-runtime */
7
+ /*! @swc/helpers/_/_object_spread */
8
8
 
9
- /*! @/utils/react-devtools */
9
+ /*! ./FrameBox.module.scss */
10
10
 
11
11
  /*! react */
12
12
 
13
- /*! ./state */
13
+ /*! ../Loading */
14
14
 
15
- /*! react-use */
15
+ /*! ./Button.module.scss */
16
16
 
17
- /*! @swc/helpers/_/_object_spread_props */
18
-
19
- /*! react */
17
+ /*! @/utils/draggable */
20
18
 
21
- /*! hookable */
19
+ /*! birpc */
22
20
 
23
21
  /*! @radix-ui/themes */
24
22
 
23
+ /*! ./state */
24
+
25
25
  /*! react-use */
26
26
 
27
- /*! @/entries/mount/state */
27
+ /*! react */
28
28
 
29
- /*! ./Action.module.scss */
29
+ /*! ./Button */
30
30
 
31
- /*! ./react-devtools-backend */
31
+ /*! react/jsx-runtime */
32
+
33
+ /*! @/utils/promise */
32
34
 
33
35
  /*! react-use */
34
36
 
35
- /*! @swc/helpers/_/_object_spread */
37
+ /*! react */
36
38
 
37
39
  /*! @swc/helpers/_/_object_spread */
38
40
 
39
- /*! ufo */
41
+ /*! @radix-ui/themes */
40
42
 
41
43
  /*! react/jsx-runtime */
42
44
 
43
- /*! ./index.module.scss */
44
-
45
- /*! birpc */
45
+ /*! react-icons/hi2 */
46
46
 
47
- /*! ../Visible */
47
+ /*! ufo */
48
48
 
49
49
  /*! @swc/helpers/_/_object_spread */
50
50
 
51
- /*! ./FrameBox */
52
-
53
51
  /*! @swc/helpers/_/_object_spread_props */
54
52
 
55
- /*! @swc/helpers/_/_object_spread_props */
53
+ /*! ./react-devtools-backend */
56
54
 
57
- /*! react */
55
+ /*! @swc/helpers/_/_define_property */
56
+
57
+ /*! valtio */
58
+
59
+ /*! @swc/helpers/_/_object_spread */
58
60
 
59
- /*! @modern-js/devtools-kit */
61
+ /*! @swc/helpers/_/_object_spread_props */
60
62
 
61
- /*! lodash */
63
+ /*! react */
62
64
 
63
65
  /*! react/jsx-runtime */
64
66
 
65
- /*! ../Loading */
67
+ /*! hookable */
66
68
 
67
- /*! @/components/Devtools/Action */
69
+ /*! ./index.module.scss */
68
70
 
69
- /*! @swc/helpers/_/_object_spread_props */
71
+ /*! react */
72
+
73
+ /*! react-devtools-inline/backend */
70
74
 
71
75
  /*! @swc/helpers/_/_object_without_properties */
72
76
 
73
- /*! @/utils/draggable */
77
+ /*! react/jsx-runtime */
74
78
 
75
- /*! ./FrameBox.module.scss */
79
+ /*! @swc/helpers/_/_object_spread_props */
76
80
 
77
- /*! ./heading.svg */
81
+ /*! @/entries/mount/state */
78
82
 
79
- /*! @radix-ui/themes */
83
+ /*! react-devtools-inline/backend */
80
84
 
81
- /*! react-dom/client */
85
+ /*! react-use */
82
86
 
83
- /*! react-devtools-inline/backend */
87
+ /*! @/entries/mount/state */
84
88
 
85
- /*! react/jsx-runtime */
89
+ /*! ./FrameBox */
86
90
 
87
- /*! react-devtools-inline/backend */
91
+ /*! valtio */
88
92
 
89
- /*! react */
93
+ /*! react-icons/hi2 */
90
94
 
91
- /*! ufo */
95
+ /*! @/utils/react-devtools */
92
96
 
93
- /*! react/jsx-runtime */
97
+ /*! @modern-js/devtools-kit/runtime */
94
98
 
95
- /*! @swc/helpers/_/_object_spread */
99
+ /*! p-defer */
100
+
101
+ /*! @/components/Devtools/Capsule */
102
+
103
+ /*! react-dom/client */
96
104
 
97
105
  /*! hookable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/devtools-client",
3
- "version": "2.46.1",
3
+ "version": "2.47.0",
4
4
  "engines": {
5
5
  "node": ">=14.0.0"
6
6
  },
@@ -11,7 +11,7 @@
11
11
  "main": "./dist/html/client/index.html",
12
12
  "exports": {
13
13
  ".": "./dist/html/client/index.html",
14
- "./mount": "./exports/mount.mjs",
14
+ "./manifest": "./dist/routes-manifest.json",
15
15
  "./sw-proxy": "./dist/public/sw-proxy.js",
16
16
  "./package.json": "./package.json"
17
17
  },
@@ -22,7 +22,7 @@
22
22
  "@radix-ui/react-popover": "^1.0.7",
23
23
  "@radix-ui/react-tabs": "^1.0.4",
24
24
  "@radix-ui/themes": "^2.0.0",
25
- "@rsbuild/core": "0.3.4",
25
+ "@rsbuild/core": "0.4.4",
26
26
  "@types/jest": "^29",
27
27
  "@types/lodash": "^4.14.202",
28
28
  "@types/node": "~16.11.7",
@@ -42,6 +42,7 @@
42
42
  "react-dom": "^18.2.0",
43
43
  "react-dom-exp": "npm:react-dom@0.0.0-experimental-51ffd3564-20231025",
44
44
  "react-exp": "npm:react@0.0.0-experimental-51ffd3564-20231025",
45
+ "react-error-boundary": "^4.0.12",
45
46
  "react-icons": "^4.11.0",
46
47
  "react-is": "^18",
47
48
  "react-json-tree": "^0.18.0",
@@ -55,16 +56,16 @@
55
56
  "ufo": "^1.3.0",
56
57
  "valtio": "^1.11.1",
57
58
  "jest": "^29",
58
- "@modern-js-app/eslint-config": "2.46.1",
59
- "@modern-js/app-tools": "2.46.1",
60
- "@modern-js/eslint-config": "2.46.1",
61
- "@modern-js/plugin-proxy": "2.46.1",
62
- "@modern-js/runtime": "2.46.1",
63
- "@modern-js/tsconfig": "2.46.1",
64
- "@modern-js/types": "2.46.1",
65
- "@scripts/jest-config": "2.46.1",
66
- "@modern-js/devtools-kit": "2.46.1",
67
- "@modern-js/utils": "2.46.1"
59
+ "@modern-js-app/eslint-config": "2.47.0",
60
+ "@modern-js/devtools-kit": "2.47.0",
61
+ "@modern-js/app-tools": "2.47.0",
62
+ "@modern-js/eslint-config": "2.47.0",
63
+ "@modern-js/plugin-proxy": "2.47.0",
64
+ "@modern-js/runtime": "2.47.0",
65
+ "@modern-js/tsconfig": "2.47.0",
66
+ "@modern-js/types": "2.47.0",
67
+ "@modern-js/utils": "2.47.0",
68
+ "@scripts/jest-config": "2.47.0"
68
69
  },
69
70
  "scripts": {
70
71
  "reset": "npx rimraf ./**/node_modules",
@@ -1 +0,0 @@
1
- .loading-f4a5e7{stroke:#555;animation:rotate-d4ee47 1s linear infinite}@keyframes rotate-d4ee47{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.container-_6ff2e{align-items:center;display:flex;justify-content:center}
@@ -1 +0,0 @@
1
- .container-_1260b{font-size:var(--font-size-2)}
@@ -1 +0,0 @@
1
- .container-_1260b{font-size:var(--font-size-2)}
@@ -1 +0,0 @@
1
- .container-_1260b{font-size:var(--font-size-2)}
@@ -1 +0,0 @@
1
- .signal-_8af82{background-color:var(--red-8);border-radius:var(--radius-thumb);height:var(--space-2);width:var(--space-2)}.signal-_8af82[data-active=true]{background-color:var(--green-8)}.container-_560f9{background-color:var(--gray-1);border-radius:var(--radius-2);box-shadow:var(--shadow-4);display:flex;flex-direction:column;overflow:hidden}.input-pair-_55005{align-items:center;display:flex;gap:var(--space-2);padding:var(--space-2) var(--space-3)}.input-pair-_55005:nth-child(odd){background-color:var(--gray-2)}.input-pair-_55005:nth-child(2n){background-color:var(--gray-3)}.input-pair-_55005:not([aria-disabled=true]):hover .actions-_5b76a{display:flex;gap:var(--space-2)}.actions-_5b76a{align-items:center;display:none;padding-left:var(--space-1)}
@@ -1 +0,0 @@
1
- .container-_43720{max-width:40rem}.bottom-tip-_4de0d{opacity:.3;transition:opacity .3s}.bottom-tip-_4de0d:hover{opacity:1}.indicate-card-_63c58{border-radius:var(--radius-6);box-shadow:var(--shadow-4);padding:var(--space-5)}.dark .indicate-card-_63c58{background-color:var(--gray-1)}.primary-card-a671aa{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-a671aa{background-color:var(--blue-10)}.primary-card-a671aa 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-a671aa button:active,.primary-card-a671aa button:hover{background-color:var(--black-a1)}.compile-time-card-_5eda1{flex:2 1}.plugin-card-f1e2dc{flex:2 1;min-width:15rem}.info-card-_07b33{flex:2 1;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.indicate-bar-_5118d{color:var(--gray-9);flex:1 1;font-size:var(--font-size-1);min-width:var(--space-1);white-space:nowrap}.indicate-bar-_5118d:before{border-radius:var(--radius-thumb);content:"";display:block;height:var(--space-1);text-align:center;width:100%}.indicate-bar-_5118d:nth-child(odd):before{background-color:var(--blue-9)}.indicate-bar-_5118d:nth-child(2n):before{background-color:var(--red-9)}
@@ -1 +0,0 @@
1
- .input-d0c7d8{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-_729f8{background-color:var(--gray-1);border-radius:var(--radius-2);box-shadow:var(--shadow-4)}.trigger-_13b59{all:unset;align-items:center;cursor:pointer;display:flex;gap:var(--space-2);width:100%}.trigger-_13b59 *{cursor:pointer}.content-_01b01{overflow:hidden;padding-top:var(--space-2)}.content-_01b01[data-state=open]{animation:slideDown-b8bce3 .15s ease-out}.content-_01b01[data-state=closed]{animation:slideUp-dbcad1 .15s ease-out}@keyframes slideDown-b8bce3{0%{height:0;opacity:0}to{height:var(--radix-collapsible-content-height);opacity:1}}@keyframes slideUp-dbcad1{0%{height:var(--radix-collapsible-content-height);opacity:1}to{height:0;opacity:0}}.url-text-a0e7e4{color:var(--gray-12);font-size:var(--font-size-2);transition:color .2s}.mark-_92790{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-_92790[data-open=true]{background-color:var(--gray-4)}.stats-e82970{color:var(--gray-10);font-size:var(--font-size-1);white-space:nowrap}.endpoint-tag-_0664a{font-size:var(--font-size-2)}.endpoint-tag-_0664a[data-compose=head]{border-bottom-right-radius:0;border-top-right-radius:0;padding-right:0}.endpoint-tag-_0664a[data-compose=tail]{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:0}.shy-link-d59f70{color:var(--gray-9);font-size:var(--font-size-1)}.endpoint-container-_4be65{display:flex;transition:opacity .2s}.endpoint-container-_4be65[data-matched=false]{opacity:.5}
@@ -1 +0,0 @@
1
- button{cursor:pointer}.wrapper-_97d72{--navigator-width:var(--space-8);--breadcrumb-height:var(--space-7)}.inner-e0e4a8{min-height:100vh;padding-left:var(--navigator-width);width:100vw}.inner-right-c4d5b6{background-color:var(--gray-2);padding-top:var(--breadcrumb-height)}.container-_7aa7d{min-height:calc(100vh - var(--breadcrumb-height))}.navigator-bd780c{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-_6b38a{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-_97258{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-_97258.active,.tab-button-_97258:hover{color:var(--gray-11)}.tab-button-inner-_2887d{border-radius:var(--radius-3);transition:background-color .3s}.tab-button-_97258.active .tab-button-inner-_2887d{background-color:var(--gray-4)}.fading-mask-d5651b{background:linear-gradient(to bottom,var(--color-background),transparent);left:0;pointer-events:none;position:absolute;right:0;top:0}.link-_26ee2{color:var(--gray-10)}.connector-_43720{color:var(--gray-6);height:var(--font-size-2);width:var(--font-size-2)}.tooltip-ece352{--radix-tooltip-content-available-height:20rem}
@@ -1 +0,0 @@
1
- .container-d972e2{position:relative;z-index:9999}.container-_2b857{align-items:center;bottom:0;display:flex;justify-content:center;left:0;pointer-events:none;position:fixed;right:0;top:0}.container-_2b857>*{pointer-events:auto}.fab-_08a6e{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-_08a6e *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.logo-ed314b{height:1.5rem;object-fit:contain;width:1.5rem}.heading-_1bbcd{color:var(--gray-a10);height:1rem;margin:0 var(--space-2);width:3.25rem}.container-fb8255{bottom:0;box-shadow:var(--shadow-5);left:0;overflow:hidden;position:fixed;right:0;top:0}@media (min-width:520px){.container-fb8255{border-radius:.75rem;height:35rem;position:relative;width:50rem}}.close-button-c3742a{color:var(--gray-8);cursor:pointer;position:absolute;right:10px;top:10px}.frame-_5d7ff{border:none;height:100%;width:100%}.backdrop-_51706{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}
@@ -1,2 +0,0 @@
1
- /*! For license information please see 535.6ec7133e.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["535"],{60441:function(e,t,n){"use strict";n.r(t),n.d(t,{CaretSortIcon:function(){return a},ChevronRightIcon:function(){return i}});var o=n("5872");function r(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var l=["color"],a=(0,o.forwardRef)(function(e,t){var n=e.color,a=r(e,l);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a,{ref:t}),(0,o.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))}),c=["color"],i=(0,o.forwardRef)(function(e,t){var n=e.color,l=r(e,c);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l,{ref:t}),(0,o.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===n?"currentColor":n,fillRule:"evenodd",clipRule:"evenodd"}))})},13266:function(e,t,n){"use strict";var o=n("80364"),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function i(e){return o.isMemo(e)?a:c[e.$$typeof]||r}c[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[o.Memo]=a;var u=Object.defineProperty,s=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var r=f(n);r&&r!==h&&e(t,r,o)}var a=s(n);d&&(a=a.concat(d(n)));for(var c=i(t),y=i(n),g=0;g<a.length;++g){var m=a[g];if(!l[m]&&!(o&&o[m])&&!(y&&y[m])&&!(c&&c[m])){var _=p(n,m);try{u(t,m,_)}catch(e){}}}}return t}},24546:function(e){"use strict";e.exports=function(e,t,n,o,r,l,a,c){if(!e){var i;if(void 0===t)i=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,r,l,a,c],s=0;(i=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}}},44643:function(e,t,n){"use strict";n.r(t),n.d(t,{affectedToPathList:function(){return g},createProxy:function(){return p},getUntracked:function(){return h},isChanged:function(){return f},markToTrack:function(){return y}});let o=Symbol(),r=Symbol(),l=(e,t)=>new Proxy(e,t),a=Object.getPrototypeOf,c=new WeakMap,i=e=>e&&(c.has(e)?c.get(e):a(e)===Object.prototype||a(e)===Array.prototype),u=e=>"object"==typeof e&&null!==e,s=e=>{if(Array.isArray(e))return Array.from(e);let t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(a(e),t)},d=e=>e[r]||e,p=(e,t,n,a)=>{if(!i(e))return e;let c=a&&a.get(e);if(!c){let t=d(e);c=Object.values(Object.getOwnPropertyDescriptors(t)).some(e=>!e.configurable&&!e.writable)?[t,s(t)]:[t],null==a||a.set(e,c)}let[u,f]=c,h=n&&n.get(u);return h&&!!f===h[1].f||((h=((e,t)=>{let n={f:t},l=!1,a=(t,o)=>{if(!l){let r=n.a.get(e);if(r||(r={},n.a.set(e,r)),"w"===t)r.w=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(o)}}},c={get:(t,o)=>o===r?e:(a("k",o),p(Reflect.get(t,o),n.a,n.c,n.t)),has:(t,r)=>r===o?(l=!0,n.a.delete(e),!0):(a("h",r),Reflect.has(t,r)),getOwnPropertyDescriptor:(e,t)=>(a("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(a("w"),Reflect.ownKeys(e))};return t&&(c.set=c.deleteProperty=()=>!1),[c,n]})(u,!!f))[1].p=l(f||u,h[0]),n&&n.set(u,h)),h[1].a=t,h[1].c=n,h[1].t=a,h[1].p},f=(e,t,n,o)=>{if(Object.is(e,t))return!1;if(!u(e)||!u(t))return!0;let r=n.get(d(e));if(!r)return!0;if(o){let n=o.get(e);if(n&&n.n===t)return n.g;o.set(e,{n:t,g:!1})}let l=null;try{for(let n of r.h||[])if(l=Reflect.has(e,n)!==Reflect.has(t,n))return l;if(!0===r.w){if(l=((e,t)=>{let n=Reflect.ownKeys(e),o=Reflect.ownKeys(t);return n.length!==o.length||n.some((e,t)=>e!==o[t])})(e,t))return l}else for(let n of r.o||[])if(l=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n))return l;for(let a of r.k||[])if(l=f(e[a],t[a],n,o))return l;return null===l&&(l=!0),l}finally{o&&o.set(e,{n:t,g:l})}},h=e=>i(e)&&e[r]||null,y=(e,t=!0)=>{c.set(e,t)},g=(e,t,n)=>{let o=[],r=new WeakSet,l=(e,a)=>{if(r.has(e))return;u(e)&&r.add(e);let c=u(e)&&t.get(d(e));if(c){var i,s,p;if(null==(i=c.h)||i.forEach(e=>{let t=`:has(${String(e)})`;o.push(a?[...a,t]:[t])}),!0===c.w){let e=":ownKeys";o.push(a?[...a,e]:[e])}else null==(p=c.o)||p.forEach(e=>{let t=`:hasOwn(${String(e)})`;o.push(a?[...a,t]:[t])});null==(s=c.k)||s.forEach(t=>{(!n||"value"in(Object.getOwnPropertyDescriptor(e,t)||{}))&&l(e[t],a?[...a,t]:[t])})}else a&&o.push(a)};return l(e),o}},54201:function(e,t,n){"use strict";n.r(t),n.d(t,{RiReactjsLine:function(){return r}});var o=n("17966");function r(e){return(0,o.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.001 13.5001C11.1725 13.5001 10.501 12.8285 10.501 12.0001C10.501 11.1716 11.1725 10.5001 12.001 10.5001C12.8294 10.5001 13.501 11.1716 13.501 12.0001C13.501 12.8285 12.8294 13.5001 12.001 13.5001ZM11.4733 16.4945C11.6479 16.705 11.8239 16.908 12.001 17.103C12.178 16.908 12.3541 16.705 12.5286 16.4945C12.3538 16.4982 12.1779 16.5001 12.001 16.5001C11.824 16.5001 11.6481 16.4982 11.4733 16.4945ZM9.47837 16.3694C8.6762 16.2846 7.91035 16.1603 7.19268 16.0016C7.11832 16.3512 7.06134 16.6904 7.02243 17.0166C6.83358 18.6 7.09805 19.5617 7.50098 19.7943C7.9039 20.0269 8.86893 19.7751 10.1458 18.8199C10.4088 18.6231 10.6741 18.4042 10.9397 18.1649C10.4434 17.6228 9.95287 17.0217 9.47837 16.3694ZM16.8093 16.0016C16.0916 16.1603 15.3257 16.2846 14.5236 16.3694C14.0491 17.0217 13.5585 17.6228 13.0622 18.1649C13.3279 18.4042 13.5931 18.6231 13.8562 18.8199C15.133 19.7751 16.0981 20.0269 16.501 19.7943C16.9039 19.5617 17.1684 18.6 16.9795 17.0166C16.9406 16.6904 16.8836 16.3512 16.8093 16.0016ZM18.2598 15.6136C18.8364 18.2526 18.5328 20.3533 17.251 21.0933C15.9691 21.8334 13.9981 21.046 12.001 19.2271C10.0038 21.046 8.03282 21.8334 6.75098 21.0933C5.46913 20.3533 5.16555 18.2526 5.74217 15.6136C3.16842 14.7935 1.50098 13.4802 1.50098 12.0001C1.50098 10.5199 3.16842 9.20668 5.74217 8.38654C5.16555 5.74754 5.46913 3.64687 6.75098 2.9068C8.03282 2.16673 10.0038 2.95415 12.001 4.77302C13.9981 2.95415 15.9691 2.16673 17.251 2.9068C18.5328 3.64687 18.8364 5.74754 18.2598 8.38654C20.8335 9.20668 22.501 10.5199 22.501 12.0001C22.501 13.4802 20.8335 14.7935 18.2598 15.6136ZM10.9397 5.83521C10.6741 5.59597 10.4088 5.37703 10.1458 5.18024C8.86893 4.22499 7.9039 3.97321 7.50098 4.20584C7.09805 4.43847 6.83358 5.4001 7.02243 6.9835C7.06134 7.30969 7.11832 7.6489 7.19268 7.99857C7.91035 7.83985 8.6762 7.71556 9.47837 7.63078C9.95287 6.97848 10.4434 6.37737 10.9397 5.83521ZM14.5236 7.63078C15.3257 7.71556 16.0916 7.83985 16.8093 7.99857C16.8836 7.6489 16.9406 7.30969 16.9795 6.9835C17.1684 5.4001 16.9039 4.43847 16.501 4.20584C16.0981 3.97321 15.133 4.22499 13.8562 5.18024C13.5931 5.37703 13.3279 5.59597 13.0622 5.83521C13.5585 6.37737 14.0491 6.97848 14.5236 7.63078ZM12.5286 7.50565C12.3541 7.29515 12.178 7.09211 12.001 6.89711C11.8239 7.09211 11.6479 7.29515 11.4733 7.50565C11.6481 7.50194 11.824 7.50007 12.001 7.50007C12.1779 7.50007 12.3538 7.50194 12.5286 7.50565ZM8.37252 14.7042C8.28191 14.5547 8.19233 14.4033 8.10386 14.2501C8.01539 14.0968 7.92906 13.9435 7.84488 13.7903C7.74985 14.0467 7.66205 14.3007 7.58169 14.5515C7.83908 14.6074 8.10295 14.6583 8.37252 14.7042ZM10.3049 14.9377C10.8579 14.9788 11.4251 15.0001 12.001 15.0001C12.5769 15.0001 13.144 14.9788 13.697 14.9377C14.0091 14.4793 14.3111 13.9988 14.5991 13.5001C14.887 13.0013 15.1522 12.4995 15.393 12.0001C15.1522 11.5006 14.887 10.9988 14.5991 10.5001C14.3111 10.0013 14.0091 9.52081 13.697 9.06246C13.144 9.02133 12.5769 9.00007 12.001 9.00007C11.4251 9.00007 10.8579 9.02133 10.3049 9.06246C9.99283 9.52081 9.69086 10.0013 9.4029 10.5001C9.11494 10.9988 8.8498 11.5006 8.60892 12.0001C8.8498 12.4995 9.11494 13.0013 9.4029 13.5001C9.69086 13.9988 9.99283 14.4793 10.3049 14.9377ZM16.1571 10.2098C16.2521 9.9534 16.3399 9.6994 16.4203 9.44859C16.1629 9.39278 15.899 9.34182 15.6294 9.29591C15.72 9.44543 15.8096 9.59683 15.8981 9.75007C15.9866 9.9033 16.0729 10.0566 16.1571 10.2098ZM6.13143 9.83671C5.79142 9.94714 5.46917 10.0674 5.16723 10.1968C3.70154 10.825 3.00098 11.5348 3.00098 12.0001C3.00098 12.4653 3.70154 13.1752 5.16723 13.8033C5.46917 13.9327 5.79142 14.053 6.13143 14.1634C6.35281 13.4625 6.6281 12.7371 6.95576 12.0001C6.6281 11.263 6.35281 10.5376 6.13143 9.83671ZM7.58169 9.44859C7.66205 9.6994 7.74985 9.9534 7.84488 10.2098C7.92906 10.0566 8.01539 9.9033 8.10386 9.75007C8.19233 9.59683 8.28191 9.44543 8.37252 9.29591C8.10295 9.34182 7.83908 9.39278 7.58169 9.44859ZM17.8705 14.1634C18.2105 14.053 18.5328 13.9327 18.8347 13.8033C20.3004 13.1752 21.001 12.4653 21.001 12.0001C21.001 11.5348 20.3004 10.825 18.8347 10.1968C18.5328 10.0674 18.2105 9.94714 17.8705 9.83671C17.6491 10.5376 17.3739 11.263 17.0462 12.0001C17.3739 12.7371 17.6491 13.4625 17.8705 14.1634ZM16.4203 14.5515C16.3399 14.3007 16.2521 14.0467 16.1571 13.7903C16.0729 13.9435 15.9866 14.0968 15.8981 14.2501C15.8096 14.4033 15.72 14.5547 15.6294 14.7042C15.899 14.6583 16.1629 14.6074 16.4203 14.5515Z"}}]})(e)}},66462:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,i=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,R=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case s:case d:case l:case c:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case y:case i:return e;default:return t}}case r:return t}}}function M(e){return C(e)===d}t.AsyncMode=s,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=i,t.Element=o,t.ForwardRef=p,t.Fragment=l,t.Lazy=g,t.Memo=y,t.Portal=r,t.Profiler=c,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return M(e)||C(e)===s},t.isConcurrentMode=M,t.isContextConsumer=function(e){return C(e)===u},t.isContextProvider=function(e){return C(e)===i},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return C(e)===p},t.isFragment=function(e){return C(e)===l},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===y},t.isPortal=function(e){return C(e)===r},t.isProfiler=function(e){return C(e)===c},t.isStrictMode=function(e){return C(e)===a},t.isSuspense=function(e){return C(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===c||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===y||e.$$typeof===i||e.$$typeof===u||e.$$typeof===p||e.$$typeof===_||e.$$typeof===b||e.$$typeof===R||e.$$typeof===m)},t.typeOf=C},80364:function(e,t,n){"use strict";e.exports=n("66462")},95766:function(e,t,n){"use strict";var o=n("5872"),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=o.useState,a=o.useEffect,c=o.useLayoutEffect,i=o.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),o=l({inst:{value:n,getSnapshot:t}}),r=o[0].inst,s=o[1];return c(function(){r.value=n,r.getSnapshot=t,u(r)&&s({inst:r})},[e,n,t]),a(function(){return u(r)&&s({inst:r}),e(function(){u(r)&&s({inst:r})})},[e]),i(n),n};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:s},10746:function(e,t,n){"use strict";e.exports=n("95766")},36016:function(e,t,n){"use strict";n.r(t),n.d(t,{router:function(){return o.default}});var o=n("39934")},76273:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var o=n("90247");n("5872");var r=n("60182"),l=n("46606"),a=n("71759"),c=n("36016");let i="undefined"!=typeof window&&"nodejs"!==window.name,u=null;var s=u=function(){let e=(0,o._)({},(!1).config,"function"==typeof config?config():{});return!(u=(0,l.createApp)({plugins:[(0,c.router)((0,o._)({},{serverBase:["/"],basename:"/__devtools",routesConfig:{routes:a.routes,globalApp:!1}},null==e?void 0:e.router))]})()).init&&"undefined"!=typeof appInit&&(u.init=appInit),i&&(0,l.bootstrap)(u,"root",null,r),u}()},71759:function(e,t,n){"use strict";n.r(t),n.d(t,{routes:function(){return b}});var o=n("5872"),r=n("39934"),l=n("65556"),a=n("70853"),c=n("74350"),i=n("92563"),u=n("30383"),s=n("50512"),d=n("67080"),p=n("64981"),f=n("22359"),h=n("93656"),y=n("99025"),g=n("9845"),m=n("41058"),_=n("92019");"undefined"!=typeof document&&(window._routeModules={});let b=[{path:"/",children:[{path:"config",children:[{_component:"@_modern_js_src/entries/client/routes/config/[toolkit].[type]/page.tsx",id:"client_config/(toolkit).(type)/page",type:"nested",loader:c.default,path:":toolkit/:type",lazyImport:()=>n.el("71759@1960:2102").then(n.bind(n,"9942")).then(e=>(0,r.handleRouteModule)(e,"client_config/(toolkit).(type)/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@2285:2427").then(n.bind(n,"9942")).then(e=>(0,r.handleRouteModule)(e,"client_config/(toolkit).(type)/page")).catch(r.handleRouteModuleError)),shouldRevalidate:(0,r.createShouldRevalidate)("client_config/(toolkit).(type)/page")},{_component:"@_modern_js_src/entries/client/routes/config/page.tsx",index:!0,id:"client_config/page",type:"nested",loader:i.default,lazyImport:()=>n.el("71759@3016:3124").then(n.bind(n,"19885")).then(e=>(0,r.handleRouteModule)(e,"client_config/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@3290:3398").then(n.bind(n,"19885")).then(e=>(0,r.handleRouteModule)(e,"client_config/page")).catch(r.handleRouteModuleError)),shouldRevalidate:(0,r.createShouldRevalidate)("client_config/page")}],isRoot:!1,config:p,_component:"@_modern_js_src/entries/client/routes/config/layout.tsx",id:"client_config/layout",type:"nested",lazyImport:()=>n.el("71759@3907:4019").then(n.bind(n,"69149")).then(e=>(0,r.handleRouteModule)(e,"client_config/layout")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@4179:4291").then(n.bind(n,"69149")).then(e=>(0,r.handleRouteModule)(e,"client_config/layout")).catch(r.handleRouteModuleError))},{path:"context",children:[{_component:"@_modern_js_src/entries/client/routes/context/builder/page.tsx",id:"client_context/builder/page",type:"nested",path:"builder",lazyImport:()=>n.el("71759@4807:4933").then(n.bind(n,"81006")).then(e=>(0,r.handleRouteModule)(e,"client_context/builder/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@5108:5234").then(n.bind(n,"81006")).then(e=>(0,r.handleRouteModule)(e,"client_context/builder/page")).catch(r.handleRouteModuleError))},{_component:"@_modern_js_src/entries/client/routes/context/framework/page.tsx",id:"client_context/framework/page",type:"nested",path:"framework",lazyImport:()=>n.el("71759@5692:5822").then(n.bind(n,"49011")).then(e=>(0,r.handleRouteModule)(e,"client_context/framework/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@5999:6129").then(n.bind(n,"49011")).then(e=>(0,r.handleRouteModule)(e,"client_context/framework/page")).catch(r.handleRouteModuleError))},{_component:"@_modern_js_src/entries/client/routes/context/page.tsx",index:!0,id:"client_context/page",type:"nested",loader:u.default,lazyImport:()=>n.el("71759@6607:6717").then(n.bind(n,"64618")).then(e=>(0,r.handleRouteModule)(e,"client_context/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@6884:6994").then(n.bind(n,"64618")).then(e=>(0,r.handleRouteModule)(e,"client_context/page")).catch(r.handleRouteModuleError)),shouldRevalidate:(0,r.createShouldRevalidate)("client_context/page")}],isRoot:!1,config:f,_component:"@_modern_js_src/entries/client/routes/context/layout.tsx",id:"client_context/layout",type:"nested",lazyImport:()=>n.el("71759@7507:7621").then(n.bind(n,"42737")).then(e=>(0,r.handleRouteModule)(e,"client_context/layout")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@7782:7896").then(n.bind(n,"42737")).then(e=>(0,r.handleRouteModule)(e,"client_context/layout")).catch(r.handleRouteModuleError))},{path:"headers",children:[{_component:"@_modern_js_src/entries/client/routes/headers/editor/page.tsx",id:"client_headers/editor/page",type:"nested",path:"editor",lazyImport:()=>n.el("71759@8410:8534").then(n.bind(n,"1343")).then(e=>(0,r.handleRouteModule)(e,"client_headers/editor/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@8708:8832").then(n.bind(n,"1343")).then(e=>(0,r.handleRouteModule)(e,"client_headers/editor/page")).catch(r.handleRouteModuleError))},{_component:"@_modern_js_src/entries/client/routes/headers/page.tsx",index:!0,id:"client_headers/page",type:"nested",lazyImport:()=>n.el("71759@9263:9373").then(n.bind(n,"4172")).then(e=>(0,r.handleRouteModule)(e,"client_headers/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@9540:9650").then(n.bind(n,"4172")).then(e=>(0,r.handleRouteModule)(e,"client_headers/page")).catch(r.handleRouteModuleError))},{_component:"@_modern_js_src/entries/client/routes/headers/welcome/page.tsx",id:"client_headers/welcome/page",type:"nested",path:"welcome",lazyImport:()=>n.el("71759@10094:10220").then(n.bind(n,"29129")).then(e=>(0,r.handleRouteModule)(e,"client_headers/welcome/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@10395:10521").then(n.bind(n,"29129")).then(e=>(0,r.handleRouteModule)(e,"client_headers/welcome/page")).catch(r.handleRouteModuleError))}],isRoot:!1,config:h,_component:"@_modern_js_src/entries/client/routes/headers/layout.tsx",id:"client_headers/layout",type:"nested",lazyImport:()=>n.el("71759@10951:11065").then(n.bind(n,"4258")).then(e=>(0,r.handleRouteModule)(e,"client_headers/layout")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@11226:11340").then(n.bind(n,"4258")).then(e=>(0,r.handleRouteModule)(e,"client_headers/layout")).catch(r.handleRouteModuleError))},{path:"overview",children:[{_component:"@_modern_js_src/entries/client/routes/overview/page.tsx",index:!0,id:"client_overview/page",type:"nested",lazyImport:()=>n.el("71759@11840:11952").then(n.bind(n,"52057")).then(e=>(0,r.handleRouteModule)(e,"client_overview/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@12120:12232").then(n.bind(n,"52057")).then(e=>(0,r.handleRouteModule)(e,"client_overview/page")).catch(r.handleRouteModuleError))}],isRoot:!1,config:y,id:"client_overview/layout",type:"nested",lazyImport:null},{_component:"@_modern_js_src/entries/client/routes/page.tsx",index:!0,id:"client_page",type:"nested",loader:s.default,lazyImport:()=>n.el("71759@12848:12942").then(n.bind(n,"51637")).then(e=>(0,r.handleRouteModule)(e,"client_page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@13093:13187").then(n.bind(n,"51637")).then(e=>(0,r.handleRouteModule)(e,"client_page")).catch(r.handleRouteModuleError)),shouldRevalidate:(0,r.createShouldRevalidate)("client_page")},{path:"pages",children:[{_component:"@_modern_js_src/entries/client/routes/pages/page.tsx",index:!0,id:"client_pages/page",type:"nested",lazyImport:()=>n.el("71759@13743:13849").then(n.bind(n,"71166")).then(e=>(0,r.handleRouteModule)(e,"client_pages/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@14014:14120").then(n.bind(n,"71166")).then(e=>(0,r.handleRouteModule)(e,"client_pages/page")).catch(r.handleRouteModuleError))}],isRoot:!1,config:g,_component:"@_modern_js_src/entries/client/routes/pages/layout.tsx",id:"client_pages/layout",type:"nested",lazyImport:()=>n.el("71759@14536:14646").then(n.bind(n,"81840")).then(e=>(0,r.handleRouteModule)(e,"client_pages/layout")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@14805:14915").then(n.bind(n,"81840")).then(e=>(0,r.handleRouteModule)(e,"client_pages/layout")).catch(r.handleRouteModuleError))},{path:"react/:tab",children:[{_component:"@_modern_js_src/entries/client/routes/react/[tab]/page.tsx",index:!0,id:"client_react/(tab)/page",type:"nested",lazyImport:()=>n.el("71759@15421:15539").then(n.bind(n,"48228")).then(e=>(0,r.handleRouteModule)(e,"client_react/(tab)/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@15710:15828").then(n.bind(n,"48228")).then(e=>(0,r.handleRouteModule)(e,"client_react/(tab)/page")).catch(r.handleRouteModuleError))}],isRoot:!1,config:m,_component:"@_modern_js_src/entries/client/routes/react/[tab]/layout.tsx",id:"client_react/(tab)/layout",type:"nested",lazyImport:()=>n.el("71759@16262:16384").then(n.bind(n,"33201")).then(e=>(0,r.handleRouteModule)(e,"client_react/(tab)/layout")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@16549:16671").then(n.bind(n,"33201")).then(e=>(0,r.handleRouteModule)(e,"client_react/(tab)/layout")).catch(r.handleRouteModuleError))},{_component:"@_modern_js_src/entries/client/routes/react/offscreen/page.tsx",id:"client_react/offscreen/page",type:"nested",path:"react/offscreen",lazyImport:()=>n.el("71759@17073:17199").then(n.bind(n,"51005")).then(e=>(0,r.handleRouteModule)(e,"client_react/offscreen/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@17366:17492").then(n.bind(n,"51005")).then(e=>(0,r.handleRouteModule)(e,"client_react/offscreen/page")).catch(r.handleRouteModuleError))},{_component:"@_modern_js_src/entries/client/routes/react/page.tsx",id:"client_react/page",type:"nested",loader:d.default,path:"react",lazyImport:()=>n.el("71759@17902:18008").then(n.bind(n,"49680")).then(e=>(0,r.handleRouteModule)(e,"client_react/page")).catch(r.handleRouteModuleError),component:(0,o.lazy)(()=>n.el("71759@18165:18271").then(n.bind(n,"49680")).then(e=>(0,r.handleRouteModule)(e,"client_react/page")).catch(r.handleRouteModuleError)),shouldRevalidate:(0,r.createShouldRevalidate)("client_react/page")}],isRoot:!0,config:_,_component:"@_modern_js_src/entries/client/routes/layout.tsx",loading:a.default,id:"client_layout",type:"nested",lazyImport:()=>n.el("71759@18721:18779").then(n.bind(n,"65556")).then(e=>(0,r.handleRouteModule)(e,"client_layout")).catch(r.handleRouteModuleError),component:l.default}]},42700:function(e,t,n){"use strict";n.r(t);var o=n("81733");n.es(o,t);var r=n("79197");n.es(r,t)},79197:function(e,t,n){"use strict";n.r(t),n.d(t,{useSnapshot:function(){return d}});var o=n("5872"),r=n("44643"),l=n("10746"),a=n("81733");let{use:c}=o,{useSyncExternalStore:i}=l,u=(e,t)=>{let n=(0,o.useRef)();(0,o.useEffect)(()=>{n.current=(0,r.affectedToPathList)(e,t,!0)}),(0,o.useDebugValue)(n.current)},s=new WeakMap;function d(e,t){let n=null==t?void 0:t.sync,l=(0,o.useRef)(),d=(0,o.useRef)(),p=!0,f=i((0,o.useCallback)(t=>{let o=(0,a.subscribe)(e,t,n);return t(),o},[e,n]),()=>{let t=(0,a.snapshot)(e,c);try{if(!p&&l.current&&d.current&&!(0,r.isChanged)(l.current,t,d.current,new WeakMap))return l.current}catch(e){}return t},()=>(0,a.snapshot)(e,c));p=!1;let h=new WeakMap;(0,o.useEffect)(()=>{l.current=f,d.current=h});u(f,h);let y=(0,o.useMemo)(()=>new WeakMap,[]);return(0,r.createProxy)(f,h,y,s)}},81733:function(e,t,n){"use strict";n.r(t),n.d(t,{proxy:function(){return i},ref:function(){return d},snapshot:function(){return s},subscribe:function(){return u}});var o=n("44643");let r=e=>"object"==typeof e&&null!==e,l=new WeakMap,a=new WeakSet,[c]=((e=Object.is,t=(e,t)=>new Proxy(e,t),n=e=>r(e)&&!a.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),c=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},i=new WeakMap,u=(e,t,n=c)=>{let r=i.get(e);if((null==r?void 0:r[0])===t)return r[1];let s=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return(0,o.markToTrack)(s,!0),i.set(e,[t,s]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(s,t))return;let r=Reflect.get(e,t),c={value:r,enumerable:!0,configurable:!0};if(a.has(r))(0,o.markToTrack)(r,!1);else if(r instanceof Promise)delete c.value,c.get=()=>n(r);else if(l.has(r)){let[e,t]=l.get(r);c.value=u(e,t(),n)}Object.defineProperty(s,t,c)}),Object.preventExtensions(s)},s=new WeakMap,d=[1,1],p=c=>{if(!r(c))throw Error("object required");let i=s.get(c);if(i)return i;let f=d[0],h=new Set,y=(e,t=++d[0])=>{f!==t&&(f=t,h.forEach(n=>n(e,t)))},g=d[1],m=(e=++d[1])=>(g!==e&&!h.size&&(g=e,b.forEach(([t])=>{let n=t[1](e);n>f&&(f=n)})),f),_=e=>(t,n)=>{let o=[...t];o[1]=[e,...o[1]],y(o,n)},b=new Map,R=(e,t)=>{if(b.has(e))throw Error("prop listener already exists");if(h.size){let n=t[3](_(e));b.set(e,[t,n])}else b.set(e,[t])},C=e=>{var t;let n=b.get(e);n&&(b.delete(e),null==(t=n[1])||t.call(n))},M=e=>{h.add(e),1===h.size&&b.forEach(([e,t],n)=>{if(t)throw Error("remove already exists");let o=e[3](_(n));b.set(n,[e,o])});let t=()=>{h.delete(e),0===h.size&&b.forEach(([e,t],n)=>{t&&(t(),b.set(n,[e]))})};return t},v=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),w={deleteProperty(e,t){let n=Reflect.get(e,t);C(t);let o=Reflect.deleteProperty(e,t);return o&&y(["delete",[t],n]),o},set(t,c,i,u){let d=Reflect.has(t,c),f=Reflect.get(t,c,u);if(d&&(e(f,i)||s.has(i)&&e(f,s.get(i))))return!0;C(c),r(i)&&(i=(0,o.getUntracked)(i)||i);let h=i;if(i instanceof Promise)i.then(e=>{i.status="fulfilled",i.value=e,y(["resolve",[c],e])}).catch(e=>{i.status="rejected",i.reason=e,y(["reject",[c],e])});else{!l.has(i)&&n(i)&&(h=p(i));let e=!a.has(h)&&l.get(h);e&&R(c,e)}return Reflect.set(t,c,h,u),y(["set",[c],i,f]),!0}},x=t(v,w);s.set(c,x);let E=[v,m,u,M];return l.set(x,E),Reflect.ownKeys(c).forEach(e=>{let t=Object.getOwnPropertyDescriptor(c,e);"value"in t&&(x[e]=c[e],delete t.value,delete t.writable),Object.defineProperty(v,e,t)}),x})=>[p,l,a,e,t,n,c,i,u,s,d])();function i(e={}){return c(e)}function u(e,t,n){let o;let r=l.get(e);!r&&console.warn("Please use proxy object");let a=[],c=r[3],i=!1,u=c(e=>{if(a.push(e),n){t(a.splice(0));return}!o&&(o=Promise.resolve().then(()=>{o=void 0,i&&t(a.splice(0))}))});return i=!0,()=>{i=!1,u()}}function s(e,t){let n=l.get(e);!n&&console.warn("Please use proxy object");let[o,r,a]=n;return a(o,r(),t)}function d(e){return a.add(e),e}}}]);