@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
@@ -1,3 +1,11 @@
1
+ /*! promise-polyfill 2.0.1 */
2
+
3
+ /*! ./cjs/react-is.production.min.js */
4
+
5
+ /*! react-dom */
6
+
7
+ /*! react */
8
+
1
9
  /**
2
10
  * @license React
3
11
  * react-is.production.min.js
@@ -8,14 +16,6 @@
8
16
  * LICENSE file in the root directory of this source tree.
9
17
  */
10
18
 
11
- /*! react-dom */
12
-
13
- /*! react */
14
-
15
- /*! ./dist/frontend */
16
-
17
19
  /*! react-is */
18
20
 
19
- /*! ./cjs/react-is.production.min.js */
20
-
21
- /*! promise-polyfill 2.0.1 */
21
+ /*! ./dist/frontend */
@@ -1,2 +1,2 @@
1
- /*! For license information please see layout.166501ba.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["518"],{69149:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return r}});var s=t("86834"),u=t("39934"),o=t("83982");function r(){return(0,s.jsx)(o.Box,{px:"4",children:(0,s.jsx)(u.Outlet,{})})}}}]);
1
+ /*! For license information please see layout.ba4d2992.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["518"],{92987:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return r}});var s=t("86834"),u=t("39934"),o=t("83982");function r(){return(0,s.jsx)(o.Box,{px:"4",children:(0,s.jsx)(u.Outlet,{})})}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["943"],{36603:function(e,s,l){"use strict";l.r(s),s.default=null}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see page.ec2d5c56.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["958"],{87864:function(e,s,a){"use strict";a.r(s),a.d(s,{ObjectInspector:function(){return f}});var b=a("90247"),t=a("86834"),r=a("83982"),c=a("28291"),n=a("94302");let o={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,t.jsx)(r.Box,{className:n.container,children:(0,t.jsx)(c.JSONTree,(0,b._)({theme:o},e))})},84496:function(e,s,a){"use strict";a.r(s);var b=a("86834");a("5872");var t=a("42700"),r=a("99480"),c=a("87864");s.default=()=>{let{context:e}=(0,t.useSnapshot)(r.$builder);return(0,b.jsx)(c.ObjectInspector,{data:e,sortObjectKeys:!0})}}}]);
@@ -1,9 +1,9 @@
1
1
  /*! @swc/helpers/_/_object_spread */
2
2
 
3
- /*! react-json-tree */
4
-
5
3
  /*! valtio */
6
4
 
5
+ /*! react-json-tree */
6
+
7
7
  /*! ../../state */
8
8
 
9
9
  /*! ./ObjectInspector.module.scss */
@@ -12,8 +12,8 @@
12
12
 
13
13
  /*! react */
14
14
 
15
- /*! @radix-ui/themes */
15
+ /*! react/jsx-runtime */
16
16
 
17
17
  /*! @/components/ObjectInspector */
18
18
 
19
- /*! react/jsx-runtime */
19
+ /*! @radix-ui/themes */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see page.3dd49436.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["818"],{87864:function(e,s,a){"use strict";a.r(s),a.d(s,{ObjectInspector:function(){return f}});var b=a("90247"),t=a("86834"),r=a("83982"),c=a("28291"),o=a("94302");let n={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,t.jsx)(r.Box,{className:o.container,children:(0,t.jsx)(c.JSONTree,(0,b._)({theme:n},e))})},12909:function(e,s,a){"use strict";a.r(s);var b=a("86834");a("5872");var t=a("42700"),r=a("99480"),c=a("87864");s.default=()=>{let{context:e}=(0,t.useSnapshot)(r.$framework);return(0,b.jsx)(c.ObjectInspector,{data:e,sortObjectKeys:!0})}}}]);
@@ -1,9 +1,9 @@
1
1
  /*! @swc/helpers/_/_object_spread */
2
2
 
3
- /*! react-json-tree */
4
-
5
3
  /*! valtio */
6
4
 
5
+ /*! react-json-tree */
6
+
7
7
  /*! ../../state */
8
8
 
9
9
  /*! ./ObjectInspector.module.scss */
@@ -12,8 +12,8 @@
12
12
 
13
13
  /*! react */
14
14
 
15
- /*! @radix-ui/themes */
15
+ /*! react/jsx-runtime */
16
16
 
17
17
  /*! @/components/ObjectInspector */
18
18
 
19
- /*! react/jsx-runtime */
19
+ /*! @radix-ui/themes */
@@ -1,2 +1,2 @@
1
- /*! For license information please see layout.7142f660.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["504"],{42737:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return r}});var s=t("86834"),u=t("39934"),o=t("83982");function r(){return(0,s.jsx)(o.Box,{px:"4",children:(0,s.jsx)(u.Outlet,{})})}}}]);
1
+ /*! For license information please see layout.d57d4a8b.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["504"],{17779:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return r}});var s=t("86834"),u=t("39934"),o=t("83982");function r(){return(0,s.jsx)(o.Box,{px:"4",children:(0,s.jsx)(u.Outlet,{})})}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["361"],{32194:function(e,s,l){"use strict";l.r(s),s.default=null}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see page.4f782f6e.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["488"],{88640:function(e,r,t){"use strict";t.r(r);r.default=function(){for(var e,r,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(r=function e(r){var t,n,s="";if("string"==typeof r||"number"==typeof r)s+=r;else if("object"==typeof r){if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(n=e(r[t]))&&(s&&(s+=" "),s+=n);else for(t in r)r[t]&&(s&&(s+=" "),s+=t)}return s}(e))&&(n&&(n+=" "),n+=r);return n}},32579:function(e,r,t){"use strict";e.exports=t.p+"static/image/rsdoctor-large.b2f496d9.png"},64456:function(e,r,t){"use strict";t.r(r),t.d(r,{IndicateCard:function(){return x}});var n=t("90247"),s=t("55709"),c=t("16170"),o=t("86834"),a=t("88640"),i=t("83982"),l=t("34587");let d=e=>{var{children:r,className:t}=e,d=(0,c._)(e,["children","className"]);return(0,o.jsx)(i.Box,(0,s._)((0,n._)({},d),{className:(0,a.default)(l.indicateCard,t),children:r}))};d.displayName="IndicateCard";let u=e=>(0,o.jsx)(i.Flex,(0,n._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e));u.displayName="IndicateCard.Column";let x=Object.assign(d,{Column:u})},72737:function(e,r,t){"use strict";t.r(r);var n=t("64456");t.es(n,r)},47384:function(e,r,t){"use strict";t.r(r);var n=t("90247"),s=t("55709"),c=t("86834"),o=t("42700"),a=t("83982"),i=t("29214"),l=t("52493"),d=t.n(l),u=t("55058"),x=t("88640"),h=t("99480"),m=t("32579"),p=t("3755"),j=t("70062"),g=t("72737");let b=e=>{let{cost:r}=e,[t,n]=r.name.split("->"),[s,o]=[t,n].map(e=>["bootstrap","done"].includes(e)?void 0:"".concat("https://webpack.js.org/api/compiler-hooks","#").concat(e.toLowerCase())),i=r.costs>1e3?"".concat((r.costs/1e3).toFixed(2),"s"):"".concat(r.costs,"ms");return(0,c.jsxs)(a.HoverCard.Root,{children:[(0,c.jsx)(a.HoverCard.Trigger,{children:(0,c.jsxs)(a.Box,{className:j.costBox,style:{flex:r.costs},children:[(0,c.jsxs)(a.Text,{size:"1",color:"gray",className:(0,x.default)(j.textTruncation,j.costLabel),children:[d().startCase(r.title),"(",i,")"]}),(0,c.jsx)(a.Box,{className:j.costBar})]})}),(0,c.jsx)(a.HoverCard.Content,{size:"1",children:(0,c.jsxs)(a.Text,{size:"1",color:"gray",children:[(0,c.jsx)(a.Link,{target:"_blank",href:s,children:t}),(0,c.jsxs)(a.Text,{children:[" \xb7\xb7\xb7",i,"\xb7\xb7\xb7 "]}),(0,c.jsx)(a.Link,{target:"_blank",href:o,children:n})]})})]})};r.default=()=>{var e,r,t,l,x,f;let C=(0,o.useSnapshot)(p.$doctor),_=(0,o.useSnapshot)(h.$dependencies),k=(0,o.useSnapshot)(h.$definition),y=Object.keys(_).find(e=>e.startsWith("@web-doctor/"))?"Web Doctor":"Rsdoctor",v=(f=(x=(l=(t=(r=(e=_["@web-doctor/webpack-plugin(builder)"])!==null&&void 0!==e?e:_["@web-doctor/rspack-plugin(builder)"])!==null&&void 0!==r?r:_["@web-doctor/webpack-plugin"])!==null&&void 0!==t?t:_["@web-doctor/rspack-plugin"])!==null&&void 0!==l?l:_["@rsdoctor/rspack-plugin"])!==null&&void 0!==x?x:_["@rsdoctor/webpack-plugin"])!==null&&void 0!==f?f:_["@rsdoctor/core"],w=d()(C.summary.costs).sortBy(["startAt","name","costs"]).sortedUniqBy("name").cloneDeep().map(e=>{if("bootstrap->beforeCompile"===e.name)return(0,s._)((0,n._)({},e),{title:"prepare"});if("beforeCompile->afterCompile"===e.name)return(0,s._)((0,n._)({},e),{title:"compile"});if("afterCompile->done"===e.name)return(0,s._)((0,n._)({},e),{title:"optimize"});return(0,s._)((0,n._)({},e),{title:"unknown"})}),N=d().groupBy(C.errors,"description");return(0,c.jsx)(a.Flex,{direction:"column",align:"center",p:"4",children:(0,c.jsxs)(a.Flex,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:j.container,children:[(0,c.jsx)(g.IndicateCard,{className:j.primaryCard,children:(0,c.jsx)(a.Theme,{appearance:"light",hasBackground:!1,asChild:!0,children:(0,c.jsxs)(g.IndicateCard.Column,{children:[(0,c.jsx)(a.Heading,{as:"h1",color:"gray",className:j.heading,children:y}),(0,c.jsx)(a.Flex,{gap:"2",children:(0,c.jsx)("button",{type:"button",children:v?"v".concat(v):"Unknown"})}),(0,c.jsxs)(a.Link,{href:k.doctor.quickStart,color:"gray",size:"1",underline:"always",target:"_blank",rel:"noopener noreferrer",children:["Launch ",y," with complete features."]})]})})}),(0,c.jsx)(g.IndicateCard,{className:j.infoCard,children:(0,c.jsxs)(a.Flex,{justify:"between",gap:"2",align:"center",height:"100%",children:[(0,c.jsxs)(a.Box,{children:[(0,c.jsx)(a.Text,{color:"gray",children:"Visit our website"}),(0,c.jsx)(a.Flex,{align:"center",asChild:!0,children:(0,c.jsxs)(a.Link,{href:k.doctor.home,target:"_blank",rel:"noopener noreferrer",children:[(0,c.jsx)(i.HiLink,{}),(0,c.jsx)(a.Text,{children:(0,u.parseURL)(k.doctor.home).host})]})})]}),(0,c.jsx)("img",{className:j.logo,src:m})]})}),(0,c.jsx)(g.IndicateCard,{className:j.countCard,children:(0,c.jsxs)(g.IndicateCard.Column,{children:[(0,c.jsxs)(a.Text,{className:j.countText,size:"1",children:[(0,c.jsx)(i.HiMiniRectangleStack,{})," ",C.numModules," modules"]}),(0,c.jsxs)(a.Text,{className:j.countText,size:"1",children:[(0,c.jsx)(i.HiMiniInboxStack,{})," ",C.numPackages," packages"]}),(0,c.jsxs)(a.Text,{className:j.countText,size:"1",children:[(0,c.jsx)(i.HiMiniArchiveBox,{})," ",C.numChunks," chunks"]})]})}),(0,c.jsx)(g.IndicateCard,{className:j.compileCostCard,children:(0,c.jsxs)(g.IndicateCard.Column,{children:[(0,c.jsx)(a.Flex,{asChild:!0,align:"center",gap:"1",children:(0,c.jsxs)(a.Heading,{as:"h3",size:"2",color:"gray",children:[(0,c.jsx)(i.HiChartBar,{}),"Compile Overall"]})}),(0,c.jsx)(a.Flex,{width:"100%",gap:"1",children:w.map(e=>(0,c.jsx)(b,{cost:e},e.name))})]})}),(0,c.jsx)(g.IndicateCard,{width:"100%",children:(0,c.jsxs)(g.IndicateCard.Column,{children:[(0,c.jsxs)(a.Text,{weight:"bold",size:"1",color:"gray",children:["Found ",d().size(N)," ",d().size(N)>1?"errors":"error"]}),Object.entries(N).map(e=>{let[r,t]=e;return(0,c.jsxs)(a.Box,{className:j.errorItem,children:[(0,c.jsx)(i.HiMiniExclamationCircle,{className:j.errorIcon})," ",(0,c.jsx)(a.Text,{size:"1",className:j.textTruncation,children:r}),t.length>1&&(0,c.jsxs)(a.Text,{size:"1",className:j.errorCount,children:["(x",t.length,")"]})]},r)})]})})]})})}},3755:function(e,r,t){"use strict";t.r(r),t.d(r,{$doctor:function(){return c}});var n=t("42700");let s=t("99480").$server.then(e=>e.remote.getDoctorOverview()),c=(0,n.proxy)({errors:s.then(e=>e.errors),numChunks:s.then(e=>e.numChunks),numModules:s.then(e=>e.numModules),numPackages:s.then(e=>e.numPackages),summary:s.then(e=>e.summary)})},70062:function(e){"use strict";e.exports={"compile-cost-card":"compile-cost-card-_02ec7",compileCostCard:"compile-cost-card-_02ec7",container:"container-_97e59","cost-bar":"cost-bar-_13827",costBar:"cost-bar-_13827","cost-box":"cost-box-_0264a",costBox:"cost-box-_0264a","cost-label":"cost-label-_486b6",costLabel:"cost-label-_486b6","count-card":"count-card-_8b9c0",countCard:"count-card-_8b9c0","count-text":"count-text-_77d70",countText:"count-text-_77d70","error-item":"error-item-_3072a",errorItem:"error-item-_3072a",heading:"heading-e81e8c","info-card":"info-card-_6b634",infoCard:"info-card-_6b634",logo:"logo-_24de9","primary-card":"primary-card-_1e6c5",primaryCard:"primary-card-_1e6c5","text-truncation":"text-truncation-_8bcae",textTruncation:"text-truncation-_8bcae"}}}]);
@@ -0,0 +1,47 @@
1
+ /*! @swc/helpers/_/_object_spread_props */
2
+
3
+ /*! lodash */
4
+
5
+ /*! @/components/Card */
6
+
7
+ /*! @swc/helpers/_/_object_spread_props */
8
+
9
+ /*! valtio */
10
+
11
+ /*! valtio */
12
+
13
+ /*! react/jsx-runtime */
14
+
15
+ /*! ./state */
16
+
17
+ /*! ./page.module.scss */
18
+
19
+ /*! @radix-ui/themes */
20
+
21
+ /*! clsx */
22
+
23
+ /*! @swc/helpers/_/_object_without_properties */
24
+
25
+ /*! ./Indicate */
26
+
27
+ /*! ./Indicate.module.scss */
28
+
29
+ /*! @radix-ui/themes */
30
+
31
+ /*! ./rsdoctor-large.png */
32
+
33
+ /*! @swc/helpers/_/_object_spread */
34
+
35
+ /*! ufo */
36
+
37
+ /*! clsx */
38
+
39
+ /*! react-icons/hi2 */
40
+
41
+ /*! react/jsx-runtime */
42
+
43
+ /*! @swc/helpers/_/_object_spread */
44
+
45
+ /*! ../state */
46
+
47
+ /*! ../state */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see page.b0193352.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["730"],{13493:function(e,r,s){"use strict";s.r(r),s.d(r,{PairsEditor:function(){return x}});var a=s("90247"),i=s("55709"),n=s("16170"),l=s("86834"),t=s("83982"),c=s("89677"),o=s("5872"),d=s("42700"),u=s("69885"),h=s("68492");let x=e=>{var{$data:r=(0,d.proxy)([]),disabled:s,placeholders:x}=e,p=(0,n._)(e,["$data","disabled","placeholders"]);let v=(0,d.useSnapshot)(r);return(0,o.useEffect)(()=>{v.length<=0&&r.push({id:(0,c.nanoid)(),key:"",value:""})},[v.length]),(0,l.jsx)(t.Box,(0,i._)((0,a._)({className:u.container},p),{children:v.map((e,a)=>(0,l.jsx)(h.Pair,{$data:r[a],disabled:s,placeholders:x,onDelete:()=>r.splice(a,1),onInsert:()=>r.splice(a+1,0,{id:(0,c.nanoid)(),key:"",value:""})},e.id))}))}},68492:function(e,r,s){"use strict";s.r(r),s.d(r,{Pair:function(){return c}});var a=s("86834"),i=s("83982");s("5872");var n=s("29214"),l=s("42700"),t=s("18493");let c=e=>{let{$data:r,onDelete:s,onInsert:c,disabled:o,placeholders:d=["Key...","Value..."]}=e,u=(0,l.useSnapshot)(r);return(0,a.jsxs)(i.Box,{className:t.inputPair,"aria-disabled":o,children:[(0,a.jsx)(i.TextField.Root,{children:(0,a.jsx)(i.TextField.Input,{value:u.key,disabled:o,placeholder:d[0],onChange:e=>r.key=e.currentTarget.value})}),(0,a.jsx)(i.Box,{asChild:!0,grow:"1",children:(0,a.jsx)(i.TextField.Root,{children:(0,a.jsx)(i.TextField.Input,{value:u.value,disabled:o,placeholder:d[1],onChange:e=>r.value=e.currentTarget.value})})}),(0,a.jsxs)(i.Box,{className:t.actions,children:[(0,a.jsx)(i.IconButton,{variant:"ghost",color:"gray",onClick:s,children:(0,a.jsx)(n.HiMinusSmall,{})}),(0,a.jsx)(i.IconButton,{variant:"ghost",color:"gray",onClick:c,children:(0,a.jsx)(n.HiPlusSmall,{})})]})]},u.id)}},98214:function(e,r,s){"use strict";s.r(r);var a=s("86834"),i=s("52493"),n=s.n(i),l=s("5872"),t=s("83982"),c=s("42700"),o=s("55058"),d=s("81695"),u=s("83526"),h=s("13493");r.default=()=>{let e=(0,c.useSnapshot)(d.$state),r=!!e.service.href,s=(0,l.useMemo)(()=>{var r;return(0,c.proxy)((r=n().cloneDeep(e.service.rules))!==null&&void 0!==r?r:[])},[]),i=(0,c.useSnapshot)(s),x=r?"Active":"Offline",p=async()=>{await (0,d.registerService)(i.filter(e=>e.key))},v=async()=>{await (0,d.unregisterService)()};return(0,a.jsxs)(t.Box,{className:u.container,children:[(0,a.jsx)(t.Heading,{mt:"4",children:"Header Modifier"}),(0,a.jsxs)(t.Flex,{align:"center",gap:"1",children:[(0,a.jsx)(t.Box,{className:u.signal,"data-active":r}),(0,a.jsx)(t.Text,{color:"gray",size:"1",children:x}),e.service.href&&(0,a.jsx)(t.Link,{size:"1",href:e.service.href,target:"_blank",children:(0,o.parseURL)(e.service.href).pathname})]}),(0,a.jsx)(h.PairsEditor,{$data:s,disabled:r,my:"3",placeholders:["Match header field...","Replace by..."]}),(0,a.jsx)(t.Flex,{justify:"end",gap:"2",children:r?(0,a.jsx)(t.Button,{color:"red",onClick:v,children:"Unregister"}):(0,a.jsx)(t.Button,{onClick:p,children:"Register"})})]})}},83526:function(e){"use strict";e.exports={signal:"signal-_8af82"}}}]);
@@ -1,53 +1,49 @@
1
1
  /*! react/jsx-runtime */
2
2
 
3
- /*! valtio */
4
-
5
- /*! ./Pair.module.scss */
6
-
7
- /*! @swc/helpers/_/_object_without_properties */
3
+ /*! lodash */
8
4
 
9
5
  /*! react/jsx-runtime */
10
6
 
11
- /*! react/jsx-runtime */
7
+ /*! valtio */
12
8
 
13
- /*! @radix-ui/themes */
9
+ /*! @/components/PairsEditor/Editor */
14
10
 
15
- /*! ../state */
11
+ /*! @swc/helpers/_/_object_without_properties */
16
12
 
17
- /*! ./page.module.scss */
13
+ /*! ufo */
18
14
 
19
- /*! @/components/PairsEditor/Editor */
15
+ /*! react */
20
16
 
21
- /*! lodash */
17
+ /*! react */
22
18
 
23
19
  /*! ./Editor.module.scss */
24
20
 
25
- /*! valtio */
26
-
27
21
  /*! @radix-ui/themes */
28
22
 
29
- /*! valtio */
30
-
31
23
  /*! ./Pair */
32
24
 
33
- /*! react */
25
+ /*! @radix-ui/themes */
26
+
27
+ /*! react-icons/hi2 */
34
28
 
35
29
  /*! @swc/helpers/_/_object_spread */
36
30
 
37
31
  /*! react */
38
32
 
39
- /*! @radix-ui/themes */
33
+ /*! react/jsx-runtime */
40
34
 
41
35
  /*! nanoid */
42
36
 
43
- /*! react-icons/hi2 */
37
+ /*! @radix-ui/themes */
44
38
 
45
- /*! ufo */
39
+ /*! ../state */
46
40
 
47
- /*! lodash */
41
+ /*! ./page.module.scss */
48
42
 
49
43
  /*! valtio */
50
44
 
51
- /*! react */
45
+ /*! valtio */
46
+
47
+ /*! ./Pair.module.scss */
52
48
 
53
49
  /*! @swc/helpers/_/_object_spread_props */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see layout.0f8eb6f9.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["925"],{4612:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var o=t("86834"),s=t("39934"),r=t("83982"),u=t("27492");function c(){return(0,o.jsx)(r.Box,{px:"4",mx:"auto",pb:"4",className:u.container,children:(0,o.jsx)(s.Outlet,{})})}},27492:function(e){"use strict";e.exports={container:"container-_15ef2"}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["963"],{21954:function(e,s,l){"use strict";l.r(s),s.default=null}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see page.1af1ede1.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["860"],{19523:function(e,s,r){"use strict";r.r(s);var n=r("86834"),t=r("39934"),i=r("83982");r("5872");s.default=()=>{let e=(0,t.useNavigate)();return(0,n.jsxs)(i.Box,{children:[(0,n.jsx)(i.Heading,{my:"4",children:"Header Modifier"}),(0,n.jsx)(i.Text,{as:"p",mb:"2",children:"Modifying headers of requests, useful for switch between traffic lanes."}),(0,n.jsxs)(i.Text,{as:"p",children:["That will register",(0,n.jsx)(i.Link,{href:"/sw-proxy.js",target:"_blank",mx:"1",children:"/sw-proxy.js"}),"as a service worker to handle all requests under",(0,n.jsx)(i.Link,{mx:"1",children:location.host})]}),(0,n.jsx)(i.Button,{my:"4",onClick:()=>e("../editor"),children:"Enable"})]})}}}]);
@@ -1,7 +1,7 @@
1
- /*! react */
2
-
3
1
  /*! react/jsx-runtime */
4
2
 
5
3
  /*! @modern-js/runtime/router */
6
4
 
7
- /*! @radix-ui/themes */
5
+ /*! @radix-ui/themes */
6
+
7
+ /*! react */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see page.9bc222f5.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["161"],{88640:function(e,r,a){"use strict";a.r(r);r.default=function(){for(var e,r,a=0,i="";a<arguments.length;)(e=arguments[a++])&&(r=function e(r){var a,i,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r){if(Array.isArray(r))for(a=0;a<r.length;a++)r[a]&&(i=e(r[a]))&&(n&&(n+=" "),n+=i);else for(a in r)r[a]&&(n&&(n+=" "),n+=a)}return n}(e))&&(i&&(i+=" "),i+=r);return i}},64456:function(e,r,a){"use strict";a.r(r),a.d(r,{IndicateCard:function(){return h}});var i=a("90247"),n=a("55709"),s=a("16170"),t=a("86834"),c=a("88640"),l=a("83982"),o=a("34587");let d=e=>{var{children:r,className:a}=e,d=(0,s._)(e,["children","className"]);return(0,t.jsx)(l.Box,(0,n._)((0,i._)({},d),{className:(0,c.default)(o.indicateCard,a),children:r}))};d.displayName="IndicateCard";let p=e=>(0,t.jsx)(l.Flex,(0,i._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e));p.displayName="IndicateCard.Column";let h=Object.assign(d,{Column:p})},72737:function(e,r,a){"use strict";a.r(r);var i=a("64456");a.es(i,r)},51090:function(e,r,a){"use strict";a.r(r);var i=a("86834"),n=a("83982");a("5872");var s=a("29214"),t=a("55058"),c=a("42700"),l=a("99480");a("34587");var o=a("38057"),d=a("72737");let p={webpack:"webpack",rspack:"@rspack/core"};r.default=()=>{let e=(0,c.useSnapshot)(l.$framework),r=(0,c.useSnapshot)(l.$definition),a=(0,c.useSnapshot)(l.$dependencies),h=(0,c.useSnapshot)(l.$builder),x=(0,c.useSnapshot)(l.$perf),u=window.navigator.userAgent.includes("Mac OS"),{toolsType:g}=e.context;if("app-tools"!==g)throw Error();let m=r.packages.appTools,j=a[m],{bundlerType:f}=h.context,b=p[f],y=a[b];return(0,i.jsxs)(n.Flex,{direction:"column",align:"center",p:"4",children:[(0,i.jsxs)(n.Flex,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:o.container,children:[(0,i.jsx)(d.IndicateCard,{className:o.primaryCard,children:(0,i.jsx)(n.Theme,{appearance:"dark",hasBackground:!1,asChild:!0,children:(0,i.jsxs)(d.IndicateCard.Column,{children:[(0,i.jsx)(n.Heading,{as:"h1",className:o.heading,children:"DevTools"}),(0,i.jsx)(n.Flex,{gap:"2",children:(0,i.jsxs)("button",{type:"button",children:["v",l.VERSION]})}),(0,i.jsxs)(n.Text,{as:"p",size:"1",children:["Powered by ",m,"@",j]})]})})}),(0,i.jsx)(d.IndicateCard,{className:o.infoCard,children:(0,i.jsxs)(n.Flex,{justify:"between",gap:"3",align:"center",height:"100%",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsx)(n.Text,{color:"gray",children:"Visit our website"}),(0,i.jsx)(n.Flex,{align:"center",asChild:!0,children:(0,i.jsxs)(n.Link,{href:r.announcement.fallback,target:"_blank",rel:"noopener noreferrer",children:[(0,i.jsx)(s.HiLink,{}),(0,i.jsx)(n.Text,{children:(0,t.parseURL)(r.announcement.fallback).host})]})})]}),(0,i.jsx)(n.Box,{color:"gray",asChild:!0,children:(0,i.jsx)(s.HiOutlineDocumentText,{size:"50",color:"var(--gray-6)"})})]})}),(0,i.jsx)(d.IndicateCard,{className:o.pluginCard,children:(0,i.jsxs)(n.Flex,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsx)(n.Text,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},mb:"2",children:e.context.plugins.length}),(0,i.jsx)(n.Text,{as:"p",size:"1",color:"gray",children:"Framework Plugins"})]}),(0,i.jsx)(s.HiOutlinePuzzlePiece,{size:"50",color:"var(--gray-6)"})]})}),(0,i.jsx)(d.IndicateCard,{className:o.compileTimeCard,children:(0,i.jsxs)(n.Flex,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsxs)(n.Text,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},children:[(x.compileDuration/1e3).toFixed(2),"s"]}),(0,i.jsxs)(n.Text,{as:"p",size:"1",color:"gray",children:["Compiled in ",b,"@",y]})]}),(0,i.jsx)(s.HiOutlineClock,{size:"50",color:"var(--gray-6)"})]})})]}),(0,i.jsxs)(n.Flex,{align:"center",className:o.bottomTip,children:[(0,i.jsx)(n.Text,{color:"gray",size:"2",children:"Use"}),(0,i.jsxs)(n.Kbd,{mx:"2",children:["Shift + ",u?"Opt":"Alt"," + D"]}),(0,i.jsx)(n.Text,{color:"gray",size:"2",children:"to open DevTools"})]})]})}},38057:function(e){"use strict";e.exports={"bottom-tip":"bottom-tip-_4de0d",bottomTip:"bottom-tip-_4de0d","compile-time-card":"compile-time-card-_5eda1",compileTimeCard:"compile-time-card-_5eda1",container:"container-_43720",heading:"heading-ecaa29","indicate-bar":"indicate-bar-_5118d",indicateBar:"indicate-bar-_5118d","info-card":"info-card-_07b33",infoCard:"info-card-_07b33","plugin-card":"plugin-card-f1e2dc",pluginCard:"plugin-card-f1e2dc","primary-card":"primary-card-a671aa",primaryCard:"primary-card-a671aa"}}}]);
@@ -1,29 +1,35 @@
1
- /*! clsx */
1
+ /*! react/jsx-runtime */
2
+
3
+ /*! @radix-ui/themes */
2
4
 
3
5
  /*! @swc/helpers/_/_object_without_properties */
4
6
 
5
- /*! react-icons/hi2 */
7
+ /*! valtio */
6
8
 
7
- /*! ../state */
9
+ /*! @/components/Card/Indicate.module.scss */
8
10
 
9
- /*! ufo */
11
+ /*! ./page.module.scss */
10
12
 
11
- /*! @radix-ui/themes */
13
+ /*! ./Indicate */
12
14
 
13
- /*! valtio */
15
+ /*! ./Indicate.module.scss */
16
+
17
+ /*! react */
18
+
19
+ /*! clsx */
14
20
 
15
21
  /*! @swc/helpers/_/_object_spread */
16
22
 
17
- /*! ./heading.svg */
23
+ /*! @radix-ui/themes */
18
24
 
19
- /*! @swc/helpers/_/_object_spread_props */
25
+ /*! react-icons/hi2 */
20
26
 
21
- /*! react/jsx-runtime */
27
+ /*! ../state */
22
28
 
23
- /*! react */
29
+ /*! @swc/helpers/_/_object_spread_props */
24
30
 
25
31
  /*! react/jsx-runtime */
26
32
 
27
- /*! react */
33
+ /*! ufo */
28
34
 
29
- /*! ./page.module.scss */
35
+ /*! @/components/Card */
@@ -0,0 +1 @@
1
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["127"],{63795:function(e,s,l){"use strict";l.r(s),s.default=null}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see layout.3498bfe7.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["631"],{73835:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var o=t("86834"),s=t("39934"),r=t("83982"),c=t("67225");function u(){return(0,o.jsx)(r.Box,{px:"4",mx:"auto",pb:"4",className:c.container,children:(0,o.jsx)(s.Outlet,{})})}},67225:function(e){"use strict";e.exports={container:"container-a0c6fe"}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see page.513222d6.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{16887:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseRoute:function(){return c}});var r=n("86834"),o=n("5872"),a=n("1607"),i=n("83982"),s=n("60441"),l=n("66009"),u=n("17862");let c=e=>{let{badge:t,route:n,title:c,children:d,open:x,onOpenChange:h}=e,{matched:p}=(0,o.useContext)(u.MatchUrlContext),[m,f]=(0,o.useState)(!1),j=p===n,g=j||(null!=x?x:m);return(0,r.jsx)(i.Box,{p:"3",className:l.container,children:(0,r.jsxs)(a.Root,{open:g,onOpenChange:null!=h?h:f,children:[(0,r.jsxs)(a.Trigger,{className:l.trigger,children:[t,(0,r.jsx)(i.Text,{className:l.urlText,style:{opacity:p&&!j?.5:1},children:c}),(0,r.jsx)(i.Box,{grow:"1"}),(0,r.jsx)(i.Box,{className:l.mark,"data-open":g,children:(0,r.jsx)(s.CaretSortIcon,{})})]}),(0,r.jsx)(a.Content,{className:l.content,children:d})]})})}},17862:function(e,t,n){"use strict";n.r(t),n.d(t,{MatchUrlContext:function(){return r}});let r=(0,n("5872").createContext)({url:""})},96737:function(e,t,n){"use strict";n.r(t),n.d(t,{LegacyRouteStats:function(){return a}});var r=n("86834");n("5872");var o=n("83982");let a=()=>(0,r.jsx)(o.Text,{children:"Unimplemented."})},68199:function(e,t,n){"use strict";n.r(t),n.d(t,{MatchRemixRouteContext:function(){return r}});let r=(0,n("5872").createContext)([])},14492:function(e,t,n){"use strict";n.r(t),n.d(t,{RemixRoute:function(){return x}});var r=n("86834"),o=n("5872"),a=n("83982"),i=n("52493"),s=n.n(i),l=n("55058"),u=n("20421"),c=n("68199"),d=n("91069");let x=e=>{var t,n;let{route:i}=e,h=s().castArray(i),p=s().last(h),m="_component"in p&&s().isString(p._component)?p._component:null,f=(0,l.resolveURL)("/",...h.map(e=>e.path).filter(s().isString))||"/",j=(n=p.index)!==null&&void 0!==n&&n,g="/"===f,y=(0,o.useContext)(c.MatchRemixRouteContext),v=!1===y||y.length>0,R=!!y&&!!s().find(y,{route:{id:p.id}}),C=(0,o.useRef)(null),b=(0,u.useHoverDirty)(C);return(0,r.jsxs)(a.Box,{ref:C,children:[(0,r.jsxs)(a.Flex,{gap:"2",align:"center",mb:p.children&&"1",children:[(0,r.jsxs)(a.Box,{className:d.endpointContainer,"data-matched":!v||R,children:[j&&g||(0,r.jsx)(a.Code,{className:d.endpointTag,"data-compose":j&&"head",children:f}),j&&(0,r.jsx)(a.Code,{className:d.endpointTag,color:"purple","data-compose":!g&&"tail",children:"/(index)"})]}),m&&(0,r.jsx)(a.Link,{className:d.shyLink,style:{visibility:b?"visible":"hidden"},children:m})]}),(0,r.jsx)(a.Flex,{direction:"column",gap:"1",children:(t=p.children)===null||void 0===t?void 0:t.map(e=>(0,r.jsx)(x,{route:h.concat(e)},e.id))})]})}},16197:function(e,t,n){"use strict";n.r(t),n.d(t,{RemixRouteStats:function(){return d}});var r=n("86834"),o=n("39934"),a=n("83982"),i=n("5872"),s=n("55058"),l=n("17862"),u=n("68199"),c=n("14492");let d=e=>{let{remixRoutes:t,route:n}=e,{matched:d,url:x}=(0,i.useContext)(l.MatchUrlContext),h=(0,i.useMemo)(()=>{if(d!==n)return!d&&[];{var e;if(!t)return[];let r=(e=(0,o.matchRoutes)(t,(0,s.cleanDoubleSlashes)(x.replace(n.urlPath,"/"))))!==null&&void 0!==e?e:[];return!!r.length&&r}},[t,d,x]);return t.length?(0,r.jsx)(u.MatchRemixRouteContext.Provider,{value:h,children:(0,r.jsx)(a.Flex,{gap:"2",direction:"column",children:t.map(e=>(0,r.jsx)(c.RemixRoute,{route:e},e.id))})}):null}},85080:function(e,t,n){"use strict";n.r(t),n.d(t,{ClientRouteStats:function(){return x}});var r=n("86834"),o=n("52493"),a=n.n(o),i=n("5872"),s=n("42700"),l=n("96737"),u=n("16197"),c=n("99480"),d=n("24326");(0,s.proxy)({});let x=e=>{let{route:t}=e,n=(0,d.useThrowable)(c.$server),{entrypoints:o}=(0,s.useSnapshot)(c.$framework).context,x=t.entryName&&a().find(o,{entryName:t.entryName});if(!x)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let p=n.remote.getFileSystemRoutes(x.entryName);return(0,r.jsx)(i.Suspense,{children:(0,r.jsx)(()=>{let e=(0,d.useThrowable)(p);return h(e)?(0,r.jsx)(l.LegacyRouteStats,{}):(0,r.jsx)(u.RemixRouteStats,{remixRoutes:e,route:t})},{})})},h=e=>e[0]&&!("type"in e[0])},38502:function(e,t,n){"use strict";n.r(t);var r=n("85080");n.es(r,t)},82616:function(e,t,n){"use strict";n.r(t),n.d(t,{EntryRoute:function(){return u}});var r=n("86834"),o=n("5872"),a=n("83982"),i=n("16887"),s=n("5489"),l=n("38502");let u=e=>{let{route:t}=e;return(0,r.jsx)(i.BaseRoute,{badge:c,route:t,title:t.urlPath,children:(0,r.jsxs)(a.Flex,{direction:"column",gap:"2",children:[(0,r.jsx)(a.ScrollArea,{scrollbars:"horizontal",children:(0,r.jsx)(s.EntryStats,{route:t})}),(0,r.jsx)(a.ScrollArea,{scrollbars:"horizontal",children:(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(l.ClientRouteStats,{route:t})})})]})})},c=(0,r.jsx)(a.Badge,{color:"cyan",children:"Entry"})},5489:function(e,t,n){"use strict";n.r(t),n.d(t,{EntryStats:function(){return c}});var r=n("86834");n("5872");var o=n("52493"),a=n.n(o),i=n("42700"),s=n("83982"),l=n("34379"),u=n("99480");let c=e=>{let{route:t}=e,{entrypoints:n}=(0,i.useSnapshot)(u.$framework).context,o=t.entryName&&a().find(n,{entryName:t.entryName});if(!o)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsxs)(s.Box,{className:l.stats,children:[(0,r.jsxs)(s.Flex,{gap:"1",children:[(0,r.jsx)(s.Strong,{children:"Directory: "}),(0,r.jsx)(s.Text,{children:o.absoluteEntryDir})]}),(0,r.jsxs)(s.Flex,{gap:"1",children:[(0,r.jsx)(s.Strong,{children:"Entry:"}),(0,r.jsx)(s.Text,{children:o.entry})]})]})}},4992:function(e,t,n){"use strict";n.r(t);var r=n("82616");n.es(r,t)},97083:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerRoute:function(){return l}});var r=n("86834");n("5872");var o=n("52493"),a=n.n(o),i=n("4992"),s=n("76533");let l=e=>{let{route:t}=e;return a().isString(t.entryName)?(0,r.jsx)(i.EntryRoute,{route:t}):(0,r.jsx)(s.UnknownRoute,{route:t})}},76533:function(e,t,n){"use strict";n.r(t),n.d(t,{UnknownRoute:function(){return i}});var r=n("86834");n("5872");var o=n("83982"),a=n("16887");let i=e=>{let{route:t}=e;return(0,r.jsx)(a.BaseRoute,{badge:s,route:t,title:t.urlPath,children:(0,r.jsx)(o.Card,{children:"Unknown route type."})})},s=(0,r.jsx)(o.Badge,{color:"gray",children:"Unknown"})},95879:function(e,t,n){"use strict";n.r(t);var r=n("86834"),o=n("83982"),a=n("5872"),i=n("42700"),s=n("55058"),l=n("29214"),u=n("99480"),c=n("42711"),d=n("17862"),x=n("97083");t.default=()=>{let{serverRoutes:e}=(0,i.useSnapshot)(u.$framework).context,[t,n]=(0,a.useState)({url:""}),h=t=>{let{pathname:r}=(0,s.parseURL)(t);n({url:t,matched:e.find(e=>r===e.urlPath||r.startsWith((0,s.withTrailingSlash)(e.urlPath)))})};return(0,r.jsx)(d.MatchUrlContext.Provider,{value:t,children:(0,r.jsxs)(o.Flex,{position:"relative",direction:"column",gap:"2",align:"stretch",justify:"between",pt:"8",children:[e.map(e=>(0,r.jsx)(x.ServerRoute,{route:e},e.entryPath)),(0,r.jsx)(o.Box,{mb:"2",className:c.input,children:(0,r.jsx)(o.Box,{style:{maxWidth:"40rem",margin:"0 auto",padding:"0 var(--space-4)"},children:(0,r.jsxs)(o.TextField.Root,{children:[(0,r.jsx)(o.TextField.Slot,{children:(0,r.jsx)(l.HiOutlineArrowsRightLeft,{})}),(0,r.jsx)(o.TextField.Input,{placeholder:"/foo?bar#baz",onChange:e=>h(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false"})]})})})]})})}},42711:function(e){"use strict";e.exports={input:"input-d0c7d8"}},1607:function(e,t,n){"use strict";n.r(t),n.d(t,{Content:function(){return w},Root:function(){return S},Trigger:function(){return N}});var r=n("83197"),o=n("5872"),a=n("67844"),i=n("82602"),s=n("88654"),l=n("59504"),u=n("88340"),c=n("63422"),d=n("78910"),x=n("63018");let h="Collapsible",[p,m]=(0,i.createContextScope)(h),[f,j]=p(h),g=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:l,onOpenChange:u,...d}=e,[h=!1,p]=(0,s.useControllableState)({prop:a,defaultProp:i,onChange:u});return(0,o.createElement)(f,{scope:n,disabled:l,contentId:(0,x.useId)(),open:h,onOpenToggle:(0,o.useCallback)(()=>p(e=>!e),[p])},(0,o.createElement)(c.Primitive.div,(0,r.default)({"data-state":b(h),"data-disabled":l?"":void 0},d,{ref:t})))}),y=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...i}=e,s=j("CollapsibleTrigger",n);return(0,o.createElement)(c.Primitive.button,(0,r.default)({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":b(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},i,{ref:t,onClick:(0,a.composeEventHandlers)(e.onClick,s.onOpenToggle)}))}),v="CollapsibleContent",R=(0,o.forwardRef)((e,t)=>{let{forceMount:n,...a}=e,i=j(v,e.__scopeCollapsible);return(0,o.createElement)(d.Presence,{present:n||i.open},({present:e})=>(0,o.createElement)(C,(0,r.default)({},a,{ref:t,present:e})))}),C=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:a,children:i,...s}=e,d=j(v,n),[x,h]=(0,o.useState)(a),p=(0,o.useRef)(null),m=(0,u.useComposedRefs)(t,p),f=(0,o.useRef)(0),g=f.current,y=(0,o.useRef)(0),R=y.current,C=d.open||x,S=(0,o.useRef)(C),N=(0,o.useRef)();return(0,o.useEffect)(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.useLayoutEffect)(()=>{let e=p.current;if(e){N.current=N.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();f.current=t.height,y.current=t.width,!S.current&&(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),h(a)}},[d.open,a]),(0,o.createElement)(c.Primitive.div,(0,r.default)({"data-state":b(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C},s,{ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":R?`${R}px`:void 0,...e.style}}),C&&i)});function b(e){return e?"open":"closed"}let S=g,N=y,w=R}}]);
@@ -1,171 +1,159 @@
1
- /*! react */
2
-
3
- /*! react */
4
-
5
- /*! ufo */
6
-
7
- /*! react/jsx-runtime */
1
+ /*! @radix-ui/react-primitive */
8
2
 
9
3
  /*! @radix-ui/react-icons */
10
4
 
11
- /*! react/jsx-runtime */
12
-
13
- /*! ./ClientRoute */
5
+ /*! @radix-ui/react-use-layout-effect */
14
6
 
15
- /*! ../../../Context */
7
+ /*! react */
16
8
 
17
- /*! ./Context */
9
+ /*! @radix-ui/react-presence */
18
10
 
19
- /*! ./page.module.scss */
11
+ /*! lodash */
20
12
 
21
- /*! valtio */
13
+ /*! react/jsx-runtime */
22
14
 
23
- /*! @modern-js/runtime/router */
15
+ /*! ./Stats.module.scss */
24
16
 
25
- /*! react */
17
+ /*! ./Base */
26
18
 
27
- /*! react/jsx-runtime */
19
+ /*! @radix-ui/primitive */
28
20
 
29
21
  /*! react */
30
22
 
31
23
  /*! react/jsx-runtime */
32
24
 
33
- /*! @radix-ui/react-primitive */
34
-
35
- /*! react */
25
+ /*! @/components/ServerRoute/Context */
36
26
 
37
27
  /*! react */
38
28
 
39
29
  /*! react/jsx-runtime */
40
30
 
41
- /*! ./Stats */
31
+ /*! react */
42
32
 
43
33
  /*! react/jsx-runtime */
44
34
 
45
- /*! @radix-ui/react-use-layout-effect */
46
-
47
- /*! @radix-ui/react-presence */
48
-
49
35
  /*! react */
50
36
 
51
- /*! ./context */
52
-
53
37
  /*! react/jsx-runtime */
54
38
 
55
- /*! react/jsx-runtime */
39
+ /*! @radix-ui/themes */
56
40
 
57
41
  /*! ./Base.module.scss */
58
42
 
59
- /*! @radix-ui/primitive */
60
-
61
43
  /*! ./Context */
62
44
 
63
- /*! lodash */
45
+ /*! react */
64
46
 
65
47
  /*! @radix-ui/themes */
66
48
 
49
+ /*! @babel/runtime/helpers/esm/extends */
50
+
51
+ /*! ./Route */
52
+
67
53
  /*! @radix-ui/themes */
68
54
 
69
- /*! @/entries/client/routes/state */
55
+ /*! react-icons/hi2 */
70
56
 
71
- /*! ufo */
57
+ /*! ./Route */
72
58
 
73
- /*! @radix-ui/themes */
59
+ /*! @/components/ServerRoute/Route */
74
60
 
75
- /*! lodash */
61
+ /*! react */
76
62
 
77
63
  /*! react/jsx-runtime */
78
64
 
79
- /*! react */
65
+ /*! @radix-ui/react-compose-refs */
66
+
67
+ /*! react/jsx-runtime */
80
68
 
81
69
  /*! react */
82
70
 
83
- /*! @/utils */
71
+ /*! react/jsx-runtime */
84
72
 
85
- /*! react */
73
+ /*! ufo */
74
+
75
+ /*! @/utils */
86
76
 
87
77
  /*! react */
88
78
 
89
- /*! valtio */
79
+ /*! ../../../Context */
90
80
 
91
- /*! react/jsx-runtime */
81
+ /*! ./Context */
92
82
 
93
83
  /*! @radix-ui/themes */
94
84
 
95
- /*! @/components/ServerRoute/Context */
96
-
97
- /*! @babel/runtime/helpers/esm/extends */
85
+ /*! ufo */
98
86
 
99
- /*! ./Route.module.scss */
87
+ /*! ../state */
100
88
 
101
- /*! react */
89
+ /*! @radix-ui/themes */
102
90
 
103
- /*! react/jsx-runtime */
91
+ /*! @modern-js/runtime/router */
104
92
 
105
- /*! ./RemixRoute/Stats */
93
+ /*! lodash */
106
94
 
107
- /*! ./Route */
95
+ /*! react */
108
96
 
109
- /*! ./hooks */
97
+ /*! react */
110
98
 
111
- /*! @radix-ui/react-compose-refs */
99
+ /*! ufo */
112
100
 
113
- /*! ./LegacyRoute/Stats */
101
+ /*! @radix-ui/react-context */
114
102
 
115
- /*! ./Base */
103
+ /*! @radix-ui/react-id */
116
104
 
117
105
  /*! @/entries/client/routes/state */
118
106
 
119
- /*! react */
107
+ /*! ./Unknown */
120
108
 
121
- /*! @radix-ui/themes */
109
+ /*! ./Route.module.scss */
122
110
 
123
111
  /*! @radix-ui/react-collapsible */
124
112
 
125
- /*! react-use */
126
-
127
- /*! ./Context */
128
-
129
- /*! ./Stats.module.scss */
130
-
131
- /*! react-icons/hi2 */
113
+ /*! ./LegacyRoute/Stats */
132
114
 
133
115
  /*! ./Stats */
134
116
 
135
- /*! @/components/ServerRoute/Route */
117
+ /*! lodash */
136
118
 
137
- /*! valtio */
119
+ /*! react */
138
120
 
139
121
  /*! @radix-ui/themes */
140
122
 
141
- /*! @radix-ui/react-context */
123
+ /*! react/jsx-runtime */
142
124
 
143
- /*! @radix-ui/react-id */
125
+ /*! @/entries/client/routes/state */
144
126
 
145
- /*! ./EntryRoute */
127
+ /*! ./page.module.scss */
146
128
 
147
- /*! ./Unknown */
129
+ /*! ./ClientRoute */
148
130
 
149
- /*! react */
131
+ /*! valtio */
150
132
 
151
- /*! @radix-ui/themes */
133
+ /*! @radix-ui/react-use-controllable-state */
152
134
 
153
- /*! ../state */
135
+ /*! react-use */
136
+
137
+ /*! ./Context */
154
138
 
155
139
  /*! @radix-ui/themes */
156
140
 
157
- /*! lodash */
141
+ /*! valtio */
158
142
 
159
- /*! lodash */
143
+ /*! ../Base */
160
144
 
161
145
  /*! react */
162
146
 
163
- /*! ../Base */
147
+ /*! valtio */
164
148
 
165
- /*! ufo */
149
+ /*! react/jsx-runtime */
166
150
 
167
- /*! ./Route */
151
+ /*! @radix-ui/themes */
168
152
 
169
- /*! @radix-ui/react-use-controllable-state */
153
+ /*! ./Stats */
154
+
155
+ /*! ./EntryRoute */
156
+
157
+ /*! ./RemixRoute/Stats */
170
158
 
171
159
  /*! lodash */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see layout.b25a0a9b.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["299"],{92770:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});var u=t("86834"),s=t("39934");function o(){return(0,u.jsx)(s.Outlet,{})}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see page.aede693e.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["483"],{74838:function(e,t,n){"use strict";n.r(t);var o=n("86834"),s=n("39934"),r=n("83982"),a=n("5872"),i=n("3570"),l=n("99480"),c=n("21364"),u=n("24326");t.default=()=>{let e=(0,s.useParams)(),t=(0,r.useThemeContext)(),n=(0,s.useLocation)(),h=(0,s.useNavigate)(),d="light"===t.appearance?"light":"dark",v=(0,u.useThrowable)(l.$mountPoint);(0,a.useEffect)(()=>{v.remote.activateReactDevtools()},[]),(0,a.useEffect)(()=>{if("#inspecting"===n.hash){let e=()=>{c.wallAgent.send("startInspectingNative",null),h(n.pathname,{replace:!0})};"active"===c.wallAgent.status?e():c.wallAgent.hookOnce("active",e)}},[n,h]);let f=(0,a.useMemo)(()=>{let e=(0,i.createBridge)(window.parent,c.wallAgent),t=(0,i.createStore)(e);return(0,i.initialize)(window.parent,{bridge:e,store:t})},[]);return(0,o.jsx)(r.Box,{style:{position:"fixed",left:"var(--navigator-width)",top:"var(--breadcrumb-height)",bottom:0,right:0},children:f&&(0,o.jsx)(f,{browserTheme:d,overrideTab:"profiler"===e.tab?"profiler":"components",hideSettings:!1})})}},21364:function(e,t,n){"use strict";n.r(t),n.d(t,{wallAgent:function(){return s}});var o=n("99480");let s=new(n("24933")).WallAgent;o.$mountPoint.then(e=>{s.bindRemote(e.remote,"sendReactDevtoolsData")})},24933:function(e,t,n){"use strict";n.r(t),n.d(t,{WallAgent:function(){return r}});var o=n("18360"),s=n("65872");class r extends s.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),s=1;s<t;s++)o[s-1]=arguments[s];n.callHook("receive",e,...o)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),s=0;s<n;s++)o[s]=arguments[s];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")})}}}}]);