@rsdoctor/client 2.0.0-rc.2 → 2.0.0-rc.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/js/ant-design-icons.cd2cdd8c41.js +57 -0
- package/dist/resource/js/diff.396d9c562c.js +57 -0
- package/dist/resource/js/index.4c3d816c6c.js +91 -0
- package/dist/resource/js/{rc.21be00334a.js → rc.7de5ad93df.js} +1 -1
- package/dist/resource/js/{react.4a6ec8c5b0.js → react.d360c59ce3.js} +1 -1
- package/dist/resource/js/{i.70152c94c4.js → s.c7f0be38c8.js} +2 -2
- package/dist/resource/js/t.cb145ff03e.js +106 -0
- package/dist/resource/js/w.974a5a8b1c.js +1 -0
- package/dist/resource/js/y.f37693213e.js +1 -0
- package/package.json +5 -5
- package/dist/resource/js/3.2d8b3c71b9.js +0 -1
- package/dist/resource/js/ant-design-icons.2b0f9e5cc2.js +0 -57
- package/dist/resource/js/diff.af3e0c0c2a.js +0 -57
- package/dist/resource/js/index.b4d762923c.js +0 -91
- package/dist/resource/js/n.11547b4c36.js +0 -106
- package/dist/resource/js/w.ca1a164dbc.js +0 -1
- /package/dist/resource/css/{n.fd97816ccf.css → t.fd97816ccf.css} +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,r,s,i,n,l={T5(e,t,r){var s=r("b");r("C"),t.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:"#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"})})})]})},BR(e,t,r){r.d(t,{mn:()=>h,EJ:()=>_});var s=r("b"),i=r("C"),n=r("Y2"),l=r("coF"),a=r("Wy"),o=r("w6");r("cJ");var d=r("eO"),c=r("kQ");let h=(0,o.eN)({api:n.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:r}=e,{errors:n,root:o}=r,{setBundleAlertsViewMode:h,viewMode:u,setViewMode:p}=(0,l.an)(),{t:f}=(0,l.s9)(),m=t?n.filter(t):n;return(0,i.useEffect)(()=>{(0,l.it)()||p({bundleAlerts:n.length>=5?"group":"list"},!1)},[]),(0,s.jsx)(c.Ay,{theme:{components:{Alert:{colorInfoBg:"var(--color-accent-subtle)",colorInfoBorder:"transparent"}},token:{padding:16}},children:(0,s.jsx)(a.J,{title:f("Bundle Alerts"),dataSource:m,extraData:{cwd:o,getPackageRelationContentComponent:e=>(0,s.jsx)(d.rU,{body:{id:e.data.id,target:e.package.target},cwd:o})},viewMode:u.bundleAlerts,setViewMode:h,cwd:o})})}});r("wK");var u=r("OM"),p=r("hL"),f=r("Gh"),m=r("sY"),x=r("oe"),g=r("LU"),y=r("e"),j=r("AC"),v=r("DT"),b=r("Mu"),A=r("YL"),S=r("gE"),z=r("N1"),w=r("Ol"),M=r.n(w),k=r("Mt");function E(e){let t=0,r=0;e.forEach(e=>{"warn"===e.level?t++:r++});let i=0!==t&&0!==r?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${i}`,detail:(0,s.jsxs)(u.A.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,s.jsx)(u.A.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with"}),(0,s.jsxs)(u.A.Text,{strong:!0,style:{color:"#e17055",fontSize:16},children:[" ",r," ",1===r?"error":"errors"," "]}),(0,s.jsx)(u.A.Text,{style:{color:"inherit",fontSize:16},children:"and"}),(0,s.jsxs)(u.A.Text,{strong:!0,style:{color:"#faad14",fontSize:16},children:[" ",t," ",1===t?"warning":"warnings"]})]}),warns:t,errors:r}}r("R7");let C=e=>{let{alerts:t=[],open:r,onClose:n}=e;return t.length?(0,s.jsxs)(z.A,{visible:r,onClose:()=>n(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>i.cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,s.jsxs)(p.A,{justify:"space-between",align:"middle",children:[E(t).detail,(0,s.jsx)(f.Ay,{onClick:()=>n(),type:"text",style:{color:"#fff"},size:"large",icon:(0,s.jsx)(v.A,{})})]}),(0,s.jsx)(p.A,{gutter:[0,20],children:t.map(e=>(0,s.jsx)(m.A,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,s.jsx)(x.A,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,s.jsx)(b.A,{style:{color:"#fff"}}):(0,s.jsx)(A.A,{style:{color:"#fff"}}),children:(0,s.jsx)(x.A.Panel,{header:(0,s.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,s.jsx)(g.A,{color:"#faad14",children:"WARNING"}):(0,s.jsx)(g.A,{color:"#e17055",children:"ERROR"}),(0,s.jsx)(M(),{children:e.description||e.title})]}),children:(0,s.jsx)("div",{style:{color:"#fff"},children:(0,s.jsx)(M(),{children:e.stack})})},e.id)})},e.id))})]}):null},_=(0,o.eN)({api:n.hp.uT.n.GetOverlayAlerts,Component:e=>{let{alerts:t=[]}=e;if(!t.length)return null;let[r,n]=(0,i.useState)(!1);return(0,s.jsxs)("div",{className:k.A.container,children:[(0,s.jsx)("div",{onClick:()=>n(!r),className:k.A.badgeContainer,children:(0,s.jsx)(j.A,{count:t.length,size:"small",children:(0,s.jsx)(S.A,{style:{fontSize:15}})})}),(0,s.jsx)(C,{alerts:t,open:r,onClose:()=>n(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null});(0,o.eN)({api:n.hp.uT.n.GetOverlayAlerts,Component:e=>{let{alerts:t=[],defaultOpen:r=t.length>0}=e;if(!t.length)return null;let[n,l]=(0,i.useState)(r);return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(y.A,{banner:!0,message:i.cloneElement(E(t).detail,{style:{color:"#000"}}),icon:(0,s.jsx)(S.A,{}),action:(0,s.jsx)(f.Ay,{onClick:()=>l(!0),size:"small",children:"More"})}),(0,s.jsx)(C,{alerts:t,open:n,onClose:()=>l(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},ph(e,t,r){var s,i=((s={})[s.Bootstrap=0]="Bootstrap",s[s.Compile=1]="Compile",s[s.Done=2]="Done",s[s.Minify=3]="Minify",s[s.Loader=4]="Loader",s[s.Normal=5]="Normal",s);r.d(t,{wx:()=>i},{GB:["#bda29a","#6F3FE1","#3966ed","#0a5f74","#3EBD7C","#F7A925","#ca8622","#749f83","#6e7074"],LS:["#5B8FF9","#43C6D9","#A78BFA","#F2B84B","#F27D62","#5CCB8A","#7C9CF5","#D879B9"]})},Tax(e,t,r){function s(e,t){let r="stat"===t?e.sourceSize??0:"parsed"===t?e.bundledSize??0:"brotli"===t?e.brotliSize??0:"gzip"===t?e.gzipSize??0:e.value??0;return r>0||!e.children?.length?r:e.children.reduce((e,r)=>e+s(r,t),0)}function i(e,t){return e.reduce((e,r)=>e+s(r,t),0)}r.d(t,{M:()=>s,z:()=>i})},Ko8(e,t,r){var s=r("C0"),i=r("cD"),n=r.n(i),l=r("RI"),a=r("coF");r("IG");var o=r("C");function d(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,a.a4)(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 c(e,t,r){let i=t=>t.loader===e,o=t.filter(i),d=o.map(e=>e.resource),c=d.filter(e=>e.includes("/node_modules/")),h=d.filter(e=>!e.startsWith(r)),u=(0,l.wq)(o,e=>e.startAt).startAt,p=(0,l.Sk)(o,e=>e.endAt).endAt,f=s.aH.pU(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">${d.length}</span>
|
|
35
|
-
</li>
|
|
36
|
-
<li class="loader-tooltip-item">
|
|
37
|
-
<span>files(node_modules)</span>
|
|
38
|
-
<span class="loader-tooltip-text-bold">${c.length}</span>
|
|
39
|
-
</li>
|
|
40
|
-
<li class="loader-tooltip-item">
|
|
41
|
-
<span>files(outside the cwd)</span>
|
|
42
|
-
<span class="loader-tooltip-text-bold">${h.length}</span>
|
|
43
|
-
</li>
|
|
44
|
-
<li class="loader-tooltip-item">
|
|
45
|
-
<span>duration(estimated)</span>
|
|
46
|
-
<span class="loader-tooltip-text-bold">${(0,a.a4)(f)}</span>
|
|
47
|
-
</li>
|
|
48
|
-
<li class="loader-tooltip-item">
|
|
49
|
-
<span>start(min)</span>
|
|
50
|
-
<span>${n()(u).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
51
|
-
</li>
|
|
52
|
-
<li class="loader-tooltip-item">
|
|
53
|
-
<span>end(max)</span>
|
|
54
|
-
<span>${n()(p).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
55
|
-
</li>
|
|
56
|
-
</div>
|
|
57
|
-
`.trim()}function h(e){return function e(t){return t.reduce((t,r)=>{if(r.c){let s=e(r.c);t.push({name:r.n,ph:"B",pid:r.p,ts:r.s,args:r},...s,{name:r.n,ph:"E",pid:r.p,ts:r.e,args:r})}else t.push({name:r.n,ph:"B",pid:r.p,ts:r.s,args:r}),t.push({name:r.n,ph:"E",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 u(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,a.a4)(t.args.e-t.args.s)}</span>
|
|
79
|
-
</li>
|
|
80
|
-
</div>
|
|
81
|
-
`.trim()}function p(e,t){let[r,s]=(0,o.useState)(e);return(0,o.useEffect)(()=>{let r=setTimeout(()=>s(e),t);return()=>clearTimeout(r)},[e,t]),r}r.d(t,{Bq:()=>d,QR:()=>h,Wy:()=>p,iv:()=>c,kr:()=>u})},ez(e,t,r){var s=r("b");r("C");var i=r("OM"),n=r("FA"),l=r("PjM");let a=e=>{let{text:t,els:r,marked:a=!1,rest:o}=e;if(!t)return null;let d=t.length;return d>40?(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,18),"...",t.slice(d-19)]})})}):(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)})})};r.d(t,{},{i:e=>{let{text:t,keyword:r,...n}=e;if(!r||-1===t.indexOf(r))return a({text:t,rest:n});let o=[],d=t;for(;d.length>0;){let e=d.indexOf(r);if(e>-1)0!==e&&o.push(a({text:d,els:o})),o.push(a({text:d,els:o,marked:!0})),d=d.slice(e+r.length);else{o.push(a({text:d,els:o,marked:!0}));break}}return(0,s.jsx)(i.A.Text,{className:l.A.text,...n,children:o})}})},E14(e,t,r){var s=r("C");let i=(0,s.createContext)({project:null});function n(){return(0,s.useContext)(i)}r.d(t,{L:()=>n},{h:i})},Pf(e,t,r){var s=r("b"),i=r("Bb"),n=r("C"),l=r("coF"),a=r("cJ"),o=r("v5");function d(e,t,r){let d=e();return function(){let[c,h]=(0,n.useState)(),[u,p]=(0,n.useState)(a.jK.Pending),[f,m]=(0,n.useState)({}),{loader:x}=(0,l.VX)(c);function g(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=>{m(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)(()=>{g(d).then(()=>{y(x)})},[x]),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(x)}).catch(()=>{g(e())})}}):(0,s.jsx)(r,{...f})}}r.d(t,{k:()=>d})},MW(e,t,r){r.d(t,{A:()=>i,h:()=>n});var s=r("b");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]})};var n=i},v5(e,t,r){var s=r("gJ");r.d(t,{c:()=>s.c})},sC(e,t,r){r.d(t,{Cv:()=>u});var s=r("b"),i=r("DN"),n=r("Vn"),l=r("C"),a=r("yr"),o=r("b6"),d=r("Js"),c=r("C0"),h=r("coF");function u(e){let{className:t,style:r,code:u="",lang:p,filePath:f="",defaultLine:m,ranges:x,isEmbed:g=!1,headerVisible:y=!0,isLightTheme:j,formatOnMount:v=!1}=e,{isLight:b}=(0,h.DP)(),A=(0,l.useRef)(void 0),S=(0,l.useRef)(void 0),z=(0,l.useMemo)(()=>p||(0,a.rZ)(f)||"plaintext",[p,f]),[w,M]=(0,l.useState)(!0),k=(0,l.useMemo)(()=>(0,a.$N)({wordWrap:w?"on":"off"}),[w]),E=(0,l.useCallback)((e,t)=>{A.current=e,S.current=t,(0,a.sK)(e,t,x),c.AP.Et(m)&&setTimeout(()=>{e.revealLine(m)}),v&&setTimeout(()=>{e.getAction("editor.action.formatDocument")?.run()},0)},[x,m,v]);return(0,l.useEffect)(()=>()=>{A.current?.setModel(null)},[]),(0,s.jsxs)("div",{className:(0,n.A)("monaco-component","code-viewer",d.A["code-viewer"],g&&d.A.embed,t),style:r,children:[y&&!!f&&(0,s.jsxs)("div",{className:d.A.header,children:[(0,s.jsx)("div",{children:(0,a.WP)(f)}),(0,s.jsx)("div",{style:{flex:1}}),(0,s.jsx)("div",{children:(0,s.jsx)(o.A,{className:d.A.text,title:"side-by-side",checked:w,onChange:e=>{M(e.target.checked)},children:"word-wrap"})})]}),(0,s.jsx)("div",{className:(0,n.A)(d.A.content,"editor-wrap"),children:(0,s.jsx)(i.KE,{theme:j??b?"vs-light":"vs-dark",language:z,value:u,options:k,onMount:E})})]})}r("sb")},sb(e,t,r){r.d(t,{Y:()=>o});var s=r("b"),i=r("il"),n=r("Kz"),l=r("C"),a=r("sC");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),[f,m]=(0,l.useState)(),[x,g]=(0,l.useState)();return{showCode(e){r(e.code||""),d(e.lang||""),h(e.filePath||""),m(e.defaultLine),g(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:f,ranges:x}):(0,s.jsx)(n.A,{description:e||"No Code"})})}}},V(e,t,r){var s=r("b");r("s");var i=r("e");r("C");var n=r("TA"),l=r("cy");function a(){let e=[{path:l._y.wE,element:(0,s.jsx)(l._y.YW,{})},{path:l.hK.wE,element:(0,s.jsx)(l.hK.YW,{})},{path:l.FO.wE,element:(0,s.jsx)(l.FO.YW,{})},{path:l.dn.wE,element:(0,s.jsx)(l.dn.YW,{})},{path:l.pI.wE,element:(0,s.jsx)(l.pI.YW,{})},{path:l.PR.wE,element:(0,s.jsx)(l.PR.YW,{})},{path:l.s0.wE,element:(0,s.jsx)(l.s0.BU,{})}].filter(e=>!!e);return(0,s.jsxs)(n.BV,{children:[(0,s.jsx)(n.qh,{path:"/",element:(0,s.jsx)(l.wm.YW,{})}),(0,s.jsx)(n.qh,{path:l.wm.wE,element:(0,s.jsx)(l.wm.YW,{})}),e.map(e=>(0,s.jsx)(n.qh,{path:e.path,element:e.element},e.path)),(0,s.jsx)(n.qh,{path:l.aD.wE,element:(0,s.jsx)(l.aD.YW,{})}),(0,s.jsx)(n.qh,{path:l.d9.wE,element:(0,s.jsx)(l.d9.YW,{})})]})}var o=r("yRi"),d=r("coF"),c=r("OM"),h=r("CA");r("Vq");let u=document.getElementById("root");h.createRoot(u).render((0,s.jsx)(()=>{let e=(0,d.km)();return(0,s.jsx)(o.A,{router:(0,s.jsx)(a,{}),renderFailState:()=>{let e=(0,d.JI)();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)},VKU(e,t,r){r.d(t,{},{kw:e=>new Map(e.map(e=>[e.path.replace(/\\/g,"/"),e])),yF:(e,t,r)=>e.get(t.replace(/\\/g,"/"))??r})},Hw(e,t,r){let s=r("Y2").Kj.EH.Overall;r.d(t,{},{U:"Overall",w:s})},cy(e,t,r){r.d(t,{aD:()=>si,_y:()=>n,hK:()=>a,pI:()=>l,dn:()=>d,wm:()=>i,FO:()=>o,PR:()=>c,s0:()=>h,d9:()=>u});var s,i={};r.r(i),r.d(i,{YW:()=>e_,wE:()=>eC.w});var n={};r.r(n),r.d(n,{YW:()=>r_,UU:()=>rE,wE:()=>rC});var l={};r.r(l),r.d(l,{YW:()=>rF,UU:()=>rP,wE:()=>rR});var a={};r.r(a),r.d(a,{YW:()=>rY,UU:()=>rH,wE:()=>rU});var o={};r.r(o),r.d(o,{YW:()=>rZ,UU:()=>rJ,wE:()=>rX});var d={};r.r(d),r.d(d,{YW:()=>r9,UU:()=>r5,wE:()=>r6});var c={};r.r(c),r.d(c,{YW:()=>r7,wE:()=>r8});var h={};r.r(h),r.d(h,{BU:()=>ss,UU:()=>st,wE:()=>sr});var u={};r.r(u),r.d(u,{YW:()=>sf,wE:()=>sp});var p=r("b"),f=r("C"),m=r("p"),x=r("Gh"),g=r("YL"),y=r("ut"),j=r("coF");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"}],b=()=>{let{t:e}=(0,j.s9)();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)(x.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)(g.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 A=r("BR"),S=r("mrd"),z=r("LU"),w=r("tx"),M=r("u3"),k=r("yn"),E=r("TA"),C=r("ft"),_=r("ns"),N=r("w6"),T="card-lyOUB6",I=r("EFx"),D=r("e"),O=r("T5"),B=e=>(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,p.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,p.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"})]});let P=e=>{let{theme:t,number:r,description:s}=e;return(0,p.jsx)(D.A,{message:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(I.A,{className:"icon-K6JtIV",component:"common"===t?B:O.A}),(0,p.jsx)("span",{className:"description-Ik1PO7",children:s}),(0,p.jsx)("span",{className:"data-J9Vxvq",children:r})]}),className:"container-ssAvLP",type:"warning"===t?"warning":"info"})};var R=r("Y2"),F="column-VJtpT7",$="description-nwRikm",L="unit-poAoxV",W="tag-fNEiQ8",q="label-vITl7c";let{DirectoryTree:G}=S.A,H=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),s=t||{title:e.defaultDir,key:e.defaultDir,icon:(0,p.jsx)(k.A,{}),children:[]},i=(0,C.C)(e.fileName);t||r.push(s),s.children.push({title:(0,p.jsxs)("div",{className:"treeContainer-jcFlxc",children:[(0,p.jsx)("div",{className:"treeTitle-B083rc",children:e.fileName}),(0,p.jsx)("div",{className:"line-Ia_8Yg"}),(0,p.jsx)(z.A,{className:`${W} sizeTag-ukmRN7`,children:(0,j.Xq)(e.size)}),e.initial?(0,p.jsx)(z.A,{className:W,color:"cyan",children:"initial"}):null]}),key:e.fileName,isLeaf:!0,icon:i})}),{treeData:r}},U=e=>{let{treeData:t}=H(e);return(0,p.jsx)(p.Fragment,{children:e.files.length?(0,p.jsx)(_.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,p.jsx)("span",{children:e.count}),children:(0,p.jsx)(G,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}})}):e.count})},Y=e=>{let{res:t,view:r}=e,[s,{width:i}]=(0,j.Lh)(),n=[{key:"js-files-count",label:"JS files",children:(0,p.jsx)("span",{className:`${$} ${F}`,children:U(t.js.total)})},{key:"css-files-count",label:"CSS files",children:(0,p.jsx)("span",{className:`${$} ${F}`,children:U(t.css.total)})},{key:"font-files-count",label:"Font files",children:(0,p.jsx)("span",{className:`${$} ${F}`,children:U(t.fonts.total)})},{key:"html-files-count",label:"HTML files",children:(0,p.jsx)("span",{className:$,children:U(t.html.total)})},{key:"image-files-count",label:"Image files",children:(0,p.jsx)("span",{className:$,children:U(t.imgs.total)})},{key:"media-files-count",label:"Media files",children:(0,p.jsx)("span",{className:$,children:U(t.media.total)})}],[l,a]=(0,j.Xq)(t.js.total.size).split(" "),[o,d]=(0,j.Xq)(t.css.total.size).split(" "),[c,h]=(0,j.Xq)(t.fonts.total.size).split(" "),[u,f]=(0,j.Xq)(t.html.total.size).split(" "),[m,x]=(0,j.Xq)(t.imgs.total.size).split(" "),[g,y]=(0,j.Xq)(t.media.total.size).split(" "),v=[{key:"js-files-size",label:(0,p.jsx)("span",{className:q,children:"JS size"}),children:(0,p.jsxs)("div",{className:F,children:[(0,p.jsx)("span",{className:$,children:l}),(0,p.jsx)("span",{className:L,children:a})]})},{key:"css-files-size",label:(0,p.jsx)("span",{className:q,children:"CSS size"}),children:(0,p.jsxs)("div",{className:F,children:[(0,p.jsx)("span",{className:$,children:o}),(0,p.jsx)("span",{className:L,children:d})]})},{key:"font-files-size",label:(0,p.jsx)("span",{className:q,children:"Font size"}),children:(0,p.jsxs)("div",{className:F,children:[(0,p.jsx)("span",{className:$,children:c}),(0,p.jsx)("span",{className:L,children:h})]})},{key:"html-files-size",label:(0,p.jsx)("span",{className:q,children:"HTML size"}),children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:$,children:u}),(0,p.jsx)("span",{className:L,children:f})]})},{key:"image-files-size",label:(0,p.jsx)("span",{className:q,children:"Image size"}),children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:$,children:m}),(0,p.jsx)("span",{className:L,children:x})]})},{key:"media-files-size",label:(0,p.jsx)("span",{className:q,children:"Media size"}),children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:$,children:g}),(0,p.jsx)("span",{className:L,children:y})]})}];return(0,p.jsx)("div",{ref:s,children:(0,p.jsx)(w.A,{layout:"vertical",className:"bundleOverall-Ay7WmZ",size:"small",column:i<300?2:3,colon:!1,items:"files"===r?n:v})})},K=()=>{let[e,t]=(0,f.useState)("size"),r=(0,E.Zp)(),{t:s}=(0,j.s9)();return(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetAssetsSummary,body:{withFileContent:!1},children:i=>{let n=(0,j.Xq)(i.all.total.size);return(0,p.jsx)(y.Zp,{className:T,style:{minHeight:"316px"},children:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{className:"title-fNYU5O",children:[(0,p.jsx)("span",{children:s("Bundle Overall")}),(0,p.jsx)(x.Ay,{type:"link",style:{padding:"0px"},onClick:()=>{r(R.Kj.EH.BundleSize)},children:(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,p.jsx)("span",{style:{marginRight:"8px",fontSize:"13px"},children:s("ViewBundleSize")}),(0,p.jsx)(g.A,{style:{fontSize:"10px"}})]})})]}),(0,p.jsx)(M.A,{options:["Size","Files"],onChange:e=>{t(e.toLocaleLowerCase())},size:"small",style:{marginBottom:8,fontSize:"14px"}}),(0,p.jsx)(P,{theme:"files"===e?"common":"size",number:"files"===e?i.all.total.count:n,description:`Total ${e}`}),(0,p.jsx)(Y,{view:e,res:i})]})})}})};var V=r("C0"),J=r("OM"),X=r("oi"),Z=r("mg"),Q=r("Dd");r("q1"),r("IG");var ee=r("bC"),et=r("Ko8");let er=e=>{let{plugins:t,defaultDatas:r=[],type:s}=e,{isDark:i}=(0,j.DP)(),n=(0,f.useRef)(null),[l,a]=(0,f.useState)([]);return(0,f.useEffect)(()=>{let e=[];t.forEach(t=>{t.data.forEach(r=>{e.push({p:t.hook,n:`${t.tapName}`,s:r.startAt,e:r.endAt})})}),a([...(0,et.QR)(r),...(0,et.QR)(e)])},[]),(0,p.jsx)("div",{className:["loader-chart-container",i?"loader-chart-container_dark":""].join(" ").trim(),ref:n,style:{width:"100%"},children:(0,p.jsx)(ee.n,{pluginsData:l,formatterFn:et.kr,chartType:s})})},es=()=>(0,p.jsx)(D.A,{message:(0,p.jsxs)(J.A.Text,{children:[(0,p.jsx)(J.A.Text,{children:"make sure that you have turn on "}),(0,p.jsxs)(J.A.Text,{children:[" ","in configuration for the Rsdoctor plugin."]})]}),type:"info",showIcon:!0}),ei=e=>{let{summary:t}=e,{costs:r=[]}=t||{};return r.find(e=>e.name===V.BD.S.Bootstrap)?(0,p.jsx)(_.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:'Chart of the "Bootstrap -> BeforeCompile" stage'},text:(0,p.jsx)(Z.A,{children:"detail"}),children:(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetPluginData,body:{hooks:["environment","afterEnvironment","entryOption","afterPlugins","afterResolvers","initialize","beforeRun","run","watchRun","normalModuleFactory","contextModuleFactory","beforeCompile"]},children:e=>e&&e.length?(0,p.jsx)(er,{plugins:e,type:0}):(0,p.jsx)(es,{})})}):null};var en=r("BF"),el=r("m4"),ea=r("RI");let eo=e=>{let{dataSource:t}=e;return(0,p.jsx)(en.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,p.jsx)(el.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,j.a4)((0,ea.xu)(t.data,e=>e.costs)),sorter:(e,t)=>(0,ea.xu)(e.data,e=>e.costs)-(0,ea.xu)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},ed=e=>{let{summary:t}=e,{costs:r=[]}=t||{},s=r.find(e=>e.name===V.BD.S.Done),i='of the "AfterCompile -> Done" stage';return s?(0,p.jsx)(_.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:`Details ${i}`},text:(0,p.jsx)(Z.A,{children:"detail"}),children:(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetPluginData,body:{hooks:["afterCompile","shouldEmit","emit","afterEmit","assetEmitted","done"]},children:e=>e&&e.length?(0,p.jsxs)(Z.A,{direction:"vertical",style:{width:"100%"},children:[(0,p.jsx)(y.Zp,{title:`Plugin DataSource of ${i}`,collapsable:!0,children:(0,p.jsx)(eo,{dataSource:e})}),(0,p.jsx)(X.A,{}),(0,p.jsx)(y.Zp,{title:`Chart ${i}`,children:(0,p.jsx)(er,{plugins:e,type:2})})]}):(0,p.jsx)(es,{})})}):null},ec=e=>{let{summary:t}=e,{costs:r=[]}=t||{};return r.find(e=>e.name===V.BD.S.Minify)?(0,p.jsx)(_.hX,{containerProps:{style:{display:"inline"}},drawerProps:{title:'Details of the "Minify" stage'},text:(0,p.jsx)(Z.A,{children:"detail"}),children:(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetPluginData,body:{hooks:["processAssets","optimizeChunkAssets"]},children:e=>e&&e.length?(0,p.jsxs)(Z.A,{direction:"vertical",style:{width:"100%"},children:[(0,p.jsx)(y.Zp,{title:'Plugin DataSource of the "Minify"',collapsable:!0,children:(0,p.jsx)(eo,{dataSource:e})}),(0,p.jsx)(X.A,{}),(0,p.jsx)(y.Zp,{title:'Chart of the "Minify"',children:(0,p.jsx)(er,{plugins:e,type:3})})]}):(0,p.jsx)(es,{})})}):null},eh=e=>{let{children:t,name:r,showDivider:s=!0}=e;return(0,p.jsxs)(J.A.Text,{style:{color:"inherit"},children:[(0,p.jsx)(J.A.Text,{style:{color:"inherit"},children:r}),s?(0,p.jsx)(X.A,{type:"vertical"}):null,t]})},eu=e=>{let{summary:t}=e,{t:r}=(0,j.s9)();if(!t?.costs?.length)return null;let s=Math.max(...t.costs.map(e=>e.costs));return(0,p.jsx)(y.Zp,{className:T,children:(0,p.jsx)("div",{children:(0,p.jsxs)(Z.A,{style:{wordBreak:"break-all",width:"100%",marginTop:"0"},size:20,direction:"vertical",children:[(0,p.jsx)("div",{className:"title-wq4_QM",children:r("Compile Overall")}),t.costs.map(e=>{let{name:r,costs:i}=e,n=(0,p.jsx)(Q.A,{className:"progress-y4rFf4",percent:100*i/s,status:"normal",format:()=>(0,j.a4)(i)});switch(r){case V.BD.S.Bootstrap:return(0,p.jsxs)(eh,{name:"Bootstrap ~ BeforeCompile",children:[(0,p.jsx)(ei,{summary:t}),n]},r);case V.BD.S.Compile:return(0,p.jsx)(eh,{name:"Compile",showDivider:!1,children:n},r);case V.BD.S.Done:return(0,p.jsxs)(eh,{name:"AfterCompile ~ Done",children:[(0,p.jsx)(ed,{summary:t}),n]},r);case V.BD.S.Minify:return(0,p.jsxs)(eh,{name:"Minify",children:[(0,p.jsx)(ec,{summary:t}),n]},r);default:return null}})]})})})};var ep=r("kD"),ef=r("wi"),em=r("QQ"),ex=r("QMhq"),eg=r("Zz"),ey=r("hL"),ej=r("eX"),ev=r("Rj"),eb=r.n(ev),eA=r("f1"),eS=r("pg");let ez=(0,N.eN)({Component:e=>{let{defaultKeys:t,configs:r}=e,s=(0,j.rt)(r||[]);if(!s)return null;let{config:i,version:n,name:l}=s,a=Object.keys(i),[o,d]=(0,f.useState)(t||a);return(0,p.jsxs)(_.hX,{text:(0,p.jsxs)("div",{className:eS.A.title,children:[(0,p.jsx)("span",{style:{marginRight:"8px",fontSize:"13px"},children:"View Rspack Config"}),(0,p.jsx)(g.A,{style:{fontSize:"10px"}})]}),children:[(0,p.jsxs)(ey.A,{children:[(0,p.jsx)(eA.h,{text:"Rspack Config Viewer"}),(0,p.jsx)(X.A,{}),(0,p.jsxs)(Z.A,{children:[(0,p.jsx)(J.A.Text,{children:"Properties: "}),(0,p.jsx)(ej.A,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:o.length===a.length?[]:o,style:{width:350},popupMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{d(e)},children:a.map(e=>(0,p.jsx)(ej.A.Option,{label:e,value:e,children:e},e))})]}),(0,p.jsx)(X.A,{})]}),(0,p.jsx)(eb(),{name:n&&"unknown"!==n?`${l}@${n}`:"rspack.config",theme:"monokai",src:0===o.length?i:V.AP.Up(i,o),displayDataTypes:!1,displayObjectSize:!1,style:{overflowX:"auto"}})]})},api:R.hp.uT.n.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1});var ew=r("MW");let eM=e=>{let{configs:t=[],cwd:r,envinfo:s,alerts:i=[],name:n}=e,{t:l}=(0,j.s9)(),a=i.filter(e=>"warn"===e.level).length,o=i.length-a,d=[...n?[{key:"name",label:"Builder",children:n}]:[],...Object.keys(s||{}).map(e=>{let t=/Version$/,r=t.test(e);return{key:e,label:r?e.replace(t,""):e,children:s?s[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,p.jsx)(N.zW,{api:R.hp.uT.n.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let t=(0,j.Xq)(e.all.total.size),r=e.all.total.count,[s,i]=t.split(" "),n=[{title:"Errors",description:(0,p.jsx)("span",{style:{color:"#FF4D4F"},children:o}),icon:(0,p.jsx)(ep.A,{style:{background:"#FF4D4F"},shape:"circle",icon:(0,p.jsx)(ef.A,{style:{fontSize:"18px"}})})},{title:"Warnings",description:(0,p.jsx)("span",{style:{color:"#FAAD14"},children:a}),icon:(0,p.jsx)(ep.A,{style:{background:"#FAAD14"},shape:"circle",icon:(0,p.jsx)(em.A,{style:{fontSize:"18px"}})})},{title:"Total Files",description:(0,p.jsx)("span",{children:r}),icon:(0,p.jsx)(ep.A,{style:{background:"#3874F6"},shape:"circle",icon:(0,p.jsx)(ex.A,{style:{fontSize:"18px"}})})},{title:"Total Size",description:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{style:{fontSize:"20px"},children:s}),(0,p.jsx)("span",{style:{fontSize:"13px",marginLeft:"5px"},children:i})]}),icon:(0,p.jsx)(ep.A,{style:{background:"#5B8FF9"},shape:"circle",icon:(0,p.jsx)(eg.A,{style:{fontSize:"18px"}})})}];return(0,p.jsx)(y.Zp,{className:T,children:(0,p.jsxs)("div",{children:[(0,p.jsxs)("div",{className:"title-cqt0lp",children:[(0,p.jsx)("span",{className:"left-sk7eLC",children:l("Project Overall")}),(0,p.jsx)(ez,{})]}),(0,p.jsx)("div",{className:"overview-ZAp1A3",children:n.map((e,t)=>(0,p.jsx)(ew.A,{title:e.title,description:(0,p.jsx)("span",{children:e.description}),icon:e.icon},t))}),(0,p.jsx)(w.A,{className:"projectOverall-T7onhG",items:d})]})})}})},ek=e=>{let{children:t}=e;return(0,p.jsx)(m.A,{vertical:!0,className:"layout-izKUgB",children:t.map((e,t)=>(0,p.jsx)("div",{className:"row-RDk0Pl",children:e},t))})};var eE=r("E14"),eC=r("Hw");let e_=()=>{let{project:e}=(0,eE.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)(m.A,{className:"columns-QZp7uT",children:[(0,p.jsx)("main",{className:"mainColumn-qPTakG",children:(0,p.jsxs)(ek,{children:[(0,p.jsx)(eM,{configs:r,cwd:s,envinfo:i,alerts:n,name:l}),(0,p.jsx)(A.mn,{})]})}),(0,p.jsx)("aside",{className:"sideColumn-QYJE_Q",children:(0,p.jsxs)(ek,{children:[(0,p.jsx)(K,{errors:n,cwd:s}),(0,p.jsx)(eu,{summary:t}),(0,p.jsx)(b,{})]})})]})})};var eN=r("CJ"),eT=r("Kv"),eI=r("Sq"),eD=r("uY"),eO=r("BJ"),eB=r("d1l"),eP=r("OB"),eR=r("sY");let eF=new Set(["js","cjs","mjs","jsx","bundle"]),e$=e=>{let t=e.split(/[?#]/,1)[0]??"",r=t.lastIndexOf(".");if(-1===r)return!1;let s=t.slice(r+1).toLowerCase();return eF.has(s)};var eL=r("KH"),eW=r("Hn"),eq=r("Kz");let{DirectoryTree:eG}=S.A,eH=e=>{let{files:t,total:r,type:s}=e,[i,{width:n}]=(0,j.Lh)(),[l,a]=(0,f.useState)("size"),o=s.toLocaleLowerCase(),d=(0,f.useMemo)(()=>(0,ea.xu)(t,e=>e.size),[t]),c=(0,f.useMemo)(()=>(0,ea.xu)(t,e=>e.gzipSize??0),[t]),h=(0,f.useMemo)(()=>(0,ea.xu)(t,e=>e.brotliSize??0),[t]),u=t.some(e=>void 0!==e.brotliSize),m=t.some(e=>void 0!==e.gzipSize);return(0,f.useEffect)(()=>{("gzip"!==l||m)&&("brotli"!==l||u)||a("size")},[m,u,l,s]),(0,p.jsx)("div",{ref:i,className:"container-eRdUOs",children:(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let s=o.includes("image")?"imgs":o,{treeData:i}=H(e[s].total),f=(0,ea.xu)(e.all.total.files,e=>e.gzipSize??0),x="brotli"===l?h:"gzip"===l?c:d,y="brotli"===l?(0,ea.xu)(e.all.total.files,e=>e.brotliSize??0):"gzip"===l?f:r,v=y?+(x/y*100).toFixed(2):0;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(Q.A,{type:"circle",size:Math.max(80,Math.min(120,n-156)),percent:v,strokeColor:{"0%":"#108ee9","100%":"#108ee9"},strokeWidth:12,format:e=>(0,p.jsxs)("div",{className:"percentContainer-VJxs6L",children:[(0,p.jsxs)("span",{children:[e,"%"]}),(0,p.jsxs)("span",{className:"percentDescription-ymSkb_",children:["total ",s]})]})}),(0,p.jsxs)("div",{className:"details-X0l1cJ",children:[(0,p.jsx)(M.A,{"aria-label":`${s} size metric`,className:"metricSelector-x5BlYK",options:[{label:"Size",value:"size"},{label:"Gzip",value:"gzip",disabled:!m},{label:"Brotli",value:"brotli",disabled:!u}],value:l,size:"small",onChange:e=>a(e)}),(0,p.jsx)("div",{className:"description-miJCbD metricValue-OmStnC",children:(0,j.Xq)(x)}),(0,p.jsxs)("div",{className:"fileCount-UaD_cV",children:[(0,p.jsx)(_.hX,{buttonProps:{size:"small",className:"filesLink-zu0M0E"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{children:"Files"}),(0,p.jsx)(g.A,{})]}),children:i.length?(0,p.jsx)(eG,{defaultExpandAll:!0,selectable:!1,treeData:i,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)(eq.A,{style:{height:"100%"}})})}),(0,p.jsx)("span",{children:t.length})]})]})]})}})})},{DirectoryTree:eU}=S.A,eY=e=>{let{showProgress:t=!1,data:r,total:s,tagBgColor:i,type:n}=e,l=(0,j.al)(),a=i||l.colorPrimaryBorderHover;return(0,p.jsx)(eH,{type:n,files:r.files,total:s,showProgress:t,tagBgColor:a})},eK=e=>{let{titles:t,datas:r,bgColor:s,type:i}=e,[n,l]=(0,f.useState)(t[0]),a=(0,f.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)(eW.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)(M.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)(eY,{type:d,...c,tagBgColor:s?.tagBgColor}),boxProps:{style:{background:s?.bgColor,minWidth:0,width:"100%"}}})},eV=(0,f.memo)(e=>{let{errors:t,summary:r}=e,s=(0,j.sO)(t),[i,n]=(0,j.Xq)(r.all.total.size).split(" "),l=[(0,p.jsx)(eK,{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)(eK,{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)(eK,{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)(eK,{type:"HTML",titles:["HTML Files"],datas:[{data:r.html.total,total:r.all.total.size,showProgress:!0}]})];return(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let{treeData:t}=H(e.all.total);return(0,p.jsx)("div",{className:"responsiveContainer-E9_jtH",children:(0,p.jsxs)("div",{className:"container-wODg_6",children:[(0,p.jsxs)("div",{className:"summary-zj0ygd",children:[(0,p.jsx)(ew.h,{title:(0,p.jsx)(_.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,p.jsxs)("div",{style:{color:"var(--text-color-secondary)"},children:[(0,p.jsx)("span",{style:{marginRight:"5px"},children:"Total Files"}),(0,p.jsx)(g.A,{})]}),children:(0,p.jsx)(eU,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid var(--color-border)"}})}),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)(ep.A,{style:{background:"#3874F6"},shape:"circle",icon:(0,p.jsx)(ex.A,{style:{fontSize:"18px"}})}),style:{marginBottom:"12px"}}),(0,p.jsx)(ew.h,{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)(ep.A,{style:{background:"#13C2C2"},shape:"circle",icon:(0,p.jsx)(eL.A,{style:{fontSize:"18px"}})})})]}),(0,p.jsx)("div",{className:"chartsContainer-msRyOd",children:l.map((e,t)=>(0,p.jsx)("div",{className:"chart-GmBMa_",children:e},t))})]})})}})});var eJ="assetDetailCol-jwyTZJ";r("zr");var eX=r("mH"),eZ=r("J2"),eQ=r("ba"),e0=r("FU"),e1=r("TJ"),e2=r("F5"),e4=r("Vbk"),e5=r("uf"),e6=r("hp"),e9=r("YW"),e3=r("b6"),e8=r("zb"),e7=r("rq"),te=r("hJ"),tt=r("C2"),tr=r("il"),ts=r("FA"),ti=r("AC");let tn=(0,f.createContext)({setModuleJumpList(e){},moduleJumpList:[]});var tl=r("cJ"),ta=r("WB"),to=r("F7"),td=r("oo"),tc=r("qa"),th=r("lD0"),tu=r("VG"),tp=r("d14"),tf=r("SYX"),tm=r("rM");r("YU");let tx="file-tree-com",tg=e=>{let{treeData:t,needJumpto:r=!1,defaultOpenFather:s=0}=e,{required:i,handlers:n}=(0,tm.pk)({id:`${tx}-tree`,data:t||[],defaultOpened:!1,multipleSelect:!1,refreshAsyncNodes:!0}),l=(0,f.useRef)(new Set);(0,f.useEffect)(()=>{l.current.clear()},[t]);let a=(0,f.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,C.C)(i.data.name);return(0,p.jsx)("div",{className:`${tx}-titles-box`,children:(0,p.jsx)("div",{className:`${tx}-titles`,children:(0,p.jsx)(Z.A,{direction:"vertical",children:(0,p.jsx)("div",{className:`${tx}-node-title`,children:(0,p.jsxs)(Z.A,{children:[(0,p.jsx)("div",{onClick:a,children:(0,p.jsxs)(Z.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)(tu.A,{style:{color:"lightblue"}}):(0,p.jsx)(tp.A,{style:{color:"lightblue"}})),d,(0,p.jsx)(ts.A,{content:(0,p.jsx)(p.Fragment,{children:i.data.__RESOURCEPATH__?(0,p.jsx)(J.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)(J.A.Text,{children:i.data.name})},`${i.data.name}popover`)]})}),(0,p.jsx)(Z.A,{children:r&&(0,p.jsx)(tn.Consumer,{children:e=>{let{moduleJumpList:t,setModuleJumpList:r}=e;return(0,p.jsx)(tf.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)(tm.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})})};R.Kj.EH.ModuleAnalyze;let ty="module-analyze";r("vM");var tj=(0,f.memo)(e=>{let{dependencies:t,cwd:r,module:s}=e,i=(0,f.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.Ml)(r.resolvedRequest)||"",level:1,kind:r.kind,concatModules:void 0}});return V.AP.oE(e)},[s]);return(0,p.jsx)(ey.A,{justify:"start",align:"middle",children:(0,p.jsx)(eR.A,{span:24,children:i.length?(0,p.jsx)(tg,{treeData:i,needJumpto:!0,cwd:r}):(0,p.jsx)(eq.A,{description:"No Data"})})})});let tv=(e,t)=>{if(e?.imported?.length){let r=e.imported.map(e=>t.find(t=>t.id===Number(e)));return V.AP.oE(r)}return[]},tb=e=>{let{reasons:t,sideEffectCodes:r,modulePath:s}=e;return t&&t.length||r&&r.length?(0,p.jsxs)(eB.A,{className:`${ty}-bailout-card`,bordered:!1,bodyStyle:{padding:20,height:"100%"},children:[t&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(J.A.Text,{strong:!0,className:`${ty}-bailout-card-title`,children:"Bailout Reasons"}),(0,p.jsx)("div",{className:`${ty}-bailout-card-list`,style:{maxHeight:156,overflowY:"auto"},children:t.length>0?t.map((e,t)=>(0,p.jsxs)("div",{className:`${ty}-bailout-card-item`,children:[(0,p.jsx)(ts.A,{content:e,trigger:"hover",children:(0,p.jsx)(J.A.Paragraph,{ellipsis:{rows:1},className:`${ty}-bailout-card-text`,style:{marginBottom:0},children:e})}),(0,p.jsxs)(J.A.Text,{type:"secondary",className:`${ty}-bailout-card-meta`,children:["#",String(t+1).padStart(2,"0")]})]},`${e}-${t}`)):(0,p.jsx)(eq.A,{})})]}),r&&r.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:12*!!t?.length},children:[(0,p.jsx)(J.A.Text,{strong:!0,className:`${ty}-bailout-card-title`,children:"Side Effect Codes"}),s&&r[0]&&(0,p.jsx)(el.A,{title:`Open in VSCode: line ${r[0].startLine}`,children:(0,p.jsx)(td.A,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,ta.jk)({file:s,line:r[0].startLine})})}),s&&r[0]&&(0,p.jsx)(el.A,{title:`Open in Cursor: line ${r[0].startLine}`,children:(0,p.jsx)(tc.A,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,ta.L2)({file:s,line:r[0].startLine})})}),s&&r[0]&&(0,p.jsx)(el.A,{title:`Open in Trae: line ${r[0].startLine}`,children:(0,p.jsx)(th.A,{style:{width:16,height:16,cursor:"pointer",flexShrink:0,marginBottom:12},onClick:()=>(0,ta.bX)({file:s,line:r[0].startLine})})})]}),(0,p.jsx)("div",{className:`${ty}-bailout-card-list`,style:{minHeight:"50vh",display:"flex",flexDirection:"column",gap:12,overflow:"auto"},children:r.map((e,t)=>(0,p.jsx)("div",{className:`${ty}-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)(to.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)(eq.A,{})})},`${e.moduleId}-${t}`))})]})]}):(0,p.jsx)(eB.A,{className:`${ty}-bailout-card`,bordered:!1,bodyStyle:{padding:20,height:"100%"},children:(0,p.jsx)(eq.A,{})})},tA=e=>{let{curModule:t,modules:r,dependencies:s,cwd:i,activeTabKey:n,selectedChunk:l=""}=e,[a,o]=(0,f.useState)([]),{data:d}=(0,f.useMemo)(()=>a&&a?.length?{data:V.AP.oE(a?.map((e,s)=>({key:`0-${s}`,name:(0,j.Ml)(e.path),__RESOURCEPATH__:e.path,id:e.id,level:0,chunks:e.chunks,size:(0,j.Xq)(e.size.parsedSize),kind:e.kind,concatModules:e.concatenationModules,fatherPath:(0,j.Ml)(t.path),dependencies:e.dependencies,getChildren:()=>(function e(t,r,s,i){let n=tv(t,r),l=i+1;return n?.map((i,n)=>({key:`0-${n}`,name:(0,j.Ml)(i.path),__RESOURCEPATH__:i.path,id:i.id,level:l,size:(0,j.Xq)(i.size.parsedSize),kind:i.kind,chunks:i.chunks,concatModules:i.concatenationModules,fatherPath:(0,j.Ml)(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,f.useEffect)(()=>{o(tv(t,r))},[t,r]);let c=(0,f.useMemo)(()=>n===tM[tM.Reasons]?a?(0,p.jsx)(tg,{cwd:i,treeData:d,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:l,defaultOpenFather:1}):(0,p.jsx)(eq.A,{className:`${ty}-empty`}):(0,p.jsx)("div",{className:`${ty}-file-tree`,style:{padding:10},children:(0,p.jsx)(eR.A,{span:24,style:{marginTop:10},children:t?(0,p.jsx)(tj,{module:t,dependencies:s,cwd:i}):(0,p.jsx)(eq.A,{className:`${ty}-empty`})})}),[n,t,s,d,a,i,l]);return(0,p.jsx)(p.Fragment,{children:c})};var tS=r("U7"),tz=r("il5"),tw=r("Q5"),tM=((s={})[s.Reasons=0]="Reasons",s[s.Dependencies=1]="Dependencies",s);let tk=[{key:tM[0],label:tM[0]},{key:tM[1],label:tM[1]}],tE=e=>{let{modules:t,cwd:r,moduleId:s,show:i,setShow:n}=e,[l,a]=(0,f.useState)(""),[o,d]=(0,f.useState)(tM[0]);return(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetModuleDetails,body:{moduleId:+s},children:e=>{let{module:s,dependencies:a,sideEffectCodes:c}=e;return(0,p.jsx)(tr.A,{title:(0,p.jsxs)("div",{className:"module-analyze-box",children:[(0,p.jsx)(J.A.Text,{children:(0,j.Ml)(s.path)}),(0,p.jsx)(J.A.Text,{type:"secondary",style:{fontSize:12},children:`Current Module: ${s.path}`})]}),open:i,maskClosable:!0,width:.8*tl.Y7,onClose:()=>n(!1),children:(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetAllChunkGraph,body:{},children:e=>(0,p.jsx)(tn.Consumer,{children:e=>{let{moduleJumpList:i,setModuleJumpList:n}=e;return(0,p.jsx)(eP.A,{defaultActiveKey:"bailout",items:[{key:"moduleTree",label:"Module Tree",children:(0,p.jsx)(eB.A,{style:{minHeight:400},tabList:tk,activeTabKey:o,tabProps:{size:"small",style:{fontSize:12}},onTabChange:e=>d(e),styles:{title:{paddingTop:0}},title:(0,p.jsxs)(Z.A,{style:{padding:"10px 0px"},children:[(0,p.jsx)(tS.A,{onClick:()=>{n([...i.slice(0,-1)])}}),(0,p.jsx)(J.A.Text,{style:{fontSize:14},children:"Current Module Imported Reasons Tree"}),(0,p.jsx)(ts.A,{content:(0,p.jsx)("div",{children:(0,p.jsxs)("div",{children:[(0,p.jsx)(ti.A,{status:"success",text:" "}),(0,p.jsx)(tz.A,{}),(0,p.jsx)(J.A.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})}),title:"Usage",children:(0,p.jsx)(tw.A,{})})]}),children:(0,p.jsx)(tA,{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)(tb,{reasons:s.bailoutReason,sideEffectCodes:c,modulePath:s.path})})}]})}})})})}})};var tC="collapsed-hxz3Bf",t_="chunk-item-dQ0XI7",tN="size-tag-EM4AKE",tT="all-none-checkbox-kw3p6X",tI=r("ph"),tD=r("Tax");function tO(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t>>>0}function tB(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")}`}eZ.Y([e1.a,e2.a,e4.a,e5.a]);let tP=(0,f.memo)(e=>{let{treeData:t,sizeType:r,showAlert:s,onChartClick:i,highlightNodeId:n,centerNodeId:l,rootPath:a}=e,[o,d]=(0,f.useState)(null),c=f.useRef(null),h=f.useRef([]),u=f.useRef(null),m=(0,j.al)();return(0,f.useEffect)(()=>{var e;if(!t)return;let s=t.map((e,s)=>(function e(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,d=arguments.length>6?arguments[6]:void 0,c=l||tI.GB[s%tI.GB.length],h=0===i?t.path||t.name||"":d||"",u=t.children?.map((r,n)=>e(r,s,i+1,c,n,t.children?.length||0,h)),p=0;"stat"===r?p=t.sourceSize||0:"parsed"===r?p=t.bundledSize||0:"brotli"===r?p=t.brotliSize||0:"gzip"===r?p=t.gzipSize||0:"value"===r&&(p=t.value||0);let f=tO(0===i?t.path||t.name||"":`${h}::${t.path||t.name||""}`),m=n===f,x=0===i?1:Math.max(.35,1-.15*i),g=0===i?1:Math.max(.4,1-.15*i),y=o>1?1-a/(o-1)*.15:1,j=m?"#fff5f5":0===i?tB(c,.8):tB(c,x*y),v=m?"#ff4d4f":0===i?c:tB(c,g*y),b=.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}(j),A=b?"#ffffff":"#000000",S={id:f,name:t.name,value:p,path:t.path||t.name,sourceSize:t.sourceSize??("stat"===r?p:void 0),bundledSize:t.bundledSize??("parsed"===r?p:void 0),gzipSize:t.gzipSize??("gzip"===r?p:void 0),brotliSize:t.brotliSize??("brotli"===r?p:void 0),moduleId:t.id,itemStyle:{borderWidth:m?4:1,color:j,borderColor:v,...0===i&&{gapWidth:2}},label:{show:!0,color:A,textBorderColor:b?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.1)",textBorderWidth:1},upperLabel:0===i?void 0:{show:!0,color:A}};return u&&u.length>0&&(S.children=u),m?S.emphasis={itemStyle:{borderColor:"#ff4d4f",borderWidth:4,color:"#fff5f5"}}:S.emphasis={itemStyle:{color:j,borderColor:v,borderWidth:m?4:1}},S})(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=s;let i=m.colorText;d({color:tI.GB,tooltip:{padding:10,backgroundColor:m.colorBgElevated,borderColor:m.colorBorder,borderWidth:1,textStyle:{color:i},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 n="number"==typeof t.sourceSize&&t.sourceSize>0?t.sourceSize:"number"==typeof t.value&&t.value>0&&"stat"===r?t.value:void 0,l="number"==typeof t.bundledSize&&t.bundledSize>0?t.bundledSize:void 0,o="number"==typeof t.gzipSize&&t.gzipSize>0?t.gzipSize:void 0;function d(e,t,r){return`<div class="tooltip-row-sZbl0R">
|
|
82
|
-
<span class="tooltip-label-INs_JK" style="color: ${r};">${e}</span>
|
|
83
|
-
<span style="color: ${r};">${t}</span>
|
|
84
|
-
</div>`}let c=[];return void 0!==t.brotliSize&&t.brotliSize>0&&c.push(d("Brotli size",(0,j.Xq)(t.brotliSize),"#a78bfa")),void 0!==n&&n>0&&c.push(d("Stat size",(0,j.Xq)(n),"#43c6d9")),void 0!==l&&l>0&&c.push(d("Parsed size",(0,j.Xq)(l),"#5b8ff9")),void 0!==o&&o>0&&c.push(d("Gzipped size",(0,j.Xq)(o),"#f2b84b")),`
|
|
85
|
-
<div style="font-family: sans-serif; font-size: 12px; line-height: 1.5;">
|
|
86
|
-
<div style="margin-bottom: 6px; max-width: 400px; word-wrap: break-word; overflow-wrap: break-word; word-break: break-all; white-space: normal; color: ${i};">${eQ.Me(s)}</div>
|
|
87
|
-
${c.join("")}
|
|
88
|
-
</div>
|
|
89
|
-
`}},series:[{type:"treemap",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:e=m.colorBgContainer}},{itemStyle:{borderColorAlpha:[1,.3],borderWidth:5,gapWidth:4,gapColor:e},upperLabel:{show:!0,color:"#ffffff",fontSize:12,height:30}}],data:s,breadcrumb:{show:!0,left:"center",top:"bottom",height:22,emptyItemWidth:25,itemStyle:{color:"#999",borderColor:"transparent",borderWidth:0,borderRadius:0,textStyle:{fontFamily:"sans-serif",fontSize:12,color:"white"}},emphasis:{itemStyle:{color:"#333"}}},roam:!0,nodeClick:!1,zoomToNodeRatio:.7,animationDurationUpdate:500,width:"100%",height:"100%",top:-10,bottom:30,left:0,right:0,scaleLimit:{min:.5,max:5}}]})},[t,r,n,a,m]),(0,f.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,f.useEffect)(()=>()=>{u.current&&window.clearTimeout(u.current)},[]),o?(0,p.jsxs)("div",{className:"mainArea-H7KGjK",children:[s&&"parsed"===r&&(0,p.jsx)(tR,{}),(0,p.jsx)("div",{className:"chartRoot-URgzau",children:(0,p.jsx)(eX.A,{ref:c,option:o,echarts:e0,onEvents:{click:e=>{u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{if(c.current){let t=c.current.getEchartsInstance(),r=e?.data;t&&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),i?.(e)}},style:{width:"100%",height:"100%",position:"absolute",left:0,top:0}})})]}):null}),tR=()=>{let[e,t]=(0,j.yR)("treemap-alert-visible",!0);return e?(0,p.jsx)(D.A,{closable:!0,onClose:()=>t(!1),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}):null},tF=e=>{let{treeData:t,onChartClick:r,bundledSize:s=!0}=e;return(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetProjectInfo,children:e=>{let{isLynx:i,isEvalSourceMap:n}=V.l5.fM(e.configs);return(0,p.jsx)(t$,{treeData:t,onChartClick:r,bundledSize:s,rootPath:e.root,showAlert:i||n})}})},t$=e=>{let{treeData:t,onChartClick:r,bundledSize:s=!0,rootPath:i,showAlert:n}=e,l=(0,f.useMemo)(()=>t.map(e=>e.name),[t]),[a,o]=(0,f.useState)(l),[d,c]=(0,f.useState)(!1),[h,u]=(0,f.useState)(s?"parsed":"stat"),[m,x]=(0,f.useState)(""),[y,v]=(0,f.useState)(!1),[b,A]=(0,f.useState)(),[S,z]=(0,f.useState)(),[w,M]=(0,f.useState)(""),[k,E]=(0,f.useState)(!1),[C,_]=(0,f.useState)(""),[T,I]=(0,f.useState)(!1),D=f.useRef(null),O=(0,f.useMemo)(()=>T?l.filter(e$):l,[l,T]),B=(0,f.useMemo)(()=>O.join("\0"),[O]),P=f.useRef(void 0);(0,f.useEffect)(()=>{P.current!==B&&(P.current=B,o(O))},[O,B]);let F=(0,f.useCallback)(e=>{r?.(e);let t=e.data,s=t?.moduleId;void 0!==s&&(M(s),E(!0))},[r]);(0,f.useEffect)(()=>{let e=()=>{v(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[]);let $=(0,f.useMemo)(()=>{let e=t.filter(e=>O.includes(e.name)&&a.includes(e.name));if(C.trim()){let t=C.toLowerCase();e=e.filter(e=>e.name.toLowerCase().includes(t))}return e},[t,a,C,O]),L=(0,f.useMemo)(()=>{if(!m.trim())return[];let e=RegExp(m,"i"),t=[],r=(s,i)=>{let n=i||s.path||s.name||"";if(s.path&&e.test(s.path)){let e=tO(i?`${i}::${s.path}`:s.path);t.push({path:s.path,nodeId:e})}s.children&&s.children.forEach(e=>r(e,n))};return $.forEach(e=>r(e)),t},[$,m]),W=(0,f.useMemo)(()=>(0,tD.z)($,h),[$,h]);return(0,p.jsxs)("div",{className:"treemap-DOrYiA",ref:D,children:[(0,p.jsx)("button",{className:"fullscreen-button-jVdrxO",onClick:()=>{y?document.exitFullscreen().then(()=>v(!1)).catch(e=>console.error("Failed to exit fullscreen:",e)):(()=>{if(!D.current)return;let e=D.current;if(e.requestFullscreen)e.requestFullscreen().then(()=>v(!0)).catch(e=>console.error("Failed to enter fullscreen:",e));else if(e.webkitRequestFullscreen)try{e.webkitRequestFullscreen(),v(!0)}catch(e){console.error("Failed to enter fullscreen (webkit):",e)}else if(e.mozRequestFullScreen)try{e.mozRequestFullScreen(),v(!0)}catch(e){console.error("Failed to enter fullscreen (moz):",e)}else if(e.msRequestFullscreen)try{e.msRequestFullscreen(),v(!0)}catch(e){console.error("Failed to enter fullscreen (ms):",e)}else console.error("Fullscreen API is not supported in this browser.")})()},title:y?"Exit fullscreen":"Enter fullscreen","aria-label":y?"Exit fullscreen":"Enter fullscreen",children:y?(0,p.jsx)(e8.A,{}):(0,p.jsx)(e7.A,{})}),(0,p.jsxs)("div",{className:`sidebar-Pww0Wm ${d?tC:""}`,children:[(0,p.jsx)("div",{className:`sidebar-toggle-NaGZQP ${d?tC:""}`,onClick:()=>c(!d),children:d?(0,p.jsx)(g.A,{}):(0,p.jsx)(te.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)(e6.A.Group,{value:h,onChange:e=>u(e.target.value),size:"small",buttonStyle:"solid",children:[(0,p.jsx)(e6.A.Button,{value:"stat",children:"Stat"}),(0,p.jsx)(e6.A.Button,{value:"parsed",children:"Parsed"}),(0,p.jsx)(e6.A.Button,{value:"gzip",children:"Gzipped"}),(0,p.jsx)(e6.A.Button,{value:"brotli",children:"Brotli"})]})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h4",{children:"Show chunks"}),(0,p.jsx)(e9.A,{placeholder:"Search chunks",value:C,onChange:e=>_(e.target.value),suffix:(0,p.jsx)(tt.A,{style:{color:"#ccc"}}),allowClear:!0,size:"small",style:{marginBottom:8}}),(0,p.jsxs)("div",{className:t_,children:[(0,p.jsx)(e3.A,{indeterminate:a.length>0&&a.length<O.length,checked:O.length>0&&a.length===O.length,onChange:e=>o(e.target.checked?O:[]),className:tT,children:"All"}),(0,p.jsx)("span",{className:tN,children:(0,j.Xq)(W)})]}),(0,p.jsx)(e3.A,{checked:T,onChange:e=>{I(e.target.checked)},className:tT,children:"JS only"}),(0,p.jsx)("div",{className:"chunk-list-TUqr7U",style:{maxHeight:180,overflowY:"auto"},children:O.filter(e=>e.toLowerCase().includes(C.toLowerCase())).map(e=>(0,p.jsxs)("div",{className:t_,style:{height:15,lineHeight:"15px"},children:[(0,p.jsx)(e3.A,{checked:a.includes(e),onChange:t=>{t.target.checked?o([...a,e]):o(a.filter(t=>t!==e))},children:(0,p.jsx)("span",{title:e,children:e})}),(0,p.jsx)("span",{className:tN,children:(0,j.Xq)(((e,r)=>{let s=t.find(t=>t.name===e);if(!s)return 0;let i=r||h;return(0,tD.M)(s,i)})(e,h))})]},e))})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h4",{children:"Search modules"}),(0,p.jsx)(e9.A,{placeholder:"Enter regexp",value:m,onChange:e=>{x(e.target.value),A(void 0),z(void 0)},suffix:(0,p.jsx)(tt.A,{style:{color:"#ccc"}}),allowClear:!0,size:"small"}),m.trim()&&L.length>0&&(0,p.jsxs)("div",{className:"search-results-emVgaj",children:[(0,p.jsxs)("div",{className:"search-results-header-oyQ0jw",children:["Found ",L.length," file",L.length>1?"s":""]}),(0,p.jsx)("div",{className:"search-results-list-FSMG6d",children:L.map((e,t)=>{let r=(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})(e.path);return(0,p.jsx)("div",{className:"search-result-item-IZR6nt",onClick:()=>{var t;A(t=e.nodeId),z(t)},title:e.path,children:r||e.path},t)})})]}),m.trim()&&0===L.length&&(0,p.jsxs)("div",{className:"search-results-empty-_khCd5",children:['No files found matching "',m,'"']})]})]})]}),(0,p.jsx)(tP,{treeData:$,sizeType:h,showAlert:n,onChartClick:F,highlightNodeId:b,centerNodeId:S,rootPath:i}),w?(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetAllModuleGraph,body:{},children:e=>(0,p.jsx)(tE,{cwd:i,moduleId:w,modules:e,show:k,setShow:E})}):null]})};var tL=r("C3"),tW=r("s69"),tq=r("sb"),tG=r("fJO"),tH=r("bCu"),tU=r("ez"),tY=r("cr"),tK=r("CM"),tV=r.n(tK),tJ="bundleTreeEntry-Cd5W_S",tX="bundleTreeEntryContent-E8HDg1",tZ="bundleTreeEntryTitle-XbeexU",tQ="divider-Iq1wtJ",t0=r("o4");let{DirectoryTree:t1}=S.A,t2=(0,f.createContext)({enabled:!0}),t4=e=>{let{children:t}=e;return(0,p.jsx)(t2.Provider,{value:{enabled:!1},children:t})},t5=()=>(0,f.use)(t2)?.enabled??!0,t6=e=>t5()?(0,p.jsx)(el.A,{...e}):e.children??null,t9=e=>t5()?(0,p.jsx)(ts.A,{...e}):e.children??null,t3=()=>(0,p.jsx)(eq.A,{description:`Do not have the module code.
|
|
90
|
-
(1) If you use the brief mode, there will not have any codes to show.
|
|
91
|
-
(2) If you use lite mode, there will not have source codes.`}),t8=e=>{let{data:t}=e,[r,s]=(0,f.useState)(""),{t:i}=(0,j.s9)(),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)(_.hX,{text:"",buttonProps:{size:"small",icon:(0,p.jsx)(t9,{content:"Open the Codes Box",children:(0,p.jsx)(eD.A,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${l}"`},children:(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetModuleCodeByModuleId,body:{moduleId:t.id},children:e=>(0,p.jsx)(p.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,p.jsx)(eB.A,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,ea.z7)(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)(t9,{placement:"bottom",title:(0,p.jsx)(J.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)(J.A.Text,{strong:!0,children:"Source: "}),(0,p.jsx)(J.A.Text,{children:"source code"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(J.A.Text,{strong:!0,children:"Transformed:"}),(0,p.jsx)(J.A.Text,{children:"Transformed Code (After compile)"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(J.A.Text,{strong:!0,children:"Bundled Source:"}),(0,p.jsx)(J.A.Text,{children:"Bundled Code (After bundle and tree-shaking)"})]}),(0,p.jsx)("br",{}),(0,p.jsx)(J.A.Text,{strong:!0,children:"More"}),(0,p.jsx)(J.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)(to.Cv,{isEmbed:!0,code:r?e[r]:e.parsedSource?e.parsedSource:e.source,filePath:l}):(0,p.jsx)(t3,{})}):(0,p.jsx)(t3,{})})})})},t7=e=>{let{id:t,show:r,setShow:s,cwd:i}=e;return t?(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetAllModuleGraph,body:{},children:e=>(0,p.jsx)(tE,{cwd:i,moduleId:t,modules:e,show:r,setShow:s})}):null},re="__RESOURCEPATH__",rt=(0,f.memo)(e=>{let{modules:t,chunks:r,filteredModules:s}=e,{sourceSize:i,parsedSize:n,filteredParsedSize:l,filteredSourceSize:a}=(0,f.useMemo)(()=>({sourceSize:(0,ea.xu)(t,e=>e.size.sourceSize),parsedSize:(0,ea.xu)(t,e=>e.size.parsedSize),filteredSourceSize:(0,ea.xu)(s,e=>e.size.sourceSize),filteredParsedSize:(0,ea.xu)(s,e=>e.size.parsedSize)}),[t,s]);return(0,p.jsxs)(Z.A,{children:[(0,p.jsx)(t6,{title:`total modules count is ${t.length}, the filtered modules count is ${s.length}`,children:(0,p.jsxs)(Z.A,{children:[(0,p.jsxs)(J.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",s.length," / ",t.length]}),(0,p.jsx)(eI.A,{})]})}),(0,p.jsx)(X.A,{type:"vertical"}),(0,p.jsx)(t6,{title:(0,p.jsxs)(Z.A,{direction:"vertical",children:[(0,p.jsxs)(J.A.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,j.Xq)(n)]}),(0,p.jsxs)(J.A.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,j.Xq)(i)]}),(0,p.jsxs)(J.A.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,j.Xq)(l)]}),(0,p.jsxs)(J.A.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,j.Xq)(a)]})]}),children:(0,p.jsxs)(Z.A,{children:[(0,p.jsxs)(J.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:",l===n?(0,j.Xq)(n):`${(0,j.Xq)(l)} / ${(0,j.Xq)(n)}`]}),(0,p.jsx)(eI.A,{})]})}),(0,p.jsx)(X.A,{type:"vertical"}),(0,p.jsx)(t6,{title:(0,p.jsxs)(Z.A,{direction:"vertical",children:[(0,p.jsxs)(J.A.Text,{style:{color:"inherit"},children:["this asset includes ",r.length," chunks:"]}),r.map(e=>(0,p.jsx)(tG.Ex,{label:"chunk",value:e.name},e.name))]}),children:(0,p.jsxs)(Z.A,{children:[(0,p.jsxs)(J.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",r.length]}),(0,p.jsx)(eI.A,{})]})})]})}),rr={margin:"none",marginInlineEnd:0},rs=e=>{let{color:t,tooltipTitle:r,style:s=rr,children:i}=e;return(0,p.jsx)(t6,{title:(0,p.jsx)(Z.A,{children:(0,p.jsx)(J.A.Text,{style:{color:"inherit"},children:r})}),children:(0,p.jsx)(z.A,{color:t,style:s||void 0,children:i})})},ri=e=>{let{moduleCount:t}=e;return(0,p.jsx)(rs,{color:"blue",tooltipTitle:`This is a concatenated container module that includes ${t} modules`,children:"concatenated container"})},rn=e=>{let{size:t}=e;return(0,p.jsx)(rs,{color:"geekblue",tooltipTitle:"The total output size of all the files in this folder. If you enabled minification, this value shows the minified size.",children:`bundled size: ${(0,j.Xq)(t)}`})},rl=e=>{let{size:t}=e;return(0,p.jsx)(rs,{color:"geekblue",style:null,tooltipTitle:"The final output size of this file. If you enabled minification, this value shows the minified size.",children:`bundled size: ${(0,j.Xq)(t)}`})},ra=e=>{let{size:t}=e;return(0,p.jsx)(rs,{color:"orange",style:null,tooltipTitle:"The compressed file size that users actually download, as most web servers use gzip compression.",children:`gzipped: ${(0,j.Xq)(t)}`})},ro=e=>{let{size:t}=e;return(0,p.jsx)(rs,{color:"purple",style:null,tooltipTitle:"The size of this module compressed with Brotli.",children:`brotli: ${(0,j.Xq)(t)}`})},rd=e=>{let{size:t}=e;return(0,p.jsx)(rs,{tooltipTitle:"The total original size of all the files in this folder, before any transformations and minification.",color:"cyan",children:`source size: ${(0,j.Xq)(t)}`})},rc=e=>{let{size:t}=e;return(0,p.jsx)(rs,{color:"cyan",style:null,tooltipTitle:"The original size of this file, before any transformations and minification.",children:`source size: ${(0,j.Xq)(t)}`})},rh=e=>{let{asset:t,chunks:r,modules:s,moduleSizeLimit:i,height:n,root:l}=e,[a,o]=(0,f.useState)(""),[d,c]=(0,f.useState)(!1),[h,u]=(0,f.useState)([]),[m,g]=(0,f.useState)(!1),y=(0,f.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]),j=(0,f.useCallback)(e=>{g(!0),u(e)},[]);return(0,f.useEffect)(()=>{o(""),c(!1)},[t]),(0,f.useEffect)(()=>{c(!1)},[a]),(0,p.jsx)(tn.Provider,{value:{moduleJumpList:h,setModuleJumpList:u},children:(0,p.jsxs)(eB.A,{className:"bundle-JPUVg_",title:`Modules of "${t.path}"`,style:n?{"--body-min-height":n+"px"}:void 0,classNames:{body:"bundleBody-vDRay7"},size:"small",children:[s.length?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{children:(0,p.jsx)(rt,{modules:s,chunks:r,filteredModules:y})}),(0,p.jsx)("div",{children:(0,p.jsxs)(Z.A,{children:[(0,p.jsx)(tH.E,{placeholder:"search module by keyword",onChange:e=>o(e)},t.path),(0,p.jsx)(x.Ay,{onClick:()=>c(!0),size:"small",icon:(0,p.jsx)(tY.A,{})})]})}),(0,p.jsx)(rp,{assetPath:t.path,includeModules:s,filteredModules:y,defaultExpandAll:d,moduleKeyword:a,openModuleGraphViewer:j})]}):(0,p.jsx)(eq.A,{description:(0,p.jsx)(J.A.Text,{strong:!0,children:`"${t.path}" doesn't have any modules`})}),(0,p.jsx)(t7,{id:h?.length?h[h.length-1]:"",show:m,setShow:g,cwd:l})]})})},ru=[],rp=(0,f.memo)(e=>{let{filteredModules:t,includeModules:r,defaultExpandAll:s,moduleKeyword:i,openModuleGraphViewer:n,assetPath:l}=e,[a,o]=(0,f.useState)(!1),[d,{height:c,width:h}]=(0,j.Lh)(),u=(0,f.useMemo)(()=>{let e=(0,ea.sg)(()=>{o(!1)},150);return()=>{o(!0),e()}},[]),m=(0,f.useMemo)(()=>{let e=e=>e.replace(/\\/g,"/"),s=new Map,i=[];for(let r of t)r.path&&(s.set(e(r.path),r),i.push(r.path));let l=new Map;for(let t of r)t.path&&l.set(e(t.path),t);let a=e=>n([e]);return(0,j.Bq)({files:i,inlinedResourcePathKey:re,fileTitle(t,i){let n=s.get(e(t));return n?(0,p.jsx)(rm,{mod:n,basename:i,includeModules:r,onClick:a}):i},dirTitle(t,r){let s=function e(t,r){return t.children&&t.children.forEach(t=>{t.isLeaf?r.push(t[re]):e(t,r)}),r}(t,[]);if(!s.length)return r;let{parsedSize:i,sourceSize:n}=s.reduce((t,r)=>{let s=l.get(e(r));return s&&(t.sourceSize+=s.size?.sourceSize||0,t.parsedSize+=s.size?.parsedSize||0),t},{sourceSize:0,parsedSize:0});return(0,p.jsx)(rf,{title:r,parsedSize:i,sourceSize:n})},page:"bundle"})},[t,n]);return(0,p.jsx)(t2.Provider,{value:{enabled:!a},children:(0,p.jsx)("div",{className:"bundleTree-ym_nR5",style:{marginTop:20,"--item-height":"30px"},children:(0,p.jsx)("div",{className:"bundleTreeViewport-JRXX4Y",children:(0,p.jsx)("div",{className:"bundleTreeInnerViewport-GsHdIR",ref:d,children:c>0&&(0,p.jsx)(p.Fragment,{children:t.length?(0,p.jsx)(t1,{onScroll:u,selectable:!1,virtual:!0,itemHeight:30,height:c,style:h?{width:h+"px"}:void 0,defaultExpandAll:s||t.length<=20,onExpand:e=>{ru=e},defaultExpandParent:!0,defaultExpandedKeys:ru?.length?ru:1===m.length?[m[0].key]:[],treeData:m,motion:!1},`tree_${i}_${s}_${l}`):(0,p.jsx)(eq.A,{description:(0,p.jsx)(J.A.Text,{strong:!0,children:`"${i}" can't match any modules`})})})})})})})}),rf=(0,f.memo)(e=>{let{title:t,parsedSize:r,sourceSize:s}=e,i=()=>(0,p.jsxs)("div",{className:tX,children:[(0,p.jsx)(t9,{content:t,children:(0,p.jsx)(J.A.Text,{className:tZ,children:t})}),(0,p.jsx)("div",{className:tQ}),(0,p.jsx)(Z.A,{children:r>0?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(rn,{size:r}),(0,p.jsx)(rd,{size:s})]}):(0,p.jsx)(rd,{size:s})})]});return(0,p.jsx)("div",{className:tJ,children:(0,p.jsx)(t0.tH,{fallbackRender:()=>(0,p.jsx)(t4,{children:i()}),children:i()})})}),rm=(0,f.memo)(e=>{let{mod:t,basename:r,includeModules:s,onClick:i}=e,n=t.kind===R.hp.JT.Concatenation,{parsedSize:l=0,sourceSize:a=0,gzipSize:o=0,brotliSize:d}=t.size,c=()=>{let e;return(0,p.jsxs)("div",{className:tX,children:[(0,p.jsx)(t9,{content:`Open the ${r}’s module reasons tree.`,placement:"bottom",children:(0,p.jsxs)("div",{className:"bundleTreeEntryTitleWrap-pgKUih",onClick:()=>i(t.id),children:[(0,p.jsx)(t9,{content:r,children:(0,p.jsx)(J.A.Text,{className:tZ,children:r})}),(0,p.jsx)("div",{className:tQ})]})}),(0,p.jsxs)(Z.A,{children:[(()=>{if(0!==l){let e=(0,p.jsx)(rc,{size:a}),t=(0,p.jsx)(rl,{size:l});return"number"==typeof o?(0,p.jsx)(t9,{placement:"bottom",content:e,children:(0,p.jsxs)(Z.A,{direction:"horizontal",children:[t,o>0&&(0,p.jsx)(ra,{size:o}),void 0!==d&&(0,p.jsx)(ro,{size:d})]})}):(0,p.jsxs)(Z.A,{direction:"horizontal",children:[t,e]})}return 0!==a?(0,p.jsx)(rc,{size:a}):null})(),n&&(0,p.jsx)(ri,{moduleCount:t.modules?.length||0}),(e=!n&&0===l&&s.filter(e=>e!==t&&e.modules&&e.modules.indexOf(t.id)>-1))&&e.length?(0,p.jsx)(t6,{title:(0,p.jsxs)(Z.A,{direction:"vertical",children:[(0,p.jsx)(J.A.Text,{style:{color:"inherit"},children:"This module is concatenated into another container module:"}),e.map(e=>{let{id:r,path:s}=e;if((0,j.XC)(s))return(0,p.jsx)(J.A.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:s},r);let i=(0,tK.relative)((0,tK.dirname)(t.path),s);return i.startsWith("javascript;charset=utf-8;base64,")?(0,p.jsx)(J.A.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===i[0]?i:`./${i}`},r):(0,p.jsx)(J.A.Text,{style:{color:"inherit"},code:!0,children:"."===i[0]?i:`./${i}`},r)})]}),children:(0,p.jsx)(z.A,{color:"green",children:"concatenated"})}):null,(0,p.jsx)(t8,{data:t})]})]})};return(0,p.jsx)("div",{className:tJ,children:(0,p.jsx)(t0.tH,{fallbackRender:()=>(0,p.jsx)(t4,{children:c()}),children:c()})})});var rx=r("VKU"),rg=r("u4x"),ry=r("dhe"),rj=r("Bb");r("v8");let{Search:rv}=e9.A,rb=e=>{let{onModuleClick:t,onClose:r,open:s,setOpen:i,isIcon:n=!1}=e,[l,a]=(0,f.useState)(!1),[o,d]=(0,f.useState)(""),[c,h]=(0,f.useState)(""),u=void 0!==s?s:l,m=i||a,g=(0,f.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=()=>{m(!0)},j=()=>{m(!1),r?.()},v=()=>{m(!1),r?.()};return(0,p.jsxs)(p.Fragment,{children:[n?(0,p.jsx)(tt.A,{onClick:y}):(0,p.jsx)(x.Ay,{className:"searchBtn-ZhRlk8",color:"cyan",onClick:y,children:"Search Module"}),(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetSearchModules,body:{moduleName:String(o)},children:e=>{let s=Object.keys(e)[0];return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(rg.A,{className:"modal-jTgoC2",title:"Search Modules",onOk:j,onCancel:v,open:u,width:"65rem",footer:"",children:[(0,p.jsx)(rv,{placeholder:"input search module name",allowClear:!0,onSearch:g,style:{width:500}}),s?(0,p.jsx)(eP.A,{defaultActiveKey:s,tabPosition:"top",onChange:e=>h(e),items:Object.keys(e).map((i,n)=>({label:e[i],key:i,children:rA(o,c||s,e=>{t?.(e),m(!1),r?.()})}))}):(0,p.jsx)(eq.A,{description:"No modules found."})]})})}})]})},rA=(e,t,r)=>(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetSearchModuleInChunk,body:{moduleName:String(e),chunk:t},children:t=>(0,p.jsx)(p.Fragment,{children:t?.length!==0?(0,p.jsx)(ry.A,{className:"list-osNsTS",loading:!t.length,itemLayout:"horizontal",pagination:{position:"bottom",align:"center"},dataSource:t,renderItem:t=>{let s=t.relativePath.split(e);return(0,p.jsx)(ry.A.Item,{className:r&&"listItemInteractive-AC3tqb",onClick:r?()=>r(t):void 0,children:(0,p.jsx)(rj.A,{avatar:!0,title:!1,loading:!t.path,active:!0,children:(0,p.jsx)(ry.A.Item.Meta,{description:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(J.A.Text,{code:!0,children:"Module:"}),s.map((t,r)=>r<s.length-1?(0,p.jsxs)(J.A.Text,{style:{fontWeight:200},children:[t,(0,p.jsx)(J.A.Text,{strong:!0,style:{fontWeight:600},children:e},`${t}-${r}-strong`)]},`${t}-${r}`):(0,p.jsx)(J.A.Text,{style:{fontWeight:200},children:t}))]})},`${t.path}-${t.relativePath}-meta`)})},`${t.path}-${t.relativePath}`)}}):(0,p.jsx)(eq.A,{})})}),{Option:rS}=ej.A,rz=(0,f.memo)(e=>{let{cwd:t,summary:r,entryPoints:s}=e,[i,n]=(0,f.useState)([]),[l,a]=(0,f.useState)(0),[o,d]=(0,f.useState)(""),[c,h]=(0,f.useState)(0),[u,m]=(0,f.useState)(!1),[x,g]=(0,f.useState)(""),[y,v]=(0,f.useState)(""),[b,A]=(0,f.useState)(!1),[S,z]=(0,f.useState)(null),{showCode:w,codeDrawerComponent:M}=(0,tq.Y)("Do not have the codes of assets. If you use the lite or brief mode, there will have codes."),{t:k}=(0,j.s9)(),E=r.all.total.files,_=(0,f.useCallback)(e=>t=>{"module"===e?g(t):"chunk"===e&&v(t)},[]),T=e=>(0,p.jsxs)(ej.A,{defaultValue:"kb",onChange:_(e),children:[(0,p.jsx)(rS,{value:"kb",children:"KB"}),(0,p.jsx)(rS,{value:"mb",children:"MB"})]}),I=(0,f.useCallback)((0,ea.sg)(e=>{a("mb"===x?1024*e*1024:1024*e)},300),[]),D=(0,f.useCallback)((0,ea.sg)(e=>{h("mb"===y?1024*e*1024:1024*e)},300),[]),O=(0,f.useMemo)(()=>{let e=E.slice();return o&&(e=e.filter(e=>e.path.indexOf(o)>-1)),b&&(e=e.filter(e=>e$(e.path))),c>0&&(e=e.filter(e=>e.size>=c)),i.length&&(e=e.filter(e=>!!i.some(t=>t.assets.includes(e.path)))),e.sort((e,t)=>{let r=+(e.path.indexOf("/")>-1);return(t.path.indexOf("/")>-1)-r})},[E,i,o,c,b]);(0,f.useEffect)(()=>{if(S&&O.some(e=>e.path===S))return;let e=O.find(e=>e$(e.path))??O[0];z(e?.path??null)},[S,O]);let B=(0,f.useMemo)(()=>(0,rx.kw)(O),[O]),P=(0,f.useMemo)(()=>(0,j.Bq)({files:O.map(e=>e.path).filter(Boolean),fileTitle(e,t){let r=(0,rx.yF)(B,e,t);if("string"==typeof r)return r;let{size:s,initial:i,path:n,content:l}=r;return(0,p.jsxs)("div",{className:"assetBox-Y8vGse",onClick:()=>{z(n)},children:[(0,p.jsx)(tU.i,{text:t,keyword:"",className:"fileText-W0quVZ"}),(0,p.jsxs)(Z.A,{size:"small",className:"assetsTag-eAVvyj",children:[(0,p.jsx)(X.A,{type:"vertical"}),(0,p.jsx)(J.A.Text,{style:{color:"var(--color-data-bundled)"},children:(0,j.Xq)(s)}),(0,p.jsx)(X.A,{type:"vertical"}),i?(0,p.jsx)(J.A.Text,{style:{color:"var(--color-data-initial)"},children:"initial"}):null,(0,p.jsx)(tL.A,{style:{fontSize:14,padding:0},onClick:()=>w({code:l,filePath:n})})]})]})}}),[B,O,w]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"treeGraph-LllSyP",children:[(0,p.jsxs)(ey.A,{align:"middle",gutter:[20,20],children:[s&&s.length?(0,p.jsx)(eR.A,{children:(0,p.jsx)(ej.A,{mode:"multiple",value:i.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{n(e.map(e=>s.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{n([])},children:s.map(e=>(0,p.jsx)(ej.A.Option,{value:e.name,children:(0,p.jsx)(Z.A,{children:(0,p.jsx)(tG.Ex,{label:e.name,value:(0,j.Xq)(e.size),tooltip:e.name})})},e.name))})}):null,(0,p.jsx)(eR.A,{children:(0,p.jsx)(tH.E,{placeholder:"search asset by keyword",onChange:e=>{d(e),m(!1)}})}),(0,p.jsx)(eR.A,{children:(0,p.jsx)(e3.A,{checked:b,onChange:e=>{A(e.target.checked),m(!1)},children:"JS only"})}),(0,p.jsx)(eR.A,{span:6,children:(0,p.jsx)(tW.A,{min:0,style:{width:"95%"},addonBefore:(0,p.jsxs)(Z.A,{children:[(0,p.jsx)(J.A.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,p.jsx)(el.A,{title:k("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,p.jsx)(eI.A,{style:{color:"var(--text-color-secondary)"}})})]}),onChange:e=>D(Number(e)),addonAfter:T("chunk")})}),(0,p.jsx)(eR.A,{span:6,children:(0,p.jsx)(tW.A,{min:0,style:{width:"95%"},addonBefore:(0,p.jsxs)(Z.A,{children:[(0,p.jsx)(J.A.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,p.jsx)(el.A,{title:k("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,p.jsx)(eI.A,{style:{color:"var(--text-color-secondary)"}})})]}),onChange:e=>{I(Number(e))},addonAfter:T("module")})})]}),(0,p.jsx)(ey.A,{children:(0,p.jsx)(rb,{})}),O.length?(0,p.jsxs)("div",{className:"assetDetailRoot-dgQPS5",children:[(0,p.jsx)("div",{className:eJ,children:(0,p.jsx)(eB.A,{className:"assetDetailFileTreeRoot-RBNnA8",classNames:{body:"assetDetailFileTreeBody-kRMd_h"},title:(0,p.jsxs)(Z.A,{children:[(0,p.jsx)(J.A.Text,{children:k("Output Assets List")}),(0,p.jsx)(X.A,{type:"vertical"}),(0,p.jsx)(el.A,{title:`total assets count is ${E.length}, the filtered assets count is ${O.length}`,children:(0,p.jsxs)(J.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[O.length," / ",E.length]})}),(0,p.jsx)(X.A,{type:"vertical"}),(0,p.jsx)(J.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,j.Xq)((0,ea.xu)(O,e=>e.size))})]}),size:"small",children:(0,p.jsx)("div",{className:"assetDetailFileTreeViewport-USNF6e",children:(0,p.jsx)("div",{className:"assetDetailFileTreeScrollArea-IqDzT3",children:(0,p.jsx)(C.h,{className:"assets-ll1P_L",treeData:P,autoExpandParent:!0,defaultExpandAll:u||O.length<=20},`tree_${o}_${u}`)})})})}),(0,p.jsx)("div",{className:eJ,children:S?(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetAssetDetails,body:{assetPath:S},children:e=>(0,p.jsx)(rh,{asset:e.asset,chunks:e.chunks,modules:e.modules,moduleSizeLimit:l,root:t})}):(0,p.jsx)(eB.A,{children:(0,p.jsx)(eq.A,{description:(0,p.jsx)(J.A.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,p.jsx)(eq.A,{})]}),M]})}),rw=e=>{let{errors:t,cwd:r,summary:s,entryPoints:i}=e,[n,l]=(0,j.yR)("bundle-size-tabs-card-expanded",!1),[a,o]=(0,j.yR)("bundle-size-tabs-default-tab","tree"),d=(0,f.useId)(),c=n?"Shrink card":"Expand card",{isLight:h}=(0,j.DP)(),u=h?"white":void 0;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f.Activity,{mode:n?"hidden":"visible",children:(0,p.jsx)(eV,{cwd:r,errors:t,summary:s})}),(0,p.jsx)(eB.A,{className:"root-DgXuux",classNames:{body:"rootBody-xGjkG7"},id:d,children:(0,p.jsx)(eP.A,{activeKey:a,onChange:o,size:"middle",className:"tabsRoot-gPEaze",tabBarExtraContent:{right:(0,p.jsx)(el.A,{title:c,children:(0,p.jsx)(x.Ay,{"aria-controls":d,"aria-expanded":n,"aria-label":c,onClick:()=>l(!n),icon:n?(0,p.jsx)(eN.A,{}):(0,p.jsx)(eT.A,{}),size:"small"})},String(n))},items:[{key:"tree",label:(0,p.jsxs)(Z.A,{children:[(0,p.jsx)(J.A.Text,{children:"Tree Graph"}),(0,p.jsx)(el.A,{overlayStyle:{maxWidth:380},overlayInnerStyle:{marginLeft:16,padding:10},color:u,title:(0,p.jsxs)(Z.A,{direction:"vertical",color:u,size:"middle",children:[(0,p.jsx)(ey.A,{children:(0,p.jsxs)(eR.A,{children:[(0,p.jsx)(z.A,{color:"cyan",style:{margin:0},children:"initial"}),(0,p.jsx)(J.A.Text,{style:{marginLeft:4},children:"Identify whether the chunk is an initial chunk."})]})}),(0,p.jsx)(ey.A,{children:(0,p.jsxs)(eR.A,{children:[(0,p.jsx)(z.A,{color:"green",style:{margin:0},children:"concatenated"}),(0,p.jsx)(J.A.Text,{style:{marginLeft:4},children:"Identify whether the module is a concatenated module"}),(0,p.jsx)(el.A,{overlayStyle:{maxWidth:408},placement:"bottom",color:u,title:(0,p.jsx)(Z.A,{direction:"vertical",color:"white",children:(0,p.jsx)(ey.A,{children:(0,p.jsxs)(eR.A,{children:[(0,p.jsx)(J.A.Text,{strong:!0,children:"Concatenated Module"}),(0,p.jsx)(J.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)(J.A.Text,{type:"secondary",style:{marginLeft:4},children:(0,p.jsx)(eI.A,{})})}),(0,p.jsx)(J.A.Text,{children:"."})]})}),(0,p.jsx)(ey.A,{children:(0,p.jsxs)(eR.A,{children:[(0,p.jsx)(x.Ay,{size:"small",icon:(0,p.jsx)(eD.A,{})}),(0,p.jsx)(J.A.Text,{style:{marginLeft:4},children:"Open the code."})]})}),(0,p.jsx)(ey.A,{children:(0,p.jsxs)(eR.A,{children:[(0,p.jsx)(x.Ay,{size:"small",icon:(0,p.jsx)(eO.A,{})}),(0,p.jsx)(J.A.Text,{style:{marginLeft:4},children:"View the module dependency, that is, module reasons in stats.json."})]})}),(0,p.jsx)(ey.A,{children:(0,p.jsxs)(eR.A,{children:[(0,p.jsx)(z.A,{color:"purple",children:"Bundled: 15.77 KB"}),(0,p.jsx)(J.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)(ey.A,{children:(0,p.jsxs)(eR.A,{children:[(0,p.jsx)(z.A,{color:"orange",children:"Source: 60.46 KB"}),(0,p.jsx)(J.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)(eI.A,{style:{color:"var(--text-color-secondary)"}})})]}),children:(0,p.jsx)(rz,{entryPoints:i,cwd:r,summary:s})},{key:"treemap",label:"Treemap",children:(0,p.jsx)(rM,{})}],defaultActiveKey:"tree"})})]})},rM=(0,f.memo)(()=>(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetProjectInfo,children:e=>{let{isRspack:t,hasSourceMap:r}=V.l5.fM(e.configs);return(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetSummaryBundles,children:e=>{let s=e.filter(e=>{var t;let r;return r=(t=e.asset.path).toLowerCase().split(".").pop()||"",e$(t)||"css"===r||"html"===r}).map(e=>{let t=(0,j.h4)(e.modules),r=e.modules.length>0;return{name:e.asset.path,sourceSize:r?t.sourceSize??0:e.asset.size,bundledSize:e.asset.size,gzipSize:e.asset.gzipSize??0,brotliSize:e.asset.brotliSize,children:t.children}});return(0,p.jsx)(tF,{treeData:s,bundledSize:r||t})}})}})),rk=()=>{let{project:e}=(0,eE.L)();if(!e)return null;let{root:t,errors:r}=e;return(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetEntryPoints,children:s=>(0,p.jsx)(rw,{cwd:t,errors:r,summary:e,entryPoints:s})})})},rE="BundleSize",rC=R.Kj.EH.BundleSize,r_=()=>(0,p.jsx)(rk,{});var rN=r("gsV"),rT=r("lj"),rI=r("Bl");let rD=(0,N.eN)({api:R.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{root:r}=t,[s,i]=(0,f.useState)({filename:"",loaders:[],layer:""}),[n]=(0,f.useState)(0),{theme:l}=(0,j.DP)();return(0,p.jsxs)(Z.A,{direction:"vertical",style:{width:"100%"},children:[(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetLoaderNames,children:e=>(0,p.jsx)(rN.F,{onChange:i,loaderNames:e})}),(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetLoaderChartData,children:e=>{let t=e.filter(e=>(0,rI.ak)(e.resource,e.loader,s.filename,s.loaders,e.layer,s?.layer));return 0===n?(0,p.jsx)(rT.z,{loaders:t,cwd:r},l):(0,p.jsx)(p.Fragment,{})}})]})}});var rO=r("FO"),rB=r("Qo");let rP="Loaders Timeline",rR=R.Kj.EH.LoaderOverall,rF=()=>{let{t:e}=(0,rB.B)();return(0,p.jsx)(y.Zp,{title:(0,p.jsxs)(Z.A,{align:"baseline",children:[(0,p.jsx)(J.A.Title,{level:5,style:{margin:0},children:"Loader Timeline"}),(0,p.jsx)(ts.A,{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)(z.A,{icon:(0,p.jsx)(rO.A,{}),color:"warning",children:"Info"})})]}),extra:(0,p.jsx)(ez,{defaultKeys:["module"]}),children:(0,p.jsx)(rD,{})})};var r$=r("kQ"),rL=r("O5"),rW=r("B4");let rq=(0,N.eN)({api:R.hp.uT.n.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:e=>{let{cwd:t}=e,[r,s]=(0,f.useState)({filename:"",loaders:[],layer:""});return(0,p.jsx)(r$.Ay,{locale:(0,j.JK)(),theme:{token:{padding:16,fontSize:14}},children:(0,p.jsxs)("div",{className:rW.A.loaderAnalysis,children:[(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetLoaderNames,children:e=>(0,p.jsx)(rN.F,{onChange:e=>s(e),loaderNames:e})}),(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetLoaderFileTree,children:e=>(0,p.jsx)(rL.h,{filename:r.filename,filetree:e,loaders:r.loaders,layer:r.layer,cwd:t})})]})})}});var rG=r("l");let rH="Loaders Analysis",rU=R.Kj.EH.LoaderAnalysis,rY=()=>{let e=(0,j.al)();return(0,p.jsx)(y.Zp,{title:(0,p.jsxs)(Z.A,{align:"baseline",children:[(0,p.jsx)(J.A.Title,{level:5,style:{margin:0},children:"Loader Analysis"}),(0,p.jsx)(ts.A,{content:(0,p.jsxs)("div",{children:[(0,rG.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,rG.t)("Details")})]}),title:"Info",children:(0,p.jsx)(z.A,{icon:(0,p.jsx)(rO.A,{}),color:"warning",children:"Info"})})]}),extra:(0,p.jsx)(ez,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:e.padding,height:800},children:(0,p.jsx)(rq,{})})};var rK=r("Ywa"),rV=r("sOW");r("WkL");let rJ="Plugins Analysis",rX=R.Kj.EH.Plugins,rZ=()=>{let[e,t]=(0,f.useState)([]),[r,s]=(0,f.useState)([]);return(0,p.jsx)("div",{children:(0,p.jsx)(eB.A,{title:"Plugins Overall",bodyStyle:{paddingTop:20/3},extra:(0,p.jsx)(ez,{defaultKeys:["plugins"]}),children:(0,p.jsxs)(Z.A,{direction:"vertical",style:{width:"100%",padding:"0 30px"},children:[(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetPluginSummary,children:e=>{let{hooks:r,tapNames:i}=e;return(0,p.jsxs)(Z.A,{style:{marginBottom:10},children:[(0,p.jsxs)(e9.A.Group,{compact:!0,children:[(0,p.jsxs)(x.Ay,{children:[(0,p.jsx)(rK.A,{}),(0,p.jsx)(J.A.Text,{children:"Plugin Tap Names"})]}),(0,p.jsx)(ej.A,{mode:"multiple",allowClear:!0,className:"plugin-select",style:{width:300},popupMatchSelectWidth:!0,onChange:e=>{t(e)},children:i.map(e=>(0,p.jsx)(ej.A.Option,{label:e,value:e,children:e},e))})]}),(0,p.jsxs)(e9.A.Group,{compact:!0,children:[(0,p.jsxs)(x.Ay,{children:[(0,p.jsx)(rV.A,{}),(0,p.jsx)(J.A.Text,{children:"Hooks"})]}),(0,p.jsx)(ej.A,{mode:"multiple",allowClear:!0,className:"plugin-select",style:{width:300},popupMatchSelectWidth:!0,onChange:e=>{s(e)},children:r.map(e=>(0,p.jsx)(ej.A.Option,{label:e,value:e,children:e},e))})]})]})}}),(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetPluginData,body:{hooks:r,tapNames:e},children:e=>(0,p.jsx)(eo,{dataSource:e})})]})})})};var rQ=r("DT"),r0=r("Bs");let r1=e=>{let{filepath:t,before:r,after:s,resolvers:i}=e;return(0,p.jsx)(eR.A,{flex:1,children:(0,p.jsx)(eP.A,{defaultActiveKey:"diff",items:[{key:"diff",label:"Resolve Diff Viewer",children:(0,p.jsx)(eB.A,{styles:{body:{padding:0,overflow:"hidden"}},children:(0,p.jsx)(to.Mh,{style:{height:785},isEmbed:!0,originalFilePath:t,modifiedFilePath:t,original:r,modified:s})})},{key:"details",label:"Resolve Details",children:(0,p.jsx)(eB.A,{children:(0,p.jsx)(en.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)(J.A.Text,{copyable:!0,children:(0,p.jsx)(J.A.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,p.jsx)(J.A.Text,{strong:!0,children:(0,j.a4)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>V.xR.Iu(t)?(0,p.jsx)(J.A.Text,{copyable:!0,children:t.result}):(0,p.jsx)(rQ.A,{style:{color:"#f50"}})}],dataSource:i})})}]})})},r2=e=>{let{resolver:t,cwd:r}=e,[s,i]=(0,f.useState)(""),n="/node_modules/",l=(0,f.useMemo)(()=>t.map(e=>e.issuerPath).filter(Boolean),[t]),a=(0,f.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,f.useMemo)(()=>(0,j.Bq)({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)(ey.A,{justify:"start",align:"top",wrap:!1,gutter:20,children:[(0,p.jsx)(eR.A,{span:7,children:(0,p.jsx)(eB.A,{title:"Files",children:(0,p.jsx)(C.h,{style:{width:"100%",height:735,overflow:"scroll"},treeData:d,defaultExpandedKeys:(0,j.ME)(d,o?1:4,o?void 0:e=>{let t=(0,ea.Jt)(e,"__RESOURCEPATH__").indexOf(n)>-1;return!!(a.length&&a.every(e=>e.indexOf(n)>-1))||!t})},`tree_${e.filename}`)})}),s&&(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetResolverFileDetails,body:{filepath:s},children:e=>(0,p.jsx)(r1,{...e})})]})},r4=(0,N.eN)({api:R.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{root:r}=t,[s,i]=(0,f.useState)("");return(0,p.jsxs)("div",{style:{width:"100%"},children:[(0,p.jsx)(Z.A,{style:{marginTop:20,marginBottom:20},children:(0,p.jsx)(tH.E,{icon:(0,p.jsx)(r0.A,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>i(e)})}),(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetResolverFileTree,children:e=>(0,p.jsx)(r2,{filename:s,resolver:e,cwd:r})})]})}}),r5="ModuleResolve",r6=R.Kj.EH.ModuleResolve,r9=()=>(0,p.jsx)("div",{children:(0,p.jsx)(eB.A,{title:"Webpack Resolver Analysis",extra:(0,p.jsx)(ez,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,p.jsx)(r4,{})})});var r3=r("aj");let r8=R.Kj.EH.RuleIndex,r7=()=>{let e=(0,j.xF)()[R.jO.gh.UrlQueryForErrorCode]||"",[t,r]=(0,f.useState)(R.jO.bW[e]),s=Object.values(R.jO.bW);return(0,f.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,p.jsxs)(ey.A,{gutter:10,children:[(0,p.jsx)(eR.A,{span:8,children:(0,p.jsx)(eB.A,{title:(0,p.jsx)(eA.h,{text:"list of the error codes."}),bordered:!0,children:(0,p.jsx)(Z.A,{direction:"vertical",children:s.map((e,s)=>(0,p.jsxs)(Z.A,{style:{marginTop:10*(0!==s),cursor:"pointer"},onClick:()=>r(e),align:"center",children:[(0,p.jsx)(ti.A,{status:"default"}),(0,p.jsx)(J.A.Text,{code:!0,children:(0,p.jsx)("a",{children:e.code})}),(0,p.jsx)(J.A.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,p.jsx)(eR.A,{span:16,children:t?(0,p.jsx)(eB.A,{title:(0,p.jsxs)(ey.A,{justify:"space-between",children:[(0,p.jsxs)(Z.A,{children:[(0,p.jsx)(J.A.Text,{code:!0,children:t.code}),(0,p.jsx)(J.A.Text,{children:t.title})]}),(0,p.jsx)("div",{children:(0,p.jsx)(z.A,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,p.jsx)(J.A.Paragraph,{children:"markdown"===t.type?(0,p.jsx)(r3.oz,{children:t.description}):(0,p.jsx)(J.A.Text,{children:t.description})})}):(0,p.jsx)(eB.A,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,p.jsx)(J.A.Text,{children:"click the error code in left bar to show more details."})})})]})};var se=r("qc");r("ov");let st="TreeShaking",sr=R.Kj.EH.TreeShaking,ss=(0,N.kn)(j.Cj,[["moduleGraph","data"],["root","cwd"],["treeShaking","treeShaking"]],function(e){let{data:t,treeShaking:r,cwd:s}=e,[i,n]=(0,f.useState)(""),[l,a]=(0,f.useState)(),[o,d]=(0,f.useState)(0),c=(0,se.s)(t.modules,r,i),h=c.find(e=>e.id===l)??c[0],u=h?r.sideEffectCodes[h.id]:[],m=u[o]??u[0];return(0,p.jsxs)(eB.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:[(0,p.jsx)(ey.A,{justify:"space-between",align:"middle",gutter:[20,20],style:{marginBottom:20,marginTop:20},children:(0,p.jsx)(eR.A,{children:(0,p.jsx)(tH.E,{icon:(0,p.jsx)(r0.A,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>{n(e),a(void 0),d(0)}})})}),h?(0,p.jsxs)(ey.A,{align:"top",wrap:!1,gutter:[20,20],children:[(0,p.jsx)(eR.A,{span:7,style:{minWidth:0},children:(0,p.jsx)(eB.A,{title:`Total Files: ${c.length}`,className:"tree-shaking-files-box",children:(0,p.jsx)(C.h,{className:"tree-shaking-files",treeData:(0,se.F)(c,s),defaultExpandAll:!0,selectedKeys:[`module:${h.id}`],onSelect:e=>{let t=String(e[0]??"");t.startsWith("module:")&&(a(Number(t.slice(7))),d(0))}},i)})}),(0,p.jsx)(eR.A,{span:9,style:{minWidth:0},children:(0,p.jsx)(eB.A,{title:(0,p.jsx)(J.A.Text,{ellipsis:{tooltip:h.path},children:tV().basename(h.path)}),className:"tree-shaking-editor",children:(0,p.jsx)(N.zW,{api:R.hp.uT.n.GetModuleCodeByModuleId,body:{moduleId:h.id},children:e=>e.source||e.parsedSource?(0,p.jsx)(to.Cv,{code:e.source||e.parsedSource,filePath:h.path,defaultLine:m?.startLine,ranges:m?[{start:{line:m.startLine,column:0}}]:[],style:{height:640,minWidth:0}},`${h.id}:${o}`):(0,p.jsx)(eq.A,{description:"Source code is not included in this report."})},h.id)})}),(0,p.jsx)(eR.A,{span:8,style:{minWidth:0},children:(0,p.jsx)(eB.A,{title:`SideEffects: ${u.length}`,className:"tree-shaking-table",children:(0,p.jsx)(en.A,{size:"small",pagination:!1,scroll:{y:640},rowKey:(e,t)=>String(t),dataSource:u,columns:[{title:"Line",dataIndex:"startLine",width:64},{title:"Code",dataIndex:"code",render:e=>(0,p.jsx)("pre",{style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",margin:0},children:e})}],onRow:(e,t)=>({onClick:()=>d(t??0),style:{cursor:"pointer",background:t===o?"var(--ant-color-primary-bg)":void 0}})})})})]}):(0,p.jsx)(eq.A,{description:i?"No matching files":"No side-effect code was recorded for modules in this report."})]})});var si=r("jGM"),sn=r("Ut"),sl=r("vr"),sa=r("qn"),so=r("Dh"),sd=r("cl");let sc=[R._8.z.Overall,R._8.z.BundleSize],sh=(e,t)=>{let r,s;window[R.YM.tQ]=e,window[R.YM.tQ].enableRoutes=t;let i=(r=`//${location.host}${location.pathname}#/overall`,s=t&&t.length>0?`?${R.Kj.H9.EnableRoutes}=${encodeURIComponent(JSON.stringify(t))}`:"",`${r}${s}`);location.href=i,sl.Ay.success("JSON data loaded successfully!")},su=async e=>{try{let t=await (0,sd.k)([e]);if(t&&t[0])sh(t[0].data,sc);else throw Error("Invalid manifest data")}catch(t){let e=t instanceof Error?t.message:"Unknown error";throw sl.Ay.error(`Failed to load Rspack stats: ${e}`),t}},sp=R.Kj.EH.Uploader,sf=()=>{let[e,t]=(0,f.useState)(!1),r=async e=>{if(e){t(!0);try{let t=await (0,j.jC)(e);if(!t||"object"!=typeof t)throw Error("Invalid JSON format");if((0,sd.A)(t))await su(t);else try{let e=t.clientRoutes||sc;sh(t.data,e)}catch(t){let e=t instanceof Error?t.message:"Unknown error";sl.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";sl.Ay.error(`Upload failed: ${e}`),console.error("Upload error:",t)}finally{t(!1)}}};return(0,p.jsx)(sa.A,{spinning:e,tip:"uploading...",children:(0,p.jsxs)(so.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)(sn.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."})]})})}},I(e,t,r){r.d(t,{Bq:()=>m,ME:()=>p,Rz:()=>y,Zb:()=>x,h4:()=>v,jC:()=>g});var s=r("b"),i=r("RI"),n=r("vr"),l=r("mg"),a=r("YL"),o=r("yn"),d=r("eK"),c=r("j3"),h=r("ft");let u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",r=e?.indexOf(t);return -1===r?null:0===r?t+(u(e?.slice(1),t)||""):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 f="__BASENAME__";function m(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?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,[f]: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.Jt)(e,r)===t)||d.children.push({title:()=>s(t,a),icon:"bundle"===l?e=>j(e):null,key:t,isLeaf:!0,[r]:t,[f]: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[f],t[f]].join(s);r[i]=t[i],r[f]=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[f]),t.children&&t.children.forEach(r=>{e(r,t,s,i,n)})})(t,e,"/",r,n))}),d}function x(e,t){return e.startsWith(t)?e.replace(t,"."):e}function g(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=x(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 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),s=r;for(let r=0;r<e.length;r++){let i=e[r];if(r===e.length-1)s.children||(s.children=[]),s.children.push({name:i,path:t.path,sourceSize:t.size?.sourceSize??0,bundledSize:t.size?.parsedSize??0,gzipSize:t.size?.gzipSize??0,brotliSize:t.size?.brotliSize,id:t.id});else{s._map||(s._map=new Map);let e=s._map.get(i);e||(e={name:i,children:[],_map:new Map},s.children.push(e),s._map.set(i,e)),s=e}}}return!function e(t){delete t._map,t.children&&t.children.forEach(e)}(r),r}(e,t));return!function e(t){let r;if(!t.children||0===t.children.length)return{sourceSize:t.sourceSize??0,bundledSize:t.bundledSize??0,gzipSize:t.gzipSize??0,brotliSize:t.brotliSize};let s=0,i=0,n=0;for(let l of t.children){let{sourceSize:t,bundledSize:a,gzipSize:o,brotliSize:d}=e(l);s+=t,i+=a,n+=o,void 0!==d&&(r=(r??0)+d)}return t.sourceSize=s,t.bundledSize=i,t.gzipSize=n,t.brotliSize=r,{sourceSize:s,bundledSize:i,gzipSize:n,brotliSize:r}}(r),r}},coF(e,t,r){r.d(t,{Rz:()=>i.Rz,Zb:()=>i.Zb,$G:()=>O.$G,Bq:()=>i.Bq,Cj:()=>_.Cj,ak:()=>k.ak,h4:()=>i.h4,a4:()=>D.a4,l9:()=>T.l,Xq:()=>T.X,JI:()=>O.JI,TR:()=>O.TR,JK:()=>E.J,mZ:()=>O.mZ,Ml:()=>O.Ml,r0:()=>N.r,cv:()=>N.c,it:()=>I.it,XC:()=>O.XC,ME:()=>i.ME,jC:()=>i.jC,Kv:()=>I.Kv,ZI:()=>I.ZI,y8:()=>v,VX:()=>s.V,km:()=>S,sO:()=>b,Lh:()=>z,s9:()=>m,yC:()=>y,yR:()=>w,nN:()=>x,DP:()=>C.DP,al:()=>M,CL:()=>j,xF:()=>g,an:()=>C.an,rt:()=>A});var s=r("afk"),i=r("I"),n=r("C0"),l=r("Y2"),a=r("RI"),o=r("C"),d=r("Qo"),c=r("TA"),h=r("fHJ"),u=r.n(h),p=r("hH");r("s");let f=l.Kj.EH.RuleIndex,m=d.B;function x(e,t){let r=(0,c.Zp)();return t?()=>window.open(t,"__blank"):()=>{r(`${f}?${l.jO.gh.UrlQueryForErrorCode}=${e}`)}}function g(){let e=(0,c.zy)().search||location.search;return(0,o.useMemo)(()=>u()(e,!0).query,[e])}function y(e){let t=e;"string"==typeof t&&(e=JSON.parse(n.oG.J0(t)));var r=e,s={dependencies:[],modules:[],moduleGraphModules:[],exports:[],sideEffects:[],variables:[]};return r&&"object"==typeof r?Array.isArray(r)?s:(0,a.NT)(r,s):s}function j(e){return(0,a.hS)(e,e=>e.path)}function v(e){return Array.isArray(e)?e.filter(e=>e.category===l.jO.y1.Compile&&e.code!==l.jO.jr.Overlay):[]}function b(e){return(Array.isArray(e)?e.filter(e=>e.category===l.jO.y1.Bundle&&e.code!==l.jO.jr.Overlay):[]).filter(e=>e.code===l.jO.bW.E1001.code)}function A(){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 S(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)}function z(){let e=(0,o.useRef)(null),[t,r]=(0,o.useState)(0),[s,i]=(0,o.useState)(0);return(0,o.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let s=e=>r(Math.ceil(e)),n=e=>i(Math.ceil(e)),l=t.getBoundingClientRect();s(l.width),n(l.height);let o=(0,a.nF)(e=>{let t=e[0];if(!t)return;let r=t.borderBoxSize?.[0];r?(s(r.inlineSize),n(r.blockSize)):(s(t.contentRect.width),n(t.contentRect.height))},100),d=new ResizeObserver(o);return d.observe(t),()=>{d.disconnect(),o.cancel()}},[]),[e,{width:t,height:s}]}function w(e,t){let r="RSDOC:"+e,[s,i]=(0,o.useState)(()=>{try{let e=window.localStorage.getItem(r);if(null!==e)return JSON.parse(e);return"function"==typeof t?t():t}catch(e){return console.warn(`Error reading localStorage key "${r}":`,e),"function"==typeof t?t():t}});return[s,(0,o.useCallback)(e=>{try{i(t=>{let s=e instanceof Function?e(t):e;return window.localStorage.setItem(r,JSON.stringify(s)),s})}catch(e){console.warn(`Error setting localStorage key "${r}":`,e)}},[r])]}let M=()=>{let{token:e}=p.A.useToken();return e};var k=r("Bl"),E=r("CP"),C=r("EU"),_=r("QMh"),N=r("Kl"),T=r("t6");r("yY");var I=r("nn"),D=r("mr"),O=r("Rq");r("L5"),r("cl")},cl(e,t,r){var s=r("Y2"),i=r("FYE"),n=r("RI");function l(e){return(0,n.cy)(e.assets)&&(0,n.cy)(e.chunks)}async function a(e){return(await Promise.all(e.map(async e=>{let t=i.L2.w0(new Map,e),r=i.zG.h7(e,".",t);await i.L2.zS(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.w5.Normal),packageGraph:n.toData()}}))).map(e=>({client:{enableRoutes:[]},data:{pid:0,root:"",errors:[],configs:[],plugin:{},summary:{costs:[]},envinfo:{},resolver:[],loader:[],moduleCodeMap:{},...e}}))}r.d(t,{A:()=>l,k:()=>a})},Rq(e,t,r){var s=r("fHJ"),i=r.n(s),n=r("Y2");function l(e){e.hash.endsWith(n.Kj.EH.Uploader)&&e.set("hash",n.Kj.EH.Overall)}function a(e){return e.startsWith("data:text/javascript;")}function o(){let{query:e}=i()(location.href,!0),t=e[n.Kj.H9.ManifestFile];if(t)return decodeURIComponent(t)}function d(){let{query:e}=i()(location.href,!0),t=e[n.Kj.H9.EnableRoutes];if(!t&&location.hash&&(t=i()(location.hash,!0).query[n.Kj.H9.EnableRoutes]),!t&&location.hash){let e=location.hash,r=e.indexOf("?");-1!==r&&(t=new URLSearchParams(e.substring(r+1)).get(n.Kj.H9.EnableRoutes)||void 0)}if(t)try{return JSON.parse(decodeURIComponent(t))}catch(e){console.warn("Failed to parse enableRoutes from URL query:",e)}}function c(e){let t=i()(location.href,!0),r=i()(e,!0);return l(t),t.set("origin",e),t.set("protocol",r.protocol),t.set("host",r.host),t.set("port",r.port),t.toString()}function h(e,t){let r,s=i()(location.href,!0);r=i()(n.YM.Fv,!0),s.set("origin",r.origin),s.set("protocol",r.protocol),s.set("host",r.host),s.set("pathname",r.pathname),l(s);let a={...s.query,[n.Kj.H9.ManifestFile]:e};return t&&t.length>0&&(a[n.Kj.H9.EnableRoutes]=JSON.stringify(t)),s.set("query",a),s.toString()}function u(){return null}r.d(t,{$G:()=>c,JI:()=>u,TR:()=>d,XC:()=>a,kJ:()=>o,mZ:()=>h},{Ml:e=>{if(e?.indexOf("node_modules")>=0){let t=e.split("node_modules");return`node_modules${t[t.length-1]}`}return e?.length?`${e?.split("/").slice(-4).join("/")}`:e}})},RI(e,t,r){function s(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"!=typeof s&&(s={});let{leading:i=!1,trailing:n=!0,maxWait:l}=s,a=[,,];i&&(a[0]="leading"),n&&(a[1]="trailing");let o=null,d=function(e,t){let{signal:r,edges:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i,n=null,l=null!=s&&s.includes("leading"),a=null==s||s.includes("trailing"),o=()=>{null!==n&&(e.apply(i,n),i=void 0,n=null)},d=null,c=()=>{null!=d&&clearTimeout(d),d=setTimeout(()=>{d=null,a&&o(),h()},t)},h=()=>{null!==d&&(clearTimeout(d),d=null),i=void 0,n=null},u=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];if(r?.aborted)return;i=this,n=t;let a=null==d;c(),l&&a&&o()};return u.schedule=c,u.cancel=h,u.flush=()=>{o()},r?.addEventListener("abort",h,{once:!0}),u}(function(){for(var r=arguments.length,s=Array(r),i=0;i<r;i++)s[i]=arguments[i];t=e.apply(this,s),o=null},r,{edges:a}),c=function(){for(var r=arguments.length,s=Array(r),a=0;a<r;a++)s[a]=arguments[a];return null!=l&&(null===o&&(o=Date.now()),Date.now()-o>=l)?((i||n)&&(t=e.apply(this,s)),o=Date.now(),d.cancel(),d.schedule()):d.apply(this,s),t};return c.cancel=d.cancel,c.flush=()=>(d.flush(),t),c}function i(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function n(e){var t;return null!=e&&"function"!=typeof e&&Number.isSafeInteger(t=e.length)&&t>=0}function l(e){return null!==e&&("object"==typeof e||"function"==typeof e)}let a=/^(?:0|[1-9]\d*)$/;function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return a.test(e)}}function d(e){for(var t,r,s=arguments.length,a=Array(s>1?s-1:0),d=1;d<s;d++)a[d-1]=arguments[d];e=Object(e);let c=Object.prototype,h=a.length,u=h>2?a[2]:void 0;u&&(t=a[0],r=a[1],l(u)&&("number"==typeof r&&n(u)&&o(r)&&r<u.length||"string"==typeof r&&r in u)&&i(u[r],t))&&(h=1);for(let t=0;t<h;t++){if(null==a[t])continue;let r=a[t],s=Object.keys(r);for(let t=0;t<s.length;t++){let n=s[t],l=e[n];(void 0===l||!Object.hasOwn(e,n)&&i(l,c[n]))&&(e[n]=r[n])}}return e}function c(e){return"symbol"==typeof e||e instanceof Symbol}function h(e){return null==e?"":function e(t){if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");if(c(t))return t.toString();let r=t+"";return"0"===r&&Object.is(Number(t),-0)?"-0":r}(e)}function u(e){return e}function p(e){return"__proto__"===e}let f=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function m(e){switch(typeof e){case"number":case"symbol":default:return!1;case"string":if(""===e||e.startsWith(".")||e.endsWith("."))return!1;return f.test(e)}}function x(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function g(e){if(Array.isArray(e))return e.map(x);if("symbol"==typeof e)return[e];e=h(e);let t=[],r=e.length;if(0===r)return t;let s=0,i="",n="",l=!1,a=!1,o=/^-?\d+(?:\.\d+)?$/;for(46===e.charCodeAt(0)&&t.push("");s<r;){let d=e[s];if(n)"\\"===d&&s+1<r?i+=e[++s]:d===n?n="":i+=d;else if(l)if('"'===d||"'"===d)n=d,a=!0;else if("]"===d){if(l=!1,!a&&i.includes(".")&&!o.test(i)){let e=i.split(".");for(let r=0;r<e.length;r++)""!==e[r]&&t.push(e[r])}else t.push(i);i=""}else i+=d;else if("["===d)l=!0,a=!1,i&&(t.push(i),i="");else if("."===d){i&&(t.push(i),i="");let r=e[s+1];(void 0===r||"."===r)&&t.push("")}else i+=d;s++}return i&&t.push(i),t}function y(e,t,r){if(null==e)return r;switch(typeof t){case"string":{if(p(t))return r;let s=e[t];if(void 0===s)if(m(t)&&!Object.hasOwn(e,t))return y(e,g(t),r);else return r;return s}case"number":case"symbol":{"number"==typeof t&&(t=x(t));let s=e[t];if(void 0===s)return r;return s}default:{if(Array.isArray(t)){var s=t;if(0===s.length)return r;let i=e;for(let e=0;e<s.length;e++){if(null==i||p(s[e]))return r;i=i[s[e]]}return void 0===i?r:i}if(p(t=Object.is(t?.valueOf(),-0)?"-0":String(t)))return r;let i=e[t];if(void 0===i)return r;return i}}}function j(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function v(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function b(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function A(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let S="[object RegExp]",z="[object String]",w="[object Number]",M="[object Boolean]",k="[object Arguments]",E="[object Symbol]",C="[object Date]",_="[object Map]",N="[object Set]",T="[object Array]",I="[object ArrayBuffer]",D="[object Object]",O="[object DataView]",B="[object Uint8Array]",P="[object Uint8ClampedArray]",R="[object Uint16Array]",F="[object Uint32Array]",$="[object Int8Array]",L="[object Int16Array]",W="[object Int32Array]",q="[object Float32Array]",G="[object Float64Array]",H="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof r.g&&r.g||function(){return this}();function U(e){return void 0!==H.Buffer&&H.Buffer.isBuffer(e)}function Y(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,i=arguments.length>4?arguments[4]:void 0,n=i?.(e,t,r,s);if(void 0!==n)return n;if(j(e))return e;if(s.has(e))return s.get(e);if(Array.isArray(e)){let t=Array(e.length);s.set(e,t);for(let n=0;n<e.length;n++)t[n]=Y(e[n],n,r,s,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;for(let[n,l]of(s.set(e,t),e))t.set(n,Y(l,n,r,s,i));return t}if(e instanceof Set){let t=new Set;for(let n of(s.set(e,t),e))t.add(Y(n,void 0,r,s,i));return t}if(U(e))return e.subarray();if(v(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);s.set(e,t);for(let n=0;n<e.length;n++)t[n]=Y(e[n],n,r,s,i);return t}if(e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return s.set(e,t),K(t,e,r,s,i),t}if("u">typeof File&&e instanceof File){let t=new File([e],e.name,{type:e.type});return s.set(e,t),K(t,e,r,s,i),t}if("u">typeof Blob&&e instanceof Blob){let t=new Blob([e],{type:e.type});return s.set(e,t),K(t,e,r,s,i),t}if(e instanceof Error){let t=structuredClone(e);return s.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,K(t,e,r,s,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return s.set(e,t),K(t,e,r,s,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return s.set(e,t),K(t,e,r,s,i),t}if(e instanceof String){let t=new String(e.valueOf());return s.set(e,t),K(t,e,r,s,i),t}if("object"==typeof e&&function(e){switch(A(e)){case k:case T:case I:case O:case M:case C:case q:case G:case $:case L:case W:case _:case w:case D:case S:case N:case z:case E:case B:case P:case R:case F:return!0;default:return!1}}(e)){let t=Object.create(Object.getPrototypeOf(e));return s.set(e,t),K(t,e,r,s,i),t}return e}function K(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,n=[...Object.keys(t),...b(t)];for(let l=0;l<n.length;l++){let a=n[l],o=Object.getOwnPropertyDescriptor(e,a);(null==o||o.writable)&&(e[a]=Y(t[a],a,r,s,i))}}function V(e,t,r,s){let n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t===e)return!0;switch(typeof t){case"object":return function(e,t,r,s){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)return!0;if(Array.isArray(t))return J(e,t,r,s);if(t instanceof Map){var n,l=e;if(0===t.size)return!0;if(!(l instanceof Map))return!1;for(let[e,i]of t.entries())if(!1===r(l.get(e),i,e,l,t,s))return!1;return!0}if(t instanceof Set)return n=e,0===t.size||n instanceof Set&&J([...n],[...t],r,s);let a=Object.keys(t);if(null==e)return i&&0===a.length;if(i)j(e)&&(e=Object(e));else{let t=A(e);if("[object Object]"!==t&&"[object Arguments]"!==t)return!1}if(0===a.length)return!0;if(s?.has(t))return s.get(t)===e;s?.set(t,e);try{for(let i=0;i<a.length;i++){let n=a[i];if(!(n in e)||void 0===t[n]&&void 0!==e[n]||null===t[n]&&null!==e[n]||!r(e[n],t[n],n,e,t,s))return!1}return!0}finally{s?.delete(t)}}(e,t,r,s,n);case"function":if(Object.keys(t).length>0)return V(e,{...t},r,s,n);return i(e,t);default:if(!l(e))return i(e,t);if(n){if("string"==typeof t)return""===t;return!0}return i(e,t)}}function J(e,t,r,s){if(0===t.length)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let n=0;n<t.length;n++){let l=t[n],a=!1;for(let o=0;o<e.length;o++){if(i.has(o))continue;let d=e[o],c=!1;if(r(d,l,n,e,t,s)&&(c=!0),c){i.add(o),a=!0;break}}if(!a)return!1}return!0}function X(e,t){return function e(t,r,s){return"function"!=typeof s?e(t,r,()=>void 0):V(t,r,function e(t,r,i,n,l,a){let o=s(t,r,i,n,l,a);return void 0!==o?!!o:V(t,r,e,a,!1)},new Map,!0)}(e,t,()=>void 0)}function Z(e){if(null==e)return u;switch(typeof e){case"function":return e;case"object":if(Array.isArray(e)&&2===e.length){var t,r,s,i,n=e[0],l=e[1];switch(typeof n){case"object":Object.is(n?.valueOf(),-0)&&(n="-0");break;case"number":n=x(n)}return t=l,r=(e,r,s,i)=>{let n;if(void 0!==n)return n;if("object"==typeof t){if("[object Object]"===A(t)&&"function"!=typeof t.constructor){let e={};return i.set(t,e),K(e,t,s,i),e}switch(Object.prototype.toString.call(t)){case w:case z:case M:{let e=new t.constructor(t?.valueOf());return K(e,t),e}case k:{let e={};return K(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},l=Y(t,void 0,t,new Map,r),function(e){let t=y(e,n);if(void 0===t){let t;var r,s=n;if(0===(t=Array.isArray(s)?s:"string"==typeof s&&m(s)&&!(s in Object(e))?g(s):[s]).length)return!1;let i=e;for(let e=0;e<t.length;e++){let s=x(t[e]);if((null==i||!Object.hasOwn(i,s))&&!((Array.isArray(i)||null!==(r=i)&&"object"==typeof r&&"[object Arguments]"===A(r))&&o(s)&&Number(s)<i.length))return!1;i=i[s]}return!0}return void 0===l?void 0===t:X(t,l)}}return s=Y(i=s=e,void 0,i,new Map,void 0),e=>X(e,s);default:return function(t){return y(t,e)}}}function Q(e){return Array.isArray(e)?e:Array.from(e)}function ee(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return null==e?{}:function(e,t){let r={};for(let s=0;s<e.length;s++){let i=e[s],n=t(i,s,e);Object.hasOwn(r,n)||(r[n]=[]),r[n].push(i)}return r}(n(e)?Q(e):Object.values(e),Z(t))}function et(e){return Array.isArray(e)}function er(){}function es(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function ei(e,t){return function e(t,r,s,n,l,a,o){let d=o(t,r,s,n,l,a);if(void 0!==d)return d;if(typeof t==typeof r)switch(typeof t){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return t===r;case"number":return t===r||Object.is(t,r)}return function t(r,s,n,l){if(Object.is(r,s))return!0;let a=A(r),o=A(s);if("[object Arguments]"===a&&(a=D),"[object Arguments]"===o&&(o=D),a!==o)return!1;switch(a){case z:return r.toString()===s.toString();case w:return i(r.valueOf(),s.valueOf());case M:case C:case E:return Object.is(r.valueOf(),s.valueOf());case S:return r.source===s.source&&r.flags===s.flags;case"[object Function]":return r===s}let d=(n=n??new Map).get(r),c=n.get(s);if(null!=d&&null!=c)return d===s;n.set(r,s),n.set(s,r);try{switch(a){case _:if(r.size!==s.size)return!1;for(let[t,i]of r.entries())if(!s.has(t)||!e(i,s.get(t),t,r,s,n,l))return!1;return!0;case N:{if(r.size!==s.size)return!1;let t=Array.from(r.values()),i=Array.from(s.values());for(let a=0;a<t.length;a++){let o=t[a],d=i.findIndex(t=>e(o,t,void 0,r,s,n,l));if(-1===d)return!1;i.splice(d,1)}return!0}case T:case B:case P:case R:case F:case"[object BigUint64Array]":case $:case L:case W:case"[object BigInt64Array]":case q:case G:if(U(r)!==U(s)||r.length!==s.length)return!1;for(let t=0;t<r.length;t++)if(!e(r[t],s[t],t,r,s,n,l))return!1;return!0;case I:if(r.byteLength!==s.byteLength)return!1;return t(new Uint8Array(r),new Uint8Array(s),n,l);case O:if(r.byteLength!==s.byteLength||r.byteOffset!==s.byteOffset)return!1;return t(new Uint8Array(r),new Uint8Array(s),n,l);case"[object Error]":return r.name===s.name&&r.message===s.message;case D:{if(!(t(r.constructor,s.constructor,n,l)||es(r)&&es(s)))return!1;let i=[...Object.keys(r),...b(r)],a=[...Object.keys(s),...b(s)];if(i.length!==a.length)return!1;for(let t=0;t<i.length;t++){let a=i[t],o=r[a];if(!Object.hasOwn(s,a))return!1;let d=s[a];if(!e(o,d,a,r,s,n,l))return!1}return!0}default:return!1}}finally{n.delete(r),n.delete(s)}}(t,r,a,o)}(e,t,void 0,void 0,void 0,void 0,er)}function en(e){let t,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if(null==e)return;let i=Q(e);if(0===i.length)return;let n=Z(s);for(let e=0;e<i.length;e++){let s=i[e],l=n(s,e,i);!(null==l||Number.isNaN(l))&&"symbol"!=typeof l&&(void 0===r||l>r)&&(r=l,t=s)}return t}function el(e){let t,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;if(null==e)return;let i=Q(e);if(0===i.length)return;let n=Z(s);for(let e=0;e<i.length;e++){let s=i[e],l=n(s,e,i);!(null==l||Number.isNaN(l))&&"symbol"!=typeof l&&(void 0===r||l<r)&&(r=l,t=s)}return t}function ea(e){let t=[];for(let r in e)t.push(r);return t}function eo(e){return e}function ed(e,t){if(null==e)return{};let r={},s=Z(t??eo),i=[...function(e){if(null==e)return[];switch(typeof e){case"object":case"function":let t;if(n(e)){let t,r,s;return r=new Set(t=function(e,t){var r,s;let i,n;if((e=(n=(i=(r=e)?1/0===(r=c(s=r)?0/0:Number(s))||-1/0===r?(r<0?-1:1)*Number.MAX_VALUE:r==r?r:0:0===r?r:0)%1)?i-n:i)<1||!Number.isSafeInteger(e))return[];let l=Array(e);for(let r=0;r<e;r++)l[r]="function"==typeof t?t(r):r;return l}(e.length,e=>`${e}`)),U(e)&&(r.add("offset"),r.add("parent")),v(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset")),s=ea(e).filter(e=>!r.has(e)),Array.isArray(e)?[...t,...s]:[...t.filter(t=>Object.hasOwn(e,t)),...s]}if(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))return ea(e).filter(e=>"constructor"!==e);return ea(e);default:return ea(Object(e))}}(e),...function(e){let t=[];for(;e;)t.push(...b(e)),e=Object.getPrototypeOf(e);return t}(e)];for(let t=0;t<i.length;t++){let n=c(i[t])?i[t]:i[t].toString(),l=e[n];s(l,n,e)||(r[n]=l)}return r}function ec(e,t){let r;if(!e||!e.length)return 0;null!=t&&(t=Z(t));for(let s=0;s<e.length;s++){let i=t?t(e[s]):e[s];void 0!==i&&(void 0===r?r=i:r+=i)}return r}function eh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{leading:i=!0,trailing:n=!0}=r;return s(e,t,{leading:i,maxWait:t,trailing:n})}function eu(e){return 0===e?0:e}function ep(e){return n(e)?[...new Set(Array.from(e))]:[]}function ef(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return n(e)?(function(e,t){let r=new Map;for(let s=0;s<e.length;s++){let i=e[s],n=t(i,s,e);r.has(n)||r.set(n,i)}return Array.from(r.values())})(Array.from(e),(t=Z(r),function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return t.apply(this,r.slice(0,1))})).map(eu):[]}function em(e){var t;return(t=h(e)).substring(0,1).toUpperCase()+t.substring(1)}r.d(t,{$z:()=>ee,Jt:()=>y,NT:()=>d,Sk:()=>en,Zb:()=>em,cy:()=>et,hS:()=>ef,n4:()=>ei,nF:()=>eh,sb:()=>ep,sg:()=>s,wq:()=>el,xu:()=>ec,z7:()=>ed})},C0(e,t,r){r.d(t,{Wh:()=>f,oG:()=>d,B_:()=>p,Fp:()=>m,TS:()=>h,aH:()=>a,AP:()=>g,_8:()=>l,xR:()=>c,l5:()=>x,BD:()=>s,gX:()=>o,s0:()=>u});var s={};r.r(s),r.d(s,{S:()=>n});var i,n=((i={}).Bootstrap="bootstrap->beforeCompile",i.Compile="beforeCompile->afterCompile",i.Done="afterCompile->done",i.Minify="minify(processAssets)",i),l=r("i9"),a=r("uU"),o=r("jo"),d=r("l4"),c=r("W1"),h=r("M5");r("z9");var u=r("EF"),p=r("Np"),f=r("bT"),m=r("p6"),x=r("o6");r("Vkn");var g=r("Ts")},CX(e,t,r){var s=r("vb");function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return(0,s.brotliCompressSync)(e,{params:{[s.constants.BROTLI_PARAM_QUALITY]:t}}).length}r.d(t,{O:()=>i})},if(e,t,r){var s=r("vb");function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return(0,s.gzipSync)(e,{level:t}).length}r.d(t,{E:()=>6,e:()=>i})},Ts(e,t,r){function s(e){return void 0===e}function i(e){return"number"==typeof e||"object"==typeof e&&null!==e&&"[object Number]"===Object.prototype.toString.call(e)}function n(e){return null==e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length}function l(e){return e[e.length-1]}function a(e){return e.filter(e=>!!e)}function o(e){return null==e}function d(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}r.d(t,{Et:()=>i,HV:()=>l,Im:()=>n,Up:()=>d,b0:()=>s,gD:()=>o,oE:()=>a})},FYE(e,t,r){r.d(t,{L2:()=>i.L2,zG:()=>i.zG,ps:()=>s.ps});var s=r("E9"),i=r("vQ")},aY(e,t,r){class s{id;name;size;initial;entry;_assets=[];_modules=[];_dependencies=[];_imported=[];_parsedSize;constructor(e,t,r,s,i){this.id=e,this.name=t,this.size=r,this.initial=s,this.entry=i}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}}r.d(t,{A:()=>s})},au(e,t,r){let s=1;class i{name;static init(){s=1}constructor(e){this.name=e,this.id=s++}id;_chunks=[];_assets=[];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}}r.d(t,{$:()=>i})},B7(e,t,r){class s{_assetMap=new Map;_assetPathMap=new Map;_chunkMap=new Map;_entrypointMap=new Map;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]))}}r.d(t,{i:()=>s})},E9(e,t,r){r.d(t,{Vd:()=>o,AA:()=>s.A,ir:()=>i.i,$k:()=>d.$,nV:()=>g,dh:()=>S,ps:()=>$,WZ:()=>f.W});var s=r("aY"),i=r("B7"),n=r("Y2"),l=r("if");let a=1;class o{static init(){a=1}id;path;size;content;chunks;gzipSize;brotliSize;constructor(e,t,r,s){this.id=a++,this.path=e,this.size=t,this.chunks=r,this.content=s}toData(e){return{id:this.id,path:this.path,size:this.size,gzipSize:this.gzipSize,...void 0!==this.brotliSize?{brotliSize:this.brotliSize}:{},chunks:this.chunks?.map(e=>e.id),content:e===n.hp.w5.NoSourceAndAssets||e===n.hp.w5.NoCode?"":this.content}}setChunks(e){this.chunks=e}setId(e){this.id=e}setGzipSize(e,t){this.gzipSize=(0,l.e)(e,t)}}var d=r("au"),c=r("s0"),h=r("Ts"),u=r("CM"),p=r.n(u),f=r("ls"),m=r("Wr");let x=1;class g{static kind=n.hp.JT;issuerPath=[];static init(){x=1}id;renderId;bailoutReason=[];sideEffectLocations=[];sideEffectCodes=[];identifier;path;isEntry;kind;layer;source={source:"",transformed:"",parsedSource:""};size={sourceSize:0,transformedSize:0,parsedSize:0,gzipSize:0};sourceMap;program;chunks=[];dependencies=[];imported=[];modules=[];concatenationModules=[];_isPreferSource;meta={hasSetEsModuleStatement:!1,strictHarmonyModule:!1};constructor(e,t,r=!1,s=n.hp.JT.Normal,i,l=""){this.id=x++,this.identifier=e,this.path=t,this.isEntry=r,this.kind=s,this.renderId=i,this.layer=l}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 c.O(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]:n.hp.w5.Normal;return e===n.hp.w5.NoCode?{source:"",transformed:"",parsedSource:""}:e===n.hp.w5.NoSourceAndAssets||e===n.hp.w5.NoSource?{source:"",transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}:e===n.hp.w5.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;t.sourceSize=e.sourceSize??t.sourceSize,t.transformedSize=e.transformedSize??t.transformedSize,t.parsedSize=e.parsedSize??t.parsedSize,"brotliSize"in e&&(void 0===e.brotliSize?delete t.brotliSize:t.brotliSize=e.brotliSize),"number"==typeof e.gzipSize&&(t.gzipSize=e.gzipSize)}getSize(){return{...this.size}}getStatement(e){return new f.W(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((0,h.Et)(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});(0,h.Et)(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){this.issuerPath?.length||(this.issuerPath=e)}getIssuerPath(){return this.issuerPath}getConcatenationModules(){return this.concatenationModules.slice()}toData(e,t){let{isPreferSource:r}=this,s=(0,m.ug)(this.identifier),i={id:this.id,renderId:this.renderId,identifier:e&&s.indexOf(".")>0?p().relative(e,s):this.identifier,path:this.path,isPreferSource:r,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:this.issuerPath?.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)&&(i.meta={},this.meta.hasSetEsModuleStatement&&(i.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(i.meta.strictHarmonyModule=!0)),this.isEntry&&(i.isEntry=this.isEntry),this.modules.length>0&&(i.modules=this.modules.map(e=>e.id)),this.rootModule&&(i.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(i.concatenationModules=this.concatenationModules.map(e=>e.id)),i}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}}var y=r("lv");let j=1;class v{static init(){j=1}static NamespaceSymbol=Symbol("namespace");id=j++;name;originName;module;identifier;isNameSpace;fromDependency;_exports=[];_variable;constructor(e,t,r,s,i){this.name=e,this.module=t,this.identifier=r,s&&(this.fromDependency=this.module.getDependencyByRequest(s)),i===v.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=i)}get variable(){if(void 0!==this._variable)return this._variable?this._variable:void 0;let e=this.exports[0]?.getRecursiveExport()?.variable;return this._variable=e??!1,e}get exports(){return this._exports?.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}}var b=r("Qs");class A{static init(){y.D.init(),v.init(),b.r.init()}module;exports=[];sideEffects=[];variables=[];_dynamic;_graph;constructor(e,t,r){this.module=e,this._graph=t,"boolean"==typeof this._dynamic&&(this._dynamic=r)}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)}}}class S{static init(){g.init(),c.O.init(),A.init()}static fromData(e){let t=new S,r=e=>new f.W(t.getModuleById(e.module),e.position);for(let r of e.modules??[]){let e=new g(String(r.id),r.path,r.isEntry,r.kind,r.renderId,r.layer);e.id=r.id,e.setSize(r.size),e.meta={strictHarmonyModule:r.meta?.strictHarmonyModule??!1,hasSetEsModuleStatement:r.meta?.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 y.D(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 b.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 v(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 A(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 S.init(),t}_dependenciesIdMap=new Map;_connectionsOnlyImports=[];_moduleIdentifierMap=new Map;_moduleIdMap=new Map;_moduleGraphModules=new Map;_exportIdMap=new Map;_sideEffectIdMap=new Map;_varIdMap=new Map;_layers=new Map;clear(){this._dependenciesIdMap=new Map,this._moduleIdentifierMap=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.setModules(e.getModules()),this.setDependencies(e.getDependencies()),this.setConnectionsOnlyImports(e.getConnectionsOnlyImports()),e instanceof S&&(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._moduleIdentifierMap.values())}getDependencies(){return Array.from(this._dependenciesIdMap.values())}getEntryModules(){return this.getModules().filter(e=>e.isEntry&&e.kind!==n.hp.JT.Concatenation)}getModuleById(e){return this._moduleIdMap.get(e)}getDependencyById(e){return this._dependenciesIdMap.get(e)}getModuleByIdentifier(e){return this._moduleIdentifierMap.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._moduleIdentifierMap.set(e.identifier,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.getDependencies().filter(t=>t.module===e||t.originDependency===e||t.dependency===e))this.removeDependency(t);this._moduleGraphModules.delete(e),this._moduleIdMap.delete(e.id),this._moduleIdentifierMap.delete(e.identifier)}removeDependency(e){for(let t of(this._dependenciesIdMap.delete(e.id),e.module.removeDependency(e),new Set([e.originDependency,e.dependency])))e.module.getDependencies().some(e=>e.originDependency===t||e.dependency===t)||t.removeImported(e.module)}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){let t=!!(e?.briefOptions?.type&&e.briefOptions.type.length);return{dependencies:this.getDependencies().map(e=>e.toData()),modules:this.getModules().map(r=>r.toData(e?.contextPath,t)),moduleGraphModules:t?[]:Array.from(this._moduleGraphModules.values()).map(e=>e.toData()),exports:t?[]:Array.from(this._exportIdMap.values()).map(e=>e.toData()),sideEffects:t?[]:Array.from(this._sideEffectIdMap.values()).map(e=>e.toData()),variables:t?[]: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]:n.hp.w5.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._moduleIdentifierMap=new Map(e.map(e=>[e.identifier,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]))}setConnectionsOnlyImports(e){this._connectionsOnlyImports=e}getConnectionsOnlyImports(){return this._connectionsOnlyImports}}var z=r("dv");let{dirname:w,join:M}=p(),k=/^(?:[a-zA-Z]:[\\/]|\\\\)/,E=e=>{let t=e.replace(/\//g,"\\").replace(/\\+$/,"");if(/^[a-zA-Z]:$/.test(t))return`${t}\\`;let r=t.match(/^\\\\[^\\]+\\[^\\]+/);if(r&&t.length===r[0].length)return`${r[0]}\\`;let s=t.lastIndexOf("\\");return -1===s?".":0===s?"\\":/^[a-zA-Z]:\\/.test(t)&&2===s?t.slice(0,3):t.slice(0,s)},C=(e,t)=>`${e.replace(/[\\/]+$/,"")}\\${t}`,_=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/,N=RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${_.source}[/|+])?(?:${_.source}\\+)*(?:${_.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${_.source}[/|+])?(?:${_.source})(?:@${_.source})?)*/`,"g"),T=/(?:(?: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,I=e=>{var t;let r,s=e.match(N);if(!s)return{name:"",version:""};let i=(t=s.flatMap(e=>{let t=e.matchAll(T);return t?(0,h.oE)([...t].flat()).slice(1).filter(Boolean).map(e=>e.replace(/\+/g,"/")):[]}),r=[],t.forEach((e,s)=>{t.slice(s+1).includes(e)||r.push(e)}),r);if((0,h.Im)(i))return{name:"",version:""};let n=(0,h.HV)(i),l=RegExp(`(.*)(${(0,h.HV)(s)}).*`),a=e.replace(l,"$1$2").replace(/\/$/,"");return{name:n,version:a&&n&&a.match(RegExp(`${n}@([\\d.]+)`))?.flat().slice(1)?.[0]||""}},D=(e,t)=>{let r,s=e,i=k.test(e)||e.includes("\\")?{dirname:E,join:C}:{dirname:w,join:M};for(;"/"!==s&&!r&&i.dirname(s)!==s;)s=i.dirname(s),t&&(r=t(i.join(s,"package.json"))),t?r?.name||(r=void 0):r=I(e);if(r)return!t||r.name&&r.version?{...r,root:s}:D(i.dirname(s),t)},{relative:O}=p(),B=1;class P{id=B++;root;name;version;duplicates;_modules=[];_dependencies=[];_imported=[];constructor(e,t,r){this.name=e,this.root=t,this.version=r,this.duplicates=[]}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=O(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,void 0!==r.brotliSize&&(e.brotliSize=(e.brotliSize??0)+r.brotliSize),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}}}var R=r("oW");let{resolve:F}=p();class ${static fromModuleGraph(e,t,r){let s=new $(t);for(let t of e.getModules().filter(e=>e.kind===n.hp.JT.Normal)){if(!t.getChunks())continue;let e=s.getPackageByModule(t,r);e&&(s.addPackage(e),e.addModule(t))}for(let t of e.getDependencies()){let e=s.getPackageByFile(t.module.path),r=s.getPackageByFile(t.dependency.path);if(e&&r&&!e.isSame(r)){let i=new R.u(e,r,t);s.addDependency(i),e.addDependency(i)}}return s}_root;_dependencies=[];_packages=[];_pkgNameMap=new Map;_pkgFileMap=new Map;constructor(e){this._root=e}getPackages(){return this._packages.slice()}getPackageByModule(e,t){let{path:r,meta:s}=e,{_pkgFileMap:i}=this,n=e=>this.getPackageByData(e)??new P(e.name,e.root,e.version);if(i.has(r))return i.get(r);if(s.packageData){let t=n(s.packageData);return this.setDuplicates(e,t),i.set(r,t),t}let l=this.getPackageContainFile(r);if(l)return i.set(r,l),l;let a=D(r,t);if(!a)return;a.root.startsWith(".")&&(a.root=F(this._root,a.root));let o=n(a);return this.setDuplicates(e,o),this.addPackage(o),i.set(r,o),o}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){return this._pkgNameMap.get(e.name)?.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,z.R)(Array.from(this._pkgNameMap.values()).map(e=>(0,z.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())}}}},lv(e,t,r){let s=1;class i{static init(){s=1}id=s++;name;identifier;from;_variable;_sideEffects=[];constructor(e,t,r){this.name=e,this.identifier=t,this._variable=r}get isReExport(){return!!this.from}set variable(e){this._variable=e}get variable(){if(this._variable)return this._variable;if(!this.from||!1===this._variable){this._variable=!1;return}let e=this.getRecursiveExport()?.variable;return e||(this._variable=!1),e}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}}r.d(t,{D:()=>i})},Qs(e,t,r){let s=1;class i{static init(){s=1}id=s++;name;module;usedInfo;identifier;_exported;constructor(e,t,r,s){this.name=e,this.module=t,this.usedInfo=r,this.identifier=s}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}}r.d(t,{r:()=>i})},oW(e,t,r){let s=1;class i{id=s++;dependency;package;refDependency;constructor(e,t,r){this.package=e,this.dependency=t,this.refDependency=r}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}}}r.d(t,{u:()=>i})},vQ(e,t,r){r.d(t,{L2:()=>s,zG:()=>i});var s={};r.r(s),r.d(s,{w0:()=>b,zS:()=>g});var i={};r.r(i),r.d(i,{h7:()=>C});var n=r("CM"),l=r.n(n),a=r("CX"),o=r("Ts"),d=r("if"),c=r("H");let h=new Map,u=e=>{!c.env.DEBUG||h.has(e)||h.set(e,Date.now())},p=e=>{if(!c.env.DEBUG)return;let t=h.get(e);null!=t&&(console.debug(`Timer '${e}' ended: ${Date.now()-t}ms`),h.delete(e))},f={warn(e){console.warn(e)}};function m(e,t){let{gzip:r=!0,gzipLevel:s=d.E}=t;if(r&&e)try{return(0,d.e)(e,s)}catch{return}}function x(e,t){if(t.brotli&&e)try{return(0,a.O)(e,t.brotliLevel)}catch{return}}async function g(e,t,r,s){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Map,n=arguments.length>5?arguments[5]:void 0,a={brotli:s.brotli,brotliLevel:s.brotliLevel,gzip:s.gzip,gzipLevel:s.gzipLevel};if(!1===a.gzip)for(let t of e.getModules())t.setSize({gzipSize:0});for(let t of e.getModules())t.setSize({brotliSize:void 0});if(i.size>0){for(let[t,r]of(u("Start Parse bundle by sourcemap."),i.entries())){let s=e.getModuleByFile(t),i=m(r,a),n=x(r,a);for(let e of s)e?.setSize({parsedSize:r.length,gzipSize:i,brotliSize:n}),e?.setSource({parsedSource:r})}p("Start Parse bundle by sourcemap.")}if(s.parseBundle&&(n&&n.size>0||i.size<1)){u("Start Parse bundle by AST.");let{parseBundle:i=()=>({})}=s||{},d=t.getAssets(),h=e.getModules();if(r&&d.length){let t={},s={};for(let e of d){let a;if(n&&n.size>0&&!n.has(e.path))continue;let d=l().join(r,e.path);try{a=i(d,h)}catch(s){let{code:e="",message:t}=s,r="ENOENT"===e?"no such file":t;"1"===c.env.DEVTOOLS_NODE_DEV&&f.warn(`Error parsing bundle asset "${d}": ${r}`);continue}t[e.path]=(0,o.Up)(a,["src","runtimeSrc"]),Object.assign(s,a?.modules||{})}(0,o.Im)(t)?c.env.DEVTOOLS_DEV&&f.warn("\nNo bundles were parsed. Analyzer will show only original module sizes from stats file.\n"):function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t&&Object.entries(e).forEach(e=>{let[s,i]=e,n=t.getModuleByIdentifier(s??""),l=m(i?.content,r);n?.setSize({parsedSize:i?.size,brotliSize:x(i?.content,r),gzipSize:l}),n?.setSource({parsedSource:i?.content||""})})}(s,e,a)}p("Start Parse bundle by AST.")}if(a.brotli)for(let t of e.getModules()){if(void 0!==t.getSize().brotliSize)continue;let e=t.getSource();t.setSize({brotliSize:x(e.parsedSource||e.source,a)})}if(!1!==a.gzip)for(let t of e.getModules()){if(t.getSize().gzipSize>0)continue;let e=t.getSource(),r=m(e.parsedSource||e.source,a);void 0!==r&&t.setSize({gzipSize:r})}}var y=r("E9"),j=r("AF").hp;let v="assets by status";function b(e,t){let r=new y.ir;if(t.chunks?.forEach(e=>{let t=new y.AA(String(e.id),e.names?.join("")||e.files?.join("| ")||"",e.size,e.initial,e.entry);t.setParsedSize(0),r.addChunk(t)}),t.assets?.every(e=>e.type===v)?t.chunks?.forEach(t=>{let s=r.getChunkById(String(t.id));s&&t.files&&t.files.forEach(t=>{if(!r.getAssetByPath(t)){let{content:i=""}=e.get(t)||{},n=new y.Vd(t,0,[s],i);s.addAsset(n),r.addAsset(n)}})}):t.assets?.forEach(t=>{if(t.type===v)return;let s=t.chunks?.map(e=>r.getChunkById(String(e))).filter(e=>!!e)||[],{content:i=""}=e.get(t.name)||{},n=j.byteLength(i,"utf8"),l=t.size??n,a=new y.Vd(t.name,l,s,i);s.forEach(e=>e?.addAsset(a)),r.addAsset(a)}),t.entrypoints)for(let[e,s]of Object.entries(t.entrypoints)){let t=new y.$k(s.name||e);s.chunks?.forEach(e=>{let s=r.getChunkById(`${e}`);s&&t.addChunk(s)}),s.assets?.forEach(e=>{let s=r.getAssetByPath(e.name);s&&t.addAsset(s)}),r.addEntryPoint(t)}return r}r("Gu");var A=r("Y2");function S(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}var z=r("HV"),w=r("AF").hp;function M(e){if(!e.identifier||!(e?.nameForCondition||e.name)||e.identifier.startsWith("webpack/runtime")||e?.name?.startsWith("(webpack)"))return!0}function k(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 E(e){return".json"===l().extname(e).toLowerCase()}function C(e,t,r){var s;let{modules:i,chunks:n}=e;y.dh.init();let l=new y.dh,a=[],o=[];for(let e of(function e(t,r){t.forEach(t=>{"module"===t.type||void 0===t.type?r.push(t):"children"in t&&t.children&&e(t.children,r)})}(i??[],o),s=n??[],s?.forEach(e=>{e.modules?.length&&o.push(...e.modules.map(e=>({...e,identifier:e.identifier??e.moduleIdentifier,name:e.name??e.moduleName})))}),o??[])){if(M(e)||l.getModuleByIdentifier(e.identifier))continue;a.push(e);let s=!!(e.modules&&e.modules.length>0),i=new y.nV(e.identifier??e.moduleIdentifier,k(t,e),0===e.depth,s?A.hp.JT.Concatenation:A.hp.JT.Normal,e.id?String(e.id):void 0,e.layer);if(e.optimizationBailout&&e.optimizationBailout.forEach(e=>i.addBailoutReason(e)),e.issuerPath&&i.addIssuerPath(e.issuerPath),e.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&i.addChunk(t)}),l.addModule(i),e.source&&i.setSource({transformed:w.isBuffer(e.source)?e.source.toString():e.source}),"number"==typeof e.size){i.setSize({sourceSize:e.size,transformedSize:e.size});let t={sourceSize:e.size,transformedSize:e.size};E(i.path)&&(t.parsedSize=e.size),i.setSize(t)}for(let s of e.modules??[]){let n;if(M(s))continue;a.push(s);let o=s.identifier;if(n=l.getModuleByIdentifier(o)||(l.getModuleByIdentifier(o)??new y.nV(o,k(t,s),0===s.depth,A.hp.JT.Normal,s.id?String(s.id):void 0,s.layer)),s.optimizationBailout&&s.optimizationBailout.filter(e=>!e.includes("ModuleConcatenation bailout")).forEach(e=>n.addBailoutReason(e)),s.issuerPath&&n.addIssuerPath(s.issuerPath),s.chunks?.length?s.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&n.addChunk(t)}):e.chunks?.forEach(e=>{let t=r.getChunkById(String(e));t&&n.addChunk(t)}),s.source&&n.setSource({transformed:w.isBuffer(s.source)?s.source.toString():s.source}),"number"==typeof s.size){n.setSize({sourceSize:s.size,transformedSize:s.size});let e={sourceSize:s.size,transformedSize:s.size};E(n.path)&&(e.parsedSize=s.size),n.setSize(e)}l.addModule(n),i.addNormalModule(n)}}for(let e of a){let t=l.getModuleByIdentifier(e.identifier??"");if(!t)continue;let r=(e.reasons??[]).filter(S).filter(e=>!!(e.moduleIdentifier&&e.userRequest));for(let s of((e.reasons??[]).filter(e=>"from origin"===e.type).forEach(e=>e?.children?.forEach(t=>r.push({...e,...t,children:void 0}))),r)){let e=s.userRequest,r=l.getModuleByIdentifier(s.moduleIdentifier);if(!r)continue;if(!r.getDependencyByRequest(e)){let i=r.addDependency(e,t,function(e){let{type:t}=e;return t?t.includes("harmony")||"esm import"===t?A.hp.yV.ImportStatement:t.includes("cjs")?A.hp.yV.RequireCall:t.includes("import()")?A.hp.yV.DynamicImport:t.includes("amd")?A.hp.yV.AMDRequire:A.hp.yV.Unknown:A.hp.yV.Unknown}(s));i&&l.addDependency(i)}let i=r.getDependencyByRequest(e);if(i&&s?.loc){let e=(0,z.b)(s.loc);e&&i.addStatement(new y.WZ(r,{transformed:e}))}}}let d=new Map;return l.getModules().forEach(e=>{e.issuerPath&&e.issuerPath.forEach(e=>{let t=d.get(e.identifier);!t&&(t=l.getModuleByIdentifier(e.identifier))&&d.set(e.identifier,t),t&&(e.moduleId=t.id)})}),l}r("xS")},HV(e,t,r){function s(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}r.d(t,{b:()=>s})},Y1(e,t,r){var s,i,n,l=((s={}).BundleDiffFiles="__bundle_files__",s.ManifestFile="manifest",s.EnableRoutes="enableRoutes",s),a=((i={}).Home="/",i.Overall="/overall",i.LoaderOverall="/loaders/overall",i.LoaderAnalysis="/loaders/analysis",i.ModuleResolve="/module/resolve",i.Plugins="/plugins",i.BundleSize="/bundle/size",i.ModuleAnalyze="/module/analyze",i.TreeShaking="/treeshaking",i.BundleDiff="/resources/bundle/diff",i.RuleIndex="/resources/rules",i.Uploader="/resources/uploader",i.EmoCheck="/emo/check",i),o=((n={}).Equal="-",n.Up="UP",n.Down="DOWN",n);r.d(t,{EH:()=>a,H9:()=>l,Ol:()=>o})},ff(e,t,r){r.d(t,{gh:()=>m,bW:()=>p,y1:()=>s.y,jr:()=>s.j});var s=r("Q4"),i=r("mQ"),n=r("SY"),l=r("vt"),a=r("gs"),o=r("y0"),d=r("pr"),c=r("um"),h=r("Qe"),u=r("hl");let p={[i.a]:i.i,[n.a]:n.i,[l.a]:l.i,[a.a]:a.i,[o.a]:o.i,[d.a]:d.i,[c.a]:c.i,[h.a]:h.i,[u.a]:u.i};var f,m=((f={}).UrlQueryForErrorCode="code",f)}},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,r)=>{var s=(t,r)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,[r]:t[s]})};s(t,"get"),s(r,"value")},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="qz",s={qz: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.rspackChunk_rsdoctor_client=self.rspackChunk_rsdoctor_client||[]).forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n));var d=o.O(void 0,["8","c","o","u","s","w","3","n"],()=>o("V"));d=o.O(d)})();
|