@rsdoctor/client 1.6.1 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/diff.html +1 -1
  2. package/dist/index.html +1 -1
  3. package/dist/resource/css/907.6e95b0049a.css +1 -0
  4. package/dist/resource/js/533.e56eaf911f.js +1 -0
  5. package/dist/resource/js/540.6a0046eda5.js +399 -0
  6. package/dist/resource/js/760.028ee920da.js +1 -0
  7. package/dist/resource/js/907.7091b9e220.js +112 -0
  8. package/dist/resource/js/ant-design-0.4653249cbc.js +81 -0
  9. package/dist/resource/js/{ant-design-1.6508eaabf7.js → ant-design-1.1695063c62.js} +22 -22
  10. package/dist/resource/js/ant-design-icons.7b432ca17d.js +57 -0
  11. package/dist/resource/js/diff.41096a3b71.js +57 -0
  12. package/dist/resource/js/index.3de7da7cae.js +91 -0
  13. package/dist/resource/js/rc.806d75fd9c.js +1 -0
  14. package/dist/resource/js/react.a45650f262.js +1 -0
  15. package/dist/tsconfig.tsbuildinfo +1 -1
  16. package/package.json +31 -9
  17. package/dist/config/constants.d.cts +0 -8
  18. package/dist/config/constants.d.ts +0 -8
  19. package/dist/resource/css/226.bfbdbfd728.css +0 -1
  20. package/dist/resource/js/140.b467c9d598.js +0 -1
  21. package/dist/resource/js/226.b4954a9cff.js +0 -112
  22. package/dist/resource/js/412.3f86aaed12.js +0 -399
  23. package/dist/resource/js/864.3ff7582d41.js +0 -19
  24. package/dist/resource/js/ant-design-0.950b3b9170.js +0 -81
  25. package/dist/resource/js/ant-design-icons.5234e97504.js +0 -57
  26. package/dist/resource/js/diff.e2c900a07a.js +0 -57
  27. package/dist/resource/js/index.7997b81b6e.js +0 -91
  28. package/dist/resource/js/rc.28ae4416c7.js +0 -1
  29. package/dist/resource/js/react.be46a29bc2.js +0 -1
  30. package/dist/src/App.d.cts +0 -3
  31. package/dist/src/App.d.ts +0 -3
  32. package/dist/src/DiffApp.d.cts +0 -3
  33. package/dist/src/DiffApp.d.ts +0 -3
  34. package/dist/src/DiffRouter.d.cts +0 -2
  35. package/dist/src/DiffRouter.d.ts +0 -2
  36. package/dist/src/components/BaseApp.d.cts +0 -8
  37. package/dist/src/components/BaseApp.d.ts +0 -8
  38. package/dist/src/diff.d.cts +0 -2
  39. package/dist/src/diff.d.ts +0 -2
  40. package/dist/src/index.d.cts +0 -2
  41. package/dist/src/index.d.ts +0 -2
  42. package/dist/src/router.d.cts +0 -2
  43. package/dist/src/router.d.ts +0 -2
@@ -0,0 +1,112 @@
1
+ "use strict";(self.rspackChunk_rsdoctor_client=self.rspackChunk_rsdoctor_client||[]).push([[907],{43197(){},75532(e,t){t.A={container:"container-t1WME9",badgeContainer:"badgeContainer-K7EgOu"}},71127(){},11908(){},16530(e,t){t.A={title:"title-BZ9xk1"}},50815(e,t){t.A={text:"text-QI6k9S"}},60880(e,t){t.A={loaderAnalysis:"loaderAnalysis-h6mG3n",dividerDiv:"dividerDiv-hrfVKQ",divider:"divider-hnPRxv",box:"box-lFdvrG",keyword:"keyword-UO64w1",textBox:"textBox-sVZZ_A",text:"text-omPvlh",space:"space-qT5CaN",executions:"executions-uZxmQC",timeline:"timeline-wMFXyU",loader:"loader-PHR4ca",selected:"selected-wUMOH3"}},4937(){},20785(){},84803(){},35479(){},67322(){},89077(e,t,r){var s=r(64558);r(1102),t.A=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{d:"M22.106 5.68 12.5.135a1 1 0 0 0-.998 0L1.893 5.68a.84.84 0 0 0-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a1 1 0 0 0 .998 0l9.608-5.547a.84.84 0 0 0 .42-.727V6.407a.84.84 0 0 0-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 0 0-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514"})})},56059(e,t,r){var s=r(64558);r(1102),t.A=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{fill:"#32F08C",d:"M24 20.541H3.428v-3.426H0V3.4h24v17.14zM3.428 17.115h17.144V6.827H3.428zm8.573-5.196-2.425 2.424-2.424-2.424 2.424-2.424zm6.857-.001-2.424 2.423-2.425-2.423 2.425-2.425z"})})},8137(e,t,r){var s=r(64558);r(1102),t.A=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:100,fill:"none",viewBox:"0 0 100 100",...e,children:[(0,s.jsx)("mask",{id:"vscode_svg__a",width:100,height:100,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse",children:(0,s.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M70.912 99.317a6.22 6.22 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.23 6.23 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.16 4.16 0 0 0-5.318.236l-5.506 5.009a4.17 4.17 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.17 4.17 0 0 0 .004 6.162l5.506 5.01a4.16 4.16 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.2 6.2 0 0 0 2.143 1.4M75.015 27.3 45.11 50l29.906 22.701z",clipRule:"evenodd"})}),(0,s.jsxs)("g",{mask:"url(#vscode_svg__a)",children:[(0,s.jsx)("path",{fill:"#0065A9",d:"M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.17 4.17 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63"}),(0,s.jsx)("g",{filter:"url(#vscode_svg__b)",children:(0,s.jsx)("path",{fill:"#007ACC",d:"m96.461 89.204-20.604 9.92a6.23 6.23 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.17 4.17 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63"})}),(0,s.jsx)("g",{filter:"url(#vscode_svg__c)",children:(0,s.jsx)("path",{fill:"#1F9CF0",d:"M75.858 99.126a6.23 6.23 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.23 6.23 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633z"})}),(0,s.jsx)("path",{fill:"url(#vscode_svg__d)",fillRule:"evenodd",d:"M70.851 99.317a6.22 6.22 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.23 6.23 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.16 4.16 0 0 0-5.317.236l-5.507 5.009a4.17 4.17 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.17 4.17 0 0 0 .004 6.162l5.507 5.009a4.16 4.16 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.2 6.2 0 0 0 2.143 1.4M74.954 27.3 45.048 50l29.906 22.701z",clipRule:"evenodd",opacity:.25,style:{mixBlendMode:"overlay"}})]}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("filter",{id:"vscode_svg__b",width:116.727,height:92.246,x:-8.394,y:15.829,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,s.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,s.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,s.jsx)("feOffset",{}),(0,s.jsx)("feGaussianBlur",{stdDeviation:4.167}),(0,s.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,s.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"overlay",result:"effect1_dropShadow"}),(0,s.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,s.jsxs)("filter",{id:"vscode_svg__c",width:47.917,height:116.151,x:60.417,y:-8.076,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,s.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,s.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,s.jsx)("feOffset",{}),(0,s.jsx)("feGaussianBlur",{stdDeviation:4.167}),(0,s.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,s.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"overlay",result:"effect1_dropShadow"}),(0,s.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,s.jsxs)("linearGradient",{id:"vscode_svg__d",x1:49.939,x2:49.939,y1:.258,y2:99.742,gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#fff"}),(0,s.jsx)("stop",{offset:1,stopColor:"#fff",stopOpacity:0})]})]})]})},9926(e,t,r){r.d(t,{ZZ:()=>E,aM:()=>M,rU:()=>C});var s=r(64558),n=r(80844),i=r(63598),l=r(7802),a=r(66482),o=r(74374),d=r(81320),c=r(41648),u=r(85326),h=r(6755),p=r(78593),m=r(54594),f=r(53919),x=r(67782),g=r(82728),y=r(64345),j=r(91362),v=r(36033),b=r(68062),A=r(76174);r(15061);var w=r(8857),S=r(41611),k=r(87826);let M=e=>{let{data:t}=e;return(0,s.jsx)(n.A,{gutter:20,wrap:!1,align:"top",children:(0,s.jsx)(i.A,{style:{height:"100%",width:"100%"},children:t.length?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.A,{style:{marginTop:"20px"},children:t.map((e,r)=>{let{dependency:n,module:i,relativePath:o}=e,{statements:d}=n,{start:c}=d?.[0]?.position?i.isPreferSource?d[0].position.source:d[0].position.transformed:{start:{line:0,column:0}},u=`${o}:${c.line}:${c.column||1}`;return(0,s.jsx)(l.A.Item,{style:{cursor:"default"},children:(0,s.jsxs)(a.A.Text,{children:[(0,s.jsxs)("div",{className:"filePath-UF3inH",children:[u,(0,s.jsx)(a.A.Paragraph,{copyable:{text:o},style:{position:"relative",top:"7px"}})]}),r!==t.length-1?(0,s.jsx)(g.A,{className:"arrow-VrZOco"}):null]})},u)})})}):(0,s.jsx)(o.A,{description:"This package no dependencies"})})})},C=(0,S.eN)({Component:M,api:k.hp.uT.n.GetPackageRelationAlertDetails,responsePropName:"data"}),E=e=>{let{data:t,getPackageRelationContentComponent:r}=e,{level:n,code:i,packages:l}=t,o=(0,v.nN)(i,t.link),g=(0,x.xu)(l,e=>e.targetSize.sourceSize),S=(0,v.Xq)(g),{xs:M,lg:C,xxl:E}=d.Ay.useBreakpoint(),{name:T}=l.find(e=>!!e.target.name).target,N=l.map(e=>e.target.version);return(0,s.jsx)(c.A,{showIcon:!M,message:(0,s.jsxs)(u.A,{wrap:!0,split:M?null:(0,s.jsx)(h.A,{type:"vertical"}),align:"center",children:[(0,s.jsxs)(u.A,{wrap:!1,children:[(0,s.jsx)(a.A.Text,{code:!0,strong:!0,onClick:o,style:{cursor:"pointer"},children:(0,s.jsx)("a",{children:i})}),(0,s.jsx)(a.A.Text,{strong:!0,children:k.jO.bW[i]?.title||t.title})]}),(0,s.jsxs)(a.A.Paragraph,{ellipsis:{rows:1},style:{marginBottom:0},children:[(0,s.jsx)(a.A.Text,{strong:!0,code:!0,children:T}),(0,s.jsxs)(a.A.Text,{strong:!0,children:[" ",t.packages.length]}),(0,s.jsx)(a.A.Text,{children:" versions was found"})]}),(0,s.jsx)(w.Ex,{label:"total size",value:S,type:"error",tooltip:`total size of ${t.packages.length} versions is ${S}`})]}),description:(0,s.jsx)(u.A,{direction:"vertical",wrap:!1,children:t.packages.map(e=>{let{target:t,targetSize:r}=e,n=(0,v.Xq)(r.sourceSize),i=r.parsedSize?(0,v.Xq)(r.parsedSize):null,l=`${t.name}@${t.version}`;return(0,s.jsxs)(u.A,{style:{wordBreak:"break-all"},align:"center",split:M?null:(0,s.jsx)(h.A,{type:"vertical"}),wrap:!0,children:[(0,s.jsxs)(u.A,{wrap:!1,children:[(0,s.jsx)(a.A.Text,{style:{marginLeft:4},children:"└"}),(0,s.jsx)(w.Ex,{label:t.name,value:`v${t.version}`,tooltip:l})]}),(0,s.jsxs)(u.A,{children:[(0,s.jsx)(w.Ex,{label:(0,s.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,s.jsx)(y.A,{})]}),value:n,tooltip:`The bundle size of "${l}" is ${n}, this is source size.`,type:"error"}),(0,s.jsx)(w.Ex,{label:"Bundled size",value:i||"CONCATENATED",tooltip:`The bundle size of "${l}" is ${n}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"})]}),(0,s.jsx)(a.A.Paragraph,{style:{marginBottom:0,width:E?"40rem":C?"30rem":"20rem"},copyable:{text:t.root},ellipsis:{rows:1,expandable:!0,symbol:(0,s.jsx)(j.A,{}),tooltip:t.root},code:!0,children:t.root})]},t.version)})}),type:"warn"===n?"info":n,action:(0,s.jsxs)(s.Fragment,{children:[l&&l.length>0?(0,s.jsx)(b.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,s.jsxs)(u.A,{direction:"vertical",className:"alert-space",children:[(0,s.jsxs)(u.A,{style:{marginBottom:10},children:[(0,s.jsx)(A.h,{text:T,upperFirst:!1}),(0,s.jsx)(a.A.Text,{strong:!0,children:N.length}),(0,s.jsx)(a.A.Text,{children:" versions was found: "}),N.map(e=>(0,s.jsx)(a.A.Text,{strong:!0,code:!0,children:e},e))]}),(0,s.jsx)(p.A,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:N[0],items:l.map(e=>{let{target:n,targetSize:i}=e;return{label:(0,s.jsxs)(u.A,{children:[(0,s.jsx)(a.A.Text,{children:`${T}@${n.version}`}),(0,s.jsx)(m.A,{color:"#e17055",children:(0,v.Xq)(i.sourceSize)})]}),key:`${n.root}${n.name}${n.version}`,children:r({data:t,package:e})}})})]})}):null,(0,s.jsx)(h.A,{type:"vertical"}),(0,s.jsx)(f.Ay,{type:"link",onClick:o,size:"small",icon:(0,s.jsx)(y.A,{})})]})})}},1312(e,t,r){r.d(t,{J:()=>ep});var s=r(64558),n=r(54594),i=r(74374),l=r(78593),a=r(1102),o=r(44506),d=r(66482),c=r(53919),u=r(61108),h=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:"#FFF2E8",rx:2}),(0,s.jsx)("path",{fill:"#FA541C",d:"M13.21 4.026a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 7.342a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 10.658a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5z"})]}),p=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:"#F6FFED",rx:2}),(0,s.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.586 6.172a.853.853 0 0 0-.853.854v5.12c0 .472.382.854.853.854h6.828a.853.853 0 0 0 .853-.854v-5.12a.853.853 0 0 0-.853-.854H9.707V7.88a1.707 1.707 0 1 1-3.414 0V6.172z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#52C41A",d:"M7.147 4.466a.853.853 0 1 1 1.707 0V7.88a.853.853 0 0 1-1.707 0z"}),(0,s.jsx)("path",{fill:"#52C41A",d:"m8 3 2.217 2.304H5.783z"})]}),m=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:"#FFF1F0",rx:2}),(0,s.jsx)("path",{fill:"#FF5658",fillRule:"evenodd",d:"M13 8A5 5 0 1 1 3 8a5 5 0 0 1 10 0M9.768 6.232a.5.5 0 0 1 0 .707L8.708 8l1.06 1.06a.5.5 0 0 1-.707.708L8 8.708l-1.062 1.06a.5.5 0 0 1-.707-.707L7.293 8l-1.06-1.062a.5.5 0 0 1 .706-.707L8 7.293l1.06-1.06a.5.5 0 0 1 .708 0",clipRule:"evenodd"})]}),f=r(36033),x="box-yCgd0f",g="title-OR484p",y="content-iOwxYc";let{Text:j}=d.A,v=e=>{let{data:t}=e;return t.map(e=>{let{code:t,link:r,error:n}=e,{source:i,output:l}=n||{},a=i?.path?`${i?.path}:${i?.line}:${i?.column}`:null,o=l?.path?`${l?.path}:${l?.line}:${l?.column}`:`There's no source map for this error. Possible reasons are as follows:
2
+ 1. It might come from a third-party library without source map.
3
+ 2. If this is your business source code, source map should be enabled in your build config.
4
+ `,d=(0,f.nN)(t,r);return(0,s.jsxs)("div",{className:"container-iQTvf7",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:g,children:"Source"}),(0,s.jsxs)("div",{className:x,children:[(0,s.jsx)(u.A,{component:h}),(0,s.jsx)(j,{ellipsis:{tooltip:a},className:`${y} e2e-ecma-source`,children:a})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:g,children:"Output"}),(0,s.jsxs)("div",{className:x,children:[(0,s.jsx)(u.A,{component:p}),(0,s.jsx)(j,{ellipsis:{tooltip:o},className:`${y} e2e-ecma-output`,children:o})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:g,children:"Error"}),(0,s.jsxs)("div",{className:x,children:[(0,s.jsx)(u.A,{component:m}),(0,s.jsx)(j,{ellipsis:{tooltip:e.description},className:`${y} e2e-ecma-error`,children:e.description})]})]}),(0,s.jsx)(c.Ay,{onClick:d,type:"link",children:"more"})]})})};var b=r(88557),A=r(50162),w=r(6755),S=r(85326),k=r(55552),M=r(67782),C=r(68062),E=r(76174);r(15061);var T=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)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M11.377 5.186h1.488L10.973 3H5.027L3.135 5.186h1.488l.87-1.005h5.015z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M3.676 4.82h8.648c.299 0 .54.243.54.545v7.09a.543.543 0 0 1-.54.545H3.676a.543.543 0 0 1-.54-.545v-7.09c0-.302.241-.546.54-.546m2.702 1.77a.54.54 0 0 0 0 1.082h3.244a.54.54 0 1 0 0-1.081z",clipRule:"evenodd"})]}),N=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)("path",{fill:"#F2793D",d:"M3 7V5c0-1.105 2.239-2 5-2s5 .895 5 2v2c0 1.105-2.239 2-5 2s-5-.895-5-2"}),(0,s.jsx)("path",{fill:"#F2793D",d:"M8 10c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2V8c0 1.105 2.239 2 5 2"}),(0,s.jsx)("path",{fill:"#F2793D",d:"M8 12c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2v-1c0 1.105 2.239 2 5 2"})]}),D=r(38163),z=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,s.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,s.jsx)("g",{clipPath:"url(#version_svg__a)",children:(0,s.jsx)("path",{fill:"#3874F6",d:"M13.438 9.875a.6.6 0 0 0-.216.043h-.002l-.002.002L8 12.079l-5.217-2.16H2.78l-.002-.001a.562.562 0 0 0-.43 1.039l5.432 2.248.002.001.003.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0-.216-1.082M2.348 6.082 7.78 8.33l.003.001.002.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0 0-1.04L8.22 2.796l-.002-.001-.003-.001a.56.56 0 0 0-.43 0h-.003l-.002.002-5.433 2.248a.563.563 0 0 0 0 1.039m11.09 1.355a.6.6 0 0 0-.216.043l-.002.001-.002.001L8 9.642l-5.217-2.16H2.78l-.002-.002a.563.563 0 0 0-.43 1.04l5.432 2.248h.002l.003.002a.56.56 0 0 0 .43 0l.003-.001.002-.001 5.433-2.248a.563.563 0 0 0-.216-1.083"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"version_svg__a",children:(0,s.jsx)("path",{fill:"#fff",d:"M2 2h12v12H2z"})})})]}),L="collapseContainer-RlFMpI",I="collapseChild-WWZD3z",_="attribute-bDSZ0z",R="iconContainer-qPzCrR",B="data-po89g7",P="pkgName-vA16cZ",O="tag-lJs0Ro",F=r(8137),$=r(89077),G=r(56059),q=r(91326);let W=e=>{let{title:t,description:r,extra:n}=e;return(0,s.jsxs)("div",{className:"label-XufLCq",children:[(0,s.jsxs)("div",{className:"labelContent-nkrbEg",children:[(0,s.jsx)("div",{children:t}),(0,s.jsx)("div",{children:r})]}),(0,s.jsx)("div",{children:n})]})},V=e=>{let{file:t}=e;return(0,s.jsxs)(S.A,{size:4,style:{marginLeft:8,flexShrink:0,marginTop:5},children:[(0,s.jsx)(A.A,{title:"Open in VSCode",children:(0,s.jsx)(F.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.jk)({file:t})}})}),(0,s.jsx)(A.A,{title:"Open in Cursor",children:(0,s.jsx)($.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.L2)({file:t})}})}),(0,s.jsx)(A.A,{title:"Open in Trae",children:(0,s.jsx)(G.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.bX)({file:t})}})})]})},{Paragraph:U,Text:H}=d.A,{innerWidth:K}=window,J=e=>{let{data:t,extraData:r}=e,i=t.map(e=>{let{packages:t}=e;return{totalSize:(0,M.xu)(t,e=>e.targetSize.sourceSize),data:e}}).sort((e,t)=>t.totalSize-e.totalSize).map(e=>{let{data:t,totalSize:i}=e,{packages:a}=t,o=(0,f.Xq)(i),{name:c}=a.find(e=>!!e.target.name).target,h=a.map(e=>e.target.version);return{key:c,label:(0,s.jsx)(W,{title:(0,s.jsx)(n.A,{className:O,children:(0,s.jsx)("span",{className:P,children:c})}),description:`${a.length} versions was found`,extra:(0,s.jsxs)("div",{className:"extraContainer-Zf1u14",children:[(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)(u.A,{style:{fontSize:"18px"},component:D.A}),(0,s.jsx)("span",{className:B,children:o})]}),a&&a.length>0?(0,s.jsx)(C.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,s.jsxs)(S.A,{direction:"vertical",className:"alert-space",style:{width:"100%"},children:[(0,s.jsxs)(S.A,{style:{marginBottom:10,width:"100%"},children:[(0,s.jsx)(E.h,{text:(0,s.jsx)(n.A,{className:O,children:c}),upperFirst:!1}),(0,s.jsx)(d.A.Text,{strong:!0,children:h.length}),(0,s.jsx)(d.A.Text,{children:" versions found"})]}),(0,s.jsx)(l.A,{size:"middle",items:a.map(e=>{let{target:i,targetSize:l}=e;return{label:(0,s.jsxs)(S.A,{className:"drawerLabelTitle-bDwhFt",children:[(0,s.jsxs)("div",{children:["v",i.version]}),(0,s.jsx)(n.A,{className:"drawerLabelSize-gzchzs",children:(0,f.Xq)(l.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:r.getPackageRelationContentComponent({data:t,package:e})}})})]})}):null]})}),children:(0,s.jsx)(()=>a.map((e,t)=>{let r=e.target.version,n=e.target.root,i=(0,f.Xq)(e.targetSize.sourceSize),l=e.targetSize.parsedSize?(0,f.Xq)(e.targetSize.parsedSize):null;return(0,s.jsxs)("div",{className:L,children:[(0,s.jsx)(b.h,{title:(0,s.jsx)(H,{style:{width:K>1500?900:700},ellipsis:{tooltip:n},children:n}),description:(0,s.jsxs)("div",{className:I,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:_,children:"Version"}),(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)(u.A,{style:{fontSize:"18px"},component:z}),(0,s.jsxs)("span",{className:B,children:["v",r]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:_,children:"Source size"}),(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)(u.A,{style:{fontSize:"18px"},component:N}),(0,s.jsx)("span",{className:B,children:i})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:_,children:"Bundle size"}),(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)(u.A,{style:{fontSize:"18px"},component:T}),(0,s.jsx)(A.A,{title:`The bundle size of "${c}" is ${i}, this is after bundled, concatenated module cannot get bundled size. `,children:(0,s.jsx)("span",{className:B,children:l||"CONCATENATED"})})]})]})]}),icon:(0,s.jsx)(U,{style:{position:"relative",top:"-10px"},copyable:{text:n}})}),t!==a.length-1?(0,s.jsx)(w.A,{style:{margin:"10px 0"}}):null]})}),{})}});return(0,s.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:["E1001"],items:i})},Y=e=>{let{data:t,showCode:r}=e;return t.map(e=>{let{code:t,link:n,description:i}=e,l=(0,f.nN)(t,n);return(0,s.jsx)(b.A,{style:{background:"#fff"},description:(0,s.jsxs)("div",{className:"description-h4sYv3",children:[r?(0,s.jsx)("div",{className:"code-ocfe7Q",children:t}):null,(0,s.jsx)("div",{children:i||""})]}),icon:(0,s.jsx)(c.Ay,{onClick:l,type:"link",children:"more"})})})},{Text:Z}=d.A,{innerWidth:X}=window,Q=e=>{let{data:t}=e,r=t.map(e=>{let{package:t,chunks:r}=e;return{key:`${t.name}@${t.version}`,label:(0,s.jsx)(W,{title:(0,s.jsx)(n.A,{className:O,children:(0,s.jsx)("span",{className:P,children:`${t.name}@${t.version}`})}),description:"has duplicates bundled into multiple chunks."}),children:(0,s.jsx)(()=>r.map(e=>{let{chunks:t,module:r}=e;return(0,s.jsx)("div",{className:L,children:(0,s.jsx)(b.h,{title:(0,s.jsxs)(S.A,{children:[(0,s.jsx)(u.A,{style:{fontSize:"18px"},component:D.A}),(0,s.jsxs)(Z,{style:{width:X>1500?900:700},children:["Module:"," ",(0,s.jsx)(Z,{type:"secondary",style:{fontSize:12,fontWeight:300},children:r.path})]})]}),description:(0,s.jsx)("div",{className:I,children:t.map(e=>(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsx)("div",{className:_,children:"Chunk"}),(0,s.jsx)("div",{className:R,children:(0,s.jsx)("span",{className:B,children:e.name})})]}))})})})}),{})}});return(0,s.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:["E1005"],items:r})};var ee=r(35784);let{Text:et}=d.A,{innerWidth:er}=window,es=e=>{let{data:t,extraData:r}=e,{cwd:i}=r,l=t.map(e=>{let{module:t,initialChunks:r,asyncChunks:l}=e,a=(0,ee.Zb)(t.path,i);return{key:a,label:(0,s.jsx)(W,{title:(0,s.jsx)(n.A,{className:O,children:(0,s.jsx)("span",{className:P,children:a})}),description:"is included in both initial and async chunks."}),children:(0,s.jsx)(()=>(0,s.jsx)("div",{className:L,children:(0,s.jsx)(b.h,{title:(0,s.jsxs)(S.A,{children:[(0,s.jsx)(u.A,{style:{fontSize:"18px"},component:D.A}),(0,s.jsxs)(et,{style:{width:er>1500?900:700},children:["Module:"," ",(0,s.jsx)(et,{type:"secondary",style:{fontSize:12,fontWeight:300},children:a})]})]}),description:(0,s.jsxs)("div",{className:I,children:[r.length>0&&(0,s.jsxs)("div",{style:{marginBottom:16},children:[(0,s.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Initial Chunks:"}),r.map(e=>(0,s.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,s.jsx)("div",{className:_,children:"Chunk"}),(0,s.jsx)("div",{className:R,children:(0,s.jsx)("span",{className:B,children:e.name||`chunk-${e.id}`})})]},e.id))]}),l.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Async Chunks:"}),l.map(e=>(0,s.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,s.jsx)("div",{className:_,children:"Chunk"}),(0,s.jsx)("div",{className:R,children:(0,s.jsx)("span",{className:B,children:e.name||`(no chunk name, ChunkId: ${e.id})`})})]},e.id))]})]})})}),{})}});return(0,s.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:l.map(e=>e.key),items:l})},{Text:en}=d.A,{innerWidth:ei}=window,el=e=>{let{data:t,extraData:r}=e,{cwd:i}=r,l=t.map(e=>{let{module:t,connections:r}=e,l=(0,ee.Zb)(t.path,i);return{key:l,label:(0,s.jsx)(W,{title:(0,s.jsx)(S.A,{size:4,align:"center",children:(0,s.jsx)(n.A,{className:O,children:(0,s.jsx)("span",{className:P,children:l})})}),description:`is only imported for its side effects by ${new Set(r.map(e=>e.originModule)).size} importer(s).`}),children:(0,s.jsx)(()=>(0,s.jsx)("div",{className:L,children:(0,s.jsx)(b.h,{title:(0,s.jsxs)(S.A,{align:"center",children:[(0,s.jsx)(u.A,{style:{fontSize:"18px"},component:D.A}),(0,s.jsxs)(en,{style:{width:ei>1500?900:700},children:["Module:"," ",(0,s.jsx)(en,{type:"secondary",style:{fontSize:12,fontWeight:300},children:l})]}),(0,s.jsx)(V,{file:t.path})]}),description:(0,s.jsxs)("div",{className:I,children:[(0,s.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Side-Effects-Only Importers:"}),r.map((e,t)=>(0,s.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,s.jsx)("div",{className:_,children:"Import"}),(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)("span",{className:B,children:e.userRequest}),(0,s.jsx)(n.A,{className:O,style:{marginLeft:8,fontSize:11},children:e.dependencyType})]})]},t))]})})}),{})}});return(0,s.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:l.map(e=>e.key),items:l})},{innerWidth:ea}=window,eo=e=>{let{data:t,extraData:r}=e,{cwd:i}=r,l=new Map;for(let e of t){let t=e.requiredModule.path;l.has(t)||l.set(t,{requiredPath:t,issuers:[]}),l.get(t).issuers.push({issuerPath:e.issuerModule.path,request:e.request})}let a=Array.from(l.values()).map(e=>{let t=(0,ee.Zb)(e.requiredPath,i),r=e.issuers.length;return{key:t,label:(0,s.jsx)(W,{title:(0,s.jsx)(S.A,{size:4,align:"center",children:(0,s.jsx)(n.A,{className:O,children:(0,s.jsx)("span",{className:P,children:t})})}),description:`cannot be tree-shaken — required via CJS \`require()\` by ${r} caller(s).`}),children:(0,s.jsx)(()=>(0,s.jsx)("div",{className:L,children:(0,s.jsx)(b.h,{title:(0,s.jsxs)(S.A,{align:"center",children:[(0,s.jsx)("span",{style:{fontSize:13,fontWeight:500},children:"Required Module:"}),(0,s.jsx)("span",{style:{fontSize:12,color:"var(--text-color-secondary)",fontWeight:300,maxWidth:ea>1500?900:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})]}),description:(0,s.jsxs)("div",{className:I,children:[(0,s.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"CJS Require Callers:"}),e.issuers.map((e,t)=>(0,s.jsxs)("div",{style:{display:"flex",marginBottom:4,alignItems:"center"},children:[(0,s.jsx)("div",{className:_,children:"require"}),(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)("span",{className:B,children:(0,ee.Zb)(e.issuerPath,i)}),(0,s.jsx)(n.A,{className:O,style:{marginLeft:8,fontSize:11,fontFamily:"Menlo"},children:`require('${e.request}')`}),(0,s.jsx)(V,{file:e.issuerPath})]})]},t))]})})}),{})}});return(0,s.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:a.map(e=>e.key),items:a})};function ed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(e.length<=t)return e;let r=Math.floor((t-3)/2);return`${e.slice(0,r)}...${e.slice(-r)}`}let{Text:ec}=d.A,eu=e=>{let{data:t,extraData:r}=e,{cwd:i}=r,l=t.map(e=>{let{packageName:t,packageVersion:r,esmEntry:l,resolvedModule:a,issuers:o}=e,d=(0,ee.Zb)(a.path,i),c=(0,ee.Zb)(l,i);return{key:`${t}::${a.path}`,label:(0,s.jsx)(W,{title:(0,s.jsx)(S.A,{size:4,align:"center",children:(0,s.jsx)(n.A,{className:O,style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,s.jsx)("span",{className:P,children:`${t}@${r}`})})}),description:`has an ESM entry but was resolved to CJS by ${o.length} importer(s).`}),children:(0,s.jsx)(()=>(0,s.jsx)("div",{className:L,children:(0,s.jsx)(b.h,{title:(0,s.jsxs)(S.A,{align:"center",wrap:!0,children:[(0,s.jsx)(ec,{strong:!0,style:{fontSize:13},children:"Package:"}),(0,s.jsx)(n.A,{className:O,style:{fontFamily:"Menlo"},children:`${t}@${r}`})]}),description:(0,s.jsxs)("div",{className:I,style:{flexDirection:"column",paddingTop:16},children:[(0,s.jsxs)("div",{style:{display:"flex",marginBottom:8,alignItems:"center"},children:[(0,s.jsx)("div",{className:_,style:{color:"#52c41a",minWidth:100},children:(0,s.jsx)(n.A,{style:{backgroundColor:"#f6ffed",borderColor:"#b7eb8f",color:"#389e0d",borderRadius:"2px"},children:"ESM Entry"})}),(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)(A.A,{title:c,children:(0,s.jsx)("span",{className:B,children:ed(c)})}),(0,s.jsx)(n.A,{style:{marginLeft:8,backgroundColor:"#f6ffed",borderColor:"#b7eb8f",color:"#389e0d",borderRadius:"2px",fontSize:11},children:"declared in package.json"})]})]}),(0,s.jsxs)("div",{style:{display:"flex",marginBottom:16,alignItems:"center"},children:[(0,s.jsx)("div",{className:_,style:{color:"#ff4d4f",minWidth:100},children:(0,s.jsx)(n.A,{style:{backgroundColor:"#fff7e6",borderColor:"#ffd591",color:"#d46b08",borderRadius:"2px"},children:"CJS Resolved"})}),(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)(A.A,{title:d,children:(0,s.jsx)("span",{className:B,children:ed(d)})}),(0,s.jsx)(n.A,{style:{marginLeft:8,backgroundColor:"#fff1f0",borderColor:"#ffa39e",color:"#cf1322",borderRadius:"2px",fontSize:11},children:"actually bundled"})]})]}),(0,s.jsx)(k.A,{size:"small",ghost:!0,items:[{key:"issuers",label:(0,s.jsx)("span",{style:{fontWeight:500},children:`ESM Importers (${o.length})`}),children:o.map((e,t)=>(0,s.jsxs)("div",{style:{display:"flex",marginBottom:4,alignItems:"center"},children:[(0,s.jsx)("div",{className:_,children:"import"}),(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)("span",{className:B,children:(0,ee.Zb)(e.path,i)}),(0,s.jsx)(n.A,{className:O,style:{marginLeft:8,fontSize:11,fontFamily:"Menlo"},children:`'${e.request}'`})]})]},t))}]})]})})}),{})}});return(0,s.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:l.map(e=>e.key),items:l})},eh=[{key:"E1001",label:"Duplicate Packages"},{key:"E1002",label:"Cross Chunks Package"},{key:"E1003",label:"Loader Performance Optimization"},{key:"E1004",label:"ECMA Version Check"},{key:"E1005",label:"Default Import Check"},{key:"E1006",label:"Module Mixed Chunks"},{key:"E1007",label:"Tree Shaking Side Effects Only"},{key:"E1008",label:"CJS Require Cannot Tree-Shake"},{key:"E1009",label:"ESM Import Resolved to CJS"}],ep=e=>{let{title:t,dataSource:r,extraData:d}=e,c=eh.map(e=>({...e,data:[],tag:e.key})),u=[];r.forEach(e=>{let t=c.find(t=>t.key===e.code);t?t.data.push(e):u.push(e)}),u.length&&c.push({key:"CUSTOM_RULES",label:"Custom Rules",data:u,tag:"Custom"}),c.sort((e,t)=>(t.data.length>0)-(e.data.length>0));let h=c[0]?.key??"E1001",[p,m]=(0,a.useState)(h),f=c.some(e=>e.key===p)?p:h,x=c.map(e=>{let t,r,l=f===e.key?{border:"1px solid #91D5FF",backgroundColor:"#E6F7FF"}:{},a=f===e.key?{color:"#1890FF"}:{};switch(e.key){case"E1001":t=(0,s.jsx)(J,{data:e.data,extraData:d});break;case"E1002":t=(0,s.jsx)(Q,{data:e.data,extraData:d});break;case"E1003":case"E1005":t=(0,s.jsx)(Y,{data:e.data});break;case"E1004":r=(0,s.jsx)("span",{children:"No ECMA Version Check Rules were found. Please refer to 「https://rsdoctor.rs/guide/usage/rule-config」."}),t=(0,s.jsx)(v,{data:e.data});break;case"E1006":t=(0,s.jsx)(es,{data:e.data,extraData:d});break;case"E1007":t=(0,s.jsx)(el,{data:e.data,extraData:d});break;case"E1008":t=(0,s.jsx)(eo,{data:e.data,extraData:d});break;case"E1009":t=(0,s.jsx)(eu,{data:e.data,extraData:d});break;case"CUSTOM_RULES":t=(0,s.jsx)(Y,{data:e.data,showCode:!0});break;default:t=null}return e.data.length||(t=(0,s.jsx)(i.A,{description:r,image:i.A.PRESENTED_IMAGE_SIMPLE})),{key:e.key,label:(0,s.jsx)(()=>(0,s.jsx)(b.A,{style:{backgroundColor:"transparent",border:"none",borderRadius:0,minHeight:"auto",padding:"8px 0",width:"100%"},title:(0,s.jsx)("span",{className:"labelTitle-tjSCQ_",children:e.label}),description:(0,s.jsxs)("div",{className:"labelDescription-kB74lb",children:[(0,s.jsx)("span",{children:e.data.length}),(0,s.jsx)(n.A,{style:{fontFamily:"Menlo",borderRadius:"2px",...l},children:(0,s.jsx)("span",{style:{...a},children:e.tag})})]})}),{}),children:(0,s.jsx)(o.Zp,{className:"card-HNTMcZ",type:"inner",title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.A,{className:O,style:{fontFamily:"Menlo",fontWeight:"700",fontSize:"13px"},children:e.tag}),(0,s.jsx)("span",{children:e.label})]}),children:t})}});return(0,s.jsx)(o.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,s.jsxs)("div",{className:"container-TWzmhb",children:[(0,s.jsx)("div",{className:"title-gD67_A",children:t}),r.length?(0,s.jsx)(l.A,{onChange:m,tabBarGutter:10,type:"card",activeKey:f,items:x}):(0,s.jsx)("div",{style:{minHeight:"480px",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(i.A,{description:"No Bundle Alerts Data",image:i.A.PRESENTED_IMAGE_SIMPLE})})]})})}},594(e,t,r){var s=r(64558),n=r(1102),i=r(87826),l=r(36033),a=r(1312),o=r(41611);r(15061);var d=r(9926);(0,o.eN)({api:i.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:r}=e,{root:i,errors:o}=r,c=(0,l.y8)(o),{setCompileAlertsViewMode:u,viewMode:h,setViewMode:p}=(0,l.an)(),m=t?c.filter(t):c;return(0,n.useEffect)(()=>{(0,l.it)()||p({compileAlerts:c.length>=5?"group":"list"},!1)},[]),(0,s.jsx)(a.J,{title:"Compile Alerts",dataSource:m,extraData:{cwd:i,getPackageRelationContentComponent:e=>(0,s.jsx)(d.rU,{body:{id:e.data.id,target:e.package.target},cwd:i})},viewMode:h.compileAlerts,setViewMode:u,cwd:i})}})},8857(e,t,r){var s=r(64558),n=r(50162);r(1102);let i={default:"linear-gradient(to bottom, #3ea2ff 0%, #0072db 100%)",success:"linear-gradient(to bottom, #6cf42a 0%, #52C41A 100%)",warn:"linear-gradient(to bottom, #ffc100 0%, #f59025 100%)",error:"linear-gradient(to bottom, rgb(250 127 22), #FF4D4F 100%)"};r.d(t,{},{Ex:e=>{let{label:t,value:r,type:l="default",tooltip:a}=e,o={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},d=(0,s.jsxs)("div",{style:{height:22,margin:0,padding:0,boxSizing:"border-box",borderRadius:4,fontSize:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:[(0,s.jsx)("div",{style:{...o,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:t}),(0,s.jsx)("div",{style:{...o,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:i[l]||i.default},children:r})]});return a?(0,s.jsx)(n.A,{title:!0===a?r:a,placement:"topLeft",children:d}):d}})},71029(e,t,r){var s=r(64558),n=r(85326),i=r(66482),l=r(6755),a=r(44953),o=r(16798),d=r(83821),c=r(53919),u=r(1102),h=r(30670),p=r(14061),m=r(15061),f=r(17886),x=r(484),g=r(36033);let{jK:y,Sx:j}=m,v={colorPrimary:"#2f81f7",colorInfo:"#5b8ff9",colorSuccess:"#5ccb8a",colorWarning:"#f2b84b",colorError:"#ff6b6b",colorBgBase:"#090b10",colorBgLayout:"#090b10",colorBgContainer:"#11151b",colorBgElevated:"#171c24",colorBorder:"rgba(255, 255, 255, 0.16)",colorBorderSecondary:"rgba(255, 255, 255, 0.1)",colorText:"#f3f5f7",colorTextSecondary:"#aab2bf",colorTextTertiary:"#7d8796",colorFill:"rgba(255, 255, 255, 0.16)",colorFillSecondary:"rgba(255, 255, 255, 0.1)",colorFillTertiary:"rgba(255, 255, 255, 0.06)",colorFillQuaternary:"rgba(255, 255, 255, 0.04)",borderRadius:8,borderRadiusLG:12,boxShadowSecondary:"0 12px 32px rgba(0, 0, 0, 0.24)"},b={Layout:{bodyBg:"#090b10",headerBg:"#071827",headerColor:"#f3f5f7"},Menu:{activeBarHeight:2,darkItemBg:"transparent",darkSubMenuItemBg:"#11151b",darkItemColor:"#aab2bf",darkItemHoverColor:"#f3f5f7",darkItemHoverBg:"rgba(47, 129, 247, 0.08)",darkItemSelectedColor:"#f3f5f7",darkItemSelectedBg:"rgba(47, 129, 247, 0.14)",itemBorderRadius:8,horizontalItemBorderRadius:8},Card:{headerBg:"transparent",extraColor:"#aab2bf"},Segmented:{trackBg:"rgba(255, 255, 255, 0.06)",itemHoverBg:"rgba(255, 255, 255, 0.08)",itemActiveBg:"rgba(47, 129, 247, 0.12)",itemSelectedBg:"#202733",itemSelectedColor:"#f3f5f7"},Progress:{defaultColor:"#2f81f7",remainingColor:"rgba(255, 255, 255, 0.1)"},Tree:{nodeHoverBg:"rgba(47, 129, 247, 0.08)",nodeSelectedBg:"rgba(47, 129, 247, 0.14)",directoryNodeSelectedBg:"rgba(47, 129, 247, 0.18)"}};t.A=e=>{let{router:t,renderFailState:r,extraContent:A}=e,[w,S]=(0,u.useState)(y.Success),[k,M]=(0,u.useState)({...f.s.viewMode}),[C,E]=(0,u.useState)(),[T,N]=(0,u.useState)(f.s.theme);return w===m.jK.Fail?r?(0,s.jsx)(s.Fragment,{children:r()}):(0,s.jsxs)(n.A,{direction:"vertical",style:{padding:14},children:[(0,s.jsx)(i.A.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,s.jsxs)(i.A.Text,{children:["try to use ",(0,s.jsx)(i.A.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,s.jsx)(l.A,{}),(0,s.jsx)(n.A,{direction:"vertical",style:{width:"100%"},children:(0,s.jsxs)(i.A.Text,{style:{fontSize:16},children:["you can",(0,s.jsx)(i.A.Text,{strong:!0,style:{fontSize:"inherit"},children:"upload a file"}),"in the area below to analyze your project."]})}),(0,s.jsx)(l.A,{})]}):(0,s.jsx)(p.I9,{children:(0,s.jsx)(f.Q.Provider,{value:{...f.s,theme:T,setTheme:e=>{N(e),(0,g.Kv)(e)},pageState:w,json:C,viewMode:k,setManifest:E,setPageState:S,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r={...k,...e};M(r),t&&(0,g.ZI)(r)}},children:(0,s.jsx)(f.Q.Consumer,{children:e=>(0,s.jsx)(a.Ay,{locale:(0,g.JK)(e.locale),theme:{components:{...T===j.Dark?b:{},Layout:{...T===j.Dark?b?.Layout:{},...j.Light===T&&{headerBg:"#fff"}}},algorithm:T===j.Dark?o.A.darkAlgorithm:o.A.defaultAlgorithm,token:{padding:16,fontFamily:"var(--font-family-code)",...T===j.Dark?v:{}}},children:(0,s.jsx)(x.P,{children:(0,s.jsxs)(s.Fragment,{children:[A,(0,s.jsx)(h.tH,{FallbackComponent:e=>{let{error:t,resetErrorBoundary:r}=e;return(0,s.jsx)(d.Ay,{status:"error",title:"Sorry, something went wrong.",extra:(0,s.jsx)(c.Ay,{type:"primary",onClick:r,loading:w===y.Pending,children:"Reload"}),children:(0,s.jsxs)(i.A.Paragraph,{children:[(0,s.jsx)(i.A.Title,{level:3,children:"Error Stack"}),(0,s.jsx)("pre",{children:t.stack||t.message})]})})},onReset:()=>{window.location.reload()},children:t})]})})})})})})}},1637(e,t,r){var s=r(64558),n=r(87826),i=r(66482),l=r(85326),a=r(50162),o=r(17076),d=r(3534),c=r(1102),u=r(36033);r(15061);var h=r(50832);let p=e=>{let{percent:t,state:r,fontSize:l=14}=e,a=+t.toFixed(2);if(a>0){let e=`${a}`;if(r===n.Kj.Ol.Up)return(0,s.jsxs)(i.A.Text,{strong:!0,style:{fontSize:l,color:"#e17055"},children:["+",e,"%"]});if(r===n.Kj.Ol.Down)return(0,s.jsxs)(i.A.Text,{strong:!0,style:{fontSize:l,color:"#52c41a"},children:["-",e,"%"]})}return null},m=e=>{let{data:t,formatter:r}=e,{percent:n,state:o,size:d}=t,{baseline:c,current:h}=d,m=r?r(c,"baseline"):(0,u.Xq)(c),f=r?r(h,"current"):(0,u.Xq)(h);return(0,s.jsx)(l.A,{align:"start",children:(0,s.jsxs)(l.A,{direction:"vertical",style:{textAlign:"left"},children:[(0,s.jsxs)(l.A,{children:[(0,s.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Current"}),(0,s.jsx)(a.A,{title:"number"==typeof f||"string"==typeof f?`Value of Current is ${f}`:void 0,children:(0,s.jsx)(i.A.Text,{style:{fontSize:16,color:"inherit"},strong:!0,children:f})}),(0,s.jsx)(p,{percent:n,state:o})]}),(0,s.jsxs)(l.A,{children:[(0,s.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Baseline"}),(0,s.jsx)(a.A,{title:"number"==typeof m||"string"==typeof m?`Value of Baseline is ${m}`:void 0,children:(0,s.jsx)(i.A.Text,{style:{fontSize:14},type:"secondary",children:m})})]})]})})};r.d(t,{},{QE:p,aq:e=>{let{titles:t,datas:r,formatter:n,showPercentInTitle:a}=e,[d,u]=(0,c.useState)(0);return(0,s.jsx)(h.j,{title:t.length>1?(0,s.jsx)(o.A,{defaultValue:t[d],options:a?t.map((e,t)=>{let n=r[t];return{label:(0,s.jsxs)(l.A,{children:[(0,s.jsx)(i.A.Text,{children:e}),(0,s.jsx)(p,{percent:n.percent,state:n.state})]}),value:e}}):t,onChange:e=>{u(t.indexOf(e))},size:"small",style:{transition:"transform 0.3s ease"},value:t[d]||t[0]}):t[d],value:(0,s.jsx)(m,{data:r[d],formatter:n}),statisticProps:{style:{textAlign:"left"}}})},vh:e=>{let{baseline:t,current:r,...n}=e,i=d.TS.Nt(t,r);return(0,s.jsx)(p,{...n,...i})}})},44506(e,t,r){var s=r(64558),n=r(1102),i=r(18378),l=r(99474),a=r(30147),o=r(85326);r(1637),r.d(t,{},{Zp:e=>{let{collapsable:t=!1,children:r,title:d,dividerStyle:c,defaultCollapsed:u=!1,...h}=e,[p,m]=(0,n.useState)(u);return d&&t?(0,s.jsx)(a.A,{style:{borderRadius:"12px"},...h,title:(0,s.jsxs)(o.A,{style:{fontSize:"inherit"},children:[(0,s.jsx)("div",{style:{cursor:"pointer"},onClick:()=>m(!p),children:p?(0,s.jsx)(i.A,{}):(0,s.jsx)(l.A,{})}),d]}),children:p?null:r}):(0,s.jsx)(a.A,{style:{borderRadius:"12px"},title:d,...h,children:r})}})},50832(e,t,r){var s=r(64558),n=r(67628);r.d(t,{},{j:e=>{let{title:t,value:r,statisticProps:i,boxProps:l}=e;return(0,s.jsx)("div",{className:"statistic-card",...l,children:(0,s.jsx)(n.A,{title:(0,s.jsx)("div",{className:"statistic-card-title",children:t}),valueRender:()=>r,valueStyle:{fontSize:24},...i})})}})},20368(e,t,r){var s=r(64558),n=r(1102),i=r(35574),l=r(91241),a=r(88523),o=r(74008),d=r(77731),c=r(3935),u=r(96308),h=r(6750),p=r(51199),m=r(79595),f=r.n(m),x=r(67782),g=r(66592),y=r(36033);l.Y([d.a,c.a,u.a,h.a,p.a]);let j=(0,n.memo)(e=>{let{loaderData:t,pluginsData:r,formatterFn:l,chartType:d=5,exts:c=null}=e,[u,h]=(0,n.useState)({}),p=(0,y.al)(),{data:m,categories:j}=(0,n.useMemo)(()=>{let e=[],s=[];if(t){t.forEach(e=>{s.unshift(e.n+" total"),s.unshift(e.n)}),t.forEach((t,r)=>{let n=g.LS[r%g.LS.length];e.push({name:t.n+" total",value:[s.indexOf(t.n+" total"),t.s,t.e,t.e-t.s],itemStyle:{normal:{color:n,opacity:.34}}}),t.c?.forEach((n,i)=>{e.push({name:t.n,value:[s.indexOf(t.n),n.s,n.e,n.e-n.s],itemStyle:{normal:{color:g.LS[(r+i)%g.LS.length],opacity:.78}},ext:n.ext})})});for(let e=0;e<s.length;e++)s[e]=e%2!=0?s[e].replace(" total",""):""}if(r){let t=(0,x.$z)(r,e=>e.pid);Object.keys(t).reverse().forEach((r,n)=>{t[r].forEach((t,r)=>{e.push({name:String(t.pid),value:[n,t.args.s,t.args.e,t.args.e-t.args.s],itemStyle:{normal:{color:g.LS[(n+r)%g.LS.length],opacity:.78}},ext:t})}),s.push(String(r.charAt(0).toUpperCase()+r.slice(1)))})}return{data:e,categories:s}},[t,r]);(0,n.useEffect)(()=>{h({tooltip:{formatter:e=>l(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-8,height:14,borderColor:p.colorBorderSecondary,backgroundColor:p.colorFillQuaternary,fillerColor:p.colorPrimaryBg,handleStyle:{color:p.colorTextSecondary,borderColor:p.colorBorder}},{type:"inside",filterMode:"weakFilter"}],grid:{top:18,left:12,bottom:12,right:16,height:j.length>(4===d?6:3)?"auto":46*j.length,containLabel:!0},xAxis:{interval:c?.endTimestamp&&c?.startTimestamp?Math.floor((c.endTimestamp-c.startTimestamp)/8):null,position:"top",splitLine:{show:!0,lineStyle:{color:p.colorBorderSecondary,width:1}},scale:!0,axisLine:{show:!1},axisLabel:{color:p.colorTextSecondary,fontSize:11,margin:10,formatter:e=>f()(e).format("HH:mm:ss:SSS")}},yAxis:{type:"category",splitLine:{show:!1},axisLabel:{inside:!1,lineHeight:20,width:4===d?220:140,overflow:"truncate",margin:16,fontSize:12,color:p.colorTextSecondary,verticalAlign:"middle"},axisLine:{show:!1},axisTick:{show:!1},data:j},series:[{type:"custom",renderItem:function(e,t){let r=t.value(0),s=t.coord([t.value(1),r]),n=t.coord([t.value(2),r]),i=.36*t.size([0,1])[1],l=a.clipRectByRect({x:s[0],y:4===d?s[1]-(r%2!=0?0:2*i):s[1],width:n[0]-s[0]||5,height:i},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return l&&{type:"rect",transition:["shape"],shape:l,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:1},encode:{x:[1,2],y:0},data:m}]})},[j,d,m,c,l,p]);let v=t?2*t.length:new Set(r?.map(e=>e.pid)).size,b=3===d?100:4===d?Math.min(Math.max(46*v+80,300),1e3):Math.min(Math.max(46*v+70,200),1e3);return(0,s.jsx)(i.A,{option:u,echarts:o,style:{width:"100%",height:`${b}px`,border:"1px solid var(--color-border)",borderRadius:"10px"}})});r.d(t,{},{n:j})},95194(e,t,r){var s=r(64558),n=r(1102),i=r(67782),l=r(74374);r(71127);var a=r(22009),o=r(5525),d=r(35784),c=r(20368),u=r(55096);let h=0,p=0;r.d(t,{},{z:e=>{let{loaders:t,cwd:r}=e,{isDark:m}=(0,a.DP)(),f=(0,n.useRef)(null),[x,g]=(0,n.useState)([]),y=(0,u.Wy)(x,200),j=(0,n.useMemo)(()=>(0,i.$z)(t,e=>e.loader),[t]),v=(0,n.useCallback)(e=>{let{name:s,data:n}=e,i=s.replace(" total","");return n?.ext?(0,u.Bq)(n.ext):(0,u.iv)(i,t,r)},[]);return(0,n.useEffect)(()=>{g(Object.keys(j).map(e=>{let t=j[e]||[],{start:s,end:n}=(0,o.xr)(t);return(s<h||0===h)&&(h=s),(n>p||0===p)&&(p=n),{p:e,n:e,s:s,e:n,c:t.map(t=>({p:e,n:(0,d.Zb)(t.resource,r),s:t.startAt,e:t.endAt,ext:t}))}}))},[j]),(0,s.jsx)(s.Fragment,{children:x?.length?(0,s.jsx)("div",{className:["loader-chart-container",m?"loader-chart-container_dark":""].join(" ").trim(),ref:f,style:{width:"100%"},children:(0,s.jsx)(c.n,{loaderData:y,formatterFn:v,chartType:4,exts:{startTimestamp:h,endTimestamp:p}})}):(0,s.jsx)(l.A,{})})}})},21290(e,t,r){r.d(t,{h:()=>j,C:()=>y});var s=r(64558);r(1102);var n=r(85326),i=r(50143),l=r(31273),a=r(62561),o=r(36163),d=r(87738),c=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,s.jsx)("path",{fill:"#FAAD14",d:"M11.409 3.51 8.046.146A.5.5 0 0 0 7.693 0H1.056a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.462 1.152l2.94 2.94h-2.94zm2.969 11.722H1.68V1.125h4.718V4.5a.656.656 0 0 0 .657.656h3.375z"}),(0,s.jsx)("path",{fill:"#FAAD14",d:"M6.927 9.651h.888a1.6 1.6 0 0 1-.24.775q-.211.339-.592.528-.377.19-.908.19a1.9 1.9 0 0 1-.745-.142 1.6 1.6 0 0 1-.564-.416 1.9 1.9 0 0 1-.354-.653 2.8 2.8 0 0 1-.121-.858v-.3q0-.474.124-.858.128-.386.362-.656.238-.27.567-.415.33-.146.737-.146.54 0 .911.196.375.195.58.54.206.345.249.784H6.93a1.15 1.15 0 0 0-.104-.442.6.6 0 0 0-.27-.276 1 1 0 0 0-.475-.095.86.86 0 0 0-.39.083.7.7 0 0 0-.278.252 1.3 1.3 0 0 0-.17.428q-.053.255-.053.6v.305q0 .335.05.591.051.251.155.428a.7.7 0 0 0 .273.26.9.9 0 0 0 .407.087q.28 0 .46-.09a.6.6 0 0 0 .276-.263q.098-.176.116-.437"}),(0,s.jsx)("path",{fill:"#FFF1B8",fillRule:"evenodd",d:"M6.4 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719H1.68V1.125zm1.415 8.526h-.888q-.017.261-.116.437a.6.6 0 0 1-.276.264q-.18.09-.46.089a.9.9 0 0 1-.407-.086.7.7 0 0 1-.273-.261q-.104-.176-.154-.428a3 3 0 0 1-.05-.59v-.307q0-.345.053-.6.056-.258.169-.427a.7.7 0 0 1 .279-.252.86.86 0 0 1 .389-.083q.297 0 .475.095a.6.6 0 0 1 .27.276q.09.18.104.442h.89a1.8 1.8 0 0 0-.249-.784q-.205-.345-.579-.54-.37-.195-.911-.196-.407 0-.737.146-.33.145-.567.415-.234.27-.362.656a2.8 2.8 0 0 0-.124.858v.3q0 .476.121.858.122.383.354.653.234.27.564.416.33.143.745.143.531 0 .908-.19.38-.19.591-.529a1.6 1.6 0 0 0 .24-.775",clipRule:"evenodd"})]}),u=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,s.jsx)("path",{fill:"#722ED1",d:"M6.076 7.58a.356.356 0 0 1 .646.299l-1.576 3.414a.356.356 0 0 1-.646-.298zM7.198 8.135a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0M4.024 8.135a.356.356 0 0 1 0 .503l-.799.799.8.8a.356.356 0 1 1-.504.502l-1.05-1.05a.356.356 0 0 1 0-.503l1.05-1.05a.356.356 0 0 1 .503 0"}),(0,s.jsx)("path",{fill:"#EFDBFF",fillRule:"evenodd",d:"M5.955 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm.121 6.456a.356.356 0 1 1 .646.298l-1.576 3.414a.356.356 0 1 1-.646-.298zm1.122.554a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0m-3.174.503a.356.356 0 1 0-.503-.503l-1.05 1.05a.356.356 0 0 0 0 .503l1.05 1.05a.355.355 0 1 0 .503-.502l-.799-.799z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#722ED1",d:"M10.964 3.51 7.602.146A.5.5 0 0 0 7.249 0H.61a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.017 1.152l2.941 2.94h-2.94zm2.97 11.722h-8.75V1.125h4.718V4.5a.656.656 0 0 0 .656.656h3.375z"})]}),h=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,s.jsx)("path",{fill:"#E6F7FF",d:"M6.733 4.5V1.125h-4.72v11.75h8.75V5.156H7.39a.656.656 0 0 1-.656-.656m-2.094.781a.625.625 0 1 1 0 1.25.625.625 0 0 1 0-1.25m4.625 4.594H3.515a.125.125 0 0 1-.098-.202l1.56-1.987a.125.125 0 0 1 .196 0l.642.819 1.216-1.55a.126.126 0 0 1 .199 0l2.132 2.718a.125.125 0 0 1-.098.202"}),(0,s.jsx)("path",{fill:"#1890FF",d:"M11.742 3.51 8.38.146A.5.5 0 0 0 8.026 0H1.39a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.795 1.152l2.94 2.94h-2.94zm2.969 11.722h-8.75V1.125h4.719V4.5a.656.656 0 0 0 .656.656h3.375z"}),(0,s.jsx)("path",{fill:"#1890FF",d:"m7.031 6.955-1.215 1.55-.643-.82a.125.125 0 0 0-.196 0l-1.56 1.988a.125.125 0 0 0 .099.202h5.748c.105 0 .163-.12.098-.202L7.23 6.955a.127.127 0 0 0-.199 0M4.014 5.906a.625.625 0 1 0 1.25 0 .625.625 0 0 0-1.25 0"})]}),p=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,s.jsx)("path",{fill:"#E6F7FF",fillRule:"evenodd",d:"M6.177 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm1.806 8.7q.03.081.03.183a.411.411 0 0 1-.26.388.8.8 0 0 1-.333.057q-.166 0-.307-.034a.7.7 0 0 1-.24-.11.5.5 0 0 1-.153-.197.7.7 0 0 1-.055-.3H5.88q0 .321.133.555.132.234.354.386.225.15.497.226.275.073.555.073.313 0 .565-.07.254-.07.435-.206.183-.135.279-.33a1 1 0 0 0 .096-.443q0-.235-.08-.42a1 1 0 0 0-.24-.33 1.7 1.7 0 0 0-.396-.263 3.5 3.5 0 0 0-.544-.211 3 3 0 0 1-.326-.118 1.3 1.3 0 0 1-.237-.127.5.5 0 0 1-.146-.146.33.33 0 0 1-.047-.174q0-.129.068-.23a.45.45 0 0 1 .203-.164.8.8 0 0 1 .339-.062q.21 0 .349.073a.48.48 0 0 1 .208.2q.07.125.07.292h.777q0-.339-.175-.602a1.17 1.17 0 0 0-.484-.414 1.7 1.7 0 0 0-.732-.15q-.307 0-.565.075-.255.075-.443.216a1 1 0 0 0-.292.333.9.9 0 0 0-.104.43q0 .244.1.43.1.184.275.325.178.138.406.242.232.104.49.188.232.072.378.14a1 1 0 0 1 .226.138q.08.068.11.152M4.595 7.209v2.628q0 .195-.063.33a.46.46 0 0 1-.17.206.47.47 0 0 1-.257.07.6.6 0 0 1-.263-.051.36.36 0 0 1-.17-.175.8.8 0 0 1-.057-.33h-.783q0 .398.164.658.164.258.45.383t.659.125q.36 0 .646-.146.289-.146.456-.416.166-.274.166-.654V7.208z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#1890FF",d:"M8.014 10.008a.5.5 0 0 0-.031-.182.34.34 0 0 0-.11-.152 1 1 0 0 0-.226-.138 3 3 0 0 0-.378-.14 5 5 0 0 1-.49-.188 2 2 0 0 1-.406-.242 1.1 1.1 0 0 1-.276-.325.9.9 0 0 1-.099-.43q0-.237.104-.43a1 1 0 0 1 .292-.333q.188-.141.443-.216.258-.075.565-.076.42 0 .732.151.312.152.484.414.175.264.175.602h-.776a.6.6 0 0 0-.07-.292.48.48 0 0 0-.21-.2.74.74 0 0 0-.348-.073.8.8 0 0 0-.339.062.45.45 0 0 0-.203.164.4.4 0 0 0-.067.23q0 .096.046.174.05.078.146.146t.237.127q.14.06.326.118.31.093.544.21.237.118.396.264a1 1 0 0 1 .24.33q.08.185.08.42a1 1 0 0 1-.096.442.9.9 0 0 1-.279.331q-.181.135-.435.206a2.1 2.1 0 0 1-.565.07q-.28 0-.555-.073a1.7 1.7 0 0 1-.497-.226q-.222-.152-.354-.386a1.1 1.1 0 0 1-.133-.555h.784q0 .178.055.3a.5.5 0 0 0 .153.198q.102.075.24.11.14.033.307.033.204 0 .333-.057a.41.41 0 0 0 .26-.388M4.595 9.836V7.208h.778v2.628q0 .38-.166.654-.167.27-.456.416a1.4 1.4 0 0 1-.646.146q-.372 0-.659-.125a1 1 0 0 1-.45-.383q-.164-.26-.164-.659h.783q0 .21.058.331a.36.36 0 0 0 .169.175q.109.052.263.052a.47.47 0 0 0 .258-.07.46.46 0 0 0 .17-.206q.061-.135.062-.331"}),(0,s.jsx)("path",{fill:"#1890FF",d:"M11.186 3.51 7.824.146A.5.5 0 0 0 7.47 0H.833a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.24 1.152l2.94 2.94H7.24zm2.968 11.722h-8.75V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"})]}),m=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,s.jsx)("path",{fill:"#F0F0F0",d:"M6.288 4.5V1.125H1.57v11.75h8.75V5.156H6.944a.656.656 0 0 1-.656-.656m-.344 6.625a.5.5 0 1 1 0-.999.5.5 0 0 1 0 .999m1.72-3.569c.01.702-.465 1.32-1.162 1.546a.22.22 0 0 0-.151.207V9.5c0 .086-.07.156-.157.156h-.5a.157.157 0 0 1-.156-.156V9a.65.65 0 0 1 .542-.627c.443-.057.77-.4.77-.795 0-.439-.402-.805-.906-.805-.503 0-.906.366-.906.807a.15.15 0 0 1-.153.147H4.38a.15.15 0 0 1-.153-.149c0-.897.783-1.62 1.742-1.61.926.013 1.683.721 1.695 1.588"}),(0,s.jsx)("path",{fill:"#8C8C8C",d:"M11.298 3.51 7.935.148A.5.5 0 0 0 7.58 0H.944a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.146-.353M7.35 1.154l2.94 2.94h-2.94zm2.968 11.722H1.57V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"}),(0,s.jsx)("path",{fill:"#8C8C8C",d:"M5.444 10.625a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0M4.226 7.578a.15.15 0 0 0 .153.149h.506a.15.15 0 0 0 .153-.147c0-.44.403-.807.906-.807.504 0 .907.366.907.805 0 .395-.328.738-.77.795A.65.65 0 0 0 5.537 9v.5c0 .086.07.156.156.156h.5c.086 0 .157-.07.157-.156v-.19a.22.22 0 0 1 .151-.208c.697-.225 1.172-.844 1.161-1.546-.012-.867-.769-1.575-1.695-1.587-.96-.011-1.742.712-1.742 1.61"})]}),f=r(36033),x=r(13078),g=r.n(x);function y(e){let t=function(e){switch(g().extname(e).slice(1).toLowerCase()){case"js":case"jsx":case"ts":case"mjs":case"cjs":case"mts":case"cts":return(0,s.jsx)(p,{});case"tsx":default:return(0,s.jsx)(m,{});case"css":case"scss":case"sass":case"less":case"styl":case"stylus":return(0,s.jsx)(c,{});case"html":return(0,s.jsx)(u,{});case"png":case"jpg":case"jpeg":case"gif":case"svg":case"bmp":case"webp":case"ico":case"apng":case"avif":case"tif":case"tiff":case"jfif":case"pjpeg":case"pjp":return(0,s.jsx)(h,{})}}(e);return(0,s.jsx)("div",{className:"file-icon",children:t})}let j=e=>{let{isDark:t}=(0,f.DP)(),r=(0,f.al)(),c=t?r.colorWhite:r.colorText,u={fontSize:r.fontSize};return(0,s.jsx)(d.A,{checkable:!1,selectable:!0,switcherIcon:e=>{let{data:t,expanded:r}=e;return t?.children?(0,s.jsxs)(n.A,{style:{color:c},children:[(0,s.jsx)(i.A,{twoToneColor:c,className:`file-tree-switcher-arrow ${r?"file-tree-switcher-arrow-expand":""}`,style:u}),r?(0,s.jsx)(l.A,{}):(0,s.jsx)(a.A,{})]}):t?.key&&"string"==typeof t.key?y(t.key):(0,s.jsx)(o.A,{})},expandAction:"click",...e})}},7415(e,t,r){var s=r(64558),n=r(1102),i=r(70722),l=r(53919),a=r(66482);r.d(t,{},{E:e=>{let t,{icon:r,label:o,labelStyle:d={},placeholder:c,onChange:u,style:h,className:p,width:m,delay:f=300}=e,[x,g]=(0,n.useState)(""),y={width:120,...d},j=(0,n.useRef)(null);return(0,n.useEffect)(()=>{u(x)},[x]),(0,s.jsxs)(i.A.Group,{compact:!0,style:h,className:p,children:[o||r?(0,s.jsxs)(l.Ay,{style:y,onClick:()=>{j&&j.current&&j.current.focus()},children:[r||null,(0,s.jsx)(a.A.Text,{children:o})]}):null,(0,s.jsx)(i.A,{ref:j,allowClear:!0,defaultValue:x,style:{width:m?m-120:250},placeholder:c,onChange:e=>{t&&clearTimeout(t);let r=e.target.value.trim();t=setTimeout(()=>{g(r)},f)}})]})}})},484(e,t,r){r.d(t,{P:()=>U});var s=r(64558),n=r(1102),i=r(75273),l=r(36187),a=r(15061),o=r(79466),d=r(87826),c=r(80844),u=r(63598),h=r(85395),p=r(77689),m=r(53919),f=r(23807),x=r(36033),g=r(49249),y=r(6755),j=r(85326),v=r(66482),b=r(13616),A=r(38163),w=r(61108);let S=()=>{let[e,t]=(0,n.useState)(""),[r,i]=(0,n.useState)([]);return((0,n.useEffect)(()=>{(0,x.Cj)().then(e=>{let{name:r,series:s}=e;r&&t(r),s&&s.length>0&&i(s)})},[]),e.length<=0||r.length<=0)?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y.A,{type:"vertical",style:{margin:"0 24px"}}),(0,s.jsxs)(j.A,{children:[(0,s.jsx)(w.A,{style:{fontSize:"18px"},component:A.A}),(0,s.jsx)(v.A,{children:"Compiler"}),(0,s.jsx)(b.A,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=r.find(t=>t.name===e);t&&(t.origin?location.href=(0,x.$G)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:r.map((e,t)=>(0,s.jsx)(b.A.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})]})};var k=r(59069),M=r(7364),C=r(5785),E=r(86511),T=r(3158),N=r(53879),D=r(80606),z=r(41611),L=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,s.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,s.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.563 3.5c.276 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.396 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.23 4.833c.275 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,s.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),I=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,s.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,s.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.023 6.212 2.676 5.014l1.347-1.199M8.752 6.212l1.347-1.198-1.347-1.199M5.742 7.014l1.362-4"}),(0,s.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),_=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,s.jsx)("path",{fill:"#0079FF",fillRule:"evenodd",d:"M6.329.788A1 1 0 0 0 5.35.8L.466 3.62l5.36 2.83 5.327-3.044zm-.993 12.777V7.322L.063 4.54v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#0079FF",fillOpacity:.5,fillRule:"evenodd",d:"M5.354.8H5.35L.546 3.576l.017-.01L5.336.81zm-.018 12.765V7.322L.063 4.54l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866l-4.774 2.756z",clipRule:"evenodd"})]}),R=r(86060);let B="Compile Analysis",P={overall:(0,s.jsx)(e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,s.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,s.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.781 3.5c.277 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.615 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.448 4.833c.276 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,s.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),compile:(0,s.jsx)(e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,s.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,s.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.241 6.212 2.895 5.014 4.24 3.815M8.97 6.212l1.347-1.198-1.346-1.199M5.96 7.014l1.363-4"}),(0,s.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),bundle:(0,s.jsx)(e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,s.jsx)("path",{fill:"#5E6673",fillRule:"evenodd",d:"M6.44.672a1 1 0 0 0-.977.013L.578 3.505l5.36 2.83 5.327-3.044zm-.992 12.777V7.206L.175 4.423v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#5E6673",fillOpacity:.5,fillRule:"evenodd",d:"m5.466.683-.003.002L.658 3.459l.017-.01L5.448.693zM5.448 13.45V7.206L.175 4.423l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866L6.448 13.45z",clipRule:"evenodd"})]}),{})},O=(0,z.eN)({api:d.hp.uT.n.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,x.s9)(),{pathname:r}=(0,f.zy)(),i=(0,f.Zp)(),[l,a]=(0,n.useState)(P),{routes:o}=e,c=(0,x.TR)(),u=o&&o.length>0?o:c||[];(0,n.useEffect)(()=>{r.includes("loaders")||r.includes("plugins")||r.includes("/module/resolve")?a({...P,compile:(0,s.jsx)(I,{})}):r.includes("overall")||"/"===r?a({...P,overall:(0,s.jsx)(L,{})}):r.includes("bundle")&&a({...P,bundle:(0,s.jsx)(_,{})})},[r]);let h={color:"rgba(96, 102, 114)"},p=[];u.includes(d._8.z.Overall)&&p.push({label:t(D.U),key:D.w,icon:l.overall,children:[],onTitleClick(e){i(e.key)}}),(0,x.cv)(u)&&p.push({label:t(B),key:B,icon:l.compile,children:[u.includes(d._8.z.Loaders)&&{label:t(R.pI.UU),key:R.pI.wE,icon:(0,s.jsx)(k.A,{style:h})},u.includes(d._8.z.Loaders)&&{label:t(R.hK.UU),key:R.hK.wE,icon:(0,s.jsx)(M.A,{style:h})},u.includes(d._8.z.ModuleResolve)&&{label:t(R.dn.UU),key:R.dn.wE,icon:(0,s.jsx)(C.A,{style:h})},u.includes(d._8.z.Plugins)&&{label:t(R.FO.UU),key:R.FO.wE,icon:(0,s.jsx)(E.A,{style:h})}].filter(e=>!!e)}),(0,x.r0)(u)&&p.push({label:t(R._y.UU),key:R._y.UU,icon:l.bundle,children:[],onTitleClick(){i(R._y.wE)}});let{theme:m}=(0,x.DP)(),g=(0,s.jsx)(N.A,{items:p,theme:m,mode:"horizontal",onClick:e=>{e.keyPath.includes("builder-switcher")||i(e.key)},disabledOverflow:!0,overflowedIndicator:(0,s.jsx)(T.A,{}),className:"primaryMenu-gMpDIg",style:{height:54,lineHeight:"54px",minWidth:0,justifyContent:"flex-start",...e.style},selectedKeys:["/"===r?D.w:r]},u.join(""));return(0,s.jsx)("nav",{className:"menuContainer-teTlDu","aria-label":"Primary navigation",children:g})},fallbackComponent:()=>null,showSkeleton:!1}),F=e=>{let{enableRoutes:t}=e,{i18n:r}=(0,x.s9)(),n=(0,f.Zp)(),{setTheme:l,isLight:y,isDark:j}=(0,x.DP)(),v=[{value:a.TM.Cn,label:"中文"},{value:a.TM.En,label:"English"}];return(0,s.jsx)(i.A.Header,{className:"root-nAtwJx",children:(0,s.jsxs)(c.A,{className:"innerRoot-b2vAK8",children:[(0,s.jsx)(u.A,{className:"leftCol-n3WyJ5",children:(0,s.jsxs)("div",{className:"leftColInner-AB1JiD",children:[(0,s.jsx)("button",{type:"button",className:"logoButton-TKslN_","aria-label":"Go to Rsdoctor home",onClick:()=>{location.hash.includes(d.Kj.EH.Uploader)&&location.pathname.includes("/preview")?location.href="http://rsdoctor.rs":n(d.Kj.EH.Home)},children:(0,s.jsx)("img",{width:"1604",height:"380",src:y?"https://assets.rspack.rs/rsdoctor/rsdoctor-title-logo.png":"https://assets.rspack.rs/rsdoctor/rsdoctor-logo-dark.png",className:"rsdoctorLogo-O30iKB",alt:"Rsdoctor",draggable:!1})}),(0,s.jsx)(S,{})]})}),(0,s.jsx)(O,{style:{transition:"none"}},t?JSON.stringify(t):"default"),(0,s.jsx)(u.A,{className:"rightCol-jgHpb9",children:(0,s.jsxs)(c.A,{className:"rightColInner-nINgMT",children:[(0,s.jsx)(u.A,{children:(0,s.jsx)(g.EJ,{})}),(0,s.jsx)(u.A,{children:(0,s.jsx)(h.A,{className:"themeSwitch-qaSSKB","aria-label":j?"Use light theme":"Use dark theme",checkedChildren:"🌛",unCheckedChildren:"🌞",checked:j,onChange:e=>{l(e?a.Sx.Dark:a.Sx.Light)}})}),(0,s.jsx)(u.A,{children:(0,s.jsx)(p.A,{overlayStyle:{zIndex:1e3},menu:{items:v.map(e=>({label:e.label,key:e.value,onClick(){r.changeLanguage(e.value)}})),selectedKeys:[r.language]},children:(0,s.jsx)(m.Ay,{type:"text",className:"utilityButton-_PCcZS","aria-label":"Change language",icon:(0,s.jsx)(o.A,{})})})})]})})]})})};var $=r(23197);let G=(0,z.eN)({api:d.hp.uT.k.GetCompileProgress,responsePropName:"progress",Component:e=>{let{progress:t}=e;if(!t)return null;let{percentage:r=1,message:n}=t;if(r>=1)return null;let i=+(100*r).toFixed(1);return(0,s.jsx)(c.A,{wrap:!0,style:{width:"100%",position:"fixed",top:54,left:1,zIndex:99},children:(0,s.jsx)(u.A,{span:Math.min(Math.floor(24*r),24),children:(0,s.jsx)($.A,{percent:100,status:"active",size:"small",format:()=>(0,s.jsx)(v.A.Text,{style:{fontSize:12},type:"secondary",children:`${i}% ${n}`})})})})},fallbackComponent:()=>null,showSkeleton:!1});var q=r(17886),W=r(76274);let V=e=>{let{name:t}=e;return(0,n.useEffect)(()=>{t?document.title=`Rsdoctor - ${t}`:document.title="Rsdoctor"},[t]),null},U=e=>{let{isLight:t}=(0,x.DP)(),r=(0,x.al)(),o=(0,x.Ym)(),{i18n:c}=(0,x.s9)(),{children:u}=e,h=(0,x.xF)(),[p,m]=(0,n.useState)(()=>(0,x.TR)()||void 0);(0,n.useEffect)(()=>{let e=o;if(!(0,x.R7)()){(0,x.Yh)("1");let t=window.navigator.language.split("-")[0],r=(0,x.Z0)(t);Object.values(a.TM).includes(r)&&(e=r)}c.language!==e&&c.changeLanguage(e)},[o]),(0,n.useEffect)(()=>{m((0,x.TR)()||void 0)},[h]);let f=!(0,n.useContext)(q.Q).embedded;return(0,n.useLayoutEffect)(()=>{let e=document.documentElement;for(let[s,n]of Object.entries({"--spacing-base":"20px","--layout-nav-height":f?"54px":"0px","--color-bg-main":t?"":r.colorBgLayout,"--color-bg-box":r.colorBgContainer,"--color-bg-box-elevated":t?r.colorBgLayout:r.colorBgElevated,"--color-bg-box-subtle":t?r.colorBgContainer:"#0d1218","--color-border":r.colorBorder,"--color-border-secondary":r.colorBorderSecondary,"--color-divider":r.colorBorder,"--color-scrollbar":t?"rgba(0, 0, 0, 0.5)":"rgba(255,255,255, 0.5)","--text-color":r.colorText,"--text-color-secondary":r.colorTextSecondary,"--text-color-muted":r.colorTextTertiary,"--color-accent-subtle":t?"#e6f4ff":"rgba(47, 129, 247, 0.12)","--color-data-bundled":"#5b8ff9","--color-data-source":"#43c6d9","--color-data-gzip":"#f2b84b","--color-data-initial":"#43c6d9","--border-radius":r.borderRadius+"px","--border-radius-lg":r.borderRadiusLG+"px"}))e.style.setProperty(s,n)},[f,r,t]),(0,s.jsx)(z.zW,{api:d.hp.uT.n.GetProjectInfo,showSkeleton:!1,children:e=>(0,s.jsx)(W.h.Provider,{value:{project:e},children:(0,s.jsxs)(i.A,{children:[(0,s.jsx)(V,{name:e?.name}),f&&(0,s.jsx)(F,{enableRoutes:p}),(0,s.jsx)(G,{}),(0,s.jsxs)(i.A.Content,{className:"content-LBJ07l",children:[u,(0,s.jsx)(l.A.BackTop,{})]})]})})})}},75040(e,t,r){r.d(t,{h:()=>q});var s=r(64558),n=r(24761),i=r(87826),l=r(6755),a=r(54594),o=r(85326),d=r(50162),c=r(66482),u=r(50037),h=r(88693),p=r(80844),m=r(63598),f=r(30147),x=r(35074),g=r(60339),y=r(67782),j=r(1102),v=r(15061),b=r(36033),A=r(21290),w=r(46977),S=r(41611),k=r(98595),M=r(74374),C=r(7802),E=r(78593),T=r(79595),N=r.n(T),D=e=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:12,fill:"none",viewBox:"0 0 10 12",...e,children:[(0,s.jsx)("path",{fill:"#FAAD14",fillRule:"evenodd",d:"M3.151 7.98h-1.85a.925.925 0 0 1-.924-.925V1.508c0-.511.414-.925.925-.925h7.396c.511 0 .925.414.925.925v5.547c0 .51-.414.924-.925.924H6.85V6.13a1.85 1.85 0 0 0-3.698 0z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#FAAD14",d:"M4.076 9.829a.925.925 0 0 0 1.849 0V6.13a.925.925 0 0 0-1.85 0z"}),(0,s.jsx)("path",{fill:"#FAAD14",d:"M5 11.416 7.402 8.92H2.598z"})]}),z=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:"#F6FFED",rx:2}),(0,s.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.302 6.02a.925.925 0 0 0-.925.925v5.547c0 .51.414.925.925.925h7.396c.511 0 .925-.414.925-.925V6.945a.925.925 0 0 0-.925-.925zm5.547 0H6.151v1.85a1.85 1.85 0 0 0 3.698 0z",clipRule:"evenodd"}),(0,s.jsx)("path",{fill:"#52C41A",d:"M7.076 4.171a.925.925 0 0 1 1.849 0V7.87a.925.925 0 0 1-1.85 0z"}),(0,s.jsx)("path",{fill:"#52C41A",d:"m8 2.584 2.402 2.496H5.598z"})]}),L=e=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14",...e,children:(0,s.jsx)("path",{fill:"#2994FF",d:"M7 10.736 1.7 6.589a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197l5.097 3.989a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V6.687a.125.125 0 0 0-.202-.098zm0-4.75L1.7 1.839a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197L6.692 7.33a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V1.937a.125.125 0 0 0-.202-.098z"})}),I=r(73308),_=r(44506),R=r(91326),B=r(76174),P=r(60880),O=r(70851);let F=e=>{let{loader:t,resource:r,cwd:n}=e;return(0,s.jsx)(_.Zp,{title:"Loader Details",style:{border:"none"},extra:(0,s.jsx)(a.A,{icon:(0,s.jsx)(k.A,{}),color:"default",children:N()(t.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:(0,s.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[t.isPitch?(0,s.jsx)(c.A.Text,{code:!0,children:"pitch"}):null,(0,s.jsxs)(h.A,{size:"large",bordered:!0,children:[(0,s.jsxs)(h.A.Item,{children:[(0,s.jsx)(c.A.Text,{strong:!0,children:"File Path"}),(0,s.jsx)("div",{children:(0,b.Zb)(r.path,n)})]}),(0,s.jsxs)(h.A.Item,{children:[(0,s.jsx)(c.A.Text,{strong:!0,children:"Resource Path"}),(0,s.jsx)(R.hZ,{cwd:n,url:r.path,loc:"",disabled:!0})]}),(0,s.jsxs)(h.A.Item,{children:[(0,s.jsx)(c.A.Text,{strong:!0,children:"Resource Query"}),(0,s.jsx)("div",{children:r.queryRaw||"-"})]}),(0,s.jsxs)(h.A.Item,{children:[(0,s.jsx)(c.A.Text,{strong:!0,children:"Duration"}),(0,s.jsx)("div",{children:(0,b.a4)(t.costs)})]}),(0,s.jsxs)(h.A.Item,{children:[(0,s.jsx)(c.A.Text,{strong:!0,children:"Loader"}),(0,s.jsx)("div",{children:(0,s.jsx)(c.A.Text,{code:!0,children:t.loader})})]}),(0,s.jsxs)(h.A.Item,{children:[(0,s.jsx)(c.A.Text,{strong:!0,children:"Loader Index"}),(0,s.jsx)("div",{children:`${t.loaderIndex}`})]}),(0,s.jsxs)(h.A.Item,{children:[(0,s.jsx)(c.A.Text,{strong:!0,children:"Loader Path"}),(0,s.jsx)(R.hZ,{cwd:n,url:t.path,loc:"",disabled:!0})]}),(0,s.jsxs)(h.A.Item,{children:[(0,s.jsx)("div",{style:{width:180},children:(0,s.jsx)(c.A.Text,{strong:!0,children:"Options"})}),(0,s.jsx)(l.A,{type:"vertical"}),(0,s.jsx)(c.A.Paragraph,{ellipsis:{rows:2,expandable:!0,symbol:"more"},copyable:!0,children:JSON.stringify(t.options||"-")})]})]})]})})},$=e=>{let{loader:t,resource:r,isLight:n,codeData:i}=e,l=t.errors&&t.errors.length,a=i?.input||"",o=i?.output||"";return(0,s.jsx)("div",{style:{height:"100%"},children:l?(0,s.jsxs)(m.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,s.jsx)("div",{style:{padding:20,borderTop:`1px solid ${n?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${n?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,s.jsx)(B.h,{text:`the error stack of [${t.loader}] ${t.isPitch?"pitch":""}`})}),(0,s.jsx)("div",{style:{height:"90%"},children:(0,s.jsx)(I.Cv,{code:t.errors[0].message,lang:"javascript"})})]}):(0,s.jsxs)(m.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:20,borderBottom:`1px solid ${n?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:[(0,s.jsx)(B.h,{text:(0,s.jsxs)(s.Fragment,{children:[`the result of [${t.loader}] ${t.isPitch?"pitch":""}`,!t.isPitch&&(0,s.jsxs)("span",{style:{fontWeight:400},children:["(",(0,s.jsx)(D,{style:{verticalAlign:"middle",margin:"0 2px"}}),"Input ⟷",(0,s.jsx)(z,{style:{verticalAlign:"middle",position:"relative",top:-2}}),"Output)"]})]})}),(0,s.jsx)("div",{style:{flex:1}})]}),t.isPitch?o?(0,s.jsx)("div",{style:{height:"90%"},children:(0,s.jsx)(I.Cv,{isEmbed:!0,code:o,filePath:r.path})}):(0,s.jsx)(M.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,s.jsx)("div",{style:{minHeight:"700px"},children:(0,s.jsx)("div",{style:{height:"40rem",overflow:"hidden"},children:o||a?(0,s.jsx)(I.Mh,{isEmbed:!0,original:a,modified:o||"",originalFilePath:r.path,modifiedFilePath:r.path}):(0,s.jsx)(M.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})})]})})},G=e=>{let{data:t,cwd:r,index:n}=e,{loaders:l,resource:u}=t,[h,f]=(0,j.useState)(n||0),{isLight:x}=(0,b.DP)(),g=l[h],[y,v]=(0,j.useState)("loaderDetails"),A=(0,j.useCallback)(e=>{v(e)},[]);return(0,s.jsxs)(p.A,{className:P.A.executions,style:{height:"100%"},children:[(0,s.jsx)(m.A,{span:5,style:{borderRight:"1px solid var(--color-border-secondary)",padding:20},children:(0,s.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[(0,s.jsx)(B.h,{text:"Executions"}),(0,s.jsx)(C.A,{mode:"left",style:{marginTop:20},children:l.map((e,t,r)=>{let{loader:n,isPitch:i}=e,l=(0,b.a4)(e.costs);return(0,s.jsxs)(C.A.Item,{dot:i?(0,s.jsx)(a.A,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,s.jsx)(k.A,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,s.jsx)(p.A,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,s.jsx)(m.A,{span:24,className:P.A.timeline,children:(0,s.jsx)(d.A,{title:n,trigger:"hover",children:(0,s.jsxs)("div",{className:(0,O.A)(P.A.box,h===t&&P.A.selected),onClick:()=>{f(t)},style:{textAlign:"left"},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A.Text,{children:l.match(/[0-9]*\.?[0-9]+/g)?.[0]})," ",(0,s.jsx)(c.A.Text,{type:"secondary",children:l.match(/[a-zA-Z]+/g)})]}),(0,s.jsx)(c.A.Text,{className:P.A.loader,children:n})]})})})}),t===r.length-1?null:(0,s.jsx)("div",{style:{paddingTop:10},children:(0,s.jsx)(L,{})})]},t)})})]})}),(0,s.jsx)(m.A,{span:19,style:{height:"100%"},children:(0,s.jsx)(E.A,{type:"card",defaultActiveKey:"loaderDetails",activeKey:y,items:[{label:"Loader Props",key:"loaderProps",children:(0,s.jsx)(F,{loader:g,resource:u,cwd:r})},{label:"Loader Details",key:"loaderDetails",children:"loaderDetails"===y?(0,s.jsx)(S.zW,{api:i.hp.uT.n.GetLoaderFileInputAndOutput,body:{file:u.path,loader:g.loader,loaderIndex:g.loaderIndex},showSkeleton:!1,children:e=>(0,s.jsx)($,{loader:g,resource:u,isLight:x,codeData:e})}):null}],onChange:A})})]})},q=e=>{let{cwd:t,filetree:r}=e,[k,M]=(0,j.useState)(!1),[C,E]=(0,j.useState)(""),[T,N]=(0,j.useState)(0),[D,z]=(0,j.useState)(null),L=(0,j.useMemo)(()=>r.filter(t=>t.loaders.some(r=>(0,b.ak)(t.path,r.loader,e.filename,e.loaders,t.layer,e?.layer))),[e.filename,e.loaders,e.layer]),I="__RESOURCEPATH__",_=(0,j.useMemo)(()=>(0,b.Bq)({files:L.map(e=>e.path),cwd:t,fileTitle(e,t){let{loaders:i,layer:p}=r.find(t=>t.path===e),m=[];return i.forEach((e,t)=>t>3&&m.push(e)),(0,s.jsxs)("div",{style:{wordBreak:"break-all",display:"flex",cursor:"pointer"},onClick:()=>{N(0),E(e),M(!0)},children:[(0,s.jsx)("div",{className:P.A.box,children:(0,s.jsx)("div",{className:P.A.keywords,children:(0,s.jsx)(w.i,{text:t.replace(/\[.*?\]/g,""),keyword:""})})}),(0,s.jsx)("div",{className:P.A.dividerDiv,style:{flex:1},children:(0,s.jsx)(l.A,{className:P.A.divider,dashed:!0})}),p&&(0,s.jsx)(a.A,{color:"cyan",bordered:!1,children:p}),(0,s.jsxs)(o.A,{children:[i.slice(0,3).map((t,r)=>{let i=t.errors&&t.errors.length,o=`${e}_${t.loader}_${r}`;if(r<=3)return(0,s.jsx)(d.A,{title:t.path,children:(0,s.jsxs)(a.A,{onClick:t=>{t.stopPropagation(),E(e),N(r),M(!0)},className:P.A.textBox,style:{color:i?"#f50":"inherit"},children:[(0,s.jsx)(c.A.Text,{className:P.A.text,ellipsis:!0,children:t.loader.match(/([^/]+-loader)/g)?.[0]||t.loader}),(0,s.jsx)(l.A,{type:"vertical"}),i?(0,s.jsx)(n.A,{}):(0,s.jsx)(c.A.Text,{className:P.A.text,children:(0,b.a4)(t.costs)})]})},o)}),m?.length>0&&(0,s.jsx)(u.A,{content:(0,s.jsx)(h.A,{dataSource:m,renderItem:(t,r)=>{let n=t.errors&&t.errors.length,i=`${e}_${t.loader}_${r+3}`;return(0,s.jsx)(h.A.Item,{children:(0,s.jsx)(d.A,{title:t.path,children:(0,s.jsx)("div",{style:{paddingBottom:5},children:(0,s.jsxs)(a.A,{onClick:t=>{t.stopPropagation(),E(e),N(r),M(!0)},className:P.A.textBox,style:{color:n?"#f50":"inherit"},children:[(0,s.jsx)(c.A.Text,{className:P.A.text,ellipsis:!0,children:t.loader.match(/([^/]+-loader)/g)?.[0]||t.loader}),(0,s.jsx)(l.A,{type:"vertical"}),(0,s.jsx)(c.A.Text,{className:P.A.text,children:(0,b.a4)(t.costs)})]})})},i)})}}),children:(0,s.jsx)(a.A,{className:P.A.textBox,children:(0,s.jsx)(c.A.Text,{children:"···"})})})]})]})},dirTitle:(e,t)=>(0,s.jsx)("div",{style:{display:"flex",cursor:"pointer"},children:(0,s.jsx)(w.i,{text:t,keyword:""})})}),[L]);return(0,s.jsxs)(p.A,{style:{width:"100%",marginLeft:0},gutter:20,children:[(0,s.jsx)(m.A,{span:24,children:(0,s.jsxs)(f.A,{title:(0,s.jsxs)(o.A,{children:[(0,s.jsx)(c.A.Text,{strong:!0,children:"Files"}),(0,s.jsxs)(c.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Total Files: ",L.length]})]}),bodyStyle:{overflow:"auto",maxHeight:800,minHeight:"40rem",padding:14},children:[(0,s.jsx)(A.h,{defaultExpandedKeys:(0,b.ME)(_,L.length>=100?3:4,e=>!((0,y.Jt)(e,I).indexOf("/node_modules/")>-1)),treeData:_,onSelect:(e,t)=>{t.node.isLeaf||z(t.node)},selectedKeys:D?[D.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,s.jsx)(x.A,{open:k,onClose:()=>M(!1),maskClosable:!0,width:v.Y7,zIndex:999,bodyStyle:{padding:0},children:k?(0,s.jsx)(S.zW,{api:i.hp.uT.n.GetLoaderFileDetails,body:{path:C},children:e=>(0,s.jsx)(G,{data:e,cwd:t,index:T})}):null})]})}),(0,s.jsx)(x.A,{open:!!D,onClose:()=>z(null),maskClosable:!0,width:v.Y7,zIndex:999,bodyStyle:{padding:0},children:D&&(0,s.jsx)(p.A,{children:(0,s.jsx)(m.A,{span:24,children:(0,s.jsx)(f.A,{title:(0,s.jsx)(d.A,{title:j.cloneElement(D.title,{style:{color:"#fff"}}),children:(0,s.jsxs)(c.A.Text,{children:["Statistics of",D.title]})}),children:(0,s.jsx)(S.zW,{api:i.hp.uT.n.GetLoaderFolderStatistics,body:{folder:D[I]},children:e=>(0,s.jsx)(g.A,{style:{width:"100%",maxHeight:800,height:"40rem",overflowY:"scroll",wordBreak:"break-all"},pagination:!1,bordered:!0,rowKey:e=>e.loader,columns:[{title:"Loader Name",dataIndex:"loader"},{title:"Files",dataIndex:"files"},{title:"Total Duration",dataIndex:"costs",render:e=>(0,s.jsx)(c.A.Text,{strong:!0,children:(0,b.a4)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e})})})})})})]})}},41611(e,t,r){r.d(t,{ug:()=>s.u,zW:()=>p,eN:()=>m});var s=r(91307),n=r(64558),i=r(87826),l=r(304),a=r(68122),o=r(1102),d=r(67782),c=r(36033);r(15061);var u=r(82982),h=r(3534);let p=e=>{let{manifestLoader:t=c.Cj,api:r,children:s,body:p=null,showSkeleton:m=!0,fallbackComponent:f}=e,[x,g]=(0,o.useState)(),[y,j]=(0,o.useState)(1),[v,b]=(0,o.useState)({}),{loader:A}=(0,c.VX)(x);function w(e){window[i.YM.tQ]?k(e):t().then(e=>{g(e)}).catch(e=>{if(!("u"<typeof window)&&window.location.hash.includes(i.Kj.EH.Uploader)){console.warn("[ServerAPIProvider] Failed to load manifest for uploader route, continuing with empty manifest:",e),j(0);return}throw j(3),e}).then(()=>{k(e)})}let S=(0,o.useCallback)(e=>{let{req:t,res:s}=e;t.api===r&&((0,d.n4)(t.body,p)||h.AP.gD(t.body)&&h.AP.gD(p))&&!(0,d.n4)(v,s)&&b(s),j(0)},[v,r,p]);function k(e){e&&(Object.values(i.hp.uT.k).includes(r)?j(0):e.loadAPI(r,p).then(e=>{h.AP.gD(e)||(b(e),j(0))}).catch(e=>{console.error(e),j(3)}))}return((0,o.useEffect)(()=>{w(A)},[A,r,p]),(0,o.useEffect)(()=>{if(A)return A.onDataUpdate(r,p,S),()=>{A.removeOnDataUpdate(r,p,S)}},[A,r,p]),1===y)?m?(0,n.jsx)(l.A,{active:!0}):null:3===y?f||(0,n.jsx)(u.c,{retry:()=>{j(1),t(),w()}}):2===y?(0,n.jsx)(a.A,{spinning:!0,children:s(v)}):s(v)};function m(e){let{Component:t,api:r,responsePropName:s,body:i,fallbackComponent:l,showSkeleton:a}=e;return function(e){let{body:o=i,...d}=e;return(0,n.jsx)(p,{api:r,body:o,showSkeleton:a,fallbackComponent:l,children:e=>{let r={...d,[s]:e};return(0,n.jsx)(t,{...r})}})}}},91326(e,t,r){let s;r.d(t,{hZ:()=>y,L2:()=>m,bX:()=>f,jk:()=>p});var n=r(64558),i=r(66482),l=r(13078),a=r.n(l),o=r(3534),d=r(87826);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;s===e&&(s=void 0)}async function u(e){if(e){if(!s){let t=fetch(`${e}${d.hp.uT.n.Manifest}`).then(e=>e.ok?e.json():void 0).then(e=>{let r=function(e){if(e)try{return new URL(e,window.location.origin).searchParams.get("token")||void 0}catch{return}}(e?.__SOCKET__URL__);return r||c(t),r}).catch(()=>{c(t)});s=t}return s}}async function h(e,t,r,s,n){let i=`${e}:${t}:${r}`;try{let e="u">typeof window&&window.location?.origin?window.location.origin:"",t=await u(e);if(!t)return void n();let r=new URLSearchParams({file:i,editor:s,token:t}),l=await fetch(`${e}/__open-in-editor?${r}`,{method:"GET"});403===l.status&&c(),l.ok||n()}catch{n()}}function p(e){let{file:t,line:r=1,column:s=1,windowId:n}=e,i={windowId:n},l=Object.keys(i).map(e=>{let t=i[e];return o.AP.gD(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&");h(t,r,s,"code",()=>{let e=`vscode://file/${t}:${r}:${s}`;l&&(e+=`?${l}`),window.open(e)})}function m(e){let{file:t,line:r=1,column:s=1}=e;h(t,r,s,"cursor",()=>{window.open(`cursor://file/${t}:${r}:${s}`)})}function f(e){let{file:t,line:r=1,column:s=1}=e;h(t,r,s,"trae",()=>{window.open(`trae://file/${t}:${r}:${s}`)})}r(1102),r(8137);var x=r(36033);let g=+Date.now().toString().slice(-4)+1e3,y=e=>{let t,r,{cwd:s,url:l,loc:o,windowId:d=g,label:c,disabled:u,code:h=!1}=e,m=a().resolve(s,(t=l.split(" "),r="",1===t.length?[r]=t:[r]=t.filter(e=>a().isAbsolute(e)||e.startsWith("./")),r||l)),{line:f,columnStart:y}=function(e){if(!e)return{line:1,column:1};let[t,r=""]=e.split(":"),[s=1,n]=r.split("-");return{line:t,columnStart:s,columnEnd:n||s}}(o);return(0,n.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,n.jsx)(i.A.Text,{copyable:{text:m},children:(0,n.jsxs)(i.A.Text,{code:h,onClick:()=>{u||p({file:m,line:f,column:y,windowId:d})},style:{cursor:u?"revert":"pointer"},children:[c||(0,x.Ml)(l),o?`:${o}`:""]})}),(0,n.jsx)("div",{style:{display:"inline-block"}})]})}},51747(e,t,r){r.d(t,{F:()=>y});var s=r(64558),n=r(1102),i=r(70722),l=r(53919),a=r(66482),o=r(13616),d=r(80844),c=r(63598),u=r(52825),h=r(87467),p=r(7415);r(15061);var m=r(41611),f=r(87826);let x=e=>{let{style:t,onChange:r,loaderNames:d}=e,[c,h]=(0,n.useState)([]);return(0,s.jsxs)(i.A.Group,{compact:!0,style:t,children:[(0,s.jsxs)(l.Ay,{style:{width:120},children:[(0,s.jsx)(u.A,{}),(0,s.jsx)(a.A.Text,{children:"Loaders"})]}),(0,s.jsx)(o.A,{mode:"multiple",allowClear:!0,defaultValue:c,className:"loader-select",style:{width:300},popupMatchSelectWidth:300,placeholder:"select loaders",onChange:e=>{h(e),r(e)},children:d.map(e=>(0,s.jsx)(o.A.Option,{label:e,value:e,children:e},e))})]})},g=e=>{let{onChange:t,layers:r}=e,[d,c]=(0,n.useState)("");return(0,s.jsxs)(i.A.Group,{compact:!0,children:[(0,s.jsxs)(l.Ay,{style:{width:120},children:[(0,s.jsx)(u.A,{}),(0,s.jsx)(a.A.Text,{children:"Layers"})]}),(0,s.jsx)(o.A,{allowClear:!0,className:"layer-select",style:{width:150},defaultValue:d,placeholder:"select layer",onChange:e=>{c(e),t(e)},children:r?.length?r?.map(e=>(0,s.jsx)(o.A.Option,{label:e,value:e,children:e},e)):(0,s.jsx)(s.Fragment,{})})]})},y=e=>{let{onChange:t,loaderNames:r}=e,[i,l]=(0,n.useState)([]),[a,o]=(0,n.useState)(""),[u,y]=(0,n.useState)("");return(0,n.useEffect)(()=>{t({loaders:i,filename:a,layer:u})},[i,a,u]),(0,s.jsxs)(d.A,{style:{marginBottom:20,marginLeft:10},children:[(0,s.jsx)(c.A,{children:(0,s.jsx)(x,{loaderNames:r,style:{marginRight:20},onChange:e=>{l(e)}})}),(0,s.jsx)(c.A,{children:(0,s.jsx)(p.E,{icon:(0,s.jsx)(h.A,{}),style:{marginRight:20},label:"Filename",placeholder:"search filename by keyword",onChange:e=>{o(e)}})}),(0,s.jsx)(c.A,{children:(0,s.jsx)(m.zW,{api:f.hp.uT.n.GetLayers,children:e=>e.length?(0,s.jsx)(g,{layers:e,onChange:e=>{y(e)}}):(0,s.jsx)(s.Fragment,{})})})]})}},40879(e,t,r){var s=r(64558),n=r(74374),i=r(85326),l=r(66482),a=r(53919);let o=r(1102).memo(e=>{let{title:t="Load data failed, please try again",buttonText:r="retry",retry:o}=e;return(0,s.jsx)(n.A,{description:(0,s.jsxs)(i.A,{direction:"vertical",children:[(0,s.jsx)(l.A.Text,{children:t}),(0,s.jsx)(a.Ay,{type:"primary",onClick:()=>{o()},children:r})]})})});r.d(t,{},{c:o})},68062(e,t,r){r.d(t,{P6:()=>j,hX:()=>v});var s=r(64558),n=r(26168),i=r(53919),l=r(35074),a=r(1102),o=r(50162),d=r(85326),c=r(66482),u=r(80844),h=r(63598),p=r(87826),m=r(18508),f=r(3534);r(15061);var x=r(9926),g=r(41611);let y=e=>{let{duplicatePackages:t=[],cwd:r,children:n,...i}=e;return(0,s.jsx)(v,{...i,buttonStyle:{fontSize:"inherit",...i.buttonStyle},buttonProps:{type:"text",...i.buttonProps},text:(0,s.jsx)(o.A,{title:"Click to show the details of duplicate packages",children:(0,s.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,s.jsx)(c.A.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...i.textStyle},children:t.length}),(0,s.jsx)(m.A,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...i.drawerProps},children:(0,s.jsx)(u.A,{gutter:[20,20],children:t.map((e,t)=>(0,s.jsx)(h.A,{span:24,children:(0,s.jsx)(x.ZZ,{data:e,cwd:r,getPackageRelationContentComponent:n})},t))})})},j=e=>{let{moduleGraph:t,...r}=e;return(0,s.jsx)(y,{...r,children:e=>(0,s.jsx)(g.zW,{api:p.hp.uT.n.GetModuleCodeByModuleIds,body:{moduleIds:t.modules.map(e=>e.id)},children:n=>(0,s.jsx)(x.aM,{data:f.Wh.X(t.modules,t.dependencies,r.cwd,e.package.dependencies,n),cwd:r.cwd})})})},v=e=>{let[t,r]=(0,a.useState)(!1);return(0,s.jsxs)("div",{onClick:e=>e.stopPropagation(),...e.containerProps,children:[e.button?(0,s.jsx)("div",{onClick:()=>r(!t),children:e.button}):e.text?(0,s.jsx)(i.Ay,{type:"link",...e.buttonProps,onClick:()=>r(!t),style:{padding:0,...e.buttonStyle},children:e.text}):(0,s.jsx)(n.A,{style:{fontSize:14,padding:0},onClick:()=>r(!t)}),(0,s.jsx)(l.A,{maskClosable:!0,zIndex:999,width:"60%",...e.drawerProps,open:t,onClose:()=>r(!1),destroyOnClose:!0,children:e.children})]})}},76174(e,t,r){var s=r(64558);r(1102);var n=r(66482),i=r(67782);r.d(t,{},{h:e=>{let{upperFirst:t=!0,fontSize:r=16,text:l,hash:a}=e,o="string"==typeof l&&t?(0,i.Zb)(l):l;return(0,s.jsx)(n.A.Text,{style:{fontSize:r},strong:!0,children:a?(0,s.jsx)("a",{href:a,id:a.replace(/^#/,""),style:{color:"inherit"},children:o}):o})}})},70403(e,t,r){r.d(t,{Cv:()=>u});var s=r(64558),n=r(89797),i=r(70851),l=r(1102),a=r(75232),o=r(97173),d=r(3534),c=r(36033);function u(e){let{className:t,style:r,code:u="",lang:h,filePath:p="",defaultLine:m,ranges:f,isEmbed:x=!1,headerVisible:g=!0,isLightTheme:y,formatOnMount:j=!1}=e,{isLight:v}=(0,c.DP)(),b=(0,l.useRef)(void 0),A=(0,l.useRef)(void 0),w=(0,l.useMemo)(()=>h||(0,a.rZ)(p)||"plaintext",[h,p]),[S,k]=(0,l.useState)(!0),M=(0,l.useMemo)(()=>(0,a.$N)({wordWrap:S?"on":"off"}),[S]),C=(0,l.useCallback)((e,t)=>{b.current=e,A.current=t,(0,a.sK)(e,t,f),d.AP.Et(m)&&setTimeout(()=>{e.revealLine(m)}),j&&setTimeout(()=>{e.getAction("editor.action.formatDocument")?.run()},0)},[f,m,j]);return(0,l.useEffect)(()=>()=>{b.current?.setModel(null)},[]),(0,s.jsxs)("div",{className:(0,i.A)("monaco-component","code-viewer","code-viewer-H7hGrZ",x&&"embed-tjljOS",t),style:r,children:[g&&!!p&&(0,s.jsxs)("div",{className:"header-qejtwX",children:[(0,s.jsx)("div",{children:(0,a.WP)(p)}),(0,s.jsx)("div",{style:{flex:1}}),(0,s.jsx)("div",{children:(0,s.jsx)(o.A,{className:"text-T29bd1",title:"side-by-side",checked:S,onChange:e=>{k(e.target.checked)},children:"word-wrap"})})]}),(0,s.jsx)("div",{className:(0,i.A)("content-EVSW1C","editor-wrap"),children:(0,s.jsx)(n.KE,{theme:y??v?"vs-light":"vs-dark",language:w,value:u,options:M,onMount:C})})]})}r(81650)},75232(e,t,r){var s=r(13078);function n(e){if(!e)return"";let t=function(e){if(!e)return"";try{if(!e.startsWith("data:"))return"";let{mimeType:t}=function(e){if(!e.startsWith("data:"))throw Error("输入不是有效的 Data URL");let t=e.substring(5),r=t.indexOf(",");if(-1===r)throw Error("无效的 Data URL 格式: 缺少数据分隔符");let s=t.substring(0,r),n=t.substring(r+1),i="",l="",a=!1,o=s.split(";");o.length>0&&(i=o[0]||"text/plain");for(let e=1;e<o.length;e++){let t=o[e];"base64"===t?a=!0:t.startsWith("charset=")&&(l=t.substring(8))}return{mimeType:i,charset:l,isBase64:a,data:n}}(e);switch(t){case"text/javascript":return"javascript";case"text/html":return"html";case"text/css":return"css";case"text/plain":return"text";case"application/json":return"json";default:return""}}catch(e){return console.error("解析 data 协议文件格式失败::",e),""}}(e);if(t)return t;try{let t=(0,s.extname)(e).slice(1);switch(t){case"js":case"cjs":case"mjs":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";case"md":return"markdown";default:return t}}catch{return""}}let i={readOnly:!0,domReadOnly:!0,fontSize:14,tabSize:2,lineHeight:24,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"on",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1},contextmenu:!1,gotoLocation:{multiple:"goto",multipleDefinitions:"goto",multipleTypeDefinitions:"goto",multipleDeclarations:"goto",multipleImplementations:"goto",multipleReferences:"goto"},hover:{enabled:!1},links:!1};function l(e){return{...structuredClone(i),...e}}function a(e){return e?e.startsWith("data:")?"data":e.split("/").at(-1)||"":""}function o(e,t){let{start:r,end:s}=e,{line:n=1,column:i=0}=r;return new t(n,i+1,s?.line??n,(s?.column??9999)+1)}function d(e,t,r){if(!r||0===r.length)return;let s=r.map(e=>({range:o(e,t.Range),options:{inlineClassName:"file-inline-decoration"}}));e.deltaDecorations([],s),setTimeout(()=>{e.revealLine(s[0].range.startLineNumber)})}r.d(t,{$N:()=>l,WP:()=>a,qK:()=>o,rZ:()=>n,sK:()=>d},{XX:i})},73308(e,t,r){r.d(t,{Cv:()=>s.Cv,Mh:()=>h});var s=r(70403),n=r(64558),i=r(89797),l=r(97173),a=r(70851),o=r(1102),d=r(75232);let c={...structuredClone(d.XX),readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderSideBySideInlineBreakpoint:1,renderIndicators:!0,definitionLinkOpensInPeek:!1,domReadOnly:!0,minimap:{enabled:!1},diffWordWrap:"on",folding:!1,lineNumbersMinChars:3,renderLineHighlight:"none",matchBrackets:"never",diffAlgorithm:"advanced",ignoreTrimWhitespace:!0,renderOverviewRuler:!0,renderLineHighlightOnlyWhenFocus:!0,smoothScrolling:!0,letterSpacing:.5};var u=r(36033);function h(e){let{className:t,style:r,original:s="",modified:h="",originalFilePath:p="",modifiedFilePath:m="",originalLang:f,modifiedLang:x,isEmbed:g=!1,isLightTheme:y,headerVisible:j=!0}=e,{isLight:v}=(0,u.DP)(),[b,A]=(0,o.useState)(!0),w=(0,o.useRef)(void 0),S=(0,o.useMemo)(()=>f||(0,d.rZ)(p)||"plaintext",[f,p]),k=(0,o.useMemo)(()=>x||(0,d.rZ)(m)||"plaintext",[x,m]),M=(0,o.useMemo)(()=>{var e;return e={renderSideBySide:b},{...structuredClone(c),...e}},[b]),C=(0,o.useCallback)(e=>{w.current=e},[]);return(0,o.useEffect)(()=>()=>{w.current?.setModel(null)},[]),(0,n.jsxs)("div",{className:(0,a.A)("monaco-component","diff-viewer","diff-viewer-CczjmT",g&&"embed-VNMDA8",t),style:r,children:[j&&(0,n.jsxs)("div",{className:"header-VBdMD0",children:[(0,n.jsx)("div",{children:(0,d.WP)(p)}),(0,n.jsx)("div",{style:{flex:1}}),(0,n.jsx)("div",{children:(0,n.jsx)(l.A,{className:"text-Pi6YdN",title:"side-by-side",checked:b,onChange:e=>{A(e.target.checked)},children:"side-by-side"})})]}),(0,n.jsx)("div",{className:(0,a.A)("content-BsfSuD","editor-wrap"),children:(0,n.jsx)(i.zC,{theme:y??v?"vs-light":"vs-dark",originalLanguage:S,modifiedLanguage:k,original:s,modified:h,width:"100%",options:M,onMount:C})})]})}},17886(e,t,r){var s=r(1102),n=r(10815),i=r(15061);let l={locale:(0,n.U)(),theme:(0,n.DT)(),pageState:i.jK.Pending,viewMode:(0,n.oi)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},a=(0,s.createContext)({...l});r.d(t,{},{Q:a,s:l})},15061(e,t,r){var s,n,i,l,a=((s={}).Light="light",s.Dark="dark",s),o=((n={})[n.Success=0]="Success",n[n.Pending=1]="Pending",n[n.Fail=2]="Fail",n),d=((i={}).Cn="cn",i.En="en",i),c=((l={})[l.BasePadding=20]="BasePadding",l[l.BaseBorderRadius=8]="BaseBorderRadius",l[l.NavBarHeight=54]="NavBarHeight",l);let u="u"<typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100;r.d(t,{Sx:()=>a,TM:()=>d,jK:()=>o,or:()=>c},{Y7:u})},28009(e,t,r){r.d(t,{YW:()=>ex,wE:()=>ef});var s,n,i=r(64558),l=r(1102),a=r(36187),o=r(50162),d=r(85326),c=r(30147),u=r(66482),h=r(6755),p=r(53919),m=r(11063),f=r(78593),x=r(64345),g=r(8939),y=r(87826);r(15061);var j=r(80844),v=r(63598),b=r(1637),A=r(36033),w=r(68062),S=r(74374),k=r(13616),M=r(60339),C=r(67782),E=r(54594),T=r(87467),N=r(7415),D=r(35998),z=r(17076),L=r(73308);let I=e=>{let{file:t,data:r}=e,[s,n]=(0,l.useState)(r[0].group),a=r.find(e=>e.group===s);return(0,i.jsxs)(j.A,{wrap:!0,gutter:[20,20],style:{height:"100%",alignContent:"flex-start"},children:[r.length>1?(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(z.A,{value:s,options:r.map(e=>e.group),onChange:e=>n(e)})}):null,a?(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(v.A,{span:24,children:(0,i.jsxs)(u.A.Text,{strong:!0,children:[a.baselineTitle||"Baseline"," ⟷"," ",a.currentTitle||"Current"]})}),(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(L.Mh,{originalFilePath:t,modifiedFilePath:t,original:a.baseline||"",modified:a.current||""})})]},s):null]})},_=e=>{let{text:t="View Changes",...r}=e;return(0,i.jsx)(w.hX,{text:t,buttonProps:{size:"small",icon:(0,i.jsx)(D.A,{})},drawerProps:{destroyOnClose:!0,title:`Content diff for "${r.file}"`},children:(0,i.jsx)(I,{...r})})};var R=((s={}).New="New",s.Changed="Changed",s.Deleted="Deleted",s.NotChanged="Not Changed",s),B=((n={}).Name="Sorted by Name",n.Size="Sorted by Size",n.Delta="Sorted by Delta",n),P=r(8857),O=r(51125),F=r(70722);let $=(e,t,r,s)=>(0,i.jsx)(i.Fragment,{children:t-e==0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(u.A.Text,{strong:!0,style:{color:r===y.Kj.Ol.Up?"#e17055":"#52c41a",...s},children:[r===y.Kj.Ol.Up?"+":"-",(0,A.Xq)(Math.abs(t-e))]})});var G=r(3534);let q=/[a-fA-F0-9]{20,}/,W=(e,t,r)=>{let s=r?(e,r)=>(e.current?.size[t]||0)-(e.baseline?.size[t]||0)-(r.current?.size[t]||0)+(r.baseline?.size[t]||0):(r,s)=>(r[e]?.size[t]||0)-(s[e]?.size[t]||0);return{width:200,sorter:(e,t)=>s(e,t),render:(r,s)=>{if(!s[e])return"-";let n=s[e].size[t];return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,A.Xq)(n)}),"current"===e?$(s.baseline?.size[t]||0,n,(s.baseline?.size[t]||0)>n?y.Kj.Ol.Down:y.Kj.Ol.Up):null]})}}},V=(e,t,r)=>{let[s,n]=(0,l.useState)(!1),a="baseline"===e;return{title:()=>{let s=a?t:r,n=(0,C.Zb)(e),l=G.TS.Nt(t,r);return(0,i.jsxs)("div",{children:[(0,i.jsx)(u.A.Text,{children:n}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:[n," modules is ",s]}),a?null:(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Percent is ",(0,A.l9)(l.percent)]})]}),children:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:s}),(0,i.jsx)(x.A,{})]})})]})},children:[{title:"Source Size",...W(e,"sourceSize",s)},{title:"Parsed Size",defaultSortOrder:a?void 0:"descend",...W(e,"parsedSize",s)}],filterSearch:!0,filters:[{text:"Show Changed",value:R.NotChanged},{text:"Show All",value:"All"}],onFilter:(e,t)=>(e===R.NotChanged?n(!0):n(!1),e!==R.NotChanged||H(t)!==e)}},U=e=>{let{data:t,baseline:r,current:s}=e,{modules:n}=r.moduleGraph,{modules:a}=s.moduleGraph,{chunks:c}=r.chunkGraph,{chunks:m}=s.chunkGraph,f=r.root,g=s.root,[y,j]=(0,l.useState)(""),v=(0,l.useRef)(null),b=(e,t)=>{t(),j(e[0])},w="__is_baseline__",S=(0,l.useMemo)(()=>t.baseline?G.TS.Xm(t.baseline,c,n).map(e=>({...e,[w]:!0})).filter(e=>!e.concatenationModules?.length):[],[t,r]),k=(0,l.useMemo)(()=>t.current?G.TS.Xm(t.current,m,a).map(e=>({...e,[w]:!1})).filter(e=>!e.concatenationModules?.length):[],[t,s]),C=e=>(0,A.Rz)(e.path,e.__is_baseline__?f:g),T=(0,l.useMemo)(()=>{let e=[...S,...k],t=new Map;return e.forEach(e=>{let r=e.identifier?.replace(q,"")||e.path?.replace(q,""),s=t.get(r);s||(s={path:r}),e[w]?s.baseline=e:s.current=e,t.set(r,s)}),[...t.values()]},[S,k,y]),{bModulesCount:N,cModulesCount:D,totalCount:z}=(0,l.useMemo)(()=>{let e=e=>C(e).alias.indexOf(y)>-1,t=T.filter(e=>e.baseline),r=T.filter(e=>e.current),s=T.length;return y&&(t=t.filter(e),r=r.filter(e),s=T.filter(e).length),{bModulesCount:t.length,cModulesCount:r.length,totalCount:s}},[T,y]);return(0,i.jsx)(M.A,{dataSource:T,rowKey:e=>e.path,size:"small",pagination:{size:"small"},bordered:!0,scroll:{x:1500},columns:[{fixed:"left",title:()=>(0,i.jsxs)("div",{children:[(0,i.jsxs)(u.A.Text,{children:["Modules of ",`"${t.alias}"`]}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered modules: ",z]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total modules: ",T.length]})]}),children:[(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[z,"/",T.length]}),(0,i.jsx)(x.A,{})]})]}),filterDropdown(e){let{setSelectedKeys:t,selectedKeys:r,confirm:s,clearFilters:n}=e;return(0,i.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,i.jsx)(F.A,{ref:v,placeholder:"Search by file name",value:r[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>b(r,s),style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(p.Ay,{type:"primary",onClick:()=>b(r,s),icon:(0,i.jsx)(O.A,{}),size:"small",style:{width:90},children:"Search"}),(0,i.jsx)(p.Ay,{onClick:()=>{n&&(n(),j("")),t([]),b([],s)},size:"small",style:{width:90},children:"Reset"})]})]})},filterSearch:!0,filterIcon:e=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{type:y?void 0:"secondary",style:{fontWeight:400},children:y||"Search by file name"}),(0,i.jsx)(O.A,{style:{color:e?"#1677ff":void 0}})]}),onFilterDropdownOpenChange:e=>{e&&setTimeout(()=>v.current?.focus(),100)},onFilter:(e,t)=>C(t).alias.indexOf(e)>-1,render:(e,t)=>{let{alias:r,inNodeModules:s}=C(t);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(u.A.Text,{copyable:{text:t.path},children:r})}),s?(0,i.jsx)(E.A,{color:"warning",children:"node_modules"}):null,(0,i.jsx)(K,{type:H(t)})]})}},V("current",N,D),V("baseline",N,D),{title:"Actions",width:200,render:(e,t)=>(0,i.jsx)(d.A,{direction:"vertical",style:{maxWidth:170},children:(0,i.jsx)(_,{text:"View Changes",file:t.path,data:[{baseline:r.moduleCodeMap[t.baseline?.id]?.source,current:s.moduleCodeMap[t.current?.id]?.source,group:"Source"},{baseline:r.moduleCodeMap[t.baseline?.id]?.transformed,current:s.moduleCodeMap[t.current?.id]?.transformed,group:"Transformed Source"},{baseline:r.moduleCodeMap[t.baseline?.id]?.parsedSource,current:s.moduleCodeMap[t.current?.id]?.parsedSource,group:"Parsed Source"}]})})}]})};function H(e){if(e.baseline&&!e.current)return R.Deleted;if(!e.baseline&&e.current)return R.New;if(e.baseline&&e.current)return e.baseline.size.sourceSize===e.current.size.sourceSize&&e.baseline.size.parsedSize===e.current.size.parsedSize?R.NotChanged:R.Changed;throw Error("Update Type not match")}let K=e=>{let{type:t}=e;return t===R.NotChanged?(0,i.jsx)(o.A,{title:"It hasn't changed between Baseline and Current",children:(0,i.jsx)(E.A,{color:"success",children:"Not Changed"})}):t===R.Changed?(0,i.jsx)(o.A,{title:"It has been changed between Baseline and Current",children:(0,i.jsx)(E.A,{color:"warning",children:"Changed"})}):t===R.New?(0,i.jsx)(o.A,{title:"It is created in Current",children:(0,i.jsx)(E.A,{color:"error",children:"New"})}):t===R.Deleted?(0,i.jsx)(o.A,{title:"It has been deleted in Current",children:(0,i.jsx)(E.A,{color:"error",children:"Deleted"})}):null},J=e=>{let{baseline:t,current:r}=e,s=(0,l.useMemo)(()=>(0,A.CL)(t.moduleGraph.modules),[t]),n=(0,l.useMemo)(()=>(0,A.CL)(r.moduleGraph.modules),[r]),a=t.chunkGraph.chunks,c=r.chunkGraph.chunks,p=t.root,m=r.root,[f,g]=(0,l.useState)(),[y,b]=(0,l.useState)([]),w=(0,l.useMemo)(()=>{let e={};return s.forEach(t=>{let r=t.identifier?.replace(q,"")||t.path?.replace(q,"");e[r]?console.warn("[Baseline Module Exists]: ",t,e):e[r]={path:r,baseline:t}}),n.forEach(t=>{let r=t.identifier?.replace(q,"")||t.path?.replace(q,"");e[r]||(e[r]={path:r}),e[r].current=t}),Object.values(e)},[s,n]),S=(0,l.useMemo)(()=>{let e=w.slice();return f&&(e=e.filter(e=>e.path.indexOf(f)>-1)),y.length&&(e=e.filter(e=>y.includes(H(e)))),e},[w,f,y]),{bFilteredModulesLength:D,cFilteredModulesLength:z}=(0,l.useMemo)(()=>({bFilteredModulesLength:S.filter(e=>e.baseline).length,cFilteredModulesLength:S.filter(e=>e.current).length}),[S]);return(0,i.jsxs)(j.A,{gutter:[20,20],children:[(0,i.jsx)(v.A,{span:24,children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(N.E,{icon:(0,i.jsx)(T.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by name",onChange:e=>{g(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{b(e)}})]})}),(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},scroll:{x:1700},dataSource:S,rowKey:e=>e.path,columns:[{fixed:"left",title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered modules is ",S.length," (Current & Baseline)"]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total modules is ",w.length," (Current & Baseline)"]})]}),children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Modules"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[S.length,"/",w.length]}),(0,i.jsx)(x.A,{})]}),render:(e,t)=>{let{alias:r,inNodeModules:s}=(0,A.Rz)(t.path,t.baseline?p:m);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(u.A.Text,{copyable:{text:t.path},children:r})}),(0,i.jsx)(K,{type:H(t)}),s?(0,i.jsx)(E.A,{color:"warning",children:"node_modules"}):null]})}},V("current",D,z),V("baseline",D,z),{title:"in Assets",render:(e,t)=>{let r=[],s=[];return(t.current&&G.TS.QZ(t.current,c).forEach(e=>e.assets.forEach(e=>s.push(e))),t.baseline&&G.TS.QZ(t.baseline,a).forEach(e=>e.assets.forEach(e=>r.push(e))),r.length||s.length)?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,C.sb)(s).filter(Boolean).map(e=>(0,i.jsx)(P.Ex,{label:"Current",value:e},`c_${e}`)),(0,C.sb)(r).filter(Boolean).map(e=>(0,i.jsx)(P.Ex,{label:"Baseline",value:e},`b_${e}`))]}):null}},{title:"Actions",width:200,render:(e,s)=>{let n=H(s)===R.Changed;return(0,i.jsxs)(d.A,{direction:"vertical",style:{maxWidth:170},children:[n?(0,i.jsx)(_,{text:"View Changes",file:s.path,data:[{baseline:t.moduleCodeMap[s.baseline?.id]?.source,current:r.moduleCodeMap[s.current?.id]?.source,group:"Source"},{baseline:t.moduleCodeMap[s.baseline?.id]?.transformed,current:r.moduleCodeMap[s.current?.id]?.transformed,group:"Transformed Source"},{baseline:t.moduleCodeMap[s.baseline?.id]?.parsedSource,current:r.moduleCodeMap[s.current?.id]?.parsedSource,group:"Parsed Source"}]}):null,s?.current?(0,i.jsx)(_,{text:"Current Result Viewer",file:s.path,data:[{baseline:r.moduleCodeMap[s.current.id]?.source,current:r.moduleCodeMap[s.current.id]?.transformed,baselineTitle:"Current Source",currentTitle:"Current Transformed Source",group:"Transformed Source"},{baseline:r.moduleCodeMap[s.current.id]?.source,current:r.moduleCodeMap[s.current.id]?.parsedSource,baselineTitle:"Current Source",currentTitle:"Current Parsed Source",group:"Parsed Source"}]}):null]})}}]})})]})},Y=e=>e.baseline&&e.current?e.baseline.map(e=>e.version).sort().join()===e.current.map(e=>e.version).sort().join()?R.NotChanged:R.Changed:e.baseline||e.current?e.baseline&&!e.current?R.Deleted:R.New:R.NotChanged,Z=e=>Y(e)!==R.NotChanged,X=e=>{let{dataSource:t}=e,{newCount:r,deleteCount:s,changedCount:n}=(0,l.useMemo)(()=>({newCount:t.filter(e=>e.updateType===R.New).length,deleteCount:t.filter(e=>e.updateType===R.Deleted).length,changedCount:t.filter(e=>e.updateType===R.Changed).length}),[t]);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(P.Ex,{label:"New",value:r,type:r>0?"error":"default",tooltip:`Current has ${r} packages which not found in Baseline`}),(0,i.jsx)(P.Ex,{label:"Deleted",value:s,type:s>0?"error":"default",tooltip:`Current delete ${s} packages than Baseline`}),(0,i.jsx)(P.Ex,{label:"Changed",value:n,type:n>0?"error":"default",tooltip:`Current has ${n} changed packages than Baseline`})]})},Q=e=>{let{baseline:t,current:r}=e,{packages:s=[]}=t||{},{packages:n=[]}=r||{},i={},l=(e,t)=>{i[e.name]||(i[e.name]={name:e.name,updateType:R.NotChanged}),i[e.name][t]||(i[e.name][t]=[]),i[e.name][t].push(e)};s.forEach(e=>l(e,"baseline")),n.forEach(e=>l(e,"current"));let a=[],o=[];return Object.values(i).forEach(e=>{Z(e)?a.push(e):o.push(e)}),a.concat(o).map(e=>({...e,updateType:Y(e)}))},ee=e=>{let{baseline:t,current:r}=e,{packages:s=[]}=t||{},{packages:n=[]}=r||{};if(!s.length&&!n.length)return(0,i.jsx)(S.A,{});let a=(0,l.useMemo)(()=>(0,C.sb)(s.concat(n).map(e=>e.name)),[s,n]),[c,p]=(0,l.useState)([]),[m,f]=(0,l.useState)([]),x=(0,l.useMemo)(()=>Q({baseline:t,current:r}),[t,r]),g=(0,l.useMemo)(()=>x.filter(e=>m.length?m.indexOf(e.updateType)>-1:!c.length||c.indexOf(e.name)>-1),[x,c,m]);return(0,i.jsxs)(j.A,{gutter:[20,20],children:[(0,i.jsx)(v.A,{span:24,style:{marginTop:16},children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by package names",style:{width:400},options:a.map(e=>{let t=x.find(t=>t.name===e);return t&&Z(t)?{label:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:e}),(0,i.jsx)(K,{type:Y(t)})]}),value:e}:{label:e,value:e}}),allowClear:!0,onChange:e=>{p(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{f(e)}})]})}),(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:g,rowKey:e=>e.name,columns:[{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:"Package Name"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:`Filtered Package Count is ${g.length}, Total Package Count is ${x.length}`,children:(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:[g.length," / ",x.length]})})]}),render:(e,t)=>t.updateType!==R.NotChanged?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:t.name}),(0,i.jsx)(K,{type:t.updateType})]}):t.name},{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:"Current"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(X,{dataSource:x})]}),children:[{title:"Version",render:(e,t)=>t.current?(0,i.jsx)(d.A,{direction:"vertical",children:t.current.map(e=>(0,i.jsx)(P.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===R.Deleted?"error":t.updateType===R.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{let r=(0,C.xu)(t.current,e=>e.size.parsedSize),s=()=>(0,i.jsx)(b.vh,{baseline:(0,C.xu)(t.baseline,e=>e.size.parsedSize),current:r});return t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{strong:t.updateType!==R.NotChanged,children:(0,A.Xq)(r)}),(0,i.jsx)(s,{})]}):(0,i.jsx)(s,{})}}]},{title:"Baseline",children:[{title:"Version",render:(e,t)=>t.baseline?(0,i.jsx)(d.A,{direction:"vertical",children:t.baseline.map(e=>(0,i.jsx)(P.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===R.Deleted?"error":t.updateType===R.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{if(t.baseline){let e=(0,C.xu)(t.baseline,e=>e.size.parsedSize);return(0,i.jsx)(u.A.Text,{children:(0,A.Xq)(e)})}return null}}]}]})})]})},et=e=>{let{baseline:t,current:r,assetsDiffResult:s}=e,n=(0,A.CL)(t.moduleGraph.modules),l=(0,A.CL)(r.moduleGraph.modules),a=(0,A.sO)(t.errors),o=(0,A.sO)(r.errors),c=(0,A.yC)(t.moduleGraph),h=(0,A.yC)(r.moduleGraph),p=t.root,m=r.root,f=Q({baseline:t.packageGraph,current:r.packageGraph}),x=[{title:["Bundle Size"],value:[s.all.total]},{title:["Total JS","Initial JS"],value:[s.js.total,s.js.initial]},{title:["Total CSS","Initial CSS"],value:[s.css.total,s.css.initial]},{title:["Images","Fonts","Media"],value:[s.imgs.total,s.fonts.total,s.media.total]},{title:["HTML"],value:[s.html.total]},{title:["Others"],value:[s.others.total]}];return(0,i.jsxs)(j.A,{gutter:[20,20],wrap:!0,style:{marginBottom:20},children:[x.map(e=>(0,i.jsx)(v.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:e.title,datas:e.value,showPercentInTitle:!0})},e.title.join(","))),(0,i.jsx)(v.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:["Duplicate Packages"],datas:[{size:{baseline:a.length,current:o.length},count:{baseline:a.length,current:o.length},percent:0,state:y.Kj.Ol.Equal}],formatter:(e,s)=>(0,i.jsx)(w.P6,{duplicatePackages:"baseline"===s?a:o,moduleGraph:"baseline"===s?c:h,cwd:"baseline"===s?p:m,buttonProps:{size:"small"},moduleCodeMap:"baseline"===s?t.moduleCodeMap:r.moduleCodeMap})})}),(0,i.jsx)(v.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:["Modules"],datas:[{size:{baseline:n.length,current:l.length},count:{baseline:n.length,current:l.length},percent:0,state:y.Kj.Ol.Equal}],formatter:(e,t)=>{if("baseline"===t)return e;let r=G.TS.Nt(n.length,l.length);return(0,i.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit"},children:e}),(0,i.jsx)(b.QE,{...r})]})}})}),(0,i.jsx)(v.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{style:{color:"inherit"},children:"Packages"}),(0,i.jsx)(X,{dataSource:f})]},"0")],datas:[{size:{baseline:f.filter(e=>e.baseline).length,current:f.filter(e=>e.current).length},count:{baseline:f.filter(e=>e.baseline).length,current:f.filter(e=>e.current).length},percent:0,state:y.Kj.Ol.Equal}],formatter:(e,t)=>"baseline"===t?e:(0,i.jsx)(d.A,{children:e})})})]})},er=e=>{let{assetsDiffResult:t}=e,r=[{type:"JS",data:t.js},{type:"CSS",data:t.css},{type:"Imgs",data:t.imgs},{type:"Fonts",data:t.fonts},{type:"Media",data:t.media},{type:"HTML",data:t.html},{type:"Others",data:t.others}];return(0,i.jsx)(M.A,{bordered:!0,pagination:!1,dataSource:r,rowKey:e=>e.type,style:{marginTop:15},columns:[{title:"File Type",dataIndex:"type",key:"type",render:e=>(0,i.jsx)(u.A.Text,{strong:!0,children:e})},{title:"Size",dataIndex:"data",key:"size",children:[{title:"Current",dataIndex:"data",key:"csize",render:e=>{let t=(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(u.A.Text,{strong:!0,children:(0,A.Xq)(e.total.size.current)}),(0,i.jsx)(b.QE,{percent:e.total.percent,state:e.total.state}),$(e.total.size.baseline,e.total.size.current,e.total.state)]});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Initial"}),(0,i.jsx)(u.A.Text,{strong:!0,children:(0,A.Xq)(e.initial.size.current)}),(0,i.jsx)(b.QE,{percent:e.initial.percent,state:e.initial.state}),$(e.initial.size.baseline,e.initial.size.current,e.initial.state)]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bsize",render:e=>{let t=(0,i.jsx)(u.A.Text,{children:(0,A.Xq)(e.total.size.baseline)});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Initial"}),(0,i.jsx)(u.A.Text,{children:(0,A.Xq)(e.initial.size.baseline)})]})]}):t}}]},{title:"Count",dataIndex:"data",key:"count",children:[{title:"Current",dataIndex:"data",key:"ccount",render:e=>{let t=(0,i.jsx)(u.A.Text,{strong:!0,children:e.total.count.current});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Initial"}),(0,i.jsx)(u.A.Text,{strong:!0,children:e.initial.count.current})]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bcount",render:e=>{let t=(0,i.jsx)(u.A.Text,{children:e.total.count.baseline});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Initial"}),(0,i.jsx)(u.A.Text,{children:e.initial.count.baseline})]})]}):(0,i.jsx)(d.A,{children:t})}}]}]})};var es=r(98630),en=r(23774),ei=r(63974),el=r(27875),ea=r(47246);let eo={JS:y.YM.Wm,CSS:[y.YM.lk],HTML:[y.YM.Fe],Imgs:y.YM.q$,Fonts:y.YM.AU,Media:y.YM.zz,Others:[]},ed=Object.values(eo).flat(),ec=e=>{let{data:t}=e,r=(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{strong:!0,children:t.alias}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{style:{color:"inherit"},direction:"vertical",children:[t.current?(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Current realpath: ",t.current.path]}):null,t.baseline?(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Baseline realpath: ",t.baseline.path]}):null]}),children:(0,i.jsx)(x.A,{})})]});return t.baseline&&!t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(es.A,{style:{color:"#e17055"}}),r]}):!t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(en.A,{style:{color:"#52c41a"}}),r]}):t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(ei.A,{style:{color:"#faad14"}}),r]}):r},eu=e=>{let{baseline:t,current:r,outputFilename:s}=e,[n,a]=(0,l.useState)(),[c,m]=(0,l.useState)([]),[f,g]=(0,l.useState)([]),[w,S]=(0,l.useState)(B.Size),[D,z]=(0,l.useState)(null),[L,I]=(0,l.useState)(null),{assets:P}=t.chunkGraph,{assets:O}=r.chunkGraph,F=(0,l.useMemo)(()=>{let e={};return D&&L?e.choose={alias:`${D}
5
+ ${L}`,current:O.find(e=>e.path===L),baseline:P.find(e=>e.path===D)}:(P.forEach(t=>{let r=G.TS.H9(t.path,s);e[r]?console.warn("[Baseline Asset Exists]: ",t,e):e[r]={alias:r,baseline:t}}),O.forEach(t=>{let r=G.TS.H9(t.path,s);e[r]||(e[r]={alias:r}),e[r].current=t})),Object.values(e)},[P,O,D,L]),q=(0,l.useMemo)(()=>{let e=F.slice();if(n&&(e=e.filter(e=>e.alias.indexOf(n)>-1)),c.length){let t=c.map(e=>eo[e]).flat(),r=c.indexOf("Others")>-1;e=e.filter(e=>{let s=e.baseline||e.current;return!!G.TS.C5(s,t)||!!r&&!G.TS.C5(s,ed)})}if(f.length&&(e=e.filter(e=>e.baseline&&!e.current?f.includes(R.Deleted):!e.baseline&&e.current?f.includes(R.New):!!e.baseline&&!!e.current&&(e.baseline.size===e.current.size?f.includes(R.NotChanged):f.includes(R.Changed)))),w)if(w===B.Name)e.sort((e,t)=>e.alias.localeCompare(t.alias));else{let{prev:n,others:i}=e.reduce((e,t)=>(t.current?t.baseline?e.prev.unshift(t):e.prev.push(t):e.others.push(t),e),{prev:[],others:[]});e=[...n.sort((e,n)=>{if(n.current&&e.current){if(w===B.Delta){let{percent:i}=G.TS.SE(t.chunkGraph,r.chunkGraph,t=>G.TS.H9(t.path,s)===e.alias),{percent:l}=G.TS.SE(t.chunkGraph,r.chunkGraph,e=>G.TS.H9(e.path,s)===n.alias);return l-i}return n.current.size-e.current.size}return -1}),...i]}return e},[F,n,c,f,w]),W=(0,l.useMemo)(()=>(0,C.xu)(q,e=>e.current?e.current.size:0)||0,[q]),V=(0,l.useMemo)(()=>(0,C.xu)(q,e=>e.baseline?e.baseline.size:0)||0,[q]);return(0,i.jsxs)(j.A,{gutter:[20,20],children:[(0,i.jsxs)(v.A,{span:24,children:[(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(N.E,{icon:(0,i.jsx)(T.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by file name",onChange:e=>{a(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by file type",style:{width:250},options:Object.keys(eo).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{m(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by file changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{g(e)}}),(0,i.jsx)(k.A,{suffixIcon:(0,i.jsx)(el.A,{}),options:Object.values(B).map(e=>({label:e,value:e})),value:w,onChange:e=>{S(e)}})]}),(0,i.jsxs)(j.A,{style:{marginTop:10},gutter:[6,6],children:[(0,i.jsx)(v.A,{children:(0,i.jsx)(p.Ay,{children:"Select Baseline Asset and Current Asset to Diff "})}),(0,i.jsx)(v.A,{children:(0,i.jsx)(k.A,{allowClear:!0,placeholder:"select baseline assets",showSearch:!0,style:{width:300},options:Object.values(t.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>z(e)})}),(0,i.jsx)(v.A,{children:(0,i.jsx)(k.A,{allowClear:!0,placeholder:"select current assets",showSearch:!0,style:{width:300},options:Object.values(r.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>I(e)})})]})]}),(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:q,rowKey:e=>e.alias,expandable:{expandedRowRender:e=>(0,i.jsx)("div",{style:{margin:20/3},children:(0,i.jsx)(U,{data:e,baseline:t,current:r})}),columnTitle:(0,i.jsx)(o.A,{title:"Click to expand row to see the modules which the chunk contains",placement:"left",children:(0,i.jsx)(ea.A,{style:{cursor:"pointer"}})})},columns:[{title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered assets is ",q.length]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total assets is ",F.length]})]}),children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Assets"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[q.length,"/",F.length]}),(0,i.jsx)(x.A,{})]}),render:(e,t)=>(0,i.jsx)(ec,{data:t})},{title:()=>{let e=(0,A.Xq)(W),t=G.TS.Nt(V,W);return(0,i.jsxs)(o.A,{title:`Current size is ${e}, Delta is ${(0,A.l9)(t.percent)}`,children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Current"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit",marginRight:8},children:e}),(0,i.jsx)(b.vh,{fontSize:"inherit",baseline:V,current:W}),$(V,W,V>W?y.Kj.Ol.Down:y.Kj.Ol.Up,{fontSize:10,fontWeight:400,marginLeft:4})]}),(0,i.jsx)(x.A,{})]})},render:(e,n)=>{if(n.current){let{percent:e,state:l}=G.TS.SE(t.chunkGraph,r.chunkGraph,e=>G.TS.H9(e.path,s)===n.alias),a=G.TS.X9(n.current,r.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,A.Xq)(n.current.size)}),(0,i.jsx)(b.QE,{percent:e,state:l}),a?(0,i.jsx)(E.A,{color:"#1677ff",children:"initial"}):null]})}return"-"}},{title:()=>{let e=(0,A.Xq)(V);return(0,i.jsxs)(o.A,{title:`Baseline size is ${e}`,children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Baseline"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(u.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:e}),(0,i.jsx)(x.A,{})]})},render:(e,r)=>{if(r.baseline){let e=G.TS.X9(r.baseline,t.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,A.Xq)(r.baseline.size)}),e?(0,i.jsx)(E.A,{color:"#1677ff",children:"initial"}):null]})}return"-"}},{title:"Actions",key:"actions",render:(e,t)=>(0,i.jsx)(_,{file:t.alias,data:[{baseline:t.baseline?.content,current:t.current?.content,group:"assets"}]})}]})})]})};var eh=r(41611);let ep=e=>{let{api:t,body:r,children:s,manifests:n}=e,l=(0,A.xF)(),a=window[y.YM.tQ];if(a?.baseline&&a?.current){let e=JSON.parse(G.oG.J0(a.baseline)),t=JSON.parse(G.oG.J0(a.current));return(0,i.jsx)(i.Fragment,{children:s(e,t)})}if(n?.length)return(0,i.jsx)(i.Fragment,{children:s(n[0].data,n[1].data)});let[o,d]=l[y.Kj.H9.BundleDiffFiles]?.split(",")||[];return(0,i.jsx)(eh.zW,{api:t,body:r,manifestLoader:o?()=>(0,A.Cj)(o):void 0,children:e=>(0,i.jsx)(eh.zW,{api:t,body:r,manifestLoader:d?()=>(0,A.Cj)(d):void 0,children:t=>s(e,t)})})},em=e=>{let{manifests:t}=e;return(0,l.useEffect)(()=>{console.log("BundleDiff Manifests: ",t)},[t]),(0,i.jsx)(ep,{api:y.hp.uT.n.GetBundleDiffSummary,manifests:t,children:(e,t)=>{let r=e.chunkGraph===t.chunkGraph,s=e.chunkGraph,n=r?s:t.chunkGraph,l=G.TS.oT(s,n);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(a.A.Group,{children:[(0,i.jsx)(o.A,{placement:"leftBottom",title:(0,i.jsx)(d.A,{direction:"vertical",children:[{title:"Baseline",data:e},{title:"Current",data:t}].map(e=>{let{title:t,data:r}=e;return(0,i.jsx)(c.A,{size:"small",children:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsx)(u.A.Text,{strong:!0,children:t}),(0,i.jsxs)(d.A,{style:{fontSize:10},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit",width:30,display:"inline-block"},children:"Hash"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(u.A.Text,{type:"secondary",style:{fontSize:"inherit"},children:r.hash||"-"})]}),r.cloudManifestUrl?(0,i.jsx)(p.Ay,{type:"link",size:"small",style:{padding:0,fontSize:10},onClick:()=>window.open(r.cloudManifestUrl),children:"Open File"}):null]})},t)})}),children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(x.A,{})})}),(0,i.jsx)(m.A,{title:(0,i.jsxs)(u.A.Text,{children:["Are you sure to",(0,i.jsx)(u.A.Text,{strong:!0,children:" re-upload "}),"json files for bundle diff?"]}),onConfirm:()=>{},okText:"Yes",cancelText:"Cancel",placement:"topLeft",trigger:"hover",children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(g.A,{})})}),(0,i.jsx)(a.A.BackTop,{})]}),(0,i.jsx)(et,{baseline:e,current:t,onlyBaseline:r,assetsDiffResult:l}),(0,i.jsx)(f.A,{defaultActiveKey:"Overview",tabBarStyle:{marginBottom:20/3},items:[{label:"Overview",key:"Overview",children:(0,i.jsx)(er,{assetsDiffResult:l})},{label:"Assets",key:"Assets",children:(0,i.jsx)(eu,{outputFilename:e.outputFilename,baseline:e,current:t})},{label:"Modules",key:"Modules",children:(0,i.jsx)(J,{baseline:e,current:t,onlyBaseline:r,assetsDiffResult:l})},{label:"Packages",key:"Packages",children:(0,i.jsx)(ee,{baseline:e.packageGraph,current:t.packageGraph})}].map(e=>({...e,label:(0,i.jsx)(u.A.Text,{strong:!0,children:e.label})}))})]})}})},ef=y.Kj.EH.BundleDiff,ex=()=>(0,i.jsx)(em,{manifests:[]})},54378(e,t,r){var s=r(64558),n=r(64345),i=r(6941),l=r(89797),a=r(30147),o=r(50162),d=r(85326),c=r(66482),u=r(13078),h=r.n(u),p=r(1102),m=r(75232),f=r(214),x=r(3810),g=r(44462);let y=(0,m.$N)();function j(e){let{module:t,moduleGraph:r,ranges:u,toLine:j,setEditorData:v,source:b}=e,A=(0,p.useRef)(void 0),w=(0,p.useRef)([]),S=(0,p.useRef)([]),k=(0,p.useRef)(void 0),M=(0,p.useRef)(!1),[C,E]=(0,p.useState)("");return((0,p.useEffect)(()=>{let{isPreferSource:e}=t;M.current=!0,E(b.source||e?b.source:b.transformed),setTimeout(()=>{S.current=A.current?.getModel()?.deltaDecorations(S.current,(0,g.L1)(t,r))??[]},200)},[t,b]),(0,p.useEffect)(()=>{function e(){let e=A.current?.getModel();e&&(w.current=e.deltaDecorations(w.current,u.map(e=>({range:(0,m.qK)(e,x.Q),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),A.current&&"number"==typeof j&&k.current!==j&&(k.current=j,A.current.revealLine(j,0)))}M?setTimeout(e,300):e(),M.current=!1},[u,j]),(0,p.useEffect)(()=>{let e=e=>{let t=(0,f.U1)(e.target);if(t){let e=r.getModuleById(t.module);e&&v(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,s.jsx)(a.A,{title:(0,s.jsx)(o.A,{title:t.path,children:(0,s.jsxs)(d.A,{children:[(0,s.jsx)(c.A.Text,{children:h().basename(t.path)}),(0,s.jsx)(n.A,{})]})}),className:"tree-shaking-editor",children:(0,s.jsx)(l.Ay,{theme:"vs-dark",language:(0,m.rZ)(t.path),value:C,loading:(0,s.jsx)(i.A,{style:{fontSize:30}}),options:y,onMount:e=>{A.current=e}})}):(0,s.jsx)("div",{children:"请选择要查看的模块"})}r.d(t,{B:()=>j})},214(e,t,r){function s(e,t,r){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${r}</a>`}function n(e){if("a"!==e.tagName.toLocaleLowerCase())return;let t=e.getAttribute("data-href")??"",r={module:-1,range:{start:{line:1,column:0},end:{line:1,column:0}}};for(let e of t.split("&")){let[t,s]=e.split("=");if("data-module"===t){r.module=Number.parseInt(s,10);continue}"data-range"===t&&(r.range=JSON.parse(decodeURIComponent(s)))}return r}r.d(t,{U1:()=>n,mJ:()=>s})},3810(e,t,r){class s{startLineNumber;startColumn;endLineNumber;endColumn;constructor(e,t,r,s){e>r||e===r&&t>s?(this.startLineNumber=r,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=r,this.endColumn=s)}isEmpty(){return s.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return s.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return s.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>e.endColumn))}strictContainsRange(e){return s.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return s.plusRange(this,e)}static plusRange(e,t){let r,n,i,l;return t.startLineNumber<e.startLineNumber?(r=t.startLineNumber,n=t.startColumn):t.startLineNumber===e.startLineNumber?(r=t.startLineNumber,n=Math.min(t.startColumn,e.startColumn)):(r=e.startLineNumber,n=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,l=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,l=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,l=e.endColumn),new s(r,n,i,l)}intersectRanges(e){return s.intersectRanges(this,e)}static intersectRanges(e,t){let r=e.startLineNumber,n=e.startColumn,i=e.endLineNumber,l=e.endColumn,a=t.startLineNumber,o=t.startColumn,d=t.endLineNumber,c=t.endColumn;return(r<a?(r=a,n=o):r===a&&(n=Math.max(n,o)),i>d?(i=d,l=c):i===d&&(l=Math.min(l,c)),r>i||r===i&&n>l)?null:new s(r,n,i,l)}equalsRange(e){return s.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return s.getEndPosition(this)}static getEndPosition(e){return new n(e.endLineNumber,e.endColumn)}getStartPosition(){return s.getStartPosition(this)}static getStartPosition(e){return new n(e.startLineNumber,e.startColumn)}toString(){return`[${this.startLineNumber},${this.startColumn} -> ${this.endLineNumber},${this.endColumn}]`}setEndPosition(e,t){return new s(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new s(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return s.collapseToStart(this)}static collapseToStart(e){return new s(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return s.collapseToEnd(this)}static collapseToEnd(e){return new s(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new s(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<e.startColumn))}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<=t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<=e.startColumn))}static compareRangesUsingStarts(e,t){if(e&&t){let r=0|e.startLineNumber,s=0|t.startLineNumber;if(r===s){let r=0|e.startColumn,s=0|t.startColumn;if(r===s){let r=0|e.endLineNumber,s=0|t.endLineNumber;return r===s?(0|e.endColumn)-(0|t.endColumn):r-s}return r-s}return r-s}return!!e-!!t}static compareRangesUsingEnds(e,t){if(e.endLineNumber===t.endLineNumber)return e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn;return e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}class n{lineNumber;column;constructor(e,t){this.lineNumber=e,this.column=t}with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return n.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let r=0|e.lineNumber,s=0|t.lineNumber;return r===s?(0|e.column)-(0|t.column):r-s}clone(){return new n(this.lineNumber,this.column)}toString(){return`(${this.lineNumber},${this.column})`}static lift(e){return new n(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}r.d(t,{Q:()=>s})},21344(e,t,r){var s=r(64558),n=r(30147),i=r(74374);function l(){return(0,s.jsx)(n.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,s.jsx)(i.A,{style:{marginTop:30}})})}r.d(t,{$:()=>l})},18345(e,t,r){var s=r(64558),n=r(50162),i=r(53919),l=r(70722),a=r(85326),o=r(66482),d=r(6755),c=r(60339),u=r(51125),h=r(1102),p=r(41175),m=r.n(p),f=r(44506),x=r(44462),g=r(36033);function y(e,t){if(!e)return(0,s.jsx)("div",{children:"Can not find declaration."});let{module:r}=e,l=r.isPreferSource?e.position.source:e.position.transformed;return(0,s.jsx)(n.A,{title:`${r.path}, line ${l.start.line}`,children:(0,s.jsx)(i.Ay,{type:"link",onClick:()=>t(r,[l],l.start.line),children:"Move To"})})}function j(e){let[t,r]=(0,h.useState)(""),[n,o]=(0,h.useState)(""),d=(0,h.useRef)(null),c=(e,t,s)=>{t(),r(e[0]),o(s)};return{filterDropdown:t=>{let{setSelectedKeys:n,selectedKeys:o,confirm:h,clearFilters:p,close:m}=t;return(0,s.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,s.jsx)(l.A,{ref:d,placeholder:`Search ${e}`,value:o[0],onChange:e=>n(e.target.value?[e.target.value]:[]),onPressEnter:()=>c(o,h,e),style:{marginBottom:8,display:"block"}}),(0,s.jsxs)(a.A,{children:[(0,s.jsx)(i.Ay,{type:"primary",onClick:()=>c(o,h,e),icon:(0,s.jsx)(u.A,{}),size:"small",style:{width:90},children:"Search"}),(0,s.jsx)(i.Ay,{onClick:()=>p&&void(p(),r("")),size:"small",style:{width:90},children:"Reset"}),(0,s.jsx)(i.Ay,{type:"link",size:"small",onClick:m,children:"close"})]})]})},filterIcon:e=>(0,s.jsx)(u.A,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,r)=>r[e].toString().toLowerCase().includes(t.toLowerCase()),render:r=>n===e?(0,s.jsx)(m(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:r?r.toString():""}):r}}let v=e=>{let{module:t,moduleGraph:r,setEditorData:l}=e,u=(0,h.useMemo)(()=>r.getModuleGraphModule(t).getSideEffects(),[t]),p=u.map((e,r)=>{let{variable:s,name:n,identifier:i}=e;return{key:r,name:n,identifier:t.isPreferSource?i.position.source:i.position.transformed,declaration:s?.identifier}}).sort((e,t)=>e.name===t.name?e.identifier.start.line>t.identifier.start.line?1:-1:e.name>t.name?1:-1).reduce((e,t)=>{let r=e[e.length-1];return r&&r.name===t.name?(r.children||(r.children=[]),r.children.push(t)):e.push(t),e},[]),m=[{title:"Name",dataIndex:"name",key:"name",align:"center",...j("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:e=>(0,s.jsx)(n.A,{title:`Current File line ${e.start.line}`,children:(0,s.jsx)(i.Ay,{type:"link",onClick:()=>l(t,[e],e.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>y(e,l)}],x=(0,s.jsx)(h.Fragment,{children:(0,s.jsxs)(a.A,{style:{fontWeight:400},children:["Import",(0,s.jsx)(o.A.Text,{strong:!0,children:p.length}),"variables",(0,s.jsx)(d.A,{type:"vertical"}),(0,s.jsx)(o.A.Text,{strong:!0,children:u.length}),"sideEffects"]})});return(0,s.jsx)(f.Zp,{style:{marginBottom:10},title:x,className:"tree-shaking-export-table",children:(0,s.jsx)(c.A,{size:"small",dataSource:p,columns:m,pagination:!1,scroll:{y:600}})})},b=e=>{let{module:t,moduleGraph:r,setEditorData:l}=e,u=(0,h.useMemo)(()=>r.getModuleGraphModule(t).getExports(),[t]),p=u.filter(e=>0===e.getSideEffects().length),m=(0,s.jsxs)(h.Fragment,{children:[(0,s.jsxs)(a.A,{style:{fontWeight:400},children:["Export",(0,s.jsx)(o.A.Text,{strong:!0,children:u.length})]}),u.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{type:"vertical"}),(0,s.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,s.jsx)(o.A.Text,{children:"Unused"}),(0,s.jsx)(d.A,{type:"vertical"}),(0,s.jsx)(o.A.Text,{strong:!0,children:p.length})]}),(0,s.jsx)(d.A,{type:"vertical"}),(0,s.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,s.jsx)(o.A.Text,{children:"Used"}),(0,s.jsx)(d.A,{type:"vertical"}),(0,s.jsx)(o.A.Text,{strong:!0,children:u.length-p.length})]})]}):""]}),v=u.map((e,t)=>{let{variable:r}=e;return{key:t,name:e.name,declaration:r?.identifier,used:e.getSideEffects().map(e=>{let{module:t,identifier:r}=e,s=t?.isPreferSource?r.position.source:r.position.transformed;if(t&&s)return{module:t,range:s}}).filter(g.C8)}}),b=[{title:"Name",dataIndex:"name",key:"name",align:"center",...j("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>y(e,l)},{title:"Info",dataIndex:"used",key:"used",align:"center",sorter:(e,t)=>e.used.length-t.used.length,sortDirections:["descend","ascend"],render:e=>(0,s.jsxs)("span",{children:["Used ",e.length," times"]})}];return(0,s.jsx)(f.Zp,{title:m,className:"tree-shaking-export-table",children:(0,s.jsx)(c.A,{size:"small",dataSource:v,columns:b,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,s.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,s.jsx)(o.A.Text,{children:"List of SideEffect:"}),e.used.map(e=>{let{module:t,range:r}=e;return(0,s.jsx)(n.A,{title:`${t.path}:${r.start.line}`,children:(0,s.jsx)(i.Ay,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{l(t,[r],r.start.line)},children:`${(0,x.jx)(t.path)}:${r.start.line}`})},t.id)})]}),rowExpandable:e=>e.used.length>0}})})};r.d(t,{},{oK:e=>"side-effect"===e.kind?(0,s.jsx)(v,{...e}):(0,s.jsx)(b,{...e})})},44462(e,t,r){var s=r(64558),n=r(41537),i=r(85326),l=r(54594),a=r(67782),o=r(13078),d=r.n(o),c=r(1102),u=r(75232),h=r(46977),p=r(36033),m=r(214),f=r(3810);function x(e,t,r,a,o,d){return(0,c.useMemo)(()=>(0,p.Bq)({files:e.map(e=>e.path),cwd:d,fileTitle(e,r){let a=t.getModules().find(t=>t.path===e&&t.kind===n.nV.kind.Normal),d=t.getModuleGraphModule(a),c=d.getExports().filter(e=>0===e.getSideEffects().length);return(0,s.jsxs)(i.A,{style:{wordBreak:"break-all"},children:[(0,s.jsx)(h.i,{text:r,keyword:e,onClick:()=>o(e)}),d.dynamic?(0,s.jsx)(l.A,{color:"cyan",children:"dynamic"}):"",c.length>0?(0,s.jsxs)(l.A,{color:"green",children:[c.length," Unused"]}):""]})}}),[r,a])}function g(e){return(0,p.ME)(e,3,e=>!((0,a.Jt)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function y(e){let t="",r=e;for(let e=0;e<3;e++)t=t?`${d().basename(r)}/${t}`:d().basename(r),r=d().dirname(r);return`...${t}`}function j(e,t){let r=t.getModuleGraphModule(e).getOwnExports(),s=r.map(e=>e.variable).filter(e=>!!e);if(0===r.length&&0===s.length)return[];let{isPreferSource:n}=e;return s.map(e=>{let t=n?e.identifier.position.source:e.identifier.position.transformed,r=t&&(0,u.qK)(t,f.Q);if(t&&r)return{range:r,options:{stickiness:1,inlineClassName:"tree-shaking-statement-declaration-identifier",isWholeLine:!1,showIfCollapsed:!0,hoverMessage:{supportHtml:!0,supportThemeIcons:!0,isTrusted:!0,value:function(e){let t=e.getExportInfo();if(!t)return"Can not find SideEffect info.";let r=t.getSideEffects();if(0===r.length)return"Have no sideEffect.";let s=`Used **${r.length}** times:
6
+
7
+ <div data-code="tree-shaking-hover">
8
+ <li>`;for(let e of r){if(!e)continue;let{identifier:t,module:r}=e;if(!r)continue;let{id:n,isPreferSource:i}=r,l=t.getLineCode();s+=`
9
+ <ol>
10
+ ${(0,m.mJ)(n,i?t.position.source:t.position.transformed,function(e,t){let{path:r,isPreferSource:s}=t,n=s?e.position.source.start:e.position.transformed.start,i=`:${n.line??1}:${n.column??0}`;return r.length<=30?`${r}${i}`:`...${r.substring(r.length-30)}${i}`}(t,r))}
11
+ ${l?`<pre>${(0,a.ih)(l)}</pre>`:""}
12
+ </ol>`}return s+"\n</li></div>"}(e)}}}}).filter(e=>!!e)}r.d(t,{EV:()=>x,L1:()=>j,jx:()=>y,ut:()=>g})},53715(e,t,r){r.d(t,{V:()=>f});var s=r(87826),n=r(1102),i=r(3534),l=r(67782);class a{manifest;pool=new Map;loader;disposed=!1;shardingDataMap=new Map;constructor(e){this.manifest=e,this.loader=new i.B_.s(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",r=this.get(t);if(r)return r[e]}getKeys(e){return e.split(".")}joinKeys(e){return e.join(".")}dispose(){this.disposed=!0}limit(e,t){if(this.pool.has(e))return this.pool.get(e);let r=t().finally(()=>this.pool.delete(e));return this.pool.set(e,r),r}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}async loadManifest(){return this.manifest}}var o=r(83977),d=r(19495);class c extends a{events=new Map;isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),n=this.getData(t);if(!n)return;let a=n;if(i._8.tg(a)){if(!this.shardingDataMap.has(e)){let t=(0,o.mq)(s.hp.uT.n.LoadDataByKey,{key:e}).catch(t=>{throw this.log("loadData error: ",a,e),t});this.shardingDataMap.set(e,t)}return a=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),a}return r.length>0?(0,l.Jt)(a,this.joinKeys(r)):a})}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[s,n]=t,i=n?`${s}_${JSON.stringify(n)}`:`${s}`,l=this.get("__SOCKET__PORT__")??"",a=this.get("__SOCKET__URL__")??"";return this.limit(i,async()=>{try{return await (0,d.XM)(s,n,l,a)}catch(e){throw this.log("loadAPI error: ",i),e}})}dispose(){super.dispose(),this.events.forEach(e=>{let{api:t,body:r,listeners:s}=e;s.forEach(e=>{this.removeOnDataUpdate(t,r,e)}),s.clear()}),this.events.clear()}onDataUpdate(e,t,r){let s=t??null,n=`${e}::${JSON.stringify(s)}`;this.events.has(n)||this.events.set(n,{api:e,body:s,listeners:new Set});let i=this.events.get(n);if(i.listeners.has(r))return;i.listeners.add(r);let l=this.get("__SOCKET__PORT__")??"",a=this.get("__SOCKET__URL__")??"";(0,d.Wi)(e,s,r,l,a)}removeOnDataUpdate(e,t,r){let s=`${e}::${JSON.stringify(t??null)}`,n=this.get("__SOCKET__PORT__")??"",i=this.get("__SOCKET__URL__")??"";(0,d.Xi)(e,t,r,n,i),this.events.get(s)?.listeners.delete(r)}}class u extends a{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),s=this.getData(t,"cloudData");if(!s)return;let n=s;if(i._8.tg(n)){if(!this.shardingDataMap.has(t)){let r=i._8.pJ(n,o.fZ).catch(t=>{throw this.log("loadData error: ",n,e),t});this.shardingDataMap.set(t,r)}n=await this.shardingDataMap.get(t)}return r.length>0?(0,l.Jt)(n,this.joinKeys(r)):n})}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[s,n]=t,i=n?`${s}_${JSON.stringify(n)}`:`${s}`;return this.limit(i,async()=>this.loader.loadAPI(...t))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}r(10815),r(15061);class h extends a{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let r=this.getData(t);if(!r)return;let s=r;if(!this.shardingDataMap.has(t)){let e=this.parseData(s);this.shardingDataMap.set(t,Promise.resolve(e))}return await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[s.YM.tQ][e]}parseData(e){if("object"==typeof e&&null!==e||"string"!=typeof e)return e;try{return JSON.parse(i.oG.J0(e))}catch{return e}}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.loader.loadAPI(...t)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}let p=new WeakMap;async function m(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new c(e)}catch{console.log("[DataLoader] fallback to RemoteDataLoader")}return new u(e)}function f(e){let[t,r]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{window[s.YM.tQ]&&(console.log("[brief mode]"),r(new h({data:[]})))},[]),(0,n.useEffect)(()=>{if(e){if(!p.has(e)){let t=m(e);p.set(e,t)}p.get(e).then(e=>{r(e)})}},[e]),{loader:t}}},86508(e,t,r){var s=r(25205),n=r(33663),i=r(10815);s.Ay.use(n.r9).init({lng:(0,i.U)(),resources:{en:{translations:{Overall:"Overall","Compile Analysis":"Compile Analysis","Bundle Alerts":"Bundle Alerts","Help Center":"Help Center",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis","Rsdoctor Introduction":"Rsdoctor Introduction","Compilation Alerts":"Compilation Alerts","Plugins Analysis":"Plugins Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"Bundle Size",ViewBundleSize:"View Bundle Size","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"Rule Index",Resources:"Resources","Project Overall":"Project Overall","Compile Overall":"Compile Overall","Bundle Overall":"Bundle Overall","Expand Omitted":"By default, the reasons tree collapses to the middle of the module introduced by a third party. Click on this icon to view the full tree diagram","Concatenated Tag":"Concatenated Module,hover can display the name of the concatenated main module. Note: the bundled size of the concatenated module is zero, possibly because it is aggregated into the main module.","the file content not changed after transpiled by this loader":"the file content not changed after transpiled by this loader","Output Assets List":"Output Assets List","filter the output assets which size is greater than the input value":"filter the output assets which size is greater than the input value","filter the modules which size is greater than the input value":"filter the modules which size is greater than the input value","After Compile":"After Compile","After Bundle":"After Bundle",CodeModeExplain:"In lite mode or pure stats.json upload, only source code.",DuplicatePakCodeExplain:"There is no code, when in the case of pure stats.json.",AsyncLoaderInfo:"For async loaders, the time cost of each loader is not accurate. For example: mini-css-extract-plugin's loader.",Details:"Details",Expand:"Expand",Collapse:"Collapse"}},cn:{translations:{Overall:"概览","Compile Analysis":"编译分析","Bundle Alerts":"编译预警","Help Center":"帮助中心","Rsdoctor Introduction":"Rsdoctor 介绍","Compilation Alerts":"编译预警","Plugins Analysis":"Plugins 分析",LoadersAnalysis:"Loaders 分析","Loaders Timeline":"Loaders 概览","Loaders Analysis":"Loaders 分析",PluginsAnalysis:"Plugins 分析",ModuleResolve:"Module Resolve 分析","Bundle Analysis":"产物分析",BundleSize:"产物体积分析",ViewBundleSize:"查看包大小","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"错误索引信息",Resources:"资源","Project Overall":"项目信息概览","Compile Overall":"编译数据概览","Bundle Overall":"产物数据概览","Expand Omitted":" reasons 树会默认折叠中间的第三方引入的模块,点击这个图标可以查看完整树图","Concatenated Tag":"串联模块,hover 上去可以显示聚合成的主模块名称。注:聚合模块 bundled size 为零,有可能是因为被聚合到了主模块中。","the file content not changed after transpiled by this loader":"该文件内容在 loader 处理前后没有发生变化","Output Assets List":"产物文件列表","filter the output assets which size is greater than the input value":"筛选大小大于输入值的产物文件","filter the modules which size is greater than the input value":"筛选大小大于输入值的模块","After Compile":"编译后","After Bundle":"打包后",CodeModeExplain:"Lite 模式下或纯 stats.json 上传的情况下只有 source code.",DuplicatePakCodeExplain:"纯 stats.json 输入的情况下没有代码,可使用 Rsdoctor 插件参与构建会有对应代码。",AsyncLoaderInfo:"对于异步 loader,单个 loader 的耗时可能不准确。例如:mini-css-extract-plugin 的 loader。",Details:"详情",Expand:"展开",Collapse:"收起"}}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},5525(e,t,r){let{xr:s,Wx:n}=r(3534).aH;function i(e,t,r,s,n,i){return!(r&&-1===e.indexOf(r)||n&&i&&n!==i||s?.length&&!s.includes(t))}r.d(t,{ak:()=>i},{xr:s})},22009(e,t,r){var s=r(1102),n=r(41537),i=r(17886),l=r(15061);function a(){return(0,s.useContext)(i.Q).locale}function o(){let{theme:e,setTheme:t}=(0,s.useContext)(i.Q),r=e===l.Sx.Dark;return{theme:e,setTheme:t,isDark:r,isLight:!r}}function d(){let{viewMode:e,setViewMode:t}=(0,s.useContext)(i.Q),{bundleAlerts:r,compileAlerts:n}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:"list"===n,isBundleList:"list"===r}}function c(e){return(0,s.useMemo)(()=>n.dh.fromData(e),[e])}r(83977),r.d(t,{DP:()=>o,Ym:()=>a,an:()=>d,mB:()=>c})},83977(e,t,r){var s=r(87826),n=r(3534);r(15061);var i=r(36577);r(10815);async function l(e,t){return(await n.Fp.u9(e,{timeout:t})).text()}async function a(e){return n.s0.gU(e)?l(e,999999):e}async function o(e){let t=await l(e,3e4);if("string"==typeof t){let e=t.trim();t=/^<!doctype html\b/i.test(e)||/^<html\b/i.test(e)?{}:JSON.parse(t)}return t}let d=new Map;async function c(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:((e=window[s._8.V.WindowPropertyForManifestUrl]?window[s._8.V.WindowPropertyForManifestUrl]:(0,i.kJ)())||(e=s.hp.uT.n.Manifest),e);return d.has(t)||d.set(t,o(t).catch(e=>{throw d.delete(t),e})),await d.get(t)}async function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[s,i]=t,l={method:"POST",headers:{"Content-Type":"application/json"},timeout:6e4};null!=i&&(l.body=JSON.stringify(i));let a=await n.Fp.u9(`${s}?_t=${Date.now()}${Math.floor(1e4*Math.random())}`,l);return await a.json()}r.d(t,{Cj:()=>c,fZ:()=>a,mq:()=>u})},62772(e,t,r){var s=r(87826);function n(e){return e.includes(s._8.z.Loaders)||e.includes(s._8.z.ModuleResolve)||e.includes(s._8.z.Plugins)}function i(e){return e.includes(s._8.z.BundleSize)||e.includes(s._8.z.ModuleGraph)||e.includes(s._8.z.TreeShaking)}r.d(t,{c:()=>n,r:()=>i})},91431(e,t,r){function s(e){return e>=1e9?`${(e/1e9).toFixed(2)} GB`:e>=1e6?`${(e/1e6).toFixed(2)} MB`:e>=1e3?`${(e/1e3).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}function n(e){return`${+e.toFixed(2)}%`}r.d(t,{X:()=>s,l:()=>n})},19495(e,t,r){let s=new Map,n=0,i=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;function l(e){return e.includes("https")?"wss":"ws"}function a(){if("u"<typeof location)return"";let e=l(location.protocol);return`${e}://${location.host}`}function o(e,t){return t||("u"<typeof location?e?`ws://localhost:${e}`:"":e?function(e){let{port:t,protocol:r,hostname:s}=e,n=l(r),a=i.test(s)||s.includes("localhost");if("u">typeof URL){let e=new URL("http://localhost");return e.hostname=s,e.protocol=n,t&&a&&(e.port=t),e.toString()}let o=t&&a?`:${t}`:"";return`${n}://${s}${o}`}({port:e,hostname:location.hostname,protocol:location.protocol}):a())}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a(),t=e||"__default__";return s.has(t)||s.set(t,{url:e,listeners:new Map,subscriptions:new Map,requests:new Map}),s.get(t)}function c(e,t){return`${e}:${JSON.stringify(t??null)}`}function u(e,t){e.socket?.readyState===1&&e.socket.send(JSON.stringify({type:"subscribe",api:t.api,body:t.body??null}))}function h(e,t){if(e.socket?.readyState!==1)return;let r=e.requests.get(t);r&&e.socket.send(r.message)}function p(e){if(!e.url||"u"<typeof WebSocket||e.socket)return;let t=new WebSocket(e.url);t.addEventListener("open",()=>{e.subscriptions.forEach(t=>{u(e,t)}),e.requests.forEach((t,r)=>{h(e,r)})}),t.addEventListener("message",t=>{if("string"==typeof t.data)try{var r,n;let i=JSON.parse(t.data);if("type"in i&&"response"===i.type)return void function(e,t){let r=e.requests.get(t.id);if(r){if(e.requests.delete(t.id),t.error)return r.reject(Error(t.error));r.resolve(t.payload)}}(e,i);r=i,((n=e.url)?[d(n)]:[...s.values()]).forEach(e=>{let t=c(r.api,r.payload.req.body);e.listeners.get(t)?.forEach(e=>{e(r.payload)})})}catch{}}),t.addEventListener("close",()=>{e.socket=void 0,e.requests.forEach(e=>{e.reject(Error("WebSocket closed before the response arrived."))}),e.requests.clear()}),e.socket=t}function m(e,t,r,s){let i=o(r,s);if(!i)return Promise.reject(Error("WebSocket URL is not available."));if("u"<typeof WebSocket)return Promise.reject(Error("WebSocket is not available."));let l=d(i),a=`${Date.now()}-${++n}`;return new Promise((r,s)=>{l.requests.set(a,{message:JSON.stringify({type:"request",id:a,api:e,body:t??null}),resolve:r,reject:s}),p(l),h(l,a)})}function f(e,t,r,s,n){let i=d(o(s,n)),l=t??null,a=c(e,l);i.listeners.has(a)||i.listeners.set(a,new Set),i.listeners.get(a).add(r);let h={api:e,body:l};return i.subscriptions.set(a,h),p(i),u(i,h),()=>{x(e,l,r,s,n)}}function x(e,t,r,s,n){let i=d(o(s,n)),l=c(e,t),a=i.listeners.get(l);if(a?.delete(r),a?.size===0){let e=i.subscriptions.get(l);e&&i.socket?.readyState===1&&i.socket.send(JSON.stringify({type:"unsubscribe",api:e.api,body:e.body??null})),i.listeners.delete(l),i.subscriptions.delete(l)}}r.d(t,{Wi:()=>f,XM:()=>m,Xi:()=>x})},10815(e,t,r){var s=r(15061);function n(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function i(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function l(){return n("THEME")||s.Sx.Light}function a(e){i("THEME",e)}function o(){return n("LOCALE")||s.TM.En}function d(e){i("LOCALE",e)}function c(){let e={bundleAlerts:"list",compileAlerts:"list"};try{let t=n("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch{return e}}function u(e){i("VIEWMODE",JSON.stringify(e))}function h(){return!!n("VIEWMODE")}function p(){return n("FIRST_VISIT")}function m(e){i("FIRST_VISIT",e)}r.d(t,{DT:()=>l,Kv:()=>a,R7:()=>p,U:()=>o,XX:()=>d,Yh:()=>m,ZI:()=>u,it:()=>h,oi:()=>c})},72911(e,t,r){let{ox:s,l_:n,a4:i}=r(3534).gX;r.d(t,{},{a4:i})},36744(){class e{worker;timer=0;callbacks=new Map;constructor(e){this.worker=e,this.setup()}setup(){this.worker.onmessage=e=>{let{data:t}=e;if(this.callbacks.has(t.id)){let e=this.callbacks.get(t.id);this.callbacks.delete(t.id),e(t.data)}}}createEventId(){return`${Date.now()}_${++this.timer}`}emit(e,t){var r;let s=this.createEventId();return this.callbacks.set(s,t),r={id:s,data:e},this.worker.postMessage(r),{abort:()=>this.callbacks.delete(s)}}dispose(){this.worker.terminate()}}class t{_workerMap=new WeakMap;detectWorker(t){if(this._workerMap.has(t))return this._workerMap.get(t);let r=new e(t());return this._workerMap.set(t,r),r}}new t},64033(e,t,r){var s=r(13078);let{relative:n}=r.n(s)();function i(e,t,r,s,i){return s.slice().reverse().map(s=>{let l=t.find(e=>e.id===s.dependencyId);if(!l)return null;let a=e.find(e=>e.id===l.module);return a?{group:s.group,module:a,dependency:l,relativePath:n(r,a.path),moduleCode:i?.[a.id]}:null}).filter(Boolean)}r.d(t,{X:()=>i})},16397(e,t,r){var s=r(46068),n=r(36533);function i(e){let t,r;e.sort((e,t)=>e[0]-t[0]);let s=[];for(let n=0;n<e.length;n++)r=e[n],!t||r[0]>t[1]?(t=r,s.push(r)):t[1]=Math.max(t[1],r[1]);return s}function l(e){return(0,s.inflateSync)(n.Buffer.from(e,"base64")).toString()}r.d(t,{J0:()=>l,l7:()=>i})},17806(e,t,r){r(87826)},61101(e,t,r){r.d(t,{s:()=>m});var s=r(87826),n=r(13078),i=r.n(n),l=r(83920),a=r(94485),o=r(47776);function d(e){return Object.keys(e)}function c(e){let t=d(e),r=new Set;return t.forEach(t=>{e[t].forEach(e=>{r.add(e.tapName)})}),[...r]}var u=r(88297),h=r(64033);let{relative:p}=i();class m{loader;constructor(e){this.loader=e,this.loadAPI=this.loadAPI.bind(this)}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t;switch(n){case s.hp.uT.n.LoadDataByKey:return this.loader.loadData(i.key);case s.hp.uT.n.GetProjectInfo:return Promise.all([this.loader.loadData("root"),this.loader.loadData("pid"),this.loader.loadData("hash"),this.loader.loadData("summary"),this.loader.loadData("configs"),this.loader.loadData("envinfo"),this.loader.loadData("errors")]).then(e=>{let[t,r,s,n,i,l,a]=e;return{root:t,pid:r,hash:s,summary:n,configs:i,envinfo:l,errors:a,name:i?.[0]?.config?.name}});case s.hp.uT.n.GetClientRoutes:{let e="u"<typeof window?void 0:window;if(e?.[s.YM.tQ]?.enableRoutes)return Promise.resolve(e[s.YM.tQ].enableRoutes);return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t})}case s.hp.uT.n.GetLoaderNames:return this.loader.loadData("loader").then(e=>a.Gk(e||[]));case s.hp.uT.n.GetLayers:return this.loader.loadData("moduleGraph").then(e=>{let{layers:t}=e||{};return t});case s.hp.uT.n.GetLoaderChartData:return this.loader.loadData("loader").then(e=>a.q6(e||[]));case s.hp.uT.n.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>a.Ym(e||[]));case s.hp.uT.n.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>a.Yf(i.path,e||[]));case s.hp.uT.n.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>a.bO(i.folder,e||[]));case s.hp.uT.n.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>a.Ah(i.file,e||[]));case s.hp.uT.n.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>a.eJ(i.file,i.loader,i.loaderIndex,e||[]));case s.hp.uT.n.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>o.NB(e||[]));case s.hp.uT.n.GetResolverFileDetails:return Promise.all([this.loader.loadData("resolver"),this.loader.loadData("moduleGraph.modules"),this.loader.loadData("moduleCodeMap")]).then(e=>{let t=e[0],r=e[1],s=e[2];return o.Vj(i.filepath,t||[],r||[],s||{})});case s.hp.uT.n.GetPluginSummary:return this.loader.loadData("plugin").then(e=>{var t;return{hooks:d(t=e||{}),tapNames:c(t)}});case s.hp.uT.n.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:r}=i;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=d(e).filter(e=>!t.length||-1!==t.indexOf(e));return s.length?c(e).reduce((t,n)=>(r.length&&-1===r.indexOf(n)||s.forEach(r=>{let s=e[r].filter(e=>e.tapName===n);0!==s.length&&t.push({tapName:n,hook:r,data:s.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}(e||{},t,r)});case s.hp.uT.n.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=i,{assets:r=[],chunks:s=[]}=e||{};return u.iD(r,s,{withFileContent:t})});case s.hp.uT.n.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assetPath:t}=i,{isRspack:r,hasSourceMap:s}=(0,l.fM)(e[2]||[]),{assets:n=[],chunks:a=[]}=e[0]||{},{modules:o=[]}=e[1]||{};return u.Xh(t,n,a,o,r||s?e=>0!==e.size.parsedSize:()=>!0)});case s.hp.uT.n.GetSummaryBundles:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assets:t=[],chunks:r=[]}=e[0]||{},{modules:s=[]}=e[1]||{},n=e[2]||[],i=t;return Array.isArray(n)&&n[0]?.config?.name==="lynx"&&(i=t.filter(e=>!e.path.endsWith("/template.js"))),u.ko(i,r,s,["id","path","size","kind"])});case s.hp.uT.n.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=i,{chunks:r=[]}=e[0]||{},{modules:s=[]}=e[1]||{};return u.lq(t,s,r)});case s.hp.uT.n.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("treeShaking")]).then(e=>{let{moduleId:t}=i,{modules:r=[],dependencies:s=[]}=e[1]||{},n=e[2],l=n?.sideEffectCodes[t]||[];return u.lD(t,r,s,l)});case s.hp.uT.n.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=i,{modules:r=[]}=e||{};return u.xp(t,r)});case s.hp.uT.n.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:r=[]}=t||{};return u.WL(r)});case s.hp.uT.n.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=i;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case s.hp.uT.n.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=i,r={};return e?(t.forEach(t=>{r[t]=e[t]}),r):[]});case s.hp.uT.n.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>e?.modules);case s.hp.uT.n.GetSearchModules:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("chunkGraph")]).then(e=>{let[t,r]=e,{moduleName:s}=i;if(!s)return[];let n=r.chunks.reduce((e,t)=>(t.assets.forEach(r=>{e[t.id]||(e[t.id]=[]),e[t.id].push(r)}),e),{}),l=new Map;return t?.modules.filter(e=>{e.identifier.includes(s)&&e.chunks.forEach(e=>{l.has(e)||(n[e]||[]).forEach(t=>{t.endsWith(".js")&&l.set(e,t)})})}),Object.fromEntries(l)});case s.hp.uT.n.GetSearchModuleInChunk:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("root")]).then(e=>{let[t,r]=e,{moduleName:s,chunk:n}=i;return s?t?.modules.filter(e=>e.identifier.includes(s)&&e.chunks.includes(n)).map(e=>({id:e.id,path:e.path,relativePath:p(r,e.path)})):[]});case s.hp.uT.n.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>e?.chunks);case s.hp.uT.n.GetPackageRelationAlertDetails:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("errors"),this.loader.loadData("root"),this.loader.loadData("moduleCodeMap")]).then(e=>{let{id:t,target:r}=i,[s,n=[],l="",a]=e,{modules:o=[],dependencies:d=[]}=s||{},{packages:c=[]}=n.find(e=>e.id===t)||{},{dependencies:u=[]}=c.find(e=>e.target.name===r.name&&e.target.root===r.root&&e.target.version===r.version)||{};return h.X(o,d,l,u,a||{})});case s.hp.uT.n.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===s.jO.jr.Overlay));case s.hp.uT.n.GetBundleAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.category===s.jO.y1.Bundle));case s.hp.uT.n.BundleDiffManifest:return this.loader.loadManifest();case s.hp.uT.n.GetBundleDiffSummary:return Promise.all([this.loader.loadManifest(),this.loader.loadData("root"),this.loader.loadData("hash"),this.loader.loadData("errors"),this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("moduleCodeMap"),this.loader.loadData("packageGraph"),this.loader.loadData("configs")]).then(e=>{let[t,r="",s="",n={},i={},l={},a={},o={},d=[]]=e,c="";return"string"==typeof d[0]?.config?.output?.chunkFilename&&(c=d[0]?.config.output.chunkFilename),{root:r,hash:s,errors:n,chunkGraph:i,moduleGraph:l,packageGraph:o,outputFilename:c,moduleCodeMap:a}});case s.hp.uT.n.GetChunkGraph:return this.loader.loadData("chunkGraph").then(e=>{let{chunks:t=[]}=e||{};return t});case s.hp.uT.n.GetAllModuleGraphFilter:return this.loader.loadData("moduleGraph").then(e=>e?.modules.map(e=>({id:e.id,identifier:e.identifier,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind})));case s.hp.uT.n.GetModuleByName:return this.loader.loadData("moduleGraph").then(e=>{let{moduleName:t}=i,{modules:r=[]}=e||{};return r.filter(e=>e.path.includes(t)).map(e=>({id:e.id,path:e.path}))||[]});case s.hp.uT.n.GetModuleIssuerPath:return this.loader.loadData("moduleGraph").then(e=>{let{moduleId:t}=i,r=e?.modules||[],s=r.find(e=>String(e.id)===t)?.issuerPath||[];return Array.isArray(s)&&s.length>0&&"number"==typeof s[0]?s.map(e=>r.find(t=>t.id===e)?.path).filter(Boolean):s});case s.hp.uT.n.GetPackageInfo:return this.loader.loadData("packageGraph").then(e=>e?.packages);case s.hp.uT.n.GetPackageDependency:return this.loader.loadData("packageGraph").then(e=>e?.dependencies||[]);case s.hp.uT.n.GetChunkGraphAI:return this.loader.loadData("chunkGraph").then(e=>{let{assets:t=[]}=e||{};return t.map(e=>{let{content:t,...r}=e;return r})});case s.hp.uT.n.GetChunkByIdAI:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let[t,r]=e,{chunks:s=[]}=t||{},{modules:n=[]}=r||{},{chunkId:l}=i,a=s.find(e=>e.id===l);if(!a)return null;let o=n.filter(e=>a.modules.includes(e.id)).map(e=>({id:e.id,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind,issuerPath:e.issuerPath}));return a.modulesInfo=o,a});case s.hp.uT.n.GetDirectoriesLoaders:return Promise.all([this.loader.loadData("root"),this.loader.loadData("loader")]).then(e=>{let[t,r]=e;return a.qJ(r||[],t||"")});default:throw Error(`API not implement: "${n}"`)}}}},33592(e,t,r){async function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{timeout:r=3e4,signal:s,...n}=t,i=new AbortController,l=setTimeout(()=>i.abort(),r);s&&(s.aborted?i.abort():s.addEventListener("abort",()=>i.abort(),{once:!0}));let a=function(){let e=globalThis.fetch;if("function"!=typeof e)throw Error("fetch is not available in this environment");return e.bind(globalThis)}();try{let t=await a(e,{...n,signal:i.signal});if(!t.ok)throw Error(`Request failed with status ${t.status}`);return t}finally{clearTimeout(l)}}r.d(t,{u9:()=>s})},88297(e,t,r){r.d(t,{SE:()=>v,Nt:()=>j,H9:()=>h,ko:()=>w,Xh:()=>A,oT:()=>y,iD:()=>b,QZ:()=>i,lq:()=>a,WL:()=>S,lD:()=>c,xp:()=>d,Xm:()=>o,C5:()=>m,X9:()=>x});var s=r(87826);function n(e){return e.chunks?e.chunks:[]}function i(e,t){return e.chunks.length?l(e.chunks,t):[]}function l(e,t,r){return e.length?e.map(e=>t.find(t=>t.id===e)).filter(Boolean).map(e=>{if(r&&r.length>0){let t={};for(let s of r)void 0!==e[s]&&(t[s]=e[s]);return t}return e}):[]}function a(e,t,r){let s=t.find(t=>t.id===e);return s?i(s,r):[]}function o(e,t,r,s,i){var a=l(n(e),t),o=r,d=s,c=i;let u=[];try{a.forEach(e=>{(function(e){let{modules:t=[]}=e;return t})(e).map(e=>{let t=o.find(t=>t.id===e);if(d&&d.length>0){if(!t)return null;let e={};for(let r of d)void 0!==t[r]&&(e[r]=t[r]);return e}return t}).filter(Boolean).forEach(e=>{(!c||c(e))&&!u.filter(t=>t.id===e.id).length&&u.push(e)})})}catch{}return u}function d(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function c(e,t,r,s){let n=t.find(t=>t.id===e);return{module:n,dependencies:n.dependencies.map(e=>r.find(t=>t.id===e)).filter(Boolean),...s?.length?{sideEffectCodes:s}:{}}}let u=RegExp(`(.*)${/[-|.]/.source}(${/(?:[a-f0-9]{4,32}|[a-zA-Z]{3,}[0-9]|[a-zA-Z]*[0-9][a-zA-Z]{2,}|[a-zA-Z]*[0-9][a-zA-Z0-9]{3,31})/.source})(${/(?:\.[a-z|A-Z|0-9]{2,}){1,}/.source})$`);function h(e,t){let r=t?.split("."),s="",n=e;if(r?.length&&r.length>=3&&r[r.length-2]?.indexOf("[")<0&&"js|css|html".indexOf(r[r.length-1])>-1){s=r[r.length-2];let t=e.match(/(.*)(\.([a-f0-9]{4,32}|[a-zA-Z]*[0-9][a-zA-Z0-9]*))(\.[^.]+){2,}$/);if(t&&t[3].length>=4&&t[3].length<=32)return n=t[1],`${n}.${s}.${e.substring(e.lastIndexOf(".")+1)}`}let i=e.match(u);return i&&i[2]&&i[2].length>=4&&i[2].length<=32?e.replace(u,"$1$3"):e}function p(e,t){let r;return e.path.slice(-t.length)===t||((r=e.path.split("?")[0].match(/\.([0-9a-z]+)(?:[?#]|$)/i))?`.${r[1]}`:"")===t}function m(e,t){return!!t.length&&t.some(t=>p(e,t))}function f(e,t){var r,n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{withFileContent:l=!0,filterOrExtensions:a}=i;return(e=e.filter(e=>!m(e,s.YM.Jt)),a&&(r=e,a&&(r="function"==typeof a?r.filter(a):(n=r,"string"==typeof a?n.filter(e=>p(e,a)):Array.isArray(a)?n.filter(e=>m(e,a)):[])),e=r),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,gzipSize:e.gzipSize,initial:x(e,t),content:l?e.content:void 0}))}:{count:0,size:0,files:[]}}function x(e,t){return l(n(e),t,void 0).some(e=>!!e.initial)}function g(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(e,t,{...r,filterOrExtensions:e=>{var s;return(!(s=r.filterOrExtensions)||("function"==typeof s?s(e):"string"==typeof s?p(e,s):m(e,s)))&&x(e,t)}})}function y(e,t){return{all:{total:v(e,t)},js:{total:v(e,t,s.YM.Wm),initial:v(e,t,s.YM.Wm,!0)},css:{total:v(e,t,s.YM.lk),initial:v(e,t,s.YM.lk,!0)},imgs:{total:v(e,t,s.YM.q$)},html:{total:v(e,t,s.YM.Fe)},media:{total:v(e,t,s.YM.zz)},fonts:{total:v(e,t,s.YM.AU)},others:{total:v(e,t,e=>!m(e,[...s.YM.Wm,s.YM.lk,s.YM.Fe].concat(s.YM.q$,s.YM.zz,s.YM.AU,s.YM.Jt)))}}}function j(e,t){let r=e===t;return{percent:r?0:0===e?100:Math.abs(t-e)/e*100,state:r?s.Kj.Ol.Equal:e>t?s.Kj.Ol.Down:s.Kj.Ol.Up}}function v(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n,i,{size:l,count:a}=s?g(e.assets,e.chunks,{filterOrExtensions:r}):f(e.assets,e.chunks,{filterOrExtensions:r});if(e===t)n=l,i=a;else{let{size:e,count:l}=s?g(t.assets,t.chunks,{filterOrExtensions:r}):f(t.assets,t.chunks,{filterOrExtensions:r});n=e,i=l}let{percent:o,state:d}=j(l,n);return{size:{baseline:l,current:n},count:{baseline:a,current:i},percent:o,state:d}}function b(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={...r,filterOrExtensions:s.YM.Wm},i={...r,filterOrExtensions:s.YM.lk},l={...r,filterOrExtensions:s.YM.q$},a={...r,filterOrExtensions:s.YM.Fe},o={...r,filterOrExtensions:s.YM.zz},d={...r,filterOrExtensions:s.YM.AU},c={...r,filterOrExtensions:e=>!m(e,[...s.YM.Wm,s.YM.lk,s.YM.Fe].concat(s.YM.q$,s.YM.zz,s.YM.AU,s.YM.Jt))};return{all:{total:f(e,t,r)},js:{total:f(e,t,n),initial:g(e,t,n)},css:{total:f(e,t,i),initial:g(e,t,i)},imgs:{total:f(e,t,l)},html:{total:f(e,t,a)},media:{total:f(e,t,o)},fonts:{total:f(e,t,d)},others:{total:f(e,t,c)}}}function A(e,t,r,s,i){let a=t.find(t=>t.path===e);return{asset:a,chunks:l(n(a),r,void 0),modules:o(a,r,s,void 0,i)}}function w(e,t,r,s){let n=[];try{for(let i=0;i<e.length;i++){let l=e[i];n.push({asset:l,modules:o(l,t,r,s)})}return n}catch(e){return console.error(e),[]}}function S(e){return e}},94485(e,t,r){var s=r(16397),n=r(85409);function i(e){let t=1/0,r=-1/0;for(let s=0;s<e.length;s++){let n=e[s];n.startAt<=t&&(t=n.startAt),n.endAt>=r&&(r=n.endAt)}return{start:t,end:r}}function l(e,t){let r={},n={};t.forEach(t=>{e(t)?(r[t.pid]||(r[t.pid]=[]),r[t.pid].push([t.startAt,t.endAt])):(n[t.pid]||(n[t.pid]=[]),n[t.pid].push([t.startAt,t.endAt]))});let i=0,l=Object.keys(r);for(let e=0;e<l.length;e++){let t=l[e],a=(0,s.l7)(r[t]),o=(0,s.l7)(n[t]||[]).filter(e=>{let[t,r]=e;return a.some(e=>t>=e[0]&&r<=e[1])});i+=(a.length?a.reduce((e,t)=>e+=t[1]-t[0],0):0)-(o.length?o.reduce((e,t)=>e+=t[1]-t[0],0):0)}return i}function a(e,t){let r=t.filter(t=>!t.loader.includes("builtin")&&t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),n=e.endAt-e.startAt;return r.length&&(0,s.l7)(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];n-=t}),n}function o(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(g(e.loader)))),[...t]}function d(e){let t=[];for(let r=0;r<e.length;r++){let s=e[r];for(let e=0;e<s.loaders.length;e++){let r=s.loaders[e];t.push(r)}}return t}function c(e){let t=[],r=d(e);return e.forEach(e=>{e.loaders.forEach(s=>{t.push({layer:e.resource.layer,loader:g(s.loader),isPitch:s.isPitch,startAt:s.startAt,endAt:s.endAt,pid:s.pid,sync:s.sync,resource:e.resource.path,costs:a(s,r)})})}),t}function u(e){let t=d(e);return e.map(e=>{let{loaders:r,resource:s}=e;return{path:s.path,layer:s.layer,loaders:r.map(e=>({key:e.path,loader:g(e.loader),path:e.path,errors:e.errors,costs:a(e,t)}))}})}function h(e,t){let r=t.find(t=>t.resource.path===e);if(!r)throw Error(`"${e}" not match any loader data`);let s=d(t);return{...r,loaders:r.loaders.map(e=>{let{input:t,result:r,...n}=e;return{...n,loader:g(e.loader),costs:a(e,s)}})}}function p(e,t){let r=t.filter(t=>{let{path:r}=t.resource;return r.startsWith(e)}),s=[],n=new Map;return r.forEach(e=>{e.loaders.forEach(e=>{let t=n.get(e.loader);return t?n.set(e.loader,{files:t.files+1,path:e.path}):n.set(e.loader,{files:1,path:e.path}),s.push({loader:e.loader,startAt:e.startAt,endAt:e.endAt,pid:e.pid})})}),Array.from(n).map(e=>{let t=l(t=>t.loader===e[0],s);return{loader:e[0],files:e[1].files,path:e[1].path,costs:t}})}function m(e,t){let r,s=t||n.cwd();return(r=new Set,e.forEach(e=>{if(e.resource.path.startsWith(s)){let t=e.resource.path.split(s).slice(1).join("/").split("/");if(t.length>=2){let e=t.slice(0,2).join("/");r.add(`${s}/${e}`)}}else{let t=e.resource.path.split("/"),s=t.slice(0,t.length-1).join("/");r.add(s)}}),Array.from(r)).map(t=>{let r=p(t,e);return{directory:t,stats:r}})}function f(e,t){for(let r=0;r<t.length;r++){let s=t[r];if(s.resource.path===e){let e=s.loaders.filter(e=>!e.isPitch);if(!e.length)return"";return e[0].input||""}}return""}function x(e,t,r,s){for(let n=0;n<s.length;n++){let i=s[n];if(i.resource.path===e)for(let e=0;e<i.loaders.length;e++){let s=i.loaders[e];if(g(s.loader)===t&&s.loaderIndex===r)return{input:s.input||"",output:s.result||""}}}return{input:"",output:""}}let g=e=>{let t=e.includes("node_modules")?e.split("node_modules"):null;return t?t[t.length-1]:e};r.d(t,{Ah:()=>f,Gk:()=>o,Wx:()=>a,Yf:()=>h,Ym:()=>u,bO:()=>p,eJ:()=>x,pU:()=>l,q6:()=>c,qJ:()=>m,xr:()=>i})},73555(e,t,r){var s=r(16397),n=r(52497);function i(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>(0,n.Km)(e)))}async function l(e,t){let r=await Promise.all(e.map(e=>t(e))),n=0===r.length?[]:r.reduce((e,t)=>e+t);return"object"==typeof n?n:JSON.parse((0,s.J0)(n))}r.d(t,{pJ:()=>l,tg:()=>i})},16664(){let e=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/;RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${e.source}[/|+])?(?:${e.source}\\+)*(?:${e.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${e.source}[/|+])?(?:${e.source})(?:@${e.source})?)*/`,"g")},47776(e,t,r){var s=r(16397);function n(e){return!!e.result}function i(e){return e.map(e=>({issuerPath:e.issuerPath}))}function l(e,t,r,i){let l=r.find(t=>t.path===e),a=t.filter(t=>t.issuerPath===e),o=l&&i&&i[l.id]?i[l.id].source:"",d=a.reduce((e,t)=>t.request&&n(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,o);return{filepath:e,before:o,after:d,resolvers:a.map(e=>{let r,n;return{...e,costs:(r=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),n=e.endAt-e.startAt,r.length&&(0,s.l7)(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];n-=t}),n)}})}}r.d(t,{Iu:()=>n,NB:()=>i,Vj:()=>l})},83920(e,t,r){var s;function n(e){if(!Array.isArray(e)||!e[0])return{isRspack:!1,hasSourceMap:!1};let t="rspack"===e[0].name&&e[0]?.config?.name!=="lynx",r=e[0].config?.devtool,s=e[0].config?.plugins,n=s?.filter(e=>e&&e.includes("SourceMapDevToolPlugin"));return{isRspack:t,hasSourceMap:"string"==typeof r&&r.includes("source-map")&&!r.includes("eval")||!!n?.length}}(s={}).Bootstrap="bootstrap->rspack:beforeCompile",s.Compile="rspack:beforeCompile->afterCompile",s.Done="rspack:afterCompile->done",s.Minify="rspack:minify(rspack:optimizeChunkAssets)",r.d(t,{fM:()=>n})},34275(e,t,r){function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return 0===t?Math.floor(e):+e.toFixed(t)}function n(e,t){return"m"===t?e>1?"mins":"min":e>1?"hours":"hour"}function i(e){if((e=Number(e))>=1e3){let t=e/1e3;if(t>=60){let e=t/60;if(e>=60){let t=s(e/60,0),r=s(e%60,1),i=n(t,"h");return r>0?`${t}${i} ${r}${n(r,"m")}`:`${t}${i}`}let r=n(e=s(e,0),"m"),i=s(t%60,0);return i>0?`${e}${r} ${i}s`:`${e}${r}`}return`${s(t,1)}s`}if(e>=10)return`${+s(e,0)}ms`;if(e>=1)return`${+s(e,1)}ms`;let t=+s(e,2);return 0===t&&(t=+s(e,3)),`${t}ms`}r(85409),r(85409),r.d(t,{a4:()=>i,l_:()=>n,ox:()=>s})},52497(e,t,r){var s=r(13078);let{isAbsolute:n}=r.n(s)(),i=/^(?:[a-zA-Z]:[\\/]|\\\\)/;function l(e){return/^https?:\/\//.test(e)}function a(e){var t;return!!("string"==typeof e&&(l(e)||n(t=e)||i.test(t)))}r.d(t,{Km:()=>a,gU:()=>l})},11223(e,t,r){var s=r(87826);let n=1;class i{static kind=s.hp.yV;static init(){n=1}id;request;module;kind;typeString;statements=[];_originDependency;meta={exportsType:"default-with-named"};constructor(e,t,r,s,i){this.id=n++,this.request=e,this.module=t,this._originDependency=r,this.kind=s,this.statements=i??[]}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return s.hp.yV[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===s.hp.JT.Concatenation}isSameWithoutStatements(e){return this.request===e.request&&this.kind===e.kind&&this.module.id===e.module.id&&this.dependency.id===e.dependency.id}addStatement(e){this.hasStatement(e)||this.statements.push(e)}hasStatement(e){return this.statements.some(t=>t.isSame(e))}setBuildMeta(e){this.meta={...this.meta,...e}}toData(){return{id:this.id,request:this.request,resolvedRequest:this.resolvedRequest,kind:this.kind,...void 0!==this.typeString&&{typeString:this.typeString},module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}setId(e){this.id=e}}r.d(t,{O:()=>i})},22464(e,t,r){var s=r(87826),n=r(11223),i=r(66714),l=r(87261),a=r(61726);class o{static init(){i.n.init(),n.O.init(),a.To.init()}static fromData(e){let t=new o,r=e=>new l.W(t.getModuleById(e.module),e.position);for(let r of e.modules??[]){let e=new i.n(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 n=t.getModuleById(s.id);for(let i of s.dependencies){let s=(e.dependencies??[]).find(e=>e.id===i),l=s&&t.getModuleById(s.originDependency);if(!s||!l){console.warn(`The connection data ID is empty: ${i}`);continue}let a=n.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}n.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}n.addConcatenationModule(r)}}for(let s of e.exports??[]){let e=new a.Du(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 n=new a.rT(s.name,e,s.usedInfo,r(s.identifier)),i=t._exportIdMap.get(s.exported??-1);i&&n.setExportInfo(i),n.id=s.id,t.addVariable(n)}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 n=new a.be(s.name,e,r(s.identifier),s.originName);for(let e of(n.isNameSpace=s.isNameSpace,n.id=s.id,s.exports??[])){let r=t._exportIdMap.get(e);r&&r.addSideEffect(n)}if(s.variable){let e=t._varIdMap.get(s.variable);e&&(n._variable=e)}t.addSideEffect(n)}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.To(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 o.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 o&&(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!==s.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._moduleIdMap.delete(e.id),this._moduleIdentifierMap.delete(e.identifier),e.getDependencies()))this.removeDependency(t),this._dependenciesIdMap.delete(t.id);for(let t of e.getImported())t.removeDependencyByModule(t)}removeDependency(e){e.module.removeDependency(e),e.dependency.removeImported(e.module),this._dependenciesIdMap.delete(e.id)}addModuleGraphModule(e){this._moduleGraphModules.has(e.module)||this._moduleGraphModules.set(e.module,e)}getModuleGraphModule(e){return this._moduleGraphModules.get(e)}getModuleGraphModules(){return Array.from(this._moduleGraphModules.values())}addExportInfo(e){this._exportIdMap.set(e.id,e)}addSideEffect(e){this._sideEffectIdMap.set(e.id,e)}addVariable(e){this._varIdMap.set(e.id,e)}addLayer(e){this._layers.get(e)||this._layers.set(e,1)}getLayers(){return this._layers}toData(e){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]:s.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}}r.d(t,{d:()=>o})},66714(e,t,r){var s=r(87826),n=r(62343),i=r(13078),l=r.n(i),a=r(11223),o=r(87261),d=r(54005),c=r(46068);let u=1;class h{static kind=s.hp.JT;issuerPath=[];static init(){u=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,n=s.hp.JT.Normal,i,l=""){this.id=u++,this.identifier=e,this.path=t,this.isEntry=r,this.kind=n,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 n=new a.O(e,this,t,r,s);if(this.dependencies.every(e=>!e.isSameWithoutStatements(n)))return this.dependencies.push(n),t.addImported(this),t.rootModule&&t.rootModule.addImported(this),n}removeDependency(e){this.dependencies=this.dependencies.filter(t=>t===e)}removeDependencyByModule(e){let t=this.getDependencyByModule(e);t&&this.removeDependency(t)}getImported(){return this.imported.slice()}addImported(e){this.imported.includes(e)||this.imported.push(e)}removeImported(e){this.imported=this.imported.filter(t=>t===e)}setProgram(e){this.program=e}getProgram(){return this.program}setSource(e){let{source:t}=this;t.source=e.source??t.source,t.transformed=e.transformed??t.transformed,t.parsedSource=e.parsedSource??t.parsedSource}getSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.hp.w5.Normal;return e===s.hp.w5.NoCode?{source:"",transformed:"",parsedSource:""}:e===s.hp.w5.NoSourceAndAssets||e===s.hp.w5.NoSource?{source:"",transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}:e===s.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;if(t.sourceSize=e.sourceSize??t.sourceSize,t.transformedSize=e.transformedSize??t.transformedSize,t.parsedSize=e.parsedSize??t.parsedSize,"number"==typeof e.gzipSize)t.gzipSize=e.gzipSize;else{let e=this.source.parsedSource||this.source.source;if(e&&"string"==typeof e&&e.length>0)try{t.gzipSize=(0,c.gzipSync)(e,{level:9}).length}catch{t.gzipSize=0}}}getSize(){return{...this.size}}getStatement(e){return new o.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,n.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,n.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,d.ug)(this.identifier),n={id:this.id,renderId:this.renderId,identifier:e&&s.indexOf(".")>0?l().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)&&(n.meta={},this.meta.hasSetEsModuleStatement&&(n.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(n.meta.strictHarmonyModule=!0)),this.isEntry&&(n.isEntry=this.isEntry),this.modules.length>0&&(n.modules=this.modules.map(e=>e.id)),this.rootModule&&(n.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(n.concatenationModules=this.concatenationModules.map(e=>e.id)),n}setId(e){this.id=e}setRenderId(e){this.renderId=e}setChunks(e){this.chunks=e}setDependencies(e){this.dependencies=e}setImported(e){this.imported=e}setModules(e){this.modules=e}setConcatenationModules(e){this.concatenationModules=e}}r.d(t,{n:()=>h})},87261(e,t,r){var s=r(54005);class n{static getDefaultStatement(e){let t={line:1,column:0},r={start:{...t},end:{...t}};return new n(e,{source:{...r},transformed:{...r}})}position;module;constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,s.Ut)(this.position.transformed,e.position.transformed)}getSourcePosition(){let{module:e,position:t}=this;return t.source?t.source:e.getSourceMap()?(t.source=e.getSourceRange(t.transformed),t.source):void 0}getLineCode(){let e=this.module.isPreferSource&&this.position.source,t=this.module.getSource(),r=e?t.source:t.transformed,s=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof s)return r.split("\n")[s-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}r.d(t,{W:()=>n})},61726(e,t,r){r.d(t,{Du:()=>n,To:()=>d,be:()=>l,rT:()=>o});let s=1;class n{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}}let i=1;class l{static init(){i=1}static NamespaceSymbol=Symbol("namespace");id=i++;name;originName;module;identifier;isNameSpace;fromDependency;_exports=[];_variable;constructor(e,t,r,s,n){this.name=e,this.module=t,this.identifier=r,s&&(this.fromDependency=this.module.getDependencyByRequest(s)),n===l.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=n)}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}}let a=1;class o{static init(){a=1}id=a++;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}}class d{static init(){n.init(),l.init(),o.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)}}}},54005(e,t,r){var s=r(62343);function n(e,t){return e.line===t.line&&e.column===t.column}function i(e,t){return!!n(e.start,t.start)&&((0,s.gD)(e.end)||(0,s.gD)(t.end)?(0,s.b0)(e.end)&&(0,s.b0)(t.end):n(e.end,t.end))}let l=/!/,a=/\s\+\s\d*\smodules$/,o=/^css\s.*node_modules(?!\/)/;function d(e){if(!e)return"";if(l.test(e)){let t=(0,s.HV)(e.split(l));if(t?.trim())return t}return a.test(e)?e.replace(a,""):o.test(e)?e.replace(o,""):e}r.d(t,{Ut:()=>i,ug:()=>d})},72229(e,t,r){r(8963).hp},98147(e,t,r){r(57896)},87826(e,t,r){r.d(t,{Kj:()=>b,YM:()=>o,_8:()=>i,jO:()=>v,hp:()=>a});var s,n,i={};r.r(i),r.d(i,{V:()=>h,z:()=>u});var l={};r.r(l),r.d(l,{n:()=>y,k:()=>j});var a={};r.r(a),r.d(a,{yV:()=>g.yV,JT:()=>g.JT,uT:()=>l,w5:()=>g.w5});var o={};r.r(o),r.d(o,{lk:()=>w,AU:()=>C,Fe:()=>S,q$:()=>k,Wm:()=>A,Jt:()=>E,zz:()=>M,tQ:()=>T});var d,c,u=((d={}).Overall="Overall",d.Loaders="Compile.Loaders",d.ModuleResolve="Compile.ModuleResolve",d.Plugins="Compile.Plugins",d.BundleSize="Bundle.BundleSize",d.ModuleGraph="Bundle.ModuleGraph",d.TreeShaking="Bundle.TreeShaking",d),h=((c={}).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__",c);(p={})[p.Ignore=0]="Ignore",p[p.Warn=1]="Warn",p[p.Error=2]="Error",(m={})[m.Silent=0]="Silent",m[m.Error=1]="Error",m[m.Warning=2]="Warning",m[m.Info=3]="Info",m[m.Debug=4]="Debug",m[m.Verbose=5]="Verbose";var p,m,f,x,g=r(4349),y=((f={}).ApplyErrorFix="/api/apply/error/fix",f.Env="/api/env",f.EntryHtml="/index.html",f.Manifest="/api/manifest.json",f.LoadDataByKey="/api/data/key",f.SendAPIDataToClient="/api/socket/send",f.GetProjectInfo="/api/project/info",f.GetClientRoutes="/api/routes",f.ReportLoader="/api/loader/report",f.GetLoaderNames="/api/loader/names",f.GetLoaderChartData="/api/loader/chart/data",f.GetLoaderFileTree="/api/loader/filetree",f.GetLoaderFileDetails="/api/loader/file",f.GetLoaderFolderStatistics="/api/loader/folder/statics",f.GetLoaderFileFirstInput="/api/loader/input",f.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",f.GetDirectoriesLoaders="/api/loader/directories",f.ReportSourceMap="/api/sourcemap/report",f.GetResolverFileTree="/api/resolver/filetree",f.GetResolverFileDetails="/api/resolver/file",f.GetPluginSummary="/api/plugins/summary",f.GetPluginData="/api/plugins/data",f.GetSummaryBundles="/api/graph/bundles/summary",f.GetChunkGraph="/api/graph/chunks/graph",f.GetAssetsSummary="/api/graph/assets/summary",f.GetAssetDetails="/api/graph/asset/details",f.GetChunksByModuleId="/api/graph/chunk/module",f.GetModuleDetails="/api/graph/module/details",f.GetModulesByModuleIds="/api/graph/modules/ids",f.GetEntryPoints="/api/graph/entrypoints",f.GetModuleCodeByModuleId="/api/graph/module/code",f.GetModuleCodeByModuleIds="/api/graph/module/codes",f.GetAllModuleGraph="/api/graph/module/all",f.GetAllChunkGraph="/api/graph/chunk/all",f.GetLayers="/api/graph/layers",f.GetSearchModules="/api/search/modules",f.GetSearchModuleInChunk="/api/search/chunk/modules",f.GetAllModuleGraphFilter="/api/graph/module/filter",f.GetModuleByName="/api/graph/module/name",f.GetModuleIssuerPath="/api/graph/module/issuer_path",f.GetPackageInfo="/api/package/info",f.GetPackageDependency="/api/package/dependency",f.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",f.GetOverlayAlerts="/api/alerts/overlay",f.GetBundleAlerts="/api/alerts/bundle",f.BundleDiffManifest="/api/bundle_diff/manifest.json",f.GetBundleDiffSummary="/api/bundle_diff/summary",f.GetChunkGraphAI="/api/graph/chunks/graph/ai",f.GetChunkByIdAI="/api/graph/chunk/id/ai",f),j=((x={}).GetCompileProgress="/api/progress",x);(s={})[s.ImportDefault=100]="ImportDefault",s[s.ImportNamed=101]="ImportNamed",s[s.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",s[s.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",s[s.ImportNamespace=104]="ImportNamespace",s[s.ImportSideEffect=105]="ImportSideEffect",s[s.ImportDynamic=106]="ImportDynamic",s[s.ExportDeclaration=200]="ExportDeclaration",s[s.ExportList=201]="ExportList",s[s.ExportDefault=202]="ExportDefault",s[s.ExportAggregating=203]="ExportAggregating",s[s.ExportNamespace=204]="ExportNamespace",s[s.RequireCall=300]="RequireCall",s[s.RequireName=301]="RequireName",s[s.RequireExports=302]="RequireExports",s[s.RequireExportAggregating=303]="RequireExportAggregating",s[s.RequireExportName=304]="RequireExportName",s[s.Unknown=999]="Unknown",(n={}).brief="brief",n.lite="lite",n.normal="normal";var v=r(57942),b=r(11339);let A=[".js",".bundle"],w=".css",S=".html",k=[".png",".jpg",".svg",".webp",".jpeg",".gif",".bmp"],M=[".mp3",".mp4",".avi",".wav",".flv",".mov",".mpg",".mpeg"],C=[".ttf",".fnt",".fon",".otf",".woff",".woff2"],E=[".js.map",".css.map",".ts.map",".LICENSE.txt"],T="__RSDOCTOR__"},61982(e,t,r){let s="E1001",n={code:s,title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
13
+ #### Description
14
+
15
+ There is a same name package which is bundled in multiple versions in your application.
16
+
17
+ This negatively impacts the bundle size of your application.
18
+
19
+ #### General Solution
20
+
21
+ Add an entry in \`resolve.alias\` to configure Rspack to route any package references to a single specified path.
22
+
23
+ For example, if \`lodash\` is duplicated in your bundle, the following configuration would make all Lodash imports refer to the \`lodash\` instance found at \`./node_modules/lodash\`:
24
+
25
+ \`\`\`js
26
+ {
27
+ alias: {
28
+ lodash: path.resolve(__dirname, 'node_modules/lodash')
29
+ }
30
+ }
31
+ \`\`\`
32
+ `};r.d(t,{a:()=>s,i:()=>n})},65467(e,t,r){let s="E1002",n={code:s,title:"Cross Chunks Packages",type:"markdown",category:"bundle",description:`
33
+ #### Description
34
+
35
+ There is a package with the same version that is duplicated across different chunks in your application. This redundancy increases the overall bundle size, which is not optimal for performance.
36
+
37
+ #### General Solution
38
+
39
+ To address this issue, you can use Rspack's **SplitChunksPlugin** to extract common dependencies into a separate chunk. This ensures that the same package is not duplicated across multiple chunks, thereby reducing the bundle size.
40
+
41
+ For example, if **lodash** is being duplicated across different chunks, you can configure the **optimization.splitChunks** option in your Rspack configuration to extract **lodash** into a separate chunk:
42
+
43
+ \`\`\`
44
+ module.exports = {
45
+ optimization: {
46
+ splitChunks: {
47
+ cacheGroups: {
48
+ commons: {
49
+ test: /[\\/]node_modules[\\/]lodash[\\/]/,
50
+ name: 'lodash',
51
+ chunks: 'all',
52
+ },
53
+ },
54
+ },
55
+ },
56
+ };
57
+ \`\`\`
58
+
59
+ This configuration will automatically split out common dependencies (including those from \`node_modules\`) into separate chunks, ensuring that no package is duplicated across different chunks.
60
+ `};r.d(t,{a:()=>s,i:()=>n})},17524(e,t,r){let s="E1003",n={code:s,title:"Loader Performance Optimization",type:"markdown",category:"compile",description:`
61
+ #### Description
62
+
63
+ Usually the slow compile of most projects is due to the slow execution of the loaders.
64
+
65
+ And the loaders always pre-process many unnecessary files, such as \`node_modules files\` and \`already compiled files\`.
66
+
67
+ #### General Solution
68
+
69
+ Set \`exclude\` to the \`module.rules\` of Rspack configuration for target loader.
70
+
71
+ For example, if \`node_modules/lodash\` is processed by the \`babel-loader\` that make the compile slowly:
72
+
73
+ \`\`\`
74
+ {
75
+ module: {
76
+ rules: [
77
+ {
78
+ test: /\\.js$/,
79
+ use: 'babel-loader',
80
+ exclude: [
81
+ /node_modules\\/lodash/
82
+ ]
83
+ }
84
+ ]
85
+ }
86
+ }
87
+ \`\`\`
88
+ `};r.d(t,{a:()=>s,i:()=>n})},45121(e,t,r){let s="E1004",n={code:s,title:"ECMA Version Check",type:"markdown",category:"bundle",description:`
89
+ #### Description
90
+
91
+ Detect if there is a newer version of ECMA syntax in the js bundle file
92
+ `};r.d(t,{a:()=>s,i:()=>n})},37842(e,t,r){let s="E1005",n={code:s,title:"Default Import Check",type:"markdown",category:"compile",description:`
93
+ #### Description
94
+
95
+ Usually the bundler will automatically compatible different modules that has different types, but in a special case, the operation of compatibility will fail.
96
+ That is, when you use \`Default Import\` to import a cjs module, and this cjs module do not have the compatible statement, such as \`exports.default = \`.
97
+
98
+ #### General Solution
99
+
100
+ 1. for cjs module, write a \`exports.default = \` statement for default export.
101
+ 2. use \`Namespace Import\` for import the cjs module.
102
+
103
+ For example, for the package \`htmlparser2@7.2.0\`:
104
+
105
+ \`\`\`ts
106
+ // you should use this
107
+ import * as Parser from 'htmlparser2';
108
+
109
+ // can not use this
110
+ import Parser from 'htmlparser2';
111
+ \`\`\`
112
+ `};r.d(t,{a:()=>s,i:()=>n})},44639(e,t,r){let s="E1006",n={code:s,title:"Module Mixed Chunks",type:"markdown",category:"bundle",description:"\n#### Description\n\nWhen a module is included in both **initial chunks** and **async chunks**, the same module code is bundled into multiple chunks, increasing output size and potentially affecting first-screen load and cache efficiency.\n\n- **Initial chunks**: Chunks loaded with the main entry (e.g. entry points, synchronous `import` in the main bundle).\n- **Async chunks**: Chunks loaded on demand via dynamic `import()` or similar.\n\nIn the **Module Mixed Chunks** tab of Bundle Alerts, each entry shows the module path, **Initial Chunks** list, and **Async Chunks** list so you can locate duplicated modules.\n\n#### Common Causes\n\n- **Same module referenced in two ways**: The module is both synchronously imported in the main bundle or entry and dynamically `import()`ed elsewhere, so the bundler emits it in both initial and async chunks.\n- **A file is both an entry and an async chunk**: e.g. a utility module is configured as an entry and also `import()`ed in app code, so it appears in the entry's initial chunk and in a dynamically loaded async chunk.\n- **splitChunks overlapping with entry**: A path is split into an async chunk via `splitChunks` / `chunkSplit`, but that path is also an entry or a main-bundle dependency, leading to mixed chunk types.\n\n#### General Solution\n\n1. **Use a single import style**: Prefer one way to reference a module—either all synchronous imports (initial) or all dynamic `import()` (async). Avoid the same file being both synchronously imported in the main bundle and dynamically imported elsewhere.\n2. **Review entry vs dynamic loading**: If a file is both an entry and part of an async chunk, remove one of those usages or extract it into a single shared chunk via build config so both initial and async chunks reference it instead of duplicating it.\n3. **Adjust splitChunks**: Check rules for that module path in `optimization.splitChunks` (Rspack) or `performance.chunkSplit` (Rsbuild), and avoid the same module being split into both initial and async chunks. Use `chunks: 'async'` or `chunks: 'initial'` where appropriate, or control which chunk type it goes into via `cacheGroups` and `test` / `chunks`.\n4. **Trace dependencies**: From the reported module path and chunk list, search the codebase for references to that module, distinguish sync vs dynamic imports, then converge to a single chunk type or extract a common chunk.\n"};r.d(t,{a:()=>s,i:()=>n})},10024(e,t,r){let s="E1007",n={code:s,title:"Tree Shaking Side Effects Only",type:"markdown",category:"bundle",description:"\n#### Description\n\nThis rule detects modules that are pulled in and bundled solely due to side effects. This is often caused by unintended tree-shaking failures (e.g. missing or incorrect `\"sideEffects\"` field in `package.json`, or non-tree-shakeable import patterns), resulting in the entire module being bundled even though none of its exports are used.\n\n#### Common Causes\n\n- The package's `package.json` is missing `\"sideEffects\": false` (or incorrectly set to `true`), preventing the bundler from pruning unused exports.\n- An import statement like `import 'some-module'` or `import './styles.css'` is being treated as a side-effect-only import, but the intended use was to consume exports.\n- Barrel files (index files that re-export many things) cause the whole module to be kept alive when only a side-effect import is present.\n\n#### General Solution\n\n1. **Audit import statements**: Make sure you are actually importing and using named exports from this module. Replace bare side-effect imports with explicit named imports when you intend to use the module's exports.\n2. **Set `\"sideEffects\"` correctly**: In the module's `package.json`, set `\"sideEffects\": false` if the module has no global side effects, so the bundler can safely tree-shake unused exports.\n3. **Avoid unintended side-effect imports**: Remove or convert `import 'module'` patterns to explicit `import { foo } from 'module'` patterns where the exports are needed.\n"};r.d(t,{a:()=>s,i:()=>n})},89205(e,t,r){let s="E1008",n={code:s,title:"CJS Require Cannot Tree-Shake",type:"markdown",category:"bundle",description:"\n#### Description\n\nThis rule detects `require()` calls that use the **CJS Require** dependency type, which prevents tree-shaking of the required module. Unlike `require('module').property` (CJS Full Require), a bare `require('module')` call forces the entire module to be bundled because the bundler cannot statically determine which exports are used.\n\n#### Common Causes\n\n- Using `const mod = require('some-module')` instead of destructuring at the require site.\n- Dynamically accessing properties of the required module at runtime rather than statically.\n\n#### General Solution\n\n1. **Use destructured require**: Replace `const mod = require('A')` with `const { foo } = require('A')` (CJS Full Require) so the bundler can track which exports are used.\n2. **Migrate to ESM**: Use `import { foo } from 'A'` to enable full tree-shaking support.\n3. **Use require with property access**: Replace `const mod = require('A'); mod.foo()` with `const foo = require('A').foo` to allow partial tree-shaking.\n"};r.d(t,{a:()=>s,i:()=>n})},77366(e,t,r){let s="E1009",n={code:s,title:"ESM Import Resolved to CJS",type:"markdown",category:"bundle",description:'\n#### Description\n\nThis rule detects cases where a package provides both **ESM** and **CJS** formats (via the `module` field or `exports["."]["import"]` in `package.json`), but the bundler resolved the ESM `import` statement to the **CJS** entry instead.\n\nThis prevents tree-shaking of the package, leading to larger bundle sizes than necessary.\n\n#### Common Causes\n\n- The bundler\'s `resolve.mainFields` does not include `module`, so it falls back to `main` (CJS).\n- The `resolve.conditionNames` does not include `import`, so `exports` conditions are resolved as `require`.\n- The package uses `exports` field but the bundler version does not support conditional exports.\n\n#### General Solution\n\n1. **Add `module` to `resolve.mainFields`**: Ensure your bundler config includes `"module"` before `"main"`.\n2. **Add `import` to `resolve.conditionNames`**: For packages using the `exports` field, ensure the `import` condition is listed.\n3. **Check bundler version**: Older Rspack versions may not support `exports` conditional resolution. Upgrade if necessary.\n'};r.d(t,{a:()=>s,i:()=>n})},13259(e,t,r){var s,n,i=((s={}).Extend="EXTEND",s.Overlay="OVERLAY",s),l=((n={}).Compile="compile",n.Bundle="bundle",n.EMO="emo",n);r.d(t,{j:()=>i,y:()=>l})},50902(){},3710(){}}]);