@rsdoctor/client 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/diff.html +1 -1
- package/dist/index.html +1 -1
- package/dist/resource/css/{159.83b51c66.css → 538.99c13fd4.css} +1 -1
- package/dist/resource/js/375.29108e01.js +2 -0
- package/dist/resource/js/{610.d58c44f0.js → 510.e39f3818.js} +1 -1
- package/dist/resource/js/538.26a222ec.js +112 -0
- package/dist/resource/js/{246.d2c7c8d3.js → 611.00341793.js} +4 -4
- package/dist/resource/js/diff.d7e8e4b5.js +57 -0
- package/dist/resource/js/index.2c346ce0.js +91 -0
- package/dist/resource/js/rc-0.5662d149.js +1 -0
- package/dist/resource/js/{react.3dfe4388.js → react.419e5c4a.js} +1 -1
- package/dist/resource/js/vender.08a5ec82.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/dist/resource/js/159.bca660e6.js +0 -112
- package/dist/resource/js/384.d4e59acc.js +0 -2
- package/dist/resource/js/diff.f47d35f1.js +0 -57
- package/dist/resource/js/index.fdf47698.js +0 -91
- package/dist/resource/js/rc-0.bd9999ac.js +0 -1
- package/dist/resource/js/vender.964dfc5c.js +0 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
(()=>{"use strict";var e,t,r,s,i,n,l={80273(e,t,r){var s=r(65723);r(92958);var i=r(44759);r(22155);var n=r(98685),l=r(41346),a=r(70738);function o(){let e=[{path:a._y.wE,element:(0,s.jsx)(a._y.YW,{})},{path:a.hK.wE,element:(0,s.jsx)(a.hK.YW,{})},{path:a.FO.wE,element:(0,s.jsx)(a.FO.YW,{})},{path:a.dn.wE,element:(0,s.jsx)(a.dn.YW,{})},{path:a.pI.wE,element:(0,s.jsx)(a.pI.YW,{})},{path:a.PR.wE,element:(0,s.jsx)(a.PR.YW,{})},{path:a.s0.wE,element:(0,s.jsx)(a.s0.BU,{})}].filter(e=>!!e);return(0,s.jsxs)(l.BV,{children:[(0,s.jsx)(l.qh,{path:"/",element:(0,s.jsx)(a.wm.YW,{})}),(0,s.jsx)(l.qh,{path:a.wm.wE,element:(0,s.jsx)(a.wm.YW,{})}),e.map(e=>(0,s.jsx)(l.qh,{path:e.path,element:e.element},e.path)),(0,s.jsx)(l.qh,{path:a.aD.wE,element:(0,s.jsx)(a.aD.YW,{})}),(0,s.jsx)(l.qh,{path:a.d9.wE,element:(0,s.jsx)(a.d9.YW,{})})]})}var d=r(22797),c=r(66020),h=r(58997);r(8071);let u=document.getElementById("root");h.createRoot(u).render((0,s.jsx)(()=>{let e=(0,n.useDetectIfCloudIdeEnv)();return(0,s.jsx)(d.A,{router:(0,s.jsx)(o,{}),renderFailState:()=>{let e=(0,n.getDemoUrl)();return e?(0,s.jsxs)(c.A.Text,{style:{fontSize:16},children:["or you can open the",(0,s.jsx)(c.A.Text,{strong:!0,style:{fontSize:"inherit"},children:(0,s.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"demo"})}),"to get started with the Rsdoctor."]}):null},extraContent:e&&(0,s.jsx)(i.A,{message:"Warning",description:(0,s.jsx)("a",{href:window.location.href.replace(/https/,"http"),children:`Please jump to:${window.location.href.replace(/https/,"http")}`}),type:"warning",showIcon:!0,closable:!0})})},{}));let p=document.createElement("link");p.setAttribute("type","image/x-icon"),p.setAttribute("rel","icon"),p.setAttribute("href","https://assets.rspack.rs/rsdoctor/rsdoctor-logo-960x960.png"),document.head.appendChild(p)},85817(e,t,r){r.d(t,{A:()=>i});var s=r(65723);r(22155);let i=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,s.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,s.jsx)("g",{clipPath:"url(#total-size_svg__a)",children:(0,s.jsx)("path",{fill:"#F2793D",d:"m2.5 5.77 5.026 2.534V13.5L2.5 11.011zm11-.016v5.23l-1.775.881-1.508.747-1.685.854V8.254zM8 2.5l4.902 2.472L7.999 7.45 3.04 4.961z"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"total-size_svg__a",children:(0,s.jsx)("path",{fill:"#fff",d:"M2 2h12v12H2z"})})})]})},99979(e,t,r){r.d(t,{A:()=>i});var s=r(65723);r(22155);let i=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:100,fill:"none",viewBox:"0 0 100 100",...e,children:[(0,s.jsx)("mask",{id:"vscode_svg__a",width:100,height:100,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse",children:(0,s.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M70.912 99.317a6.22 6.22 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.23 6.23 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.16 4.16 0 0 0-5.318.236l-5.506 5.009a4.17 4.17 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.17 4.17 0 0 0 .004 6.162l5.506 5.01a4.16 4.16 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.2 6.2 0 0 0 2.143 1.4M75.015 27.3 45.11 50l29.906 22.701z",clipRule:"evenodd"})}),(0,s.jsxs)("g",{mask:"url(#vscode_svg__a)",children:[(0,s.jsx)("path",{fill:"#0065A9",d:"M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.17 4.17 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63"}),(0,s.jsx)("g",{filter:"url(#vscode_svg__b)",children:(0,s.jsx)("path",{fill:"#007ACC",d:"m96.461 89.204-20.604 9.92a6.23 6.23 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.17 4.17 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63"})}),(0,s.jsx)("g",{filter:"url(#vscode_svg__c)",children:(0,s.jsx)("path",{fill:"#1F9CF0",d:"M75.858 99.126a6.23 6.23 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.23 6.23 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633z"})}),(0,s.jsx)("path",{fill:"url(#vscode_svg__d)",fillRule:"evenodd",d:"M70.851 99.317a6.22 6.22 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.23 6.23 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.16 4.16 0 0 0-5.317.236l-5.507 5.009a4.17 4.17 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.17 4.17 0 0 0 .004 6.162l5.507 5.009a4.16 4.16 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.2 6.2 0 0 0 2.143 1.4M74.954 27.3 45.048 50l29.906 22.701z",clipRule:"evenodd",opacity:.25,style:{mixBlendMode:"overlay"}})]}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("filter",{id:"vscode_svg__b",width:116.727,height:92.246,x:-8.394,y:15.829,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,s.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,s.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,s.jsx)("feOffset",{}),(0,s.jsx)("feGaussianBlur",{stdDeviation:4.167}),(0,s.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,s.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"overlay",result:"effect1_dropShadow"}),(0,s.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,s.jsxs)("filter",{id:"vscode_svg__c",width:47.917,height:116.151,x:60.417,y:-8.076,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,s.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,s.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,s.jsx)("feOffset",{}),(0,s.jsx)("feGaussianBlur",{stdDeviation:4.167}),(0,s.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,s.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"overlay",result:"effect1_dropShadow"}),(0,s.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,s.jsxs)("linearGradient",{id:"vscode_svg__d",x1:49.939,x2:49.939,y1:.258,y2:99.742,gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#fff"}),(0,s.jsx)("stop",{offset:1,stopColor:"#fff",stopOpacity:0})]})]})]})},78363(e,t,r){r.d(t,{EJ:()=>p.EJ,mn:()=>u});var s=r(65723),i=r(22155),n=r(91888),l=r(98685),a=r(34280),o=r(74579),d=r(10117),c=r(21376),h=r(35500);let u=(0,o.eN)({api:n.hp.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:r}=e,{errors:n,root:o}=r,{setBundleAlertsViewMode:u,viewMode:p,setViewMode:m}=(0,l.useViewMode)(),{t:f}=(0,l.useI18n)(),g=t?n.filter(t):n;return(0,i.useEffect)(()=>{(0,l.hasViewModeFromStorage)()||m({bundleAlerts:n.length>=5?d.nE.Group:d.nE.List},!1)},[]),(0,s.jsx)(h.Ay,{theme:{components:{Alert:{colorInfoBg:"#e6f4ff57",colorInfoBorder:"none"}},token:{padding:16,colorText:"rgba(0, 0, 0, 0.85)"}},children:(0,s.jsx)(a.J,{title:f("Bundle Alerts"),dataSource:g,extraData:{cwd:o,getPackageRelationContentComponent:e=>(0,s.jsx)(c.rU,{body:{id:e.data.id,target:e.package.target},cwd:o})},viewMode:p.bundleAlerts,setViewMode:u,cwd:o})})}});r(30942);var p=r(49084)},57568(e,t,r){r.d(t,{GB:()=>l,dK:()=>s,wx:()=>n});let s=["#F2793D","#F28B24","#F2A200","#F5CC00","#F5E000","#A3D900","#66CC00","#0AC419","#0AC496","#0AC7D1","#00A8E0","#1471F5","#4060FF","#7559FF","#884DFF","#A526FF","#BA39E5","#C700D9","#D900B5","#E50099","#E52E6B","#F24957","#30B2F2","#00BF70","#5959FF","#9F40FF","#528BFF"];var i,n=((i={})[i.Bootstrap=0]="Bootstrap",i[i.Compile=1]="Compile",i[i.Done=2]="Done",i[i.Minify=3]="Minify",i[i.Loader=4]="Loader",i[i.Normal=5]="Normal",i);let l=["#bda29a","#6F3FE1","#3966ed","#0a5f74","#3EBD7C","#F7A925","#ca8622","#749f83","#6e7074"]},99704(e,t,r){r.d(t,{a:()=>i});var s,i=((s={}).BEGIN="B",s.END="E",s.COMPLETE="X",s.INSTANT="I",s.MARK="R",s)},54132(e,t,r){r.d(t,{Bq:()=>h,QR:()=>p,Wy:()=>f,iv:()=>u,kr:()=>m});var s=r(40799),i=r(18814),n=r.n(i),l=r(6883),a=r(86084),o=r(98685);r(91419);var d=r(99704),c=r(22155);function h(e){return`
|
|
2
|
+
<div class="loader-tooltip-container">
|
|
3
|
+
<div class="loader-tooltip-title">${e.loader}</div>
|
|
4
|
+
<li class="loader-tooltip-item">
|
|
5
|
+
<span>isPitch</span>
|
|
6
|
+
<span>${e.isPitch}</span>
|
|
7
|
+
</li>
|
|
8
|
+
${e.layer&&"undefined"!==e.layer?`<li class="loader-tooltip-item">
|
|
9
|
+
<span>layer</span>
|
|
10
|
+
<span>${e.layer}</span>
|
|
11
|
+
</li>`:""}
|
|
12
|
+
<li class="loader-tooltip-item">
|
|
13
|
+
<span>duration</span>
|
|
14
|
+
<span class="loader-tooltip-text-bold">${(0,o.formatCosts)(e.costs)}</span>
|
|
15
|
+
</li>
|
|
16
|
+
<li class="loader-tooltip-item">
|
|
17
|
+
<span>filepath</span>
|
|
18
|
+
<span>${e.resource}</span>
|
|
19
|
+
</li>
|
|
20
|
+
<li class="loader-tooltip-item">
|
|
21
|
+
<span>start</span>
|
|
22
|
+
<span class="loader-tooltip-text-bold">${n()(e.startAt).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
23
|
+
</li>
|
|
24
|
+
<li class="loader-tooltip-item">
|
|
25
|
+
<span>end</span>
|
|
26
|
+
<span class="loader-tooltip-text-bold">${n()(e.endAt).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
27
|
+
</li>
|
|
28
|
+
</div>
|
|
29
|
+
`.trim()}function u(e,t,r){let i=t=>t.loader===e,d=t.filter(i),c=d.map(e=>e.resource),h=c.filter(e=>e.includes("/node_modules/")),u=c.filter(e=>!e.startsWith(r)),p=(0,l.w)(d,e=>e.startAt).startAt,m=(0,a.S)(d,e=>e.endAt).endAt,f=s.aH.getLoadersCosts(i,t);return`
|
|
30
|
+
<div class="loader-tooltip-container">
|
|
31
|
+
<div class="loader-tooltip-title">${e}</div>
|
|
32
|
+
<li class="loader-tooltip-item">
|
|
33
|
+
<span>files</span>
|
|
34
|
+
<span class="loader-tooltip-text-bold">${c.length}</span>
|
|
35
|
+
</li>
|
|
36
|
+
<li class="loader-tooltip-item">
|
|
37
|
+
<span>files(node_modules)</span>
|
|
38
|
+
<span class="loader-tooltip-text-bold">${h.length}</span>
|
|
39
|
+
</li>
|
|
40
|
+
<li class="loader-tooltip-item">
|
|
41
|
+
<span>files(outside the cwd)</span>
|
|
42
|
+
<span class="loader-tooltip-text-bold">${u.length}</span>
|
|
43
|
+
</li>
|
|
44
|
+
<li class="loader-tooltip-item">
|
|
45
|
+
<span>duration(estimated)</span>
|
|
46
|
+
<span class="loader-tooltip-text-bold">${(0,o.formatCosts)(f)}</span>
|
|
47
|
+
</li>
|
|
48
|
+
<li class="loader-tooltip-item">
|
|
49
|
+
<span>start(min)</span>
|
|
50
|
+
<span>${n()(p).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
51
|
+
</li>
|
|
52
|
+
<li class="loader-tooltip-item">
|
|
53
|
+
<span>end(max)</span>
|
|
54
|
+
<span>${n()(m).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
55
|
+
</li>
|
|
56
|
+
</div>
|
|
57
|
+
`.trim()}function p(e){return function e(t){return t.reduce((t,r)=>{if(r.c){let s=e(r.c);t.push({name:r.n,ph:d.a.BEGIN,pid:r.p,ts:r.s,args:r},...s,{name:r.n,ph:d.a.END,pid:r.p,ts:r.e,args:r})}else t.push({name:r.n,ph:d.a.BEGIN,pid:r.p,ts:r.s,args:r}),t.push({name:r.n,ph:d.a.END,pid:r.p,ts:r.e,args:r});return t},[])}(Object.entries(e.sort((e,t)=>e.s-t.s).reduce((e,t)=>{let r=e[t.p];return r?function(e,t){let r=[e];for(;r.length>0;){let e,s=r.shift()||[];if(0===s.length)return;let i=s[s.length-1];if(i.e<=t.s)return s.push(t);for(let t=s.length-1;t>=0;t--){let{c:r}=s[t];r&&(e=r)}e?r.push(e):i.c=[t]}}(r,t):e[t.p]=[t],e},{})).reduce((e,t)=>{let[r,s]=t;return e.push(...s),e},[]))}function m(e){let{ext:t}=e.data;return`
|
|
58
|
+
<div class="loader-tooltip-container">
|
|
59
|
+
<div class="loader-tooltip-title">[${t.args.p}] ${t.args.n}</div>
|
|
60
|
+
<li class="loader-tooltip-item">
|
|
61
|
+
<span>hook</span>
|
|
62
|
+
<span>${t.args.p}</span>
|
|
63
|
+
</li>
|
|
64
|
+
<li class="loader-tooltip-item">
|
|
65
|
+
<span>tap name</span>
|
|
66
|
+
<span>${t.args.n}</span>
|
|
67
|
+
</li>
|
|
68
|
+
<li class="loader-tooltip-item">
|
|
69
|
+
<span>start</span>
|
|
70
|
+
<span>${n()(t.args.s).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
71
|
+
</li>
|
|
72
|
+
<li class="loader-tooltip-item">
|
|
73
|
+
<span>end</span>
|
|
74
|
+
<span>${n()(t.args.e).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
75
|
+
</li>
|
|
76
|
+
<li class="loader-tooltip-item">
|
|
77
|
+
<span>duration</span>
|
|
78
|
+
<span>${(0,o.formatCosts)(t.args.e-t.args.s)}</span>
|
|
79
|
+
</li>
|
|
80
|
+
</div>
|
|
81
|
+
`.trim()}function f(e,t){let[r,s]=(0,c.useState)(e);return(0,c.useEffect)(()=>{let r=setTimeout(()=>s(e),t);return()=>clearTimeout(r)},[e,t]),r}},54050(e,t,r){r.d(t,{U:()=>v});var s=r(65723),i=r(91888),n=r(63079),l=r(60503),a=r(66287),o=r(66020),d=r(43995),c=r(68108),h=r(22155),u=r(43092),p=r.n(u),m=r(98685),f=r(74579),g=r(14760),x=r(90220),y=r(203),j=r(40799);let v=(0,f.eN)({Component:e=>{let{defaultKeys:t,configs:r}=e,i=(0,m.useWebpackConfigurationByConfigs)(r||[]);if(!i)return null;let{config:u,version:f,name:v}=i,A=Object.keys(u),[S,b]=(0,h.useState)(t||A);return(0,s.jsxs)(g.hX,{text:(0,s.jsxs)("div",{className:y.A.title,children:[(0,s.jsx)("span",{style:{marginRight:"8px",fontSize:"13px"},children:"View Bundler Config"}),(0,s.jsx)(c.A,{style:{fontSize:"10px"}})]}),children:[(0,s.jsxs)(n.A,{children:[(0,s.jsx)(x.h,{text:"Bundler Config Viewer"}),(0,s.jsx)(l.A,{}),(0,s.jsxs)(a.A,{children:[(0,s.jsx)(o.A.Text,{children:"Properties: "}),(0,s.jsx)(d.A,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:S.length===A.length?[]:S,style:{width:350},popupMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{b(e)},children:A.map(e=>(0,s.jsx)(d.A.Option,{label:e,value:e,children:e},e))})]}),(0,s.jsx)(l.A,{})]}),(0,s.jsx)(p(),{name:f&&"unknown"!==f?`${v}@${f}`:"webpack.config",theme:"monokai",src:0===S.length?u:j.AP.pick(u,S),displayDataTypes:!1,displayObjectSize:!1,style:{overflowX:"auto"}})]})},api:i.hp.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1})},78899(e,t,r){r.d(t,{i:()=>a});var s=r(65723);r(22155);var i=r(66020),n=r(28342),l=r(76385);let a=e=>{let{text:t,keyword:r,...n}=e;if(!r||-1===t.indexOf(r))return o({text:t,rest:n});let a=[],d=t;for(;d.length>0;){let e=d.indexOf(r);if(e>-1)0!==e&&a.push(o({text:d,els:a})),a.push(o({text:d,els:a,marked:!0})),d=d.slice(e+r.length);else{a.push(o({text:d,els:a,marked:!0}));break}}return(0,s.jsx)(i.A.Text,{className:l.A.text,...n,children:a})},o=e=>{let{text:t,els:r,marked:a=!1,rest:o}=e;if(!t)return null;let d=t.length;if(d>40){let e=Math.floor(18.5),r=Math.ceil(18.5);return(0,s.jsx)(n.A,{content:t,placement:"left",children:(0,s.jsx)("div",{children:(0,s.jsxs)(i.A.Text,{className:l.A.text,mark:!!a,...o,children:[t.slice(0,e),"...",t.slice(d-r)]})})})}return(0,s.jsx)(n.A,{content:t,children:(0,s.jsx)("div",{children:(0,s.jsx)(i.A.Text,{className:l.A.text,...o,children:t},r?r.length:0)})})}},99008(e,t,r){r.d(t,{L:()=>n,h:()=>i});var s=r(22155);let i=(0,s.createContext)({project:null});function n(){return(0,s.useContext)(i)}},99359(e,t,r){r.d(t,{e:()=>m,z:()=>p});var s=r(65723),i=r(91888),n=r(13238),l=r(71886),a=r(22155),o=r(46006),d=r(98685),c=r(10117),h=r(60678),u=r(40799);let p=e=>{let{manifestLoader:t=d.fetchManifest,api:r,children:p,body:m=null,showSkeleton:f=!0,fallbackComponent:g}=e,[x,y]=(0,a.useState)(),[j,v]=(0,a.useState)(c.nl.Pending),[A,S]=(0,a.useState)({}),{loader:b}=(0,d.useDataLoader)(x);function M(e){window[i.YM.WINDOW_RSDOCTOR_TAG]?z(e):t().then(e=>{y(e)}).catch(e=>{if(!("u"<typeof window)&&window.location.hash.includes(i.Kj.RsdoctorClientRoutes.Uploader)){console.warn("[ServerAPIProvider] Failed to load manifest for uploader route, continuing with empty manifest:",e),v(c.nl.Success);return}throw v(c.nl.Fail),e}).then(()=>{z(e)})}let k=(0,a.useCallback)(e=>{let{req:t,res:s}=e;t.api===r&&((0,o.n)(t.body,m)||u.AP.isNil(t.body)&&u.AP.isNil(m))&&!(0,o.n)(A,s)&&S(s),v(c.nl.Success)},[A,r,m]);function z(e){e&&(Object.values(i.hp.ServerAPI.APIExtends).includes(r)?v(c.nl.Success):e.loadAPI(r,m).then(e=>{u.AP.isNil(e)||(S(e),v(c.nl.Success))}).catch(e=>{console.error(e),v(c.nl.Fail)}))}return((0,a.useEffect)(()=>{M(b)},[b,r,m]),(0,a.useEffect)(()=>{if(b)return b.onDataUpdate(r,k),()=>{b.removeOnDataUpdate(r,k)}},[b,r,m]),j===c.nl.Pending)?f?(0,s.jsx)(n.A,{active:!0}):null:j===c.nl.Fail?g||(0,s.jsx)(h.c,{retry:()=>{v(c.nl.Pending),t(),M()}}):j===c.nl.Updating?(0,s.jsx)(l.A,{spinning:!0,children:p(A)}):p(A)};function m(e){let{Component:t,api:r,responsePropName:i,body:n,fallbackComponent:l,showSkeleton:a}=e;return function(e){let{body:o=n,...d}=e;return(0,s.jsx)(p,{api:r,body:o,showSkeleton:a,fallbackComponent:l,children:e=>{let r={...d,[i]:e};return(0,s.jsx)(t,{...r})}})}}},25957(e,t,r){r.d(t,{u:()=>d});var s=r(65723),i=r(13238),n=r(22155),l=r(98685),a=r(10117),o=r(60678);function d(e,t,r){let d=e();return function(){let[c,h]=(0,n.useState)(),[u,p]=(0,n.useState)(a.jK.Pending),[m,f]=(0,n.useState)({}),{loader:g}=(0,l.useDataLoader)(c);function x(e){return e.then(e=>{h(e)}).catch(()=>{p(a.jK.Fail)})}function y(e){e&&Promise.all(t.map(t=>{let[r]=t;return e.loadData(r)})).then(e=>{f(e.reduce((e,r,s)=>{let[i,n]=t[s];return e[n]=r,e},{})),p(a.jK.Success)}).catch(e=>{console.error(e),p(a.jK.Fail)})}return((0,n.useEffect)(()=>{x(d).then(()=>{y(g)})},[g]),u===a.jK.Pending)?(0,s.jsx)(i.A,{active:!0}):u===a.jK.Fail?(0,s.jsx)(o.c,{retry:()=>{p(a.jK.Pending),d.then(()=>{y(g)}).catch(()=>{x(e())})}}):(0,s.jsx)(r,{...m})}}},96729(e,t,r){r.d(t,{L2:()=>l,bX:()=>a,jk:()=>n}),r(65723);var s=r(40799);async function i(e,t,r,s,i){let n=`${e}:${t}:${r}`;try{var l;let e="u">typeof window&&(null==(l=window.location)?void 0:l.origin)?window.location.origin:"",t=`${e}/__open-in-editor?file=${encodeURIComponent(n)}&editor=${s}`;(await fetch(t,{method:"GET"})).ok||i()}catch{i()}}function n(e){let{file:t,line:r=1,column:n=1,windowId:l}=e,a={windowId:l},o=Object.keys(a).map(e=>{let t=a[e];return s.AP.isNil(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&");i(t,r,n,"code",()=>{let e=`vscode://file/${t}:${r}:${n}`;o&&(e+=`?${o}`),window.open(e)})}function l(e){let{file:t,line:r=1,column:s=1}=e;i(t,r,s,"cursor",()=>{window.open(`cursor://file/${t}:${r}:${s}`)})}function a(e){let{file:t,line:r=1,column:s=1}=e;i(t,r,s,"trae",()=>{window.open(`trae://file/${t}:${r}:${s}`)})}r(22155),r(99979)},58793(e,t,r){r.d(t,{L2:()=>i.L2,bX:()=>i.bX,hZ:()=>s.h,jk:()=>i.jk});var s=r(58396),i=r(96729)},82751(e,t,r){r.d(t,{oc:()=>E,Rl:()=>J,Wf:()=>N,DG:()=>en});var s=r(65723),i=r(22155),n=r(24801),l=r(87655),a=r(84333),o=r(47748),d=r(85768),c=r(64060),h=r(68108),u=r(41346),p=r(53289),m=r(98685),f=r(14760),g=r(30786),x=r(74579);r(85960);r(97862);let y="card-lyOUB6";var j=r(11728),v=r(85817);let A=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,s.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,s.jsx)("path",{fill:"#3874F6",d:"M13.353 4.51c.094.095.147.221.147.354V14.5a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-13A.5.5 0 0 1 3 1h6.636c.133 0 .26.053.355.147zm-1.006.584-2.94-2.94v2.94z"})]});r(73472);let S={errorNumber:"errorNumber-NtnGpL",warningNumber:"warningNumber-UgutU8",successNumber:"successNumber-YOK23K",errorText:"errorText-u5Q3ns",warningText:"warningText-PymRi4",successText:"successText-ddFAF_",errorButton:"errorButton-jYRQzL",warningButton:"warningButton-KAF3GT",successButton:"successButton-clAJSx",container:"container-ssAvLP",icon:"icon-K6JtIV",description:"description-Ik1PO7",data:"data-J9Vxvq",common:"common-sHeHRd",warning:"warning-HnVMOj"},b=e=>{let{theme:t,number:r,description:i}=e;return(0,s.jsxs)("div",{className:`${S.container} ${S[t]}`,children:[(0,s.jsx)(j.A,{style:{fontSize:"18px",margin:"0 5px"},component:"common"===t?A:v.A}),(0,s.jsx)("span",{className:S.description,children:i}),(0,s.jsx)("span",{className:S.data,children:r})]})};var M=r(91888);r(52992);let k="column-VJtpT7",z="description-nwRikm",w="unit-poAoxV",I="tag-fNEiQ8",P="label-vITl7c",{DirectoryTree:C}=n.A,E=e=>{let t=[];e.files.length&&(t=e.files.map(e=>{let t=e.path.split("/");return{fileName:t.pop(),defaultDir:t.join("/")||"output",size:e.size,initial:e.initial}}));let r=[];return t.forEach(e=>{let t=r.find(t=>t.title===e.defaultDir),i=t||{title:e.defaultDir,key:e.defaultDir,icon:(0,s.jsx)(c.A,{}),children:[]},n=(0,p.C)(e.fileName);t||r.push(i),i.children.push({title:(0,s.jsxs)("div",{className:"treeContainer-jcFlxc",children:[(0,s.jsx)("div",{className:"treeTitle-B083rc",children:e.fileName}),(0,s.jsx)("div",{className:"line-Ia_8Yg"}),(0,s.jsx)(l.A,{className:I,color:"green",children:(0,m.formatSize)(e.size)}),e.initial?(0,s.jsx)(l.A,{className:I,color:"cyan",children:"initial"}):null]}),key:e.fileName,isLeaf:!0,icon:n})}),{treeData:r}},D=e=>{let{treeData:t}=E(e);return(0,s.jsx)(s.Fragment,{children:e.files.length?(0,s.jsx)(f.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,s.jsx)("span",{children:e.count}),children:(0,s.jsx)(C,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}})}):e.count})},_=e=>{let{res:t,view:r}=e,i=[{key:"js-files-count",label:"JS files",children:(0,s.jsx)("span",{className:`${z} ${k}`,children:D(t.js.total)})},{key:"css-files-count",label:"CSS files",children:(0,s.jsx)("span",{className:`${z} ${k}`,children:D(t.css.total)})},{key:"font-files-count",label:"Font files",children:(0,s.jsx)("span",{className:`${z} ${k}`,children:D(t.fonts.total)})},{key:"html-files-count",label:"HTML files",children:(0,s.jsx)("span",{className:z,children:D(t.html.total)})},{key:"image-files-count",label:"Image files",children:(0,s.jsx)("span",{className:z,children:D(t.imgs.total)})},{key:"media-files-count",label:"Media files",children:(0,s.jsx)("span",{className:z,children:D(t.media.total)})}],[n,l]=(0,m.formatSize)(t.js.total.size).split(" "),[o,d]=(0,m.formatSize)(t.css.total.size).split(" "),[c,h]=(0,m.formatSize)(t.fonts.total.size).split(" "),[u,p]=(0,m.formatSize)(t.html.total.size).split(" "),[f,g]=(0,m.formatSize)(t.imgs.total.size).split(" "),[x,y]=(0,m.formatSize)(t.media.total.size).split(" "),j=[{key:"js-files-size",label:(0,s.jsx)("span",{className:P,children:"JS size"}),children:(0,s.jsxs)("div",{className:k,children:[(0,s.jsx)("span",{className:z,children:n}),(0,s.jsx)("span",{className:w,children:l})]})},{key:"css-files-size",label:(0,s.jsx)("span",{className:P,children:"CSS size"}),children:(0,s.jsxs)("div",{className:k,children:[(0,s.jsx)("span",{className:z,children:o}),(0,s.jsx)("span",{className:w,children:d})]})},{key:"font-files-size",label:(0,s.jsx)("span",{className:P,children:"Font size"}),children:(0,s.jsxs)("div",{className:k,children:[(0,s.jsx)("span",{className:z,children:c}),(0,s.jsx)("span",{className:w,children:h})]})},{key:"html-files-size",label:(0,s.jsx)("span",{className:P,children:"HTML size"}),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:z,children:u}),(0,s.jsx)("span",{className:w,children:p})]})},{key:"image-files-size",label:(0,s.jsx)("span",{className:P,children:"Image size"}),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:z,children:f}),(0,s.jsx)("span",{className:w,children:g})]})},{key:"media-files-size",label:(0,s.jsx)("span",{className:P,children:"Media size"}),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:z,children:x}),(0,s.jsx)("span",{className:w,children:y})]})}];return(0,s.jsx)(a.A,{layout:"vertical",className:"bundleOverall-Ay7WmZ",size:"small",column:3,colon:!1,items:"files"===r?i:j})},N=()=>{let[e,t]=(0,i.useState)("size"),r=(0,u.Zp)(),{t:n}=(0,m.useI18n)();return(0,s.jsx)(x.zW,{api:M.hp.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:i=>{let l=(0,m.formatSize)(i.all.total.size);return(0,s.jsx)(g.Zp,{className:y,style:{height:"316px"},children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"title-fNYU5O",children:[(0,s.jsx)("span",{children:n("Bundle Overall")}),(0,s.jsx)(o.Ay,{type:"link",style:{padding:"0px"},onClick:()=>{r(M.Kj.RsdoctorClientRoutes.BundleSize)},children:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,s.jsx)("span",{style:{marginRight:"8px",fontSize:"13px"},children:n("ViewBundleSize")}),(0,s.jsx)(h.A,{style:{fontSize:"10px"}})]})})]}),(0,s.jsx)(d.A,{options:["Size","Files"],onChange:e=>{t(e.toLocaleLowerCase())},size:"small",style:{marginBottom:8,fontSize:"14px"}}),(0,s.jsx)(b,{theme:"files"===e?"common":"warning",number:"files"===e?i.all.total.count:l,description:`Total ${e}`}),(0,s.jsx)(_,{view:e,res:i})]})})}})};var T=r(40799),B=r(66020),R=r(60503),$=r(66287),F=r(98184);r(3302),r(91419);var O=r(44759),G=r(53878),L=r(54132);let W=e=>{let{plugins:t,defaultDatas:r=[],type:n}=e,{isDark:l}=(0,m.useTheme)(),a=(0,i.useRef)(null),[o,d]=(0,i.useState)([]);return(0,i.useEffect)(()=>{let e=[];t.forEach(t=>{t.data.forEach(r=>{e.push({p:t.hook,n:`${t.tapName}`,s:r.startAt,e:r.endAt})})}),d([...(0,L.QR)(r),...(0,L.QR)(e)])},[]),(0,s.jsx)("div",{className:["loader-chart-container",l?"loader-chart-container_dark":""].join(" ").trim(),ref:a,style:{width:"100%"},children:(0,s.jsx)(G.n,{pluginsData:o,formatterFn:L.kr,chartType:n})})},U=()=>(0,s.jsx)(O.A,{message:(0,s.jsxs)(B.A.Text,{children:[(0,s.jsx)(B.A.Text,{children:"make sure that you have turn on "}),(0,s.jsxs)(B.A.Text,{children:[" ","in configuration for the Rsdoctor plugin."]})]}),type:"info",showIcon:!0});var K=r(57568);let Y=e=>{let{summary:t}=e,{costs:r=[]}=t||{};return r.find(e=>e.name===T.BD.SummaryCostsDataName.Bootstrap)?(0,s.jsx)(f.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:'Chart of the "Bootstrap -> BeforeCompile" stage'},text:(0,s.jsx)($.A,{children:"detail"}),children:(0,s.jsx)(x.zW,{api:M.hp.ServerAPI.API.GetPluginData,body:{hooks:["environment","afterEnvironment","entryOption","afterPlugins","afterResolvers","initialize","beforeRun","run","watchRun","normalModuleFactory","contextModuleFactory","beforeCompile"]},children:e=>e&&e.length?(0,s.jsx)(W,{plugins:e,type:K.wx.Bootstrap}):(0,s.jsx)(U,{})})}):null};var q=r(91671);let H=e=>{let{summary:t}=e,{costs:r=[]}=t||{},i=r.find(e=>e.name===T.BD.SummaryCostsDataName.Done),n='of the "AfterCompile -> Done" stage';return i?(0,s.jsx)(f.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:`Details ${n}`},text:(0,s.jsx)($.A,{children:"detail"}),children:(0,s.jsx)(x.zW,{api:M.hp.ServerAPI.API.GetPluginData,body:{hooks:["afterCompile","shouldEmit","emit","afterEmit","assetEmitted","done"]},children:e=>e&&e.length?(0,s.jsxs)($.A,{direction:"vertical",style:{width:"100%"},children:[(0,s.jsx)(g.Zp,{title:`Plugin DataSource of ${n}`,collapsable:!0,children:(0,s.jsx)(q.u,{dataSource:e})}),(0,s.jsx)(R.A,{}),(0,s.jsx)(g.Zp,{title:`Chart ${n}`,children:(0,s.jsx)(W,{plugins:e,type:K.wx.Done})})]}):(0,s.jsx)(U,{})})}):null},V=e=>{let{summary:t}=e,{costs:r=[]}=t||{};return r.find(e=>e.name===T.BD.SummaryCostsDataName.Minify)?(0,s.jsx)(f.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:'Details of the "Minify" stage'},text:(0,s.jsx)($.A,{children:"detail"}),children:(0,s.jsx)(x.zW,{api:M.hp.ServerAPI.API.GetPluginData,body:{hooks:["processAssets","optimizeChunkAssets"]},children:e=>e&&e.length?(0,s.jsxs)($.A,{direction:"vertical",style:{width:"100%"},children:[(0,s.jsx)(g.Zp,{title:'Plugin DataSource of the "Minify"',collapsable:!0,children:(0,s.jsx)(q.u,{dataSource:e})}),(0,s.jsx)(R.A,{}),(0,s.jsx)(g.Zp,{title:'Chart of the "Minify"',children:(0,s.jsx)(W,{plugins:e,type:K.wx.Minify})})]}):(0,s.jsx)(U,{})})}):null};r(87773);let Z=e=>{let{children:t,name:r,showDivider:i=!0}=e;return(0,s.jsxs)(B.A.Text,{style:{color:"inherit"},children:[(0,s.jsx)(B.A.Text,{style:{color:"inherit"},children:r}),i?(0,s.jsx)(R.A,{type:"vertical"}):null,t]})},J=e=>{var t;let{summary:r}=e,{t:i}=(0,m.useI18n)();if(!(null==r||null==(t=r.costs)?void 0:t.length))return null;let n=Math.max(...r.costs.map(e=>e.costs));return(0,s.jsx)(g.Zp,{className:y,children:(0,s.jsx)("div",{children:(0,s.jsxs)($.A,{style:{wordBreak:"break-all",width:"100%",marginTop:"0"},size:20,direction:"vertical",children:[(0,s.jsx)("div",{className:"title-wq4_QM",children:i("Compile Overall")}),r.costs.map(e=>{let{name:t,costs:i}=e,l=(0,s.jsx)(F.A,{className:"progress-y4rFf4",percent:100*i/n,status:"normal",format:()=>(0,m.formatCosts)(i)});switch(t){case T.BD.SummaryCostsDataName.Bootstrap:return(0,s.jsxs)(Z,{name:"Bootstrap ~ BeforeCompile",children:[(0,s.jsx)(Y,{summary:r}),l]},t);case T.BD.SummaryCostsDataName.Compile:return(0,s.jsx)(Z,{name:"Compile",showDivider:!1,children:l},t);case T.BD.SummaryCostsDataName.Done:return(0,s.jsxs)(Z,{name:"AfterCompile ~ Done",children:[(0,s.jsx)(H,{summary:r}),l]},t);case T.BD.SummaryCostsDataName.Minify:return(0,s.jsxs)(Z,{name:"Minify",children:[(0,s.jsx)(V,{summary:r}),l]},t);default:return null}})]})})})};var Q=r(27435),X=r(71787),ee=r(4453),et=r(99265),er=r(14071),es=r(54050),ei=r(23230);r(42405);let en=e=>{let{configs:t=[],cwd:r,envinfo:i,alerts:n=[],name:l}=e,{t:o}=(0,m.useI18n)(),d=n.filter(e=>"warn"===e.level).length,c=n.length-d,h=[...l?[{key:"name",label:"Builder",children:l}]:[],...Object.keys(i||{}).map(e=>{let t=/Version$/,r=t.test(e);return{key:e,label:r?e.replace(t,""):e,children:i?i[e]:void 0}}),...t.filter(e=>!!e.version).map(e=>{let{name:t,version:r}=e;return{key:t,label:t,children:r}}),{key:"cwd",label:"cwd",children:r}];return(0,s.jsx)(x.zW,{api:M.hp.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let t=(0,m.formatSize)(e.all.total.size),r=e.all.total.count,[i,n]=t.split(" "),l=[{title:"Errors",description:(0,s.jsx)("span",{style:{color:"#FF4D4F"},children:c}),icon:(0,s.jsx)(Q.A,{style:{background:"#FF4D4F"},shape:"circle",icon:(0,s.jsx)(X.A,{style:{fontSize:"18px"}})})},{title:"Warnings",description:(0,s.jsx)("span",{style:{color:"#FAAD14"},children:d}),icon:(0,s.jsx)(Q.A,{style:{background:"#FAAD14"},shape:"circle",icon:(0,s.jsx)(ee.A,{style:{fontSize:"18px"}})})},{title:"Total Files",description:(0,s.jsx)("span",{children:r}),icon:(0,s.jsx)(Q.A,{style:{background:"#3874F6"},shape:"circle",icon:(0,s.jsx)(et.A,{style:{fontSize:"18px"}})})},{title:"Total Size",description:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{style:{fontSize:"20px"},children:i}),(0,s.jsx)("span",{style:{fontSize:"13px",marginLeft:"5px"},children:n})]}),icon:(0,s.jsx)(Q.A,{style:{background:"rgba(226, 129, 73)"},shape:"circle",icon:(0,s.jsx)(er.A,{style:{fontSize:"18px"}})})}];return(0,s.jsx)(g.Zp,{className:y,children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"title-cqt0lp",children:[(0,s.jsx)("span",{className:"left-sk7eLC",children:o("Project Overall")}),(0,s.jsx)(es.U,{})]}),(0,s.jsx)("div",{className:"overview-ZAp1A3",children:l.map((e,t)=>(0,s.jsx)(ei.A,{title:e.title,description:(0,s.jsx)("span",{children:e.description}),icon:e.icon},t))}),(0,s.jsx)(a.A,{className:"projectOverall-T7onhG",items:h})]})})}})}},23230(e,t,r){r.d(t,{A:()=>i,h:()=>n});var s=r(65723);r(68371);let i=e=>{let{title:t,description:r,icon:i,style:n}=e;return(0,s.jsxs)("div",{className:"container-KSV5DZ",style:n,children:[(0,s.jsxs)("div",{className:"content-BsjkSU",children:[(0,s.jsx)("div",{className:"title-jUwqD5",children:t}),(0,s.jsx)("div",{className:"description-ArkOg4",children:r})]}),i]})},n=i},91671(e,t,r){r.d(t,{u:()=>o});var s=r(65723);r(22155);var i=r(36025),n=r(29656),l=r(92554),a=r(98685);let o=e=>{let{dataSource:t}=e;return(0,s.jsx)(i.A,{dataSource:t,rowKey:e=>`${e.tapName}_${e.hook}`,columns:[{title:"Plugin Tap Name",render:(e,t)=>t.tapName},{title:"Hook",render:(e,t)=>t.hook},{title:"calls",render:(e,t)=>(0,s.jsx)(n.A,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>(0,a.formatCosts)((0,l.x)(t.data,e=>e.costs)),sorter:(e,t)=>(0,l.x)(e.data,e=>e.costs)-(0,l.x)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})}},60678(e,t,r){r.d(t,{c:()=>o});var s=r(65723),i=r(87417),n=r(66287),l=r(66020),a=r(47748);let o=r(22155).memo(e=>{let{title:t="Load data failed, please try again",buttonText:r="retry",retry:o}=e;return(0,s.jsx)(i.A,{description:(0,s.jsxs)(n.A,{direction:"vertical",children:[(0,s.jsx)(l.A.Text,{children:t}),(0,s.jsx)(a.Ay,{type:"primary",onClick:()=>{o()},children:r})]})})})},75652(e,t,r){r.d(t,{Y:()=>o});var s=r(65723),i=r(58094),n=r(87417),l=r(22155),a=r(85240);function o(e){let[t,r]=(0,l.useState)(""),[o,d]=(0,l.useState)(""),[c,h]=(0,l.useState)(""),[u,p]=(0,l.useState)(!1),[m,f]=(0,l.useState)(),[g,x]=(0,l.useState)();return{showCode(e){r(e.code||""),d(e.lang||""),h(e.filePath||""),f(e.defaultLine),x(e.ranges),p(!0)},codeDrawerComponent:(0,s.jsx)(i.A,{maskClosable:!0,zIndex:999,width:"70%",destroyOnClose:!0,title:`Code of "${c}"`,open:u,onClose:()=>p(!1),children:t?(0,s.jsx)(a.Cv,{code:t,lang:o,filePath:c,defaultLine:m,ranges:g}):(0,s.jsx)(n.A,{description:e||"No Code"})})}}},21919(e,t,r){r.d(t,{PE:()=>s.P,zW:()=>i.zW}),r(53878),r(78363),r(35471),r(68850),r(30786),r(94175);var s=r(70972),i=r(74579);r(82751),r(14760)},45554(e,t,r){r.d(t,{U:()=>i,w:()=>n});var s=r(91888);let i="Overall",n=s.Kj.RsdoctorClientRoutes.Overall},70738(e,t,r){r.d(t,{_y:()=>n,dn:()=>d,FO:()=>o,s0:()=>h,aD:()=>rb,hK:()=>a,PR:()=>c,pI:()=>l,d9:()=>u,wm:()=>i});var s,i={};r.r(i),r.d(i,{YW:()=>w,wE:()=>z.w});var n={};r.r(n),r.d(n,{YW:()=>tF,UU:()=>tR,wE:()=>t$});var l={};r.r(l),r.d(l,{YW:()=>tZ,UU:()=>tH,wE:()=>tV});var a={};r.r(a),r.d(a,{YW:()=>t8,UU:()=>t5,wE:()=>t6});var o={};r.r(o),r.d(o,{YW:()=>rr,UU:()=>re,wE:()=>rt});var d={};r.r(d),r.d(d,{YW:()=>ru,UU:()=>rc,wE:()=>rh});var c={};r.r(c),r.d(c,{YW:()=>rg,wE:()=>rf});var h={};r.r(h),r.d(h,{BU:()=>rS,wE:()=>rA});var u={};r.r(u),r.d(u,{YW:()=>r_,wE:()=>rD});var p=r(65723),m=r(22155),f=r(86550),g=r(47748),x=r(68108),y=r(30786),j=r(98685);r(31535);let v=[{title:"FAQ",link:"https://rsdoctor.rs/guide/more/faq"},{title:"Introduction",link:"https://rsdoctor.rs/guide/start/intro"},{title:"Bundle Alerts",link:"https://rsdoctor.rs/guide/usage/bundle-alerts"},{title:"Bundle Overall",link:"https://rsdoctor.rs/guide/usage/bundle-overall"},{title:"Bundle Analysis",link:"https://rsdoctor.rs/guide/usage/bundle-size"},{title:"Compilation Alerts",link:"https://rsdoctor.rs/guide/usage/compile-alerts"},{title:"Compile Overall",link:"https://rsdoctor.rs/guide/usage/compile-overall"},{title:"Loaders Analysis",link:"https://rsdoctor.rs/guide/usage/loaders-analysis"},{title:"Loaders Timeline",link:"https://rsdoctor.rs/guide/usage/loaders-timeline"},{title:"Plugin Analysis",link:"https://rsdoctor.rs/guide/usage/plugins-analysis"}],A=()=>{let{t:e}=(0,j.useI18n)();return(0,p.jsx)(y.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{className:"title-dP_KVY",children:[(0,p.jsx)("span",{children:e("Help Center")}),(0,p.jsxs)(g.Ay,{style:{display:"flex",alignItems:"center",padding:0},type:"link",onClick:()=>{window.open("https://rsdoctor.rs/index","_blank")},children:[(0,p.jsx)("span",{style:{marginRight:"3px"},children:"More"}),(0,p.jsx)(x.A,{style:{fontSize:"10px"}})]})]}),(0,p.jsx)("div",{className:"container-LiYKWu",children:v.map((t,r)=>{let{title:s,link:i}=t;return(0,p.jsx)("div",{className:"content-WPe5pa",style:{marginBottom:r<v.length-2?"16px":0},onClick:()=>window.open(i,"_blank"),children:e(s)},r)})})]})})};var S=r(78363),b=r(82751);r(79725);let M=e=>{let{children:t}=e;return(0,p.jsx)(f.A,{vertical:!0,className:"layout-izKUgB",children:t.map(e=>(0,p.jsx)("div",{className:"row-RDk0Pl",children:e}))})};var k=r(99008),z=r(45554);let w=()=>{let{project:e}=(0,k.L)();if(!e)return null;let{summary:t,configs:r,root:s,envinfo:i,errors:n,name:l}=e;return(0,p.jsx)("div",{className:"overall-MGHzQh",children:(0,p.jsxs)(f.A,{style:{width:"100%"},children:[(0,p.jsx)("div",{style:{flex:3,marginRight:"16px",maxWidth:"75%"},children:(0,p.jsxs)(M,{children:[(0,p.jsx)(b.DG,{configs:r,cwd:s,envinfo:i,alerts:n,name:l}),(0,p.jsx)(S.mn,{})]})}),(0,p.jsx)("div",{style:{flex:1},children:(0,p.jsxs)(M,{children:[(0,p.jsx)(b.Wf,{errors:n,cwd:s}),(0,p.jsx)(b.Rl,{summary:t}),(0,p.jsx)(A,{})]})})]})})};var I=r(63079),P=r(84585),C=r(10117),E=r(77665),D=r(94959),_=r(62771),N=r(61445),T=r(91888),B=r(43995),R=r(66287),$=r(60503),F=r(66020),O=r(94042),G=r(84262),L=r(29656),W=r(87655),U=r(40093),K=r(87417),Y=r(78263),q=r(92554),H=r(75652),V=r(35471),Z=r(53289),J=r(94175),Q=r(78899),X=r(74579),ee=r(9834),et=r(24801),er=r(28342),es=r(87824),ei=r(13078),en=r.n(ei),el=r(68850),ea=r(14760),eo=r(58094),ed=r(35423);let ec=(0,m.createContext)({setModuleJumpList(e){},moduleJumpList:[]});var eh=r(58793),eu=r(99979);let ep=e=>(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",...e,children:(0,p.jsx)("path",{d:"M22.106 5.68 12.5.135a1 1 0 0 0-.998 0L1.893 5.68a.84.84 0 0 0-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a1 1 0 0 0 .998 0l9.608-5.547a.84.84 0 0 0 .42-.727V6.407a.84.84 0 0 0-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 0 0-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514"})}),em=e=>(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",...e,children:(0,p.jsx)("path",{fill:"#32F08C",d:"M24 20.541H3.428v-3.426H0V3.4h24v17.14zM3.428 17.115h17.144V6.827H3.428zm8.573-5.196-2.425 2.424-2.424-2.424 2.424-2.424zm6.857-.001-2.424 2.423-2.425-2.423 2.425-2.425z"})});var ef=r(11798),eg=r(44760),ex=r(39715),ey=r(44644);r(31396);let ej="file-tree-com",ev=e=>{let{treeData:t,needJumpto:r=!1,defaultOpenFather:s=0}=e,{required:i,handlers:n}=(0,ey.pk)({id:`${ej}-tree`,data:t||[],defaultOpened:!1,multipleSelect:!1,refreshAsyncNodes:!0}),l=(0,m.useRef)(new Set);(0,m.useEffect)(()=>{l.current.clear()},[t]);let a=(0,m.useCallback)(e=>{let t,{node:i,onToggle:a}=e;if("object"!=typeof i.data||null===i.data||Array.isArray(i.data))return null;let o="function"==typeof i.data.getChildren||Array.isArray(i.data.children)&&i.data.children.length>0;if(s>0&&"number"==typeof i.data.level&&i.data.level<s&&o){let e=i.id;l.current.has(e)||(l.current.add(e),requestAnimationFrame(()=>{n.setOpen(e,!0)}))}let d=(0,Z.C)(i.data.name);return(0,p.jsx)("div",{className:`${ej}-titles-box`,children:(0,p.jsx)("div",{className:`${ej}-titles`,children:(0,p.jsx)(R.A,{direction:"vertical",children:(0,p.jsx)("div",{className:`${ej}-node-title`,children:(0,p.jsxs)(R.A,{children:[(0,p.jsx)("div",{onClick:a,children:(0,p.jsxs)(R.A,{children:[(t="function"==typeof i.data.getChildren||Array.isArray(i.data.children)&&i.data.children.length>0,!i.options.opened&&t?(0,p.jsx)(ef.A,{style:{color:"lightblue"}}):(0,p.jsx)(eg.A,{style:{color:"lightblue"}})),d,(0,p.jsx)(er.A,{content:(0,p.jsx)(p.Fragment,{children:i.data.__RESOURCEPATH__?(0,p.jsx)(F.A.Text,{code:!0,children:i.data.__RESOURCEPATH__},`${i.data.name}-popover-path`):(0,p.jsx)(p.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,p.jsx)(F.A.Text,{children:i.data.name})},`${i.data.name}popover`)]})}),(0,p.jsx)(R.A,{children:r&&(0,p.jsx)(ec.Consumer,{children:e=>{let{moduleJumpList:t,setModuleJumpList:r}=e;return(0,p.jsx)(ex.A,{onClick:()=>{let e=[...t];e.push(+i.id),r(e)}})}})})]})})})})},i.data.name)},[n,s,r]);return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(ey.Ay,{...i,...n,horizontalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},verticalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},draggable:!1,depthGap:14,gapMode:"padding",disableLines:!1,disableTransitions:!0,disableHorizontalLines:!1,disableVerticalLines:!1,verticalLineTopOffset:0,verticalLineOffset:5,renderNode:a})})};T.Kj.RsdoctorClientRoutes.ModuleAnalyze;let eA="module-analyze";r(18682);var eS=r(40799);let eb=(0,m.memo)(e=>{let{dependencies:t,cwd:r,module:s}=e,i=(0,m.useMemo)(()=>{let e=s.dependencies.map(e=>{let r=t.find(t=>t.id===e);if(r)return{__RESOURCEPATH__:r.resolvedRequest||"",id:r.dependency,key:r.resolvedRequest,name:(0,j.getShortPath)(r.resolvedRequest)||"",level:1,kind:r.kind,concatModules:void 0}});return eS.AP.compact(e)},[s]);return(0,p.jsx)(I.A,{justify:"start",align:"middle",children:(0,p.jsx)(P.A,{span:24,children:i.length?(0,p.jsx)(ev,{treeData:i,needJumpto:!0,cwd:r}):(0,p.jsx)(K.A,{})})})}),eM=(e,t)=>{var r;if(null==e||null==(r=e.imported)?void 0:r.length){let r=e.imported.map(e=>t.find(t=>t.id===Number(e)));return eS.AP.compact(r)}return[]},ek=e=>{let{reasons:t,sideEffectCodes:r,modulePath:s}=e;return t&&t.length||r&&r.length?(0,p.jsxs)(O.A,{className:`${eA}-bailout-card`,bordered:!1,bodyStyle:{padding:20,height:"100%"},children:[t&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(F.A.Text,{strong:!0,className:`${eA}-bailout-card-title`,children:"Bailout Reasons"}),(0,p.jsx)("div",{className:`${eA}-bailout-card-list`,style:{maxHeight:156,overflowY:"auto"},children:t.length>0?t.map((e,t)=>(0,p.jsxs)("div",{className:`${eA}-bailout-card-item`,children:[(0,p.jsx)(er.A,{content:e,trigger:"hover",children:(0,p.jsx)(F.A.Paragraph,{ellipsis:{rows:1},className:`${eA}-bailout-card-text`,style:{marginBottom:0},children:e})}),(0,p.jsxs)(F.A.Text,{type:"secondary",className:`${eA}-bailout-card-meta`,children:["#",String(t+1).padStart(2,"0")]})]},`${e}-${t}`)):(0,p.jsx)(K.A,{})})]}),r&&r.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:12*(null!=t&&!!t.length)},children:[(0,p.jsx)(F.A.Text,{strong:!0,className:`${eA}-bailout-card-title`,children:"Side Effect Codes"}),s&&r[0]&&(0,p.jsx)(L.A,{title:`Open in VSCode: line ${r[0].startLine}`,children:(0,p.jsx)(eu.A,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,eh.jk)({file:s,line:r[0].startLine})})}),s&&r[0]&&(0,p.jsx)(L.A,{title:`Open in Cursor: line ${r[0].startLine}`,children:(0,p.jsx)(ep,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,eh.L2)({file:s,line:r[0].startLine})})}),s&&r[0]&&(0,p.jsx)(L.A,{title:`Open in Trae: line ${r[0].startLine}`,children:(0,p.jsx)(em,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,eh.bX)({file:s,line:r[0].startLine})})})]}),(0,p.jsx)("div",{className:`${eA}-bailout-card-list`,style:{minHeight:"50vh",display:"flex",flexDirection:"column",gap:12,overflow:"auto"},children:r.map((e,t)=>(0,p.jsx)("div",{className:`${eA}-bailout-card-item`,style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:8,minHeight:0,flex:"1 1 0"},children:(0,p.jsx)("div",{style:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:e.code?(0,p.jsx)(el.Cv,{code:e.code,ranges:[{start:{line:e.startLine||0,column:0}}],filePath:"",lang:"javascript",style:{flex:1,minHeight:"40vh",width:"100%"},isLightTheme:!1,formatOnMount:!0}):(0,p.jsx)(K.A,{})})},`${e.moduleId}-${t}`))})]})]}):(0,p.jsx)(O.A,{className:`${eA}-bailout-card`,bordered:!1,bodyStyle:{padding:20,height:"100%"},children:(0,p.jsx)(K.A,{})})},ez=e=>{let{curModule:t,modules:r,dependencies:s,cwd:i,activeTabKey:n,selectedChunk:l=""}=e,[a,o]=(0,m.useState)([]),{data:d}=(0,m.useMemo)(()=>a&&(null==a?void 0:a.length)?{data:eS.AP.compact(null==a?void 0:a.map((e,s)=>({key:`0-${s}`,name:(0,j.getShortPath)(e.path),__RESOURCEPATH__:e.path,id:e.id,level:0,chunks:e.chunks,size:(0,j.formatSize)(e.size.parsedSize),kind:e.kind,concatModules:e.concatenationModules,fatherPath:(0,j.getShortPath)(t.path),dependencies:e.dependencies,getChildren:()=>(function e(t,r,s,i){let n=eM(t,r),l=i+1;return null==n?void 0:n.map((i,n)=>({key:`0-${n}`,name:(0,j.getShortPath)(i.path),__RESOURCEPATH__:i.path,id:i.id,level:l,size:(0,j.formatSize)(i.size.parsedSize),kind:i.kind,chunks:i.chunks,concatModules:i.concatenationModules,fatherPath:(0,j.getShortPath)(s.path),dependencies:i.dependencies,getChildren:()=>e(i,r,t,l),children:i.imported}))})(e,r,t,0),children:e.imported})))}:{filterData:[],data:[]},[a,t]);(0,m.useEffect)(()=>{o(eM(t,r))},[t,r]);let c=(0,m.useMemo)(()=>n===eC[eC.Reasons]?a?(0,p.jsx)(ev,{cwd:i,treeData:d,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:l,defaultOpenFather:1}):(0,p.jsx)(K.A,{className:`${eA}-empty`}):(0,p.jsx)("div",{className:`${eA}-file-tree`,style:{padding:C.or.BasePadding/2},children:(0,p.jsx)(P.A,{span:24,style:{marginTop:C.or.BasePadding/2},children:t?(0,p.jsx)(eb,{module:t,dependencies:s,cwd:i}):(0,p.jsx)(K.A,{className:`${eA}-empty`})})}),[n,t,s,d,a,i,l]);return(0,p.jsx)(p.Fragment,{children:c})};var ew=r(21642),eI=r(13989),eP=r(67070),eC=((s={})[s.Reasons=0]="Reasons",s[s.Dependencies=1]="Dependencies",s);let eE=[{key:eC[0],label:eC[0]},{key:eC[1],label:eC[1]}],eD=e=>{let{modules:t,cwd:r,moduleId:s,show:i,setShow:n}=e,[l,a]=(0,m.useState)(""),[o,d]=(0,m.useState)(eC[0]);return(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetModuleDetails,body:{moduleId:+s},children:e=>{let{module:s,dependencies:a,sideEffectCodes:c}=e;return(0,p.jsx)(eo.A,{title:(0,p.jsxs)("div",{className:"module-analyze-box",children:[(0,p.jsx)(F.A.Text,{children:(0,j.getShortPath)(s.path)}),(0,p.jsx)(F.A.Text,{style:{fontSize:12,color:"rgba(0, 0, 0, 0.45)"},children:`Current Module: ${s.path}`})]}),open:i,maskClosable:!0,width:.8*C.Y7,onClose:()=>n(!1),children:(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetAllChunkGraph,body:{},children:e=>(0,p.jsx)(ec.Consumer,{children:e=>{let{moduleJumpList:i,setModuleJumpList:n}=e;return(0,p.jsx)(G.A,{defaultActiveKey:"bailout",items:[{key:"moduleTree",label:"Module Tree",children:(0,p.jsx)(O.A,{style:{minHeight:400},tabList:eE,activeTabKey:o,tabProps:{size:"small",style:{fontSize:12}},onTabChange:e=>d(e),styles:{title:{paddingTop:0}},title:(0,p.jsxs)(R.A,{style:{padding:"10px 0px"},children:[(0,p.jsx)(ew.A,{onClick:()=>{n([...i.slice(0,-1)])}}),(0,p.jsx)(F.A.Text,{style:{fontSize:14,color:"rgba(28, 31, 35, 0.8)"},children:"Current Module Imported Reasons Tree"}),(0,p.jsx)(er.A,{content:(0,p.jsx)("div",{children:(0,p.jsxs)("div",{children:[(0,p.jsx)(ed.A,{status:"success",text:" "}),(0,p.jsx)(eI.A,{}),(0,p.jsx)(F.A.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})}),title:"Usage",children:(0,p.jsx)(eP.A,{})})]}),children:(0,p.jsx)(ez,{curModule:s,modules:t,dependencies:a,cwd:r,selectedChunk:l,activeTabKey:o})})},{key:"bailout",label:"Bailout",children:(0,p.jsx)("div",{style:{marginTop:16},children:(0,p.jsx)(ek,{reasons:s.bailoutReason,sideEffectCodes:c,modulePath:s.path})})}]})}})})})}})};r(11341);let e_={assets:"assets-ll1P_L",assetBox:"assetBox-Y8vGse",fileText:"fileText-W0quVZ","bundle-tree":"bundle-tree-IbtEQg",bundleTree:"bundle-tree-IbtEQg",box:"box-On1BLb",keyword:"keyword-PqQzB1",divider:"divider-asnppW",dividerDiv:"dividerDiv-s50mAr",assetsTag:"assetsTag-eAVvyj",bundle:"bundle-cPw2Kc",modal:"modal-afyzYa","search-btn":"search-btn-To902q",searchBtn:"search-btn-To902q","search-modal-list":"search-modal-list-G_Uxc8",searchModalList:"search-modal-list-G_Uxc8"},{DirectoryTree:eN}=et.A,eT=[],eB={margin:"none",marginInlineEnd:0},eR=()=>(0,p.jsx)(K.A,{description:`Do not have the module code.
|
|
82
|
+
(1) If you use the brief mode, there will not have any codes to show.
|
|
83
|
+
(2) If you use lite mode, there will not have source codes.`}),e$=e=>{let{data:t}=e,[r,s]=(0,m.useState)(""),{t:i}=(0,j.useI18n)(),n={source:"Source Code",transformed:`Transformed Code(${i("After Compile")})`,parsedSource:`Bundled Code(${i("After Bundled")})`};if(!t)return null;let{path:l}=t;return(0,p.jsx)(ea.hX,{text:"",buttonProps:{size:"small",icon:(0,p.jsx)(er.A,{content:"Open the Codes Box",children:(0,p.jsx)(_.A,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${l}"`},children:(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:t.id},children:e=>(0,p.jsx)(p.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,p.jsx)(O.A,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,es.z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:n[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>s(e),tabBarExtraContent:(0,p.jsx)(er.A,{placement:"bottom",title:(0,p.jsx)(F.A.Title,{level:5,children:"Explain"}),content:(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(F.A.Text,{strong:!0,children:"Source: "}),(0,p.jsx)(F.A.Text,{children:"source code"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(F.A.Text,{strong:!0,children:"Transformed:"}),(0,p.jsx)(F.A.Text,{children:"Transformed Code (After compile)"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(F.A.Text,{strong:!0,children:"Bundled Source:"}),(0,p.jsx)(F.A.Text,{children:"Bundled Code (After bundle and tree-shaking)"})]}),(0,p.jsx)("br",{}),(0,p.jsx)(F.A.Text,{strong:!0,children:"More"}),(0,p.jsx)(F.A.Text,{children:i("CodeModeExplain")})]})}),trigger:"hover",children:(0,p.jsx)("a",{href:"#",children:"Explain"})}),styles:{body:{padding:0,overflow:"hidden"}},children:e.parsedSource||e.source||e.transformed?(0,p.jsx)(el.Cv,{isEmbed:!0,code:r?e[r]:e.parsedSource?e.parsedSource:e.source,filePath:l}):(0,p.jsx)(eR,{})}):(0,p.jsx)(eR,{})})})})},eF=e=>{let{id:t,show:r,setShow:s,cwd:i}=e;return t?(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetAllModuleGraph,body:{},children:e=>(0,p.jsx)(eD,{cwd:i,moduleId:t,modules:e,show:r,setShow:s})}):null},eO="__RESOURCEPATH__",eG=e=>{let{modules:t,chunks:r,filteredModules:s}=e,{sourceSize:i,parsedSize:n,filteredParsedSize:l,filteredSourceSize:a}=(0,m.useMemo)(()=>({sourceSize:(0,q.x)(t,e=>e.size.sourceSize),parsedSize:(0,q.x)(t,e=>e.size.parsedSize),filteredSourceSize:(0,q.x)(s,e=>e.size.sourceSize),filteredParsedSize:(0,q.x)(s,e=>e.size.parsedSize)}),[t,s]);return(0,p.jsxs)(R.A,{children:[(0,p.jsx)(L.A,{title:`total modules count is ${t.length}, the filtered modules count is ${s.length}`,children:(0,p.jsxs)(R.A,{children:[(0,p.jsxs)(F.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",s.length," / ",t.length]}),(0,p.jsx)(D.A,{})]})}),(0,p.jsx)($.A,{type:"vertical"}),(0,p.jsx)(L.A,{title:(0,p.jsxs)(R.A,{direction:"vertical",children:[(0,p.jsxs)(F.A.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,j.formatSize)(n)]}),(0,p.jsxs)(F.A.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,j.formatSize)(i)]}),(0,p.jsxs)(F.A.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,j.formatSize)(l)]}),(0,p.jsxs)(F.A.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,j.formatSize)(a)]})]}),children:(0,p.jsxs)(R.A,{children:[(0,p.jsxs)(F.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:",l===n?(0,j.formatSize)(n):`${(0,j.formatSize)(l)} / ${(0,j.formatSize)(n)}`]}),(0,p.jsx)(D.A,{})]})}),(0,p.jsx)($.A,{type:"vertical"}),(0,p.jsx)(L.A,{title:(0,p.jsxs)(R.A,{direction:"vertical",children:[(0,p.jsxs)(F.A.Text,{style:{color:"inherit"},children:["this asset includes ",r.length," chunks:"]}),r.map(e=>(0,p.jsx)(V.Ex,{label:"chunk",value:e.name},e.name))]}),children:(0,p.jsxs)(R.A,{children:[(0,p.jsxs)(F.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",r.length]}),(0,p.jsx)(D.A,{})]})})]})},eL=e=>{let{moduleCount:t}=e;return(0,p.jsx)(L.A,{title:(0,p.jsx)(R.A,{children:(0,p.jsxs)(F.A.Text,{style:{color:"inherit"},children:["This is a concatenated container module that includes ",t," ","modules"]})}),children:(0,p.jsx)(W.A,{color:"blue",style:eB,children:"concatenated container"})})},eW=e=>{let{size:t}=e;return(0,p.jsx)(L.A,{title:(0,p.jsx)(R.A,{children:(0,p.jsx)(F.A.Text,{style:{color:"inherit"},children:"The total output size of all the files in this folder. If you enabled minification, this value shows the minified size."})}),children:(0,p.jsx)(W.A,{style:eB,color:"geekblue",children:`bundled size: ${(0,j.formatSize)(t)}`})})},eU=e=>{let{size:t}=e;return(0,p.jsx)(L.A,{title:(0,p.jsx)(R.A,{children:(0,p.jsx)(F.A.Text,{style:{color:"inherit"},children:"The final output size of this file. If you enabled minification, this value shows the minified size."})}),children:(0,p.jsx)(W.A,{color:"geekblue",children:`bundled size: ${(0,j.formatSize)(t)}`})})},eK=e=>{let{size:t}=e;return(0,p.jsx)(L.A,{title:(0,p.jsx)(R.A,{children:(0,p.jsx)(F.A.Text,{style:{color:"inherit"},children:"The compressed file size that users actually download, as most web servers use gzip compression."})}),children:(0,p.jsx)(W.A,{color:"orange",children:`gzipped: ${(0,j.formatSize)(t)}`})})},eY=e=>{let{size:t}=e;return(0,p.jsx)(L.A,{title:(0,p.jsx)(R.A,{children:(0,p.jsx)(F.A.Text,{style:{color:"inherit"},children:"The total original size of all the files in this folder, before any transformations and minification."})}),children:(0,p.jsx)(W.A,{style:eB,color:"cyan",children:`source size: ${(0,j.formatSize)(t)}`})})},eq=e=>{let{size:t}=e;return(0,p.jsx)(L.A,{title:(0,p.jsx)(R.A,{children:(0,p.jsx)(F.A.Text,{style:{color:"inherit"},children:"The original size of this file, before any transformations and minification."})}),children:(0,p.jsx)(W.A,{color:"cyan",children:`source size: ${(0,j.formatSize)(t)}`})})},eH=e=>{let{asset:t,chunks:r,modules:s,moduleSizeLimit:i,height:n,root:l}=e,[a,o]=(0,m.useState)(""),[d,c]=(0,m.useState)(!1),[h,u]=(0,m.useState)([]),[f,x]=(0,m.useState)(!1),y=(0,m.useMemo)(()=>{let e=s.slice();if(a){let t=RegExp(a,"i");e=e.filter(e=>t.test(e.path))}return i&&(e=e.filter(e=>e.size.parsedSize>=i)),e},[s,a,i]),v=(0,m.useMemo)(()=>(0,j.createFileStructures)({files:y.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:eO,fileTitle(e,t){var r;let i=y.find(t=>t.path.replace(/\\/g,"/")===e.replace(/\\/g,"/"));if(!i)return t;let{parsedSize:n=0,sourceSize:l=0,gzipSize:a=0}=i.size,o=i.kind===T.hp.ModuleKind.Concatenation,d=!o&&0===n&&s.filter(e=>e!==i&&e.modules&&e.modules.indexOf(i.id)>-1);return(0,p.jsxs)("div",{className:e_["bundle-tree"],children:[(0,p.jsx)(er.A,{content:`Open the ${t}’s module reasons tree.`,placement:"bottom",children:(0,p.jsxs)("div",{className:e_.box,onClick:()=>{u([i.id]),x(!0)},children:[(0,p.jsx)("div",{className:e_.keywords,children:(0,p.jsx)(Q.i,{ellipsis:!0,text:t,keyword:""})}),(0,p.jsx)("div",{className:e_.dividerDiv,children:(0,p.jsx)($.A,{className:e_.divider,dashed:!0})})]})}),(0,p.jsxs)(R.A,{children:[0!==n?(0,p.jsx)(p.Fragment,{children:"number"==typeof a?(0,p.jsx)(er.A,{placement:"bottom",content:(0,p.jsx)(eq,{size:l}),children:(0,p.jsxs)(R.A,{direction:"horizontal",children:[(0,p.jsx)(eU,{size:n}),(0,p.jsx)(eK,{size:a})]})}):(0,p.jsxs)(R.A,{direction:"horizontal",children:[(0,p.jsx)(eU,{size:n}),(0,p.jsx)(eq,{size:l})]})}):0!==l?(0,p.jsx)(eq,{size:l}):null,o?(0,p.jsx)(eL,{moduleCount:(null==(r=i.modules)?void 0:r.length)||0}):null,d&&d.length?(0,p.jsx)(L.A,{title:(0,p.jsxs)(R.A,{direction:"vertical",children:[(0,p.jsx)(F.A.Text,{style:{color:"inherit"},children:"This module is concatenated into another container module:"}),d.map(e=>{let{id:t,path:r}=e;if((0,j.isJsDataUrl)(r))return(0,p.jsx)(F.A.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:r},t);let s=(0,ei.relative)((0,ei.dirname)(i.path),r);return s.startsWith("javascript;charset=utf-8;base64,")?(0,p.jsx)(F.A.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===s[0]?s:`./${s}`},t):(0,p.jsx)(F.A.Text,{style:{color:"inherit"},code:!0,children:"."===s[0]?s:`./${s}`},t)})]}),children:(0,p.jsx)(W.A,{color:"green",children:"concatenated"})}):null,(0,p.jsx)(e$,{data:i})]})]})},dirTitle(e,t){let r=function e(t,r){return t.children&&t.children.forEach(t=>{t.isLeaf?r.push(t[eO]):e(t,r)}),r}(e,[]);if(r.length){let e=r.map(e=>s.find(t=>t.path.replace(/\\/g,"/")===e.replace(/\\/g,"/"))),i=(0,q.x)(e,e=>{var t;return(null==e||null==(t=e.size)?void 0:t.parsedSize)||0}),n=(0,q.x)(e,e=>{var t;return(null==e||null==(t=e.size)?void 0:t.sourceSize)||0});return(0,p.jsxs)("div",{className:e_["bundle-tree"],children:[(0,p.jsxs)("div",{className:e_.box,children:[(0,p.jsx)("div",{className:e_.keywords,children:(0,p.jsx)(Q.i,{ellipsis:!0,text:t,keyword:""})}),(0,p.jsx)("div",{className:e_.dividerDiv,children:(0,p.jsx)($.A,{className:e_.divider,dashed:!0})})]}),(0,p.jsx)(R.A,{children:i>0?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(eW,{size:i}),(0,p.jsx)(eY,{size:n})]}):(0,p.jsx)(eY,{size:n})})]})}return t},page:"bundle"}),[y]);return(0,m.useEffect)(()=>{o(""),c(!1)},[t]),(0,m.useEffect)(()=>{c(!1)},[a]),(0,p.jsx)(ec.Provider,{value:{moduleJumpList:h,setModuleJumpList:u},children:(0,p.jsxs)(O.A,{className:e_.bundle,title:`Modules of "${t.path}"`,bodyStyle:{minHeight:n},size:"small",children:[s.length?(0,p.jsxs)(I.A,{children:[(0,p.jsx)(P.A,{span:24,children:(0,p.jsx)(eG,{modules:s,chunks:r,filteredModules:y})}),(0,p.jsx)(P.A,{span:24,children:(0,p.jsxs)(R.A,{children:[(0,p.jsx)(J.E,{placeholder:"search module by keyword",onChange:e=>o(e)},t.path),(0,p.jsx)(g.Ay,{onClick:()=>c(!0),size:"small",icon:(0,p.jsx)(ee.A,{})})]})}),(0,p.jsx)(P.A,{span:24,style:{marginTop:C.or.BasePadding},children:y.length?(0,p.jsx)(eN,{selectable:!1,defaultExpandAll:d||y.length<=20,onExpand:e=>{eT=e},defaultExpandParent:!0,defaultExpandedKeys:(null==eT?void 0:eT.length)?eT:1===v.length?[v[0].key]:[],treeData:v,rootStyle:{maxHeight:"500px",overflow:"auto",border:"1px solid rgba(235, 237, 241)",padding:"14px 20px"}},`tree_${a}_${d}_${t.path}`):(0,p.jsx)(K.A,{description:(0,p.jsx)(F.A.Text,{strong:!0,children:`"${a}" can't match any modules`})})})]}):(0,p.jsx)(K.A,{description:(0,p.jsx)(F.A.Text,{strong:!0,children:`"${t.path}" doesn't have any modules`})}),(0,p.jsx)(eF,{id:(null==h?void 0:h.length)?h[h.length-1]:"",show:f,setShow:x,cwd:l})]})})};var eV=r(19143),eZ=r(85768),eJ=r(27435),eQ=r(99265),eX=r(21384),e0=r(25800),e1=r(98184);r(69064);let e2="dataContainer-lJ0PuO",e5="title-Gj8JxL",e6="description-miJCbD",{DirectoryTree:e4}=et.A,e8=e=>{let{files:t,total:r,showProgress:s=!1,type:i}=e,n=i.toLocaleLowerCase(),l=(0,m.useMemo)(()=>(0,q.x)(t,e=>e.size),[t]);return(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let i=n.includes("image")?"imgs":n,{treeData:a}=(0,b.oc)(e[i].total);return(0,p.jsxs)(R.A,{style:{height:100},align:"center",children:[(0,p.jsx)(e1.A,{type:"circle",percent:+(l/r*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#108ee9"},strokeWidth:12,format:e=>(0,p.jsxs)("div",{className:"percentContainer-VJxs6L",children:[(0,p.jsxs)("span",{style:{marginTop:"10px"},children:[e,"%"]}),(0,p.jsxs)("span",{className:"percentDescription-ymSkb_",children:["total ",i]})]})}),(0,p.jsxs)("div",{style:{marginLeft:"10px"},children:[(0,p.jsxs)("div",{className:e2,children:[(0,p.jsx)("div",{className:e5,children:"Size"}),(0,p.jsx)("div",{className:e6,children:(0,j.formatSize)(l)})]}),(0,p.jsx)(ea.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,p.jsx)(R.A,{style:{textAlign:s?"left":"center"},align:"end",children:(0,p.jsx)(R.A,{direction:"vertical",children:(0,p.jsx)("div",{className:e2,children:(0,p.jsxs)("div",{className:e5,children:[(0,p.jsx)("span",{style:{marginRight:"5px"},children:"Files"}),(0,p.jsx)(x.A,{})]})})})}),children:a.length?(0,p.jsx)(e4,{defaultExpandAll:!0,selectable:!1,treeData:a,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}}):(0,p.jsx)("div",{style:{position:"relative",top:"50%",transform:"translateY(-50%)"},children:(0,p.jsx)(K.A,{style:{height:"100%"}})})}),(0,p.jsx)("div",{className:e6,children:t.length})]})]})}})};var e7=r(23230);r(45545);let{DirectoryTree:e9}=et.A,{useToken:e3}=eV.A,{innerWidth:te}=window,tt=e=>{let{showProgress:t=!1,data:r,total:s,tagBgColor:i,type:n}=e,{token:l}=e3(),a=i||l.colorPrimaryBorderHover;return(0,p.jsx)(e8,{type:n,files:r.files,total:s,showProgress:t,tagBgColor:a})},tr=e=>{let{titles:t,datas:r,bgColor:s,type:i}=e,[n,l]=(0,m.useState)(t[0]),a=(0,m.useMemo)(()=>t.indexOf(n),[t,n]),o=a>=0?a:0,d=i||n||t[0],c=o>=0&&o<r.length?r[o]:r[0]||{};return(0,p.jsx)(e0.j,{title:(0,p.jsxs)("div",{className:"cardTitle-xNmEfV",children:[(0,p.jsx)("div",{className:"title-qIR7dd",children:d}),t.length>1?(0,p.jsx)(eZ.A,{defaultValue:t[0],options:t,onChange:e=>{l(e)},size:"small",style:{transition:"transform 0.3s ease"},value:n}):null]}),value:(0,p.jsx)(tt,{type:d,...c,tagBgColor:null==s?void 0:s.tagBgColor}),boxProps:{style:{background:null==s?void 0:s.bgColor,width:te>1300?"80%":"95%"}}})},ts=e=>{let{errors:t,summary:r}=e,s=(0,j.useDuplicatePackagesByErrors)(t),[i,n]=(0,j.formatSize)(r.all.total.size).split(" "),l=[(0,p.jsx)(tr,{type:"JS",titles:["Total","Initial"],datas:[{data:r.js.total,total:r.all.total.size,showProgress:!0},{data:r.js.initial,total:r.all.total.size,showProgress:!0}]}),(0,p.jsx)(tr,{type:"CSS",titles:["Total","Initial"],datas:[{data:r.css.total,total:r.all.total.size,showProgress:!0},{data:r.css.initial,total:r.all.total.size,showProgress:!0}]}),(0,p.jsx)(tr,{titles:["Images","Fonts","Media"],datas:[{data:r.imgs.total,total:r.all.total.size,showProgress:!0},{data:r.fonts.total,total:r.all.total.size,showProgress:!0},{data:r.media.total,total:r.all.total.size,showProgress:!0}]}),(0,p.jsx)(tr,{type:"HTML",titles:["HTML Files"],datas:[{data:r.html.total,total:r.all.total.size,showProgress:!0}]})];return(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let{treeData:t}=(0,b.oc)(e.all.total);return(0,p.jsxs)("div",{className:"container-wODg_6",children:[(0,p.jsxs)("div",{className:"summary-zj0ygd",children:[(0,p.jsx)(e7.h,{title:(0,p.jsx)(ea.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,p.jsxs)("div",{style:{color:"#000000a6"},children:[(0,p.jsx)("span",{style:{marginRight:"5px"},children:"Total Files"}),(0,p.jsx)(x.A,{})]}),children:(0,p.jsx)(e9,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}})}),description:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:"description-o0ffpO",children:i}),(0,p.jsx)("span",{className:"unit-n5Yty6",children:n}),(0,p.jsxs)("div",{className:"totalNumber-UweUl8",children:[(0,p.jsx)("span",{style:{marginRight:"7px"},children:"Number of files"}),(0,p.jsx)("span",{style:{fontWeight:500},children:r.all.total.count})]})]}),icon:(0,p.jsx)(eJ.A,{style:{background:"#3874F6"},shape:"circle",icon:(0,p.jsx)(eQ.A,{style:{fontSize:"18px"}})}),style:{marginBottom:"12px",minWidth:"210px"}}),(0,p.jsx)(e7.h,{style:{minWidth:"210px"},title:(0,p.jsx)("div",{style:{margin:"4px 0"},children:(0,p.jsx)("span",{style:{marginRight:"5px"},children:"Duplicate Packages"})}),description:s.length,icon:(0,p.jsx)(eJ.A,{style:{background:"#13C2C2"},shape:"circle",icon:(0,p.jsx)(eX.A,{style:{fontSize:"18px"}})})})]}),(0,p.jsx)($.A,{style:{height:"200px"},type:"vertical"}),(0,p.jsx)("div",{className:"chartsContainer-msRyOd",children:l.map((e,t)=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"chart-GmBMa_",children:e},t),t!==l.length-1?(0,p.jsx)($.A,{style:{height:"200px"},type:"vertical"},`${t}-divider`):null]}))})]})}})};r(70232);var ti=r(32354),tn=r(23938),tl=r(95134),ta=r(13238),to=r(21919),td=r(78172);let{Search:tc}=ti.A,th=e=>{let{onModuleClick:t,onClose:r,open:s,setOpen:i,isIcon:n=!1}=e,[l,a]=(0,m.useState)(!1),[o,d]=(0,m.useState)(""),[c,h]=(0,m.useState)(""),u=void 0!==s?s:l,f=i||a,x=(0,m.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[s,i]=t;d(s)},[]),y=()=>{f(!0)},j=()=>{f(!1),null==r||r()},v=()=>{f(!1),null==r||r()};return(0,p.jsxs)(p.Fragment,{children:[n?(0,p.jsx)(td.A,{onClick:y}):(0,p.jsx)(g.Ay,{className:e_["search-btn"],color:"cyan",onClick:y,children:"Search Module"}),(0,p.jsx)(to.zW,{api:T.hp.ServerAPI.API.GetSearchModules,body:{moduleName:String(o)},children:e=>{let s=Object.keys(e)[0];return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(tn.A,{className:e_.modal,title:"Search Modules",onOk:j,onCancel:v,open:u,width:"65rem",footer:"",children:[(0,p.jsx)(tc,{placeholder:"input search module name",allowClear:!0,onSearch:x,style:{width:500}}),s?(0,p.jsx)(G.A,{defaultActiveKey:s,tabPosition:"top",onChange:e=>h(e),items:Object.keys(e).map((i,n)=>({label:e[i],key:i,children:tu(o,c||s,e=>{null==t||t(e),f(!1),null==r||r()})}))}):(0,p.jsx)(K.A,{description:"No modules found."})]})})}})]})},tu=(e,t,r)=>(0,p.jsx)(to.zW,{api:T.hp.ServerAPI.API.GetSearchModuleInChunk,body:{moduleName:String(e),chunk:t},children:t=>(0,p.jsx)(p.Fragment,{children:(null==t?void 0:t.length)!==0?(0,p.jsx)(tl.A,{className:e_["search-modal-list"],loading:!t.length,itemLayout:"horizontal",pagination:{position:"bottom",align:"center"},dataSource:t,renderItem:t=>{let s=t.relativePath.split(e);return(0,p.jsx)(tl.A.Item,{className:r?"search-list-item clickable":"search-list-item",onClick:r?()=>r(t):void 0,children:(0,p.jsx)(ta.A,{avatar:!0,title:!1,loading:!t.path,active:!0,children:(0,p.jsx)(tl.A.Item.Meta,{description:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(F.A.Text,{code:!0,children:"Module:"}),s.map((t,r)=>r<s.length-1?(0,p.jsxs)(F.A.Text,{style:{fontWeight:200},children:[t,(0,p.jsx)(F.A.Text,{strong:!0,style:{fontWeight:600},children:e},`${t}-${r}-strong`)]},`${t}-${r}`):(0,p.jsx)(F.A.Text,{style:{fontWeight:200},children:t}))]})},`${t.path}-${t.relativePath}-meta`)})},`${t.path}-${t.relativePath}`)}}):(0,p.jsx)(K.A,{})})});var tp=r(62188),tm=r(22570),tf=r(26658),tg=r(30574),tx=r(61223),ty=r(44759),tj=r(46151),tv=r(28322),tA=r(37027),tS=r(33138),tb=r(21737);r(35402);let tM="collapsed-hxz3Bf";var tk=r(57568),tz=r(36473),tw=r(45175),tI=r(30029);function tP(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t>>>0}function tC(e,t){let r=parseInt(e.slice(1,3),16),s=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16),n=Math.round(r*t+255*(1-t)),l=Math.round(s*t+255*(1-t)),a=Math.round(i*t+255*(1-t));return`#${n.toString(16).padStart(2,"0")}${l.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}`}tz.Y([tm.a,tf.a,tg.a,tx.a]);let tE=(0,m.memo)(e=>{let{treeData:t,sizeType:r,style:s,onChartClick:i,highlightNodeId:n,centerNodeId:l,rootPath:a}=e,[o,d]=(0,m.useState)(null),c=m.useRef(null),h=m.useRef([]),u=m.useRef(null);return(0,m.useEffect)(()=>{if(!t)return;let e=t.map((e,s)=>(function e(t){var s;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,c=arguments.length>6?arguments[6]:void 0,h=a||tk.GB[i%tk.GB.length],u=0===l?t.path||t.name||"":c||"",p=null==(s=t.children)?void 0:s.map((r,s)=>{var n;return e(r,i,l+1,h,s,(null==(n=t.children)?void 0:n.length)||0,u)}),m=0;"stat"===r?m=t.sourceSize||0:"parsed"===r?m=t.bundledSize||0:"gzip"===r?m=t.gzipSize||0:"value"===r&&(m=t.value||0),!m&&t.value&&(m=t.value);let f=tP(0===l?t.path||t.name||"":`${u}::${t.path||t.name||""}`),g=n===f,x=0===l?1:Math.max(.35,1-.15*l),y=0===l?1:Math.max(.4,1-.15*l),j=d>1?1-o/(d-1)*.15:1,v=g?"#fff5f5":0===l?tC(h,.8):tC(h,x*j),A=g?"#ff4d4f":0===l?h:tC(h,y*j),S=.4>function(e){let[t,r,s]=[parseInt(e.slice(1,3),16)/255,parseInt(e.slice(3,5),16)/255,parseInt(e.slice(5,7),16)/255].map(e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return .2126*t+.7152*r+.0722*s}(v),b=S?"#ffffff":"#000000",M={id:f,name:t.name,value:m,path:t.path||t.name,sourceSize:t.sourceSize??("stat"===r?m:void 0),bundledSize:t.bundledSize??("parsed"===r?m:void 0),gzipSize:t.gzipSize??("gzip"===r?m:void 0),moduleId:t.id,itemStyle:{borderWidth:g?4:1,color:v,borderColor:A,...0===l&&{gapWidth:2}},label:{show:!0,color:b,textBorderColor:S?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.1)",textBorderWidth:1},upperLabel:0===l?void 0:{show:!0,color:b}};return p&&p.length>0&&(M.children=p),g?M.emphasis={itemStyle:{borderColor:"#ff4d4f",borderWidth:4,color:"#fff5f5"}}:M.emphasis={itemStyle:{color:v,borderColor:A,borderWidth:g?4:1}},M})(e,s,0,void 0,s,t.length,void 0)).filter(e=>"number"==typeof e.value&&e.value>0||e.children&&e.children.length>0);h.current=e,d({color:tk.GB,tooltip:{padding:10,backgroundColor:"#fff",borderColor:"#eee",borderWidth:1,textStyle:{color:"rgba(0, 0, 0, 0.8)"},confine:!0,extraCssText:"max-width: 450px; word-wrap: break-word;",position:function(e,t,r,s,i){let n={top:e[1]+10};return e[0]<i.viewSize[0]/2?n.left=e[0]+10:n.right=i.viewSize[0]-e[0]+10,n},formatter:function(e){let t=e.data||{},s="string"==typeof t.path?t.path:"string"==typeof t.name?t.name:String(t.name??"");if(a&&s){let e=a.replace(/\\/g,"/").replace(/\/$/,""),t=s.replace(/\\/g,"/");t.startsWith(e+"/")?s=t.slice(e.length+1):t===e&&(s="")}let i="number"==typeof t.sourceSize&&t.sourceSize>0?t.sourceSize:"number"==typeof t.value&&t.value>0&&"stat"===r?t.value:void 0,n="number"==typeof t.bundledSize&&t.bundledSize>0?t.bundledSize:void 0,l="number"==typeof t.gzipSize&&t.gzipSize>0?t.gzipSize:void 0;function o(e,t,r){return`<div class="tooltip-row-sZbl0R">
|
|
84
|
+
<span class="tooltip-label-INs_JK" style="color: ${r};">${e}</span>
|
|
85
|
+
<span style="color: ${r};">${t}</span>
|
|
86
|
+
</div>`}let d=[];return void 0!==i&&i>0&&d.push(o("Stat size",(0,j.formatSize)(i),"#52c41a")),void 0!==n&&n>0&&d.push(o("Parsed size",(0,j.formatSize)(n),"#d96420")),void 0!==l&&l>0&&d.push(o("Gzipped size",(0,j.formatSize)(l),"#1677ff")),`
|
|
87
|
+
<div style="font-family: sans-serif; font-size: 12px; line-height: 1.5;">
|
|
88
|
+
<div style="margin-bottom: 6px; max-width: 400px; word-wrap: break-word; overflow-wrap: break-word; word-break: break-all; white-space: normal; color: rgba(0, 0, 0, 0.8);">${tw.Me(s)}</div>
|
|
89
|
+
${d.join("")}
|
|
90
|
+
</div>
|
|
91
|
+
`}},series:[{type:"treemap",itemStyle:{gapColor:"#ffffff"},label:{show:!0,formatter:"{b}",fontSize:12,position:"inside",fontWeight:"normal",textBorderWidth:1,padding:[4,8,4,8]},upperLabel:{show:!0,height:30,fontSize:12,fontWeight:"normal",padding:[0,0,0,4]},levels:[{itemStyle:{borderWidth:0,gapWidth:4,gapColor:"#ffffff"}},{itemStyle:{borderColorAlpha:[1,.3],borderWidth:5,gapWidth:4,gapColor:"#ffffff"},upperLabel:{show:!0,color:"#ffffff",fontSize:12,height:30}}],data:e,breadcrumb:{show:!0,left:"center",top:"bottom",height:22,emptyItemWidth:25,itemStyle:{color:"#999",borderColor:"transparent",borderWidth:0,borderRadius:0},emphasis:{itemStyle:{color:"#333"}},textStyle:{fontFamily:"sans-serif",fontSize:12,color:"#666"}},roam:!0,nodeClick:!1,zoomToNodeRatio:.7,animationDurationUpdate:500,width:"100%",height:"100%",top:-10,bottom:30,left:0,right:0,zoomLimit:{min:.5,max:5}}]})},[t,r,n,a]),(0,m.useEffect)(()=>{if(l&&c.current&&o){let e=c.current.getEchartsInstance();if(e){let t=function(e,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let i of e){let e="string"==typeof i.name?i.name:String(i.name??""),n=[...s,e];if(i.id===r)return{name:e,path:n};if(i.children){let e=t(i.children,r,n);if(e)return e}}return null};setTimeout(()=>{let r=t(h.current,l);if(!r)return;let s=r.name;try{e.dispatchAction({type:"highlight",seriesIndex:0,name:s})}catch(e){console.error("Failed to highlight node with name:",s,e)}for(let t of[()=>e.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,targetNodeId:String(l)}),()=>e.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,name:s}),()=>e.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,name:r.path.join("/")}),()=>r.path.length>0&&e.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,name:r.path[r.path.length-1]})])try{t();return}catch(e){console.error("Failed to zoom to node with id:",l,e)}console.warn("Failed to zoom to node with id:",l)},200)}}},[l,o]),(0,m.useEffect)(()=>()=>{u.current&&window.clearTimeout(u.current)},[]),o?(0,p.jsxs)("div",{className:"chart-container-gPlZC7",style:s,children:[(0,p.jsx)(ty.A,{message:"If parsed size lacks detailed module information, you can enable sourceMap when RSDOCTOR = true. This is because Rsdoctor relies on SourceMap to obtain Parsed Size. Rspack provides SourceMap information to Rsdoctor by default without affecting the build output.",type:"info",showIcon:!0,style:{marginBottom:0}}),(0,p.jsx)(tp.A,{ref:c,option:o,echarts:tI,onEvents:{click:e=>{u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{if(c.current){let t=c.current.getEchartsInstance(),r=null==e?void 0:e.data;t&&(null==r?void 0:r.id)!==void 0&&t.dispatchAction({type:"treemapZoomToNode",seriesIndex:0,targetNodeId:String(r.id)})}},180)},dblclick:e=>{u.current&&(window.clearTimeout(u.current),u.current=null),null==i||i(e)}},style:{width:"100%",height:"100%"}})]}):null}),tD=e=>{let{treeData:t,onChartClick:r,bundledSize:s=!0}=e;return(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetProjectInfo,children:e=>(0,p.jsx)(t_,{treeData:t,onChartClick:r,bundledSize:s,rootPath:e.root})})},t_=e=>{let{treeData:t,onChartClick:r,bundledSize:s=!0,rootPath:i}=e,n=(0,m.useMemo)(()=>t.map(e=>e.name),[t]),[l,a]=(0,m.useState)(n),[o,d]=(0,m.useState)(!1),[c,h]=(0,m.useState)(s?"parsed":"stat"),[u,f]=(0,m.useState)(""),[g,y]=(0,m.useState)(!1),[v,A]=(0,m.useState)(),[S,b]=(0,m.useState)(),[M,k]=(0,m.useState)(""),[z,w]=(0,m.useState)(!1),[I,P]=(0,m.useState)(""),C=m.useRef(null),E=(0,m.useCallback)(e=>{null==r||r(e);let t=e.data,s=null==t?void 0:t.moduleId;void 0!==s&&(k(s),w(!0))},[r]),D=(0,m.useCallback)(()=>{if(C.current){let e=C.current;if(e.requestFullscreen)e.requestFullscreen().then(()=>y(!0)).catch(e=>console.error("Failed to enter fullscreen:",e));else if(e.webkitRequestFullscreen)try{e.webkitRequestFullscreen(),y(!0)}catch(e){console.error("Failed to enter fullscreen (webkit):",e)}else if(e.mozRequestFullScreen)try{e.mozRequestFullScreen(),y(!0)}catch(e){console.error("Failed to enter fullscreen (moz):",e)}else if(e.msRequestFullscreen)try{e.msRequestFullscreen(),y(!0)}catch(e){console.error("Failed to enter fullscreen (ms):",e)}else console.error("Fullscreen API is not supported in this browser.")}},[]),_=(0,m.useCallback)(()=>{document.exitFullscreen().then(()=>y(!1)).catch(e=>console.error("Failed to exit fullscreen:",e))},[]),N=(0,m.useCallback)(()=>{g?_():D()},[g,D,_]);(0,m.useEffect)(()=>{let e=()=>{y(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[]);let B=(0,m.useMemo)(()=>{let e=t.filter(e=>l.includes(e.name));if(I.trim()){let t=I.toLowerCase();e=e.filter(e=>e.name.toLowerCase().includes(t))}return e},[t,l,I]),R=(0,m.useMemo)(()=>{if(!u.trim())return[];let e=RegExp(u,"i"),t=[],r=(s,i)=>{let n=i||s.path||s.name||"";if(s.path&&e.test(s.path)){let e=tP(i?`${i}::${s.path}`:s.path);t.push({path:s.path,nodeId:e})}s.children&&s.children.forEach(e=>r(e,n))};return B.forEach(e=>r(e)),t},[B,u]),$=(0,m.useCallback)(e=>{A(e),b(e)},[]),F=(0,m.useCallback)(e=>{if(!i||!e)return e;let t=i.replace(/\\/g,"/").replace(/\/$/,""),r=e.replace(/\\/g,"/");return r.startsWith(t+"/")?r.slice(t.length+1):r===t?"":e},[i]),O=(0,m.useCallback)((e,t)=>"stat"===t?e.sourceSize||0:"parsed"===t?e.bundledSize||0:"gzip"===t?e.gzipSize||0:"value"===t?e.value||0:e.value?e.value:0,[]),G=(0,m.useCallback)((e,t)=>{let r=O(e,t);if(e.children&&e.children.length>0){let s=e.children.reduce((e,r)=>e+G(r,t),0);(0===r||!e.path&&s>0)&&(r=s)}return r},[O]),L=(0,m.useCallback)((e,r)=>{let s=t.find(t=>t.name===e);return s?G(s,r||c):0},[t,c,G]);return(0,p.jsxs)("div",{className:"treemap-DOrYiA",ref:C,children:[(0,p.jsx)("button",{className:"fullscreen-button-jVdrxO",onClick:N,title:g?"Exit fullscreen":"Enter fullscreen","aria-label":g?"Exit fullscreen":"Enter fullscreen",children:g?(0,p.jsx)(tA.A,{}):(0,p.jsx)(tS.A,{})}),(0,p.jsxs)("div",{className:`sidebar-Pww0Wm ${o?tM:""}`,children:[(0,p.jsx)("div",{className:`sidebar-toggle-NaGZQP ${o?tM:""}`,onClick:()=>d(!o),children:o?(0,p.jsx)(x.A,{}):(0,p.jsx)(tb.A,{})}),(0,p.jsxs)("div",{className:"sidebar-content-WuURH8",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("h4",{children:"Treemap sizes"}),(0,p.jsxs)(tj.A.Group,{value:c,onChange:e=>h(e.target.value),size:"small",buttonStyle:"solid",children:[(0,p.jsx)(tj.A.Button,{value:"stat",children:"Stat"}),(0,p.jsx)(tj.A.Button,{value:"parsed",children:"Parsed"}),(0,p.jsx)(tj.A.Button,{value:"gzip",children:"Gzipped"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h4",{children:"Show chunks"}),(0,p.jsx)(ti.A,{placeholder:"Search chunks",value:I,onChange:e=>P(e.target.value),suffix:(0,p.jsx)(td.A,{style:{color:"#ccc"}}),allowClear:!0,size:"small",style:{marginBottom:8}}),(0,p.jsx)(tv.A,{indeterminate:l.length>0&&l.length<n.length,checked:l.length===n.length,onChange:e=>a(e.target.checked?n:[]),className:"all-none-checkbox-kw3p6X",children:"All"}),(0,p.jsx)("div",{className:"chunk-list-TUqr7U",style:{maxHeight:180,overflowY:"auto"},children:n.filter(e=>e.toLowerCase().includes(I.toLowerCase())).map(e=>(0,p.jsxs)("div",{className:"chunk-item-dQ0XI7",style:{height:15,lineHeight:"15px"},children:[(0,p.jsx)(tv.A,{checked:l.includes(e),onChange:t=>{t.target.checked?a([...l,e]):a(l.filter(t=>t!==e))},children:(0,p.jsx)("span",{title:e,children:e})}),(0,p.jsx)("span",{className:"size-tag-EM4AKE",children:(0,j.formatSize)(L(e,"value"))})]},e))})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h4",{children:"Search modules"}),(0,p.jsx)(ti.A,{placeholder:"Enter regexp",value:u,onChange:e=>{f(e.target.value),A(void 0),b(void 0)},suffix:(0,p.jsx)(td.A,{style:{color:"#ccc"}}),allowClear:!0,size:"small"}),u.trim()&&R.length>0&&(0,p.jsxs)("div",{className:"search-results-emVgaj",children:[(0,p.jsxs)("div",{className:"search-results-header-oyQ0jw",children:["Found ",R.length," file",R.length>1?"s":""]}),(0,p.jsx)("div",{className:"search-results-list-FSMG6d",children:R.map((e,t)=>{let r=F(e.path);return(0,p.jsx)("div",{className:"search-result-item-IZR6nt",onClick:()=>$(e.nodeId),title:e.path,children:r||e.path},t)})})]}),u.trim()&&0===R.length&&(0,p.jsxs)("div",{className:"search-results-empty-_khCd5",children:['No files found matching "',u,'"']})]})]})]}),(0,p.jsxs)("div",{className:"chart-wrapper-w7fJr6",children:[(0,p.jsx)(tE,{treeData:B,sizeType:c,onChartClick:E,highlightNodeId:v,centerNodeId:S,rootPath:i,style:{width:"100%",height:"100%"}}),M?(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetAllModuleGraph,body:{},children:e=>(0,p.jsx)(eD,{cwd:i,moduleId:M,modules:e,show:z,setShow:w})}):null]})]})},{Option:tN}=B.A,tT=e=>{let{errors:t,cwd:r,summary:s,entryPoints:i}=e,[n,l]=(0,m.useState)([]),[a,o]=(0,m.useState)(0),[d,c]=(0,m.useState)(""),[h,u]=(0,m.useState)(0),[f,x]=(0,m.useState)(!1),[y,v]=(0,m.useState)(""),[A,S]=(0,m.useState)(""),[b,M]=(0,m.useState)(null),{showCode:k,codeDrawerComponent:z}=(0,H.Y)("Do not have the codes of assets. If you use the lite or brief mode, there will have codes."),{t:w}=(0,j.useI18n)(),ee=s.all.total.files,et=(0,m.useCallback)(e=>t=>{"module"===e?v(t):"chunk"===e&&S(t)},[]),er=e=>(0,p.jsxs)(B.A,{defaultValue:"kb",onChange:et(e),children:[(0,p.jsx)(tN,{value:"kb",children:"KB"}),(0,p.jsx)(tN,{value:"mb",children:"MB"})]}),es=(0,m.useCallback)((0,Y.s)(e=>{o("mb"===y?1024*e*1024:1024*e)},300),[]),ei=(0,m.useCallback)((0,Y.s)(e=>{u("mb"===A?1024*e*1024:1024*e)},300),[]),en=(0,m.useMemo)(()=>{let e=ee.slice();return d&&(e=e.filter(e=>e.path.indexOf(d)>-1)),h>0&&(e=e.filter(e=>e.size>=h)),n.length&&(e=e.filter(e=>!!n.some(t=>t.assets.includes(e.path)))),e.sort((e,t)=>{let r=+(e.path.indexOf("/")>-1);return(t.path.indexOf("/")>-1)-r})},[ee,n,d,h]);(0,m.useEffect)(()=>{s.all.total.files.forEach(e=>{let t;"js"===((t=e.path.split(".")).length>1?t.pop():"")&&M(e.path)})},[s.all.total.files]);let el=(0,m.useMemo)(()=>(0,j.createFileStructures)({files:en.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:r,initial:s,path:i,content:n}=en.find(t=>t.path===e);return(0,p.jsxs)("div",{className:e_.assetBox,onClick:()=>{M(i)},children:[(0,p.jsx)(Q.i,{text:t,keyword:"",className:e_.fileText}),(0,p.jsxs)(R.A,{size:"small",className:e_.assetsTag,children:[(0,p.jsx)($.A,{type:"vertical"}),(0,p.jsx)(F.A.Text,{style:{color:"#4FD233"},children:(0,j.formatSize)(r)}),(0,p.jsx)($.A,{type:"vertical"}),s?(0,p.jsx)(F.A.Text,{style:{color:"#009A9E"},children:"initial"}):null,(0,p.jsx)(E.A,{style:{fontSize:14,padding:0},onClick:()=>k({code:n,filePath:i})})]})]})}}),[en]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(ts,{cwd:r,errors:t,summary:s}),(0,p.jsx)(O.A,{styles:{body:{paddingTop:0}},children:(0,p.jsx)(G.A,{size:"middle",items:[{key:"tree",label:(0,p.jsxs)(R.A,{children:[(0,p.jsx)(F.A.Text,{children:"Tree Graph"}),(0,p.jsx)(L.A,{overlayStyle:{maxWidth:380},overlayInnerStyle:{marginLeft:16,padding:10},color:"white",title:(0,p.jsxs)(R.A,{direction:"vertical",color:"white",size:"middle",children:[(0,p.jsx)(I.A,{children:(0,p.jsxs)(P.A,{children:[(0,p.jsx)(W.A,{color:"cyan",style:{margin:0},children:"initial"}),(0,p.jsx)(F.A.Text,{style:{marginLeft:4},children:"Identify whether the chunk is an initial chunk."})]})}),(0,p.jsx)(I.A,{children:(0,p.jsxs)(P.A,{children:[(0,p.jsx)(W.A,{color:"green",style:{margin:0},children:"concatenated"}),(0,p.jsx)(F.A.Text,{style:{marginLeft:4},children:"Identify whether the module is a concatenated module"}),(0,p.jsx)(L.A,{overlayStyle:{maxWidth:408},placement:"bottom",color:"white",title:(0,p.jsx)(R.A,{direction:"vertical",color:"white",children:(0,p.jsx)(I.A,{children:(0,p.jsxs)(P.A,{children:[(0,p.jsx)(F.A.Text,{strong:!0,children:"Concatenated Module"}),(0,p.jsx)(F.A.Text,{children:': A performance optimization where multiple modules are merged (or "hoisted") into a single scope instead of wrapping each module in separate function closures. This reduces the bundle size and improves runtime performance by minimizing function call overhead.'})]})})}),children:(0,p.jsx)(D.A,{style:{color:"rgba(0,0,0,.45)",marginLeft:4}})}),(0,p.jsx)(F.A.Text,{children:"."})]})}),(0,p.jsx)(I.A,{children:(0,p.jsxs)(P.A,{children:[(0,p.jsx)(g.Ay,{size:"small",icon:(0,p.jsx)(_.A,{})}),(0,p.jsx)(F.A.Text,{style:{marginLeft:4},children:"Open the code."})]})}),(0,p.jsx)(I.A,{children:(0,p.jsxs)(P.A,{children:[(0,p.jsx)(g.Ay,{size:"small",icon:(0,p.jsx)(N.A,{})}),(0,p.jsx)(F.A.Text,{style:{marginLeft:4},children:"View the module dependency, that is, module reasons in stats.json."})]})}),(0,p.jsx)(I.A,{children:(0,p.jsxs)(P.A,{children:[(0,p.jsx)(W.A,{color:"purple",children:"Bundled: 15.77 KB"}),(0,p.jsx)(F.A.Text,{children:"The final size of the output files after processing, bundling, and optimization. This is what is delivered to the browser."})]})}),(0,p.jsx)(I.A,{children:(0,p.jsxs)(P.A,{children:[(0,p.jsx)(W.A,{color:"orange",children:"Source: 60.46 KB"}),(0,p.jsx)(F.A.Text,{children:"The original size of your source code files before any processing or transformations. This is the raw size of your code as you wrote it."})]})})]}),children:(0,p.jsx)(D.A,{style:{color:"rgba(0,0,0,.45)"}})})]}),children:(0,p.jsxs)(R.A,{direction:"vertical",children:[(0,p.jsxs)(I.A,{align:"middle",gutter:[C.or.BasePadding,C.or.BasePadding],children:[i&&i.length?(0,p.jsx)(P.A,{children:(0,p.jsx)(B.A,{mode:"multiple",value:n.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{l(e.map(e=>i.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{l([])},children:i.map(e=>(0,p.jsx)(B.A.Option,{value:e.name,children:(0,p.jsx)(R.A,{children:(0,p.jsx)(V.Ex,{label:e.name,value:(0,j.formatSize)(e.size),tooltip:e.name})})},e.name))})}):null,(0,p.jsx)(P.A,{children:(0,p.jsx)(J.E,{placeholder:"search asset by keyword",onChange:e=>{c(e),x(!1)}})}),(0,p.jsx)(P.A,{span:6,children:(0,p.jsx)(U.A,{min:0,style:{width:"95%"},addonBefore:(0,p.jsxs)(R.A,{children:[(0,p.jsx)(F.A.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,p.jsx)(L.A,{title:w("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,p.jsx)(D.A,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>ei(Number(e)),addonAfter:er("chunk")})}),(0,p.jsx)(P.A,{span:6,children:(0,p.jsx)(U.A,{min:0,style:{width:"95%"},addonBefore:(0,p.jsxs)(R.A,{children:[(0,p.jsx)(F.A.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,p.jsx)(L.A,{title:w("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,p.jsx)(D.A,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{es(Number(e))},addonAfter:er("module")})})]}),(0,p.jsx)(I.A,{children:(0,p.jsx)(th,{})}),(0,p.jsx)(I.A,{align:"middle",gutter:[C.or.BasePadding,C.or.BasePadding],children:(0,p.jsx)(P.A,{span:24,children:en.length?(0,p.jsxs)(I.A,{gutter:C.or.BasePadding,children:[(0,p.jsx)(P.A,{span:6,children:(0,p.jsx)(O.A,{title:(0,p.jsxs)(R.A,{children:[(0,p.jsx)(F.A.Text,{children:w("Output Assets List")}),(0,p.jsx)($.A,{type:"vertical"}),(0,p.jsx)(L.A,{title:`total assets count is ${ee.length}, the filtered assets count is ${en.length}`,children:(0,p.jsxs)(F.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[en.length," /"," ",ee.length]})}),(0,p.jsx)($.A,{type:"vertical"}),(0,p.jsx)(F.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,j.formatSize)((0,q.x)(en,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:600},children:(0,p.jsx)(Z.h,{className:e_.assets,treeData:el,autoExpandParent:!0,defaultExpandAll:f||en.length<=20},`tree_${d}_${f}`)})}),(0,p.jsx)(P.A,{span:18,children:b?(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetAssetDetails,body:{assetPath:b},children:e=>(0,p.jsx)(eH,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:600,moduleSizeLimit:a,root:r})}):(0,p.jsx)(O.A,{bodyStyle:{height:600},children:(0,p.jsx)(K.A,{description:(0,p.jsx)(F.A.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,p.jsx)(K.A,{})})})]})},{key:"treemap",label:"Treemap",children:(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetProjectInfo,children:e=>{let{isRspack:t,hasSourceMap:r}=eS.l5.checkSourceMapSupport(e.configs);return(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetSummaryBundles,children:e=>{let s=e.filter(e=>{let t;return"js"===(t=e.asset.path.toLowerCase().split(".").pop()||"")||"cjs"===t||"mjs"===t||"bundle"===t||"css"===t||"html"===t}).map(e=>({name:e.asset.path,value:e.asset.size,children:(0,j.flattenTreemapData)(e.modules).children}));return(0,p.jsx)(tD,{treeData:s,bundledSize:r||t})}})}})}],defaultActiveKey:"tree"})})]}),z]})},tB=()=>{let{project:e}=(0,k.L)();if(!e)return null;let{root:t,errors:r}=e;return(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetEntryPoints,children:s=>(0,p.jsx)(tT,{cwd:t,errors:r,summary:e,entryPoints:s})})})},tR="BundleSize",t$=T.Kj.RsdoctorClientRoutes.BundleSize,tF=()=>(0,p.jsx)(I.A,{children:(0,p.jsx)(P.A,{span:24,style:{marginBottom:C.or.BasePadding},children:(0,p.jsx)(tB,{})})});var tO=r(54050),tG=r(85333),tL=r(76627),tW=r(47001);let tU=(0,X.eN)({api:T.hp.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{root:r}=t,[s,i]=(0,m.useState)({filename:"",loaders:[],layer:""}),[n,l]=(0,m.useState)(0);return(0,p.jsxs)(R.A,{direction:"vertical",style:{width:"100%"},children:[(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetLoaderNames,children:e=>(0,p.jsx)(tG.F,{onChange:i,loaderNames:e})}),(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetLoaderChartData,children:e=>{let t=e.filter(e=>(0,tW.ak)(e.resource,e.loader,s.filename,s.loaders,e.layer,null==s?void 0:s.layer));return 0===n?(0,p.jsx)(tL.z,{loaders:t,cwd:r}):(0,p.jsx)(p.Fragment,{})}})]})}});var tK=r(58359),tY=r(19883),tq=r(83731);let tH="Loaders Timeline",tV=T.Kj.RsdoctorClientRoutes.WebpackLoaderOverall,tZ=()=>{let{t:e}=(0,tq.B)();return(0,p.jsx)(y.Zp,{title:(0,p.jsxs)(tK.Space,{align:"baseline",children:[(0,p.jsx)(tK.Typography.Title,{level:5,style:{margin:0},children:"Loader Timeline"}),(0,p.jsx)(tK.Popover,{content:(0,p.jsxs)("div",{children:[e("AsyncLoaderInfo"),(0,p.jsx)("a",{href:"https://rsdoctor.rs/guide/more/faq#cssextractrspackplugin-%E7%9A%84-loader-%E8%80%97%E6%97%B6%E8%BF%87%E9%95%BF%E9%97%AE%E9%A2%98",target:"_blank",rel:"noreferrer",children:e("Details")})]}),title:"Info",children:(0,p.jsx)(tK.Tag,{icon:(0,p.jsx)(tY.A,{}),color:"warning",children:"Info"})})]}),extra:(0,p.jsx)(tO.U,{defaultKeys:["module"]}),children:(0,p.jsx)(tU,{})})};var tJ=r(35500),tQ=r(17400),tX=r(24364),t0=r(45742);let t1=(0,X.eN)({api:T.hp.ServerAPI.API.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:e=>{let{cwd:t}=e,[r,s]=(0,m.useState)({filename:"",loaders:[],layer:""});return(0,p.jsx)(tQ.Q.Consumer,{children:e=>(0,p.jsx)(tJ.Ay,{locale:(0,j.getLocale)(e.locale),theme:{token:{padding:16,fontSize:14}},children:(0,p.jsxs)("div",{className:t0.A.loaderAnalysis,children:[(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetLoaderNames,children:e=>(0,p.jsx)(tG.F,{onChange:e=>s(e),loaderNames:e})}),(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetLoaderFileTree,children:e=>(0,p.jsx)(tX.h,{filename:r.filename,filetree:e,loaders:r.loaders,layer:r.layer,cwd:t})})]})})})}});var t2=r(25205);let t5="Loaders Analysis",t6=T.Kj.RsdoctorClientRoutes.WebpackLoaderAnalysis,{useToken:t4}=eV.A,t8=()=>{let{token:e}=t4();return(0,p.jsx)(y.Zp,{title:(0,p.jsxs)(R.A,{align:"baseline",children:[(0,p.jsx)(F.A.Title,{level:5,style:{margin:0},children:"Loader Analysis"}),(0,p.jsx)(er.A,{content:(0,p.jsxs)("div",{children:[(0,t2.t)("AsyncLoaderInfo"),(0,p.jsx)("a",{href:"https://rsdoctor.rs/guide/more/faq#cssextractrspackplugin-%E7%9A%84-loader-%E8%80%97%E6%97%B6%E8%BF%87%E9%95%BF%E9%97%AE%E9%A2%98",target:"_blank",rel:"noreferrer",children:(0,t2.t)("Details")})]}),title:"Info",children:(0,p.jsx)(W.A,{icon:(0,p.jsx)(tY.A,{}),color:"warning",children:"Info"})})]}),extra:(0,p.jsx)(tO.U,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:e.padding,height:800},children:(0,p.jsx)(t1,{})})};var t7=r(45044),t9=r(12644),t3=r(91671);r(38169);let re="Plugins Analysis",rt=T.Kj.RsdoctorClientRoutes.WebpackPlugins,rr=()=>{let[e,t]=(0,m.useState)([]),[r,s]=(0,m.useState)([]);return(0,p.jsx)("div",{children:(0,p.jsx)(O.A,{title:"Plugins Overall",bodyStyle:{paddingTop:C.or.BasePadding/3},extra:(0,p.jsx)(tO.U,{defaultKeys:["plugins"]}),children:(0,p.jsxs)(R.A,{direction:"vertical",style:{width:"100%",padding:"0 30px"},children:[(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetPluginSummary,children:e=>{let{hooks:r,tapNames:i}=e;return(0,p.jsxs)(R.A,{style:{marginBottom:C.or.BasePadding/2},children:[(0,p.jsxs)(ti.A.Group,{compact:!0,children:[(0,p.jsxs)(g.Ay,{children:[(0,p.jsx)(t7.A,{}),(0,p.jsx)(F.A.Text,{children:"Plugin Tap Names"})]}),(0,p.jsx)(B.A,{mode:"multiple",allowClear:!0,className:"plugin-select",style:{width:300},popupMatchSelectWidth:!0,onChange:e=>{t(e)},children:i.map(e=>(0,p.jsx)(B.A.Option,{label:e,value:e,children:e},e))})]}),(0,p.jsxs)(ti.A.Group,{compact:!0,children:[(0,p.jsxs)(g.Ay,{children:[(0,p.jsx)(t9.A,{}),(0,p.jsx)(F.A.Text,{children:"Hooks"})]}),(0,p.jsx)(B.A,{mode:"multiple",allowClear:!0,className:"plugin-select",style:{width:300},popupMatchSelectWidth:!0,onChange:e=>{s(e)},children:r.map(e=>(0,p.jsx)(B.A.Option,{label:e,value:e,children:e},e))})]})]})}}),(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetPluginData,body:{hooks:r,tapNames:e},children:e=>(0,p.jsx)(t3.u,{dataSource:e})})]})})})};var rs=r(40961),ri=r(45917),rn=r(36025),rl=r(66450);let ra=e=>{let{filepath:t,before:r,after:s,resolvers:i}=e;return(0,p.jsx)(P.A,{flex:1,children:(0,p.jsx)(G.A,{defaultActiveKey:"diff",items:[{key:"diff",label:"Resolve Diff Viewer",children:(0,p.jsx)(O.A,{styles:{body:{padding:0,overflow:"hidden"}},children:(0,p.jsx)(el.Mh,{style:{height:785},isEmbed:!0,originalFilePath:t,modifiedFilePath:t,original:r,modified:s})})},{key:"details",label:"Resolve Details",children:(0,p.jsx)(O.A,{children:(0,p.jsx)(rn.A,{style:{width:"100%",height:735,overflowY:"scroll",wordBreak:"break-all"},size:"small",pagination:!1,bordered:!0,rowKey:e=>e.request,columns:[{title:"Source Code",width:200,render:(e,t)=>(0,p.jsx)(F.A.Text,{copyable:!0,children:(0,p.jsx)(F.A.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,p.jsx)(F.A.Text,{strong:!0,children:(0,j.formatCosts)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>eS.xR.isResolveSuccessData(t)?(0,p.jsx)(F.A.Text,{copyable:!0,children:t.result}):(0,p.jsx)(rs.A,{style:{color:"#f50"}})}],dataSource:i})})}]})})},ro=e=>{let{resolver:t,cwd:r}=e,[s,i]=(0,m.useState)(""),n="/node_modules/",l=(0,m.useMemo)(()=>t.map(e=>e.issuerPath).filter(Boolean),[t]),a=(0,m.useMemo)(()=>l.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,l]),o=a.length&&a.every(e=>e.indexOf(n)>-1),d=(0,m.useMemo)(()=>(0,j.createFileStructures)({files:a.length?a:l,cwd:r,fileTitle:(e,t)=>(0,p.jsx)("div",{onClick:()=>i(e),children:t})}),[e.filename]);return(0,p.jsxs)(I.A,{justify:"start",align:"top",wrap:!1,gutter:C.or.BasePadding,children:[(0,p.jsx)(P.A,{span:7,children:(0,p.jsx)(O.A,{title:"Files",children:(0,p.jsx)(Z.h,{style:{width:"100%",height:735,overflow:"scroll"},treeData:d,defaultExpandedKeys:(0,j.mapFileKey)(d,o?1:4,o?void 0:e=>{let t=(0,rl.J)(e,"__RESOURCEPATH__").indexOf(n)>-1;return!!(a.length&&a.every(e=>e.indexOf(n)>-1))||!t})},`tree_${e.filename}`)})}),s&&(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetResolverFileDetails,body:{filepath:s},children:e=>(0,p.jsx)(ra,{...e})})]})},rd=(0,X.eN)({api:T.hp.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{root:r}=t,[s,i]=(0,m.useState)("");return(0,p.jsxs)("div",{style:{width:"100%"},children:[(0,p.jsx)(R.A,{style:{marginTop:C.or.BasePadding,marginBottom:C.or.BasePadding},children:(0,p.jsx)(J.E,{icon:(0,p.jsx)(ri.A,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>i(e)})}),(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetResolverFileTree,children:e=>(0,p.jsx)(ro,{filename:s,resolver:e,cwd:r})})]})}}),rc="ModuleResolve",rh=T.Kj.RsdoctorClientRoutes.ModuleResolve,ru=()=>(0,p.jsx)("div",{children:(0,p.jsx)(O.A,{title:"Webpack Resolver Analysis",extra:(0,p.jsx)(tO.U,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,p.jsx)(rd,{})})});var rp=r(92790),rm=r(90220);let rf=T.Kj.RsdoctorClientRoutes.RuleIndex,rg=()=>{let e=(0,j.useUrlQuery)()[T.jO.RsdoctorRuleClientConstant.UrlQueryForErrorCode]||"",[t,r]=(0,m.useState)(T.jO.RuleErrorMap[e]),s=Object.values(T.jO.RuleErrorMap);return(0,m.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,p.jsxs)(I.A,{gutter:C.or.BasePadding/2,children:[(0,p.jsx)(P.A,{span:8,children:(0,p.jsx)(O.A,{title:(0,p.jsx)(rm.h,{text:"list of the error codes."}),bordered:!0,children:(0,p.jsx)(R.A,{direction:"vertical",children:s.map((e,s)=>(0,p.jsxs)(R.A,{style:{marginTop:0===s?0:C.or.BasePadding/2,cursor:"pointer"},onClick:()=>r(e),align:"center",children:[(0,p.jsx)(ed.A,{status:"default"}),(0,p.jsx)(F.A.Text,{code:!0,children:(0,p.jsx)("a",{children:e.code})}),(0,p.jsx)(F.A.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,p.jsx)(P.A,{span:16,children:t?(0,p.jsx)(O.A,{title:(0,p.jsxs)(I.A,{justify:"space-between",children:[(0,p.jsxs)(R.A,{children:[(0,p.jsx)(F.A.Text,{code:!0,children:t.code}),(0,p.jsx)(F.A.Text,{children:t.title})]}),(0,p.jsx)("div",{children:(0,p.jsx)(W.A,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,p.jsx)(F.A.Paragraph,{children:"markdown"===t.type?(0,p.jsx)(rp.oz,{children:t.description}):(0,p.jsx)(F.A.Text,{children:t.description})})}):(0,p.jsx)(O.A,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,p.jsx)(F.A.Text,{children:"click the error code in left bar to show more details."})})})]})};var rx=r(8302),ry=r(14296),rj=r(49815),rv=r(36797);r(34861);let rA=T.Kj.RsdoctorClientRoutes.TreeShaking,rS=(0,X.ug)(j.fetchManifest,[["moduleGraph","data"],["root","cwd"]],e=>{let{data:t,cwd:r}=e,s=(0,j.useModuleGraphInstanceByModuleGraph)(t);if(0===s.size())return(0,p.jsx)(rj.$,{});let[i,n]=(0,m.useState)(""),[l,a]=(0,m.useState)(1),[o,d]=(0,m.useState)([]),[c,h]=(0,m.useState)("side-effect"),u=(0,m.useMemo)(()=>s.getModules().filter(e=>e.kind===T.hp.ModuleKind.Normal&&en().basename(e.path).includes(i)),[i]),f=(0,m.useMemo)(()=>u.find(e=>e.isEntry),[]),[g,x]=(0,m.useState)(f||(null==u?void 0:u.length)&&(null==u?void 0:u[0])),y=(0,rx.EV)(u,s,i,g,e=>{v(u.find(t=>t.path===e),[])},r),v=(e,t,r)=>{x(e),d(t.slice()),eS.AP.isNumber(r)&&a(r)};return(0,p.jsxs)(O.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:[(0,p.jsxs)(I.A,{justify:"space-between",align:"middle",style:{marginBottom:C.or.BasePadding,marginTop:C.or.BasePadding},children:[(0,p.jsx)(J.E,{icon:(0,p.jsx)(ri.A,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>n(e)}),(0,p.jsxs)(tj.A.Group,{value:c,onChange:e=>{let{target:t}=e;return h(t.value)},children:[(0,p.jsx)(tj.A.Button,{value:"side-effect",children:"SideEffects"}),(0,p.jsx)(tj.A.Button,{value:"export",children:"Export Variables"})]})]}),(0,p.jsxs)(I.A,{justify:"space-between",align:"top",wrap:!1,gutter:[C.or.BasePadding,C.or.BasePadding],children:[(0,p.jsx)(P.A,{span:7,children:(0,p.jsx)(O.A,{title:`Total Files: ${u.length}`,className:"tree-shaking-files-box",children:(0,p.jsx)(Z.h,{style:{height:"80%"},className:"tree-shaking-files",selectedKeys:g?[g.path]:[],defaultExpandedKeys:(0,rx.ut)(y),treeData:y,expandAction:"click"})})}),(0,p.jsx)(P.A,{span:9,children:(0,p.jsx)(X.zW,{api:T.hp.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:g.id},children:e=>(0,p.jsx)(ry.B,{module:g,moduleGraph:s,ranges:o,toLine:l,setEditorData:v,source:e})})}),(0,p.jsx)(P.A,{flex:1,children:(0,p.jsx)(rv.oK,{kind:c,setEditorData:v,module:g,moduleGraph:s})})]})]})});var rb=r(4324),rM=r(59620),rk=r(94723),rz=r(71886),rw=r(21236),rI=r(10133);let rP=[T._8.RsdoctorManifestClientRoutes.Overall,T._8.RsdoctorManifestClientRoutes.BundleSize],rC=(e,t)=>{let r,s;window[T.YM.WINDOW_RSDOCTOR_TAG]=e,window[T.YM.WINDOW_RSDOCTOR_TAG].enableRoutes=t;let i=(r=`//${location.host}${location.pathname}#/overall`,s=t&&t.length>0?`?${T.Kj.RsdoctorClientUrlQuery.EnableRoutes}=${encodeURIComponent(JSON.stringify(t))}`:"",`${r}${s}`);location.href=i,rk.Ay.success("JSON data loaded successfully!")},rE=async e=>{try{let t=await (0,rI.k)([e]);if(t&&t[0])rC(t[0].data,rP);else throw Error("Invalid manifest data")}catch(t){let e=t instanceof Error?t.message:"Unknown error";throw rk.Ay.error(`Failed to load Rspack stats: ${e}`),t}},rD=T.Kj.RsdoctorClientRoutes.Uploader,r_=()=>{let[e,t]=(0,m.useState)(!1),r=async e=>{if(e){t(!0);try{let t=await (0,j.readJSONByFileReader)(e);if(!t||"object"!=typeof t)throw Error("Invalid JSON format");if((0,rI.A)(t))await rE(t);else try{let e=t.clientRoutes||rP;rC(t.data,e)}catch(t){let e=t instanceof Error?t.message:"Unknown error";rk.Ay.error(`Failed to load manifest data: ${e}`),console.error("Failed to load manifest data:",t)}}catch(t){let e=t instanceof Error?t.message:"Unknown error";rk.Ay.error(`Upload failed: ${e}`),console.error("Upload error:",t)}finally{t(!1)}}};return(0,p.jsx)(rz.A,{spinning:e,tip:"uploading...",children:(0,p.jsxs)(rw.A.Dragger,{multiple:!1,showUploadList:!1,accept:".json",onChange:e=>{let{file:t}=e;r(t)},style:{width:"100%"},beforeUpload:()=>!1,children:[(0,p.jsx)("p",{className:"ant-upload-drag-icon",children:(0,p.jsx)(rM.A,{})}),(0,p.jsx)("p",{className:"ant-upload-text",children:"Click or drag JSON file to this area to upload and analyze your stats.json or rsdoctor's rsdoctor-data.json."}),(0,p.jsxs)("p",{className:"ant-upload-hint",children:["The rsdoctor's rsdoctor-data.json is in brief mode, and use the file type: ['json'].",(0,p.jsx)("a",{href:"https://rsdoctor.rs/zh/config/options/output#mode-brief",target:"_blank",rel:"noopener noreferrer",children:"Check the details."})]}),(0,p.jsx)("p",{className:"ant-upload-hint",children:"By default, Rsdoctor will emit the rsdoctor-data.json to the output folder."})]})})}},33498(e,t,r){r.d(t,{Bq:()=>f,ME:()=>p,Rz:()=>y,Zb:()=>g,h4:()=>v,jC:()=>x});var s=r(65723),i=r(66450),n=r(94723),l=r(66287),a=r(68108),o=r(64060),d=r(61858),c=r(76681),h=r(53289);let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",r=null==e?void 0:e.indexOf(t);return -1===r?null:0===r?t+(u(null==e?void 0:e.slice(1),t)||""):null==e?void 0:e.slice(0,r)};function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0,s=0,i=[],n=e;for(;s<t&&(n.filter(r).forEach(e=>{e.isLeaf||i.push(e.key)}),(n=n.reduce((e,t)=>e.concat(t.children||[]),[])).length);)s++;return i}let m="__BASENAME__";function f(e){let{files:t,inlinedResourcePathKey:r="__RESOURCEPATH__",fileTitle:s=(e,t)=>t,dirTitle:n=(e,t)=>t,page:l="other"}=e,a=t.map(e=>e.replace(/\\/g,"/")),o=RegExp("/"),d=a.reduce((e,t)=>{let n=u(t,"/"),a=n?null==t?void 0:t.slice(n.length+1):t,d=e;for(;n;){let e=d.children.find(e=>e.title===n);if(!e){let t=[d[r],n].filter(Boolean).join("/");e={title:n,icon:"bundle"===l?e=>j(e,!1):null,key:t,children:[],[r]:t,[m]:n},d.children.push(e)}d=e,a=(n=u(a,"/"))?a.slice(n.length).replace(o,""):a}return d.children.some(e=>(0,i.J)(e,r)===t)||d.children.push({title:()=>s(t,a),icon:"bundle"===l?e=>j(e):null,key:t,isLeaf:!0,[r]:t,[m]:a}),e},{key:"0",children:[]}).children;return d.forEach(e=>{e.children&&e.children.forEach(t=>(function e(t,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",i=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(e,t)=>t;if(!t.isLeaf)if(r.children&&1===r.children.length){let l=[r[m],t[m]].join(s);r[i]=t[i],r[m]=l,r.key=[r.key,t.key].join("-"),r.children=t.children,r.title=n(r,l),t.children&&t.children.forEach(t=>{e(t,r,s,i,n)})}else t.title=n(t,t[m]),t.children&&t.children.forEach(r=>{e(r,t,s,i,n)})})(t,e,"/",r,n))}),d}function g(e,t){return e.startsWith(t)?e.replace(t,"."):e}function x(e){return new Promise((t,r)=>{let s=new FileReader;s.onloadend=()=>{let{result:e}=s;try{let r=JSON.parse(e.toString());t(r)}catch(e){n.Ay.error("json parse error"),r(e)}},s.onerror=()=>{let e="upload json file error, please try again.";n.Ay.error(e),r(Error(e))},s.readAsText(e.originFileObj||e)})}function y(e,t){let r=g(e,t),s="/node_modules/",i=r.lastIndexOf(s);return i>-1?{alias:r.slice(i+s.length),inNodeModules:!0}:{alias:r,inNodeModules:!1}}function j(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{data:r}=e,i=e.expanded;return(null==r?void 0:r.children)?(0,s.jsxs)(l.A,{children:[t?(0,s.jsx)(a.A,{className:`file-tree-switcher-arrow ${i?"file-tree-switcher-arrow-expand":""}`}):(0,s.jsx)(s.Fragment,{}),i?(0,s.jsx)(o.A,{}):(0,s.jsx)(d.A,{})]}):e.eventKey&&"string"==typeof e.eventKey?(0,h.C)(e.eventKey):(0,s.jsx)(c.A,{})}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dist",r=function e(t){if(!t.children||0===t.children.length)return t;let r=t;for(;r.children&&1===r.children.length&&!r.children[0].sourceSize;)r={name:r.name+"/"+r.children[0].name,children:r.children[0].children};return r.children&&(r.children=r.children.map(e)),r}(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dist",r={name:t,children:[],_map:new Map};for(let t of e){let e=t.path.split(/[\\/]/).filter(Boolean),l=r;for(let r=0;r<e.length;r++){let a=e[r];if(r===e.length-1){var s,i,n;l.children||(l.children=[]),l.children.push({name:a,path:t.path,sourceSize:(null==(s=t.size)?void 0:s.sourceSize)??0,bundledSize:(null==(i=t.size)?void 0:i.parsedSize)??0,gzipSize:(null==(n=t.size)?void 0:n.gzipSize)??0,id:t.id})}else{l._map||(l._map=new Map);let e=l._map.get(a);e||(e={name:a,children:[],_map:new Map},l.children.push(e),l._map.set(a,e)),l=e}}}return!function e(t){delete t._map,t.children&&t.children.forEach(e)}(r),r}(e,t));return!function e(t){if(!t.children||0===t.children.length)return{sourceSize:t.sourceSize??0,bundledSize:t.bundledSize??0,gzipSize:t.gzipSize??0};let r=0,s=0,i=0;for(let n of t.children){let{sourceSize:t,bundledSize:l,gzipSize:a}=e(n);r+=t,s+=l,i+=a}return t.sourceSize=r,t.bundledSize=s,t.gzipSize=i,{sourceSize:r,bundledSize:s,gzipSize:i}}(r),r}},98685(e,t,r){r.d(t,{getDemoUrl:()=>B.JI,getFirstVisitFromStorage:()=>m.R7,useModuleGraph:()=>j,useRuleIndexNavigate:()=>x,flattenTreemapData:()=>i.h4,useCompileAlertsByErrors:()=>A,hasBundle:()=>_.r,useLocale:()=>E.Ym,useDataLoader:()=>s.V,getEnableRoutesFromUrlQuery:()=>B.TR,useUniqModules:()=>v,fetchManifest:()=>D.Cj,isDef:()=>B.C8,setThemeToStorage:()=>m.Kv,formatSize:()=>N.X,beautifyPath:()=>i.Zb,useWebpackConfigurationByConfigs:()=>b,createFileStructures:()=>i.Bq,useDuplicatePackagesByErrors:()=>S,useTheme:()=>E.DP,mapFileKey:()=>i.ME,filterLoader:()=>k.ak,setFirstVisitToStorage:()=>m.Yh,useI18n:()=>g,getShortPath:()=>B.Ml,beautifyModulePath:()=>i.Rz,changeOrigin:()=>B.$G,isJsDataUrl:()=>B.XC,readJSONByFileReader:()=>i.jC,getLocale:()=>P,setViewModeToStorage:()=>m.ZI,useDetectIfCloudIdeEnv:()=>M,formatPercent:()=>N.l,useModuleGraphInstanceByModuleGraph:()=>E.mB,useUrlQuery:()=>y,getLanguage:()=>C,hasCompile:()=>_.c,formatCosts:()=>T.a4,hasViewModeFromStorage:()=>m.it,useViewMode:()=>E.an});var s=r(14415),i=r(33498),n=r(40799),l=r(91888),a=r(26581),o=r(57629),d=r(22155),c=r(83731),h=r(41346),u=r(31337),p=r.n(u);r(92958);var m=r(96307);let f=l.Kj.RsdoctorClientRoutes.RuleIndex,g=()=>{let{i18n:e,...t}=(0,c.B)();return{...t,i18n:{...e,changeLanguage:(t,r)=>e.changeLanguage(t,(e,s)=>{e||(0,m.XX)(t),r&&r(e,s)})}}};function x(e,t){let r=(0,h.Zp)();return t?()=>window.open(t,"__blank"):()=>{r(`${f}?${l.jO.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function y(){let e=(0,h.zy)().search||location.search;return(0,d.useMemo)(()=>p()(e,!0).query,[e])}function j(e){let t=e;"string"==typeof t&&(e=JSON.parse(n.oG.decompressText(t)));var r=e,s={dependencies:[],modules:[],moduleGraphModules:[],exports:[],sideEffects:[],variables:[]};return r&&"object"==typeof r?Array.isArray(r)?s:(0,a.N)(r,s):s}function v(e){return(0,o.h)(e,e=>e.path)}function A(e){return Array.isArray(e)?e.filter(e=>e.category===l.jO.RuleMessageCategory.Compile&&e.code!==l.jO.RuleMessageCodeEnumerated.Overlay):[]}function S(e){return(Array.isArray(e)?e.filter(e=>e.category===l.jO.RuleMessageCategory.Bundle&&e.code!==l.jO.RuleMessageCodeEnumerated.Overlay):[]).filter(e=>e.code===l.jO.RuleErrorMap.E1001.code)}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}function M(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)}var k=r(47001),z=r(95699),w=r(55887),I=r(10117);function P(e){return"cn"===e||"zh-CN"===e?z.A:w.A}function C(e){return"cn"===e||"zh"===e?I.TM.Cn:I.TM.En}var E=r(18679),D=r(20219),_=r(40686),N=r(9919);r(37503);var T=r(22679),B=r(62975);r(28306),r(10133)},10133(e,t,r){r.d(t,{A:()=>l,k:()=>a});var s=r(91888),i=r(44751),n=r(21800);function l(e){return(0,n.c)(e.assets)&&(0,n.c)(e.chunks)}async function a(e){return(await Promise.all(e.map(async e=>{let t=i.L2.chunkTransform(new Map,e),r=i.zG.getModuleGraphByStats(e,".",t);await i.L2.getAssetsModulesData(r,t,e.outputPath||"",{},void 0);let n=i.ps.fromModuleGraph(r,".");return{hash:e.hash||"",moduleGraph:await r.toData(),chunkGraph:t.toData(s.hp.ToDataType.Normal),packageGraph:n.toData()}}))).map(e=>({client:{enableRoutes:[]},data:{pid:0,root:"",errors:[],configs:[],plugin:{},summary:{costs:[]},envinfo:{},resolver:[],loader:[],moduleCodeMap:{},...e}}))}},62975(e,t,r){r.d(t,{$G:()=>d,C8:()=>u,JI:()=>c,Ml:()=>h,TR:()=>o,XC:()=>l,kJ:()=>a});var s=r(31337),i=r.n(s),n=r(91888);function l(e){return e.startsWith("data:text/javascript;")}function a(){let{query:e}=i()(location.href,!0),t=e[n.Kj.RsdoctorClientUrlQuery.ManifestFile];if(t)return decodeURIComponent(t)}function o(){let{query:e}=i()(location.href,!0),t=e[n.Kj.RsdoctorClientUrlQuery.EnableRoutes];if(!t&&location.hash&&(t=i()(location.hash,!0).query[n.Kj.RsdoctorClientUrlQuery.EnableRoutes]),!t&&location.hash){let e=location.hash,r=e.indexOf("?");-1!==r&&(t=new URLSearchParams(e.substring(r+1)).get(n.Kj.RsdoctorClientUrlQuery.EnableRoutes)||void 0)}if(t)try{return JSON.parse(decodeURIComponent(t))}catch(e){console.warn("Failed to parse enableRoutes from URL query:",e)}}function d(e){let t=i()(location.href,!0),r=i()(e,!0);return t.hash.endsWith(n.Kj.RsdoctorClientRoutes.Uploader)&&t.set("hash",n.Kj.RsdoctorClientRoutes.Overall),t.set("origin",e),t.set("protocol",r.protocol),t.set("host",r.host),t.set("port",r.port),t.toString()}function c(){return null}let h=e=>{if((null==e?void 0:e.indexOf("node_modules"))>=0){let t=e.split("node_modules");return`node_modules${t[t.length-1]}`}return(null==e?void 0:e.length)?`${null==e?void 0:e.split("/").slice(-4).join("/")}`:e};function u(e){return null!=e}},44751(e,t,r){r.d(t,{L2:()=>p,dh:()=>F,nV:()=>E,ps:()=>K,zG:()=>m});var s=r(91888),i=r(46068),n=r(13078),l=r.n(n),a=r(40799),o=r(87908),d=r(76554),c=r(85409),h=r(8963).Buffer,u={};u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var p={};u.r(p),u.d(p,{assetsContents:()=>J,chunkTransform:()=>V,getAssetsModulesData:()=>Y,transformAssetsModulesData:()=>q});var m={};u.r(m),u.d(m,{getImportKind:()=>X,getModuleGraphByStats:()=>ea,getModulesFromArray:()=>el,getPositionByStatsLocation:()=>et,isImportDependency:()=>Q,isWebpack5orRspack:()=>er,removeNoImportStyle:()=>ee});var f={};u.r(f),u.d(f,{transStats:()=>eo});var g={};u.r(g),u.d(g,{getAllModules:()=>eS,getDependencyPosition:()=>ex,getEntryModule:()=>eg,getExportDependency:()=>ey,getExportStatement:()=>ev,getLastExportInfo:()=>eA,getModuleSource:()=>ef,getResolveRequest:()=>ep,getSdkDependencyByWebpackDependency:()=>ej,getWebpackDependencyRequest:()=>eu,getWebpackModuleId:()=>ec,getWebpackModulePath:()=>eh,isExternalModule:()=>em,isNormalModule:()=>ed});class x{isEntry(){return this.entry}isChunkEntryModule(e){return e.isEntry||e.getImported().every(e=>!this.hasModule(e))}hasModule(e){return this._modules.includes(e)}addModule(e){this.hasModule(e)||(this._modules.push(e),e.addChunk(this))}addAsset(e){this._assets.push(e)}addModules(e){e.forEach(e=>{this.hasModule(e)||(this._modules.push(e),e.addChunk(this))})}addDependency(e){this._dependencies.includes(e)||this._dependencies.push(e)}addImported(e){this._imported.includes(e)||this._imported.push(e)}getAssets(){return this._assets.slice()}getModules(){return this._modules.slice()}getDependencies(){return this._dependencies.slice()}getImported(){return this._imported.slice()}setParsedSize(e){this._parsedSize=e}toData(){return{id:this.id,name:this.name,initial:this.initial,size:this.size,parsedSize:this._parsedSize||0,entry:this.isEntry(),assets:this._assets.map(e=>{let{path:t}=e;return t}),modules:this._modules.map(e=>{let{id:t}=e;return t}),dependencies:this._dependencies.map(e=>{let{id:t}=e;return t}),imported:this._imported.map(e=>{let{id:t}=e;return t})}}setDependencies(e){this._dependencies=e}setImported(e){this._imported=e}setModules(e){this._modules=e}setAssets(e){this._assets=e}constructor(e,t,r,s,i){this._assets=[],this._modules=[],this._dependencies=[],this._imported=[],this.id=e,this.name=t,this.size=r,this.initial=s,this.entry=i}}class y{getAssets(){return Array.from(this._assetMap.values())}getChunks(){return Array.from(this._chunkMap.values())}addAsset(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(e=>{this._assetMap.set(e.id,e),this._assetPathMap.set(e.path,e)})}addChunk(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(e=>{this._chunkMap.set(e.id,e)})}getChunkById(e){return this._chunkMap.get(e)}getAssetByPath(e){return this._assetPathMap.get(e)}getAssetById(e){return this._assetMap.get(e)}getEntryPoints(){return Array.from(this._entrypointMap.values())}getEntryPointById(e){return this._entrypointMap.get(e)}addEntryPoint(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(e=>{this._entrypointMap.set(e.id,e)})}toData(e){return{assets:Array.from(this._assetMap.values()).map(t=>t.toData(e)),chunks:Array.from(this._chunkMap.values()).map(e=>e.toData()),entrypoints:Array.from(this._entrypointMap.values()).map(e=>e.toData())}}setChunks(e){this._chunkMap=new Map(e.map(e=>[e.id,e]))}setEntrypoints(e){this._entrypointMap=new Map(e.map(e=>[e.id,e]))}setAssets(e){this._assetMap=new Map(e.map(e=>[e.id,e])),this._assetPathMap=new Map(e.map(e=>[e.path,e]))}constructor(){this._assetMap=new Map,this._assetPathMap=new Map,this._chunkMap=new Map,this._entrypointMap=new Map}}let j=1;class v{static init(){j=1}toData(e){var t;return{id:this.id,path:this.path,size:this.size,gzipSize:this.gzipSize,chunks:null==(t=this.chunks)?void 0:t.map(e=>e.id),content:e===s.hp.ToDataType.NoSourceAndAssets||e===s.hp.ToDataType.NoCode?"":this.content}}setChunks(e){this.chunks=e}setId(e){this.id=e}setGzipSize(e){this.gzipSize=(0,i.gzipSync)(e,{level:9}).length}constructor(e,t,r,s){this.id=j++,this.path=e,this.size=t,this.chunks=r,this.content=s}}let A=1;class S{static init(){A=1}addChunk(e){this._chunks.includes(e)||this._chunks.push(e)}addAsset(e){this._assets.includes(e)||this._assets.push(e)}toData(){return{id:this.id,name:this.name,chunks:this._chunks.map(e=>e.id),assets:this._assets.map(e=>e.path),size:this._assets.length?this._assets.reduce((e,t)=>e+t.size,0):0}}setChunks(e){this._chunks=e}setAssets(e){this._assets=e}setId(e){this.id=e}constructor(e){this.name=e,this._chunks=[],this._assets=[],this.id=A++}}let b=1;class M{static init(){b=1}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return s.hp.DependencyKind[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===s.hp.ModuleKind.Concatenation}isSameWithoutStatements(e){return this.request===e.request&&this.kind===e.kind&&this.module.id===e.module.id&&this.dependency.id===e.dependency.id}addStatement(e){this.hasStatement(e)||this.statements.push(e)}hasStatement(e){return this.statements.some(t=>t.isSame(e))}setBuildMeta(e){this.meta={...this.meta,...e}}toData(){return{id:this.id,request:this.request,resolvedRequest:this.resolvedRequest,kind:this.kind,module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}setId(e){this.id=e}constructor(e,t,r,s,i){this.statements=[],this.meta={exportsType:"default-with-named"},this.id=b++,this.request=e,this.module=t,this._originDependency=r,this.kind=s,this.statements=i??[]}}function k(e,t){return e.line===t.line&&e.column===t.column}M.kind=s.hp.DependencyKind;let z=/!/,w=/\s\+\s\d*\smodules$/,I=/^css\s.*node_modules(?!\/)/;class P{static getDefaultStatement(e){let t={line:1,column:0},r={start:{...t},end:{...t}};return new P(e,{source:{...r},transformed:{...r}})}isSame(e){var t,r;return this.module.id===e.module.id&&(t=this.position.transformed,r=e.position.transformed,!!k(t.start,r.start)&&(a.AP.isNil(t.end)||a.AP.isNil(r.end)?a.AP.isUndefined(t.end)&&a.AP.isUndefined(r.end):k(t.end,r.end)))}getSourcePosition(){let{module:e,position:t}=this;return t.source?t.source:e.getSourceMap()?(t.source=e.getSourceRange(t.transformed),t.source):void 0}getLineCode(){let e=this.module.isPreferSource&&this.position.source,t=this.module.getSource(),r=e?t.source:t.transformed,s=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof s)return r.split("\n")[s-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}constructor(e,t){this.module=e,this.position=t}}let C=1;class E{static init(){C=1}get rootModule(){return this.modules.find(e=>e.path===this.path)}get isPreferSource(){if("boolean"==typeof this._isPreferSource)return this._isPreferSource;let e=this.source.source.length>0&&"test code"!==this.source.source&&!!this.sourceMap;return this._isPreferSource=e,e}addBailoutReason(e){this.bailoutReason.push(e)}getBailoutReason(){return this.bailoutReason}addSideEffectLocation(e){this.sideEffectLocations.push(e)}getSideEffectLocations(){return this.sideEffectLocations.slice()}addSideEffectCode(e){this.sideEffectCodes.push(e)}getSideEffectCodes(){return this.sideEffectCodes.slice()}getChunks(){return this.chunks.slice()}addChunk(e){this.chunks.includes(e)||(this.chunks.push(e),e.addModule(this))}removeChunk(e){this.chunks=this.chunks.filter(t=>t!==e)}getDependencies(){return this.dependencies.slice()}getDependencyByRequest(e){return this.dependencies.find(t=>t.request===e)}getDependencyByModule(e){return this.dependencies.find(t=>t.originDependency===e||t.dependency===e)}addDependency(e,t,r,s){let i=new M(e,this,t,r,s);if(this.dependencies.every(e=>!e.isSameWithoutStatements(i)))return this.dependencies.push(i),t.addImported(this),t.rootModule&&t.rootModule.addImported(this),i}removeDependency(e){this.dependencies=this.dependencies.filter(t=>t===e)}removeDependencyByModule(e){let t=this.getDependencyByModule(e);t&&this.removeDependency(t)}getImported(){return this.imported.slice()}addImported(e){this.imported.includes(e)||this.imported.push(e)}removeImported(e){this.imported=this.imported.filter(t=>t===e)}setProgram(e){this.program=e}getProgram(){return this.program}setSource(e){let{source:t}=this;t.source=e.source??t.source,t.transformed=e.transformed??t.transformed,t.parsedSource=e.parsedSource??t.parsedSource}getSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.hp.ToDataType.Normal;return e===s.hp.ToDataType.NoCode?{source:"",transformed:"",parsedSource:""}:e===s.hp.ToDataType.NoSourceAndAssets||e===s.hp.ToDataType.NoSource?{source:"",transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}:e===s.hp.ToDataType.All?{source:this.source.source,transformed:this.source.transformed,parsedSource:this.isPreferSource?"":this.source.parsedSource}:{source:this.source.source,transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}}setSourceMap(e){this.sourceMap=e}getSourceMap(){return this.sourceMap}setSize(e){let{size:t}=this;if(t.sourceSize=e.sourceSize??t.sourceSize,t.transformedSize=e.transformedSize??t.transformedSize,t.parsedSize=e.parsedSize??t.parsedSize,"number"==typeof e.gzipSize)t.gzipSize=e.gzipSize;else{let e=this.source.parsedSource||this.source.source;if(e&&"string"==typeof e&&e.length>0)try{t.gzipSize=(0,i.gzipSync)(e,{level:9}).length}catch(e){t.gzipSize=0}}}getSize(){return{...this.size}}getStatement(e){return new P(this,{source:this.getSourceRange(e),transformed:{start:{...e.start},end:e.end?{...e.end}:void 0}})}getSourceRange(e){let{sourceMap:t}=this;if(!t)return;let r={start:{}},s=t.originalPositionFor({line:e.start.line??0,column:e.start.column??0,bias:1});if(a.AP.isNumber(s.line)&&(r.start={line:s.line,column:s.column??void 0}),e.end){let s=t.originalPositionFor({line:e.end.line??0,column:e.end.column??0});a.AP.isNumber(s.line)&&(r.end={line:s.line,column:s.column??void 0})}return r}addNormalModule(e){this.modules.includes(e)||(this.modules.push(e),e.addConcatenationModule(this))}getNormalModules(){return this.modules.slice()}addConcatenationModule(e){this.concatenationModules.includes(e)||this.concatenationModules.push(e)}addIssuerPath(e){var t;(null==(t=this.issuerPath)?void 0:t.length)||(this.issuerPath=e)}getIssuerPath(){return this.issuerPath}getConcatenationModules(){return this.concatenationModules.slice()}toData(e,t){var r;let{isPreferSource:s}=this,i=function(e){if(!e)return"";if(z.test(e)){let t=a.AP.last(e.split(z));if(null==t?void 0:t.trim())return t}return w.test(e)?e.replace(w,""):I.test(e)?e.replace(I,""):e}(this.webpackId),n={id:this.id,renderId:this.renderId,webpackId:e&&i.indexOf(".")>0?l().relative(e,i):this.webpackId,path:this.path,isPreferSource:s,dependencies:this.dependencies.map(e=>e.id),imported:this.imported.map(e=>e.id),chunks:this.chunks.map(e=>e.id),size:this.getSize(),kind:this.kind,...this.layer?{layer:this.layer}:{},issuerPath:t?void 0:(null==(r=this.issuerPath)?void 0:r.filter(e=>e.moduleId).map(e=>e.moduleId))||[],bailoutReason:this.bailoutReason,...this.sideEffectLocations.length>0?{sideEffectLocations:this.sideEffectLocations}:{}};return(this.meta.hasSetEsModuleStatement||this.meta.strictHarmonyModule)&&(n.meta={},this.meta.hasSetEsModuleStatement&&(n.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(n.meta.strictHarmonyModule=!0)),this.isEntry&&(n.isEntry=this.isEntry),this.modules.length>0&&(n.modules=this.modules.map(e=>e.id)),this.rootModule&&(n.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(n.concatenationModules=this.concatenationModules.map(e=>e.id)),n}setId(e){this.id=e}setRenderId(e){this.renderId=e}setChunks(e){this.chunks=e}setDependencies(e){this.dependencies=e}setImported(e){this.imported=e}setModules(e){this.modules=e}setConcatenationModules(e){this.concatenationModules=e}constructor(e,t,r=!1,i=s.hp.ModuleKind.Normal,n,l=""){this.issuerPath=[],this.bailoutReason=[],this.sideEffectLocations=[],this.sideEffectCodes=[],this.source={source:"",transformed:"",parsedSource:""},this.size={sourceSize:0,transformedSize:0,parsedSize:0,gzipSize:0},this.chunks=[],this.dependencies=[],this.imported=[],this.modules=[],this.concatenationModules=[],this.meta={hasSetEsModuleStatement:!1,strictHarmonyModule:!1},this.id=C++,this.webpackId=e,this.path=t,this.isEntry=r,this.kind=i,this.renderId=n,this.layer=l}}E.kind=s.hp.ModuleKind;let D=1;class _{static init(){D=1}get isReExport(){return!!this.from}set variable(e){this._variable=e}get variable(){var e;if(this._variable)return this._variable;if(!this.from||!1===this._variable){this._variable=!1;return}let t=null==(e=this.getRecursiveExport())?void 0:e.variable;return t||(this._variable=!1),t}addSideEffect(e){this._sideEffects.every(t=>t.id!==e.id)&&(this._sideEffects.push(e),this.from&&this.from.addSideEffect(e))}getSideEffects(){return this._sideEffects.slice()}setFromExport(e){this.from=e}getRecursiveExport(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;if(0===e)throw Error("`getRecursiveExport` method parameter depth must be greater than 1.");if(!this.from)return this;let t=0,r=this;for(;r.from&&t<e;)t++,r=r.from;return r}toData(){let e={id:this.id,name:this.name,isReExport:this.isReExport,used:this._sideEffects.map(e=>e.id)};return this.from&&(e.from=this.from.id,e.root=this.getRecursiveExport().id),this.variable&&(e.variable=this.variable.id),e}constructor(e,t,r){this.id=D++,this._sideEffects=[],this.name=e,this.identifier=t,this._variable=r}}let N=1;class T{static init(){N=1}get variable(){var e,t;if(void 0!==this._variable)return this._variable?this._variable:void 0;let r=null==(t=this.exports[0])||null==(e=t.getRecursiveExport())?void 0:e.variable;return this._variable=r??!1,r}get exports(){var e;return(null==(e=this._exports)?void 0:e.slice())??[]}setModuleExport(e){e.getExports().forEach(e=>this.setExportInfo(e))}setExportInfo(e){this._exports.push(e),e.addSideEffect(this)}toData(){let e={id:this.id,name:this.name,identifier:this.identifier.toData(),module:this.module.id};return this.fromDependency&&(e.fromDependency=this.fromDependency.id),this.isNameSpace&&(e.isNameSpace=this.isNameSpace),this.exports.length>0&&(e.exports=this.exports.map(e=>e.id)),this.variable&&(e.variable=this.variable.id),e}constructor(e,t,r,s,i){this.id=N++,this._exports=[],this.name=e,this.module=t,this.identifier=r,s&&(this.fromDependency=this.module.getDependencyByRequest(s)),i===T.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=i)}}T.NamespaceSymbol=Symbol("namespace");let B=1;class R{static init(){B=1}get isUsed(){return!!this._exported&&this._exported.getSideEffects().length>0}setExportInfo(e){this._exported=e,e.variable=this}getExportInfo(){return this._exported}toData(){let e={id:this.id,name:this.name,module:this.module.id,identifier:this.identifier.toData(),usedInfo:this.usedInfo};return this._exported&&(e.exported=this._exported.id),e}constructor(e,t,r,s){this.id=B++,this.name=e,this.module=t,this.usedInfo=r,this.identifier=s}}class ${static init(){_.init(),T.init(),R.init()}get dynamic(){return"boolean"==typeof this._dynamic?this._dynamic:this.module.getImported().map(e=>e.getDependencyByModule(this.module)).some(e=>e&&"dynamic"===e.meta.exportsType)}addExportInfo(e){this.exports.push(e),this._graph.addExportInfo(e)}addSideEffect(e){this.sideEffects.push(e),this._graph.addSideEffect(e)}addVariable(e){this.variables.push(e),this._graph.addVariable(e)}getExports(){return this.exports.slice()}getSideEffects(e){return e?this.sideEffects.filter(t=>t.name===e):this.sideEffects.slice()}getOwnExports(){return this.exports.filter(e=>!e.isReExport)}getExport(e){return this.exports.find(t=>t.name===e)}getReExports(){return this.exports.filter(e=>e.isReExport)}getOwnExport(e){return this.getOwnExports().find(t=>t.name===e)}getReExport(e){return this.getReExports().find(t=>t.name===e)}toData(){return{module:this.module.id,dynamic:this.dynamic,exports:this.exports.map(e=>e.id),sideEffects:this.sideEffects.map(e=>e.id),variables:this.variables.map(e=>e.id)}}constructor(e,t,r){this.exports=[],this.sideEffects=[],this.variables=[],this.module=e,this._graph=t,"boolean"==typeof this._dynamic&&(this._dynamic=r)}}class F{static init(){E.init(),M.init(),$.init()}static fromData(e){let t=new F,r=e=>new P(t.getModuleById(e.module),e.position);for(let r of e.modules??[]){var s,i;let e=new E(String(r.id),r.path,r.isEntry,r.kind,r.renderId,r.layer);e.id=r.id,e.setSize(r.size),e.meta={strictHarmonyModule:(null==(s=r.meta)?void 0:s.strictHarmonyModule)??!1,hasSetEsModuleStatement:(null==(i=r.meta)?void 0:i.hasSetEsModuleStatement)??!1},e._isPreferSource=r.isPreferSource,e.chunks=r.chunks,t.addModule(e)}for(let s of e.modules??[]){let i=t.getModuleById(s.id);for(let n of s.dependencies){let s=(e.dependencies??[]).find(e=>e.id===n),l=s&&t.getModuleById(s.originDependency);if(!s||!l){console.warn(`The connection data ID is empty: ${n}`);continue}let a=i.addDependency(s.request,l,s.kind,s.statements.map(r));a&&(a.id=s.id,t.addDependency(a))}for(let e of s.modules??[]){let r=t.getModuleById(e);if(!r){console.warn(`Add the ordinary module ID as empty: ${e}`);continue}i.addNormalModule(r)}for(let e of s.concatenationModules??[]){let r=t.getModuleById(e);if(!r){console.warn(`The aggregation module ID is empty: ${r}`);continue}i.addConcatenationModule(r)}}for(let s of e.exports??[]){let e=new _(s.name,s.identifier?r(s.identifier):void 0);e.id=s.id,t.addExportInfo(e)}for(let r of e.exports??[])if(r.from){let e=t._exportIdMap.get(r.id),s=t._exportIdMap.get(r.from);e&&s&&e.setFromExport(s)}for(let s of e.variables??[]){let e=t.getModuleById(s.module);if(!e){console.warn(`The module ID in the variable is empty:${s.module}`);continue}let i=new R(s.name,e,s.usedInfo,r(s.identifier)),n=t._exportIdMap.get(s.exported??-1);n&&i.setExportInfo(n),i.id=s.id,t.addVariable(i)}for(let s of e.sideEffects??[]){let e=t.getModuleById(s.module);if(!e){console.warn(`The module ID in the side effects is empty:${s.module}`);continue}let i=new T(s.name,e,r(s.identifier),s.originName);for(let e of(i.isNameSpace=s.isNameSpace,i.id=s.id,s.exports??[])){let r=t._exportIdMap.get(e);r&&r.addSideEffect(i)}if(s.variable){let e=t._varIdMap.get(s.variable);e&&(i._variable=e)}t.addSideEffect(i)}for(let r of e.moduleGraphModules??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in ModuleGraphModule is empty: ${r.module}`);continue}let s=new $(e,t,r.dynamic);t.addModuleGraphModule(s),r.exports.forEach(e=>{let r=t._exportIdMap.get(e);r&&s.addExportInfo(r)}),r.sideEffects.forEach(e=>{let r=t._sideEffectIdMap.get(e);r&&s.addSideEffect(r)}),r.variables.forEach(e=>{let r=t._varIdMap.get(e);r&&s.addVariable(r)})}return F.init(),t}clear(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map,this._layers=new Map}size(){return this._moduleIdMap.size}fromInstance(e){this._dependenciesIdMap=new Map(e._dependenciesIdMap),this._moduleWebpackIdMap=new Map(e._moduleWebpackIdMap),this._moduleIdMap=new Map(e._moduleIdMap),this._moduleGraphModules=new Map(e._moduleGraphModules),this._exportIdMap=new Map(e._exportIdMap),this._sideEffectIdMap=new Map(e._sideEffectIdMap),this._varIdMap=new Map(e._varIdMap),this._layers=new Map(e._layers)}getSubGraphByModule(e){let t=new Set,r=[e];t.add(e);for(let e=0;e<r.length;e++)for(let{dependency:s}of r[e].getDependencies())t.has(s)||(t.add(s),r.push(s));return r}getModules(){return Array.from(this._moduleWebpackIdMap.values())}getDependencies(){return Array.from(this._dependenciesIdMap.values())}getEntryModules(){return this.getModules().filter(e=>e.isEntry&&e.kind!==s.hp.ModuleKind.Concatenation)}getModuleById(e){return this._moduleIdMap.get(e)}getDependencyById(e){return this._dependenciesIdMap.get(e)}getModuleByWebpackId(e){return this._moduleWebpackIdMap.get(e)}getModuleByFile(e,t){return this.getModules().filter(r=>r.path===e&&(void 0===t||r.layer===t))}addModule(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)!this._moduleIdMap.has(e.id)&&(this._moduleWebpackIdMap.set(e.webpackId,e),this._moduleIdMap.set(e.id,e),e.layer&&this.addLayer(e.layer))}addDependency(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)this._dependenciesIdMap.has(e.id)||(this._dependenciesIdMap.set(e.id,e),this.addModule(e.module),this.addModule(e.dependency))}removeModule(e){for(let t of(this._moduleIdMap.delete(e.id),this._moduleWebpackIdMap.delete(e.webpackId),e.getDependencies()))this.removeDependency(t),this._dependenciesIdMap.delete(t.id);for(let t of e.getImported())t.removeDependencyByModule(t)}removeDependency(e){e.module.removeDependency(e),e.dependency.removeImported(e.module),this._dependenciesIdMap.delete(e.id)}addModuleGraphModule(e){this._moduleGraphModules.has(e.module)||this._moduleGraphModules.set(e.module,e)}getModuleGraphModule(e){return this._moduleGraphModules.get(e)}getModuleGraphModules(){return Array.from(this._moduleGraphModules.values())}addExportInfo(e){this._exportIdMap.set(e.id,e)}addSideEffect(e){this._sideEffectIdMap.set(e.id,e)}addVariable(e){this._varIdMap.set(e.id,e)}addLayer(e){this._layers.get(e)||this._layers.set(e,1)}getLayers(){return this._layers}toData(e){var t;let r=!!((null==e||null==(t=e.briefOptions)?void 0:t.type)&&e.briefOptions.type.length);return{dependencies:this.getDependencies().map(e=>e.toData()),modules:this.getModules().map(t=>t.toData(null==e?void 0:e.contextPath,r)),moduleGraphModules:r?[]:Array.from(this._moduleGraphModules.values()).map(e=>e.toData()),exports:r?[]:Array.from(this._exportIdMap.values()).map(e=>e.toData()),sideEffects:r?[]:Array.from(this._sideEffectIdMap.values()).map(e=>e.toData()),variables:r?[]:Array.from(this._varIdMap.values()).map(e=>e.toData()),layers:Array.from(this._layers.keys())}}toTreeShakingData(){let e={};for(let t of this.getModules()){let r=t.getSideEffectCodes();r.length>0&&(e[r[0].moduleId]=r)}return{sideEffectCodes:e}}toCodeData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.hp.ToDataType.Normal,t={};return this.getModules().forEach(r=>{t[r.id]=r.getSource(e)}),t}setModules(e){this._moduleIdMap=new Map(e.map(e=>[e.id,e])),this._moduleWebpackIdMap=new Map(e.map(e=>[e.webpackId,e])),this._layers=new Map(e.filter(e=>e.layer).map(e=>[e.layer,1]))}setDependencies(e){this._dependenciesIdMap=new Map(e.map(e=>[e.id,e]))}constructor(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map,this._layers=new Map}}let O=1;class G{get name(){return this.dependency.name}get version(){return this.dependency.version}get root(){return this.dependency.root}isSame(e){return this.refDependency===e.refDependency&&this.dependency.isSame(e.dependency)}toData(){return{id:this.id,dependency:this.dependency.id,package:this.package.id,refDependency:this.refDependency.id}}constructor(e,t,r){this.id=O++,this.package=e,this.dependency=t,this.refDependency=r}}let L=(e,t)=>{let r,s=e;for(;"/"!==s&&!r&&(0,n.dirname)(s)!==s;)s=(0,n.dirname)(s),t&&(r=t((0,n.join)(s,"package.json"))),t?(null==r?void 0:r.name)||(r=void 0):r=a.lP.getPackageMetaFromModulePath(e);if(r)return!t||r.name&&r.version?{...r,root:s}:L((0,n.dirname)(s),t)},W=1;class U{setDuplicates(e){this.duplicates.push({module:e.module,chunks:e.chunks})}getModules(){return this._modules.slice()}getDependencies(){return this._dependencies.slice()}getImported(){return this._imported.slice()}addModule(e){this._modules.includes(e)||this._modules.push(e)}addDependency(e){this._dependencies.every(t=>!t.isSame(e))&&(this._dependencies.push(e),e.dependency.addImported(this))}getDependenciesChain(e){return function t(r,s){for(let i of e.getDependenciesFromPackage(r))if(i.refDependency&&!s.some(e=>e.dependency===r)){if(!i.package)return s.concat(i);return t(i.package,s.concat(i))}return s}(this,[])}addImported(e){this._imported.includes(e)||this._imported.push(e)}contain(e){var t;return!!e.includes(this.root)&&(t=(0,n.relative)(this.root,e),!/(^|[/\\])node_modules[/\\]/.test(t))}isSame(e){return this.root===e.root&&this.version===e.version&&this.name===e.name}getSize(){return this._modules.reduce((e,t)=>{let r=t.getSize();return e.sourceSize+=r.sourceSize,e.transformedSize+=r.transformedSize,e.parsedSize+=r.parsedSize,e.gzipSize+=r.gzipSize,e},{sourceSize:0,transformedSize:0,parsedSize:0,gzipSize:0})}toData(){return{id:this.id,name:this.name,root:this.root,version:this.version,modules:this.getModules().map(e=>e.id),size:this.getSize(),duplicates:this.duplicates}}constructor(e,t,r){this.id=W++,this._modules=[],this._dependencies=[],this._imported=[],this.name=e,this.root=t,this.version=r,this.duplicates=[]}}class K{static fromModuleGraph(e,t,r){let i=new K(t);for(let t of e.getModules().filter(e=>e.kind===s.hp.ModuleKind.Normal)){if(!t.getChunks())continue;let e=i.getPackageByModule(t,r);e&&(i.addPackage(e),e.addModule(t))}for(let t of e.getDependencies()){let e=i.getPackageByFile(t.module.path),r=i.getPackageByFile(t.dependency.path);if(e&&r&&!e.isSame(r)){let s=new G(e,r,t);i.addDependency(s),e.addDependency(s)}}return i}getPackages(){return this._packages.slice()}getPackageByModule(e,t){let{path:r,meta:s}=e,{_pkgFileMap:i}=this,l=e=>this.getPackageByData(e)??new U(e.name,e.root,e.version);if(i.has(r))return i.get(r);if(s.packageData){let t=l(s.packageData);return this.setDuplicates(e,t),i.set(r,t),t}let a=this.getPackageContainFile(r);if(a)return i.set(r,a),a;let o=L(r,t);if(!o)return;o.root.startsWith(".")&&(o.root=(0,n.resolve)(this._root,o.root));let d=l(o);return this.setDuplicates(e,d),this.addPackage(d),i.set(r,d),d}getPackageByFile(e){return this._pkgFileMap.get(e)}getPackageContainFile(e){return this._packages.find(t=>t.contain(e))}getPackagesByName(e){return this._pkgNameMap.get(e)??[]}getPackageByData(e){var t;return null==(t=this._pkgNameMap.get(e.name))?void 0:t.find(t=>t.version===e.version&&t.root===e.root)}addPackage(e){if(this._packages.every(t=>!t.isSame(e))){this._packages.push(e);let{_pkgNameMap:t}=this,r=t.get(e.name)??[];r.every(t=>!t.isSame(e))&&(r.push(e),t.set(e.name,r))}}setDuplicates(e,t){let r=[],s=e.getChunks();s.forEach(e=>r.push(...e.getAssets().filter(e=>e.path.endsWith(".js")||e.path.endsWith(".bundle")))),s.length>1&&t.setDuplicates({module:{id:e.id,path:e.path},chunks:r.map(e=>({name:e.path}))})}getDependenciesFromPackage(e){return this._dependencies.filter(t=>t.dependency===e)}addDependency(e){this._dependencies.every(t=>!t.isSame(e))&&this._dependencies.push(e)}getDependenciesFromOrigin(){return this._dependencies.filter(e=>!e.package)}getDuplicatePackages(){return(0,o.R)(Array.from(this._pkgNameMap.values()).map(e=>(0,o.R)(e,"version")).filter(e=>e.length>1),e=>e[0].name)}toData(){return{packages:this._packages.map(e=>e.toData()),dependencies:this._dependencies.map(e=>e.toData())}}constructor(e){this._dependencies=[],this._packages=[],this._pkgNameMap=new Map,this._pkgFileMap=new Map,this._root=e}}async function Y(e,t,r,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Map,o=arguments.length>5?arguments[5]:void 0;if(n.size>0){for(let[t,r]of((0,d.kB)("Start Parse bundle by sourcemap."),n.entries())){let s,n=e.getModuleByFile(t);try{r&&"string"==typeof r&&r.length>0&&(s=(0,i.gzipSync)(r,{level:9}).length)}catch{}for(let e of n)null==e||e.setSize({parsedSize:r.length,gzipSize:s}),null==e||e.setSource({parsedSource:r})}(0,d.PZ)("Start Parse bundle by sourcemap.")}if(s.parseBundle&&(o&&o.size>0||n.size<1)){(0,d.kB)("Start Parse bundle by AST.");let{parseBundle:i=()=>({})}=s||{},n=t.getAssets(),h=e.getModules(),u=null,p=null;if(r&&n.length){for(let e of(u={},p={},n)){let t;if(o&&o.size>0&&!o.has(e.path))continue;let s=l().join(r,e.path);try{t=i(s,h)}catch(i){let{code:e="",message:t}=i,r="ENOENT"===e?"no such file":t;"1"===c.env.DEVTOOLS_NODE_DEV&&d.vF.warn(`Error parsing bundle asset "${s}": ${r}`);continue}u[e.path]=a.AP.pick(t,["src","runtimeSrc"]),Object.assign(p,(null==t?void 0:t.modules)||{})}a.AP.isEmpty(u)&&(u=null,p=null,c.env.DEVTOOLS_DEV&&d.vF.warn("\nNo bundles were parsed. Analyzer will show only original module sizes from stats file.\n")),p&&q(p,e)}(0,d.PZ)("Start Parse bundle by AST.")}}function q(e,t){t&&Object.entries(e).forEach(e=>{let[r,s]=e,n,l=t.getModuleByWebpackId(r??"");try{(null==s?void 0:s.content)&&"string"==typeof s.content&&s.content.length>0&&(n=(0,i.gzipSync)(s.content,{level:9}).length)}catch{}null==l||l.setSize({parsedSize:null==s?void 0:s.size,gzipSize:n}),null==l||l.setSource({parsedSource:(null==s?void 0:s.content)||""})})}let H="assets by status";function V(e,t){var r,s,i,n,l,a;let o=new y;if(null==(r=t.chunks)||r.forEach(e=>{var t,r;let s=new x(String(e.id),(null==(t=e.names)?void 0:t.join(""))||(null==(r=e.files)?void 0:r.join("| "))||"",e.size,e.initial,e.entry);s.setParsedSize(0),o.addChunk(s)}),(null==(s=t.assets)?void 0:s.every(e=>e.type===H))?null==(i=t.chunks)||i.forEach(t=>{let r=o.getChunkById(String(t.id));r&&t.files&&t.files.forEach(t=>{if(!o.getAssetByPath(t)){let{content:s=""}=e.get(t)||{},i=new v(t,0,[r],s);r.addAsset(i),o.addAsset(i)}})}):null==(n=t.assets)||n.forEach(t=>{var r;if(t.type===H)return;let s=(null==(r=t.chunks)?void 0:r.map(e=>o.getChunkById(String(e))).filter(e=>!!e))||[],{content:i=""}=e.get(t.name)||{},n=h.byteLength(i,"utf8"),l=t.size??n,a=new v(t.name,l,s,i);s.forEach(e=>null==e?void 0:e.addAsset(a)),o.addAsset(a)}),t.entrypoints)for(let[e,r]of Object.entries(t.entrypoints)){let t=new S(r.name||e);null==(l=r.chunks)||l.forEach(e=>{let r=o.getChunkById(`${e}`);r&&t.addChunk(r)}),null==(a=r.assets)||a.forEach(e=>{let r=o.getAssetByPath(e.name);r&&t.addAsset(r)}),o.addEntryPoint(t)}return o}let Z=/\.(?:js|css|html|json|svg|txt|xml|xhtml|wasm|manifest)$/i;function J(e,t,r){t.getAssets().forEach(t=>{let{content:s=""}=e.get(t.path)||{};t.content=s,s.length>0&&0===t.size&&(t.size=h.byteLength(s,"utf8")),Z.test(t.path)&&(null==r?void 0:r.gzip)&&t.setGzipSize(s)})}function Q(e){let{type:t}=e;return"harmony side effect evaluation"===t||"cjs require"===t||"cjs full require"===t||"cjs export require"===t||"provided"===t||"esm import"===t}function X(e){let{type:t}=e;return t?t.includes("harmony")?s.hp.DependencyKind.ImportStatement:t.includes("cjs")?s.hp.DependencyKind.RequireCall:t.includes("import()")?s.hp.DependencyKind.DynamicImport:t.includes("amd")?s.hp.DependencyKind.AMDRequire:s.hp.DependencyKind.Unknown:s.hp.DependencyKind.Unknown}function ee(e){e.getModules().filter(e=>a.ZH.isStyleExt(e.path)).filter(e=>0===e.getImported().length).forEach(t=>e.removeModule(t))}function et(e){function t(e){let[t,r]=e.split(":");return{line:Number(t),column:Number(r)}}if(e.includes("-")){let r=e.split("-"),s=t(r[0]),i=t(r[1]);return{start:s,end:Number.isNaN(i.column)?{line:s.line,column:i.line}:i}}return e.includes(":")?{start:t(e)}:e.includes("[")?{start:{index:Number(e.match(/\[(\d+)\]/)[1])}}:void 0}function er(e){return"moduleGraph"in e&&!!e.moduleGraph}function es(e){var t;if(!e.identifier||!((null==e?void 0:e.nameForCondition)||e.name)||e.identifier.startsWith("webpack/runtime")||(null==e||null==(t=e.name)?void 0:t.startsWith("(webpack)")))return!0}function ei(e,t){if(t.nameForCondition)return t.nameForCondition.replace("\0","");let r=t.name.replace(/ ?\+ ?\d+ ?modules$/,"");return l().isAbsolute(r)?r:l().join(e,r)}function en(e){return".json"===l().extname(e).toLowerCase()}function el(e,t){e.forEach(e=>{"module"===e.type||void 0===e.type?t.push(e):"children"in e&&e.children&&el(e.children,t)})}function ea(e,t,r){var i,n,l,a,o;let{modules:d,chunks:c}=e;F.init();let u=new F,p=[],m=[];for(let e of(el(d??[],m),null==(i=c??[])||i.forEach(e=>{var t;(null==(t=e.modules)?void 0:t.length)&&m.push(...e.modules.map(e=>({...e,identifier:e.identifier??e.moduleIdentifier,name:e.name??e.moduleName})))}),m??[])){if(es(e)||u.getModuleByWebpackId(e.identifier))continue;p.push(e);let i=!!(e.modules&&e.modules.length>0),d=new E(e.identifier??e.moduleIdentifier,ei(t,e),0===e.depth,i?s.hp.ModuleKind.Concatenation:s.hp.ModuleKind.Normal,e.id?String(e.id):void 0,e.layer);if(e.optimizationBailout&&e.optimizationBailout.forEach(e=>d.addBailoutReason(e)),e.issuerPath&&d.addIssuerPath(e.issuerPath),null==(n=e.chunks)||n.forEach(e=>{let t=r.getChunkById(String(e));t&&d.addChunk(t)}),u.addModule(d),e.source&&d.setSource({transformed:h.isBuffer(e.source)?e.source.toString():e.source}),"number"==typeof e.size){d.setSize({sourceSize:e.size,transformedSize:e.size});let t={sourceSize:e.size,transformedSize:e.size};en(d.path)&&(t.parsedSize=e.size),d.setSize(t)}for(let i of e.modules??[]){let n;if(es(i))continue;p.push(i);let c=i.identifier;if(n=u.getModuleByWebpackId(c)||(u.getModuleByWebpackId(c)??new E(c,ei(t,i),0===i.depth,s.hp.ModuleKind.Normal,i.id?String(i.id):void 0,i.layer)),i.optimizationBailout&&i.optimizationBailout.filter(e=>!e.includes("ModuleConcatenation bailout")).forEach(e=>n.addBailoutReason(e)),i.issuerPath&&n.addIssuerPath(i.issuerPath),(null==(l=i.chunks)?void 0:l.length)?null==(a=i.chunks)||a.forEach(e=>{let t=r.getChunkById(String(e));t&&n.addChunk(t)}):null==(o=e.chunks)||o.forEach(e=>{let t=r.getChunkById(String(e));t&&n.addChunk(t)}),i.source&&n.setSource({transformed:h.isBuffer(i.source)?i.source.toString():i.source}),"number"==typeof i.size){n.setSize({sourceSize:i.size,transformedSize:i.size});let e={sourceSize:i.size,transformedSize:i.size};en(n.path)&&(e.parsedSize=i.size),n.setSize(e)}u.addModule(n),d.addNormalModule(n)}}for(let e of p){let t=u.getModuleByWebpackId(e.identifier??"");if(!t)continue;let r=(e.reasons??[]).filter(Q).filter(e=>!!(e.moduleIdentifier&&e.userRequest));for(let s of((e.reasons??[]).filter(e=>"from origin"===e.type).forEach(e=>{var t;return null==e||null==(t=e.children)?void 0:t.forEach(t=>r.push({...e,...t,children:void 0}))}),r)){let e=s.userRequest,r=u.getModuleByWebpackId(s.moduleIdentifier);if(!r)continue;if(!r.getDependencyByRequest(e)){let i=r.addDependency(e,t,X(s));i&&u.addDependency(i)}let i=r.getDependencyByRequest(e);if(i&&(null==s?void 0:s.loc)){let e=et(s.loc);e&&i.addStatement(new P(r,{transformed:e}))}}}let f=new Map;return u.getModules().forEach(e=>{e.issuerPath&&e.issuerPath.forEach(e=>{let t=f.get(e.identifier);!t&&(t=u.getModuleByWebpackId(e.identifier))&&f.set(e.identifier,t),t&&(e.moduleId=t.id)})}),u}async function eo(e){let t=V(new Map,e),r=ea(e,".",t);return await Y(r,t,e.outputPath||"",{}),{chunkGraph:t,moduleGraph:r}}function ed(e){return"request"in e&&"rawRequest"in e&&"resource"in e}function ec(e){return e.identifier()}function eh(e){var t;return e.resource??(null==(t=e.nameForCondition)?void 0:t.call(e))??ec(e)}function eu(e,t){return e.request??e.userRequest??(null==t?void 0:t.rawRequest)}function ep(e,t){return eh(t.getResolvedModule(e))}function em(e){return!!e.externalType}function ef(e){var t,r;return em(e)?"":(null==(r=e.originalSource)||null==(t=r.call(e))?void 0:t.source().toString())??""}function eg(e){return Array.from(e.values()).map(e=>e.getRuntimeChunk()).map(e=>e?e.entryModule:null).filter(Boolean).map(e=>ed(e)?e:e.rootModule)}function ex(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{loc:s}=e;if(void 0===s||!("start"in s))return;let i={start:{line:s.start.line,column:s.start.column},end:s.end?{line:s.end.line,column:s.end.column}:void 0};return new P(t,{source:r?t.getSourceRange(i):void 0,transformed:i})}function ey(e,t){let r=t.dependencies.find(t=>t.name===e.name&&("harmony export imported specifier"===t.type||"harmony export specifier"===t.type));return!r&&e._target&&e._target.size>0&&(r=e._getMaxTarget().values().next().value.connection.dependency),r}function ej(e,t,r){let s=eh(t),i=eu(e);return r.getDependencies().find(e=>e.module.path===s&&e.request===i)}function ev(e,t,r){let s=ey(e,t);if(!s)return;let i=eh(t),n=eu(s),l=r.getDependencies().find(e=>e.module.path===i&&e.request===n);if(l&&1===l.statements.length)return l.statements[0];let a=r.getModuleByWebpackId(ec(t));if(a)return ex(s,a)}function eA(e,t){let r=e.findTarget(t,()=>!0);if(r&&r.export)return t.getExportsInfo(r.module).getExportInfo(r.export[0])}function eS(e){let t=[];for(let r of e.modules)t.push(...r.modules??[]),t.push(r);return(0,o.R)(t.filter(e=>!ec(e).startsWith("webpack/runtime")),e=>ec(e))}},40799(e,t,r){r.d(t,{AP:()=>N,BD:()=>v,B_:()=>_,TS:()=>I,Wh:()=>E,ZH:()=>R,_8:()=>M,aH:()=>k,gX:()=>z,l5:()=>D,lP:()=>T,oG:()=>S,s0:()=>b,xR:()=>w});var s,i,n=r(57837),l=r(46068),a=r(8963),o=r(97142),d=r.n(o),c=r(66963),h=r(91888),u=r(13078),p=r.n(u),m=r(85409),f=r(39980),g=r.n(f),x=r(35207),y=r(85409),j={};j.d=(e,t)=>{for(var r in t)j.o(t,r)&&!j.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},j.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),j.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var v={};j.r(v),j.d(v,{SummaryCostsDataName:()=>$});var A={};j.r(A),j.d(A,{decode:()=>O,encode:()=>F});var S={};j.r(S),j.d(S,{compressText:()=>W,decompressText:()=>U,mergeIntervals:()=>L,random:()=>K});var b={};j.r(b),j.d(b,{isFilePath:()=>q,isRemoteUrl:()=>H,isUrl:()=>Y});var M={};j.r(M),j.d(M,{fetchShardingData:()=>Z,fetchShardingFiles:()=>J,isShardingData:()=>V});var k={};j.r(k),j.d(k,{LoaderInternalPropertyName:()=>ec,findLoaderTotalTiming:()=>Q,getDirectoriesLoaders:()=>ea,getLoaderChartData:()=>es,getLoaderCosts:()=>ee,getLoaderFileDetails:()=>en,getLoaderFileFirstInput:()=>eo,getLoaderFileInputAndOutput:()=>ed,getLoaderFileTree:()=>ei,getLoaderFolderStatistics:()=>el,getLoaderNames:()=>et,getLoadersCosts:()=>X,getLoadersTransformData:()=>er,isVue:()=>eh});var z={};j.r(z),j.d(z,{formatCosts:()=>ef,getCurrentTimestamp:()=>eg,getUnit:()=>em,toFixedDigits:()=>ep});var w={};j.r(w),j.d(w,{getResolverCosts:()=>ej,getResolverFileDetails:()=>eA,getResolverFileTree:()=>ev,isResolveFailData:()=>ey,isResolveSuccessData:()=>ex});var I={};j.r(I),j.d(I,{diffAssetsByExtensions:()=>eZ,diffSize:()=>eV,extname:()=>e0,filterAssets:()=>eU,filterAssetsByExtensions:()=>eW,filterModulesAndDependenciesByPackageDeps:()=>eR,formatAssetName:()=>eO,getAllBundleData:()=>eX,getAssetDetails:()=>eQ,getAssetsDiffResult:()=>eH,getAssetsSizeInfo:()=>eK,getAssetsSummary:()=>eJ,getChunkByChunkId:()=>eM,getChunkIdsByAsset:()=>eS,getChunksByAsset:()=>ez,getChunksByChunkIds:()=>ek,getChunksByModule:()=>eb,getChunksByModuleId:()=>ew,getDependenciesByModule:()=>eP,getDependencyByPackageData:()=>eI,getDependencyByResolvedRequest:()=>eC,getEntryPoints:()=>e1,getInitialAssetsSizeInfo:()=>eq,getModuleByDependency:()=>eB,getModuleDetails:()=>e$,getModuleIdsByChunk:()=>eD,getModuleIdsByModulesIds:()=>e_,getModulesByAsset:()=>eE,getModulesByChunk:()=>eN,getModulesByChunks:()=>eT,isAssetMatchExtension:()=>eG,isAssetMatchExtensions:()=>eL,isInitialAsset:()=>eY});var P={};j.r(P),j.d(P,{getBundleDiffPageQueryString:()=>e2,getBundleDiffPageUrl:()=>e5,parseFilesFromBundlePageUrlQuery:()=>e6});var C={};j.r(C),j.d(C,{getPluginData:()=>e9,getPluginHooks:()=>e4,getPluginSummary:()=>e7,getPluginTapNames:()=>e8});var E={};j.r(E),j.d(E,{getPackageRelationAlertDetails:()=>e3});var D={};j.r(D),j.d(D,{RspackLoaderInternalPropertyName:()=>te,RspackSummaryCostsDataName:()=>tt,checkSourceMapSupport:()=>tr});var _={};j.r(_),j.d(_,{APIDataLoader:()=>ts});var N={};j.r(N),j.d(N,{compact:()=>td,isEmpty:()=>ta,isNil:()=>tc,isNumber:()=>tn,isObject:()=>tl,isPlainObject:()=>th,isString:()=>tu,isUndefined:()=>ti,last:()=>to,pick:()=>tp});var T={};j.r(T),j.d(T,{MODULE_PATH_PACKAGES:()=>tf,PACKAGE_PATH_NAME:()=>tg,getPackageMetaFromModulePath:()=>tx});var B={};j.r(B),j.d(B,{getMcpConfigPath:()=>tj,writeMcpPort:()=>ty});var R={};j.r(R),j.d(R,{isJsExt:()=>tA,isStyleExt:()=>tv});var $=((s={}).Bootstrap="bootstrap->beforeCompile",s.Compile="beforeCompile->afterCompile",s.Done="afterCompile->done",s.Minify="minify(processAssets)",s);function F(e){let t=`${e.charCodeAt(0)}`;for(let r=1;r<e.length;r++)t+=`!${e.charCodeAt(r)}`;return t}function O(e){let t="",r="";for(let s=0;s<e.length;s++)"!"===e[s]?(t+=String.fromCharCode(+r),r=""):r+=e[s];return r&&(t+=String.fromCharCode(+r)),t}let G=(0,c.h)();function L(e){let t,r;e.sort((e,t)=>e[0]-t[0]);let s=[];for(let i=0;i<e.length;i++)r=e[i],!t||r[0]>t[1]?(t=r,s.push(r)):t[1]=Math.max(t[1],r[1]);return s}function W(e){try{return(0,l.deflateSync)(e).toString("base64")}catch(e){return G.debug(`compressText error: ${e}`),""}}function U(e){return(0,l.inflateSync)(a.Buffer.from(e,"base64")).toString()}function K(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Y(e){return/^https?:\/\//.test(e)}function q(e){return(0,u.isAbsolute)(e)}function H(e){return!!("string"==typeof e&&(Y(e)||(0,u.isAbsolute)(e)))}function V(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>H(e)))}async function Z(e,t){let r=await Promise.all(e.map(e=>t(e))),s=0===r.length?[]:r.reduce((e,t)=>e+t);return"object"==typeof s?s:JSON.parse(U(s))}async function J(e,t,r){return(await Promise.all(Object.keys(e).map(async s=>{let i=e[s];return(null==r?void 0:r.length)&&0>r.indexOf(s)?{[s]:[]}:V(i)?{[s]:await Z(i,t)}:{[s]:i}}))).reduce((e,t)=>Object.assign(e,t))}function Q(e){let t=1/0,r=-1/0;for(let s=0;s<e.length;s++){let i=e[s];i.startAt<=t&&(t=i.startAt),i.endAt>=r&&(r=i.endAt)}return{start:t,end:r}}function X(e,t){let r={},s={};t.forEach(t=>{e(t)?(r[t.pid]||(r[t.pid]=[]),r[t.pid].push([t.startAt,t.endAt])):(s[t.pid]||(s[t.pid]=[]),s[t.pid].push([t.startAt,t.endAt]))});let i=0,n=Object.keys(r);for(let e=0;e<n.length;e++){let t=n[e],l=L(r[t]),a=L(s[t]||[]).filter(e=>{let[t,r]=e;return l.some(e=>t>=e[0]&&r<=e[1])});i+=(l.length?l.reduce((e,t)=>e+=t[1]-t[0],0):0)-(a.length?a.reduce((e,t)=>e+=t[1]-t[0],0):0)}return i}function ee(e,t){let r=t.filter(t=>!t.loader.includes("builtin")&&t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),s=e.endAt-e.startAt;return r.length&&L(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];s-=t}),s}function et(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(eu(e.loader)))),[...t]}function er(e){let t=[];for(let r=0;r<e.length;r++){let s=e[r];for(let e=0;e<s.loaders.length;e++){let r=s.loaders[e];t.push(r)}}return t}function es(e){let t=[],r=er(e);return e.forEach(e=>{e.loaders.forEach(s=>{t.push({layer:e.resource.layer,loader:eu(s.loader),isPitch:s.isPitch,startAt:s.startAt,endAt:s.endAt,pid:s.pid,sync:s.sync,resource:e.resource.path,costs:ee(s,r)})})}),t}function ei(e){let t=er(e);return e.map(e=>{let{loaders:r,resource:s}=e;return{path:s.path,layer:s.layer,loaders:r.map(e=>({key:e.path,loader:eu(e.loader),path:e.path,errors:e.errors,costs:ee(e,t)}))}})}function en(e,t){let r=t.find(t=>t.resource.path===e);if(!r)throw Error(`"${e}" not match any loader data`);let s=er(t);return{...r,loaders:r.loaders.map(e=>{let{input:t,result:r,...i}=e;return{...i,loader:eu(e.loader),costs:ee(e,s)}})}}function el(e,t){let r=t.filter(t=>{let{path:r}=t.resource;return r.startsWith(e)}),s=[],i=new Map;return r.forEach(e=>{e.loaders.forEach(e=>{let t=i.get(e.loader);return t?i.set(e.loader,{files:t.files+1,path:e.path}):i.set(e.loader,{files:1,path:e.path}),s.push({loader:e.loader,startAt:e.startAt,endAt:e.endAt,pid:e.pid})})}),Array.from(i).map(e=>{let t=X(t=>t.loader===e[0],s);return{loader:e[0],files:e[1].files,path:e[1].path,costs:t}})}function ea(e,t){let r,s=t||y.cwd();return(r=new Set,e.forEach(e=>{if(e.resource.path.startsWith(s)){let t=e.resource.path.split(s).slice(1).join("/").split("/");if(t.length>=2){let e=t.slice(0,2).join("/");r.add(`${s}/${e}`)}}else{let t=e.resource.path.split("/"),s=t.slice(0,t.length-1).join("/");r.add(s)}}),Array.from(r)).map(t=>{let r=el(t,e);return{directory:t,stats:r}})}function eo(e,t){for(let r=0;r<t.length;r++){let s=t[r];if(s.resource.path===e){let e=s.loaders.filter(e=>!e.isPitch);if(!e.length)return"";return e[0].input||""}}return""}function ed(e,t,r,s){for(let i=0;i<s.length;i++){let n=s[i];if(n.resource.path===e)for(let e=0;e<n.loaders.length;e++){let s=n.loaders[e];if(eu(s.loader)===t&&s.loaderIndex===r)return{input:s.input||"",output:s.result||""}}}return{input:"",output:""}}G.override({log:e=>{console.log(`${d().green("[RSDOCTOR LOG]")} ${e}`)},info:e=>{console.log(`${d().yellow("[RSDOCTOR INFO]")} ${e}`)},warn:e=>{console.warn(`${d().yellow("[RSDOCTOR WARN]")} ${e}`)},start:e=>{console.log(`${d().green("[RSDOCTOR START]")} ${e}`)},ready:e=>{console.log(`${d().green("[RSDOCTOR READY]")} ${e}`)},error:e=>{console.error(`${d().red("[RSDOCTOR ERROR]")} ${e}`)},success:e=>{console.error(`${d().green("[RSDOCTOR SUCCESS]")} ${e}`)},debug:e=>{y.env.DEBUG&&console.log(`${d().blue("[RSDOCTOR DEBUG]")} ${e}`)}});let ec="__l__",eh=e=>("module"in e.options&&e.options.module.rules||[]).some(e=>{var t;return!!(e&&"object"==typeof e&&e.test instanceof RegExp&&(null==(t=e.test)?void 0:t.test(".vue")))}),eu=e=>{let t=e.includes("node_modules")?e.split("node_modules"):null;return t?t[t.length-1]:e};function ep(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return 0===t?Math.floor(e):+e.toFixed(t)}function em(e,t){return"m"===t?e>1?"mins":"min":e>1?"hours":"hour"}function ef(e){if((e=Number(e))>=1e3){let t=e/1e3;if(t>=60){let e=t/60;if(e>=60){let t=ep(e/60,0),r=ep(e%60,1),s=em(t,"h");return r>0?`${t}${s} ${r}${em(r,"m")}`:`${t}${s}`}let r=em(e=ep(e,0),"m"),s=ep(t%60,0);return s>0?`${e}${r} ${s}s`:`${e}${r}`}return`${ep(t,1)}s`}if(e>=10)return`${+ep(e,0)}ms`;if(e>=1)return`${+ep(e,1)}ms`;let t=+ep(e,2);return 0===t&&(t=+ep(e,3)),`${t}ms`}function eg(e,t){let r=(0,m.hrtime)(t);return e+1e3*r[0]+(y.env.RSTEST?Math.round(r[1]/1e6):r[1]/1e6)}function ex(e){return!!e.result}function ey(e){return!!e.error}function ej(e,t){let r=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),s=e.endAt-e.startAt;return r.length&&L(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];s-=t}),s}function ev(e){return e.map(e=>({issuerPath:e.issuerPath}))}function eA(e,t,r,s){let i=r.find(t=>t.path===e),n=t.filter(t=>t.issuerPath===e),l=i&&s&&s[i.id]?s[i.id].source:"",a=n.reduce((e,t)=>t.request&&ex(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,l);return{filepath:e,before:l,after:a,resolvers:n.map(e=>({...e,costs:ej(e,t)}))}}function eS(e){return e.chunks?e.chunks:[]}function eb(e,t){return e.chunks.length?ek(e.chunks,t):[]}function eM(e,t){return t.find(t=>t.id===e)}function ek(e,t,r){return e.length?e.map(e=>t.find(t=>t.id===e)).filter(Boolean).map(e=>{if(r&&r.length>0){let t={};for(let s of r)void 0!==e[s]&&(t[s]=e[s]);return t}return e}):[]}function ez(e,t,r){return ek(eS(e),t,r)}function ew(e,t,r){let s=t.find(t=>t.id===e);return s?eb(s,r):[]}function eI(e,t){return t.find(t=>t.id===e.dependencyId)}function eP(e,t){return e.dependencies.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function eC(e,t){return t.find(t=>t.resolvedRequest===e)}function eE(e,t,r,s,i){return eT(ek(eS(e),t),r,s,i)}function eD(e){let{modules:t=[]}=e;return t}function e_(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function eN(e,t,r){return eD(e).map(e=>{let s=t.find(t=>t.id===e);if(r&&r.length>0){if(!s)return null;let e={};for(let t of r)void 0!==s[t]&&(e[t]=s[t]);return e}return s}).filter(Boolean)}function eT(e,t,r,s){let i=[];try{e.forEach(e=>{eN(e,t,r).forEach(e=>{(!s||s(e))&&!i.filter(t=>t.id===e.id).length&&i.push(e)})})}catch(e){G.debug(e)}return i}function eB(e,t){return t.find(t=>t.id===e.module)}function eR(e,t,r){let s=[],i=[];for(let n=0;n<e.length;n++){let l=eI(e[n],t);if(l){s.push(l);let e=eB(l,r);e&&i.push(e)}}return{dependencies:s,modules:i}}function e$(e,t,r,s){let i=t.find(t=>t.id===e);return{module:i,dependencies:eP(i,r),...(null==s?void 0:s.length)?{sideEffectCodes:s}:{}}}let eF=RegExp(`(.*)${/[-|.]/.source}(${/(?:[a-f0-9]{4,32}|[a-zA-Z]{3,}[0-9]|[a-zA-Z]*[0-9][a-zA-Z]{2,}|[a-zA-Z]*[0-9][a-zA-Z0-9]{3,31})/.source})(${/(?:\.[a-z|A-Z|0-9]{2,}){1,}/.source})$`);function eO(e,t){var r;let s=null==t?void 0:t.split("."),i="",n=e;if((null==s?void 0:s.length)&&s.length>=3&&(null==(r=s[s.length-2])?void 0:r.indexOf("["))<0&&"js|css|html".indexOf(s[s.length-1])>-1){i=s[s.length-2];let t=e.match(/(.*)(\.([a-f0-9]{4,32}|[a-zA-Z]*[0-9][a-zA-Z0-9]*))(\.[^.]+){2,}$/);if(t&&t[3].length>=4&&t[3].length<=32)return n=t[1],`${n}.${i}.${e.substring(e.lastIndexOf(".")+1)}`}let l=e.match(eF);return l&&l[2]&&l[2].length>=4&&l[2].length<=32?e.replace(eF,"$1$3"):e}function eG(e,t){return e.path.slice(-t.length)===t||e0(e.path)===t}function eL(e,t){return!!t.length&&t.some(t=>eG(e,t))}function eW(e,t){return"string"==typeof t?e.filter(e=>eG(e,t)):Array.isArray(t)?e.filter(e=>eL(e,t)):[]}function eU(e,t){return t&&(e="function"==typeof t?e.filter(t):eW(e,t)),e}function eK(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{withFileContent:s=!0,filterOrExtensions:i}=r;return(e=e.filter(e=>!eL(e,h.YM.MapExtensions)),i&&(e=eU(e,i)),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,gzipSize:e.gzipSize,initial:eY(e,t),content:s?e.content:void 0}))}:{count:0,size:0,files:[]}}function eY(e,t){return ez(e,t).some(e=>!!e.initial)}function eq(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.filterOrExtensions&&(e=eU(e,r.filterOrExtensions)),eK(e,t,{...r,filterOrExtensions:e=>eY(e,t)})}function eH(e,t){return{all:{total:eZ(e,t)},js:{total:eZ(e,t,h.YM.JSExtensions),initial:eZ(e,t,h.YM.JSExtensions,!0)},css:{total:eZ(e,t,h.YM.CSSExtension),initial:eZ(e,t,h.YM.CSSExtension,!0)},imgs:{total:eZ(e,t,h.YM.ImgExtensions)},html:{total:eZ(e,t,h.YM.HtmlExtension)},media:{total:eZ(e,t,h.YM.MediaExtensions)},fonts:{total:eZ(e,t,h.YM.FontExtensions)},others:{total:eZ(e,t,e=>!eL(e,[...h.YM.JSExtensions,h.YM.CSSExtension,h.YM.HtmlExtension].concat(h.YM.ImgExtensions,h.YM.MediaExtensions,h.YM.FontExtensions,h.YM.MapExtensions)))}}}function eV(e,t){let r=e===t;return{percent:r?0:0===e?100:Math.abs(t-e)/e*100,state:r?h.Kj.RsdoctorClientDiffState.Equal:e>t?h.Kj.RsdoctorClientDiffState.Down:h.Kj.RsdoctorClientDiffState.Up}}function eZ(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i,n,{size:l,count:a}=s?eq(e.assets,e.chunks,{filterOrExtensions:r}):eK(e.assets,e.chunks,{filterOrExtensions:r});if(e===t)i=l,n=a;else{let{size:e,count:l}=s?eq(t.assets,t.chunks,{filterOrExtensions:r}):eK(t.assets,t.chunks,{filterOrExtensions:r});i=e,n=l}let{percent:o,state:d}=eV(l,i);return{size:{baseline:l,current:i},count:{baseline:a,current:n},percent:o,state:d}}function eJ(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={...r,filterOrExtensions:h.YM.JSExtensions},i={...r,filterOrExtensions:h.YM.CSSExtension},n={...r,filterOrExtensions:h.YM.ImgExtensions},l={...r,filterOrExtensions:h.YM.HtmlExtension},a={...r,filterOrExtensions:h.YM.MediaExtensions},o={...r,filterOrExtensions:h.YM.FontExtensions},d={...r,filterOrExtensions:e=>!eL(e,[...h.YM.JSExtensions,h.YM.CSSExtension,h.YM.HtmlExtension].concat(h.YM.ImgExtensions,h.YM.MediaExtensions,h.YM.FontExtensions,h.YM.MapExtensions))};return{all:{total:eK(e,t,r)},js:{total:eK(e,t,s),initial:eq(e,t,s)},css:{total:eK(e,t,i),initial:eq(e,t,i)},imgs:{total:eK(e,t,n)},html:{total:eK(e,t,l)},media:{total:eK(e,t,a)},fonts:{total:eK(e,t,o)},others:{total:eK(e,t,d)}}}function eQ(e,t,r,s,i){let n=t.find(t=>t.path===e);return{asset:n,chunks:ez(n,r),modules:eE(n,r,s,void 0,i)}}function eX(e,t,r,s){let i=[];try{for(let n=0;n<e.length;n++){let l=e[n];i.push({asset:l,modules:eE(l,t,r,s)})}return i}catch(e){return console.error(e),[]}}function e0(e){let t=e.split("?")[0].match(/\.([0-9a-z]+)(?:[\?#]|$)/i);return t?`.${t[1]}`:""}function e1(e){return e}function e2(e){let t=encodeURIComponent(e.join(","));return t&&(t=`?${h.Kj.RsdoctorClientUrlQuery.BundleDiffFiles}=${t}`),t}function e5(e){let t=e2(e);return`${t}#${h.Kj.RsdoctorClientRoutes.BundleDiff}`}function e6(e){return decodeURIComponent(e).split(",")}function e4(e){return Object.keys(e)}function e8(e){let t=e4(e),r=new Set;return t.forEach(t=>{e[t].forEach(e=>{r.add(e.tapName)})}),[...r]}function e7(e){return{hooks:e4(e),tapNames:e8(e)}}function e9(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=e4(e).filter(e=>!t.length||-1!==t.indexOf(e));return s.length?e8(e).reduce((t,i)=>(r.length&&-1===r.indexOf(i)||s.forEach(r=>{let s=e[r].filter(e=>e.tapName===i);0!==s.length&&t.push({tapName:i,hook:r,data:s.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}function e3(e,t,r,s,i){return s.slice().reverse().map(s=>{let n=t.find(e=>e.id===s.dependencyId);if(!n)return null;let l=e.find(e=>e.id===n.module);return l?{group:s.group,module:l,dependency:n,relativePath:(0,u.relative)(r,l.path),moduleCode:null==i?void 0:i[l.id]}:null}).filter(Boolean)}let te="__l__";var tt=((i={}).Bootstrap="bootstrap->rspack:beforeCompile",i.Compile="rspack:beforeCompile->afterCompile",i.Done="rspack:afterCompile->done",i.Minify="rspack:minify(rspack:optimizeChunkAssets)",i);function tr(e){var t,r,s,i;if(!Array.isArray(e)||!e[0])return{isRspack:!1,hasSourceMap:!1};let n="rspack"===e[0].name&&(null==(r=e[0])||null==(t=r.config)?void 0:t.name)!=="lynx",l=null==(s=e[0].config)?void 0:s.devtool,a=null==(i=e[0].config)?void 0:i.plugins,o=null==a?void 0:a.filter(e=>e&&e.includes("SourceMapDevToolPlugin"));return{isRspack:n,hasSourceMap:"string"==typeof l&&l.includes("source-map")&&!l.includes("eval")||!!(null==o?void 0:o.length)}}class ts{log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}loadAPI(){for(var e,t=arguments.length,r=Array(t),s=0;s<t;s++)r[s]=arguments[s];let[i,n]=r;switch(i){case h.hp.ServerAPI.API.LoadDataByKey:return this.loader.loadData(n.key);case h.hp.ServerAPI.API.GetProjectInfo:return Promise.all([this.loader.loadData("root"),this.loader.loadData("pid"),this.loader.loadData("hash"),this.loader.loadData("summary"),this.loader.loadData("configs"),this.loader.loadData("envinfo"),this.loader.loadData("errors")]).then(e=>{var t,r;let[s,i,n,l,a,o,d]=e;return{root:s,pid:i,hash:n,summary:l,configs:a,envinfo:o,errors:d,name:null==a||null==(r=a[0])||null==(t=r.config)?void 0:t.name}});case h.hp.ServerAPI.API.GetClientRoutes:if("u">typeof window&&(null==(e=window)?void 0:e[h.YM.WINDOW_RSDOCTOR_TAG]))return window[h.YM.WINDOW_RSDOCTOR_TAG].enableRoutes;return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t});case h.hp.ServerAPI.API.GetLoaderNames:return this.loader.loadData("loader").then(e=>et(e||[]));case h.hp.ServerAPI.API.GetLayers:return this.loader.loadData("moduleGraph").then(e=>{let{layers:t}=e||{};return t});case h.hp.ServerAPI.API.GetLoaderChartData:return this.loader.loadData("loader").then(e=>es(e||[]));case h.hp.ServerAPI.API.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>ei(e||[]));case h.hp.ServerAPI.API.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>en(n.path,e||[]));case h.hp.ServerAPI.API.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>el(n.folder,e||[]));case h.hp.ServerAPI.API.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>eo(n.file,e||[]));case h.hp.ServerAPI.API.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>ed(n.file,n.loader,n.loaderIndex,e||[]));case h.hp.ServerAPI.API.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>ev(e||[]));case h.hp.ServerAPI.API.GetResolverFileDetails:return Promise.all([this.loader.loadData("resolver"),this.loader.loadData("moduleGraph.modules"),this.loader.loadData("moduleCodeMap")]).then(e=>{let t=e[0],r=e[1],s=e[2];return eA(n.filepath,t||[],r||[],s||{})});case h.hp.ServerAPI.API.GetPluginSummary:return this.loader.loadData("plugin").then(e=>e7(e||{}));case h.hp.ServerAPI.API.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:r}=n;return e9(e||{},t,r)});case h.hp.ServerAPI.API.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=n,{assets:r=[],chunks:s=[]}=e||{};return eJ(r,s,{withFileContent:t})});case h.hp.ServerAPI.API.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assetPath:t}=n,{isRspack:r,hasSourceMap:s}=tr(e[2]||[]),{assets:i=[],chunks:l=[]}=e[0]||{},{modules:a=[]}=e[1]||{};return eQ(t,i,l,a,r||s?e=>0!==e.size.parsedSize:()=>!0)});case h.hp.ServerAPI.API.GetSummaryBundles:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{var t,r;let{assets:s=[],chunks:i=[]}=e[0]||{},{modules:n=[]}=e[1]||{},l=e[2]||[],a=s;return Array.isArray(l)&&(null==(r=l[0])||null==(t=r.config)?void 0:t.name)==="lynx"&&(a=s.filter(e=>!e.path.endsWith("/template.js"))),eX(a,i,n,["id","path","size","kind"])});case h.hp.ServerAPI.API.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=n,{chunks:r=[]}=e[0]||{},{modules:s=[]}=e[1]||{};return ew(t,s,r)});case h.hp.ServerAPI.API.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("treeShaking")]).then(e=>{let{moduleId:t}=n,{modules:r=[],dependencies:s=[]}=e[1]||{},i=e[2],l=(null==i?void 0:i.sideEffectCodes[t])||[];return e$(t,r,s,l)});case h.hp.ServerAPI.API.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=n,{modules:r=[]}=e||{};return e_(t,r)});case h.hp.ServerAPI.API.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:r=[]}=t||{};return r});case h.hp.ServerAPI.API.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=n;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case h.hp.ServerAPI.API.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=n,r={};return e?(t.forEach(t=>{r[t]=e[t]}),r):[]});case h.hp.ServerAPI.API.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>null==e?void 0:e.modules);case h.hp.ServerAPI.API.GetSearchModules:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("chunkGraph")]).then(e=>{let[t,r]=e,{moduleName:s}=n;if(!s)return[];let i=r.chunks.reduce((e,t)=>(t.assets.forEach(r=>{e[t.id]||(e[t.id]=[]),e[t.id].push(r)}),e),{}),l=new Map;return null==t||t.modules.filter(e=>{e.webpackId.includes(s)&&e.chunks.forEach(e=>{l.has(e)||(i[e]||[]).forEach(t=>{t.endsWith(".js")&&l.set(e,t)})})}),Object.fromEntries(l)});case h.hp.ServerAPI.API.GetSearchModuleInChunk:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("root")]).then(e=>{let[t,r]=e,{moduleName:s,chunk:i}=n;return s?null==t?void 0:t.modules.filter(e=>e.webpackId.includes(s)&&e.chunks.includes(i)).map(e=>({id:e.id,path:e.path,relativePath:(0,u.relative)(r,e.path)})):[]});case h.hp.ServerAPI.API.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>null==e?void 0:e.chunks);case h.hp.ServerAPI.API.GetPackageRelationAlertDetails:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("errors"),this.loader.loadData("root"),this.loader.loadData("moduleCodeMap")]).then(e=>{let{id:t,target:r}=n,[s,i=[],l="",a]=e,{modules:o=[],dependencies:d=[]}=s||{},{packages:c=[]}=i.find(e=>e.id===t)||{},{dependencies:h=[]}=c.find(e=>e.target.name===r.name&&e.target.root===r.root&&e.target.version===r.version)||{};return e3(o,d,l,h,a||{})});case h.hp.ServerAPI.API.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===h.jO.RuleMessageCodeEnumerated.Overlay));case h.hp.ServerAPI.API.GetBundleAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.category===h.jO.RuleMessageCategory.Bundle));case h.hp.ServerAPI.API.BundleDiffManifest:return this.loader.loadManifest();case h.hp.ServerAPI.API.GetBundleDiffSummary:return Promise.all([this.loader.loadManifest(),this.loader.loadData("root"),this.loader.loadData("hash"),this.loader.loadData("errors"),this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("moduleCodeMap"),this.loader.loadData("packageGraph"),this.loader.loadData("configs")]).then(e=>{var t,r,s,i;let[n,l="",a="",o={},d={},c={},h={},u={},p=[]]=e,m="";return"string"==typeof(null==(s=p[0])||null==(r=s.config)||null==(t=r.output)?void 0:t.chunkFilename)&&(m=null==(i=p[0])?void 0:i.config.output.chunkFilename),{root:l,hash:a,errors:o,chunkGraph:d,moduleGraph:c,packageGraph:u,outputFilename:m,moduleCodeMap:h}});case h.hp.ServerAPI.API.GetChunkGraph:return this.loader.loadData("chunkGraph").then(e=>{let{chunks:t=[]}=e||{};return t});case h.hp.ServerAPI.API.GetAllModuleGraphFilter:return this.loader.loadData("moduleGraph").then(e=>null==e?void 0:e.modules.map(e=>({id:e.id,webpackId:e.webpackId,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind})));case h.hp.ServerAPI.API.GetModuleByName:return this.loader.loadData("moduleGraph").then(e=>{let{moduleName:t}=n,{modules:r=[]}=e||{};return r.filter(e=>e.path.includes(t)).map(e=>({id:e.id,path:e.path}))||[]});case h.hp.ServerAPI.API.GetModuleIssuerPath:return this.loader.loadData("moduleGraph").then(e=>{var t;let{moduleId:r}=n,s=(null==e?void 0:e.modules)||[],i=(null==(t=s.find(e=>String(e.id)===r))?void 0:t.issuerPath)||[];return Array.isArray(i)&&i.length>0&&"number"==typeof i[0]?i.map(e=>{var t;return null==(t=s.find(t=>t.id===e))?void 0:t.path}).filter(Boolean):i});case h.hp.ServerAPI.API.GetPackageInfo:return this.loader.loadData("packageGraph").then(e=>null==e?void 0:e.packages);case h.hp.ServerAPI.API.GetPackageDependency:return this.loader.loadData("packageGraph").then(e=>(null==e?void 0:e.dependencies)||[]);case h.hp.ServerAPI.API.GetChunkGraphAI:return this.loader.loadData("chunkGraph").then(e=>{let{assets:t=[]}=e||{};return t.map(e=>{let{content:t,...r}=e;return r})});case h.hp.ServerAPI.API.GetChunkByIdAI:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let[t,r]=e,{chunks:s=[]}=t||{},{modules:i=[]}=r||{},{chunkId:l}=n,a=s.find(e=>e.id===l);if(!a)return null;let o=i.filter(e=>a.modules.includes(e.id)).map(e=>({id:e.id,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind,issuerPath:e.issuerPath}));return a.modulesInfo=o,a});case h.hp.ServerAPI.API.GetDirectoriesLoaders:return Promise.all([this.loader.loadData("root"),this.loader.loadData("loader")]).then(e=>{let[t,r]=e;return ea(r||[],t||"")});default:throw Error(`API not implement: "${i}"`)}}constructor(e){(0,n._)(this,"loader",void 0),this.loader=e,this.loadAPI=this.loadAPI.bind(this)}}function ti(e){return void 0===e}function tn(e){return"number"==typeof e&&!Number.isNaN(e)}function tl(e){return"object"==typeof e&&null!==e}function ta(e){return null==e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length}function to(e){return e[e.length-1]}function td(e){return e.filter(e=>null!=e||!e)}function tc(e){return null==e}let th=e=>null!==e&&"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype,tu=e=>"string"==typeof e||!!e&&"object"==typeof e&&!Array.isArray(e)&&"[object String]"===({}).toString.call(e);function tp(e,t){let r={};for(let s=0;s<t.length;s++){let i=t[s];Object.hasOwn(e,i)&&(r[i]=e[i])}return r}let tm=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/,tf=RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${tm.source}[/|+])?(?:${tm.source}\\+)*(?:${tm.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${tm.source}[/|+])?(?:${tm.source})(?:@${tm.source})?)*/`,"g"),tg=/(?:(?:node_modules|~)(?:\/\.pnpm)?\/)(?:((?:@[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*[/|+])?(?:(?:[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*\+)*)(?:[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*))(?:@[\w|\-|_|.]+)?)(?:_((?:@[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*[/|+])?(?:[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*))(?:@[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*))*\//gm,tx=e=>{var t,r,s;let i,n=e.match(tf);if(!n)return{name:"",version:""};let l=(s=n.flatMap(e=>{let t=e.matchAll(tg);return t?td([...t].flat()).slice(1).filter(Boolean).map(e=>e.replace(/\+/g,"/")):[]}),i=[],s.forEach((e,t)=>{s.slice(t+1).includes(e)||i.push(e)}),i);if(ta(l))return{name:"",version:""};let a=to(l),o=RegExp(`(.*)(${to(n)}).*`),d=e.replace(o,"$1$2").replace(/\/$/,"");return{name:a,version:d&&a&&(null==(r=d.match(RegExp(`${a}@([\\d.]+)`)))||null==(t=r.flat().slice(1))?void 0:t[0])||""}};function ty(e,t){let r=x.homedir(),s=p().join(r,".cache/rsdoctor"),i=p().join(s,"mcp.json");g().existsSync(s)||g().mkdirSync(s,{recursive:!0});let n={portList:{},port:0};if(g().existsSync(i))try{n=JSON.parse(g().readFileSync(i,"utf8"))}catch(e){G.debug("Failed to parse mcp.json",e)}n.portList||(n.portList={}),n.portList[t||"builder"]=e,n.port=e,g().writeFileSync(i,JSON.stringify(n,null,2),"utf8")}function tj(){let e=x.homedir(),t=p().join(e,".cache/rsdoctor");return p().join(t,"mcp.json")}function tv(e){return/\.(c|le|sa|sc)ss(\?.*)?$/.test(e)}function tA(e){return/\.(js|ts|jsx|tsx)(\?.*)?$/.test(e)}}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return l[e].call(r.exports,r,r.exports,o),r.exports}o.m=l,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,s){if(1&s&&(r=this(r)),8&s||"object"==typeof r&&r&&(4&s&&r.__esModule||16&s&&"function"==typeof r.then))return r;var i=Object.create(null);o.r(i);var n={};e=e||[null,t({}),t([]),t(t)];for(var l=2&s&&r;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>{n[e]=()=>r[e]});return n.default=()=>r,o.d(i,n),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r=[],o.O=(e,t,s,i)=>{if(t){i=i||0;for(var n=r.length;n>0&&r[n-1][2]>i;n--)r[n]=r[n-1];r[n]=[t,s,i];return}for(var l=1/0,n=0;n<r.length;n++){for(var[t,s,i]=r[n],a=!0,d=0;d<t.length;d++)(!1&i||l>=i)&&Object.keys(o.O).every(e=>o.O[e](t[d]))?t.splice(d--,1):(a=!1,i<l&&(l=i));if(a){r.splice(n--,1);var c=s();void 0!==c&&(e=c)}}return e},o.j="410",s={410:0},o.O.j=e=>0===s[e],i=(e,t)=>{var r,i,[n,l,a]=t,d=0;if(n.some(e=>0!==s[e])){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(a)var c=a(o)}for(e&&e(t);d<n.length;d++)i=n[d],o.o(s,i)&&s[i]&&s[i][0](),s[i]=0;return o.O(c)},(n=self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n));var d=o.O(void 0,["85","416","286","637","767","576","25","66","195","485","375","510","538"],()=>o(80273));d=o.O(d)})();
|