@modern-js/devtools-client 2.65.2 → 2.65.4

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 (62) hide show
  1. package/dist/modern.config.json +1 -1
  2. package/dist/public/sw-proxy.js +1 -1
  3. package/dist/routes-manifest.json +54 -54
  4. package/dist/static/css/{738.2dbfb4a8.css → 109.f5c7162b.css} +1 -1
  5. package/dist/static/css/{690.7701d402.css → 261.649dd1fe.css} +1 -1
  6. package/dist/static/html/client/index.html +3 -3
  7. package/dist/static/html/mount/index.html +3 -3
  8. package/dist/static/js/{738.eb0fc430.js → 109.6e71606f.js} +11 -11
  9. package/dist/static/js/{130.05ae0320.js → 130.564d1376.js} +1 -1
  10. package/dist/static/js/261.90af046b.js +2 -0
  11. package/dist/static/js/async/883.79b86c45.js +1 -0
  12. package/dist/static/js/async/client_config/(toolkit).(type)/page.15665de8.js +1 -0
  13. package/dist/static/js/async/client_config/layout.0a8f7f71.js +1 -0
  14. package/dist/static/js/async/client_context/builder/page.3a4f5ae7.js +1 -0
  15. package/dist/static/js/async/client_context/framework/page.74cbba14.js +1 -0
  16. package/dist/static/js/async/client_context/layout.7962ea3b.js +1 -0
  17. package/dist/static/js/async/client_doctor/page.cf53b459.js +1 -0
  18. package/dist/static/js/async/client_headers/editor/page.3654f7dd.js +4 -0
  19. package/dist/static/js/async/client_headers/layout.859db1f3.js +1 -0
  20. package/dist/static/js/async/client_headers/welcome/page.084f04c3.js +1 -0
  21. package/dist/static/js/async/client_overview/layout.0af50d18.js +1 -0
  22. package/dist/static/js/async/client_overview/page.4fb3caba.js +1 -0
  23. package/dist/static/js/async/client_pages/layout.805ca70a.js +1 -0
  24. package/dist/static/js/async/client_pages/page.de34cfd0.js +4 -0
  25. package/dist/static/js/async/client_react/(tab)/page.ca6aa099.js +1 -0
  26. package/dist/static/js/async/client_react/offscreen/page.bc1c39e4.js +1 -0
  27. package/dist/static/js/async/client_storage/preset/(id)/page.5a56dfa3.js +1 -0
  28. package/dist/static/js/async/client_storage/preset/layout.cd6103e3.js +1 -0
  29. package/dist/static/js/async/client_storage/preset/page.38fa476d.js +1 -0
  30. package/dist/static/js/builder-runtime.ec69f517.js +1 -0
  31. package/dist/static/js/client.8712472d.js +1 -0
  32. package/dist/static/js/components.593696f3.js +1 -0
  33. package/dist/static/js/lib-polyfill.34e7dba0.js +1 -0
  34. package/dist/static/js/mount.77b8707b.js +1 -0
  35. package/package.json +11 -11
  36. package/dist/static/js/690.477c2c77.js +0 -28
  37. package/dist/static/js/async/699.978d0291.js +0 -1
  38. package/dist/static/js/async/client_config/(toolkit).(type)/page.ba4a1d2f.js +0 -1
  39. package/dist/static/js/async/client_config/layout.61297a6c.js +0 -1
  40. package/dist/static/js/async/client_context/builder/page.bd8357b5.js +0 -1
  41. package/dist/static/js/async/client_context/framework/page.2ec943a2.js +0 -1
  42. package/dist/static/js/async/client_context/layout.f529d23f.js +0 -1
  43. package/dist/static/js/async/client_doctor/page.e5af3656.js +0 -1
  44. package/dist/static/js/async/client_headers/editor/page.2a1555c7.js +0 -1
  45. package/dist/static/js/async/client_headers/layout.31604154.js +0 -1
  46. package/dist/static/js/async/client_headers/welcome/page.f7917dc3.js +0 -1
  47. package/dist/static/js/async/client_overview/layout.c2f0c4c5.js +0 -1
  48. package/dist/static/js/async/client_overview/page.755cd6a3.js +0 -1
  49. package/dist/static/js/async/client_pages/layout.80e460c4.js +0 -1
  50. package/dist/static/js/async/client_pages/page.8a8a8ae3.js +0 -1
  51. package/dist/static/js/async/client_react/(tab)/page.86909e32.js +0 -1
  52. package/dist/static/js/async/client_react/offscreen/page.4d8bc70c.js +0 -1
  53. package/dist/static/js/async/client_storage/preset/(id)/page.8fa8c735.js +0 -1
  54. package/dist/static/js/async/client_storage/preset/layout.114e0853.js +0 -1
  55. package/dist/static/js/async/client_storage/preset/page.b0373a07.js +0 -1
  56. package/dist/static/js/builder-runtime.58617f9c.js +0 -1
  57. package/dist/static/js/client.f76c5001.js +0 -1
  58. package/dist/static/js/components.8241dc69.js +0 -1
  59. package/dist/static/js/lib-polyfill.ad4c4bd7.js +0 -1
  60. package/dist/static/js/mount.e8800257.js +0 -1
  61. /package/dist/static/js/{738.eb0fc430.js.LICENSE.txt → 109.6e71606f.js.LICENSE.txt} +0 -0
  62. /package/dist/static/js/{690.477c2c77.js.LICENSE.txt → 261.90af046b.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["699"],{23694:function(e,t,n){function i(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");let n={},i=t||{},o=i.decode||r,s=0;for(;s<e.length;){let t=e.indexOf("=",s);if(-1===t)break;let r=e.indexOf(";",s);if(-1===r)r=e.length;else if(r<t){s=e.lastIndexOf(";",t-1)+1;continue}let f=e.slice(s,t).trim();if(i?.filter&&!i?.filter(f)){s=r+1;continue}if(void 0===n[f]){let i=e.slice(t+1,r).trim();34===i.codePointAt(0)&&(i=i.slice(1,-1)),n[f]=function(e,t){try{return t(e)}catch{return e}}(i,o)}s=r+1}return n}function r(e){return e.includes("%")?decodeURIComponent(e):e}n.d(t,{parse:()=>i})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["288"],{3009:function(e,s,a){a.d(s,{v:()=>f});var b=a(49987),r=a(86834),c=a(49133),o=a(5049),t=a(79248);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,r.jsx)(c.xu,{className:t.Z.container,children:(0,r.jsx)(o.L,(0,b._)({theme:n},e))})},60460:function(e,s,a){a.r(s),a.d(s,{default:()=>n});var b=a(86834),r=a(3009),c=a(95197),o=a(43866),t=a(20610);let n=()=>{let e=(0,c.k)(),s={framework:(0,t.R)(e.framework.config),builder:(0,t.R)(e.builder.config),bundler:(0,t.R)(e.bundler.configs)},{toolkit:a,type:n}=(0,o.UO)(),f=s[a][n];return(0,b.jsx)(r.v,{data:f,sortObjectKeys:!0})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["518"],{50284:function(e,s,o){o.r(s),o.d(s,{default:()=>r});var t=o(86834),l=o(43866),n=o(49133);function r(){return(0,t.jsx)(n.xu,{width:"100%",height:"100%",p:"4",style:{overflowY:"scroll"},children:(0,t.jsx)(l.j3,{})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["958"],{3009:function(e,s,a){a.d(s,{v:()=>f});var b=a(49987),t=a(86834),r=a(49133),c=a(5049),o=a(79248);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.xu,{className:o.Z.container,children:(0,t.jsx)(c.L,(0,b._)({theme:n},e))})},13724:function(e,s,a){a.r(s),a.d(s,{default:()=>o});var b=a(86834),t=a(3009),r=a(95197),c=a(20610);let o=()=>{let e=(0,r.k)(),{context:s}=(0,c.R)(e.framework);return(0,b.jsx)(t.v,{data:s,sortObjectKeys:!0})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["818"],{3009:function(e,s,a){a.d(s,{v:()=>f});var b=a(49987),t=a(86834),r=a(49133),c=a(5049),o=a(79248);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.xu,{className:o.Z.container,children:(0,t.jsx)(c.L,(0,b._)({theme:n},e))})},80563:function(e,s,a){a.r(s),a.d(s,{default:()=>o});var b=a(86834),t=a(3009),r=a(95197),c=a(20610);let o=()=>{let e=(0,r.k)(),{context:s}=(0,c.R)(e.framework);return(0,b.jsx)(t.v,{data:s,sortObjectKeys:!0})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["504"],{77586:function(e,s,o){o.r(s),o.d(s,{default:()=>r});var t=o(86834),l=o(43866),n=o(49133);function r(){return(0,t.jsx)(n.xu,{width:"100%",height:"100%",p:"4",style:{overflowY:"scroll"},children:(0,t.jsx)(l.j3,{})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["488"],{88640:function(e,r,t){t.d(r,{Z:()=>s});let s=function(){for(var e,r,t=0,s="";t<arguments.length;)(e=arguments[t++])&&(r=function e(r){var t,s,a="";if("string"==typeof r||"number"==typeof r)a+=r;else if("object"==typeof r){if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(s=e(r[t]))&&(a&&(a+=" "),a+=s);else for(t in r)r[t]&&(a&&(a+=" "),a+=t)}return a}(e))&&(s&&(s+=" "),s+=r);return s}},9197:function(e,r,t){t.d(r,{x:()=>x,Z:()=>d});var s=t(49987),a=t(65),c=t(17936),o=t(86834),n=t(49133),i=t(88640),l=t(67358);let d=e=>{let{children:r,className:t,variant:d,clickable:x=!1,selected:h=!1,inset:u=!1}=e,m=(0,c._)(e,["children","className","variant","clickable","selected","inset"]);return(0,o.jsx)(n.xu,(0,a._)((0,s._)({},m),{"data-variant":null!=d?d:"","data-clickable":x,"data-selected":h,"data-inset":u,className:(0,i.Z)(l.Z.card,t),children:r}))},x=e=>(0,o.jsx)(n.kC,(0,s._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},59843:function(e,r,t){t.r(r),t.d(r,{default:()=>b});var s=t(49987),a=t(65),c=t(86834),o=t(9197),n=t(95197),i=t(49133),l=t(88640),d=t(52493),x=t.n(d),h=t(13190),u=t(55058),m=t(20610);let p={container:"container-tngPYT","primary-card":"primary-card-wrJYru",primaryCard:"primary-card-wrJYru","info-card":"info-card-vFI4Ue",infoCard:"info-card-vFI4Ue","count-card":"count-card-nPDp4G",countCard:"count-card-nPDp4G","compile-cost-card":"compile-cost-card-HAKRNe",compileCostCard:"compile-cost-card-HAKRNe",logo:"logo-L2qUVd","count-text":"count-text-SERJmy",countText:"count-text-SERJmy","error-item":"error-item-seXl02",errorItem:"error-item-seXl02","text-truncation":"text-truncation-AwJ4FU",textTruncation:"text-truncation-AwJ4FU","cost-box":"cost-box-rUPGBo",costBox:"cost-box-rUPGBo","cost-bar":"cost-bar-g3W7tq",costBar:"cost-bar-g3W7tq","cost-label":"cost-label-lYCgOV",costLabel:"cost-label-lYCgOV",heading:"heading-_UWATX"},j=t.p+"static/image/rsdoctor-large.5549d958.png",g=e=>{let{cost:r}=e,[t,s]=r.name.split("->"),[a,o]=[t,s].map(e=>["bootstrap","done"].includes(e)?void 0:"".concat("https://webpack.js.org/api/compiler-hooks","#").concat(e.toLowerCase())),n=r.costs>1e3?"".concat((r.costs/1e3).toFixed(2),"s"):"".concat(r.costs,"ms");return(0,c.jsxs)(i.zs.fC,{children:[(0,c.jsx)(i.zs.xz,{children:(0,c.jsxs)(i.xu,{className:p.costBox,style:{flex:r.costs},children:[(0,c.jsxs)(i.xv,{size:"1",color:"gray",className:(0,l.Z)(p.textTruncation,p.costLabel),children:[x().startCase(r.title),"(",n,")"]}),(0,c.jsx)(i.xu,{className:p.costBar})]})}),(0,c.jsx)(i.zs.VY,{size:"1",children:(0,c.jsxs)(i.xv,{size:"1",color:"gray",children:[(0,c.jsx)(i.rU,{target:"_blank",href:a,children:t}),(0,c.jsxs)(i.xv,{children:[" \xb7\xb7\xb7",n,"\xb7\xb7\xb7 "]}),(0,c.jsx)(i.rU,{target:"_blank",href:o,children:s})]})})]})},b=()=>{var e,r,t,l,d,b;let f=(0,n.k)(),{doctor:k,dependencies:v,context:{def:C}}=(0,m.R)(f);if(!k)throw TypeError("Doctor is not available");let y=Object.keys(v).find(e=>e.startsWith("@web-doctor/"))?"Web Doctor":"Rsdoctor",w=null!==(b=null!==(d=null!==(l=null!==(t=null!==(r=null!==(e=v["@web-doctor/webpack-plugin(builder)"])&&void 0!==e?e:v["@web-doctor/rspack-plugin(builder)"])&&void 0!==r?r:v["@web-doctor/webpack-plugin"])&&void 0!==t?t:v["@web-doctor/rspack-plugin"])&&void 0!==l?l:v["@rsdoctor/rspack-plugin"])&&void 0!==d?d:v["@rsdoctor/webpack-plugin"])&&void 0!==b?b:v["@rsdoctor/core"],N=x()(k.summary.costs).sortBy(["startAt","name","costs"]).sortedUniqBy("name").cloneDeep().map(e=>"bootstrap->beforeCompile"===e.name?(0,a._)((0,s._)({},e),{title:"prepare"}):"beforeCompile->afterCompile"===e.name?(0,a._)((0,s._)({},e),{title:"compile"}):"afterCompile->done"===e.name?(0,a._)((0,s._)({},e),{title:"optimize"}):(0,a._)((0,s._)({},e),{title:"unknown"})),z=x().groupBy(k.errors,"description");return(0,c.jsx)(i.kC,{direction:"column",align:"center",p:"4",children:(0,c.jsxs)(i.kC,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:p.container,children:[(0,c.jsx)(o.Z,{variant:"indicate",className:p.primaryCard,children:(0,c.jsx)(i.Q2,{appearance:"light",hasBackground:!1,asChild:!0,children:(0,c.jsxs)(o.x,{children:[(0,c.jsx)(i.X6,{as:"h1",color:"gray",className:p.heading,children:y}),(0,c.jsx)(i.kC,{gap:"2",children:(0,c.jsx)("button",{type:"button",children:w?"v".concat(w):"Unknown"})}),(0,c.jsxs)(i.rU,{href:C.doctor.quickStart,color:"gray",size:"1",underline:"always",target:"_blank",rel:"noopener noreferrer",children:["Launch ",y," with complete features."]})]})})}),(0,c.jsx)(o.Z,{variant:"indicate",className:p.infoCard,children:(0,c.jsxs)(i.kC,{justify:"between",gap:"2",align:"center",height:"100%",children:[(0,c.jsxs)(i.xu,{children:[(0,c.jsx)(i.xv,{color:"gray",children:"Visit our website"}),(0,c.jsx)(i.kC,{align:"center",asChild:!0,children:(0,c.jsxs)(i.rU,{href:C.doctor.home,target:"_blank",rel:"noopener noreferrer",children:[(0,c.jsx)(h.WRS,{}),(0,c.jsx)(i.xv,{children:(0,u.Lk)(C.doctor.home).host})]})})]}),(0,c.jsx)("img",{className:p.logo,src:j})]})}),(0,c.jsx)(o.Z,{variant:"indicate",className:p.countCard,children:(0,c.jsxs)(o.x,{children:[(0,c.jsxs)(i.xv,{className:p.countText,size:"1",children:[(0,c.jsx)(h.bMg,{})," ",k.numModules," modules"]}),(0,c.jsxs)(i.xv,{className:p.countText,size:"1",children:[(0,c.jsx)(h.hsV,{})," ",k.numPackages," packages"]}),(0,c.jsxs)(i.xv,{className:p.countText,size:"1",children:[(0,c.jsx)(h.DlH,{})," ",k.numChunks," chunks"]})]})}),(0,c.jsx)(o.Z,{variant:"indicate",className:p.compileCostCard,children:(0,c.jsxs)(o.x,{children:[(0,c.jsx)(i.kC,{asChild:!0,align:"center",gap:"1",children:(0,c.jsxs)(i.X6,{as:"h3",size:"2",color:"gray",children:[(0,c.jsx)(h.h4y,{}),"Compile Overall"]})}),(0,c.jsx)(i.kC,{width:"100%",gap:"1",children:N.map(e=>(0,c.jsx)(g,{cost:e},e.name))})]})}),(0,c.jsx)(o.Z,{variant:"indicate",width:"100%",children:(0,c.jsxs)(o.x,{children:[(0,c.jsxs)(i.xv,{weight:"bold",size:"1",color:"gray",children:["Found ",x().size(z)," ",x().size(z)>1?"errors":"error"]}),Object.entries(z).map(e=>{let[r,t]=e;return(0,c.jsxs)(i.xu,{className:p.errorItem,children:[(0,c.jsx)(h.Sbn,{className:p.errorIcon})," ",(0,c.jsx)(i.xv,{size:"1",className:p.textTruncation,children:r}),t.length>1&&(0,c.jsxs)(i.xv,{size:"1",className:p.errorCount,children:["(x",t.length,")"]})]},r)})]})})]})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["730"],{47014:function(e,a,l){l.r(a),l.d(a,{default:()=>C});var s=l(86834),r=l(49987),n=l(65),i=l(17936),c=l(49133),d=l(95382),t=l(5872),o=l(41839),h=l(20610),u=l(88625),x=l(13190),v=l(20349);let j=e=>{let{$data:a,onDelete:l,onInsert:r,disabled:n,placeholders:i=["Key...","Value..."]}=e,d=(0,h.R)(a);return(0,s.jsxs)(c.xu,{className:v.Z.inputPair,"aria-disabled":n,children:[(0,s.jsx)(c.nv.f,{value:d.key,disabled:n,placeholder:i[0],onChange:e=>a.key=e.currentTarget.value}),(0,s.jsx)(c.xu,{asChild:!0,flexGrow:"1",children:(0,s.jsx)(c.nv.f,{value:d.value,disabled:n,placeholder:i[1],onChange:e=>a.value=e.currentTarget.value})}),(0,s.jsxs)(c.xu,{className:v.Z.actions,children:[(0,s.jsx)(c.hU,{variant:"ghost",color:"gray",onClick:l,children:(0,s.jsx)(x.O$V,{})}),(0,s.jsx)(c.hU,{variant:"ghost",color:"gray",onClick:r,children:(0,s.jsx)(x.PW$,{})})]})]},d.id)},g=e=>{var{$data:a=(0,o.sj)([]),disabled:l,placeholders:x}=e,v=(0,i._)(e,["$data","disabled","placeholders"]);let g=(0,h.R)(a);return(0,t.useEffect)(()=>{g.length<=0&&a.push({id:(0,d.nanoid)(),key:"",value:""})},[g.length]),(0,s.jsx)(c.xu,(0,n._)((0,r._)({className:u.Z.container},v),{children:g.map((e,r)=>(0,s.jsx)(j,{$data:a[r],disabled:l,placeholders:x,onDelete:()=>a.splice(r,1),onInsert:()=>a.splice(r+1,0,{id:(0,d.nanoid)(),key:"",value:""})},e.id))}))};var f=l(52493),k=l.n(f),p=l(55058),y=l(96575);let m={signal:"signal-L2JPtX"},C=()=>{let e=(0,h.R)(y.ok),a=!!e.service.href,l=(0,t.useMemo)(()=>{var a;return(0,o.sj)(null!==(a=k().cloneDeep(e.service.rules))&&void 0!==a?a:[])},[]),r=(0,h.R)(l),n=a?"Active":"Offline",i=async()=>{await (0,y.gM)(r.filter(e=>e.key))},d=async()=>{await (0,y.m)()};return(0,s.jsxs)(c.xu,{className:m.container,children:[(0,s.jsx)(c.X6,{mt:"4",children:"Header Modifier"}),(0,s.jsxs)(c.kC,{align:"center",gap:"1",children:[(0,s.jsx)(c.xu,{className:m.signal,"data-active":a}),(0,s.jsx)(c.xv,{color:"gray",size:"1",children:n}),e.service.href&&(0,s.jsx)(c.rU,{size:"1",href:e.service.href,target:"_blank",children:(0,p.Lk)(e.service.href).pathname})]}),(0,s.jsx)(g,{$data:l,disabled:a,my:"3",placeholders:["Match header field...","Replace by..."]}),(0,s.jsx)(c.kC,{justify:"end",gap:"2",children:a?(0,s.jsx)(c.zx,{color:"red",onClick:d,children:"Unregister"}):(0,s.jsx)(c.zx,{onClick:i,children:"Register"})})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["925"],{10252:function(e,s,t){t.r(s),t.d(s,{default:()=>n});var l=t(86834),o=t(43866),r=t(49133);function n(){return(0,l.jsx)(r.xu,{width:"100%",height:"100%",pt:"6",style:{overflowY:"scroll"},children:(0,l.jsx)(r.xu,{mx:"auto",style:{maxWidth:"40rem"},children:(0,l.jsx)(o.j3,{})})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["860"],{40500:function(e,s,r){r.r(s),r.d(s,{default:()=>i});var l=r(86834),n=r(43866),t=r(49133);let i=()=>{let e=(0,n.s0)();return(0,l.jsxs)(t.xu,{children:[(0,l.jsx)(t.X6,{my:"4",children:"Header Modifier"}),(0,l.jsx)(t.xv,{as:"p",mb:"2",children:"Modifying headers of requests, useful for switch between traffic lanes."}),(0,l.jsxs)(t.xv,{as:"p",children:["That will register",(0,l.jsx)(t.rU,{href:"/sw-proxy.js",target:"_blank",mx:"1",children:"/sw-proxy.js"}),"as a service worker to handle all requests under",(0,l.jsx)(t.rU,{mx:"1",children:location.host})]}),(0,l.jsx)(t.zx,{my:"4",onClick:()=>e("../editor"),children:"Enable"})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["988"],{21095:function(e,s,t){t.r(s),t.d(s,{default:()=>r});var o=t(86834),l=t(43866),n=t(49133);function r(){return(0,o.jsx)(n.xu,{width:"100%",height:"100%",pt:"6",style:{overflowY:"scroll"},children:(0,o.jsx)(l.j3,{})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["161"],{88640:function(e,r,s){s.d(r,{Z:()=>a});let a=function(){for(var e,r,s=0,a="";s<arguments.length;)(e=arguments[s++])&&(r=function e(r){var s,a,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r){if(Array.isArray(r))for(s=0;s<r.length;s++)r[s]&&(a=e(r[s]))&&(n&&(n+=" "),n+=a);else for(s in r)r[s]&&(n&&(n+=" "),n+=s)}return n}(e))&&(a&&(a+=" "),a+=r);return a}},9197:function(e,r,s){s.d(r,{x:()=>h,Z:()=>d});var a=s(49987),n=s(65),i=s(17936),l=s(86834),c=s(49133),t=s(88640),o=s(67358);let d=e=>{let{children:r,className:s,variant:d,clickable:h=!1,selected:x=!1,inset:j=!1}=e,p=(0,i._)(e,["children","className","variant","clickable","selected","inset"]);return(0,l.jsx)(c.xu,(0,n._)((0,a._)({},p),{"data-variant":null!=d?d:"","data-clickable":h,"data-selected":x,"data-inset":j,className:(0,t.Z)(o.Z.card,s),children:r}))},h=e=>(0,l.jsx)(c.kC,(0,a._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},30569:function(e,r,s){s.r(r),s.d(r,{default:()=>h});var a=s(86834),n=s(49133),i=s(13190),l=s(55058),c=s(20610);s(67358);var t=s(9197),o=s(95197);let d={webpack:"webpack",rspack:"@rspack/core"},h=()=>{let e=(0,o.k)(),{version:r}=(0,c.R)(e),s=(0,c.R)(e.framework).context,{def:h}=(0,c.R)(e).context,x=(0,c.R)(e.dependencies),j=(0,c.R)(e.builder).context,{compileDuration:p}=(0,c.R)(e).performance,g=window.navigator.userAgent.includes("Mac OS"),{toolsType:u}=s;if("app-tools"!==u)throw Error();let v=h.packages.appTools,f=x[v],{bundlerType:k}=j,m=d[k],y=x[m];return(0,a.jsxs)(n.kC,{direction:"column",align:"center",children:[(0,a.jsxs)(n.kC,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:"container-p5QVGS",children:[(0,a.jsx)(t.Z,{variant:"indicate",className:"primary-card-plqY_q",children:(0,a.jsx)(n.Q2,{appearance:"dark",hasBackground:!1,asChild:!0,children:(0,a.jsxs)(t.x,{children:[(0,a.jsx)(n.X6,{as:"h1",className:"heading-hVMxZh",children:"DevTools"}),(0,a.jsx)(n.kC,{gap:"2",children:(0,a.jsxs)("button",{type:"button",children:["v",r]})}),(0,a.jsxs)(n.xv,{as:"p",size:"1",children:["Powered by ",v,"@",f]})]})})}),(0,a.jsx)(t.Z,{variant:"indicate",className:"info-card-rAI3LL",children:(0,a.jsxs)(n.kC,{justify:"between",gap:"3",align:"center",height:"100%",children:[(0,a.jsxs)(n.xu,{children:[(0,a.jsx)(n.xv,{color:"gray",children:"Visit our website"}),(0,a.jsx)(n.kC,{align:"center",asChild:!0,children:(0,a.jsxs)(n.rU,{href:h.announcement.fallback,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)(i.WRS,{}),(0,a.jsx)(n.xv,{children:(0,l.Lk)(h.announcement.fallback).host})]})})]}),(0,a.jsx)(i.vrJ,{size:"50",color:"var(--gray-6)"})]})}),(0,a.jsx)(t.Z,{variant:"indicate",className:"plugin-card-RzXrFC",children:(0,a.jsxs)(n.kC,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,a.jsxs)(n.xu,{children:[(0,a.jsx)(n.xv,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},mb:"2",children:s.plugins.length}),(0,a.jsx)(n.xv,{as:"p",size:"1",color:"gray",children:"Framework Plugins"})]}),(0,a.jsx)(i.hjZ,{size:"50",color:"var(--gray-6)"})]})}),(0,a.jsx)(t.Z,{variant:"indicate",className:"compile-time-card-_p7KQL",children:(0,a.jsxs)(n.kC,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,a.jsxs)(n.xu,{children:[(0,a.jsxs)(n.xv,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},children:[(p/1e3).toFixed(2),"s"]}),(0,a.jsxs)(n.xv,{as:"p",size:"1",color:"gray",children:["Compiled in ",m,"@",y]})]}),(0,a.jsx)(i.XoX,{size:"50",color:"var(--gray-6)"})]})})]}),(0,a.jsxs)(n.kC,{align:"center",className:"bottom-tip-K062Gu",children:[(0,a.jsx)(n.xv,{color:"gray",size:"2",children:"Use"}),(0,a.jsxs)(n.Tz,{mx:"2",children:["Shift + ",g?"Opt":"Alt"," + D"]}),(0,a.jsx)(n.xv,{color:"gray",size:"2",children:"to open DevTools"})]})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["631"],{65470:function(e,s,t){t.r(s),t.d(s,{default:()=>r});var o=t(86834),l=t(43866),n=t(49133);function r(){return(0,o.jsx)(n.xu,{width:"100%",height:"100%",pt:"9",style:{overflowY:"scroll"},children:(0,o.jsx)(l.j3,{})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{76330:function(e,t,n){function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}n.d(t,{S1:()=>a,jU:()=>l,on:()=>r});var l="undefined"!=typeof window},52315:function(e,t,n){n.r(t),n.d(t,{default:()=>ee});var r=n(86834),a=n(5872);let l=(0,a.createContext)({url:""});var i=n(52493),o=n.n(i),s=n(49133),d=n(63145),c=n(11039),u=n(65021),x=n(75110),h=n(25698),p=n(56988),m=n(61938),f=n(58424),j="Collapsible",[v,y]=(0,c.b)(j),[g,C]=v(j),b=a.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:l,defaultOpen:i,disabled:o,onOpenChange:s,...d}=e,[c=!1,x]=(0,u.T)({prop:l,defaultProp:i,onChange:s});return(0,r.jsx)(g,{scope:n,disabled:o,contentId:(0,f.M)(),open:c,onOpenToggle:a.useCallback(()=>x(e=>!e),[x]),children:(0,r.jsx)(p.WV.div,{"data-state":S(c),"data-disabled":o?"":void 0,...d,ref:t})})});b.displayName=j;var N="CollapsibleTrigger",k=a.forwardRef((e,t)=>{let{__scopeCollapsible:n,...a}=e,l=C(N,n);return(0,r.jsx)(p.WV.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":S(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...a,ref:t,onClick:(0,d.M)(e.onClick,l.onOpenToggle)})});k.displayName=N;var w="CollapsibleContent",R=a.forwardRef((e,t)=>{let{forceMount:n,...a}=e,l=C(w,e.__scopeCollapsible);return(0,r.jsx)(m.z,{present:n||l.open,children:({present:e})=>(0,r.jsx)(E,{...a,ref:t,present:e})})});R.displayName=w;var E=a.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:l,children:i,...o}=e,s=C(w,n),[d,c]=a.useState(l),u=a.useRef(null),m=(0,h.e)(t,u),f=a.useRef(0),j=f.current,v=a.useRef(0),y=v.current,g=s.open||d,b=a.useRef(g),N=a.useRef(void 0);return a.useEffect(()=>{let e=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,x.b)(()=>{let e=u.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,v.current=t.width,b.current||(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),c(l)}},[s.open,l]),(0,r.jsx)(p.WV.div,{"data-state":S(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...o,ref:m,style:{"--radix-collapsible-content-height":j?`${j}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:g&&i})});function S(e){return e?"open":"closed"}var Z=n(66671),D=n(72972);let L=e=>{let{badge:t,route:n,title:i,children:o,open:d,onOpenChange:c}=e,{matched:u}=(0,a.useContext)(l),[x,h]=(0,a.useState)(!1),p=u===n,m=p||(null!=d?d:x);return(0,r.jsx)(s.xu,{p:"3",className:D.Z.container,children:(0,r.jsxs)(b,{open:m,onOpenChange:null!=c?c:h,children:[(0,r.jsxs)(k,{className:D.Z.trigger,children:[t,(0,r.jsx)(s.xv,{className:D.Z.urlText,style:{opacity:u&&!p?.5:1},children:i}),(0,r.jsx)(s.xu,{flexGrow:"1"}),(0,r.jsx)(s.xu,{className:D.Z.mark,"data-open":m,children:(0,r.jsx)(Z.jnn,{})})]}),(0,r.jsx)(R,{className:D.Z.content,children:o})]})})};var P=n(95197),T=n(41839),O=n(20610);let z=()=>(0,r.jsx)(s.xv,{children:"Unimplemented."});var I=n(38933),U=n(55058);let W=(0,a.createContext)([]);var _=n(76330);let A=function(e,t){void 0===t&&(t=!0);var n=(0,a.useState)(!1),r=n[0],l=n[1];return(0,a.useEffect)(function(){var n=function(){return l(!0)},r=function(){return l(!1)};t&&e&&e.current&&((0,_.on)(e.current,"mouseover",n),(0,_.on)(e.current,"mouseout",r));var a=e.current;return function(){t&&a&&((0,_.S1)(a,"mouseover",n),(0,_.S1)(a,"mouseout",r))}},[t,e]),r};var K=n(95328);let V=e=>{var t,n;let{route:l}=e,i=o().castArray(l),d=o().last(i),c="_component"in d&&o().isString(d._component)?d._component:null,u=(0,U.As)("/",...i.map(e=>e.path).filter(o().isString))||"/",x=null!==(n=d.index)&&void 0!==n&&n,h="/"===u,p=(0,a.useContext)(W),m=!1===p||p.length>0,f=!!p&&!!o().find(p,{route:{id:d.id}}),j=(0,a.useRef)(null),v=A(j);return(0,r.jsxs)(s.xu,{ref:j,children:[(0,r.jsxs)(s.kC,{gap:"2",align:"center",mb:d.children&&"1",children:[(0,r.jsxs)(s.xu,{className:K.Z.endpointContainer,"data-matched":!m||f,children:[x&&h||(0,r.jsx)(s.EK,{className:K.Z.endpointTag,"data-compose":x&&"head",children:u}),x&&(0,r.jsx)(s.EK,{className:K.Z.endpointTag,color:"purple","data-compose":!h&&"tail",children:"/(index)"})]}),c&&(0,r.jsx)(s.rU,{className:K.Z.shyLink,style:{visibility:v?"visible":"hidden"},children:c})]}),(0,r.jsx)(s.kC,{direction:"column",gap:"1",children:null===(t=d.children)||void 0===t?void 0:t.map(e=>(0,r.jsx)(V,{route:i.concat(e)},e.id))})]})},F=e=>{let{remixRoutes:t,route:n}=e,{matched:i,url:o}=(0,a.useContext)(l),d=(0,a.useMemo)(()=>{if(i!==n)return!i&&[];{var e;if(!t)return[];let r=(0,U.v$)(o.replace(n.urlPath,"/")),a=null!==(e=(0,I.fp)(t,r))&&void 0!==e?e:[];return!!a.length&&a}},[t,i,o]);return(null==t?void 0:t.length)?(0,r.jsx)(W.Provider,{value:d,children:(0,r.jsx)(s.kC,{gap:"2",direction:"column",children:t.map(e=>(0,r.jsx)(V,{route:e},e.id))})}):null};(0,T.sj)({});let J=e=>{let{route:t}=e,{entryName:n}=t;if(!n)throw TypeError("");let l=(0,P.k)(),{entrypoints:i}=(0,O.R)(l.framework).context,s=o().find(i,{entryName:n});if(!s)throw TypeError("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let d=(0,O.R)(l.fileSystemRoutes)[s.entryName];if(!s)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(()=>M(d)?(0,r.jsx)(z,{}):(0,r.jsx)(F,{remixRoutes:d,route:t}),{})})},M=e=>(null==e?void 0:e[0])&&!("type"in e[0]);var $=n(85721);let G=e=>{let{route:t}=e,n=(0,P.k)(),{entrypoints:a}=(0,O.R)(n.framework).context,l=t.entryName&&o().find(a,{entryName:t.entryName});if(!l)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsxs)(s.xu,{className:$.Z.stats,children:[(0,r.jsxs)(s.kC,{gap:"1",children:[(0,r.jsx)(s.cK,{children:"Directory: "}),(0,r.jsx)(s.xv,{children:l.absoluteEntryDir})]}),(0,r.jsxs)(s.kC,{gap:"1",children:[(0,r.jsx)(s.cK,{children:"Entry:"}),(0,r.jsx)(s.xv,{children:l.entry})]})]})},q=e=>{let{route:t}=e;return(0,r.jsx)(L,{badge:B,route:t,title:t.urlPath,children:(0,r.jsxs)(s.kC,{direction:"column",gap:"2",children:[(0,r.jsx)(s.xr,{scrollbars:"horizontal",children:(0,r.jsx)(G,{route:t})}),(0,r.jsx)(s.xr,{scrollbars:"horizontal",children:(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(J,{route:t})})})]})})},B=(0,r.jsx)(s.Ct,{color:"cyan",children:"Entry"}),Y=e=>{let{route:t}=e;return(0,r.jsx)(L,{badge:H,route:t,title:t.urlPath,children:(0,r.jsx)(s.Zb,{children:"Unknown route type."})})},H=(0,r.jsx)(s.Ct,{color:"gray",children:"Unknown"}),Q=e=>{let{route:t}=e;return o().isString(t.entryName)?(0,r.jsx)(q,{route:t}):(0,r.jsx)(Y,{route:t})};var X=n(13190);let ee=()=>{let e=(0,P.k)(),{serverRoutes:t}=(0,O.R)(e.framework).context,[n,i]=(0,a.useState)({url:""}),o=e=>{let{pathname:n}=(0,U.Lk)(e);i({url:e,matched:t.find(e=>n===e.urlPath||n.startsWith((0,U.jE)(e.urlPath)))})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.kC,{className:"list-xLGYni",direction:"column",gap:"2",align:"stretch",justify:"between",mx:"auto",children:(0,r.jsx)(l.Provider,{value:n,children:t.map(e=>(0,r.jsx)(Q,{route:e},e.entryPath))})}),(0,r.jsx)(s.xu,{className:"input-ZLygVL",children:(0,r.jsx)(s.xu,{mx:"auto",style:{maxWidth:"40rem"},children:(0,r.jsx)(s.nv.f,{placeholder:"/foo?bar#baz",onChange:e=>o(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false",children:(0,r.jsx)(s.nv.g,{children:(0,r.jsx)(X.IIh,{})})})})})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["483"],{15669:function(e,t,s){s.r(t),s.d(t,{default:()=>c});var l=s(86834),o=s(95197),a=s(43866),n=s(49133),r=s(5872),i=s(20610);let c=()=>{let e=(0,a.UO)(),t=(0,n.TC)(),s=(0,a.TH)(),c=(0,a.s0)(),d="light"===t.appearance?"light":"dark",{mountPoint:h,react:p}=(0,i.R)((0,o.k)());return(0,r.useEffect)(()=>{h.remote.activateReactDevtools()},[]),(0,r.useEffect)(()=>{if("#inspecting"===s.hash){let e=()=>{p.devtools.wallAgent.send("startInspectingNative",null),c(s.pathname,{replace:!0})};"active"===p.devtools.wallAgent.status?e():p.devtools.wallAgent.hookOnce("active",e)}},[s,c]),(0,l.jsx)(n.xu,{width:"100%",height:"100%",pt:"5",children:(0,l.jsx)(p.devtools.Renderer,{browserTheme:d,overrideTab:"profiler"===e.tab?"profiler":"components",hideSettings:!1})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["752"],{13818:function(e,s,l){l.r(s),l.d(s,{default:()=>r});var o=l(86834),n=l(49133);let r=()=>(0,o.jsx)(n.xu,{children:(0,o.jsx)(n.xv,{children:"React DevTools is unavailable for offscreen."})})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["244"],{88640:function(e,t,n){n.d(t,{Z:()=>r});let r=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,l="";if("string"==typeof t||"number"==typeof t)l+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(l&&(l+=" "),l+=r);else for(n in t)t[n]&&(l&&(l+=" "),l+=n)}return l}(e))&&(r&&(r+=" "),r+=t);return r}},9197:function(e,t,n){n.d(t,{x:()=>u,Z:()=>d});var r=n(49987),l=n(65),o=n(17936),i=n(86834),a=n(49133),s=n(88640),c=n(67358);let d=e=>{let{children:t,className:n,variant:d,clickable:u=!1,selected:x=!1,inset:h=!1}=e,p=(0,o._)(e,["children","className","variant","clickable","selected","inset"]);return(0,i.jsx)(a.xu,(0,l._)((0,r._)({},p),{"data-variant":null!=d?d:"","data-clickable":u,"data-selected":x,"data-inset":h,className:(0,s.Z)(c.Z.card,n),children:t}))},u=e=>(0,i.jsx)(a.kC,(0,r._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},65743:function(e,t,n){n.r(t),n.d(t,{default:()=>k});var r=n(49987),l=n(65),o=n(17936),i=n(86834),a=n(9197),s=n(74420),c=n(49133),d=n(5872),u=n(13190),x=n(79778);let h=e=>{let{title:t,content:n,children:a}=e,d=(0,o._)(e,["title","content","children"]);return(0,i.jsxs)(s.fC,(0,l._)((0,r._)({},d),{className:x.Z.container,children:[t&&(0,i.jsx)(s.Dx,{children:t}),(0,i.jsx)(s.dk,{children:n}),a&&(0,i.jsx)(s.aU,{altText:"",asChild:!0,children:a}),(0,i.jsx)(c.xu,{flexGrow:"1"}),(0,i.jsx)(s.x8,{className:x.Z.close,"aria-label":"Close",children:(0,i.jsx)(u.cu3,{})})]}))},p=e=>{let{duration:t=5e3}=e,n=(0,o._)(e,["duration"]),[a,c]=(0,d.useState)(!1),u=(0,i.jsxs)(d.Fragment,{children:[(0,i.jsx)(h,(0,l._)((0,r._)({},n),{open:a,onOpenChange:c})),(0,i.jsx)(s.l_,{className:x.Z.viewport})]}),p=(0,d.useRef)(null);return{element:u,open:()=>{c(!0),p.current&&clearTimeout(p.current),p.current=null,t&&(p.current=window.setTimeout(()=>c(!1),t))}}};var j=n(95197),g=n(43866),f=n(41839),y=n(33049);let v=e=>{let{onCopyAction:t,onOpenAction:n,onApplyAction:a,onPasteAction:s}=e,d=(0,o._)(e,["onCopyAction","onOpenAction","onApplyAction","onPasteAction"]);return(0,i.jsxs)(c.kC,(0,l._)((0,r._)({position:"relative",gap:"3",height:"var(--space-5)",align:"center"},d),{children:[(0,i.jsx)(c.u,{content:"Copy as Data URL",delayDuration:200,children:(0,i.jsx)(c.hU,{onClick:t,variant:"ghost",color:"gray",children:(0,i.jsx)(u.oiB,{})})}),(0,i.jsx)(c.u,{content:"Paste from Data URL",delayDuration:200,children:(0,i.jsx)(c.hU,{onClick:s,variant:"ghost",color:"gray",children:(0,i.jsx)(u.MK7,{})})}),(0,i.jsx)(c.u,{content:"Open File",delayDuration:200,children:(0,i.jsx)(c.hU,{onClick:n,variant:"ghost",color:"gray",children:(0,i.jsx)(u.g1w,{})})}),(0,i.jsx)(c.u,{content:"Apply Preset",delayDuration:200,children:(0,i.jsx)(c.hU,{onClick:a,variant:"ghost",color:"gray",children:(0,i.jsx)(u.VyF,{})})})]}))},m=async e=>{let t={cookie:{},localStorage:{},sessionStorage:{}};for(let n of y.dR){let r=e[n];r&&Object.assign(t[n],r)}return await (0,y.l5)(t)},w=e=>{let{title:t,records:n,color:s}=e,d=(0,o._)(e,["title","records","color"]);return(0,i.jsx)(a.Z,(0,l._)((0,r._)({asChild:!0},d),{children:(0,i.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,i.jsx)(c.xv,{size:"1",weight:"bold",children:t}),(0,i.jsxs)(c.kC,{width:"100%",wrap:"wrap",align:"start",gap:"2",children:[0===n.length&&(0,i.jsx)(c.Ct,{color:"gray",children:"Empty"}),n.map(e=>(0,i.jsxs)(c.Ct,{color:s,children:[e.key,": ",e.value]},e.id))]})]})}))},k=()=>{let{revalidate:e}=(0,g.xW)(),t=(0,j.k)(),{server:n}=t;(0,d.useEffect)(()=>(0,f.Ld)(t,e),[]);let r=(0,g.f_)(),l=[...(0,y.SR)(r,"cookie"),...(0,y.SR)(r,"localStorage"),...(0,y.SR)(r,"sessionStorage")],o=p({content:"\uD83D\uDD25 Fired"}),a=p({content:"\uD83D\uDCCB Copied"}),s=p({content:"\uD83D\uDCCB Pasted"}),u=async()=>{await m(r),o.open(),e()},x=async()=>{let e=new Blob([JSON.stringify(r)],{type:"application/json"}),t=new FileReader;t.readAsDataURL(e);let n=await new Promise(e=>{t.onload=t=>{var n,r,l;return e(null!==(l=null===(r=t.target)||void 0===r?void 0:null===(n=r.result)||void 0===n?void 0:n.toString())&&void 0!==l?l:null)}});n?(navigator.clipboard.writeText(n),a.open()):console.error("Failed to copy preset as data URL")},h=async()=>{n&&(await n.remote.pasteStoragePreset(r),s.open())};return(0,i.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,i.jsxs)(c.kC,{flexGrow:"0",px:"2",gap:"2",justify:"between",align:"center",width:"100%",children:[(0,i.jsx)(c.xu,{flexShrink:"0",className:"text-ellipsis-sg296B",children:(0,i.jsx)(c.xv,{size:"1",weight:"bold",color:"gray",children:r.name})}),(0,i.jsx)(v,{flexShrink:"0",flexGrow:"0",px:"2",justify:"end",onCopyAction:x,onPasteAction:h,onOpenAction:()=>null==n?void 0:n.remote.open(r.filename),onApplyAction:u})]}),(0,i.jsx)(c.xu,{flexGrow:"1",pb:"2",pr:"2",style:{overflowY:"scroll"},children:(0,i.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,i.jsx)(w,{title:"Cookie",records:l.filter(e=>"cookie"===e.type),color:"yellow"}),(0,i.jsx)(w,{title:"Local Storage",records:l.filter(e=>"localStorage"===e.type),color:"green"}),(0,i.jsx)(w,{title:"Session Storage",records:l.filter(e=>"sessionStorage"===e.type),color:"blue"})]})}),o.element,a.element,s.element]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["470"],{41789:function(e,t,l){l.d(t,{Z:()=>r});let r={container:"container-ewltyx","side-panel":"side-panel-bdvL2J",sidePanel:"side-panel-bdvL2J","overflow-badge":"overflow-badge-jy83Ta",overflowBadge:"overflow-badge-jy83Ta","preview-badge-list":"preview-badge-list-gW0J6X",previewBadgeList:"preview-badge-list-gW0J6X","btn-create-preset":"btn-create-preset-hoeILU",btnCreatePreset:"btn-create-preset-hoeILU",divider:"divider-lbRk1F","text-ellipsis":"text-ellipsis-F0lpeD",textEllipsis:"text-ellipsis-F0lpeD",badge:"badge-V1CqD5",scrollable:"scrollable-HHlcgf"}},88640:function(e,t,l){l.d(t,{Z:()=>r});let r=function(){for(var e,t,l=0,r="";l<arguments.length;)(e=arguments[l++])&&(t=function e(t){var l,r,s="";if("string"==typeof t||"number"==typeof t)s+=t;else if("object"==typeof t){if(Array.isArray(t))for(l=0;l<t.length;l++)t[l]&&(r=e(t[l]))&&(s&&(s+=" "),s+=r);else for(l in t)t[l]&&(s&&(s+=" "),s+=l)}return s}(e))&&(r&&(r+=" "),r+=t);return r}},9197:function(e,t,l){l.d(t,{x:()=>h,Z:()=>d});var r=l(49987),s=l(65),a=l(17936),i=l(86834),n=l(49133),o=l(88640),c=l(67358);let d=e=>{let{children:t,className:l,variant:d,clickable:h=!1,selected:g=!1,inset:p=!1}=e,u=(0,a._)(e,["children","className","variant","clickable","selected","inset"]);return(0,i.jsx)(n.xu,(0,s._)((0,r._)({},u),{"data-variant":null!=d?d:"","data-clickable":h,"data-selected":g,"data-inset":p,className:(0,o.Z)(c.Z.card,l),children:t}))},h=e=>(0,i.jsx)(n.kC,(0,r._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},40511:function(e,t,l){let r;l.r(t),l.d(t,{default:()=>k});var s=l(49987),a=l(65),i=l(17936),n=l(86834),o=l(9197),c=l(95197),d=l(43866),h=l(49133),g=l(52493),p=l.n(g),u=l(13190),x=l(20610),f=l(41839);Symbol();var v=l(41789),j=l(33049);let m=e=>{let{selected:t,to:l}=e,r=(0,i._)(e,["selected","to"]),a=(0,d.s0)(),c=(0,d.bS)(null!=l?l:"");return(0,n.jsx)(o.Z,{variant:"small",selected:null!=t?t:!!c,clickable:!0,asChild:!0,onClick:()=>l&&a(l),children:(0,n.jsx)(h.kC,(0,s._)({},r))})},b=e=>{let{preset:t,highlight:l}=e,r=(0,i._)(e,["preset","highlight"]),o=!t.filename.match(/[/\\]node_modules[/\\]/),c=null;return l&&(c=(0,n.jsx)(h.xv,{size:"1",color:"red",asChild:!0,children:(0,n.jsx)(u.XC2,{})})),(0,n.jsxs)(m,(0,a._)((0,s._)({direction:"column"},r),{children:[(0,n.jsxs)(h.xv,{size:"1",weight:"bold",as:"p",mb:"2",children:[t.name," ",o||(0,n.jsx)(h.xv,{size:"1",color:"gray",children:"*"}),c]}),(0,n.jsx)(h.kC,{align:"center",children:(0,n.jsxs)(h.kC,{className:v.Z.previewBadgeList,children:[0===t.items.length&&(0,n.jsx)(h.Ct,{color:"gray",children:"Empty"}),t.items.map(e=>(0,n.jsxs)(h.Ct,{color:j.xq[e.type],children:[e.key,": ",e.value]},e.id))]})})]}))},k=()=>{let e=(0,c.k)(),{server:t}=e,{storagePresets:l}=(0,x.R)(e).context,i=(0,d.f_)(),o={cookie:(0,s._)({},i.cookie.client,i.cookie.server),localStorage:i.localStorage,sessionStorage:i.sessionStorage},g=(0,d.s0)(),k={cookie:p()(l).flatMap(e=>p().keys(e.cookie)).countBy().value(),localStorage:p()(l).flatMap(e=>p().keys(e.localStorage)).countBy().value(),sessionStorage:p()(l).flatMap(e=>p().keys(e.sessionStorage)).countBy().value()},y=l.map(e=>(0,a._)((0,s._)({},e),{items:p()((0,j.f)(e)).sortBy(e=>{var t;return null!==(t=k[e.type][e.key])&&void 0!==t?t:0}).reverse().value()})),C=async()=>{if(!t)return;let{id:l}=await t.remote.createTemporaryStoragePreset(),s=function(e,t){let l=!0,s=new Set,a=new Map,i=()=>{l&&(l=!1,s.forEach(e=>e()),s.clear(),a.forEach(e=>e()),a.clear())},n=()=>{if(!l)return;s.forEach(e=>e()),s.clear();let t=new Set,i=r;r=s;try{let l=e(e=>(t.add(e),e));l&&s.add(l)}finally{r=i}a.forEach((e,l)=>{t.has(l)?t.delete(l):(a.delete(l),e())}),t.forEach(e=>{let t=(0,f.Ld)(e,n,void 0);a.set(e,t)})};return r&&r.add(i),n(),i}(t=>{let{storagePresets:r}=(0,f.CO)(t(e)).context;p().find(r,{id:l})&&(s(),g("/storage/preset/".concat(l)))})};return(0,n.jsxs)(h.kC,{width:"100%",pt:"4",className:v.Z.container,children:[(0,n.jsxs)(h.kC,{direction:"column",className:v.Z.sidePanel,children:[(0,n.jsxs)(m,{to:"/storage/preset",m:"2",align:"center",gap:"1",children:[(0,n.jsx)(h.xv,{size:"1",weight:"bold",children:"Current Storage"}),(0,n.jsx)(h.xv,{size:"1",color:"red",asChild:!0,children:(0,n.jsx)(u.XC2,{})})]}),(0,n.jsx)(h.xu,{mx:"2",className:v.Z.divider}),(0,n.jsxs)(h.kC,{p:"2",direction:"column",gap:"2",className:v.Z.scrollable,children:[y.map(e=>(0,n.jsx)(b,{to:"/storage/preset/".concat(e.id),preset:e,highlight:e.items.length>0&&p().isMatch(o,p().pick(e,["cookie","localStorage","sessionStorage"]))},e.id)),(0,n.jsx)(m,{justify:"center",align:"center",onClick:C,className:v.Z.btnCreatePreset,children:(0,n.jsx)(u.b9W,{})})]})]}),(0,n.jsx)(h.xu,{width:"0",flexGrow:"1",height:"100%",flexShrink:"1",pt:"2",children:(0,n.jsx)(d.j3,{})})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["146"],{41789:function(e,l,r){r.d(l,{Z:()=>t});let t={container:"container-ewltyx","side-panel":"side-panel-bdvL2J",sidePanel:"side-panel-bdvL2J","overflow-badge":"overflow-badge-jy83Ta",overflowBadge:"overflow-badge-jy83Ta","preview-badge-list":"preview-badge-list-gW0J6X",previewBadgeList:"preview-badge-list-gW0J6X","btn-create-preset":"btn-create-preset-hoeILU",btnCreatePreset:"btn-create-preset-hoeILU",divider:"divider-lbRk1F","text-ellipsis":"text-ellipsis-F0lpeD",textEllipsis:"text-ellipsis-F0lpeD",badge:"badge-V1CqD5",scrollable:"scrollable-HHlcgf"}},88640:function(e,l,r){r.d(l,{Z:()=>t});let t=function(){for(var e,l,r=0,t="";r<arguments.length;)(e=arguments[r++])&&(l=function e(l){var r,t,i="";if("string"==typeof l||"number"==typeof l)i+=l;else if("object"==typeof l){if(Array.isArray(l))for(r=0;r<l.length;r++)l[r]&&(t=e(l[r]))&&(i&&(i+=" "),i+=t);else for(r in l)l[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(t&&(t+=" "),t+=l);return t}},9197:function(e,l,r){r.d(l,{x:()=>p,Z:()=>d});var t=r(49987),i=r(65),s=r(17936),a=r(86834),o=r(49133),n=r(88640),c=r(67358);let d=e=>{let{children:l,className:r,variant:d,clickable:p=!1,selected:g=!1,inset:x=!1}=e,h=(0,s._)(e,["children","className","variant","clickable","selected","inset"]);return(0,a.jsx)(o.xu,(0,i._)((0,t._)({},h),{"data-variant":null!=d?d:"","data-clickable":p,"data-selected":g,"data-inset":x,className:(0,n.Z)(c.Z.card,r),children:l}))},p=e=>(0,a.jsx)(o.kC,(0,t._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},65459:function(e,l,r){r.r(l),r.d(l,{default:()=>h});var t=r(49987),i=r(65),s=r(17936),a=r(86834),o=r(9197),n=r(43866),c=r(49133),d=r(52493),p=r.n(d),g=r(41789);let x=e=>{let{title:l,records:r,color:n}=e,d=(0,s._)(e,["title","records","color"]);return(0,a.jsx)(o.Z,(0,i._)((0,t._)({asChild:!0},d),{children:(0,a.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,a.jsx)(c.xv,{size:"1",weight:"bold",children:l}),(0,a.jsxs)(c.kC,{width:"100%",wrap:"wrap",align:"start",gap:"2",children:[0===r.length&&(0,a.jsx)(c.Ct,{color:"gray",children:"Empty"}),r.map(e=>(0,a.jsxs)(c.Ct,{color:n,className:g.Z.badge,children:[e.key,": ",e.value]},e.id))]})]})}))},h=()=>{let e=(0,n.f_)(),l=p().map(e.cookie.client,(e,l)=>({key:l,value:e,id:l})),r=p().map(e.cookie.server,(e,l)=>({key:l,value:e,id:l})),t=p().map(e.localStorage,(e,l)=>({key:l,value:e,id:l})),i=p().map(e.sessionStorage,(e,l)=>({key:l,value:e,id:l}));return(0,a.jsxs)(c.kC,{direction:"column",gap:"2",height:"100%",flexShrink:"1",children:[(0,a.jsx)(c.kC,{flexGrow:"0",px:"2",gap:"2",justify:"between",align:"center",width:"100%",children:(0,a.jsx)(c.xu,{flexShrink:"0",className:g.Z.textEllipsis,children:(0,a.jsx)(c.xv,{size:"1",weight:"bold",color:"gray",children:"Current Storage"})})}),(0,a.jsx)(c.xu,{flexGrow:"1",pb:"2",pr:"2",className:g.Z.scrollable,children:(0,a.jsxs)(c.kC,{direction:"column",gap:"2",children:[(0,a.jsx)(x,{title:"Cookie",records:l,color:"yellow"}),(0,a.jsx)(x,{title:"Cookie (HTTP Only)",records:r,color:"yellow"}),(0,a.jsx)(x,{title:"Local Storage",records:t,color:"green"}),(0,a.jsx)(x,{title:"Session Storage",records:i,color:"blue"})]})})]})}}}]);
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e={},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o||"object"==typeof r&&r&&(4&o&&r.__esModule||16&o&&"function"==typeof r.then))return r;var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(function(e){i[e]=function(){return r[e]}});return i.default=function(){return r},n.d(a,i),a}})(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,r){return n.f[r](e,t),t},[]))},n.u=function(e){return"static/js/async/"+(({127:"client_page",146:"client_storage/preset/page",158:"client_external/$",161:"client_overview/page",244:"client_storage/preset/(id)/page",288:"client_config/(toolkit).(type)/page",299:"client_react/(tab)/layout",361:"client_context/page",470:"client_storage/preset/layout",483:"client_react/(tab)/page",488:"client_doctor/page",504:"client_context/layout",518:"client_config/layout",631:"client_pages/layout",718:"client_pages/page",730:"client_headers/editor/page",744:"client_external/layout",752:"client_react/offscreen/page",818:"client_context/framework/page",860:"client_headers/welcome/page",925:"client_headers/layout",943:"client_config/page",945:"client_react/page",958:"client_context/builder/page",963:"client_headers/page",988:"client_overview/layout"})[e]||e)+"."+({127:"a2223950",146:"b0373a07",158:"38c99ee1",161:"755cd6a3",244:"8fa8c735",288:"ba4a1d2f",299:"b6e74b7b",361:"29e3a931",470:"114e0853",483:"86909e32",488:"e5af3656",504:"f529d23f",518:"61297a6c",631:"80e460c4",699:"978d0291",718:"8a8a8ae3",730:"2a1555c7",744:"045f31f2",752:"4d8bc70c",808:"f25c3973",818:"2ec943a2",860:"f7917dc3",925:"31604154",943:"993f402f",945:"c8fa7b76",958:"bd8357b5",963:"81568ee7",988:"c2f0c4c5"})[e]+".js"},n.miniCssF=function(e){return"static/css/async/"+({146:"client_storage/preset/page",161:"client_overview/page",244:"client_storage/preset/(id)/page",470:"client_storage/preset/layout",488:"client_doctor/page",718:"client_pages/page",730:"client_headers/editor/page"})[e]+"."+({146:"c4cdd54f",161:"c0cb887a",244:"059d889d",470:"c4cdd54f",488:"c491d527",718:"d3851c0f",730:"84a7c425"})[e]+".css"},n.h=function(){return"c25c246577a26c7d"},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},(()=>{var e={},t="modernjsDevtools:";n.l=function(r,o,a,i){if(e[r]){e[r].push(o);return}if(void 0!==a)for(var c,u,l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var d=l[f];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){c=d;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,n.nc&&c.setAttribute("nonce",n.nc),c.setAttribute("data-webpack",t+a),c.src=r),e[r]=[o];var s=function(t,n){c.onerror=c.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),u&&document.head.appendChild(c)}})(),n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.nc=void 0,(()=>{var e=[];n.O=function(t,r,o,a){if(r){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[r,o,a];return}for(var c=1/0,i=0;i<e.length;i++){for(var r=e[i][0],o=e[i][1],a=e[i][2],u=!0,l=0;l<r.length;l++)(!1&a||c>=a)&&Object.keys(n.O).every(function(e){return n.O[e](r[l])})?r.splice(l--,1):(u=!1,a<c&&(c=a));if(u){e.splice(i--,1);var f=o();void 0!==f&&(t=f)}}return t}})(),n.p="/",n.rv=function(){return"1.2.3"},(()=>{if("undefined"!=typeof document){var e=function(e,t,r,o,a){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",n.nc&&(i.nonce=n.nc),i.onerror=i.onload=function(n){if(i.onerror=i.onload=null,"load"===n.type)o();else{var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.href||t,u=Error("Loading CSS chunk "+e+" failed.\\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.type=r,u.request=c,i.parentNode&&i.parentNode.removeChild(i),a(u)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}for(var i=document.getElementsByTagName("style"),r=0;r<i.length;r++){var o=i[r],a=o.getAttribute("data-href");if(a===e||a===t)return o}},r={242:0};n.f.miniCss=function(o,a){if(r[o])a.push(r[o]);else if(0!==r[o]&&({470:1,161:1,488:1,718:1,146:1,244:1,730:1})[o])a.push(r[o]=new Promise(function(r,a){var i=n.miniCssF(o),c=n.p+i;if(t(i,c))return r();e(o,c,null,r,a)}).then(function(){r[o]=0},function(e){throw delete r[o],e}))}}})(),(()=>{var e={242:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o){if(o)r.push(o[2]);else if(242!=t){var a=new Promise(function(n,r){o=e[t]=[n,r]});r.push(o[2]=a);var i=n.p+n.u(t),c=Error();n.l(i,function(r){if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;c.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",c.name="ChunkLoadError",c.type=a,c.request=i,o[1](c)}},"chunk-"+t,t)}else e[t]=0}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,a,i=r[0],c=r[1],u=r[2],l=0;if(i.some(function(t){return 0!==e[t]})){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(u)var f=u(n)}for(t&&t(r);l<i.length;l++)a=i[l],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(f)},r=self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.ruid="bundler=rspack@1.2.3"})();
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{95942:function(e,t,n){n.d(t,{sY:()=>w});var r=n(12402),o=n(84706),i=n(49987),a=n(65),u=n(50102),l=n(99613),s=n(75192),c=n(62641),d=n(24644),f=n(13063),h=n(5872);function p(e,t){return h.createElement(d.JO.Provider,{value:t},e)}var v=n(86834),m=n(27947),g=n(24348),y=function(e){var t=e.callback,n=e.children,r=(0,h.useRef)(!1);return(0,h.useLayoutEffect)(function(){!r.current&&(r.current=!0,t())},[t]),n},x=function(){return!0};function w(e,t){return _.apply(this,arguments)}function _(){return(_=(0,r._)(function(e,t){var n,h,w,_,j,E,k,C,A,S,P;function N(){return(N=(0,r._)(function(e){return(0,l.Jh)(this,function(t){return[2,function(e,t){return b.apply(this,arguments)}(e,P)]})})).apply(this,arguments)}function T(){return(T=(0,r._)(function(e,t){return(0,l.Jh)(this,function(n){return[2,function(e,t){return R.apply(this,arguments)}(e,P,t)]})})).apply(this,arguments)}return(0,l.Jh)(this,function(b){var R,M,D,O,L,H,U,B,I,J,z,F,Z,q,V,W,X;switch(b.label){case 0:if(n=(0,d.zv)(),R=(0,r._)(function(e){var t,n;return(0,l.Jh)(this,function(r){switch(r.label){case 0:return(t=(0,c.Uk)()).pluginAPI.updateRuntimeContext(e),[4,t.hooks.onBeforeRender.call(e)];case 1:return r.sent(),[2,null==(n=(0,c.Hb)())?void 0:n(e)]}})}),h=function(e){return R.apply(this,arguments)},!(void 0===t||"string"==typeof t||"undefined"!=typeof HTMLElement&&(0,o._)(t,HTMLElement)))return[3,2];return w=function(e){return N.apply(this,arguments)},_=function(e,t){return T.apply(this,arguments)},H=null==(L=window._SSR_DATA)?void 0:null===(M=L.context)||void 0===M?void 0:M.request,A=Object.keys(C=(null===(j=(k=(0,a._)((0,i._)({},L||{renderLevel:0,mode:"string"}),{context:(0,a._)((0,i._)({},(null==L?void 0:L.context)||{}),{request:(0,a._)((0,i._)({},(null==L?void 0:null===(D=L.context)||void 0===D?void 0:D.request)||{}),{params:(null==H?void 0:H.params)||{},host:(null==H?void 0:H.host)||location.host,pathname:(null==H?void 0:H.pathname)||location.pathname,headers:(null==H?void 0:H.headers)||{},cookieMap:s.parse(document.cookie||"")||{},cookie:document.cookie||"",userAgent:(null==H?void 0:null===(O=H.headers)||void 0===O?void 0:O["user-agent"])||navigator.userAgent,referer:document.referrer,query:(0,i._)({},window.location.search.substring(1).split("&").reduce(function(e,t){var n=(0,u._)(t.split("="),2),r=n[0],o=n[1];return r&&(e[r]=o),e},{}),(null==H?void 0:H.query)||{}),url:location.href})})})).data)||void 0===j?void 0:j.loadersData)||{}).reduce(function(e,t){var n=C[t];return(null==n?void 0:n.loading)!==!1||(e[t]=n),e},{}),Object.assign(n,(0,i._)({loaderManager:(0,f.K)(A,{skipStatic:!0}),_internalRouterBaseName:e.props.basename},{ssrContext:k.context})),n.initialData=null===(E=k.data)||void 0===E?void 0:E.initialData,[4,h(n)];case 1:if((S=b.sent())&&(n.initialData=S),P=t&&"string"!=typeof t?t:document.getElementById(t||"root"),window._SSR_DATA)return[2,(U=n,B=w,I=_,q=(0,a._)((0,i._)({},U),{get routes(){return U.routes},_hydration:!0}),V=function(){delete q._hydration},W=(null===(z=window)||void 0===z?void 0:null===(J=z._SSR_DATA)||void 0===J?void 0:J.renderLevel)||g.Nm.CLIENT_RENDER,X=(null===(Z=window)||void 0===Z?void 0:null===(F=Z._SSR_DATA)||void 0===F?void 0:F.mode)||"string",x()&&"stream"===X?W===g.Nm.SERVER_RENDER?I(p((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:V,children:e})},{}),q)):B(p(e,U)):W===g.Nm.CLIENT_RENDER||W===g.Nm.SERVER_PREFETCH?B(p(e,U)):W===g.Nm.SERVER_RENDER?new Promise(function(t){x()?(0,m.TA)(function(){I(p((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:V,children:e})},{}),q)).then(function(e){t(e)})}):(0,m.TA)(function(){I(p(e,q),V).then(function(e){t(e)})})}):(console.warn("unknow render level: ".concat(W,", execute render()")),B(p(e,U))))];return[2,w(p(e,n))];case 2:throw Error("`render` function needs id in browser environment, it needs to be string or element")}})})).apply(this,arguments)}function b(){return(b=(0,r._)(function(e,t){var r;return(0,l.Jh)(this,function(o){switch(o.label){case 0:return[4,n.e("58").then(n.t.bind(n,41035,19))];case 1:return(r=o.sent().createRoot(t)).render(e),[2,r]}})})).apply(this,arguments)}function j(){return(j=(0,r._)(function(e,t){return(0,l.Jh)(this,function(r){switch(r.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,54e3,19))];case 1:return r.sent().render(e,t),[2,t]}})})).apply(this,arguments)}function R(){return(R=(0,r._)(function(e,t){return(0,l.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e("58").then(n.t.bind(n,41035,19))];case 1:return[2,r.sent().hydrateRoot(t,e)]}})})).apply(this,arguments)}function E(){return(E=(0,r._)(function(e,t,r){return(0,l.Jh)(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,54e3,19))];case 1:return[2,o.sent().hydrate(e,t,r)]}})})).apply(this,arguments)}},24348:function(e,t,n){n.d(t,{Ni:()=>a,Nm:()=>o,pc:()=>i}),(r=o||(o={}))[r.CLIENT_RENDER=0]="CLIENT_RENDER",r[r.SERVER_PREFETCH=1]="SERVER_PREFETCH",r[r.SERVER_RENDER=2]="SERVER_RENDER";var r,o,i="__MODERN_SSR_DATA__",a="__MODERN_ROUTER_DATA__"},62641:function(e,t,n){n.d(t,{CH:()=>d,FM:()=>u,Hb:()=>s,Uk:()=>a,cE:()=>o,hb:()=>i,jn:()=>l,nB:()=>c});var r={};function o(e){r.App=e.App,r.routes=e.routes,r.appInit=e.appInit,r.appConfig="function"==typeof e.appConfig?e.appConfig():e.appConfig,r.layoutApp=e.layoutApp,r.RSCRoot=e.RSCRoot}function i(e){r.internalRuntimeContext=e}function a(){return r.internalRuntimeContext}function u(){return r.App}function l(){return r.routes}function s(){var e,t;return r.appInit||(null===(e=u())||void 0===e?void 0:e.init)||(null===(t=d())||void 0===t?void 0:t.init)}function c(){var e,t;return r.appConfig||(null===(e=u())||void 0===e?void 0:e.config)||(null===(t=d())||void 0===t?void 0:t.config)}function d(){return r.layoutApp}},24644:function(e,t,n){n.d(t,{JO:()=>a,zv:()=>u});var r=n(63415),o=n(5872),i=n(13063),a=(0,o.createContext)({});(0,o.createContext)({});var u=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1?arguments[1]:void 0;return{loaderManager:(0,i.K)({}),isBrowser:e,routeManifest:t||"undefined"!=typeof window&&window[r.p9]}}},13063:function(e,t,n){n.d(t,{K:()=>p});var r,o,i=n(12402),a=n(84706),u=n(50102),l=n(77360),s=n(99613),c=n(24546),d=n.n(c),f=function(){var e=new Map;return function(t){var n=e.get(t);if(n)return n;var r=JSON.stringify(t);return d()(r,"params should be not null value"),e.set(t,r),r}};(r=o||(o={}))[r.idle=0]="idle",r[r.loading=1]="loading",r[r.fulfilled=2]="fulfilled",r[r.rejected=3]="rejected";var h=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return Promise.resolve()},u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=0,d=r.data,f=r.error,h=!1,p=new Set,v=(t=(0,i._)(function(){return(0,s.Jh)(this,function(e){return u||1===c?[2,n]:(c=1,g(),[2,n=o().then(function(e){d=e,f=null,c=2}).catch(function(e){f=e,d=null,c=3}).finally(function(){n=null,h=!0,g()})])})}),function(){return t.apply(this,arguments)}),m=function(){return{loading:!h&&1===c,reloading:h&&1===c,data:d,error:(0,a._)(f,Error)?"".concat(f.message):f,_error:f}},g=function(){(0,l._)(p).forEach(function(e){e(c,m())})};return{get result(){return m()},get promise(){return n},onChange:function(e){return p.add(e),function(){p.delete(e)}},load:v}},p=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipStatic,o=void 0!==r&&r,l=n.skipNonStatic,c=void 0!==l&&l,d=new Map,p=f();return{hasPendingLoaders:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=d.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value.promise;if((0,a._)(i,Promise))return!0}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,n,r,o,i,l,c,f,h;return(0,s.Jh)(this,function(s){switch(s.label){case 0:e=[],t=!0,n=!1,r=void 0;try{for(o=d[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)c=(l=(0,u._)(i.value,2))[0],h=(f=l[1]).promise,(0,a._)(h,Promise)&&e.push([c,f])}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return s.sent(),[2,e.reduce(function(e,t){var n=(0,u._)(t,2),r=n[0],o=n[1];return e[r]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,n){var r=p(n.params),i=d.get(r),a=n._cache;if(!i||!1===a){var u=c&&!n.static,l=o&&n.static;i=h(r,void 0!==e[r]?e[r]:{data:n.initialData},t,u||l),d.set(r,i)}return r},get:function(e){return d.get(e)}}}},61597:function(e,t,n){n.d(t,{v:()=>b,f:()=>j});var r,o,i,a,u,l,s,c=n(77360),d=n(27293),f=n(545),h=n(49987),p=n(17936),v=n(65),m=n(22589),g=(o=function(e){s.clear(),r=e;var t=e.plugins,n=e.handleSetupResult;s.addPlugins(t);var o=s.getPlugins(),i=(g=(f={runtimeContext:{},config:r.config,plugins:o}).runtimeContext,y=f.config,x=f.plugins,w={},x.forEach(function(e){var t=e.registryHooks,n=void 0===t?{}:t;Object.keys(n).forEach(function(e){w[e]=n[e]})}),(0,v._)((0,h._)({},g),{hooks:(0,h._)({},{onBeforeRender:(0,m.Ol)(),wrapRoot:(0,m.y2)(),pickContext:(0,m.y2)(),modifyRuntimeConfig:(0,m.rG)()},w),extendsHooks:w,config:y})),a=function(e){var t=e.context,n=e.plugins,r=t.hooks,o=t.extendsHooks;function i(){if(t){t.hooks,t.extendsHooks,t.config,t.pluginAPI;var e=(0,p._)(t,["hooks","extendsHooks","config","pluginAPI"]);return e._internalContext=t,e}throw Error("Cannot access context")}function a(e){t=(0,d.T)(t,e)}var u={};return n.forEach(function(e){var t=e._registryApi;if(t){var n=t(i,a);Object.keys(n).forEach(function(e){u[e]=n[e]})}}),o&&Object.keys(o).forEach(function(e){u[e]=o[e].tap}),new Proxy((0,h._)({updateRuntimeContext:a,getHooks:function(){return(0,h._)({},r,o)},getRuntimeConfig:function(){if(t.config)return t.config;throw Error("Cannot access config")},modifyRuntimeConfig:r.modifyRuntimeConfig.tap,onBeforeRender:r.onBeforeRender.tap,wrapRoot:r.wrapRoot.tap,pickContext:r.pickContext.tap},u),{get:function(e,t){return"then"===t?void 0:t in e?e[t]:function(){console.warn("api.".concat(t.toString()," not exist"))}}})}({context:i,pluginManager:s,plugins:o});i.pluginAPI=a;var u=!0,l=!1,c=void 0;try{for(var f,g,y,x,w,_,b=o[Symbol.iterator]();!(u=(_=b.next()).done);u=!0){var j,R=_.value,E=null===(j=R.setup)||void 0===j?void 0:j.call(R,a);n&&n(E,a)}}catch(e){l=!0,c=e}finally{try{u||null==b.return||b.return()}finally{if(l)throw c}}return{runtimeContext:i}},i=new Map,a=new Map,u=function(e,t,n){a.has(t)||a.set(t,{pre:new Map,post:new Map}),"pre"===n?a.get(e).pre.set(t,{name:t,isUse:!1}):"post"===n?a.get(e).post.set(t,{name:t}):"use"!==n||a.get(e).post.has(t)||a.get(t).pre.has(e)||a.get(e).pre.set(t,{name:t,isUse:!0})},l=function(e){if(e){!function(e){var t=void 0===e?"undefined":(0,f._)(e);if("object"!==t||null===e)throw Error("Expect CLI Plugin instance to be an object, but got ".concat(t,"."));if(e.setup){if("function"==typeof e.setup)return;throw Error("Expect CLI Plugin plugin.setup to be a function, but got ".concat(t,"."))}}(e);var t=e.name,n=e.usePlugins,r=e.pre,o=e.post;if(i.has(t)){console.warn("Plugin ".concat(t," already exists."));return}i.set(t,e),a.set(t,{pre:new Map,post:new Map}),(void 0===r?[]:r).forEach(function(e){u(t,e,"pre")}),(void 0===o?[]:o).forEach(function(e){u(t,e,"post")}),(void 0===n?[]:n).forEach(function(e){i.has(e.name)||l(e),u(t,e.name,"use")})}},s={getPlugins:function(){var e=new Set,t=new Set,n=[],r=function(o){if(t.has(o))throw Error("Circular dependency detected: ".concat(o));if(!e.has(o)&&i.get(o)){t.add(o);var u=i.get(o).required;(void 0===u?[]:u).forEach(function(e){if(!i.get(e))throw Error("".concat(o," plugin required plugin ").concat(e,", but not found."))});var l=a.get(o).pre;Array.from(l.values()).filter(function(e){return!e.isUse}).forEach(function(e){return r(e.name)}),Array.from(l.values()).filter(function(e){return e.isUse}).forEach(function(e){return r(e.name)}),t.delete(o),e.add(o),n.push(i.get(o))}};return i.forEach(function(e,t){a.get(t).post.forEach(function(e){a.get(e.name).pre.has(t)||a.get(e.name).pre.set(t,{name:t,isUse:!1})})}),i.forEach(function(e,t){r(t)}),n=n.filter(function(e){return e})},addPlugins:function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;l(a)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}},clear:function(){i.clear(),a.clear()},isPluginExists:function(e){return i.has(e)}},{run:function(e){var t=o(e).runtimeContext,n=t.hooks.modifyRuntimeConfig.call(t.config).filter(function(e){return!!e});return t.config=d.T.apply(void 0,[{}].concat((0,c._)(n))),{runtimeContext:t}}}),y=n(12402),x=n(99613);function w(e,t){e&&Object.keys(e).forEach(function(n){var r=e[n];if("function"==typeof r){var o,i="beforeRender"===(o=n)?"onBeforeRender":o;t[i]&&("beforeRender"===n?t[i]((0,y._)(function(){var e,t,n,o=arguments;return(0,x.Jh)(this,function(i){switch(i.label){case 0:for(t=Array(e=o.length),n=0;n<e;n++)t[n]=o[n];return[4,r.apply(void 0,(0,c._)(t))];case 1:return i.sent(),[2]}})})):t[i](function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.apply(void 0,(0,c._)(t))}))}})}var _=n(62641);function b(e,t){var n=(t||{}).plugins,r=g.run({plugins:[{name:"@modern-js/runtime-plugin-compat",_registryApi:function(e){return{useRuntimeConfigContext:function(){return e()._internalContext.config},useHookRunners:function(){var t,n;return t=e()._internalContext.hooks,{beforeRender:(n=(0,y._)(function(e){return(0,x.Jh)(this,function(n){return[2,t.onBeforeRender.call(e)]})}),function(e){return n.apply(this,arguments)}),wrapRoot:function(e){return t.wrapRoot.call(e)},pickContext:function(e){return t.pickContext.call(e)},modifyRuntimeConfig:function(e){return t.modifyRuntimeConfig.call(e)}}}}}}].concat((0,c._)(e),(0,c._)(void 0===n?[]:n)),config:t||{},handleSetupResult:w}).runtimeContext;return(0,_.hb)(r),r}function j(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return d.T.apply(void 0,[{},e].concat((0,c._)(n)))}},62192:function(e,t,n){n.d(t,{s:()=>a});var r=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var n=t[t.length-1];if(n)try{return JSON.parse((null==n?void 0:n.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}},o=n(24348),i=n(62641);function a(e){var t=e||(0,i.FM)();return"undefined"!=typeof window&&"nodejs"!==window.name&&(window._SSR_DATA=window._SSR_DATA||r(o.pc),window._ROUTER_DATA=window._ROUTER_DATA||r(o.Ni)),(0,i.Uk)().hooks.wrapRoot.call(t)}},30624:function(e,t,n){n.d(t,{NA:()=>T});var r=n(49987),o=n(65),i=n(77360),a=n(86834),u=n(27293),l=n(43866),s=n(81784);function c(e){return"/"+e.replace(/^\/+|\/+$/g,"")}var d=n(5872),f=n(24644),h=n(62641),p=n(22589),v=(0,p.y2)(),m=(0,p.y2)(),g=n(17936),y=n(50102),x=n(12402),w=n(545),_=n(99613);function b(e){var t=.001*new Date().getTime(),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]}n(63415);var j=function(e){var t=(0,y._)(b(e),2);return 1e3*t[0]+t[1]/1e6},R=function(){var e=b();return function(){return j(e)}},E=function(e){var t,n,i,u,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=e.children,f=e.index,h=e.id,p=e.component,v=e.isRoot,m=e.lazyImport,g=e.config,y=e.handle,b=s.parent,j=s.props,C={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:(i=(t=e).loader)?(n=(0,x._)(function(e){var n,r,o;return(0,_.Jh)(this,function(o){switch(o.label){case 0:return"function"==typeof t.lazyImport&&t.lazyImport(),n=R(),[4,i(e)];case 1:return r=o.sent(),n(),"undefined"==typeof document&&console.error("You should not get async storage in browser"),[2,r]}})}),function(e){return n.apply(this,arguments)}):function(){return"function"==typeof t.lazyImport&&t.lazyImport(),null},action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,r._)({},y,(void 0===g?"undefined":(0,w._)(g))==="object"?null==g?void 0:g.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var A=(0,a.jsx)(e.error,{});C.errorElement=A}if(p){if((null==b?void 0:b.loading)&&m){var S=b.loading;u=k(p)?(0,a.jsx)(p,{fallback:(0,a.jsx)(S,{})}):(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)(S,{}),children:(0,a.jsx)(p,{})})}else u=k(p)&&m?(0,a.jsx)(p,{}):v?(0,a.jsx)(p,(0,r._)({},void 0===j?{}:j)):m?(0,a.jsx)(d.Suspense,{fallback:null,children:(0,a.jsx)(p,{})}):(0,a.jsx)(p,{})}else e.loading=null==b?void 0:b.loading,C.element=(0,a.jsx)(l.j3,{});u&&(C.element=u);var P=null==c?void 0:c.map(function(t){return E(t,{parent:e})});return f?(0,a.jsx)(l.AW,(0,o._)((0,r._)({},C),{index:!0}),h):(0,a.jsx)(l.AW,(0,o._)((0,r._)({},C),{index:!1,children:P}),h)};function k(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}var C=n(38933),A=function(){return(0,a.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})};function S(){return null}var P=function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=RegExp("".concat("/","{1,}"),"g");return(e=n.join("/").replace(o,"/"))&&"string"==typeof e&&(e.startsWith(".")&&(e=e.slice(1)),e.startsWith("/")||(e="/".concat(e)),e.endsWith("/")&&"/"!==e&&(e=e.slice(0,e.length-1))),e},N={routes:[]},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"@modern-js/plugin-router",registryHooks:{modifyRoutes:v,onBeforeCreateRoutes:m},setup:function(t){var n=[];t.onBeforeRender(function(t){if(window._SSR_DATA&&e.unstable_reloadOnURLMismatch){var r,o=t.ssrContext,i=c(window.location.pathname),a=(null==o?void 0:null===(r=o.request)||void 0===r?void 0:r.pathname)&&c(o.request.pathname);a&&a!==i&&(console.error("The initial URL ".concat(a," and the URL ").concat(i," to be hydrated do not match, reload.")),window.location.reload())}t.router={useMatches:l.SN,useLocation:l.TH,useHref:l.oQ},Object.defineProperty(t,"routes",{get:function(){return n}})}),t.wrapRoot(function(c){var p,v,m=t.getRuntimeConfig(),x=(0,u.T)(m.router||{},e),w=x.serverBase,_=void 0===w?[]:w,b=x.supportHtml5History,j=void 0===b||b,R=x.basename,k=void 0===R?"":R,T=x.routesConfig,M=x.createRoutes,D=x.future;return(N=(0,r._)({routes:(0,h.jn)(),globalApp:(0,h.CH)()},T)).routes||M?(p=function(e){var u,c=(0,d.useContext)(f.JO),h=(u=location.pathname,_.find(function(e){return 0===u.search(e)})||"/").replace(/^\/*/,"/"),p="/"===h?P(h,c._internalRouterBaseName||k):h,v=window._ROUTER_DATA,m=c.unstable_getBlockNavState;return(0,d.useMemo)(function(){(null==v?void 0:v.errors)&&(v=(0,o._)((0,r._)({},v),{errors:function(e){if(!e)return null;var t=Object.entries(e),n={},r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var l=(0,y._)(a.value,2),s=l[0],c=l[1];if(c&&"RouteErrorResponse"===c.__type)n[s]=new C.OF(c.status,c.statusText,c.data,!0===c.internal);else if(c&&"Error"===c.__type){var d=Error(c.message);d.stack=c.stack,n[s]=d}else n[s]=c}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(v.errors)})),n=M?M():(0,l.i7)(function(e){var t=e.routesConfig,n=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,u=t.globalApp;return i?function(e,t){var n=t.globalApp,o=t.ssrMode,i=t.props,u=function(e){var t=e.Component,o=(0,g._)(e,["Component"]);return n?(0,a.jsx)(n,(0,r._)({Component:t},o)):(0,a.jsx)(t,(0,r._)({},o))},s=[],c=!0,d=!1,f=void 0;try{for(var h,p=e[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var v=h.value;if("nested"===v.type){var m=E(v,{DeferredDataComponent:"stream"===o?S:void 0,props:i});s.push(m)}else{var y=(0,a.jsx)(l.AW,{path:v.path,element:(0,a.jsx)(u,{Component:v.component})},v.path);s.push(y)}}}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}return s.push((0,a.jsx)(l.AW,{path:"*",element:(0,a.jsx)(A,{})},"*")),s}(i,{globalApp:u,ssrMode:o,props:n}):null}({routesConfig:N,props:e})),n=t.getHooks().modifyRoutes.call(n);var u=j?(0,s.aj)(n,{basename:p,hydrationData:v}):(0,s.cP)(n,{basename:p,hydrationData:v}),c=u.subscribe;return u.subscribe=function(e){return c(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(m&&m()))return e.apply(void 0,(0,i._)(n))})},u},[N,e,p,v,m])},v=function(){return null},function(e){var t=p(e),n=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.pG,{router:t,future:D}),(0,a.jsx)(v,{}),(0,a.jsx)(v,{})]});return c?(0,a.jsx)(c,{children:n}):n}):c})}}}},83366:function(e,t,n){n.d(t,{RC:()=>o,UC:()=>a,u3:()=>i});var r=n(63415),o=function(e){return function(t){var n,o,i=null===(o=window)||void 0===o?void 0:null===(n=o[r.u$])||void 0===n?void 0:n[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"undefined"!=typeof document&&(window[r.u$][t]=e),e},a=function(e){return console.error(e),null}},22589:function(e,t,n){n.d(t,{Ol:()=>a,rG:()=>l,y2:()=>u});var r=n(12402),o=n(77360),i=n(99613);function a(){var e,t=[];return{tap:function(e){t.push(e)},call:(e=(0,r._)(function(){var e,n,r,a,u,l,s,c,d,f,h,p,v,m,g=arguments;return(0,i.Jh)(this,function(i){switch(i.label){case 0:for(n=Array(e=g.length),r=0;r<e;r++)n[r]=g[r];a=!1,l=function(e){a=!0,u=e},s=!0,c=!1,d=void 0,i.label=1;case 1:i.trys.push([1,6,7,8]),f=t[Symbol.iterator](),i.label=2;case 2:if((s=(h=f.next()).done)||(p=h.value,a))return[3,5];return[4,p.apply(void 0,(0,o._)(n).concat([l]))];case 3:void 0!==(v=i.sent())&&(n[0]=v),i.label=4;case 4:return s=!0,[3,2];case 5:return[3,8];case 6:return m=i.sent(),c=!0,d=m,[3,8];case 7:try{s||null==f.return||f.return()}finally{if(c)throw d}return[7];case 8:return[2,a?u:n[0]||[]]}})}),function(){return e.apply(this,arguments)})}}function u(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=!0,a=!1,u=void 0;try{for(var l,s=e[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var c=l.value.apply(void 0,(0,o._)(n));void 0!==c&&(n[0]=c)}}catch(e){a=!0,u=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw u}}return n[0]}}}function l(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=[],i=!0,a=!1,u=void 0;try{for(var l,s=e[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var c=(0,l.value)(n);void 0!==c&&o.push(c)}}catch(e){a=!0,u=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw u}}return o}}}},27293:function(e,t,n){n.d(t,{T:()=>function e(t){for(var n=arguments.length,i=Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];if(!i.length)return t;var l=i.shift();if(a(t)&&a(l))for(var s in l)a(l[s])?(t[s]||Object.assign(t,(0,r._)({},s,{})),e(t[s],l[s])):Object.assign(t,(0,r._)({},s,l[s]));return e.apply(void 0,[t].concat((0,o._)(i)))}});var r=n(81855),o=n(77360),i=n(545);function a(e){return e&&(void 0===e?"undefined":(0,i._)(e))==="object"&&!Array.isArray(e)}},63415:function(e,t,n){n.d(t,{m5:()=>i,p9:()=>r,u$:()=>o});var r="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},26678:function(e,t,n){n.d(t,{M:()=>l});var r=n(86834),o=n(43866),i=n(49133),a=n(5872);let u=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,r.jsxs)(i.xu,{p:"4",children:[(0,r.jsx)(i.X6,{as:"h4",mb:"4",children:(0,r.jsx)(i.xv,{as:"span",children:n})}),(0,r.jsx)(i.Kx,{disabled:!0,style:{height:"50vh"},value:o})]})},l=()=>{let e=(0,o.lk)();return(0,a.useEffect)(()=>{console.error(e)},[e]),(0,r.jsx)(u,{resetErrorBoundary:()=>null,error:e})}},41294:function(e,t,n){n.d(t,{l:()=>u});var r=n(86834),o=n(43866),i=n(38933),a=n(49133);let u=e=>{let{items:t}=e,n=(0,o.s0)(),u=(0,o.TH)(),l=t.find(e=>(0,i.LX)(e.to,u.pathname));return(0,r.jsxs)(a.Ph.fC,{size:"1",value:null==l?void 0:l.to,onValueChange:n,children:[(0,r.jsx)(a.Ph.xz,{}),(0,r.jsx)(a.Ph.VY,{position:"popper",children:t.map(e=>{let{title:t,to:n}=e;return(0,r.jsx)(a.Ph.ck,{value:n,children:t},n)})})]})}},95197:function(e,t,n){n.d(t,{T:()=>k,k:()=>C});var r=n(49987),o=n(65),i=n(86834),a=n(29134),u=n(10487),l=n(65872);class s extends l.gl{static use(){return u.RUNTIME_GLOBALS in window||(window[u.RUNTIME_GLOBALS]=new s),window[u.RUNTIME_GLOBALS]}}async function c(e){s.use();let t=e.map(e=>new Promise((t,n)=>{let r=document.createElement("script");r.onload=()=>t(),r.onerror=e=>n(e),r.src=e,document.head.appendChild(r)}));await Promise.all(t)}var d=n(64542),f=n(7459),h=n(52493),p=n.n(h),v=n(3570),m=n(13190),g=n(4390),y=n(55058),x=n(41839);let w=async()=>{let e=await u.MessagePortChannel.link(window.parent,"channel:connect:client"),t=(0,l.Hu)();return{remote:(0,f.Fu)({async pullUp(e){await t.callHook("pullUp",e)}},(0,o._)((0,r._)({},e.handlers),{timeout:8e3})),hooks:t}};class _ extends Error{constructor(e){super(),this.name="InitializeManifestError",this.cause=e,this.message="Failed to initialize manifest of DevTools"}}let b=async e=>{let t=await fetch(e);try{let e=await t.text();return JSON.parse(e,(0,u.reviver)())}catch(e){throw new _(e)}},j=async(e,t)=>{let n=new URL(e,location.href),i=new window.WebSocket(n),a=await u.WebSocketChannel.link(i),s=(0,l.Hu)();return{remote:(0,f.Fu)({async refresh(){location.reload()},async applyStateOperations(e){for(let n of e)(0,u.applyOperation)(t,n)}},(0,o._)((0,r._)({},a.handlers),{timeout:5e3})),hooks:s,url:n}},R=async()=>{let e=s.use(),t=(0,x.sj)([{name:"overview",title:"Overview",icon:(0,i.jsx)(m.VRM,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,i.jsx)(m.pZq,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,i.jsx)(m.OiH,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,i.jsx)(g.Ueg,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,i.jsx)(m.sin,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,i.jsx)(m.KBe,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,i.jsx)(g.BwS,{}),view:{type:"builtin",src:"/doctor"}},{name:"storage",title:"Storage",icon:(0,i.jsx)(m.RMk,{}),view:{type:"builtin",src:"/storage/preset"}}]);for(let n of(await e.callHook("tab:list",t),t))"object"==typeof n.icon&&(n.icon=(0,x.iH)(n.icon)),"external"===n.view.type&&(n.view.component=(0,x.iH)(n.view.component));return t},E=async e=>{let t=new d.S,n=t.bindRemote(e.remote,"sendReactDevtoolsData");await e.remote.activateReactDevtools();let r=(0,v.createBridge)(window.parent,t);r.shutdown=()=>null;let o=(0,v.createStore)(r),i=(0,v.initialize)(window.parent,{bridge:r,store:o});return{store:o,bridge:r,wallAgent:t,unreg:n,Renderer:i}},k=(async e=>{var t;let n=(0,y.mB)((0,y.Lk)(e).search),i=null!==(t=p().castArray(n.src)[0])&&void 0!==t?t:(0,y.As)(e,"manifest"),a=w(),u=b(i),l=u.then(e=>e.websocket?j(e.websocket,(0,x.sj)(e)):null),s=u.then(e=>c(e.context.def.plugins)).then(R),d=a.then(E),[f,h,v,m,g]=await Promise.all([a,u,l,s,d]);return(0,x.sj)((0,o._)((0,r._)({},h),{version:"2.65.2",tabs:m,server:v?(0,x.iH)(v):null,mountPoint:(0,x.iH)(f),react:{devtools:{store:(0,x.iH)(g.store),bridge:(0,x.iH)(g.bridge),wallAgent:(0,x.iH)(g.wallAgent),unreg:(0,x.iH)(g.unreg),Renderer:(0,x.iH)(g.Renderer)}}}))})(location.href),C=()=>(0,a.D$)(k)},65507:function(e,t,n){n.d(t,{Z:()=>o});var r=n(38933);let o=e=>{let{params:t}=e;return t.toolkit&&t.type&&["framework","builder","bundler"].includes(t.toolkit)?["resolved","transformed"].includes(t.type)?null:(0,r.uX)("/404"):(0,r.uX)("/404")}},6032:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},16127:function(e,t,n){n.r(t),n.d(t,{handle:()=>d});var r=n(86834),o=n(43866),i=n(49133),a=n(52493),u=n.n(a);let l=e=>{let{name:t,describe:n}=e,o=n.map(e=>(0,r.jsx)(i.xv,{style:{display:"block"},children:e},e));return(0,r.jsx)(i.u,{className:"tooltip-i9AhnB",side:"right",content:o,children:(0,r.jsx)(i.Ph.ck,{value:t,children:(0,r.jsx)(i.xu,{children:u().startCase(t)})})},t)},s=[{name:"framework",describe:["Framework config is a superset of Builder config, ","extending it with additional configurations that ","include server-side capabilities and so on."]},{name:"builder",describe:["Builder provides wrapped building capabilities for scheduling Bundler, ","as well as other plugins and tools."]},{name:"bundler",describe:["Bundler is typically a low-level build tool like webpack or Rspack, ","and their configuration options differ significantly from higher-level tools."]}],c=[{name:"resolved",describe:["The configuration content passed by the user or superior tools,","usually exposed to the plugin API for modification."]},{name:"transformed",describe:["The modified and frozen configuration objects,","typically exposed to the plugin API for consumption."]}],d={breadcrumb:[{title:"Config"},{title:(0,r.jsx)(()=>{let e=(0,o.TH)(),t=(0,o.s0)(),[n,a]=e.pathname.split("/").slice(2);return(0,r.jsxs)(i.Ph.fC,{size:"1",value:n,onValueChange:e=>{t("/config/".concat(e,"/").concat(a))},children:[(0,r.jsx)(i.Ph.xz,{children:n}),(0,r.jsx)(i.Ph.VY,{children:s.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(l,{name:t,describe:n},t)})})]})},{})},{title:(0,r.jsx)(()=>{let e=(0,o.TH)(),t=(0,o.s0)(),[n,a]=e.pathname.split("/").slice(2);return(0,r.jsxs)(i.Ph.fC,{size:"1",value:a,onValueChange:e=>{t("/config/".concat(n,"/").concat(e))},children:[(0,r.jsx)(i.Ph.xz,{children:a}),(0,r.jsx)(i.Ph.VY,{children:c.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(l,{name:t,describe:n},t)})})]})},{})}]}},41434:function(e,t,n){n.d(t,{Z:()=>i});var r=n(38933),o=n(55058);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./builder/transformed");return(0,r.uX)(n)}},85512:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},12323:function(e,t,n){n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(41294);let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.l,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},45614:function(e,t,n){n.d(t,{Z:()=>i});var r=n(38933),o=n(55058);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./builder");return(0,r.uX)(n)}},57595:function(e,t,n){n.d(t,{Z:()=>h});var r=n(86834),o=n(26678),i=n(49133),a=n(13190),u=n(8818);let l=e=>{let{title:t,children:n}=e;return(0,r.jsxs)(i.kC,{className:u.Z.container,mt:"9",mx:"auto",gap:"2",children:[(0,r.jsx)(i.kC,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(a.fd$,{size:"36"})}),(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(i.kC,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(i.X6,{children:t})}),(0,r.jsx)(i.xu,{className:u.Z.children,children:n})]})]})};var s=n(95197),c=n(43866),d=n(55058),f=n(20610);let h=()=>{let e=(0,c.lk)(),t=(0,s.k)(),{def:n}=(0,f.R)(t).context;if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,r.jsx)(o.M,{});{let e=(0,d.Lk)(n.doctor.quickStart).host,t=(0,r.jsxs)(i.rU,{href:n.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,r.jsx)(i.xu,{width:"100%",children:(0,r.jsxs)(l,{title:"Doctor is not working",children:["Visit the website of ",t," to learn more."]})})}}},58326:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Doctor"}}},56089:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},65825:function(e,t,n){n.r(t),n.d(t,{handle:()=>u});var r=n(95197),o=n(29134),i=n(52493),a=n.n(i);let u={breadcrumb(e){var t;let n;let{pathname:i}=e.location,u=null===(t=i.match(/^\/external\/(\w+)/))||void 0===t?void 0:t[1],{tabs:l}=(0,o.D$)(r.T),s=a().find(l,{name:u});return s?{title:n}=s:n=u?a().startCase(u):"External",{title:n,pathname:i}}}},82557:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},65451:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Header Modifier"}}},47716:function(e,t,n){n.d(t,{_:()=>i});var r=n(38933),o=n(96575);let i=async()=>{let e=await o.ok.service;return(0,r.uX)(e.rules?"./editor":"./welcome")}},96575:function(e,t,n){n.d(t,{gM:()=>a,m:()=>u,ok:()=>s});var r=n(52493),o=n.n(r),i=n(41839);let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),n="".concat("/sw-proxy.js","?rules=").concat(t),r=await navigator.serviceWorker.register(n);return await navigator.serviceWorker.ready,s.service=await l(),r},u=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let n of e)t=t&&await n.unregister();return s.service=Promise.resolve({}),t},l=async()=>{for(let e of o().times(3))try{let e=AbortSignal.timeout(300),t=await fetch("/__devtools/service/status",{signal:e});return await t.json()}catch(e){}return{}},s=(0,i.sj)({service:l()})},1920:function(e,t,n){n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(13190);let i={breadcrumb:{title:(0,r.jsx)(o.Zn9,{}),pathname:"/overview"}}},57142:function(e,t,n){n.r(t),n.d(t,{default:()=>W});var r=n(86834),o=n(49987),i=n(65),a=n(43866),u=n(66671),l=n(49133),s=n(52493),c=n.n(s),d=n(66630),f=n(17936),h=n(12402),p=n(50102),v=n(99613),m=n(38933),g=n(81784),y=n(5872),x=n(24644);function w(e,t){return function(n){null==e||e(n),n.defaultPrevented||t(n)}}var _=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function b(){return(b=(0,h._)(function(e,t){var r,o;return(0,v.Jh)(this,function(i){switch(i.label){case 0:if(!(r=e.id)||!t[r]||!(o=t[r].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===n.e||void 0===n.e?void 0:n.e(e)}))];case 2:return i.sent(),[3,4];case 3:return console.error(i.sent()),[3,4];case 4:return[2]}})})).apply(this,arguments)}var j=function(e,t){var n=window.location,r=n.protocol,o=n.host,i=new URL(e,"".concat(r,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},R=function(e,t,n){var o,i=e.id;return o=j("/"===n?t:"".concat(n).concat(t),i).toString(),(0,r.jsx)("link",{rel:"prefetch",as:"fetch",href:o},o)},E=function(e){var t=e.path,n=t.pathname,o=(0,y.useContext)(x.JO),i=o.routeManifest,a=o.routes,u=(i||{}).routeAssets,l=Array.isArray(a)?(0,m.fp)(a,n):[];return(Array.isArray(l)&&u&&(null==l||l.forEach(function(e){return function(e,t){return b.apply(this,arguments)}(e.route,u)})),window._SSR_DATA)?(0,r.jsx)(k,{matches:l,path:t,routeManifest:i}):null},k=function(e){var t=e.matches,n=e.path,o=e.routeManifest,i=n.pathname,u=n.search,l=n.hash,s=(0,a.SN)(),c=(0,a.oQ)("/"),d=(0,y.useMemo)(function(){return null==t?void 0:t.filter(function(e,t){if(!e.route.loader||"function"!=typeof e.route.loader||0===e.route.loader.length)return!1;if(e.route.shouldRevalidate){var n,r=new URL(location.pathname+location.search+location.hash,window.origin),o=new URL(i+u+l,window.origin),a=e.route.shouldRevalidate({currentUrl:r,currentParams:(null===(n=s[0])||void 0===n?void 0:n.params)||{},nextUrl:o,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}var c=s[t];return!!(!c||c.id!==e.route.id||c.pathname!==e.pathname||c.pathname.endsWith("*")&&c.params["*"]!==e.params["*"])}).map(function(e){return R(e.route,i,c)})},[t,i,o]);return(0,r.jsx)(r.Fragment,{children:d})},C=function(e){return y.forwardRef(function(t,i){var u,l,s,c,d,h,v,m,g,x,b,j,R,k,C=t.to,A=t.prefetch,S=(0,f._)(t,["to","prefetch"]),P="string"==typeof C&&_.test(C),N=(0,p._)((u=void 0===A?"none":A,s=(l=(0,p._)(y.useState(!1),2))[0],c=l[1],h=(d=(0,p._)(y.useState(!1),2))[0],v=d[1],m=S.onFocus,g=S.onBlur,x=S.onMouseEnter,b=S.onMouseLeave,j=S.onTouchStart,y.useEffect(function(){"render"===u&&v(!0)},[u]),R=function(){"intent"===u&&c(!0)},k=function(){"intent"===u&&(c(!1),v(!1))},y.useEffect(function(){if(s){var e=setTimeout(function(){v(!0)},100);return function(){clearTimeout(e)}}},[s]),[h,{onFocus:w(m,R),onBlur:w(g,k),onMouseEnter:w(x,R),onMouseLeave:w(b,k),onTouchStart:w(j,R)}]),2),T=N[0],M=N[1],D=(0,a.WU)(C);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e,(0,o._)({ref:i,to:C},S,M)),T&&n.e&&!P?(0,r.jsx)(E,{path:D}):null]})})},A=C(g.rU);A.displayName="Link";var S=C(g.OL);S.displayName="NavLink";let P=e=>{var{to:t,children:n}=e,a=(0,f._)(e,["to","children"]);return(0,r.jsx)(l.rU,(0,i._)((0,o._)({},a),{asChild:!0,children:(0,r.jsx)(A,{to:t,children:n})}))},N=e=>{let{location:t,handle:n}=e;if(!c().isObject(n)&&c().isNil(n))return[];let{breadcrumb:r}=n,o=[];c().isFunction(r)?o.push(...c().castArray(r({location:t}))):o.push(...c().castArray(r));let i=[];for(let t of o){if(!c().isObject(t)||c().isNull(t)||!("title"in t))continue;let n={id:e.id,title:t.title,pathname:e.pathname};"pathname"in t&&c().isString(t.pathname)&&(n.pathname=t.pathname),i.push(n)}return i},T=e=>{let t=[],n=(0,a.SN)(),s=(0,a.TH)(),c=[];for(let e of n)c.push(...N((0,i._)((0,o._)({},e),{location:s})));for(let[e,n]of(s.state&&"breadcrumb"in s.state&&c.push(...N({handle:s.state.breadcrumb,pathname:s.pathname,id:"external/".concat(s.pathname),location:s})),Object.entries(c))){let o=[n.id,n.pathname,e];t.push((0,r.jsx)(P,{color:"gray",size:"2",to:n.pathname,children:n.title},o.join("_"))),n!==c.at(-1)&&(o.push("#connector"),t.push((0,r.jsx)(u.XCv,{className:d.Z.connector},o.join("_"))))}return(0,r.jsx)(l.kC,(0,i._)((0,o._)({align:"center",height:"var(--space-8)",gap:"1",px:"4"},e),{children:t}))};var M=n(95197);let D="";M.T.then(e=>{let{mountPoint:t}=e;t.hooks.hookOnce("pullUp",async e=>{D=e})});let O=()=>{let e=(0,a.s0)(),{mountPoint:t}=(0,M.k)();return(0,y.useEffect)(()=>{D&&e(D),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null};var L=n(97137);let H=e=>{var{children:t}=e,n=(0,f._)(e,["children"]);let[a]=(0,L.U)();return(0,y.useEffect)(()=>{document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(a)},[a]),(0,r.jsx)(l.Q2,(0,i._)((0,o._)({},n),{appearance:a,children:t}))};var U=n(74420),B=n(13190),I=n(20610);let J="tab-button-MtqLNp",z="tab-button-inner-KmlACp",F=e=>{let{tab:t}=e,n="";if("builtin"===t.view.type)n=t.view.src;else if("iframe"===t.view.type)n="/iframe/".concat(t.view.src);else if("external"===t.view.type)n="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,y.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(l.u,{content:t.title,side:"right",children:(0,r.jsx)(S,{to:n,className:J,children:(0,r.jsx)(l.kC,{justify:"center",align:"center",p:"1",className:z,children:(0,r.jsx)(l.xu,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:t.icon})})})})},Z=()=>{let{server:e}=(0,I.R)((0,M.k)());return(0,r.jsx)(l.u,{content:e?"Connected":"Disconnected",side:"right",children:(0,r.jsx)(l.xu,{className:J,children:(0,r.jsxs)(l.xu,{p:"1",position:"relative",className:z,children:[(0,r.jsx)(l.xu,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:(0,r.jsx)(B.Qa9,{})}),(0,r.jsx)(l.xu,{className:"online-indicator-E9Pryr","data-active":!!e})]})})})},q=()=>{let[e,t]=(0,L.U)();return(0,r.jsx)(l.u,{content:"Appearance",side:"right",children:(0,r.jsx)(l.xu,{className:J,onClick:()=>{t("light"===e?"dark":"light")},children:(0,r.jsx)(l.kC,{justify:"center",align:"center",p:"1",className:z,children:(0,r.jsx)(l.xu,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:"dark"===e?(0,r.jsx)(B.Fxr,{}):(0,r.jsx)(B.YGJ,{})})})})})},V=()=>{let{tabs:e}=(0,I.R)((0,M.k)());return(0,r.jsxs)(l.kC,{direction:"column",flexShrink:"0",className:"navigator-O_AEE3",children:[e.map(e=>(0,r.jsx)(F,{tab:e},e.name)),(0,r.jsx)(l.xu,{flexGrow:"1"}),(0,r.jsx)(Z,{}),(0,r.jsx)(q,{})]})},W=()=>(0,r.jsx)(H,{className:"wrapper-YAIt0k",accentColor:"blue",panelBackground:"solid",children:(0,r.jsxs)(U.zt,{swipeDirection:"up",children:[(0,r.jsx)(V,{}),(0,r.jsxs)(l.xu,{width:"100%",position:"relative",pt:"4",children:[(0,r.jsx)(l.xu,{width:"100%",height:"100%",position:"relative",children:(0,r.jsx)(a.j3,{})}),(0,r.jsx)(T,{className:"breadcrumbs-LVvAXj",height:"2.5rem",position:"absolute",top:"0",left:"0",right:"0"})]}),(0,r.jsx)(O,{})]})})},64931:function(e,t,n){n.d(t,{Z:()=>u});var r=n(86834),o=n(9768),i=n(95197),a=n(12564);let u=()=>{let{mountPoint:e}=(0,i.k)();return(0,a.Z)(async()=>{e.remote.onFinishRender()}),(0,r.jsx)(o.g,{className:"loading-gmTvLE"})}},79273:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},34025:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Overview"}}},83881:function(e,t,n){n.d(t,{_:()=>i});var r=n(38933),o=n(55058);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./overview");return(0,r.uX)(n)}},90545:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},42509:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Pages"}}},47152:function(e,t,n){n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(41294);let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.l,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},87010:function(e,t,n){n.d(t,{Z:()=>r});let r=n(26678).M},21690:function(e,t,n){n.d(t,{Z:()=>i});var r=n(38933),o=n(55058);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./components");return(0,r.uX)(n)}},86318:function(e,t,n){n.d(t,{_:()=>u});var r=n(95197),o=n(38933),i=n(52493),a=n.n(i);let u=async e=>{let{params:t}=e,{id:n}=t;if(!n)throw TypeError("storage preset id is required");let{context:i}=await r.T,{storagePresets:u}=await Promise.resolve(i),l=a().find(u,{id:n});return l||(0,o.uX)("/storage/preset")}},26823:function(e,t,n){n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:[{title:"Storage"},{title:"Preset"}]}},62739:function(e,t,n){n.d(t,{_:()=>o,a:()=>i});var r=n(33049);let o=async e=>await (0,r.l5)(),i=()=>null},34772:function(e,t,n){n.d(t,{_:()=>o});var r=n(33049);let o=async e=>await (0,r.l5)()},33049:function(e,t,n){n.d(t,{SR:()=>l,dR:()=>a,f:()=>s,l5:()=>c,xq:()=>u});var r=n(95197),o=n(52493),i=n.n(o);let a=["cookie","localStorage","sessionStorage"],u={cookie:"yellow",localStorage:"green",sessionStorage:"blue"},l=(e,t)=>i().map(e[t],(n,r)=>{let o=[e.id,t,r].join("//");return{key:r,value:n,type:t,id:o}}),s=e=>{let t=[];for(let n of a)t.push(...l(e,n));return t},c=async e=>{let{mountPoint:t}=await r.T,[n,o,i]=await Promise.all([t.remote.cookies(null==e?void 0:e.cookie),t.remote.localStorage(null==e?void 0:e.localStorage),t.remote.sessionStorage(null==e?void 0:e.sessionStorage)]);return{cookie:n,localStorage:o,sessionStorage:i}}},29134:function(e,t,n){n.d(t,{D$:()=>o}),n(86834),n(5872),n(52493);let r=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(r.has(e)){let t=r.get(e);if(t instanceof Error)throw t;if(!(t instanceof Promise))return t;throw t}throw r.set(e,e),e.then(t=>r.set(e,t)).catch(t=>r.set(e,t)),e}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["118","126","130","567","58","690","738"],function(){return t("5256"),t("99082"),t("24520"),t("28651"),t("58971")}),e.O()}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{66630:function(n,t,e){e.d(t,{Z:()=>o});let o={link:"link-znMYnO",connector:"connector-BqtwBd"}},67358:function(n,t,e){e.d(t,{Z:()=>o});let o={card:"card-If0911"}},30446:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-WHe0d3"}},50460:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-tsQk3U",fab:"fab-_shO90",slideInFromRight:"slideInFromRight-cmflGC",logo:"logo-nXXNIB"}},12636:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-tcM8fB","close-button":"close-button-weoXpd",closeButton:"close-button-weoXpd",frame:"frame-PSYQgj",backdrop:"backdrop-SWoFLh"}},8818:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-uSZ85N",children:"children-cVMy6R"}},13993:function(n,t,e){e.d(t,{Z:()=>o});let o={loading:"loading-HrjYdW",rotate:"rotate-CPIjfB"}},82079:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-COzu4H"}},79248:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-SkRv4t"}},88625:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-e3dQes"}},20349:function(n,t,e){e.d(t,{Z:()=>o});let o={"input-pair":"input-pair-rQmmCj",inputPair:"input-pair-rQmmCj",actions:"actions-AIkunB"}},72972:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-e74VUa",trigger:"trigger-THjT7j",content:"content-Qso8ca",slideDown:"slideDown-Z9IIi_",slideUp:"slideUp-H_SR0p","url-text":"url-text-OqB5_M",urlText:"url-text-OqB5_M",mark:"mark-cUxPxy"}},95328:function(n,t,e){e.d(t,{Z:()=>o});let o={"endpoint-tag":"endpoint-tag-y0SEjj",endpointTag:"endpoint-tag-y0SEjj","shy-link":"shy-link-Xazm8H",shyLink:"shy-link-Xazm8H","endpoint-container":"endpoint-container-XVJeZy",endpointContainer:"endpoint-container-XVJeZy"}},85721:function(n,t,e){e.d(t,{Z:()=>o});let o={stats:"stats-cb58Fz"}},79778:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-dWGOkz",slideIn:"slideIn-AQnKGk",hide:"hide-LUv_Hv",swipeOut:"swipeOut-ZTbSGG",viewport:"viewport-Owdzo8",close:"close-i8MeRu"}}}]);