@rsdoctor/client 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html><head><title>Rsdoctor</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="./resource/js/vender-0.37445432.js"></script><script defer="defer" src="./resource/js/vender-1.d4f2ed2c.js"></script><script defer="defer" src="./resource/js/vender-2.54b31040.js"></script><script defer="defer" src="./resource/js/ant-design-0.a84397bb.js"></script><script defer="defer" src="./resource/js/ant-design-1.883745d3.js"></script><script defer="defer" src="./resource/js/rc-0.b3dc8a7a.js"></script><script defer="defer" src="./resource/js/rc-1.c6049e6c.js"></script><script defer="defer" src="./resource/js/ant-design-icons.2f96a59e.js"></script><script defer="defer" src="./resource/js/react.a071177b.js"></script><script defer="defer" src="./resource/js/685.3bf6ad94.js"></script><script defer="defer" src="./resource/js/708.3e8fb3df.js"></script><script defer="defer" src="./resource/js/index.1ab34163.js"></script><link href="./resource/css/index.fff7e3c7.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1
+ <!doctype html><html><head><title>Rsdoctor</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="./resource/js/vender-0.37445432.js"></script><script defer="defer" src="./resource/js/vender-1.d4f2ed2c.js"></script><script defer="defer" src="./resource/js/vender-2.54b31040.js"></script><script defer="defer" src="./resource/js/ant-design-0.a84397bb.js"></script><script defer="defer" src="./resource/js/ant-design-1.883745d3.js"></script><script defer="defer" src="./resource/js/rc-0.b3dc8a7a.js"></script><script defer="defer" src="./resource/js/rc-1.c6049e6c.js"></script><script defer="defer" src="./resource/js/ant-design-icons.2f96a59e.js"></script><script defer="defer" src="./resource/js/react.a071177b.js"></script><script defer="defer" src="./resource/js/685.3bf6ad94.js"></script><script defer="defer" src="./resource/js/708.3e8fb3df.js"></script><script defer="defer" src="./resource/js/index.421ad43b.js"></script><link href="./resource/css/index.fff7e3c7.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -74,17 +74,17 @@
74
74
  <span>${(0,a.formatCosts)(t.args.e-t.args.s)}</span>
75
75
  </li>
76
76
  </div>
77
- `.trim()}function m(e,t){let[n,r]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n}},81185:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});let r={readOnly:!0,domReadOnly:!0,fontSize:12,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"bounded",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1}}},78527:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(31549),i=n(55834),s=n(95925),o=n(77422);let l=({before:e,after:t,filepath:n,className:l,editorProps:a})=>(0,r.jsx)(i.SV,{className:l,originalLanguage:(0,o.getOriginalLanguage)(n),modifiedLanguage:(0,o.getModifiedLanguage)(n),theme:"vs-dark",original:e,modified:t,width:"100%",...a,options:{readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderIndicators:!0,lineDecorationsWidth:s.Size.BasePadding,definitionLinkOpensInPeek:!1,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},diffWordWrap:"on",...a?.options}})},26026:function(e,t,n){"use strict";n(31549),n(44194),n(55834),n(77422),n(99997)},46591:function(e,t,n){"use strict";n.d(t,{ZX:function(){return r.Z},uX:function(){return i.u},ut:function(){return i.v},z9:function(){return s.z}});var r=n(78527);n(26026);var i=n(44548),s=n(81185)},44548:function(e,t,n){"use strict";n.d(t,{u:function(){return c},v:function(){return h}});var r=n(31549),i=n(55834),s=n(77590),o=n(85230),l=n(77422),a=n(81185),d=n(57448),u=n(47146);let c=({content:e,ranges:t,path:n,defaultLine:o,editorConfig:d={},emptyReason:c})=>e?(0,r.jsx)(i.ZP,{theme:"vs-dark",language:(0,l.getOriginalLanguage)(n),value:e,width:"100%",height:window.innerHeight/1.5,options:{...a.z,...d},onMount:(e,n)=>{(0,s.Z)(o)&&e.revealLine(o),t&&t.length>0&&e.deltaDecorations([],t.map(e=>({range:(0,l.getSelectionRange)(e,n.Range),options:{inlineClassName:"file-inline-decoration"}})))}}):(0,r.jsx)(u.Z,{description:c}),h=e=>(0,r.jsx)(d.XU,{text:"",buttonProps:{size:"small",icon:(0,r.jsx)(o.Z,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${e.path}"`},children:(0,r.jsx)(c,{...e})})},98915:function(e,t,n){"use strict";n.d(t,{S:function(){return j}});var r=n(31549),i=n(78741),s=n(99892),o=n(10855),l=n(95103),a=n(63272),d=n(8105),u=n(90396),c=n(44194),h=n(83421),f=n.n(h),p=n(77422),m=n(43622),x=n(57448),g=n(23675);let j=(0,m.U$)({Component:({defaultKeys:e,configs:t})=>{let n=(0,p.useWebpackConfigurationByConfigs)(t||[]);if(!n)return null;let{config:i,version:h,name:m}=n,j=Object.keys(i),[y,S]=(0,c.useState)(e||j);return(0,r.jsx)(x.XU,{text:"View Bundler Config",children:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(g.D,{text:"Bundler Config Viewer"}),(0,r.jsx)(o.Z,{}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z.Text,{children:"Properties: "}),(0,r.jsx)(d.Z,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:y.length===j.length?[]:y,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{S(e)},children:j.map(e=>(0,r.jsx)(d.Z.Option,{label:e,value:e,children:e},e))})]}),(0,r.jsx)(o.Z,{}),(0,r.jsx)(f(),{name:h&&"unknown"!==h?`${m}@${h}`:"webpack.config",theme:"monokai",src:0===y.length?i:(0,u.Z)(i,y),displayDataTypes:!1,displayObjectSize:!1})]})})},api:i.SDK.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1})},51264:function(e,t,n){"use strict";n.d(t,{S:function(){return r.S}});var r=n(98915)},35972:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(31549),i=n(75168),s=n(95103),o=n(37131),l=n(63933),a=n(17460),d=n(95457),u=n(75666),c=n(95925);n(33090);var h=n(77422);let{useToken:f}=i.Z,p=e=>{let{isDark:t}=(0,h.useTheme)(),{token:n}=f(),i=t?n.colorWhite:n.colorText,p={fontSize:n.fontSize};return(0,r.jsx)(u.Z,{checkable:!1,selectable:!0,switcherIcon:({data:e,expanded:t})=>e?.children?(0,r.jsxs)(s.Z,{style:{color:i},children:[(0,r.jsx)(o.Z,{twoToneColor:i,className:`file-tree-switcher-arrow ${t?"file-tree-switcher-arrow-expand":""}`,style:p}),t?(0,r.jsx)(l.Z,{twoToneColor:i,style:p}):(0,r.jsx)(a.Z,{twoToneColor:i,style:p})]}):(0,r.jsx)(d.Z,{style:{marginLeft:c.Size.BasePadding-6,color:i}}),expandAction:"click",...e})}},33448:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(31549),i=n(44194),s=n(41681),o=n(73176),l=n(63272);let a=({icon:e,label:t,labelStyle:n={},placeholder:a,onChange:d,style:u,className:c,width:h,delay:f=300})=>{let p;let[m,x]=(0,i.useState)(""),g={width:120,...n},j=(0,i.useRef)(null);return(0,i.useEffect)(()=>{d(m)},[m]),(0,r.jsxs)(s.Z.Group,{compact:!0,style:u,className:c,children:[t||e?(0,r.jsxs)(o.ZP,{style:g,onClick:()=>{j&&j.current&&j.current.focus()},children:[e||null,(0,r.jsx)(l.Z.Text,{children:t})]}):null,(0,r.jsx)(s.Z,{ref:j,allowClear:!0,defaultValue:m,style:{width:h?h-120:250},placeholder:a,onChange:e=>{clearTimeout(p);let t=e.target.value.trim();setTimeout(()=>{x(t)},f)}})]})}},67522:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(31549),i=n(63272);let s=({text:e,keyword:t,...n})=>{if(!t||-1===e.indexOf(t))return(0,r.jsx)(i.Z.Text,{...n,children:e});let s=[],o=e;for(;o.length>0;){let e=o.indexOf(t);if(e>-1)0!==e&&s.push((0,r.jsx)(i.Z.Text,{style:{fontSize:"inherit"},children:o.slice(0,e)},s.length)),s.push((0,r.jsx)(i.Z.Text,{mark:!0,style:{fontSize:"inherit"},children:t},s.length)),o=o.slice(e+t.length);else{s.push((0,r.jsx)(i.Z.Text,{style:{fontSize:"inherit"},children:o},s.length));break}}return(0,r.jsx)(i.Z.Text,{...n,children:s})}},5161:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var r=n(31549),i=n(10855),s=n(63272),o=n(8105),l=n(44194),a=n(39504),d=n(77422);let u=()=>{let[e,t]=(0,l.useState)(""),[n,u]=(0,l.useState)([]);return((0,l.useEffect)(()=>{(0,d.fetchManifest)().then(({name:e,series:n})=>{e&&t(e),n&&n.length>0&&u(n)})},[]),e.length<=0||n.length<=0)?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{type:"vertical",style:{margin:"0 24px"}}),(0,r.jsx)("img",{src:a,style:{marginRight:6,height:16}}),(0,r.jsx)(s.Z,{children:"Compiler"}),(0,r.jsx)(o.Z,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=n.find(t=>t.name===e);t&&(t.origin?location.href=(0,d.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:n.map((e,t)=>(0,r.jsx)(o.Z.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})}},75910:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});let r="Compile Analysis"},89782:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(31549),i=n(93297),s=n(31330),o=n(99892),l=n(13019),a=n(63272),d=n(73613),u=n(95925),c=n(77422),h=n(14496),f=n(5161),p=n(53876);n(64488);let m=()=>{let{i18n:e}=(0,c.useI18n)(),{isLight:t}=(0,c.useTheme)(),n=[{value:u.Language.Cn,label:"\u4E2D\u6587"},{value:u.Language.En,label:"English"}];return(0,r.jsx)(s.Z.Header,{style:{height:u.Size.NavBarHeight,padding:0,paddingLeft:u.Size.BasePadding,paddingRight:u.Size.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:t?"#fff":"#141414",transition:"none"},children:(0,r.jsxs)(o.Z,{justify:"space-between",align:"middle",style:{height:u.Size.NavBarHeight},wrap:!1,children:[(0,r.jsx)(l.Z,{style:{height:u.Size.NavBarHeight,lineHeight:`${u.Size.NavBarHeight+2}px`},children:(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,r.jsx)("img",{style:{height:30},src:"https://assets.rspack.dev/rsdoctor/rsdoctor-logo-960x960.png",className:"web-doctor-logo",alt:"logo"}),(0,r.jsx)(a.Z.Text,{style:{color:"inherit",fontSize:18,marginLeft:4,marginTop:8},children:"Rsdoctor"}),(0,r.jsx)(f.P,{})]})}),(0,r.jsx)(l.Z,{flex:1,children:(0,r.jsxs)(o.Z,{align:"middle",justify:"end",style:{height:u.Size.NavBarHeight},wrap:!1,gutter:[u.Size.BasePadding/3,0],children:[(0,r.jsx)(l.Z,{children:(0,r.jsx)(h.u1,{})}),(0,r.jsx)(p.I,{style:{transition:"none"}}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(d.Z,{overlayStyle:{zIndex:1e3},menu:{items:n.map(t=>({label:t.label,key:t.value,onClick(){e.changeLanguage(t.value)}})),selectedKeys:[e.language]},children:(0,r.jsx)(i.Z,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})}},42579:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(31549),i=n(44194),s=n(31330),o=n(62098),l=n(95925),a=n(89782),d=n(77422),u=n(36838),c=n(67351);let h=e=>{let t=(0,d.useLocale)(),{i18n:n}=(0,d.useI18n)(),{children:h}=e;(0,i.useEffect)(()=>{n.language!==t&&n.changeLanguage(t)},[t]);let f=(0,i.useContext)(c.E);return(0,r.jsxs)(s.Z,{children:[f.embedded?null:(0,r.jsx)(a.h,{}),(0,r.jsx)(u.E,{}),(0,r.jsxs)(s.Z.Content,{style:{height:"100%",minHeight:"100vh",padding:l.Size.BasePadding,marginTop:f.embedded?0:l.Size.NavBarHeight,background:l.MAIN_BG},children:[h,(0,r.jsx)(o.Z.BackTop,{})]})]})}},53876:function(e,t,n){"use strict";n.d(t,{I:function(){return C}});var r=n(31549),i=n(46976),s=n(70653),o=n(70706),l=n(60392),a=n(37809),d=n(83945),u=n(79666),c=n(78741),h=n(63272),f=n(42085),p=n(13019),m=n(15890),x=n(91425),g=n(51019),j=n(95925),y=n(38613),S=n(77422),Z=n(43622),b=n(83177),v=n(75910);let C=(0,Z.U$)({api:c.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,S.useI18n)(),{pathname:n}=(0,x.TH)(),Z=(0,x.s0)(),{routes:C}=e,M={fontSize:16},P={...M,transform:"translateY(-2px)"},w=[];console.log("enableRoutes: ",C),(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.Overall)&&w.push({label:t(y.u),key:y.B,icon:(0,r.jsx)(i.Z,{style:M}),children:[],onTitleClick(e){Z(e.key)}}),(0,S.hasCompile)(C)&&w.push({label:t(v._),key:v._,icon:(0,r.jsx)(s.Z,{style:M}),children:[(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:(0,r.jsx)(h.Z.Text,{style:{marginRight:8},children:t(b.Yt.u2)}),key:b.Yt.BC,icon:(0,r.jsx)("img",{src:g,alt:"",style:{...M,width:16}}),children:[{label:t(b.xA.u2),key:b.xA.BC,icon:(0,r.jsx)(i.Z,{style:M})},{label:t(b.Yt.u2),key:b.Yt.BC,icon:(0,r.jsx)(o.Z,{style:M})}]},(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(b.kc.u2),key:b.kc.BC,icon:(0,r.jsx)(l.Z,{style:M})},(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(b.UM.u2),key:b.UM.BC,icon:(0,r.jsx)(a.Z,{style:M})}].filter(e=>!!e)}),(0,S.hasBundle)(C)&&w.push({label:t(b.P3.u2),key:b.P3.u2,icon:(0,r.jsx)("span",{style:P,children:"\uD83D\uDCE6"}),children:[(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.BundleSize)&&{label:t(b.P3.u2),key:b.P3.BC,icon:(0,r.jsx)(d.Z,{style:M})},(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.TreeShaking)&&{label:t(b.wH.u2),key:b.wH.BC,icon:(0,r.jsx)(d.Z,{style:M})}].filter(e=>!!e)});let I=(0,r.jsx)(f.Z,{items:w,mode:"horizontal",onClick:e=>{!e.keyPath.includes("builder-switcher")&&Z(e.key)},overflowedIndicator:(0,r.jsx)(u.Z,{}),style:{height:j.Size.NavBarHeight,lineHeight:`${j.Size.NavBarHeight}px`,minWidth:0,justifyContent:"flex-end",...e.style},selectedKeys:["/"===n?y.B:n]},C.join(""));return(0,r.jsx)(p.Z,{xs:{span:3},md:{span:6},lg:{span:10},xl:{span:11},xxl:{span:12},children:I})},fallbackComponent:()=>null})},36838:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var r=n(31549),i=n(99892),s=n(13019),o=n(8646),l=n(63272),a=n(78741),d=n(95925),u=n(43622);let c=(0,u.U$)({api:a.SDK.ServerAPI.APIExtends.GetCompileProgress,responsePropName:"progress",Component:({progress:e})=>{if(!e)return null;let{percentage:t=1,message:n}=e;if(t>=1)return null;let a=+(100*t).toFixed(1);return(0,r.jsx)(i.Z,{wrap:!0,style:{width:"100%",position:"fixed",top:d.Size.NavBarHeight,left:1,zIndex:99},children:(0,r.jsx)(s.Z,{span:Math.min(Math.floor(24*t),24),children:(0,r.jsx)(o.Z,{percent:100,status:"active",size:"small",format:()=>(0,r.jsx)(l.Z.Text,{style:{fontSize:12},type:"secondary",children:`${a}% ${n}`})})})})},fallbackComponent:()=>null})},37189:function(e,t,n){"use strict";n.d(t,{Y:function(){return w}});var r=n(31549),i=n(44194),s=n(45641),o=n(50002),l=n(20942),a=n(95103),d=n(44242),u=n(63272),c=n(10855),h=n(99892),f=n(13019),p=n(89246),m=n(76779),x=n(74379),g=n(82218),j=n(9589),y=n(78741),S=n(43622),Z=n(95925),b=n(77422),v=n(84011),C=n(35972),M=n(67522),P=n(13872);let w=e=>{let{cwd:t,filetree:n}=e,[w,I]=(0,i.useState)(!1),[k,D]=(0,i.useState)(""),[E,T]=(0,i.useState)(0),[z,A]=(0,i.useState)(null),N=(0,i.useRef)(null),{initMonaco:_}=(0,b.useMonacoEditor)(),R=(0,i.useCallback)(async()=>{await _(N)},[]),B=(0,i.useMemo)(()=>n.filter(t=>t.loaders.some(n=>(0,b.filterLoader)(t.path,n.loader,e.filename,e.loaders))),[e.filename,e.loaders]),L="__RESOURCEPATH__",O=(0,i.useMemo)(()=>(0,b.createFileStructures)({files:B.map(e=>e.path),cwd:t,fileTitle(t,i){let{loaders:o}=n.find(e=>e.path===t);return(0,r.jsxs)(a.Z,{style:{wordBreak:"break-all"},onClick:()=>{T(0),D(t),I(!0)},children:[(0,r.jsx)(M.Z,{text:i,keyword:e.filename}),(0,s.Z)(t,y.Constants.JSExtension)?(0,r.jsx)(S.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFileFirstInput,body:{file:t},fallbackComponent:()=>null,children:e=>(0,r.jsx)(P.y,{code:e})}):null,o.map((e,n)=>{let i=e.errors&&e.errors.length,s=`${t}_${e.loader}_${n}`;return(0,r.jsx)(d.Z,{title:e.path,children:(0,r.jsxs)(u.Z.Text,{code:!0,style:{color:i?"#f50":"inherit"},onClick:e=>{e.stopPropagation(),D(t),T(n),I(!0)},children:[(0,r.jsx)(u.Z.Text,{style:{maxWidth:135,color:"inherit"},ellipsis:!0,children:e.loader}),(0,r.jsx)(c.Z,{type:"vertical"}),i?(0,r.jsx)(j.Z,{}):(0,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)(e.costs)})]})},s)})]})},dirTitle:(t,n)=>(0,r.jsx)(M.Z,{text:n,keyword:e.filename})}),[B]);return(0,r.jsxs)(h.Z,{style:{width:"100%"},gutter:Z.Size.BasePadding,children:[(0,r.jsx)(f.Z,{span:14,children:(0,r.jsxs)(p.Z,{title:(0,r.jsxs)(u.Z.Text,{strong:!0,children:["Total Files: ",B.length]}),bodyStyle:{overflow:"scroll",maxHeight:800,height:"40rem"},children:[(0,r.jsx)(C.z,{defaultExpandedKeys:(0,b.mapFileKey)(O,B.length>=100?3:4,e=>!((0,o.Z)(e,L).indexOf("/node_modules/")>-1)),treeData:O,onSelect:(e,t)=>{R(),!t.node.isLeaf&&A(t.node)},selectedKeys:z?[z.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,r.jsx)(m.Z,{open:w,onClose:()=>I(!1),maskClosable:!0,width:Z.drawerWidth,zIndex:999,bodyStyle:{padding:0},children:w?(0,r.jsx)(S.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:k},children:e=>(0,r.jsx)(v.g,{data:e,cwd:t,index:E})}):null})]})}),z?(0,r.jsx)(f.Z,{span:10,children:(0,r.jsx)(p.Z,{title:(0,r.jsx)(d.Z,{title:i.cloneElement(z.title,{style:{color:"#fff"}}),children:(0,r.jsxs)(u.Z.Text,{children:['Statistics of "',z.title,'"']})}),children:(0,r.jsx)(S.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:z[L]},children:e=>(0,r.jsx)(x.Z,{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,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e,footer:()=>(0,r.jsxs)(g.Z,{title:"Total",bordered:!0,layout:"vertical",size:"small",children:[(0,r.jsx)(g.Z.Item,{label:"loaders",children:e.length}),(0,r.jsx)(g.Z.Item,{label:"files",children:(0,l.Z)(e,e=>e.files)}),(0,r.jsx)(g.Z.Item,{label:"duration",children:(0,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)((0,l.Z)(e,e=>e.costs))})})]})})})})}):null]})}},4487:function(e,t,n){"use strict";n.d(t,{a:function(){return d}});var r=n(31549),i=n(44194),s=n(78741),o=n(43622),l=n(37189),a=n(42068);let d=(0,o.U$)({api:s.SDK.ServerAPI.API.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:({cwd:e})=>{let[t,n]=(0,i.useState)({filename:"",loaders:[]});return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.Nu,{api:s.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,r.jsx)(a.k,{onChange:e=>n(e),loaderNames:e})}),(0,r.jsx)(o.Nu,{api:s.SDK.ServerAPI.API.GetLoaderFileTree,children:n=>(0,r.jsx)(l.Y,{filename:t.filename,filetree:n,loaders:t.loaders,cwd:e})})]})}})},84011:function(e,t,n){"use strict";n.d(t,{g:function(){return T}});var r=n(31549),i=n(25505),s=n(55834),o=n(78741),l=n(99892),a=n(13019),d=n(95103),u=n(51927),c=n(63272),h=n(10855),f=n(97770),p=n(17611),m=n(44242),x=n(73176),g=n(76721),j=n(47146),y=n(28977),S=n.n(y),Z=n(45641),b=n(44194),v=n(95925),C=n(77422),M=n(21807),P=n(46591),w=n(99997),I=n(23675),k=n(1438);let D=({label:e,value:t,ellipsis:n=!1,...i})=>(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{span:6,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(u.Z,{status:"processing"}),(0,r.jsx)("div",{style:{width:180},children:(0,r.jsx)(c.Z.Text,{strong:!0,code:!0,children:e})}),(0,r.jsx)(h.Z,{type:"vertical"})]})}),(0,r.jsx)(a.Z,{span:18,children:(0,r.jsx)(c.Z.Paragraph,{ellipsis:n,strong:!0,...i,children:t})})]}),E=({loader:e,hasError:t,resource:n,before:s,cwd:l})=>(0,r.jsxs)(M.Zb,{title:"Loader Details",style:{border:"none"},extra:(0,r.jsx)(f.Z,{icon:(0,r.jsx)(i.Z,{}),color:"default",children:S()(e.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:[e.isPitch?(0,r.jsx)(c.Z.Text,{code:!0,children:"pitch"}):null,e.isPitch||t||!(0,Z.Z)(n.path,o.Constants.JSExtension)?null:(0,r.jsx)(k.E,{input:s,output:e.result||""}),(0,r.jsxs)(d.Z,{direction:"vertical",style:{padding:v.Size.BasePadding,wordBreak:"break-all"},children:[(0,r.jsx)(D,{label:"file path",value:(0,C.beautifyPath)(n.path,l),code:!0}),(0,r.jsx)(D,{label:"resource path",value:(0,r.jsx)(w.XF,{cwd:l,url:n.path,loc:"",disabled:!0})}),(0,r.jsx)(D,{label:"resource query",value:n.queryRaw||"-"}),(0,r.jsx)(D,{label:"duration",value:(0,C.formatCosts)(e.costs),mark:!0}),(0,r.jsx)(D,{label:"loader name",value:e.loader,code:!0}),(0,r.jsx)(D,{label:"loader index",value:`${e.loaderIndex}`}),(0,r.jsx)(D,{label:"loader path",value:(0,r.jsx)(w.XF,{cwd:l,url:e.path,loc:"",disabled:!0})}),(0,r.jsx)(D,{label:"options",value:JSON.stringify(e.options||"-"),copyable:!0,ellipsis:{rows:2,expandable:!0,symbol:"more"}})]})]}),T=({data:e,cwd:t,index:n})=>{let{loaders:o,resource:u}=e,[y,S]=(0,b.useState)(n||0),{theme:Z}=(0,C.useTheme)(),M="light"===Z,w=o[y],k=w.input||"",D=w.errors&&w.errors.length,[T,z]=(0,b.useState)("loaderDetails"),A=(0,b.useCallback)(e=>{z(e)},[]);return(0,r.jsxs)(l.Z,{style:{height:"100%"},children:[(0,r.jsx)(a.Z,{span:5,style:{borderRight:M?"1px solid #f0f0f0":void 0,padding:v.Size.BasePadding},children:(0,r.jsxs)(d.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(I.D,{text:"Executions"}),(0,r.jsx)(p.Z,{mode:"left",style:{marginTop:v.Size.BasePadding},children:o.map((e,t,n)=>{let{loader:s,isPitch:o}=e;return(0,r.jsxs)(p.Z.Item,{dot:o?(0,r.jsx)(f.Z,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,r.jsx)(i.Z,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,r.jsx)(l.Z,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,r.jsx)(a.Z,{span:24,children:(0,r.jsx)(m.Z,{title:s,trigger:"hover",children:(0,r.jsx)(x.ZP,{type:t===y?"primary":"default",block:!0,onClick:()=>{S(t)},style:{textAlign:"left"},children:(0,r.jsxs)(c.Z.Text,{ellipsis:!0,style:{color:"inherit"},children:[(0,r.jsx)(c.Z.Text,{strong:!0,style:{color:"inherit"},children:(0,C.formatCosts)(e.costs)}),(0,r.jsx)(h.Z,{type:"vertical"}),s]})})})})}),t===n.length-1?null:(0,r.jsx)("div",{style:{paddingTop:10},children:(0,r.jsx)(c.Z.Text,{children:"\u2B07\uFE0F"})})]},t)})})]})}),(0,r.jsx)(a.Z,{span:19,style:{height:"100%"},children:(0,r.jsx)(g.Z,{type:"card",defaultActiveKey:"loaderDetails",activeKey:T,items:[{label:"Loader Props",key:"loaderProps",children:(0,r.jsx)(E,{loader:w,hasError:D,resource:u,before:k,cwd:t})},{label:"Loader Details",key:"loaderDetails",children:(0,r.jsx)("div",{style:{height:"100%"},children:D?(0,r.jsxs)(a.Z,{span:24,style:{height:"53%",minHeight:400},children:[(0,r.jsx)("div",{style:{padding:v.Size.BasePadding,borderTop:`1px solid ${M?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${M?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,r.jsx)(I.D,{text:`the error stack of [${w.loader}] ${w.isPitch?"pitch":""}`})}),(0,r.jsx)("div",{style:{height:"90%"},children:(0,r.jsx)(s.ZP,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},lineNumbers:"off"},value:w.errors[0].message,language:"javascript"})})]}):(0,r.jsxs)(a.Z,{span:24,style:{height:"53%",minHeight:400},children:[(0,r.jsx)("div",{style:{padding:v.Size.BasePadding,borderTop:`1px solid ${M?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${M?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,r.jsx)(I.D,{text:`the result of [${w.loader}] ${w.isPitch?"pitch":""}`})}),w.isPitch?w.result?(0,r.jsx)("div",{style:{height:"90%"},children:(0,r.jsx)(s.ZP,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,formatOnType:!0,formatOnPaste:!0},value:w.result,language:(0,C.getModifiedLanguage)(u.path)})}):(0,r.jsx)(j.Z,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,r.jsxs)("div",{style:{minHeight:"700px"},children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{span:12,style:{padding:`${v.Size.BasePadding/2}px ${v.Size.BasePadding}px`},children:(0,r.jsx)(c.Z.Text,{strong:!0,children:"Input"})}),(0,r.jsx)(a.Z,{span:12,style:{padding:`${v.Size.BasePadding/2}px ${v.Size.BasePadding}px`},children:(0,r.jsx)(c.Z.Text,{strong:!0,children:"Output"})})]}),(0,r.jsx)("div",{style:{height:"40rem"},children:w.result||k?(0,r.jsx)(P.ZX,{filepath:u.path,before:k,after:w.result||""}):(0,r.jsx)(j.Z,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})]})]})})}],onChange:A})})]})}},26255:function(e,t,n){"use strict";n.d(t,{N:function(){return m},U:function(){return x}});var r=n(31549),i=n(78741),s=n(49066),o=n(45773),l=n(44194),a=n(83053),d=n(83911),u=n(61550),c=n(15890),h=n(77422),f=n(95925),p=n(89639);let m=e=>{let t;let{manifestLoader:n=h.fetchManifest,api:m,children:x,body:g=null,showSkeleton:j=!0,fallbackComponent:y}=e,[S,Z]=(0,l.useState)(),[b,v]=(0,l.useState)(f.ComponentState.Pending),[C,M]=(0,l.useState)({}),{loader:P}=(0,h.useDataLoader)(S);function w(e){window[i.Constants.WINDOW_RSDOCTOR_TAG]?k(e):(function(e){return e.then(e=>{Z(e)}).catch(e=>{throw v(f.ComponentState.Fail),e})})(t=n()).then(()=>{k(e)})}let I=(0,l.useCallback)(({req:e,res:t})=>{e.api===m&&((0,a.Z)(e.body,g)||(0,d.Z)(e.body)&&(0,d.Z)(g))&&!(0,a.Z)(C,t)&&M(t),v(f.ComponentState.Success)},[C,m,g]);(0,l.useEffect)(()=>{w(P)},[P,m,g]),(0,l.useEffect)(()=>{if(P)return P.onDataUpdate(m,I),()=>{P.removeOnDataUpdate(m,I)}},[P,m,g]);function k(e){if(!e)return;let t=(0,u.Z)(i.SDK.ServerAPI.APIExtends);if((0,c.Z)(t,m)){v(f.ComponentState.Success);return}e.loadAPI(m,g).then(e=>{if(!(0,d.Z)(e))M(e),v(f.ComponentState.Success)}).catch(e=>{console.error(e),v(f.ComponentState.Fail)})}if(b===f.ComponentState.Pending)return j?(0,r.jsx)(s.Z,{active:!0}):null;if(b===f.ComponentState.Fail)return y?y:(0,r.jsx)(p.c,{retry:()=>{v(f.ComponentState.Pending),t=n(),w()}});return b===f.ComponentState.Updating?(0,r.jsx)(o.Z,{spinning:!0,children:x(C)}):x(C)};function x({Component:e,api:t,responsePropName:n,body:i,fallbackComponent:s,showSkeleton:o}){return function(l){let{body:a=i,...d}=l;return(0,r.jsx)(m,{api:t,body:a,showSkeleton:o,fallbackComponent:s,children:t=>{let i={...d,[n]:t};return(0,r.jsx)(e,{...i})}})}}},42420:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(31549),i=n(49066),s=n(44194),o=n(77422),l=n(95925),a=n(89639);function d(e,t,n){let d=e();return function(){let[u,c]=(0,s.useState)(),[h,f]=(0,s.useState)(l.PageState.Pending),[p,m]=(0,s.useState)({}),{loader:x}=(0,o.useDataLoader)(u);function g(e){return e.then(e=>{c(e)}).catch(()=>{f(l.PageState.Fail)})}function j(e){e&&Promise.all(t.map(([t])=>e.loadData(t))).then(e=>{m(e.reduce((e,n,r)=>{let[i,s]=t[r];return e[s]=n,e},{})),f(l.PageState.Success)}).catch(e=>{console.error(e),f(l.PageState.Fail)})}return((0,s.useEffect)(()=>{g(d).then(()=>{j(x)})},[x]),h===l.PageState.Pending)?(0,r.jsx)(i.Z,{active:!0}):h===l.PageState.Fail?(0,r.jsx)(a.c,{retry:()=>{f(l.PageState.Pending),d.then(()=>{j(x)}).catch(()=>{g(e())})}}):(0,r.jsx)(n,{...p})}}},43622:function(e,t,n){"use strict";n.d(t,{Nu:function(){return i.N},U$:function(){return i.U},i8:function(){return r.i}});var r=n(42420),i=n(26255)},97835:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(31549),i=n(63272),s=n(77410),o=n.n(s),l=n(96883),a=n(7368);let d=+Date.now().toString().slice(-4)+1e3,u=({cwd:e,url:t,loc:n,windowId:s=d,label:u,disabled:c,code:h=!1})=>{let f=o().resolve(e,function(e){let t=e.split(" "),n="";return 1===t.length?[n]=t:[n]=t.filter(e=>o().isAbsolute(e)||(0,l.Z)(e,"./")),n||e}(t)),{line:p,columnStart:m}=function(e){if(!e)return{line:1,column:1};let[t,n=""]=e.split(":"),[r=1,i]=n.split("-");return{line:t,columnStart:r,columnEnd:i||r}}(n);return(0,r.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,r.jsx)(i.Z.Text,{copyable:{text:f},children:(0,r.jsxs)(i.Z.Text,{code:h,onClick:()=>{!c&&(0,a.a)({file:f,line:p,column:m,windowId:s})},style:{cursor:c?"revert":"pointer"},children:[u||t,n?`:${n}`:""]})}),(0,r.jsx)("div",{style:{display:"inline-block"}})]})}},99997:function(e,t,n){"use strict";n.d(t,{XF:function(){return r.X}});var r=n(97835);n(7368)},7368:function(e,t,n){"use strict";n.d(t,{a:function(){return i}}),n(31549);var r=n(83911);function i({file:e,line:t=1,column:n=1,windowId:i}){let s={windowId:i},o=Object.keys(s).map(e=>{let t=s[e];return(0,r.Z)(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),l=`vscode://file/${e}:${t}:${n}`;o&&(l+=`?${o}`),window.open(l)}},9665:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var r=n(31549),i=n(73176),s=n(63272),o=n(57102);let l=({theme:e,number:t,onClick:n,description:l,numberFontSize:a})=>{let d={success:{number:o.Z.successNumber,button:o.Z.successButton,description:o.Z.successText},error:{number:o.Z.errorNumber,button:o.Z.errorButton,description:o.Z.errorText},warning:{number:o.Z.warningNumber,button:o.Z.warningButton,description:o.Z.warningText}};return(0,r.jsxs)(i.ZP,{type:"text",className:d[e].button,onClick:n,children:[(0,r.jsx)(s.Z.Text,{className:d[e].number,style:{fontSize:a},children:t}),(0,r.jsx)("div",{className:d[e].description,children:l})]})}},57102:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(15702);var r={errorNumber:"errorNumber_3c2f5",warningNumber:"warningNumber_3c2f5",successNumber:"successNumber_3c2f5",errorText:"errorText_3c2f5",warningText:"warningText_3c2f5",successText:"successText_3c2f5",errorButton:"errorButton_3c2f5",warningButton:"warningButton_3c2f5",successButton:"successButton_3c2f5",container:"container_3c2f5"}},10907:function(e,t,n){"use strict";n.d(t,{v:function(){return M}});var r=n(31549),i=n(95103),s=n(63272),o=n(97770),l=n(82218),a=n(99892),d=n(13019),u=n(44194),c=n(78741),h=n(82647),f=n(91425),p=n(77422),m=n(57448),x=n(21807),g=n(43622),j=n(35972),y=n(59544),S=n(19942),Z=n(57102),b=n(9665);let v=e=>{let t=(0,u.useMemo)(()=>e.files.length?(0,p.createFileStructures)({files:e.files.map(e=>e.path),fileTitle(t,n){let{size:l,initial:a}=e.files.find(e=>e.path===t);return(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(s.Z.Text,{children:n}),(0,r.jsx)(o.Z,{color:"success",style:{marginRight:0},children:(0,p.formatSize)(l)}),a?(0,r.jsx)(o.Z,{color:"cyan",children:"Initial"}):null]})}}):[],[e.files]);return(0,r.jsx)(r.Fragment,{children:e.files.length?(0,r.jsx)(m.XU,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},text:(0,r.jsxs)(r.Fragment,{children:[e.count," ",(0,r.jsx)(h.Z,{})]}),children:(0,r.jsx)(j.z,{treeData:t,defaultExpandAll:!0})}):e.count})},C=({res:e})=>{let t=[{key:"total-files-count",label:"Total files",children:e.all.total.count},{key:"total-files-size",label:"",children:""},{key:"js-files-count",label:"JS files",children:v(e.js.total)},{key:"js-files-size",label:"JS size",children:(0,p.formatSize)(e.js.total.size)},{key:"css-files-count",label:"CSS files",children:v(e.css.total)},{key:"css-files-size",label:"CSS size",children:(0,p.formatSize)(e.css.total.size)},{key:"font-files-count",label:"Font files",children:v(e.fonts.total)},{key:"font-files-size",label:"Font size",children:(0,p.formatSize)(e.fonts.total.size)},{key:"html-files-count",label:"HTML files",children:v(e.html.total)},{key:"html-files-size",label:"HTML size",children:(0,p.formatSize)(e.html.total.size)},{key:"image-files-count",label:"Image files",children:v(e.imgs.total)},{key:"image-files-size",label:"Image size",children:(0,p.formatSize)(e.imgs.total.size)},{key:"media-files-count",label:"Media files",children:v(e.media.total)},{key:"media-files-size",label:"Media size",children:(0,p.formatSize)(e.media.total.size)}];return(0,r.jsx)(l.Z,{className:y.Z.root,size:"small",column:2,items:t})},M=({errors:e,cwd:t})=>{let{t:n}=(0,p.useI18n)(),i=(0,f.s0)(),s=(0,p.useDuplicatePackagesByErrors)(e);return(0,r.jsx)(g.Nu,{api:c.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let o=(0,p.formatSize)(e.all.total.size);return(0,r.jsxs)(x.Zb,{title:n("Bundle Overall"),className:S.Z.card,children:[(0,r.jsxs)(a.Z,{gutter:16,children:[(0,r.jsx)(d.Z,{span:12,className:Z.Z.container,children:(0,r.jsx)(b._,{theme:"success",number:o,description:"Total Size",numberFontSize:"30px",onClick:()=>{i(c.Client.RsdoctorClientRoutes.BundleSize)}})}),(0,r.jsx)(d.Z,{span:12,className:Z.Z.container,children:(0,r.jsx)(m.sv,{cwd:t,duplicatePackages:s,button:(0,r.jsx)(b._,{theme:0===s.length?"success":"warning",number:s.length,description:"Duplicate Packages"})})})]}),(0,r.jsx)(C,{res:e})]})}})}},19942:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(35371);var r={card:"card_3bba1"}},81981:function(e,t,n){"use strict";n.d(t,{F:function(){return j}});var r=n(31549),i=n(46641),s=n(63272),o=n(10855),l=n(95103),a=n(8646),d=n(77422),u=n(21807),c=n(85057),h=n(92381),f=n(21682),p=n(19942),m=n(55295);let x=({children:e,name:t,showDivider:n=!0})=>(0,r.jsxs)(s.Z.Text,{style:{color:"inherit"},children:[(0,r.jsx)(s.Z.Text,{style:{color:"inherit"},children:t}),n?(0,r.jsx)(o.Z,{type:"vertical"}):null,e]}),g=e=>e<33.3?{"0%":"#95de64","100%":"#5cdbd3"}:{"0%":"#ff9c6e","100%":"#ff7875"},j=({summary:e})=>{let{t}=(0,d.useI18n)();if(!e?.costs?.length)return null;let n=Math.max(...e.costs.map(e=>e.costs));return(0,r.jsx)(u.Zb,{title:t("Compile Overall"),className:p.Z.card,children:(0,r.jsx)(l.Z,{style:{wordBreak:"break-all",width:"100%"},size:20,direction:"vertical",children:e.costs.map(t=>{let{name:s,costs:o}=t,l=100*o/n,u=(0,r.jsx)(a.Z,{className:m.Z.progress,percent:l,status:"normal",strokeColor:g(l),format:()=>(0,d.formatCosts)(o)});switch(s){case i.ER.M.Bootstrap:return(0,r.jsxs)(x,{name:"Bootstrap ~ BeforeCompile",children:[(0,r.jsx)(c.E,{summary:e}),u]},s);case i.ER.M.Compile:return(0,r.jsx)(x,{name:"Compile",showDivider:!1,children:u},s);case i.ER.M.Done:return(0,r.jsxs)(x,{name:"AfterCompile ~ Done",children:[(0,r.jsx)(h.T,{summary:e}),u]},s);case i.ER.M.Minify:return(0,r.jsxs)(x,{name:"Minify",children:[(0,r.jsx)(f.Z,{summary:e}),u]},s);default:return null}})})})}},55295:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(90438);var r={progress:"progress_61324"}},23312:function(e,t,n){"use strict";n.d(t,{F8:function(){return i.F},lj:function(){return s.l},vD:function(){return r.v}});var r=n(10907),i=n(81981),s=n(22686)},59544:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(22338);var r={root:"root_17e15"}},22686:function(e,t,n){"use strict";n.d(t,{l:function(){return j}});var r=n(31549),i=n(99892),s=n(13019),o=n(95103),l=n(82218),a=n(52136),d=n(77422),u=n(51264),c=n(21807),h=n(59544),f=n(19942),p=n(57102),m=n(57448),x=n(14496),g=n(9665);let j=({configs:e=[],cwd:t,envinfo:n,alerts:j=[]})=>{let{t:y}=(0,d.useI18n)(),S=(0,a.Z)(j,e=>"warn"===e.level).length,Z=j.length-S,b=[...Object.keys(n).map(e=>{let t=/Version$/,r=t.test(e);return{key:e,label:r?e.replace(t,""):e,children:n?n[e]:void 0}}),...e.filter(e=>!!e.version).map(e=>{let{name:t,version:n}=e;return{key:t,label:t,children:n}}),{key:"cwd",label:"cwd",children:t}];return(0,r.jsxs)(c.Zb,{title:y("Project Overall"),extra:(0,r.jsx)(u.S,{}),className:f.Z.card,children:[(0,r.jsxs)(i.Z,{gutter:16,children:[(0,r.jsx)(s.Z,{span:12,className:p.Z.container,children:(0,r.jsx)(m.XU,{button:(0,r.jsx)(g._,{theme:0===Z?"success":"error",number:Z,description:"Errors"}),drawerProps:{title:"Errors List"},children:(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(x.QE,{defaultOpen:!1}),(0,r.jsx)(x.CG,{filter:e=>"error"===e.level}),(0,r.jsx)(x.$X,{filter:e=>"error"===e.level})]})})}),(0,r.jsx)(s.Z,{span:12,className:p.Z.container,children:(0,r.jsx)(m.XU,{button:(0,r.jsx)(g._,{theme:0===S?"success":"warning",number:S,description:"Warnings"}),drawerProps:{title:"Warnings List"},children:(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(x.QE,{defaultOpen:!1}),(0,r.jsx)(x.CG,{filter:e=>"warn"===e.level}),(0,r.jsx)(x.$X,{filter:e=>"warn"===e.level})]})})})]}),(0,r.jsx)(l.Z,{className:h.Z.root,items:b,size:"small",column:1})]})}},13938:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(31549);n(44194);var i=n(74379),s=n(44242),o=n(20942),l=n(77422);let a=({dataSource:e})=>(0,r.jsx)(i.Z,{dataSource:e,rowKey:e=>`${e.tapName}_${e.hook}`,columns:[{title:"Plugin Tap Name",render:(e,t)=>t.tapName},{title:"Hook",render:(e,t)=>t.hook},{title:"calls",render:(e,t)=>(0,r.jsx)(s.Z,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>(0,l.formatCosts)((0,o.Z)(t.data,e=>e.costs)),sorter:(e,t)=>(0,o.Z)(e.data,e=>e.costs)-(0,o.Z)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},90647:function(e,t,n){"use strict";n.d(t,{gY:function(){return I}});var r=n(31549),i=n(44194),s=n(73934),o=n(50002),l=n(13019),a=n(89246),d=n(73176),u=n(74379),c=n(63272),h=n(99892),f=n(95103),p=n(60395),m=n(34781),x=n(9589),g=n(23193),j=n(46641),y=n(78741),S=n(95925),Z=n(77422),b=n(35972),v=n(33448),C=n(46591),M=n(43622);let P=({filepath:e,before:t,after:n,resolvers:s})=>{let[o,h]=(0,i.useState)(!1);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.Z,{flex:1,children:(0,r.jsx)(a.Z,{title:"Resolve Diff Viewer",children:(0,r.jsx)(C.ZX,{filepath:e,before:t,after:n,editorProps:{height:735}})})}),(0,r.jsx)(l.Z,{span:o?2:7,children:(0,r.jsx)(a.Z,{title:o?"...":"Resolve Details",extra:(0,r.jsx)(d.ZP,{onClick:()=>h(!o),size:"small",icon:o?(0,r.jsx)(p.Z,{}):(0,r.jsx)(m.Z,{})}),style:o?{width:80}:void 0,children:o?null:(0,r.jsx)(u.Z,{style:{width:"100%",height:735,overflowY:"scroll",wordBreak:"break-all"},size:"small",pagination:!1,bordered:!0,rowKey:e=>e.request,columns:[{title:"Source Code",width:200,render:(e,t)=>(0,r.jsx)(c.Z.Text,{copyable:!0,children:(0,r.jsx)(c.Z.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,r.jsx)(c.Z.Text,{strong:!0,children:(0,Z.formatCosts)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>j.H2.Q4(t)?(0,r.jsx)(c.Z.Text,{copyable:!0,children:t.result}):(0,r.jsx)(x.Z,{style:{color:"#f50"}})}],dataSource:s})})})]})},w=e=>{let{resolver:t,cwd:n}=e,[d,u]=(0,i.useState)(""),c="/node_modules/",f=(0,i.useMemo)(()=>(0,s.Z)(t,e=>e.issuerPath).filter(Boolean),[t]),p=(0,i.useMemo)(()=>f.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,f]),m=p.length&&p.every(e=>e.indexOf(c)>-1),x=(0,i.useMemo)(()=>(0,Z.createFileStructures)({files:p.length?p:f,cwd:n,fileTitle:(e,t)=>(0,r.jsx)("div",{onClick:()=>u(e),children:t})}),[e.filename]);return(0,r.jsxs)(h.Z,{justify:"start",align:"top",wrap:!1,gutter:S.Size.BasePadding,children:[(0,r.jsx)(l.Z,{span:7,children:(0,r.jsx)(a.Z,{title:"Files",children:(0,r.jsx)(b.z,{style:{width:"100%",height:735,overflow:"scroll"},treeData:x,defaultExpandedKeys:(0,Z.mapFileKey)(x,m?1:4,m?void 0:e=>{let t=(0,o.Z)(e,"__RESOURCEPATH__").indexOf(c)>-1;return!!(p.length&&p.every(e=>e.indexOf(c)>-1))||!t})},`tree_${e.filename}`)})}),d&&(0,r.jsx)(M.Nu,{api:y.SDK.ServerAPI.API.GetResolverFileDetails,body:{filepath:d},children:e=>(0,r.jsx)(P,{...e})})]})},I=(0,M.U$)({api:y.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[n,s]=(0,i.useState)("");return(0,r.jsxs)("div",{style:{width:"100%"},children:[(0,r.jsx)(f.Z,{style:{marginTop:S.Size.BasePadding,marginBottom:S.Size.BasePadding},children:(0,r.jsx)(v.a,{icon:(0,r.jsx)(g.Z,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>s(e)})}),(0,r.jsx)(M.Nu,{api:y.SDK.ServerAPI.API.GetResolverFileTree,children:e=>(0,r.jsx)(w,{filename:n,resolver:e,cwd:t})})]})}})},42068:function(e,t,n){"use strict";n.d(t,{k:function(){return m}});var r=n(31549),i=n(44194),s=n(41681),o=n(73176),l=n(63272),a=n(8105),d=n(95103),u=n(85128),c=n(23193),h=n(33448),f=n(95925);let p=({style:e,onChange:t,loaderNames:n})=>{let[d,c]=(0,i.useState)([]);return(0,r.jsxs)(s.Z.Group,{compact:!0,style:e,children:[(0,r.jsxs)(o.ZP,{style:{width:120},children:[(0,r.jsx)(u.Z,{}),(0,r.jsx)(l.Z.Text,{children:"Loaders"})]}),(0,r.jsx)(a.Z,{mode:"multiple",allowClear:!0,defaultValue:d,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"select loaders",onChange:e=>{c(e),t(e)},children:n.map(e=>(0,r.jsx)(a.Z.Option,{label:e,value:e,children:e},e))})]})},m=({onChange:e,loaderNames:t})=>{let[n,s]=(0,i.useState)([]),[o,l]=(0,i.useState)("");return(0,i.useEffect)(()=>{e({loaders:n,filename:o})},[n,o]),(0,r.jsxs)(d.Z,{style:{marginBottom:f.Size.BasePadding},children:[(0,r.jsx)(p,{loaderNames:t,style:{marginRight:f.Size.BasePadding-8},onChange:e=>{s(e)}}),(0,r.jsx)(h.a,{icon:(0,r.jsx)(c.Z,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>{l(e)}})]})}},29802:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var r=n(31549),i=n(47146),s=n(95103),o=n(63272),l=n(73176),a=n(44194);let d="Load data failed, please try again",u="retry",c=a.memo(({title:e=d,buttonText:t=u,retry:n})=>(0,r.jsx)(i.Z,{description:(0,r.jsxs)(s.Z,{direction:"vertical",children:[(0,r.jsx)(o.Z.Text,{children:e}),(0,r.jsx)(l.ZP,{type:"primary",onClick:()=>{n()},children:t})]})}))},89639:function(e,t,n){"use strict";n.d(t,{c:function(){return r.c}});var r=n(29802)},50010:function(e,t,n){"use strict";n.d(t,{P:function(){return g},s:function(){return j}});var r=n(31549),i=n(44242),s=n(95103),o=n(63272),l=n(99892),a=n(13019),d=n(78741),u=n(82647),c=n(46641),h=n(95925),f=n(57448),p=n(57031),m=n(43622);let x=({duplicatePackages:e=[],cwd:t,children:n,...d})=>(0,r.jsx)(f.XU,{...d,buttonStyle:{fontSize:"inherit",...d.buttonStyle},buttonProps:{type:"text",...d.buttonProps},text:(0,r.jsx)(i.Z,{title:"Click to show the details of duplicate packages",children:(0,r.jsxs)(s.Z,{style:{fontSize:"inherit"},children:[(0,r.jsx)(o.Z.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...d.textStyle},children:e.length}),(0,r.jsx)(u.Z,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...d.drawerProps},children:(0,r.jsx)(l.Z,{gutter:[h.Size.BasePadding,h.Size.BasePadding],children:e.map((e,i)=>(0,r.jsx)(a.Z,{span:24,children:(0,r.jsx)(p.jA,{data:e,cwd:t,getPackageRelationContentComponent:n})},i))})}),g=({moduleGraph:e,...t})=>(0,r.jsx)(x,{...t,children:n=>(0,r.jsx)(m.Nu,{api:d.SDK.ServerAPI.API.GetModuleCodeByModuleIds,body:{moduleIds:e.modules.map(e=>e.id)},children:i=>(0,r.jsx)(p.bi,{data:c.pC.J(e.modules,e.dependencies,t.cwd,n.package.dependencies,i),cwd:t.cwd})})}),j=e=>(0,r.jsx)(x,{...e,children:t=>(0,r.jsx)(p.md,{body:{id:t.data.id,target:t.package.target},cwd:e.cwd})})},57448:function(e,t,n){"use strict";n.d(t,{Pq:function(){return a.P},XU:function(){return d},sv:function(){return a.s}});var r=n(31549),i=n(73176),s=n(76779),o=n(44194),l=n(95925),a=n(50010);let d=e=>{let[t,n]=(0,o.useState)(!1);return(0,r.jsxs)(o.Fragment,{children:[e.button?(0,r.jsx)("div",{onClick:()=>n(!t),children:e.button}):(0,r.jsx)(i.ZP,{type:"link",...e.buttonProps,onClick:()=>n(!t),style:{padding:0,...e.buttonStyle},children:e.text}),(0,r.jsx)(s.Z,{maskClosable:!0,width:l.drawerWidth,zIndex:999,...e.drawerProps,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:e.children})]})}},23675:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(31549),i=n(63272),s=n(42689);let o=({upperFirst:e=!0,fontSize:t=16,text:n,hash:o})=>{let l="string"==typeof n&&e?(0,s.Z)(n):n;return(0,r.jsx)(i.Z.Text,{style:{fontSize:t},strong:!0,children:o?(0,r.jsx)("a",{href:o,id:o.replace(/^#/,""),style:{color:"inherit"},children:l}):l})}},31646:function(e,t,n){"use strict";n.d(t,{Ar:function(){return r.A}}),n(97946),n(14496),n(94386),n(21807),n(46591);var r=n(42579);n(23312),n(43622),n(33448),n(57448),n(91770),n(67451)},13872:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var r=n(31549),i=n(44194),s=n(94386),o=n(79381),l=n(47993);let a=()=>new Worker(new URL(n.p+n.u("811"),n.b)),d={[o.ECMAVersion.ES5]:s.Rf[s.gZ.Success],[o.ECMAVersion.ES6]:s.Rf[s.gZ.Error],[o.ECMAVersion.ES7P]:s.Rf[s.gZ.Error]},u=({code:e})=>{if(!e)return null;let{version:t}=function(e){let{code:t}=e,[n,r]=(0,i.useState)();return(0,i.useEffect)(()=>{if(!t)return;let{abort:e}=l.master.detectWorker(a).emit(t,e=>{r(e)});return()=>{e()}},[t]),{version:n}}({code:e});return t?(0,r.jsx)("div",{style:{display:"inline-block",height:19.5,padding:"0px 4px",width:40,fontSize:10,lineHeight:"19.5px",textAlign:"center",color:"#fff",background:d[t]||s.Rf[s.gZ.Default],borderRadius:4},children:t}):null}},1438:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(31549),i=n(44194),s=n(97770),o=n(47993),l=n(77422);let a=()=>new Worker(new URL(n.p+n.u("432"),n.b)),d=({input:e,output:t})=>{if(!e||!t)return null;let{isEqual:n}=function(e){let{input:t,output:n}=e,[r,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!t||!n)return;let{abort:e}=o.master.detectWorker(a).emit({input:t,output:n},e=>{s(e)});return()=>{e()}},[t,n]),{isEqual:r}}({input:e,output:t}),{t:d}=(0,l.useI18n)();return n?(0,r.jsx)(s.Z,{color:"warning",children:d("the file content not changed after transpiled by this loader")}):null}},67351:function(e,t,n){"use strict";n.d(t,{E:function(){return l},u:function(){return o}});var r=n(44194),i=n(41451),s=n(95925);let o={locale:(0,i.V1)(),theme:(0,i.Bd)(),pageState:s.PageState.Pending,viewMode:(0,i.ZM)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},l=(0,r.createContext)({...o})},95925:function(e,t,n){"use strict";n.r(t),n.d(t,{APILoaderMode4Dev:function(){return x},Color:function(){return j},ComponentState:function(){return f},Language:function(){return m},MAIN_BG:function(){return Z},PageState:function(){return h},ROOT_BG_COLOR:function(){return b},Size:function(){return g},TAG_PALLETE:function(){return S},Theme:function(){return c},ViewMode:function(){return p},drawerWidth:function(){return y}});var r,i,s,o,l,a,d,u,c=((r=c||{}).Light="light",r.Dark="dark",r);var h=((i=h||{})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Fail=2]="Fail",i);var f=((s=f||{})[s.Success=0]="Success",s[s.Pending=1]="Pending",s[s.Updating=2]="Updating",s[s.Fail=3]="Fail",s);var p=((o=p||{}).List="list",o.Group="group",o);var m=((l=m||{}).Cn="cn",l.En="en",l);var x=((a=x||{}).Local="local",a.Remote="remote",a.Default="default",a);var g=((d=g||{})[d.BasePadding=24]="BasePadding",d[d.BaseBorderRadius=8]="BaseBorderRadius",d[d.NavBarHeight=54]="NavBarHeight",d);var j=((u=j||{}).Red="#e17055",u.Green="#52c41a",u.Yellow="#faad14",u.Blue="#1677ff",u);let y="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100,S={COLOR_A:"#90DCE9",COLOR_B:"green",COLOR_C:"#4EAAB9",COLOR_D:"#B7E9F4",COLOR_E:"#2E7CBE",DARK_BLUE:"#1554ad"},Z="",b="rgb(105, 177, 255)"},18005:function(e,t,n){"use strict";n.d(t,{Constants:function(){return i}}),n(31646);var r=n(77422);n.o(r,"Constants")&&n.d(t,{Constants:function(){return r.Constants}});var i=n(95925)},89256:function(e,t,n){"use strict";n.d(t,{VT:function(){return W}});var r=n(31549),i=n(85230),s=n(68673),o=n(68583),l=n(78666),a=n(55834),d=n(78741),u=n(47146),c=n(90722),h=n(89246),f=n(63272),p=n(76779),m=n(95103),x=n(44242),g=n(10855),j=n(97770),y=n(73176),S=n(99892),Z=n(13019),b=n(80613),v=n(20942),C=n(77410),M=n(44194),P=n(43622),w=n(18602),I=n(94386),k=n(35972),D=n(33448),E=n(67522),T=n(57448),z=n(95925),A=n(77422),N=n(53394);let _=[],R={source:"source code",transformed:"Transformed Code (After compile)",parsedSource:"Bundled Code (After bundle and tree-shaking)"},B={margin:"none",marginInlineEnd:0},L=()=>(0,r.jsx)(u.Z,{description:`Do not have the module code.
77
+ `.trim()}function m(e,t){let[n,r]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n}},81185:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});let r={readOnly:!0,domReadOnly:!0,fontSize:12,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"bounded",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1}}},78527:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(31549),i=n(55834),s=n(95925),o=n(77422);let l=({before:e,after:t,filepath:n,className:l,editorProps:a})=>(0,r.jsx)(i.SV,{className:l,originalLanguage:(0,o.getOriginalLanguage)(n),modifiedLanguage:(0,o.getModifiedLanguage)(n),theme:"vs-dark",original:e,modified:t,width:"100%",...a,options:{readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderIndicators:!0,lineDecorationsWidth:s.Size.BasePadding,definitionLinkOpensInPeek:!1,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},diffWordWrap:"on",...a?.options}})},26026:function(e,t,n){"use strict";n(31549),n(44194),n(55834),n(77422),n(99997)},46591:function(e,t,n){"use strict";n.d(t,{ZX:function(){return r.Z},uX:function(){return i.u},ut:function(){return i.v},z9:function(){return s.z}});var r=n(78527);n(26026);var i=n(44548),s=n(81185)},44548:function(e,t,n){"use strict";n.d(t,{u:function(){return c},v:function(){return h}});var r=n(31549),i=n(55834),s=n(77590),o=n(85230),l=n(77422),a=n(81185),d=n(57448),u=n(47146);let c=({content:e,ranges:t,path:n,defaultLine:o,editorConfig:d={},emptyReason:c})=>e?(0,r.jsx)(i.ZP,{theme:"vs-dark",language:(0,l.getOriginalLanguage)(n),value:e,width:"100%",height:window.innerHeight/1.5,options:{...a.z,...d},onMount:(e,n)=>{(0,s.Z)(o)&&e.revealLine(o),t&&t.length>0&&e.deltaDecorations([],t.map(e=>({range:(0,l.getSelectionRange)(e,n.Range),options:{inlineClassName:"file-inline-decoration"}})))}}):(0,r.jsx)(u.Z,{description:c}),h=e=>(0,r.jsx)(d.XU,{text:"",buttonProps:{size:"small",icon:(0,r.jsx)(o.Z,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${e.path}"`},children:(0,r.jsx)(c,{...e})})},98915:function(e,t,n){"use strict";n.d(t,{S:function(){return j}});var r=n(31549),i=n(78741),s=n(99892),o=n(10855),l=n(95103),a=n(63272),d=n(8105),u=n(90396),c=n(44194),h=n(83421),f=n.n(h),p=n(77422),m=n(43622),x=n(57448),g=n(23675);let j=(0,m.U$)({Component:({defaultKeys:e,configs:t})=>{let n=(0,p.useWebpackConfigurationByConfigs)(t||[]);if(!n)return null;let{config:i,version:h,name:m}=n,j=Object.keys(i),[y,S]=(0,c.useState)(e||j);return(0,r.jsx)(x.XU,{text:"View Bundler Config",children:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(g.D,{text:"Bundler Config Viewer"}),(0,r.jsx)(o.Z,{}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z.Text,{children:"Properties: "}),(0,r.jsx)(d.Z,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:y.length===j.length?[]:y,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{S(e)},children:j.map(e=>(0,r.jsx)(d.Z.Option,{label:e,value:e,children:e},e))})]}),(0,r.jsx)(o.Z,{}),(0,r.jsx)(f(),{name:h&&"unknown"!==h?`${m}@${h}`:"webpack.config",theme:"monokai",src:0===y.length?i:(0,u.Z)(i,y),displayDataTypes:!1,displayObjectSize:!1})]})})},api:i.SDK.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1})},51264:function(e,t,n){"use strict";n.d(t,{S:function(){return r.S}});var r=n(98915)},35972:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(31549),i=n(75168),s=n(95103),o=n(37131),l=n(63933),a=n(17460),d=n(95457),u=n(75666),c=n(95925);n(33090);var h=n(77422);let{useToken:f}=i.Z,p=e=>{let{isDark:t}=(0,h.useTheme)(),{token:n}=f(),i=t?n.colorWhite:n.colorText,p={fontSize:n.fontSize};return(0,r.jsx)(u.Z,{checkable:!1,selectable:!0,switcherIcon:({data:e,expanded:t})=>e?.children?(0,r.jsxs)(s.Z,{style:{color:i},children:[(0,r.jsx)(o.Z,{twoToneColor:i,className:`file-tree-switcher-arrow ${t?"file-tree-switcher-arrow-expand":""}`,style:p}),t?(0,r.jsx)(l.Z,{twoToneColor:i,style:p}):(0,r.jsx)(a.Z,{twoToneColor:i,style:p})]}):(0,r.jsx)(d.Z,{style:{marginLeft:c.Size.BasePadding-6,color:i}}),expandAction:"click",...e})}},33448:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(31549),i=n(44194),s=n(41681),o=n(73176),l=n(63272);let a=({icon:e,label:t,labelStyle:n={},placeholder:a,onChange:d,style:u,className:c,width:h,delay:f=300})=>{let p;let[m,x]=(0,i.useState)(""),g={width:120,...n},j=(0,i.useRef)(null);return(0,i.useEffect)(()=>{d(m)},[m]),(0,r.jsxs)(s.Z.Group,{compact:!0,style:u,className:c,children:[t||e?(0,r.jsxs)(o.ZP,{style:g,onClick:()=>{j&&j.current&&j.current.focus()},children:[e||null,(0,r.jsx)(l.Z.Text,{children:t})]}):null,(0,r.jsx)(s.Z,{ref:j,allowClear:!0,defaultValue:m,style:{width:h?h-120:250},placeholder:a,onChange:e=>{clearTimeout(p);let t=e.target.value.trim();setTimeout(()=>{x(t)},f)}})]})}},67522:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(31549),i=n(63272);let s=({text:e,keyword:t,...n})=>{if(!t||-1===e.indexOf(t))return(0,r.jsx)(i.Z.Text,{...n,children:e});let s=[],o=e;for(;o.length>0;){let e=o.indexOf(t);if(e>-1)0!==e&&s.push((0,r.jsx)(i.Z.Text,{style:{fontSize:"inherit"},children:o.slice(0,e)},s.length)),s.push((0,r.jsx)(i.Z.Text,{mark:!0,style:{fontSize:"inherit"},children:t},s.length)),o=o.slice(e+t.length);else{s.push((0,r.jsx)(i.Z.Text,{style:{fontSize:"inherit"},children:o},s.length));break}}return(0,r.jsx)(i.Z.Text,{...n,children:s})}},5161:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var r=n(31549),i=n(10855),s=n(63272),o=n(8105),l=n(44194),a=n(39504),d=n(77422);let u=()=>{let[e,t]=(0,l.useState)(""),[n,u]=(0,l.useState)([]);return((0,l.useEffect)(()=>{(0,d.fetchManifest)().then(({name:e,series:n})=>{e&&t(e),n&&n.length>0&&u(n)})},[]),e.length<=0||n.length<=0)?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{type:"vertical",style:{margin:"0 24px"}}),(0,r.jsx)("img",{src:a,style:{marginRight:6,height:16}}),(0,r.jsx)(s.Z,{children:"Compiler"}),(0,r.jsx)(o.Z,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=n.find(t=>t.name===e);t&&(t.origin?location.href=(0,d.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:n.map((e,t)=>(0,r.jsx)(o.Z.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})}},75910:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});let r="Compile Analysis"},89782:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(31549),i=n(93297),s=n(31330),o=n(99892),l=n(13019),a=n(63272),d=n(73613),u=n(95925),c=n(77422),h=n(14496),f=n(5161),p=n(53876);n(64488);let m=()=>{let{i18n:e}=(0,c.useI18n)(),{isLight:t}=(0,c.useTheme)(),n=[{value:u.Language.Cn,label:"\u4E2D\u6587"},{value:u.Language.En,label:"English"}];return(0,r.jsx)(s.Z.Header,{style:{height:u.Size.NavBarHeight,padding:0,paddingLeft:u.Size.BasePadding,paddingRight:u.Size.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:t?"#fff":"#141414",transition:"none"},children:(0,r.jsxs)(o.Z,{justify:"space-between",align:"middle",style:{height:u.Size.NavBarHeight},wrap:!1,children:[(0,r.jsx)(l.Z,{style:{height:u.Size.NavBarHeight,lineHeight:`${u.Size.NavBarHeight+2}px`},children:(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,r.jsx)("img",{style:{height:30},src:"https://assets.rspack.dev/rsdoctor/rsdoctor-logo-960x960.png",className:"web-doctor-logo",alt:"logo"}),(0,r.jsx)(a.Z.Text,{style:{color:"inherit",fontSize:18,marginLeft:4,marginTop:8},children:"Rsdoctor"}),(0,r.jsx)(f.P,{})]})}),(0,r.jsx)(l.Z,{flex:1,children:(0,r.jsxs)(o.Z,{align:"middle",justify:"end",style:{height:u.Size.NavBarHeight},wrap:!1,gutter:[u.Size.BasePadding/3,0],children:[(0,r.jsx)(l.Z,{children:(0,r.jsx)(h.u1,{})}),(0,r.jsx)(p.I,{style:{transition:"none"}}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(d.Z,{overlayStyle:{zIndex:1e3},menu:{items:n.map(t=>({label:t.label,key:t.value,onClick(){e.changeLanguage(t.value)}})),selectedKeys:[e.language]},children:(0,r.jsx)(i.Z,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})}},42579:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(31549),i=n(44194),s=n(31330),o=n(62098),l=n(95925),a=n(89782),d=n(77422),u=n(36838),c=n(67351);let h=e=>{let t=(0,d.useLocale)(),{i18n:n}=(0,d.useI18n)(),{children:h}=e;(0,i.useEffect)(()=>{n.language!==t&&n.changeLanguage(t)},[t]);let f=(0,i.useContext)(c.E);return(0,r.jsxs)(s.Z,{children:[f.embedded?null:(0,r.jsx)(a.h,{}),(0,r.jsx)(u.E,{}),(0,r.jsxs)(s.Z.Content,{style:{height:"100%",minHeight:"100vh",padding:l.Size.BasePadding,marginTop:f.embedded?0:l.Size.NavBarHeight,background:l.MAIN_BG},children:[h,(0,r.jsx)(o.Z.BackTop,{})]})]})}},53876:function(e,t,n){"use strict";n.d(t,{I:function(){return C}});var r=n(31549),i=n(46976),s=n(70653),o=n(70706),l=n(60392),a=n(37809),d=n(83945),u=n(79666),c=n(78741),h=n(63272),f=n(42085),p=n(13019),m=n(15890),x=n(91425),g=n(51019),j=n(95925),y=n(38613),S=n(77422),Z=n(43622),b=n(83177),v=n(75910);let C=(0,Z.U$)({api:c.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,S.useI18n)(),{pathname:n}=(0,x.TH)(),Z=(0,x.s0)(),{routes:C}=e,M={fontSize:16},P={...M,transform:"translateY(-2px)"},w=[];console.log("enableRoutes: ",C),(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.Overall)&&w.push({label:t(y.u),key:y.B,icon:(0,r.jsx)(i.Z,{style:M}),children:[],onTitleClick(e){Z(e.key)}}),(0,S.hasCompile)(C)&&w.push({label:t(v._),key:v._,icon:(0,r.jsx)(s.Z,{style:M}),children:[(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:(0,r.jsx)(h.Z.Text,{style:{marginRight:8},children:t(b.Yt.u2)}),key:b.Yt.BC,icon:(0,r.jsx)("img",{src:g,alt:"",style:{...M,width:16}}),children:[{label:t(b.xA.u2),key:b.xA.BC,icon:(0,r.jsx)(i.Z,{style:M})},{label:t(b.Yt.u2),key:b.Yt.BC,icon:(0,r.jsx)(o.Z,{style:M})}]},(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(b.kc.u2),key:b.kc.BC,icon:(0,r.jsx)(l.Z,{style:M})},(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(b.UM.u2),key:b.UM.BC,icon:(0,r.jsx)(a.Z,{style:M})}].filter(e=>!!e)}),(0,S.hasBundle)(C)&&w.push({label:t(b.P3.u2),key:b.P3.u2,icon:(0,r.jsx)("span",{style:P,children:"\uD83D\uDCE6"}),children:[(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.BundleSize)&&{label:t(b.P3.u2),key:b.P3.BC,icon:(0,r.jsx)(d.Z,{style:M})},(0,m.Z)(C,c.Manifest.RsdoctorManifestClientRoutes.TreeShaking)&&{label:t(b.wH.u2),key:b.wH.BC,icon:(0,r.jsx)(d.Z,{style:M})}].filter(e=>!!e)});let I=(0,r.jsx)(f.Z,{items:w,mode:"horizontal",onClick:e=>{!e.keyPath.includes("builder-switcher")&&Z(e.key)},overflowedIndicator:(0,r.jsx)(u.Z,{}),style:{height:j.Size.NavBarHeight,lineHeight:`${j.Size.NavBarHeight}px`,minWidth:0,justifyContent:"flex-end",...e.style},selectedKeys:["/"===n?y.B:n]},C.join(""));return(0,r.jsx)(p.Z,{xs:{span:3},md:{span:6},lg:{span:10},xl:{span:11},xxl:{span:12},children:I})},fallbackComponent:()=>null})},36838:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var r=n(31549),i=n(99892),s=n(13019),o=n(8646),l=n(63272),a=n(78741),d=n(95925),u=n(43622);let c=(0,u.U$)({api:a.SDK.ServerAPI.APIExtends.GetCompileProgress,responsePropName:"progress",Component:({progress:e})=>{if(!e)return null;let{percentage:t=1,message:n}=e;if(t>=1)return null;let a=+(100*t).toFixed(1);return(0,r.jsx)(i.Z,{wrap:!0,style:{width:"100%",position:"fixed",top:d.Size.NavBarHeight,left:1,zIndex:99},children:(0,r.jsx)(s.Z,{span:Math.min(Math.floor(24*t),24),children:(0,r.jsx)(o.Z,{percent:100,status:"active",size:"small",format:()=>(0,r.jsx)(l.Z.Text,{style:{fontSize:12},type:"secondary",children:`${a}% ${n}`})})})})},fallbackComponent:()=>null})},37189:function(e,t,n){"use strict";n.d(t,{Y:function(){return w}});var r=n(31549),i=n(44194),s=n(45641),o=n(50002),l=n(20942),a=n(95103),d=n(44242),u=n(63272),c=n(10855),h=n(99892),f=n(13019),p=n(89246),m=n(76779),x=n(74379),g=n(82218),j=n(9589),y=n(78741),S=n(43622),Z=n(95925),b=n(77422),v=n(84011),C=n(35972),M=n(67522),P=n(13872);let w=e=>{let{cwd:t,filetree:n}=e,[w,I]=(0,i.useState)(!1),[k,D]=(0,i.useState)(""),[E,T]=(0,i.useState)(0),[z,A]=(0,i.useState)(null),N=(0,i.useRef)(null),{initMonaco:_}=(0,b.useMonacoEditor)(),R=(0,i.useCallback)(async()=>{await _(N)},[]),B=(0,i.useMemo)(()=>n.filter(t=>t.loaders.some(n=>(0,b.filterLoader)(t.path,n.loader,e.filename,e.loaders))),[e.filename,e.loaders]),O="__RESOURCEPATH__",L=(0,i.useMemo)(()=>(0,b.createFileStructures)({files:B.map(e=>e.path),cwd:t,fileTitle(t,i){let{loaders:o}=n.find(e=>e.path===t);return(0,r.jsxs)(a.Z,{style:{wordBreak:"break-all"},onClick:()=>{T(0),D(t),I(!0)},children:[(0,r.jsx)(M.Z,{text:i,keyword:e.filename}),(0,s.Z)(t,y.Constants.JSExtension)?(0,r.jsx)(S.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFileFirstInput,body:{file:t},fallbackComponent:()=>null,children:e=>(0,r.jsx)(P.y,{code:e})}):null,o.map((e,n)=>{let i=e.errors&&e.errors.length,s=`${t}_${e.loader}_${n}`;return(0,r.jsx)(d.Z,{title:e.path,children:(0,r.jsxs)(u.Z.Text,{code:!0,style:{color:i?"#f50":"inherit"},onClick:e=>{e.stopPropagation(),D(t),T(n),I(!0)},children:[(0,r.jsx)(u.Z.Text,{style:{maxWidth:135,color:"inherit"},ellipsis:!0,children:e.loader}),(0,r.jsx)(c.Z,{type:"vertical"}),i?(0,r.jsx)(j.Z,{}):(0,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)(e.costs)})]})},s)})]})},dirTitle:(t,n)=>(0,r.jsx)(M.Z,{text:n,keyword:e.filename})}),[B]);return(0,r.jsxs)(h.Z,{style:{width:"100%"},gutter:Z.Size.BasePadding,children:[(0,r.jsx)(f.Z,{span:14,children:(0,r.jsxs)(p.Z,{title:(0,r.jsxs)(u.Z.Text,{strong:!0,children:["Total Files: ",B.length]}),bodyStyle:{overflow:"scroll",maxHeight:800,height:"40rem"},children:[(0,r.jsx)(C.z,{defaultExpandedKeys:(0,b.mapFileKey)(L,B.length>=100?3:4,e=>!((0,o.Z)(e,O).indexOf("/node_modules/")>-1)),treeData:L,onSelect:(e,t)=>{R(),!t.node.isLeaf&&A(t.node)},selectedKeys:z?[z.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,r.jsx)(m.Z,{open:w,onClose:()=>I(!1),maskClosable:!0,width:Z.drawerWidth,zIndex:999,bodyStyle:{padding:0},children:w?(0,r.jsx)(S.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:k},children:e=>(0,r.jsx)(v.g,{data:e,cwd:t,index:E})}):null})]})}),z?(0,r.jsx)(f.Z,{span:10,children:(0,r.jsx)(p.Z,{title:(0,r.jsx)(d.Z,{title:i.cloneElement(z.title,{style:{color:"#fff"}}),children:(0,r.jsxs)(u.Z.Text,{children:['Statistics of "',z.title,'"']})}),children:(0,r.jsx)(S.Nu,{api:y.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:z[O]},children:e=>(0,r.jsx)(x.Z,{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,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e,footer:()=>(0,r.jsxs)(g.Z,{title:"Total",bordered:!0,layout:"vertical",size:"small",children:[(0,r.jsx)(g.Z.Item,{label:"loaders",children:e.length}),(0,r.jsx)(g.Z.Item,{label:"files",children:(0,l.Z)(e,e=>e.files)}),(0,r.jsx)(g.Z.Item,{label:"duration",children:(0,r.jsx)(u.Z.Text,{strong:!0,children:(0,b.formatCosts)((0,l.Z)(e,e=>e.costs))})})]})})})})}):null]})}},4487:function(e,t,n){"use strict";n.d(t,{a:function(){return d}});var r=n(31549),i=n(44194),s=n(78741),o=n(43622),l=n(37189),a=n(42068);let d=(0,o.U$)({api:s.SDK.ServerAPI.API.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:({cwd:e})=>{let[t,n]=(0,i.useState)({filename:"",loaders:[]});return(0,r.jsxs)("div",{children:[(0,r.jsx)(o.Nu,{api:s.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,r.jsx)(a.k,{onChange:e=>n(e),loaderNames:e})}),(0,r.jsx)(o.Nu,{api:s.SDK.ServerAPI.API.GetLoaderFileTree,children:n=>(0,r.jsx)(l.Y,{filename:t.filename,filetree:n,loaders:t.loaders,cwd:e})})]})}})},84011:function(e,t,n){"use strict";n.d(t,{g:function(){return T}});var r=n(31549),i=n(25505),s=n(55834),o=n(78741),l=n(99892),a=n(13019),d=n(95103),u=n(51927),c=n(63272),h=n(10855),f=n(97770),p=n(17611),m=n(44242),x=n(73176),g=n(76721),j=n(47146),y=n(28977),S=n.n(y),Z=n(45641),b=n(44194),v=n(95925),C=n(77422),M=n(21807),P=n(46591),w=n(99997),I=n(23675),k=n(1438);let D=({label:e,value:t,ellipsis:n=!1,...i})=>(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{span:6,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(u.Z,{status:"processing"}),(0,r.jsx)("div",{style:{width:180},children:(0,r.jsx)(c.Z.Text,{strong:!0,code:!0,children:e})}),(0,r.jsx)(h.Z,{type:"vertical"})]})}),(0,r.jsx)(a.Z,{span:18,children:(0,r.jsx)(c.Z.Paragraph,{ellipsis:n,strong:!0,...i,children:t})})]}),E=({loader:e,hasError:t,resource:n,before:s,cwd:l})=>(0,r.jsxs)(M.Zb,{title:"Loader Details",style:{border:"none"},extra:(0,r.jsx)(f.Z,{icon:(0,r.jsx)(i.Z,{}),color:"default",children:S()(e.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:[e.isPitch?(0,r.jsx)(c.Z.Text,{code:!0,children:"pitch"}):null,e.isPitch||t||!(0,Z.Z)(n.path,o.Constants.JSExtension)?null:(0,r.jsx)(k.E,{input:s,output:e.result||""}),(0,r.jsxs)(d.Z,{direction:"vertical",style:{padding:v.Size.BasePadding,wordBreak:"break-all"},children:[(0,r.jsx)(D,{label:"file path",value:(0,C.beautifyPath)(n.path,l),code:!0}),(0,r.jsx)(D,{label:"resource path",value:(0,r.jsx)(w.XF,{cwd:l,url:n.path,loc:"",disabled:!0})}),(0,r.jsx)(D,{label:"resource query",value:n.queryRaw||"-"}),(0,r.jsx)(D,{label:"duration",value:(0,C.formatCosts)(e.costs),mark:!0}),(0,r.jsx)(D,{label:"loader name",value:e.loader,code:!0}),(0,r.jsx)(D,{label:"loader index",value:`${e.loaderIndex}`}),(0,r.jsx)(D,{label:"loader path",value:(0,r.jsx)(w.XF,{cwd:l,url:e.path,loc:"",disabled:!0})}),(0,r.jsx)(D,{label:"options",value:JSON.stringify(e.options||"-"),copyable:!0,ellipsis:{rows:2,expandable:!0,symbol:"more"}})]})]}),T=({data:e,cwd:t,index:n})=>{let{loaders:o,resource:u}=e,[y,S]=(0,b.useState)(n||0),{theme:Z}=(0,C.useTheme)(),M="light"===Z,w=o[y],k=w.input||"",D=w.errors&&w.errors.length,[T,z]=(0,b.useState)("loaderDetails"),A=(0,b.useCallback)(e=>{z(e)},[]);return(0,r.jsxs)(l.Z,{style:{height:"100%"},children:[(0,r.jsx)(a.Z,{span:5,style:{borderRight:M?"1px solid #f0f0f0":void 0,padding:v.Size.BasePadding},children:(0,r.jsxs)(d.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(I.D,{text:"Executions"}),(0,r.jsx)(p.Z,{mode:"left",style:{marginTop:v.Size.BasePadding},children:o.map((e,t,n)=>{let{loader:s,isPitch:o}=e;return(0,r.jsxs)(p.Z.Item,{dot:o?(0,r.jsx)(f.Z,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,r.jsx)(i.Z,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,r.jsx)(l.Z,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,r.jsx)(a.Z,{span:24,children:(0,r.jsx)(m.Z,{title:s,trigger:"hover",children:(0,r.jsx)(x.ZP,{type:t===y?"primary":"default",block:!0,onClick:()=>{S(t)},style:{textAlign:"left"},children:(0,r.jsxs)(c.Z.Text,{ellipsis:!0,style:{color:"inherit"},children:[(0,r.jsx)(c.Z.Text,{strong:!0,style:{color:"inherit"},children:(0,C.formatCosts)(e.costs)}),(0,r.jsx)(h.Z,{type:"vertical"}),s]})})})})}),t===n.length-1?null:(0,r.jsx)("div",{style:{paddingTop:10},children:(0,r.jsx)(c.Z.Text,{children:"\u2B07\uFE0F"})})]},t)})})]})}),(0,r.jsx)(a.Z,{span:19,style:{height:"100%"},children:(0,r.jsx)(g.Z,{type:"card",defaultActiveKey:"loaderDetails",activeKey:T,items:[{label:"Loader Props",key:"loaderProps",children:(0,r.jsx)(E,{loader:w,hasError:D,resource:u,before:k,cwd:t})},{label:"Loader Details",key:"loaderDetails",children:(0,r.jsx)("div",{style:{height:"100%"},children:D?(0,r.jsxs)(a.Z,{span:24,style:{height:"53%",minHeight:400},children:[(0,r.jsx)("div",{style:{padding:v.Size.BasePadding,borderTop:`1px solid ${M?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${M?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,r.jsx)(I.D,{text:`the error stack of [${w.loader}] ${w.isPitch?"pitch":""}`})}),(0,r.jsx)("div",{style:{height:"90%"},children:(0,r.jsx)(s.ZP,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},lineNumbers:"off"},value:w.errors[0].message,language:"javascript"})})]}):(0,r.jsxs)(a.Z,{span:24,style:{height:"53%",minHeight:400},children:[(0,r.jsx)("div",{style:{padding:v.Size.BasePadding,borderTop:`1px solid ${M?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${M?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,r.jsx)(I.D,{text:`the result of [${w.loader}] ${w.isPitch?"pitch":""}`})}),w.isPitch?w.result?(0,r.jsx)("div",{style:{height:"90%"},children:(0,r.jsx)(s.ZP,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,formatOnType:!0,formatOnPaste:!0},value:w.result,language:(0,C.getModifiedLanguage)(u.path)})}):(0,r.jsx)(j.Z,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,r.jsxs)("div",{style:{minHeight:"700px"},children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{span:12,style:{padding:`${v.Size.BasePadding/2}px ${v.Size.BasePadding}px`},children:(0,r.jsx)(c.Z.Text,{strong:!0,children:"Input"})}),(0,r.jsx)(a.Z,{span:12,style:{padding:`${v.Size.BasePadding/2}px ${v.Size.BasePadding}px`},children:(0,r.jsx)(c.Z.Text,{strong:!0,children:"Output"})})]}),(0,r.jsx)("div",{style:{height:"40rem"},children:w.result||k?(0,r.jsx)(P.ZX,{filepath:u.path,before:k,after:w.result||""}):(0,r.jsx)(j.Z,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})]})]})})}],onChange:A})})]})}},26255:function(e,t,n){"use strict";n.d(t,{N:function(){return m},U:function(){return x}});var r=n(31549),i=n(78741),s=n(49066),o=n(45773),l=n(44194),a=n(83053),d=n(83911),u=n(61550),c=n(15890),h=n(77422),f=n(95925),p=n(89639);let m=e=>{let t;let{manifestLoader:n=h.fetchManifest,api:m,children:x,body:g=null,showSkeleton:j=!0,fallbackComponent:y}=e,[S,Z]=(0,l.useState)(),[b,v]=(0,l.useState)(f.ComponentState.Pending),[C,M]=(0,l.useState)({}),{loader:P}=(0,h.useDataLoader)(S);function w(e){window[i.Constants.WINDOW_RSDOCTOR_TAG]?k(e):(function(e){return e.then(e=>{Z(e)}).catch(e=>{throw v(f.ComponentState.Fail),e})})(t=n()).then(()=>{k(e)})}let I=(0,l.useCallback)(({req:e,res:t})=>{e.api===m&&((0,a.Z)(e.body,g)||(0,d.Z)(e.body)&&(0,d.Z)(g))&&!(0,a.Z)(C,t)&&M(t),v(f.ComponentState.Success)},[C,m,g]);(0,l.useEffect)(()=>{w(P)},[P,m,g]),(0,l.useEffect)(()=>{if(P)return P.onDataUpdate(m,I),()=>{P.removeOnDataUpdate(m,I)}},[P,m,g]);function k(e){if(!e)return;let t=(0,u.Z)(i.SDK.ServerAPI.APIExtends);if((0,c.Z)(t,m)){v(f.ComponentState.Success);return}e.loadAPI(m,g).then(e=>{if(!(0,d.Z)(e))M(e),v(f.ComponentState.Success)}).catch(e=>{console.error(e),v(f.ComponentState.Fail)})}if(b===f.ComponentState.Pending)return j?(0,r.jsx)(s.Z,{active:!0}):null;if(b===f.ComponentState.Fail)return y?y:(0,r.jsx)(p.c,{retry:()=>{v(f.ComponentState.Pending),t=n(),w()}});return b===f.ComponentState.Updating?(0,r.jsx)(o.Z,{spinning:!0,children:x(C)}):x(C)};function x({Component:e,api:t,responsePropName:n,body:i,fallbackComponent:s,showSkeleton:o}){return function(l){let{body:a=i,...d}=l;return(0,r.jsx)(m,{api:t,body:a,showSkeleton:o,fallbackComponent:s,children:t=>{let i={...d,[n]:t};return(0,r.jsx)(e,{...i})}})}}},42420:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(31549),i=n(49066),s=n(44194),o=n(77422),l=n(95925),a=n(89639);function d(e,t,n){let d=e();return function(){let[u,c]=(0,s.useState)(),[h,f]=(0,s.useState)(l.PageState.Pending),[p,m]=(0,s.useState)({}),{loader:x}=(0,o.useDataLoader)(u);function g(e){return e.then(e=>{c(e)}).catch(()=>{f(l.PageState.Fail)})}function j(e){e&&Promise.all(t.map(([t])=>e.loadData(t))).then(e=>{m(e.reduce((e,n,r)=>{let[i,s]=t[r];return e[s]=n,e},{})),f(l.PageState.Success)}).catch(e=>{console.error(e),f(l.PageState.Fail)})}return((0,s.useEffect)(()=>{g(d).then(()=>{j(x)})},[x]),h===l.PageState.Pending)?(0,r.jsx)(i.Z,{active:!0}):h===l.PageState.Fail?(0,r.jsx)(a.c,{retry:()=>{f(l.PageState.Pending),d.then(()=>{j(x)}).catch(()=>{g(e())})}}):(0,r.jsx)(n,{...p})}}},43622:function(e,t,n){"use strict";n.d(t,{Nu:function(){return i.N},U$:function(){return i.U},i8:function(){return r.i}});var r=n(42420),i=n(26255)},97835:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(31549),i=n(63272),s=n(77410),o=n.n(s),l=n(96883),a=n(7368);let d=+Date.now().toString().slice(-4)+1e3,u=({cwd:e,url:t,loc:n,windowId:s=d,label:u,disabled:c,code:h=!1})=>{let f=o().resolve(e,function(e){let t=e.split(" "),n="";return 1===t.length?[n]=t:[n]=t.filter(e=>o().isAbsolute(e)||(0,l.Z)(e,"./")),n||e}(t)),{line:p,columnStart:m}=function(e){if(!e)return{line:1,column:1};let[t,n=""]=e.split(":"),[r=1,i]=n.split("-");return{line:t,columnStart:r,columnEnd:i||r}}(n);return(0,r.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,r.jsx)(i.Z.Text,{copyable:{text:f},children:(0,r.jsxs)(i.Z.Text,{code:h,onClick:()=>{!c&&(0,a.a)({file:f,line:p,column:m,windowId:s})},style:{cursor:c?"revert":"pointer"},children:[u||t,n?`:${n}`:""]})}),(0,r.jsx)("div",{style:{display:"inline-block"}})]})}},99997:function(e,t,n){"use strict";n.d(t,{XF:function(){return r.X}});var r=n(97835);n(7368)},7368:function(e,t,n){"use strict";n.d(t,{a:function(){return i}}),n(31549);var r=n(83911);function i({file:e,line:t=1,column:n=1,windowId:i}){let s={windowId:i},o=Object.keys(s).map(e=>{let t=s[e];return(0,r.Z)(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),l=`vscode://file/${e}:${t}:${n}`;o&&(l+=`?${o}`),window.open(l)}},9665:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var r=n(31549),i=n(73176),s=n(63272),o=n(57102);let l=({theme:e,number:t,onClick:n,description:l,numberFontSize:a})=>{let d={success:{number:o.Z.successNumber,button:o.Z.successButton,description:o.Z.successText},error:{number:o.Z.errorNumber,button:o.Z.errorButton,description:o.Z.errorText},warning:{number:o.Z.warningNumber,button:o.Z.warningButton,description:o.Z.warningText}};return(0,r.jsxs)(i.ZP,{type:"text",className:d[e].button,onClick:n,children:[(0,r.jsx)(s.Z.Text,{className:d[e].number,style:{fontSize:a},children:t}),(0,r.jsx)("div",{className:d[e].description,children:l})]})}},57102:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(15702);var r={errorNumber:"errorNumber_3c2f5",warningNumber:"warningNumber_3c2f5",successNumber:"successNumber_3c2f5",errorText:"errorText_3c2f5",warningText:"warningText_3c2f5",successText:"successText_3c2f5",errorButton:"errorButton_3c2f5",warningButton:"warningButton_3c2f5",successButton:"successButton_3c2f5",container:"container_3c2f5"}},10907:function(e,t,n){"use strict";n.d(t,{v:function(){return M}});var r=n(31549),i=n(95103),s=n(63272),o=n(97770),l=n(82218),a=n(99892),d=n(13019),u=n(44194),c=n(78741),h=n(82647),f=n(91425),p=n(77422),m=n(57448),x=n(21807),g=n(43622),j=n(35972),y=n(59544),S=n(19942),Z=n(57102),b=n(9665);let v=e=>{let t=(0,u.useMemo)(()=>e.files.length?(0,p.createFileStructures)({files:e.files.map(e=>e.path),fileTitle(t,n){let{size:l,initial:a}=e.files.find(e=>e.path===t);return(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(s.Z.Text,{children:n}),(0,r.jsx)(o.Z,{color:"success",style:{marginRight:0},children:(0,p.formatSize)(l)}),a?(0,r.jsx)(o.Z,{color:"cyan",children:"Initial"}):null]})}}):[],[e.files]);return(0,r.jsx)(r.Fragment,{children:e.files.length?(0,r.jsx)(m.XU,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},text:(0,r.jsxs)(r.Fragment,{children:[e.count," ",(0,r.jsx)(h.Z,{})]}),children:(0,r.jsx)(j.z,{treeData:t,defaultExpandAll:!0})}):e.count})},C=({res:e})=>{let t=[{key:"total-files-count",label:"Total files",children:e.all.total.count},{key:"total-files-size",label:"",children:""},{key:"js-files-count",label:"JS files",children:v(e.js.total)},{key:"js-files-size",label:"JS size",children:(0,p.formatSize)(e.js.total.size)},{key:"css-files-count",label:"CSS files",children:v(e.css.total)},{key:"css-files-size",label:"CSS size",children:(0,p.formatSize)(e.css.total.size)},{key:"font-files-count",label:"Font files",children:v(e.fonts.total)},{key:"font-files-size",label:"Font size",children:(0,p.formatSize)(e.fonts.total.size)},{key:"html-files-count",label:"HTML files",children:v(e.html.total)},{key:"html-files-size",label:"HTML size",children:(0,p.formatSize)(e.html.total.size)},{key:"image-files-count",label:"Image files",children:v(e.imgs.total)},{key:"image-files-size",label:"Image size",children:(0,p.formatSize)(e.imgs.total.size)},{key:"media-files-count",label:"Media files",children:v(e.media.total)},{key:"media-files-size",label:"Media size",children:(0,p.formatSize)(e.media.total.size)}];return(0,r.jsx)(l.Z,{className:y.Z.root,size:"small",column:2,items:t})},M=({errors:e,cwd:t})=>{let{t:n}=(0,p.useI18n)(),i=(0,f.s0)(),s=(0,p.useDuplicatePackagesByErrors)(e);return(0,r.jsx)(g.Nu,{api:c.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let o=(0,p.formatSize)(e.all.total.size);return(0,r.jsxs)(x.Zb,{title:n("Bundle Overall"),className:S.Z.card,children:[(0,r.jsxs)(a.Z,{gutter:16,children:[(0,r.jsx)(d.Z,{span:12,className:Z.Z.container,children:(0,r.jsx)(b._,{theme:"success",number:o,description:"Total Size",numberFontSize:"30px",onClick:()=>{i(c.Client.RsdoctorClientRoutes.BundleSize)}})}),(0,r.jsx)(d.Z,{span:12,className:Z.Z.container,children:(0,r.jsx)(m.sv,{cwd:t,duplicatePackages:s,button:(0,r.jsx)(b._,{theme:0===s.length?"success":"warning",number:s.length,description:"Duplicate Packages"})})})]}),(0,r.jsx)(C,{res:e})]})}})}},19942:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(35371);var r={card:"card_3bba1"}},81981:function(e,t,n){"use strict";n.d(t,{F:function(){return j}});var r=n(31549),i=n(46641),s=n(63272),o=n(10855),l=n(95103),a=n(8646),d=n(77422),u=n(21807),c=n(85057),h=n(92381),f=n(21682),p=n(19942),m=n(55295);let x=({children:e,name:t,showDivider:n=!0})=>(0,r.jsxs)(s.Z.Text,{style:{color:"inherit"},children:[(0,r.jsx)(s.Z.Text,{style:{color:"inherit"},children:t}),n?(0,r.jsx)(o.Z,{type:"vertical"}):null,e]}),g=e=>e<33.3?{"0%":"#95de64","100%":"#5cdbd3"}:{"0%":"#ff9c6e","100%":"#ff7875"},j=({summary:e})=>{let{t}=(0,d.useI18n)();if(!e?.costs?.length)return null;let n=Math.max(...e.costs.map(e=>e.costs));return(0,r.jsx)(u.Zb,{title:t("Compile Overall"),className:p.Z.card,children:(0,r.jsx)(l.Z,{style:{wordBreak:"break-all",width:"100%"},size:20,direction:"vertical",children:e.costs.map(t=>{let{name:s,costs:o}=t,l=100*o/n,u=(0,r.jsx)(a.Z,{className:m.Z.progress,percent:l,status:"normal",strokeColor:g(l),format:()=>(0,d.formatCosts)(o)});switch(s){case i.ER.M.Bootstrap:return(0,r.jsxs)(x,{name:"Bootstrap ~ BeforeCompile",children:[(0,r.jsx)(c.E,{summary:e}),u]},s);case i.ER.M.Compile:return(0,r.jsx)(x,{name:"Compile",showDivider:!1,children:u},s);case i.ER.M.Done:return(0,r.jsxs)(x,{name:"AfterCompile ~ Done",children:[(0,r.jsx)(h.T,{summary:e}),u]},s);case i.ER.M.Minify:return(0,r.jsxs)(x,{name:"Minify",children:[(0,r.jsx)(f.Z,{summary:e}),u]},s);default:return null}})})})}},55295:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(90438);var r={progress:"progress_61324"}},23312:function(e,t,n){"use strict";n.d(t,{F8:function(){return i.F},lj:function(){return s.l},vD:function(){return r.v}});var r=n(10907),i=n(81981),s=n(22686)},59544:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),n(22338);var r={root:"root_17e15"}},22686:function(e,t,n){"use strict";n.d(t,{l:function(){return j}});var r=n(31549),i=n(99892),s=n(13019),o=n(95103),l=n(82218),a=n(52136),d=n(77422),u=n(51264),c=n(21807),h=n(59544),f=n(19942),p=n(57102),m=n(57448),x=n(14496),g=n(9665);let j=({configs:e=[],cwd:t,envinfo:n,alerts:j=[]})=>{let{t:y}=(0,d.useI18n)(),S=(0,a.Z)(j,e=>"warn"===e.level).length,Z=j.length-S,b=[...Object.keys(n).map(e=>{let t=/Version$/,r=t.test(e);return{key:e,label:r?e.replace(t,""):e,children:n?n[e]:void 0}}),...e.filter(e=>!!e.version).map(e=>{let{name:t,version:n}=e;return{key:t,label:t,children:n}}),{key:"cwd",label:"cwd",children:t}];return(0,r.jsxs)(c.Zb,{title:y("Project Overall"),extra:(0,r.jsx)(u.S,{}),className:f.Z.card,children:[(0,r.jsxs)(i.Z,{gutter:16,children:[(0,r.jsx)(s.Z,{span:12,className:p.Z.container,children:(0,r.jsx)(m.XU,{button:(0,r.jsx)(g._,{theme:0===Z?"success":"error",number:Z,description:"Errors"}),drawerProps:{title:"Errors List"},children:(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(x.QE,{defaultOpen:!1}),(0,r.jsx)(x.CG,{filter:e=>"error"===e.level}),(0,r.jsx)(x.$X,{filter:e=>"error"===e.level})]})})}),(0,r.jsx)(s.Z,{span:12,className:p.Z.container,children:(0,r.jsx)(m.XU,{button:(0,r.jsx)(g._,{theme:0===S?"success":"warning",number:S,description:"Warnings"}),drawerProps:{title:"Warnings List"},children:(0,r.jsxs)(o.Z,{direction:"vertical",style:{width:"100%"},children:[(0,r.jsx)(x.QE,{defaultOpen:!1}),(0,r.jsx)(x.CG,{filter:e=>"warn"===e.level}),(0,r.jsx)(x.$X,{filter:e=>"warn"===e.level})]})})})]}),(0,r.jsx)(l.Z,{className:h.Z.root,items:b,size:"small",column:1})]})}},13938:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(31549);n(44194);var i=n(74379),s=n(44242),o=n(20942),l=n(77422);let a=({dataSource:e})=>(0,r.jsx)(i.Z,{dataSource:e,rowKey:e=>`${e.tapName}_${e.hook}`,columns:[{title:"Plugin Tap Name",render:(e,t)=>t.tapName},{title:"Hook",render:(e,t)=>t.hook},{title:"calls",render:(e,t)=>(0,r.jsx)(s.Z,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>(0,l.formatCosts)((0,o.Z)(t.data,e=>e.costs)),sorter:(e,t)=>(0,o.Z)(e.data,e=>e.costs)-(0,o.Z)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},90647:function(e,t,n){"use strict";n.d(t,{gY:function(){return I}});var r=n(31549),i=n(44194),s=n(73934),o=n(50002),l=n(13019),a=n(89246),d=n(73176),u=n(74379),c=n(63272),h=n(99892),f=n(95103),p=n(60395),m=n(34781),x=n(9589),g=n(23193),j=n(46641),y=n(78741),S=n(95925),Z=n(77422),b=n(35972),v=n(33448),C=n(46591),M=n(43622);let P=({filepath:e,before:t,after:n,resolvers:s})=>{let[o,h]=(0,i.useState)(!1);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.Z,{flex:1,children:(0,r.jsx)(a.Z,{title:"Resolve Diff Viewer",children:(0,r.jsx)(C.ZX,{filepath:e,before:t,after:n,editorProps:{height:735}})})}),(0,r.jsx)(l.Z,{span:o?2:7,children:(0,r.jsx)(a.Z,{title:o?"...":"Resolve Details",extra:(0,r.jsx)(d.ZP,{onClick:()=>h(!o),size:"small",icon:o?(0,r.jsx)(p.Z,{}):(0,r.jsx)(m.Z,{})}),style:o?{width:80}:void 0,children:o?null:(0,r.jsx)(u.Z,{style:{width:"100%",height:735,overflowY:"scroll",wordBreak:"break-all"},size:"small",pagination:!1,bordered:!0,rowKey:e=>e.request,columns:[{title:"Source Code",width:200,render:(e,t)=>(0,r.jsx)(c.Z.Text,{copyable:!0,children:(0,r.jsx)(c.Z.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,r.jsx)(c.Z.Text,{strong:!0,children:(0,Z.formatCosts)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>j.H2.Q4(t)?(0,r.jsx)(c.Z.Text,{copyable:!0,children:t.result}):(0,r.jsx)(x.Z,{style:{color:"#f50"}})}],dataSource:s})})})]})},w=e=>{let{resolver:t,cwd:n}=e,[d,u]=(0,i.useState)(""),c="/node_modules/",f=(0,i.useMemo)(()=>(0,s.Z)(t,e=>e.issuerPath).filter(Boolean),[t]),p=(0,i.useMemo)(()=>f.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,f]),m=p.length&&p.every(e=>e.indexOf(c)>-1),x=(0,i.useMemo)(()=>(0,Z.createFileStructures)({files:p.length?p:f,cwd:n,fileTitle:(e,t)=>(0,r.jsx)("div",{onClick:()=>u(e),children:t})}),[e.filename]);return(0,r.jsxs)(h.Z,{justify:"start",align:"top",wrap:!1,gutter:S.Size.BasePadding,children:[(0,r.jsx)(l.Z,{span:7,children:(0,r.jsx)(a.Z,{title:"Files",children:(0,r.jsx)(b.z,{style:{width:"100%",height:735,overflow:"scroll"},treeData:x,defaultExpandedKeys:(0,Z.mapFileKey)(x,m?1:4,m?void 0:e=>{let t=(0,o.Z)(e,"__RESOURCEPATH__").indexOf(c)>-1;return!!(p.length&&p.every(e=>e.indexOf(c)>-1))||!t})},`tree_${e.filename}`)})}),d&&(0,r.jsx)(M.Nu,{api:y.SDK.ServerAPI.API.GetResolverFileDetails,body:{filepath:d},children:e=>(0,r.jsx)(P,{...e})})]})},I=(0,M.U$)({api:y.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[n,s]=(0,i.useState)("");return(0,r.jsxs)("div",{style:{width:"100%"},children:[(0,r.jsx)(f.Z,{style:{marginTop:S.Size.BasePadding,marginBottom:S.Size.BasePadding},children:(0,r.jsx)(v.a,{icon:(0,r.jsx)(g.Z,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>s(e)})}),(0,r.jsx)(M.Nu,{api:y.SDK.ServerAPI.API.GetResolverFileTree,children:e=>(0,r.jsx)(w,{filename:n,resolver:e,cwd:t})})]})}})},42068:function(e,t,n){"use strict";n.d(t,{k:function(){return m}});var r=n(31549),i=n(44194),s=n(41681),o=n(73176),l=n(63272),a=n(8105),d=n(95103),u=n(85128),c=n(23193),h=n(33448),f=n(95925);let p=({style:e,onChange:t,loaderNames:n})=>{let[d,c]=(0,i.useState)([]);return(0,r.jsxs)(s.Z.Group,{compact:!0,style:e,children:[(0,r.jsxs)(o.ZP,{style:{width:120},children:[(0,r.jsx)(u.Z,{}),(0,r.jsx)(l.Z.Text,{children:"Loaders"})]}),(0,r.jsx)(a.Z,{mode:"multiple",allowClear:!0,defaultValue:d,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"select loaders",onChange:e=>{c(e),t(e)},children:n.map(e=>(0,r.jsx)(a.Z.Option,{label:e,value:e,children:e},e))})]})},m=({onChange:e,loaderNames:t})=>{let[n,s]=(0,i.useState)([]),[o,l]=(0,i.useState)("");return(0,i.useEffect)(()=>{e({loaders:n,filename:o})},[n,o]),(0,r.jsxs)(d.Z,{style:{marginBottom:f.Size.BasePadding},children:[(0,r.jsx)(p,{loaderNames:t,style:{marginRight:f.Size.BasePadding-8},onChange:e=>{s(e)}}),(0,r.jsx)(h.a,{icon:(0,r.jsx)(c.Z,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>{l(e)}})]})}},29802:function(e,t,n){"use strict";n.d(t,{c:function(){return c}});var r=n(31549),i=n(47146),s=n(95103),o=n(63272),l=n(73176),a=n(44194);let d="Load data failed, please try again",u="retry",c=a.memo(({title:e=d,buttonText:t=u,retry:n})=>(0,r.jsx)(i.Z,{description:(0,r.jsxs)(s.Z,{direction:"vertical",children:[(0,r.jsx)(o.Z.Text,{children:e}),(0,r.jsx)(l.ZP,{type:"primary",onClick:()=>{n()},children:t})]})}))},89639:function(e,t,n){"use strict";n.d(t,{c:function(){return r.c}});var r=n(29802)},50010:function(e,t,n){"use strict";n.d(t,{P:function(){return g},s:function(){return j}});var r=n(31549),i=n(44242),s=n(95103),o=n(63272),l=n(99892),a=n(13019),d=n(78741),u=n(82647),c=n(46641),h=n(95925),f=n(57448),p=n(57031),m=n(43622);let x=({duplicatePackages:e=[],cwd:t,children:n,...d})=>(0,r.jsx)(f.XU,{...d,buttonStyle:{fontSize:"inherit",...d.buttonStyle},buttonProps:{type:"text",...d.buttonProps},text:(0,r.jsx)(i.Z,{title:"Click to show the details of duplicate packages",children:(0,r.jsxs)(s.Z,{style:{fontSize:"inherit"},children:[(0,r.jsx)(o.Z.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...d.textStyle},children:e.length}),(0,r.jsx)(u.Z,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...d.drawerProps},children:(0,r.jsx)(l.Z,{gutter:[h.Size.BasePadding,h.Size.BasePadding],children:e.map((e,i)=>(0,r.jsx)(a.Z,{span:24,children:(0,r.jsx)(p.jA,{data:e,cwd:t,getPackageRelationContentComponent:n})},i))})}),g=({moduleGraph:e,...t})=>(0,r.jsx)(x,{...t,children:n=>(0,r.jsx)(m.Nu,{api:d.SDK.ServerAPI.API.GetModuleCodeByModuleIds,body:{moduleIds:e.modules.map(e=>e.id)},children:i=>(0,r.jsx)(p.bi,{data:c.pC.J(e.modules,e.dependencies,t.cwd,n.package.dependencies,i),cwd:t.cwd})})}),j=e=>(0,r.jsx)(x,{...e,children:t=>(0,r.jsx)(p.md,{body:{id:t.data.id,target:t.package.target},cwd:e.cwd})})},57448:function(e,t,n){"use strict";n.d(t,{Pq:function(){return a.P},XU:function(){return d},sv:function(){return a.s}});var r=n(31549),i=n(73176),s=n(76779),o=n(44194),l=n(95925),a=n(50010);let d=e=>{let[t,n]=(0,o.useState)(!1);return(0,r.jsxs)(o.Fragment,{children:[e.button?(0,r.jsx)("div",{onClick:()=>n(!t),children:e.button}):(0,r.jsx)(i.ZP,{type:"link",...e.buttonProps,onClick:()=>n(!t),style:{padding:0,...e.buttonStyle},children:e.text}),(0,r.jsx)(s.Z,{maskClosable:!0,width:l.drawerWidth,zIndex:999,...e.drawerProps,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:e.children})]})}},23675:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(31549),i=n(63272),s=n(42689);let o=({upperFirst:e=!0,fontSize:t=16,text:n,hash:o})=>{let l="string"==typeof n&&e?(0,s.Z)(n):n;return(0,r.jsx)(i.Z.Text,{style:{fontSize:t},strong:!0,children:o?(0,r.jsx)("a",{href:o,id:o.replace(/^#/,""),style:{color:"inherit"},children:l}):l})}},31646:function(e,t,n){"use strict";n.d(t,{Ar:function(){return r.A}}),n(97946),n(14496),n(94386),n(21807),n(46591);var r=n(42579);n(23312),n(43622),n(33448),n(57448),n(91770),n(67451)},13872:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var r=n(31549),i=n(44194),s=n(94386),o=n(79381),l=n(47993);let a=()=>new Worker(new URL(n.p+n.u("811"),n.b)),d={[o.ECMAVersion.ES5]:s.Rf[s.gZ.Success],[o.ECMAVersion.ES6]:s.Rf[s.gZ.Error],[o.ECMAVersion.ES7P]:s.Rf[s.gZ.Error]},u=({code:e})=>{if(!e)return null;let{version:t}=function(e){let{code:t}=e,[n,r]=(0,i.useState)();return(0,i.useEffect)(()=>{if(!t)return;let{abort:e}=l.master.detectWorker(a).emit(t,e=>{r(e)});return()=>{e()}},[t]),{version:n}}({code:e});return t?(0,r.jsx)("div",{style:{display:"inline-block",height:19.5,padding:"0px 4px",width:40,fontSize:10,lineHeight:"19.5px",textAlign:"center",color:"#fff",background:d[t]||s.Rf[s.gZ.Default],borderRadius:4},children:t}):null}},1438:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(31549),i=n(44194),s=n(97770),o=n(47993),l=n(77422);let a=()=>new Worker(new URL(n.p+n.u("432"),n.b)),d=({input:e,output:t})=>{if(!e||!t)return null;let{isEqual:n}=function(e){let{input:t,output:n}=e,[r,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!t||!n)return;let{abort:e}=o.master.detectWorker(a).emit({input:t,output:n},e=>{s(e)});return()=>{e()}},[t,n]),{isEqual:r}}({input:e,output:t}),{t:d}=(0,l.useI18n)();return n?(0,r.jsx)(s.Z,{color:"warning",children:d("the file content not changed after transpiled by this loader")}):null}},67351:function(e,t,n){"use strict";n.d(t,{E:function(){return l},u:function(){return o}});var r=n(44194),i=n(41451),s=n(95925);let o={locale:(0,i.V1)(),theme:(0,i.Bd)(),pageState:s.PageState.Pending,viewMode:(0,i.ZM)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},l=(0,r.createContext)({...o})},95925:function(e,t,n){"use strict";n.r(t),n.d(t,{APILoaderMode4Dev:function(){return x},Color:function(){return j},ComponentState:function(){return f},Language:function(){return m},MAIN_BG:function(){return Z},PageState:function(){return h},ROOT_BG_COLOR:function(){return b},Size:function(){return g},TAG_PALLETE:function(){return S},Theme:function(){return c},ViewMode:function(){return p},drawerWidth:function(){return y}});var r,i,s,o,l,a,d,u,c=((r=c||{}).Light="light",r.Dark="dark",r);var h=((i=h||{})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Fail=2]="Fail",i);var f=((s=f||{})[s.Success=0]="Success",s[s.Pending=1]="Pending",s[s.Updating=2]="Updating",s[s.Fail=3]="Fail",s);var p=((o=p||{}).List="list",o.Group="group",o);var m=((l=m||{}).Cn="cn",l.En="en",l);var x=((a=x||{}).Local="local",a.Remote="remote",a.Default="default",a);var g=((d=g||{})[d.BasePadding=24]="BasePadding",d[d.BaseBorderRadius=8]="BaseBorderRadius",d[d.NavBarHeight=54]="NavBarHeight",d);var j=((u=j||{}).Red="#e17055",u.Green="#52c41a",u.Yellow="#faad14",u.Blue="#1677ff",u);let y="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100,S={COLOR_A:"#90DCE9",COLOR_B:"green",COLOR_C:"#4EAAB9",COLOR_D:"#B7E9F4",COLOR_E:"#2E7CBE",DARK_BLUE:"#1554ad"},Z="",b="rgb(105, 177, 255)"},18005:function(e,t,n){"use strict";n.d(t,{Constants:function(){return i}}),n(31646);var r=n(77422);n.o(r,"Constants")&&n.d(t,{Constants:function(){return r.Constants}});var i=n(95925)},89256:function(e,t,n){"use strict";n.d(t,{VT:function(){return W}});var r=n(31549),i=n(85230),s=n(68673),o=n(68583),l=n(78666),a=n(55834),d=n(78741),u=n(47146),c=n(90722),h=n(89246),f=n(63272),p=n(76779),m=n(95103),x=n(44242),g=n(10855),j=n(97770),y=n(73176),S=n(99892),Z=n(13019),b=n(80613),v=n(20942),C=n(77410),M=n(44194),P=n(43622),w=n(18602),I=n(94386),k=n(35972),D=n(33448),E=n(67522),T=n(57448),z=n(95925),A=n(77422),N=n(53394);let _=[],R={source:"source code",transformed:"Transformed Code (After compile)",parsedSource:"Bundled Code (After bundle and tree-shaking)"},B={margin:"none",marginInlineEnd:0},O=()=>(0,r.jsx)(u.Z,{description:`Do not have the module code.
78
78
  (1) If you use the brief mode, there will not have any codes to show.
79
- (2) If you use lite mode, there will not have source codes.`}),O=({data:e})=>{let[t,n]=(0,M.useState)(""),{t:s}=(0,A.useI18n)(),o={source:"Source Code",transformed:`Transformed Code(${s("After Compile")})`,parsedSource:`Bundled Code(${s("After Bundled")})`};if(!e)return null;let{path:l}=e;return(0,r.jsx)(T.XU,{text:"",buttonProps:{size:"small",icon:(0,r.jsx)(c.Z,{content:"Open the Codes Box",children:(0,r.jsx)(i.Z,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${l}"`},children:(0,r.jsx)(P.Nu,{api:d.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:e.id},children:e=>(0,r.jsx)(r.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,r.jsx)(h.Z,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,b.Z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:o[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>n(e),tabBarExtraContent:(0,r.jsx)(c.Z,{placement:"bottom",title:(0,r.jsx)(f.Z.Title,{level:5,children:"Explain"}),content:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(f.Z.Text,{strong:!0,children:"Source: "}),(0,r.jsx)(f.Z.Text,{children:R.source})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(f.Z.Text,{strong:!0,children:["Transformed:"," "]}),(0,r.jsx)(f.Z.Text,{children:R.transformed})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(f.Z.Text,{strong:!0,children:["Bundled Source:"," "]}),(0,r.jsx)(f.Z.Text,{children:R.parsedSource})]}),(0,r.jsx)("br",{}),(0,r.jsx)(f.Z.Text,{strong:!0,children:"More"}),(0,r.jsx)(f.Z.Text,{children:s("CodeModeExplain")})]})}),trigger:"hover",children:(0,r.jsx)("a",{href:"#",children:"Explain"})}),children:e.parsedSource||e.source||e.transformed?(0,r.jsx)(a.ZP,{theme:"vs-dark",language:(0,A.getOriginalLanguage)(l),height:window.innerHeight/1.5,value:t?e[t]:e.parsedSource?e.parsedSource:e.source,options:{readOnly:!0,domReadOnly:!0,fontSize:14,wordWrap:"bounded",minimap:{enabled:!1}}}):(0,r.jsx)(L,{})}):(0,r.jsx)(L,{})})})})},$=({id:e,show:t,setShow:n,cwd:i})=>e?(0,r.jsx)(p.Z,{open:t,maskClosable:!0,width:z.drawerWidth,onClose:()=>n(!1),children:(0,r.jsx)(P.Nu,{api:d.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:t=>(0,r.jsx)(w.H,{cwd:i,moduleId:e,modules:t})})}):null,G="__RESOURCEPATH__",F=({modules:e,chunks:t,filteredModules:n})=>{let{sourceSize:i,parsedSize:o,filteredParsedSize:l,filteredSourceSize:a}=(0,M.useMemo)(()=>({sourceSize:(0,v.Z)(e,e=>e.size.sourceSize),parsedSize:(0,v.Z)(e,e=>e.size.parsedSize),filteredSourceSize:(0,v.Z)(n,e=>e.size.sourceSize),filteredParsedSize:(0,v.Z)(n,e=>e.size.parsedSize)}),[e,n]);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(x.Z,{title:`total modules count is ${e.length}, the filtered modules count is ${n.length}`,children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",n.length," / ",e.length]}),(0,r.jsx)(s.Z,{})]})}),(0,r.jsx)(g.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,A.formatSize)(o)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,A.formatSize)(i)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,A.formatSize)(l)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,A.formatSize)(a)]})]}),children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:"," ",l===o?(0,A.formatSize)(o):`${(0,A.formatSize)(l)} / ${(0,A.formatSize)(o)}`]}),(0,r.jsx)(s.Z,{})]})}),(0,r.jsx)(g.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["this asset includes ",t.length," chunks:"," "]}),t.map(e=>(0,r.jsx)(I.Ct,{label:"chunk",value:e.name},e.name))]}),children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",t.length]}),(0,r.jsx)(s.Z,{})]})})]})},W=({asset:e,chunks:t,modules:n,moduleSizeLimit:i,height:s,root:a})=>{let[p,g]=(0,M.useState)(""),[b,P]=(0,M.useState)(!1),[w,I]=(0,M.useState)([]),[T,R]=(0,M.useState)(!1),L=(0,M.useMemo)(()=>{let e=n.slice();if(p){let t=RegExp(p,"i");e=e.filter(e=>t.test(e.path))}return i&&(e=e.filter(e=>e.size.parsedSize>=i)),e},[n,p,i]),W=(0,M.useMemo)(()=>(0,A.createFileStructures)({files:L.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:G,fileTitle(e,t){let i=L.find(t=>t.path===e);if(!i)return t;let{parsedSize:s=0,sourceSize:l=0}=i.size,a=i.kind===d.SDK.ModuleKind.Concatenation,u=!a&&0===s&&n.filter(e=>e!==i&&e.modules&&e.modules.indexOf(i.id)>-1);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(E.Z,{ellipsis:!0,style:{maxWidth:500},text:t,keyword:p}),0!==s?(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsx)(j.Z,{color:"orange",children:"Bundled Size:"+(0,A.formatSize)(s)}),(0,r.jsx)(j.Z,{color:"volcano",children:"Source Size:"+(0,A.formatSize)(l)})]}),color:"white",children:(0,r.jsx)(j.Z,{color:"purple",style:B,children:"Bundled: "+(0,A.formatSize)(s)})}):0!==l?(0,r.jsx)(j.Z,{color:"geekblue",children:"Source Size:"+(0,A.formatSize)(l)}):null,a?(0,r.jsx)(x.Z,{title:(0,r.jsx)(m.Z,{children:(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["this is a concatenated module, it contains"," ",i.modules?.length," modules"]})}),children:(0,r.jsx)(j.Z,{color:"green",style:B,children:"concatenated"})}):null,u&&u.length?(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsx)(f.Z.Text,{style:{color:"inherit"},children:"this is a concatenated module, it is be contained in these modules below:"}),u.map(({id:e,path:t})=>{if((0,A.isJsDataUrl)(t))return(0,r.jsx)(f.Z.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:t},e);let n=(0,C.relative)((0,C.dirname)(i.path),t);return n.startsWith("javascript;charset=utf-8;base64,")?(0,r.jsx)(f.Z.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===n[0]?n:`./${n}`},e):(0,r.jsx)(f.Z.Text,{style:{color:"inherit"},code:!0,children:"."===n[0]?n:`./${n}`},e)})]}),children:(0,r.jsx)(j.Z,{color:"green",children:"concatenated"})}):null,(0,r.jsx)(c.Z,{content:"Open the Module Graph Box",children:(0,r.jsx)(y.ZP,{size:"small",icon:(0,r.jsx)(o.Z,{}),onClick:()=>{I([i.id]),R(!0)}})}),(0,r.jsx)(O,{data:i})]})},dirTitle(e,t){let i=function e(t){let n=[];return t.children&&t.children.forEach(t=>{t.isLeaf?n.push(t[G]):e(t)}),n}(e);if(i.length){let e=i.map(e=>n.find(t=>t.path===e)),s=(0,v.Z)(e,e=>e.size?.parsedSize||0),o=(0,v.Z)(e,e=>e.size?.sourceSize||0);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(f.Z.Text,{children:t}),s>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{style:B,color:"orange",children:"Bundled:"+(0,A.formatSize)(s)}),(0,r.jsx)(j.Z,{style:B,color:"lime",children:"Source:"+(0,A.formatSize)(o)})]}):(0,r.jsx)(j.Z,{style:B,color:"lime",children:"Source:"+(0,A.formatSize)(o)})]})}return t}}),[L]);return(0,M.useEffect)(()=>{g(""),P(!1)},[e]),(0,M.useEffect)(()=>{P(!1)},[p]),(0,r.jsx)(N.r.Provider,{value:{moduleJumpList:w,setModuleJumpList:I},children:(0,r.jsxs)(h.Z,{title:`Modules of "${e.path}"`,bodyStyle:{overflow:"scroll",height:s},size:"small",children:[n.length?(0,r.jsxs)(S.Z,{children:[(0,r.jsx)(Z.Z,{span:24,children:(0,r.jsx)(F,{modules:n,chunks:t,filteredModules:L})}),(0,r.jsx)(Z.Z,{span:24,children:(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(D.a,{placeholder:"search module by keyword",onChange:e=>g(e)},e.path),(0,r.jsx)(y.ZP,{onClick:()=>P(!0),size:"small",icon:(0,r.jsx)(l.Z,{}),children:"expand all"})]})}),(0,r.jsx)(Z.Z,{span:24,style:{marginTop:z.Size.BasePadding},children:L.length?(0,r.jsx)(k.z,{onExpand:e=>{_=e},treeData:W,autoExpandParent:!0,defaultExpandParent:!0,defaultExpandedKeys:_?.length?_:1===W.length?[W[0].key]:[],defaultExpandAll:b||L.length<=20},`tree_${p}_${b}_${e.path}`):(0,r.jsx)(u.Z,{description:(0,r.jsx)(f.Z.Text,{strong:!0,children:`"${p}" can't match any modules`})})})]}):(0,r.jsx)(u.Z,{description:(0,r.jsx)(f.Z.Text,{strong:!0,children:`"${e.path}" doesn't have any modules`})}),(0,r.jsx)($,{id:w?.length?w[w.length-1]:"",show:T,setShow:R,cwd:a})]})})}},16581:function(e,t,n){"use strict";n.d(t,{b:function(){return g}});var r=n(31549),i=n(44194),s=n(75168),o=n(35554),l=n(99892),a=n(13019),d=n(77422),u=n(95925),c=n(50818),h=n(57448),f=n(87457);let{useToken:p}=s.Z,m=({showProgress:e=!1,data:t,total:n,tagBgColor:i})=>{let{token:s}=p(),o=i||s.colorPrimaryBorderHover;return(0,r.jsx)(f.K,{files:t.files,total:n,showProgress:e,tagBgColor:o})},x=({titles:e,datas:t,bgColor:n})=>{let[s,l]=(0,i.useState)(0);return(0,r.jsx)(c.I,{title:e.length>1?(0,r.jsx)(o.Z,{defaultValue:e[s],options:e,onChange:t=>{l(e.indexOf(t))},size:"small",style:{transition:"transform 0.3s ease"},value:e[s]||e[0]}):e[s],value:t.map((e,t)=>(0,i.createElement)(m,{...e,key:t,tagBgColor:n?.tagBgColor}))[s],boxProps:{style:{background:n?.bgColor}}})},g=({cwd:e,errors:t,summary:n})=>{let i=(0,d.useWindowWidth)(),s=(0,d.useDuplicatePackagesByErrors)(t),o=[(0,r.jsx)(x,{titles:["Total Files"],datas:[{data:n.all.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Total JS","Initial JS"],datas:[{data:n.js.total,total:n.all.total.size,showProgress:!0},{data:n.js.initial,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Total CSS","Initial CSS"],datas:[{data:n.css.total,total:n.all.total.size,showProgress:!0},{data:n.css.initial,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Images","Fonts","Media"],datas:[{data:n.imgs.total,total:n.all.total.size,showProgress:!0},{data:n.fonts.total,total:n.all.total.size,showProgress:!0},{data:n.media.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["HTML Files"],datas:[{data:n.html.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(c.I,{title:"Duplicate Packages",value:(0,r.jsx)(h.sv,{buttonStyle:{height:100},duplicatePackages:s,cwd:e})})];return(0,r.jsx)(l.Z,{gutter:i>1200&&i<1400?[2*u.Size.BasePadding,u.Size.BasePadding]:[u.Size.BasePadding,u.Size.BasePadding],wrap:!0,style:{marginBottom:u.Size.BasePadding},children:o.map((e,t)=>(0,r.jsx)(a.Z,{span:i>1500?4:8,children:e},t))})}},62585:function(e,t,n){"use strict";n.d(t,{V:function(){return O}});var r=n(31549),i=n(85230),s=n(68583),o=n(68673),l=n(78666),a=n(61354),d=n(78741),u=n(8105),c=n(95103),h=n(97770),f=n(86536),p=n(89246),m=n(47146),x=n(44242),g=n(99892),j=n(13019),y=n(63272),S=n(73176),Z=n(5978),b=n(10855),v=n(6139),C=n(15890),M=n(20942),P=n(44194),w=n(43622),I=n(94386),k=n(35972),D=n(33448),E=n(67522),T=n(23675),z=n(95925),A=n(77422),N=n(16581),_=n(46591),R=n(89256);n(2623);let{Option:B}=u.Z,L=({errors:e,cwd:t,summary:n,entryPoints:L})=>{let[O,$]=(0,P.useState)([]),[G,F]=(0,P.useState)(0),[W,K]=(0,P.useState)(""),[U,H]=(0,P.useState)(0),[V,J]=(0,P.useState)(!1),[Y,q]=(0,P.useState)(""),[X,Q]=(0,P.useState)(""),[ee,et]=(0,P.useState)(null),[en,er]=(0,P.useState)(!1),[ei,es]=(0,P.useState)("tree"),{t:eo}=(0,A.useI18n)(),el=n.all.total.files,ea=(0,P.useCallback)(e=>t=>{"module"===e?q(t):"chunk"===e&&Q(t)},[]),ed=e=>(0,r.jsxs)(u.Z,{defaultValue:"kb",onChange:ea(e),children:[(0,r.jsx)(B,{value:"kb",children:"KB"}),(0,r.jsx)(B,{value:"mb",children:"MB"})]}),eu=(0,P.useCallback)((0,v.Z)(e=>{F("mb"===Y?1048576*e:1024*e)},300),[]),ec=(0,P.useCallback)((0,v.Z)(e=>{H("mb"===X?1048576*e:1024*e)},300),[]),eh=(0,P.useMemo)(()=>{let e=el.slice();return W&&(e=e.filter(e=>e.path.indexOf(W)>-1)),U>0&&(e=e.filter(e=>e.size>=U)),O.length&&(e=e.filter(e=>!!O.some(t=>(0,C.Z)(t.assets,e.path))||!1)),e.sort((e,t)=>{let n=e.path.indexOf("/")>-1?1:0;return(t.path.indexOf("/")>-1?1:0)-n})},[el,O,W,U]),ef=(0,P.useMemo)(()=>(0,A.createFileStructures)({files:eh.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:n,initial:i,path:s,content:o}=eh.find(t=>t.path===e);return(0,r.jsxs)(c.Z,{onClick:()=>{et(s)},children:[(0,r.jsx)(E.Z,{text:t,keyword:W}),(0,r.jsx)(h.Z,{color:"success",style:{margin:0},children:(0,A.formatSize)(n)}),i?(0,r.jsx)(h.Z,{color:"cyan",style:{margin:0},children:"initial"}):null,(0,r.jsx)(_.ut,{path:s,content:o,editorConfig:{readOnly:!1,domReadOnly:!1},emptyReason:"Do not have the codes of assets. If you use the lite or brief mode, there will have codes."})]})}}),[eh]);return(0,r.jsxs)(P.Fragment,{children:[(0,r.jsx)(N.b,{cwd:t,errors:e,summary:n}),(0,r.jsxs)(f.ZP.Group,{value:ei,onChange:e=>es(e.target.value),style:{marginBottom:z.Size.BasePadding},buttonStyle:"solid",optionType:"button",children:[(0,r.jsx)(f.ZP.Button,{value:"tree",children:"Tree Graph"}),(0,r.jsx)(f.ZP.Button,{value:"tile",children:"Bundle Analyzer Graph"})]}),(0,r.jsx)(p.Z,{hidden:"tree"===ei,title:(0,r.jsx)(c.Z,{children:(0,r.jsx)(T.D,{text:"From: Webpack Bundle Analyzer"})}),children:(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetTileReportHtml,body:{},children:e=>e&&"tile"===ei?(0,r.jsx)("iframe",{srcDoc:e,width:"100%",height:800,style:{border:"none"}}):(0,r.jsx)(m.Z,{description:(0,r.jsxs)("div",{children:["Generate Tile Graph is Closed.",(0,r.jsx)("a",{href:"https://rsdoctor.dev/zh/config/options/options#generatetilegraph",children:"Please check the document."})]})})})}),(0,r.jsx)(p.Z,{hidden:"tile"===ei,title:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(T.D,{text:"Bundle Analysis"}),(0,r.jsx)(x.Z,{color:"white",title:(0,r.jsxs)(c.Z,{direction:"vertical",color:"white",children:[(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"cyan",style:{margin:0},children:"initial"}),(0,r.jsx)(y.Z.Text,{children:": Indignify whether the chunk is the initial chunk."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"green",children:"concatenated"}),(0,r.jsxs)(y.Z.Text,{children:[": Indignify whether the module is the concatenated module."," "]}),(0,r.jsx)("br",{}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Concatenated Module:"}),(0,r.jsxs)(y.Z.Text,{children:["A series module is to lift or series multiple modules into a closure when packaging."," "]})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(S.ZP,{size:"small",icon:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(y.Z.Text,{children:": Open the code."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(S.ZP,{size:"small",icon:(0,r.jsx)(s.Z,{})}),(0,r.jsx)(y.Z.Text,{children:": View the module dependency, that is, module reasons in stats.json."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"purple",children:"Bundled: 15.77 KB"}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Bundled Size"}),(0,r.jsx)(y.Z.Text,{children:"The size of the code which bundled. That is, after bundle and tree-shaking."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"orange",children:"Source: 15.77 KB"}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Source Size"}),(0,r.jsx)(y.Z.Text,{children:"The size of the code which before bundle and transform."})]})})]}),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),extra:en?(0,r.jsx)(S.ZP,{onClick:()=>er(!1),children:(0,r.jsxs)(y.Z.Text,{children:["Expand ",(0,r.jsx)(l.Z,{})]})}):(0,r.jsx)(S.ZP,{onClick:()=>er(!0),children:(0,r.jsxs)(y.Z.Text,{children:["Fold",(0,r.jsx)(a.Z,{})]})}),children:(0,r.jsxs)(g.Z,{align:"middle",gutter:[z.Size.BasePadding,z.Size.BasePadding],children:[L&&L.length?(0,r.jsx)(j.Z,{children:(0,r.jsx)(u.Z,{mode:"multiple",value:O.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{$(e.map(e=>L.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{$([])},children:L.map(e=>(0,r.jsx)(u.Z.Option,{value:e.name,children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(I.Ct,{label:e.name,value:(0,A.formatSize)(e.size),tooltip:e.name})})},e.name))})}):null,(0,r.jsx)(j.Z,{children:(0,r.jsx)(D.a,{placeholder:"search asset by keyword",onChange:e=>{K(e),J(!1)}})}),(0,r.jsx)(j.Z,{span:7,children:(0,r.jsx)(Z.Z,{min:0,style:{width:"95%"},addonBefore:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,r.jsx)(x.Z,{title:eo("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>ec(Number(e)),addonAfter:ed("chunk")})}),(0,r.jsx)(j.Z,{span:7,children:(0,r.jsx)(Z.Z,{min:0,style:{width:"95%"},addonBefore:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,r.jsx)(x.Z,{title:eo("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{eu(Number(e))},addonAfter:ed("module")})}),(0,r.jsx)(j.Z,{span:24,children:eh.length?(0,r.jsxs)(g.Z,{gutter:z.Size.BasePadding,children:[(0,r.jsx)(j.Z,{span:8,children:(0,r.jsx)(p.Z,{title:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{children:eo("Output Assets List")}),(0,r.jsx)(b.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:`total assets count is ${el.length}, the filtered assets count is ${eh.length}`,children:(0,r.jsxs)(y.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[eh.length," / ",el.length]})}),(0,r.jsx)(b.Z,{type:"vertical"}),(0,r.jsx)(y.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,A.formatSize)((0,M.Z)(eh,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:en?410:800},extra:(0,r.jsx)(S.ZP,{size:"small",icon:(0,r.jsx)(l.Z,{}),onClick:()=>J(!0),children:"expand all"}),children:(0,r.jsx)(k.z,{treeData:ef,autoExpandParent:!0,defaultExpandAll:V||eh.length<=20},`tree_${W}_${V}`)})}),(0,r.jsx)(j.Z,{span:16,children:ee?(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:ee},children:e=>(0,r.jsx)(R.VT,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:en?410:800,moduleSizeLimit:G,root:t})}):(0,r.jsx)(p.Z,{bodyStyle:{height:en?450:800},children:(0,r.jsx)(m.Z,{description:(0,r.jsx)(y.Z.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,r.jsx)(m.Z,{})})]})})]})},O=(0,w.U$)({api:d.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:n}=e.project;return(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetEntryPoints,children:i=>(0,r.jsx)(L,{cwd:t,errors:n,summary:e,entryPoints:i})})})}})},53394:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});let r=(0,n(44194).createContext)({setModuleJumpList(e){},moduleJumpList:[]})},16342:function(e,t,n){"use strict";n.d(t,{BC:function(){return s},u2:function(){return i}});var r=n(78741);let i="BundleSize",s=r.Client.RsdoctorClientRoutes.BundleSize},37556:function(e,t,n){"use strict";n.d(t,{BC:function(){return a.BC},T3:function(){return d},u2:function(){return a.u2}});var r=n(31549),i=n(99892),s=n(13019),o=n(95925),l=n(62585),a=n(16342);let d=()=>(0,r.jsx)(i.Z,{children:(0,r.jsx)(s.Z,{span:24,style:{marginBottom:o.Size.BasePadding},children:(0,r.jsx)(l.V,{})})})},11682:function(e,t,n){"use strict";n.d(t,{t:function(){return h}});var r=n(31549),i=n(97770),s=n(74379),o=n(47146),l=n(78398),a=n(86938),d=n(44194),u=n(77422);n(3755);let c=[{title:"Chunk Name",dataIndex:"name",key:"name"},{title:"size | \u5927\u5C0F",dataIndex:"size",key:"size"},{title:"assets | \u8D44\u6E90",dataIndex:"assets",key:"assets"},{title:"Entry or Not | \u662F\u5426\u662F\u5165\u53E3",dataIndex:"entry",key:"entry"}],h=({chunks:e})=>{let t=(0,d.useMemo)(()=>{let t=e.map(e=>{if(e)return{key:e.id,name:(0,r.jsx)(i.Z,{children:e.name}),size:(0,r.jsx)(i.Z,{children:(0,u.formatSize)(e.parsedSize)}),entry:(0,r.jsx)(i.Z,{children:e.entry?"\u662F | Yes":"\u5426 | No"}),assets:e.assets.map(e=>(0,r.jsx)("p",{children:(0,r.jsx)(i.Z,{children:e},e)},e))}});return(0,l.Z)((0,a.Z)(t),["size"],["desc"])},[e]);return(0,r.jsx)(r.Fragment,{children:t?.length?(0,r.jsx)(s.Z,{bordered:!0,pagination:!1,dataSource:t,columns:c}):(0,r.jsx)(o.Z,{})})}},25321:function(e,t,n){"use strict";n.d(t,{z:function(){return y}});var r=n(31549),i=n(72997),s=n(98022),o=n(68673),l=n(97933),a=n(78741),d=n(95103),u=n(63272),c=n(90722),h=n(97770),f=n(44194),p=n(38958),m=n(43622),x=n(95925),g=n(53394);n(39559);let j="file-tree-com",y=e=>{let{treeData:t,needJumpto:n=!1,defaultOpened:y=!1,defaultOpenFather:S=0}=e,{required:Z,handlers:b}=(0,p.Du)({id:`${j}-tree`,data:t||[],defaultOpened:y,multipleSelect:!1,refreshAsyncNodes:!0}),v=(0,f.useCallback)(({node:e,onToggle:t})=>(S&&e.data.level<S&&e.setOpened(!0),(0,r.jsx)("div",{className:`${j}-titles-box`,children:(0,r.jsx)("div",{className:`${j}-titles`,children:(0,r.jsx)(d.Z,{direction:"vertical",children:(0,r.jsx)("div",{className:`${j}-node-title`,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsxs)("div",{onClick:t,children:[!e.options.opened&&e.data.children?.length?(0,r.jsx)(i.Z,{style:{color:"lightblue"}}):(0,r.jsx)(s.Z,{style:{color:"lightblue"}}),(0,r.jsxs)(u.Z.Text,{code:!0,children:[e.data.name,(0,r.jsx)(c.Z,{content:(0,r.jsx)(r.Fragment,{children:e.data.__RESOURCEPATH__?(0,r.jsx)(u.Z.Text,{code:!0,children:e.data.__RESOURCEPATH__},`${e.data.name}-popover-path`):(0,r.jsx)(r.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,r.jsx)(o.Z,{style:{marginLeft:4}})},`${e.data.name}popover`)]})]}),(0,r.jsxs)(d.Z,{children:[e.data.concatModules?.length?(0,r.jsx)(c.Z,{content:(0,r.jsx)(m.Nu,{api:a.SDK.ServerAPI.API.GetModulesByModuleIds,body:{moduleIds:e.data.concatModules||[]},children:e=>(0,r.jsx)("div",{children:e.map(({path:e},t)=>(0,r.jsx)("p",{children:e},`${e}-${t}`))})}),title:"Concatenated Module Name",trigger:"hover",children:(0,r.jsx)(h.Z,{className:`${j}-node-title-tag`,color:x.TAG_PALLETE.DARK_BLUE,children:"Concatenated"},`${e.data.name}-size-tag`)}):e.data.size&&"0 bytes"!==e.data.size?(0,r.jsx)(h.Z,{className:`${j}-node-title-tag`,color:x.TAG_PALLETE.COLOR_B,children:`Bundled: ${e.data.size}`},`${e.data.name}-size-tag`):(0,r.jsx)(r.Fragment,{}),n&&(0,r.jsx)(g.r.Consumer,{children:({moduleJumpList:t,setModuleJumpList:n})=>(0,r.jsx)(l.Z,{onClick:()=>{let r=[...t];r.push(+e.id),n(r)}})})]})]})})})})},e.data.name)),[]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(p.ZP,{...Z,...b,horizontalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},verticalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},draggable:!1,depthGap:14,gapMode:"padding",disableLines:!1,disableTransitions:!0,disableHorizontalLines:!1,disableVerticalLines:!1,verticalLineTopOffset:0,verticalLineOffset:5,renderNode:v})})}},98771:function(e,t,n){"use strict";n.d(t,{m2:function(){return s}}),n(78741).Client.RsdoctorClientRoutes.ModuleAnalyze;var r,i=((r=i||{}).UrlQueryForModuleAnalyze="curModuleId",r);let s="module-analyze"},14310:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(31549),i=n(99892),s=n(13019),o=n(47146),l=n(41766),a=n(86938),d=n(44194),u=n(77422),c=n(25321);n(3755);var h=(0,d.memo)(({dependencies:e,cwd:t,module:n})=>{let h=(0,d.useMemo)(()=>{let t=n.dependencies.map(t=>{let n=(0,l.Z)(e,e=>e.id===t);if(n)return{__RESOURCEPATH__:n.resolvedRequest||"",id:n.dependency,key:n.resolvedRequest,name:(0,u.getShortPath)(n.resolvedRequest)||"",level:1,kind:n.kind,concatModules:void 0}});return(0,a.Z)(t)},[n]);return(0,r.jsx)(i.Z,{justify:"start",align:"middle",children:(0,r.jsx)(s.Z,{span:24,children:h.length?(0,r.jsx)(c.z,{treeData:h,needJumpto:!0,cwd:t}):(0,r.jsx)(o.Z,{})})})})},31837:function(e,t,n){"use strict";n.d(t,{V:function(){return T}});var r,i=n(31549),s=n(30835),o=n(97933),l=n(68673),a=n(60395),d=n(34781),u=n(78741),c=n(99892),h=n(90722),f=n(51927),p=n(63272),m=n(97770),x=n(73176),g=n(13019),j=n(47146),y=n(86536),S=n(44194),Z=n(43622),b=n(23675),v=n(95925),C=n(11390),M=n(11682),P=n(25321),w=n(98771),I=n(14310),k=n(3022),D=n(39465);var E=((r=E||{})[r.Dependencies=0]="Dependencies",r[r.Chunks=1]="Chunks",r);let T=e=>{let{curModule:t,modules:n,dependencies:r,cwd:E,selectedChunk:T=""}=e,{t:z}=(0,C.QT)(),[A,N]=(0,S.useState)([]),[_,R]=(0,S.useState)(0),[B,L]=(0,S.useState)(!0),{data:O}=(0,D.J)(n,A,t),[$,G]=(0,S.useState)({});return(0,S.useEffect)(()=>{N((0,k.e)(t,n))},[t,n]),(0,S.useEffect)(()=>{let e={};A.forEach(t=>{let r=[],i=new Map;(0,k.F)(t,n,r,i),e[t.id]=r}),G(e)},[A]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z,{children:(0,i.jsx)(h.Z,{content:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsxs)(p.Z.Text,{code:!0,children:[(0,i.jsx)(s.Z,{})," Expand the node_modules's modules that was omitted... "]})," ",(0,i.jsx)(p.Z.Text,{children:`: ${z("Expand Omitted")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsx)(h.Z,{content:"*",title:"Concatenated Module Name",trigger:"hover",children:(0,i.jsx)(m.Z,{color:v.TAG_PALLETE.DARK_BLUE,children:"Concatenated"})}),(0,i.jsx)(p.Z.Text,{children:`: ${z("Concatenated Tag")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsx)(o.Z,{}),(0,i.jsx)(p.Z.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})]}),title:"Usage",children:(0,i.jsx)(x.ZP,{type:"primary",icon:(0,i.jsx)(l.Z,{}),children:"Usage"})})}),(0,i.jsxs)(c.Z,{gutter:4,style:{marginTop:v.Size.BasePadding},children:[(0,i.jsx)(g.Z,{span:B?18:12,children:(0,i.jsx)(c.Z,{className:`${w.m2}-file-tree`,justify:"center",children:(0,i.jsxs)(g.Z,{span:24,style:{padding:v.Size.BasePadding/2},children:[(0,i.jsx)(b.D,{text:"Current Module Imported Reasons Tree:"}),A?(0,i.jsx)(P.z,{cwd:E,treeData:T?O.filter(e=>$[e.id].indexOf(T)>=0):O,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:T}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})]})})}),(0,i.jsx)(g.Z,{span:B?6:12,children:(0,i.jsxs)("div",{className:`${w.m2}-file-tree`,style:{padding:v.Size.BasePadding/2},children:[B?(0,i.jsx)(h.Z,{content:"Unfold [Dependencies & Chunks] Box.",children:(0,i.jsx)(a.Z,{onClick:()=>L(!B),style:{marginRight:8}})}):(0,i.jsx)(h.Z,{content:"Fold [Dependencies & Chunks] Box.",children:(0,i.jsx)(d.Z,{onClick:()=>L(!B),style:{marginRight:8}})}),(0,i.jsx)(y.ZP.Group,{options:[{label:"Dependencies",value:0},{label:"Chunks",value:1}],onChange:e=>R(e.target.value),value:_,optionType:"button",buttonStyle:"solid",size:"middle"}),B?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[0===_&&(0,i.jsx)(g.Z,{span:24,style:{marginTop:v.Size.BasePadding/2},children:t?(0,i.jsx)(I.Z,{module:t,dependencies:r,cwd:E}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})}),1===_&&(0,i.jsx)(g.Z,{span:18,style:{marginTop:v.Size.BasePadding/2},children:t?(0,i.jsx)(Z.Nu,{api:u.SDK.ServerAPI.API.GetChunksByModuleId,body:{moduleId:t.id},children:e=>(0,i.jsx)(M.t,{chunks:e})}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})})]})]})})]})]})}},18602:function(e,t,n){"use strict";n.d(t,{H:function(){return j}});var r=n(31549),i=n(61331),s=n(78741),o=n(89246),l=n(95103),a=n(63272),d=n(99892),u=n(13019),c=n(8105),h=n(44194),f=n(43622),p=n(77422),m=n(61550),x=n(53394),g=n(31837);n(3755);let j=({modules:e,cwd:t,moduleId:n})=>{let[j,y]=(0,h.useState)("");return(0,r.jsx)(f.Nu,{api:s.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+n},children:({module:n,dependencies:h})=>(0,r.jsx)(f.Nu,{api:s.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:s=>(0,r.jsx)(x.r.Consumer,{children:({moduleJumpList:f,setModuleJumpList:x})=>(0,r.jsxs)(o.Z,{title:(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(i.Z,{onClick:()=>{x([...f.slice(0,-1)])}}),(0,r.jsx)(a.Z.Title,{code:!0,level:5,style:{marginBottom:"revert"},children:`Current Module: ${(0,p.getShortPath)(n.path)}`})]}),style:{height:"100%"},children:[(0,r.jsx)(d.Z,{justify:"start",style:{marginBottom:20},children:(0,r.jsx)(u.Z,{children:(0,r.jsx)(c.Z,{allowClear:!0,placeholder:"Select Chunk To Filter Modules Links",showSearch:!0,style:{width:300},options:(0,m.Z)(s).map(e=>({label:e.name,value:e.id})),onChange:e=>y(e)})})}),(0,r.jsx)(d.Z,{justify:"start",align:"middle",children:(0,r.jsx)(u.Z,{span:24,children:(0,r.jsx)(g.V,{curModule:n,modules:e,dependencies:h,cwd:t,selectedChunk:j})})})]})})})})}},39465:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(86938),i=n(44194),s=n(77422),o=n(3022);function l(e,t,n){return(0,i.useMemo)(()=>t&&t?.length?{data:(0,r.Z)(t?.map((t,r)=>({key:`0-${r}`,name:s.getShortPath(t.path),__RESOURCEPATH__:t.path,id:t.id,level:1,chunks:t.chunks,size:s.formatSize(t.size.parsedSize),kind:t.kind,concatModules:t.concatenationModules,fatherPath:s.getShortPath(n.path),dependencies:t.dependencies,getChildren:()=>(function e(t,n,r){let i=(0,o.e)(t,n);return i?.map((i,o)=>({key:`0-${o}`,name:s.getShortPath(i.path),__RESOURCEPATH__:i.path,id:i.id,level:1,size:s.formatSize(i.size.parsedSize),kind:i.kind,chunks:i.chunks,concatModules:i.concatenationModules,fatherPath:s.getShortPath(r.path),dependencies:i.dependencies,getChildren:()=>e(i,n,t),children:i.imported}))})(t,e,n),children:t.imported})))}:{filterData:[],data:[]},[t,n])}},3022:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return s}});var r=n(41766),i=n(86938);let s=(e,t)=>{if(e?.imported?.length){let n=e.imported.map(e=>(0,r.Z)(t,t=>t.id===Number(e)));return(0,i.Z)(n)}return[]},o=(e,t,n,r)=>{if(r.has(e.id)){if(r.get(e.id))return}else r.set(e.id,!0);let i=s(e,t);if(!!i.length)i.forEach(e=>{e?.chunks?.forEach(e=>{0>n.indexOf(e)&&n.push(e)}),o(e,t,n,r)})}},15837:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="ModuleResolve",s=r.Client.RsdoctorClientRoutes.ModuleResolve},90025:function(e,t,n){"use strict";n.d(t,{BC:function(){return l.B},T3:function(){return a},u2:function(){return l.u}});var r=n(31549),i=n(89246),s=n(90647),o=n(51264),l=n(15837);let a=()=>(0,r.jsx)("div",{children:(0,r.jsx)(i.Z,{title:"Webpack Resolver Analysis",extra:(0,r.jsx)(o.S,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,r.jsx)(s.gY,{})})})},38613:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Overall",s=r.Client.RsdoctorClientRoutes.Overall},11970:function(e,t,n){"use strict";n.d(t,{BC:function(){return d.B},T3:function(){return u}});var r=n(31549),i=n(78741),s=n(14496),o=n(43622),l=n(23312),a=n(45838),d=n(38613);let u=(0,o.U$)({api:i.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{summary:t,configs:n,root:i,envinfo:o,errors:d}=e;return(0,r.jsxs)("div",{children:[(0,r.jsxs)(a.u,{children:[(0,r.jsx)(l.lj,{configs:n,cwd:i,envinfo:o,alerts:d}),(0,r.jsx)(l.vD,{errors:d,cwd:i}),(0,r.jsx)(l.F8,{summary:t})]}),(0,r.jsx)(s.$X,{}),(0,r.jsx)(s.CG,{})]})}})},45838:function(e,t,n){"use strict";n.d(t,{u:function(){return d}});var r=n(31549),i=n(37963),s=n(99892),o=n(13019),l=n(44194),a=n(95925);let d=({children:e})=>{let{sm:t,xxl:n}=i.ZP.useBreakpoint(),d=(0,l.useMemo)(()=>n?[2*a.Size.BasePadding,a.Size.BasePadding]:[a.Size.BasePadding,a.Size.BasePadding],[t,n]);return(0,r.jsx)(s.Z,{gutter:d,wrap:!0,style:{marginBottom:a.Size.BasePadding},children:e.map((e,t)=>(0,r.jsx)(o.Z,{xs:24,sm:24,md:12,lg:8,children:e},t))})}},68394:function(e,t,n){"use strict";n.d(t,{d:function(){return O}});var r=n(31549),i=n(44194),s=n(95103),o=n(63272),l=n(44242),a=n(99892),d=n(13019),u=n(8105),c=n(73176),h=n(74379),f=n(10855),p=n(97770),m=n(51445),x=n(61550),g=n(15890),j=n(20942),y=n(49647),S=n(68673),Z=n(14122),b=n(19547),v=n(93768),C=n(23193),M=n(41130),P=n(75841),w=n(78741),I=n(77422),k=n(95925),D=n(30524),E=n(33448),T=n(36749),z=n(55872),A=n(84290),N=n(94771),_=n(46641);let R={JS:[w.Constants.JSExtension],CSS:[w.Constants.CSSExtension],HTML:[w.Constants.HtmlExtension],Imgs:w.Constants.ImgExtensions,Fonts:w.Constants.FontExtensions,Media:w.Constants.MediaExtensions,Others:[]},B=(0,m.Z)((0,x.Z)(R)),L=({data:e})=>{let t=(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:e.alias}),(0,r.jsx)(l.Z,{title:(0,r.jsxs)(s.Z,{style:{color:"inherit"},direction:"vertical",children:[e.current?(0,r.jsxs)(o.Z.Text,{style:{color:"inherit"},children:["Current realpath: ",e.current.path]}):null,e.baseline?(0,r.jsxs)(o.Z.Text,{style:{color:"inherit"},children:["Baseline realpath: ",e.baseline.path]}):null]}),children:(0,r.jsx)(S.Z,{})})]});return e.baseline&&!e.current?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(Z.Z,{style:{color:k.Color.Red}}),t]}):!e.baseline&&e.current?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(b.Z,{style:{color:k.Color.Green}}),t]}):e.baseline&&e.current?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(v.Z,{style:{color:k.Color.Yellow}}),t]}):t},O=({baseline:e,current:t,outputFilename:n})=>{let[Z,b]=(0,i.useState)(),[v,O]=(0,i.useState)([]),[$,G]=(0,i.useState)([]),[F,W]=(0,i.useState)(A.E.Size),[K,U]=(0,i.useState)(null),[H,V]=(0,i.useState)(null),{assets:J}=e.chunkGraph,{assets:Y}=t.chunkGraph,q=(0,i.useMemo)(()=>{let e={};return K&&H?(e.choose={alias:`${K}
80
- ${H}`,current:Y.find(e=>e.path===H),baseline:J.find(e=>e.path===K)},(0,x.Z)(e)):(J.forEach(t=>{let r=_.kJ.ZP(t.path,n);e[r]?console.warn("[Baseline Asset Exists]: ",t,e):e[r]={alias:r,baseline:t}}),Y.forEach(t=>{let r=_.kJ.ZP(t.path,n);!e[r]&&(e[r]={alias:r}),e[r].current=t}),(0,x.Z)(e))},[J,Y,K,H]),X=(0,i.useMemo)(()=>{let r=q.slice();if(Z&&(r=r.filter(e=>e.alias.indexOf(Z)>-1)),v.length){let e=(0,m.Z)(v.map(e=>R[e])),t=v.indexOf("Others")>-1;r=r.filter(n=>{let r=n.baseline||n.current;return!!_.kJ.Zl(r,e)||!!t&&!_.kJ.Zl(r,B)})}if($.length&&(r=r.filter(e=>{if(e.baseline&&!e.current)return(0,g.Z)($,A.$.Deleted);if(!e.baseline&&e.current)return(0,g.Z)($,A.$.New);if(e.baseline&&e.current)return e.baseline.size===e.current.size?(0,g.Z)($,A.$.NotChanged):(0,g.Z)($,A.$.Changed);return!1})),F){if(F===A.E.Name)r.sort((e,t)=>e.alias.localeCompare(t.alias));else{let{prev:i,others:s}=r.reduce((e,t)=>(t.current?t.baseline?e.prev.unshift(t):e.prev.push(t):e.others.push(t),e),{prev:[],others:[]});r=[...i.sort((r,i)=>{if(i.current&&r.current){if(F===A.E.Delta){let{percent:s}=_.kJ.bM(e.chunkGraph,t.chunkGraph,e=>_.kJ.ZP(e.path,n)===r.alias),{percent:o}=_.kJ.bM(e.chunkGraph,t.chunkGraph,e=>_.kJ.ZP(e.path,n)===i.alias);return o-s}return i.current.size-r.current.size}return -1}),...s]}}return r},[q,Z,v,$,F]),Q=(0,i.useMemo)(()=>(0,j.Z)(X,e=>e.current?e.current.size:0)||0,[X]),ee=(0,i.useMemo)(()=>(0,j.Z)(X,e=>e.baseline?e.baseline.size:0)||0,[X]);return(0,r.jsxs)(a.Z,{gutter:[k.Size.BasePadding,k.Size.BasePadding],children:[(0,r.jsxs)(d.Z,{span:24,children:[(0,r.jsxs)(s.Z,{wrap:!0,children:[(0,r.jsx)(E.a,{icon:(0,r.jsx)(C.Z,{}),label:"",labelStyle:{width:45},placeholder:"Search by file name",onChange:e=>{b(e)}}),(0,r.jsx)(u.Z,{mode:"multiple",placeholder:"Filter by file type",style:{width:250},options:(0,y.Z)(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{O(e)}}),(0,r.jsx)(u.Z,{mode:"multiple",placeholder:"Filter by file changed type",style:{width:200},options:(0,x.Z)(A.$).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{G(e)}}),(0,r.jsx)(u.Z,{suffixIcon:(0,r.jsx)(M.Z,{}),options:(0,x.Z)(A.E).map(e=>({label:e,value:e})),value:F,onChange:e=>{W(e)}})]}),(0,r.jsxs)(a.Z,{style:{marginTop:10},gutter:[6,6],children:[(0,r.jsx)(d.Z,{children:(0,r.jsx)(c.ZP,{children:"Select Baseline Asset and Current Asset to Diff "})}),(0,r.jsx)(d.Z,{children:(0,r.jsx)(u.Z,{allowClear:!0,placeholder:"select baseline assets",showSearch:!0,style:{width:300},options:(0,x.Z)(e.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>U(e)})}),(0,r.jsx)(d.Z,{children:(0,r.jsx)(u.Z,{allowClear:!0,placeholder:"select current assets",showSearch:!0,style:{width:300},options:(0,x.Z)(t.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>V(e)})})]})]}),(0,r.jsx)(d.Z,{span:24,children:(0,r.jsx)(h.Z,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:X,rowKey:e=>e.alias,expandable:{expandedRowRender:n=>(0,r.jsx)("div",{style:{margin:k.Size.BasePadding/3},children:(0,r.jsx)(T.Cn,{data:n,baseline:e,current:t})}),columnTitle:(0,r.jsx)(l.Z,{title:"Click to expand row to see the modules which the chunk contains",placement:"left",children:(0,r.jsx)(P.Z,{style:{cursor:"pointer"}})})},columns:[{title:(0,r.jsxs)(l.Z,{title:(0,r.jsxs)(s.Z,{direction:"vertical",children:[(0,r.jsxs)(o.Z.Text,{style:{color:"inherit"},children:["filtered assets is ",X.length]}),(0,r.jsxs)(o.Z.Text,{style:{color:"inherit"},children:["total assets is ",q.length]})]}),children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:"Assets"}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsxs)(o.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[X.length,"/",q.length]}),(0,r.jsx)(S.Z,{})]}),render:(e,t)=>(0,r.jsx)(L,{data:t})},{title:()=>{let e=(0,I.formatSize)(Q),t=_.kJ.OC(ee,Q);return(0,r.jsxs)(l.Z,{title:`Current size is ${e}, Delta is ${(0,I.formatPercent)(t.percent)}`,children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:"Current"}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsxs)(o.Z.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:[(0,r.jsx)(o.Z.Text,{style:{fontSize:"inherit",marginRight:8},children:e}),(0,r.jsx)(D.RA,{fontSize:"inherit",baseline:ee,current:Q}),(0,N.W)(ee,Q,ee>Q?w.Client.RsdoctorClientDiffState.Down:w.Client.RsdoctorClientDiffState.Up,{fontSize:10,fontWeight:400,marginLeft:4})]}),(0,r.jsx)(S.Z,{})]})},render:(i,l)=>{if(l.current){let{percent:i,state:a}=_.kJ.bM(e.chunkGraph,t.chunkGraph,e=>_.kJ.ZP(e.path,n)===l.alias),d=_.kJ.AL(l.current,t.chunkGraph.chunks);return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{children:(0,I.formatSize)(l.current.size)}),(0,r.jsx)(D.gG,{percent:i,state:a}),d?(0,r.jsx)(p.Z,{color:k.Color.Blue,children:"initial"}):null]})}return"-"}},{title:()=>{let e=(0,I.formatSize)(ee);return(0,r.jsxs)(l.Z,{title:`Baseline size is ${e}`,children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:"Baseline"}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsx)(o.Z.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:e}),(0,r.jsx)(S.Z,{})]})},render:(t,n)=>{if(n.baseline){let t=_.kJ.AL(n.baseline,e.chunkGraph.chunks);return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{children:(0,I.formatSize)(n.baseline.size)}),t?(0,r.jsx)(p.Z,{color:k.Color.Blue,children:"initial"}):null]})}return"-"}},{title:"Actions",key:"actions",render:(e,t)=>(0,r.jsx)(z.H,{file:t.alias,data:[{baseline:t.baseline?.content,current:t.current?.content,group:"assets"}]})}]})})]})}},61842:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(31549),i=n(99892),s=n(13019),o=n(95103),l=n(63272),a=n(78741),d=n(95925),u=n(30524),c=n(77422),h=n(57448),f=n(2740),p=n(46641);let m=({baseline:e,current:t,assetsDiffResult:n})=>{let m=(0,c.useUniqModules)(e.moduleGraph.modules),x=(0,c.useUniqModules)(t.moduleGraph.modules),g=(0,c.useDuplicatePackagesByErrors)(e.errors),j=(0,c.useDuplicatePackagesByErrors)(t.errors),y=(0,c.useModuleGraph)(e.moduleGraph),S=(0,c.useModuleGraph)(t.moduleGraph),Z=e.root,b=t.root,v=(0,f.G1)({baseline:e.packageGraph,current:t.packageGraph}),C=[{title:["Bundle Size"],value:[n.all.total]},{title:["Total JS","Initial JS"],value:[n.js.total,n.js.initial]},{title:["Total CSS","Initial CSS"],value:[n.css.total,n.css.initial]},{title:["Images","Fonts","Media"],value:[n.imgs.total,n.fonts.total,n.media.total]},{title:["HTML"],value:[n.html.total]},{title:["Others"],value:[n.others.total]}];return(0,r.jsxs)(i.Z,{gutter:[d.Size.BasePadding,d.Size.BasePadding],wrap:!0,style:{marginBottom:d.Size.BasePadding},children:[C.map(e=>(0,r.jsx)(s.Z,{style:{minWidth:335},children:(0,r.jsx)(u.EX,{titles:e.title,datas:e.value,showPercentInTitle:!0})},e.title.join(","))),(0,r.jsx)(s.Z,{style:{minWidth:335},children:(0,r.jsx)(u.EX,{titles:["Duplicate Packages"],datas:[{size:{baseline:g.length,current:j.length},count:{baseline:g.length,current:j.length},percent:0,state:a.Client.RsdoctorClientDiffState.Equal}],formatter:(n,i)=>(0,r.jsx)(h.Pq,{duplicatePackages:"baseline"===i?g:j,moduleGraph:"baseline"===i?y:S,cwd:"baseline"===i?Z:b,buttonProps:{size:"small"},moduleCodeMap:"baseline"===i?e.moduleCodeMap:t.moduleCodeMap})})}),(0,r.jsx)(s.Z,{style:{minWidth:335},children:(0,r.jsx)(u.EX,{titles:["Modules"],datas:[{size:{baseline:m.length,current:x.length},count:{baseline:m.length,current:x.length},percent:0,state:a.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>{if("baseline"===t)return e;let n=p.kJ.OC(m.length,x.length);return(0,r.jsxs)(o.Z,{style:{fontSize:"inherit"},children:[(0,r.jsx)(l.Z.Text,{style:{fontSize:"inherit"},children:e}),(0,r.jsx)(u.gG,{...n})]})}})}),(0,r.jsx)(s.Z,{style:{minWidth:335},children:(0,r.jsx)(u.EX,{titles:[(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z.Text,{style:{color:"inherit"},children:"Packages"}),(0,r.jsx)(f.J$,{dataSource:v})]},"0")],datas:[{size:{baseline:v.filter(e=>e.baseline).length,current:v.filter(e=>e.current).length},count:{baseline:v.filter(e=>e.baseline).length,current:v.filter(e=>e.current).length},percent:0,state:a.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>"baseline"===t?e:(0,r.jsx)(o.Z,{children:e})})})]})}},55872:function(e,t,n){"use strict";n.d(t,{H:function(){return p}});var r=n(31549),i=n(44194),s=n(99892),o=n(13019),l=n(35554),a=n(63272),d=n(86058),u=n(46591),c=n(95925),h=n(57448);let f=({file:e,data:t})=>{let[n,d]=(0,i.useState)(t[0].group),h=t.find(e=>e.group===n);return(0,r.jsxs)(s.Z,{wrap:!0,gutter:[c.Size.BasePadding,c.Size.BasePadding],style:{height:"100%"},children:[t.length>1?(0,r.jsx)(o.Z,{span:24,children:(0,r.jsx)(l.Z,{style:{marginTop:c.Size.BasePadding},value:n,options:t.map(e=>e.group),onChange:e=>d(e)})}):null,h?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(o.Z,{span:12,children:(0,r.jsx)(a.Z.Text,{strong:!0,children:h.baselineTitle||"Baseline"})}),(0,r.jsx)(o.Z,{span:12,children:(0,r.jsx)(a.Z.Text,{strong:!0,children:h.currentTitle||"Current"})}),(0,r.jsx)(o.Z,{span:24,children:(0,r.jsx)(u.ZX,{filepath:e,before:h.baseline||"",after:h.current||"",editorProps:{height:Math.floor(window.innerHeight/1.25)}})})]},n):null]})},p=({text:e="View Changes",...t})=>(0,r.jsx)(h.XU,{text:e,buttonProps:{size:"small",icon:(0,r.jsx)(d.Z,{})},drawerProps:{destroyOnClose:!0,title:`Content diff for "${t.file}"`},children:(0,r.jsx)(f,{...t})})},84290:function(e,t,n){"use strict";n.d(t,{$:function(){return s},E:function(){return o}});var r,i,s=((r=s||{}).New="New",r.Changed="Changed",r.Deleted="Deleted",r.NotChanged="Not Changed",r);var o=((i=o||{}).Name="Sorted by Name",i.Size="Sorted by Size",i.Delta="Sorted by Delta",i)},47201:function(e,t,n){"use strict";n.d(t,{X:function(){return M}});var r=n(31549),i=n(62098),s=n(44242),o=n(95103),l=n(89246),a=n(63272),d=n(10855),u=n(73176),c=n(4817),h=n(76721),f=n(44194),p=n(68673),m=n(68875),x=n(78741),g=n(95925),j=n(61842),y=n(50994),S=n(68394),Z=n(66954),b=n(2740),v=n(2804),C=n(46641);let M=({manifests:e})=>((0,f.useEffect)(()=>{console.log("BundleDiff Manifests: ",e)},[e]),(0,r.jsx)(v.T,{api:x.SDK.ServerAPI.API.GetBundleDiffSummary,manifests:e,children:(e,t)=>{let n=e.chunkGraph===t.chunkGraph,f=e.chunkGraph,x=n?f:t.chunkGraph,v=C.kJ.vH(f,x);return(0,r.jsxs)("div",{children:[(0,r.jsxs)(i.Z.Group,{children:[(0,r.jsx)(s.Z,{placement:"leftBottom",title:(0,r.jsx)(o.Z,{direction:"vertical",children:[{title:"Baseline",data:e},{title:"Current",data:t}].map(({title:e,data:t})=>(0,r.jsx)(l.Z,{size:"small",children:(0,r.jsxs)(o.Z,{direction:"vertical",children:[(0,r.jsx)(a.Z.Text,{strong:!0,children:e}),(0,r.jsxs)(o.Z,{style:{fontSize:10},children:[(0,r.jsx)(a.Z.Text,{style:{fontSize:"inherit",width:30,display:"inline-block"},children:"Hash"}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(a.Z.Text,{type:"secondary",style:{fontSize:"inherit"},children:t.hash||"-"})]}),t.cloudManifestUrl?(0,r.jsx)(u.ZP,{type:"link",size:"small",style:{padding:0,fontSize:10},onClick:()=>window.open(t.cloudManifestUrl),children:"Open File"}):null]})},e))}),children:(0,r.jsx)(i.Z,{icon:(0,r.jsx)(p.Z,{})})}),(0,r.jsx)(c.Z,{title:(0,r.jsxs)(a.Z.Text,{children:["Are you sure to",(0,r.jsx)(a.Z.Text,{strong:!0,children:" re-upload "}),"json files for bundle diff?"]}),onConfirm:()=>{},okText:"Yes",cancelText:"Cancel",placement:"topLeft",trigger:"hover",children:(0,r.jsx)(i.Z,{icon:(0,r.jsx)(m.Z,{})})}),(0,r.jsx)(i.Z.BackTop,{})]}),(0,r.jsx)(j.h,{baseline:e,current:t,onlyBaseline:n,assetsDiffResult:v}),(0,r.jsx)(h.Z,{defaultActiveKey:"Overview",tabBarStyle:{marginBottom:g.Size.BasePadding/3},items:[{label:"Overview",key:"Overview",children:(0,r.jsx)(y.g,{assetsDiffResult:v})},{label:"Assets",key:"Assets",children:(0,r.jsx)(S.d,{outputFilename:e.outputFilename,baseline:e,current:t})},{label:"Modules",key:"Modules",children:(0,r.jsx)(Z.jv,{baseline:e,current:t,onlyBaseline:n,assetsDiffResult:v})},{label:"Packages",key:"Packages",children:(0,r.jsx)(b.bs,{baseline:e.packageGraph,current:t.packageGraph})}].map(e=>({...e,label:(0,r.jsx)(a.Z.Text,{strong:!0,children:e.label})}))})]})}}))},66954:function(e,t,n){"use strict";n.d(t,{J9:function(){return I},TN:function(){return w},jv:function(){return k}});var r=n(31549),i=n(44194),s=n(44242),o=n(97770),l=n(99892),a=n(13019),d=n(95103),u=n(8105),c=n(74379),h=n(63272),f=n(10855),p=n(61550),m=n(15890),x=n(23813),g=n(23193),j=n(68673),y=n(77422),S=n(95925),Z=n(33448),b=n(55872),v=n(84290),C=n(94386),M=n(36749),P=n(46641);function w(e){if(e.baseline&&!e.current)return v.$.Deleted;if(!e.baseline&&e.current)return v.$.New;if(e.baseline&&e.current)return e.baseline.size.sourceSize===e.current.size.sourceSize&&e.baseline.size.parsedSize===e.current.size.parsedSize?v.$.NotChanged:v.$.Changed;throw Error("Update Type not match")}let I=({type:e})=>e===v.$.NotChanged?(0,r.jsx)(s.Z,{title:"It hasn't changed between Baseline and Current",children:(0,r.jsx)(o.Z,{color:"success",children:"Not Changed"})}):e===v.$.Changed?(0,r.jsx)(s.Z,{title:"It has been changed between Baseline and Current",children:(0,r.jsx)(o.Z,{color:"warning",children:"Changed"})}):e===v.$.New?(0,r.jsx)(s.Z,{title:"It is created in Current",children:(0,r.jsx)(o.Z,{color:"error",children:"New"})}):e===v.$.Deleted?(0,r.jsx)(s.Z,{title:"It has been deleted in Current",children:(0,r.jsx)(o.Z,{color:"error",children:"Deleted"})}):null,k=({baseline:e,current:t})=>{let n=(0,i.useMemo)(()=>(0,y.useUniqModules)(e.moduleGraph.modules),[e]),k=(0,i.useMemo)(()=>(0,y.useUniqModules)(t.moduleGraph.modules),[t]),D=e.chunkGraph.chunks,E=t.chunkGraph.chunks,T=e.root,z=t.root,[A,N]=(0,i.useState)(),[_,R]=(0,i.useState)([]),B=(0,i.useMemo)(()=>{let e={};return n.forEach(t=>{let n=t.webpackId?.replace(M._z,"")||t.path?.replace(M._z,"");e[n]?console.warn("[Baseline Module Exists]: ",t,e):e[n]={path:n,baseline:t}}),k.forEach(t=>{let n=t.webpackId?.replace(M._z,"")||t.path?.replace(M._z,"");!e[n]&&(e[n]={path:n}),e[n].current=t}),(0,p.Z)(e)},[n,k]),L=(0,i.useMemo)(()=>{let e=B.slice();return A&&(e=e.filter(e=>e.path.indexOf(A)>-1)),_.length&&(e=e.filter(e=>(0,m.Z)(_,w(e)))),e},[B,A,_]),{bFilteredModulesLength:O,cFilteredModulesLength:$}=(0,i.useMemo)(()=>({bFilteredModulesLength:L.filter(e=>e.baseline).length,cFilteredModulesLength:L.filter(e=>e.current).length}),[L]);return(0,r.jsxs)(l.Z,{gutter:[S.Size.BasePadding,S.Size.BasePadding],children:[(0,r.jsx)(a.Z,{span:24,children:(0,r.jsxs)(d.Z,{wrap:!0,children:[(0,r.jsx)(Z.a,{icon:(0,r.jsx)(g.Z,{}),label:"",labelStyle:{width:45},placeholder:"Search by name",onChange:e=>{N(e)}}),(0,r.jsx)(u.Z,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:(0,p.Z)(v.$).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{R(e)}})]})}),(0,r.jsx)(a.Z,{span:24,children:(0,r.jsx)(c.Z,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},scroll:{x:1700},dataSource:L,rowKey:e=>e.path,columns:[{fixed:"left",title:(0,r.jsxs)(s.Z,{title:(0,r.jsxs)(d.Z,{direction:"vertical",children:[(0,r.jsxs)(h.Z.Text,{style:{color:"inherit"},children:["filtered modules is ",L.length," (Current & Baseline)"]}),(0,r.jsxs)(h.Z.Text,{style:{color:"inherit"},children:["total modules is ",B.length," (Current & Baseline)"]})]}),children:[(0,r.jsx)(h.Z.Text,{strong:!0,children:"Modules"}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsxs)(h.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[L.length,"/",B.length]}),(0,r.jsx)(j.Z,{})]}),render:(e,t)=>{let{alias:n,inNodeModules:i}=(0,y.beautifyModulePath)(t.path,t.baseline?T:z);return(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(s.Z,{title:t.path,children:(0,r.jsx)(h.Z.Text,{copyable:{text:t.path},children:n})}),(0,r.jsx)(I,{type:w(t)}),i?(0,r.jsx)(o.Z,{color:"warning",children:"node_modules"}):null]})}},(0,M.tT)("current",O,$),(0,M.tT)("baseline",O,$),{title:"in Assets",render:(e,t)=>{let n=[],i=[];return(t.current&&P.kJ.o_(t.current,E).forEach(e=>e.assets.forEach(e=>i.push(e))),t.baseline&&P.kJ.o_(t.baseline,D).forEach(e=>e.assets.forEach(e=>n.push(e))),n.length||i.length)?(0,r.jsxs)(d.Z,{direction:"vertical",children:[(0,x.Z)(i).filter(Boolean).map(e=>(0,r.jsx)(C.Ct,{label:"Current",value:e},`c_${e}`)),(0,x.Z)(n).filter(Boolean).map(e=>(0,r.jsx)(C.Ct,{label:"Baseline",value:e},`b_${e}`))]}):null}},{title:"Actions",width:200,render:(n,i)=>{let s=w(i)===v.$.Changed;return(0,r.jsxs)(d.Z,{direction:"vertical",style:{maxWidth:170},children:[s?(0,r.jsx)(b.H,{text:"View Changes",file:i.path,data:[{baseline:e.moduleCodeMap[i.baseline?.id]?.source,current:t.moduleCodeMap[i.current?.id]?.source,group:"Source"},{baseline:e.moduleCodeMap[i.baseline?.id]?.transformed,current:t.moduleCodeMap[i.current?.id]?.transformed,group:"Transformed Source"},{baseline:e.moduleCodeMap[i.baseline?.id]?.parsedSource,current:t.moduleCodeMap[i.current?.id]?.parsedSource,group:"Parsed Source"}]}):null,(0,r.jsx)(b.H,{text:"Current Result Viewer",file:i.path,data:[{baseline:t.moduleCodeMap[i.current?.id]?.source,current:t.moduleCodeMap[i.current?.id]?.transformed,baselineTitle:"Current Source",currentTitle:"Current Transformed Source",group:"Transformed Source"},{baseline:t.moduleCodeMap[i.current?.id]?.source,current:t.moduleCodeMap[i.current?.id]?.parsedSource,baselineTitle:"Current Source",currentTitle:"Current Parsed Source",group:"Parsed Source"}]})]})}}]})})]})}},50994:function(e,t,n){"use strict";n.d(t,{g:function(){return f}});var r=n(31549),i=n(44194),s=n(74379),o=n(63272),l=n(95103),a=n(97770),d=n(77422),u=n(30524),c=n(95925),h=n(94771);let f=({assetsDiffResult:e})=>{let t=[{type:"JS",data:e.js},{type:"CSS",data:e.css},{type:"Imgs",data:e.imgs},{type:"Fonts",data:e.fonts},{type:"Media",data:e.media},{type:"HTML",data:e.html},{type:"Others",data:e.others}];return(0,r.jsx)(s.Z,{bordered:!0,pagination:!1,dataSource:t,rowKey:e=>e.type,style:{marginTop:c.Size.BasePadding-c.Size.BasePadding/4},columns:[{title:"File Type",dataIndex:"type",key:"type",render:e=>(0,r.jsx)(o.Z.Text,{strong:!0,children:e})},{title:"Size",dataIndex:"data",key:"size",children:[{title:"Current",dataIndex:"data",key:"csize",render:e=>{let t=(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:(0,d.formatSize)(e.total.size.current)}),(0,r.jsx)(u.gG,{percent:e.total.percent,state:e.total.state}),(0,h.W)(e.total.size.baseline,e.total.size.current,e.total.state)]});return e.initial?(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Total"}),t]}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Initial"}),(0,r.jsx)(o.Z.Text,{strong:!0,children:(0,d.formatSize)(e.initial.size.current)}),(0,r.jsx)(u.gG,{percent:e.initial.percent,state:e.initial.state}),(0,h.W)(e.initial.size.baseline,e.initial.size.current,e.initial.state)]})]}):(0,r.jsx)(l.Z,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bsize",render:e=>{let t=(0,r.jsx)(o.Z.Text,{children:(0,d.formatSize)(e.total.size.baseline)});return e.initial?(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Total"}),t]}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Initial"}),(0,r.jsx)(o.Z.Text,{children:(0,d.formatSize)(e.initial.size.baseline)})]})]}):t}}]},{title:"Count",dataIndex:"data",key:"count",children:[{title:"Current",dataIndex:"data",key:"ccount",render:e=>{let t=(0,r.jsx)(o.Z.Text,{strong:!0,children:e.total.count.current});return e.initial?(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Total"}),t]}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Initial"}),(0,r.jsx)(o.Z.Text,{strong:!0,children:e.initial.count.current})]})]}):(0,r.jsx)(l.Z,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bcount",render:e=>{let t=(0,r.jsx)(o.Z.Text,{children:e.total.count.baseline});return e.initial?(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Total"}),t]}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Initial"}),(0,r.jsx)(o.Z.Text,{children:e.initial.count.baseline})]})]}):(0,r.jsx)(l.Z,{children:t})}}]}]})}},2740:function(e,t,n){"use strict";n.d(t,{G1:function(){return P},J$:function(){return M},bs:function(){return w}});var r=n(31549),i=n(44194),s=n(95103),o=n(47146),l=n(99892),a=n(13019),d=n(8105),u=n(63272),c=n(74379),h=n(10855),f=n(44242),p=n(61550),m=n(23813),x=n(20942),g=n(77422),j=n(95925),y=n(66954),S=n(84290),Z=n(94386),b=n(30524);let v=e=>{if(e.baseline&&e.current){let t=e.baseline.map(e=>e.version).sort().join();return t===e.current.map(e=>e.version).sort().join()?S.$.NotChanged:S.$.Changed}return e.baseline||e.current?e.baseline&&!e.current?S.$.Deleted:S.$.New:S.$.NotChanged},C=e=>v(e)!==S.$.NotChanged,M=({dataSource:e})=>{let{newCount:t,deleteCount:n,changedCount:o}=(0,i.useMemo)(()=>({newCount:e.filter(e=>e.updateType===S.$.New).length,deleteCount:e.filter(e=>e.updateType===S.$.Deleted).length,changedCount:e.filter(e=>e.updateType===S.$.Changed).length}),[e]);return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(Z.Ct,{label:"New",value:t,type:t>0?"error":"default",tooltip:`Current has ${t} packages which not found in Baseline`}),(0,r.jsx)(Z.Ct,{label:"Deleted",value:n,type:n>0?"error":"default",tooltip:`Current delete ${n} packages than Baseline`}),(0,r.jsx)(Z.Ct,{label:"Changed",value:o,type:o>0?"error":"default",tooltip:`Current has ${o} changed packages than Baseline`})]})},P=({baseline:e,current:t})=>{let{packages:n=[]}=e||{},{packages:r=[]}=t||{},i={},s=(e,t)=>{!i[e.name]&&(i[e.name]={name:e.name,updateType:S.$.NotChanged}),!i[e.name][t]&&(i[e.name][t]=[]),i[e.name][t].push(e)};n.forEach(e=>s(e,"baseline")),r.forEach(e=>s(e,"current"));let o=[],l=[];return(0,p.Z)(i).forEach(e=>{C(e)?o.push(e):l.push(e)}),o.concat(l).map(e=>({...e,updateType:v(e)}))},w=({baseline:e,current:t})=>{let{packages:n=[]}=e||{},{packages:w=[]}=t||{};if(!n.length&&!w.length)return(0,r.jsx)(o.Z,{});let I=(0,i.useMemo)(()=>(0,m.Z)(n.concat(w).map(e=>e.name)),[n,w]),[k,D]=(0,i.useState)([]),[E,T]=(0,i.useState)([]),z=(0,i.useMemo)(()=>P({baseline:e,current:t}),[e,t]),A=(0,i.useMemo)(()=>z.filter(e=>E.length?E.indexOf(e.updateType)>-1:!k.length||k.indexOf(e.name)>-1),[z,k,E]);return(0,r.jsxs)(l.Z,{gutter:[j.Size.BasePadding,j.Size.BasePadding],children:[(0,r.jsx)(a.Z,{span:24,style:{marginTop:16},children:(0,r.jsxs)(s.Z,{wrap:!0,children:[(0,r.jsx)(d.Z,{mode:"multiple",placeholder:"Filter by package names",style:{width:400},options:I.map(e=>{let t=z.find(t=>t.name===e);return t&&C(t)?{label:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{children:e}),(0,r.jsx)(y.J9,{type:v(t)})]}),value:e}:{label:e,value:e}}),allowClear:!0,onChange:e=>{D(e)}}),(0,r.jsx)(d.Z,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:(0,p.Z)(S.$).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{T(e)}})]})}),(0,r.jsx)(a.Z,{span:24,children:(0,r.jsx)(c.Z,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:A,rowKey:e=>e.name,columns:[{title:()=>(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{children:"Package Name"}),(0,r.jsx)(h.Z,{type:"vertical"}),(0,r.jsx)(f.Z,{title:`Filtered Package Count is ${A.length}, Total Package Count is ${z.length}`,children:(0,r.jsxs)(u.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:[A.length," / ",z.length]})})]}),render:(e,t)=>t.updateType!==S.$.NotChanged?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{children:t.name}),(0,r.jsx)(y.J9,{type:t.updateType})]}):t.name},{title:()=>(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{children:"Current"}),(0,r.jsx)(h.Z,{type:"vertical"}),(0,r.jsx)(M,{dataSource:z})]}),children:[{title:"Version",render:(e,t)=>t.current?(0,r.jsx)(s.Z,{direction:"vertical",children:t.current.map(e=>(0,r.jsx)(Z.Ct,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===S.$.Deleted?"error":t.updateType===S.$.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{let n=(0,x.Z)(t.current,e=>e.size.parsedSize),i=()=>(0,r.jsx)(b.RA,{baseline:(0,x.Z)(t.baseline,e=>e.size.parsedSize),current:n});return t.current?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{strong:t.updateType!==S.$.NotChanged,children:(0,g.formatSize)(n)}),(0,r.jsx)(i,{})]}):(0,r.jsx)(i,{})}}]},{title:"Baseline",children:[{title:"Version",render:(e,t)=>t.baseline?(0,r.jsx)(s.Z,{direction:"vertical",children:t.baseline.map(e=>(0,r.jsx)(Z.Ct,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===S.$.Deleted?"error":t.updateType===S.$.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{if(t.baseline){let e=(0,x.Z)(t.baseline,e=>e.size.parsedSize);return(0,r.jsx)(u.Z.Text,{children:(0,g.formatSize)(e)})}return null}}]}]})})]})}},36749:function(e,t,n){"use strict";n.d(t,{Cn:function(){return w},_z:function(){return C},tT:function(){return P}});var r=n(31549),i=n(68673),s=n(36542),o=n(95103),l=n(63272),a=n(10855),d=n(44242),u=n(74379),c=n(41681),h=n(73176),f=n(97770),p=n(42689),m=n(44194),x=n(78741),g=n(95925),j=n(77422),y=n(55872),S=n(66954),Z=n(84290),b=n(94771),v=n(46641);let C=/[a-fA-F0-9]{20,}/,M=(e,t,n)=>{let i=(e,n)=>(e.current?.size[t]||0)-(e.baseline?.size[t]||0)-(n.current?.size[t]||0)+(n.baseline?.size[t]||0),s=n?(e,t)=>i(e,t):(n,r)=>(n[e]?.size[t]||0)-(r[e]?.size[t]||0);return{width:200,sorter:(e,t)=>s(e,t),render:(n,i)=>{if(!i[e])return"-";let s=i[e].size[t];return(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z.Text,{children:(0,j.formatSize)(s)}),"current"===e?(0,b.W)(i.baseline?.size[t]||0,s,(i.baseline?.size[t]||0)>s?x.Client.RsdoctorClientDiffState.Down:x.Client.RsdoctorClientDiffState.Up):null]})}}},P=(e,t,n)=>{let[s,u]=(0,m.useState)(!1),c="baseline"===e;return{title:()=>{let s=c?t:n,u=(0,p.Z)(e),h=v.kJ.OC(t,n);return(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Z.Text,{children:u}),(0,r.jsx)(a.Z,{type:"vertical"}),(0,r.jsx)(d.Z,{title:(0,r.jsxs)(o.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z.Text,{style:{color:"inherit"},children:[u," modules is ",s]}),c?null:(0,r.jsxs)(l.Z.Text,{style:{color:"inherit"},children:["Percent is ",(0,j.formatPercent)(h.percent)]})]}),children:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:s}),(0,r.jsx)(i.Z,{})]})})]})},children:[{title:"Source Size",...M(e,"sourceSize",s)},{title:"Parsed Size",defaultSortOrder:c?void 0:"descend",...M(e,"parsedSize",s)}],filterSearch:!0,filters:[{text:"Show Changed",value:Z.$.NotChanged},{text:"Show All",value:"All"}],onFilter:(e,t)=>(e===Z.$.NotChanged?u(!0):u(!1),e!==Z.$.NotChanged||(0,S.TN)(t)!==e)}},w=({data:e,baseline:t,current:n})=>{let{modules:p}=t.moduleGraph,{modules:x}=n.moduleGraph,{chunks:Z}=t.chunkGraph,{chunks:b}=n.chunkGraph,M=t.root,w=n.root,[I,k]=(0,m.useState)(""),D=(0,m.useRef)(null),E=(e,t)=>{t(),k(e[0])},T=e=>{e(),k("")},z="__is_baseline__",A=(0,m.useMemo)(()=>e.baseline?v.kJ.hq(e.baseline,Z,p).map(e=>({...e,[z]:!0})).filter(e=>!e.concatenationModules?.length):[],[e,t]),N=(0,m.useMemo)(()=>e.current?v.kJ.hq(e.current,b,x).map(e=>({...e,[z]:!1})).filter(e=>!e.concatenationModules?.length):[],[e,n]),_=e=>(0,j.beautifyModulePath)(e.path,e.__is_baseline__?M:w),R=(0,m.useMemo)(()=>{let e=[...A,...N],t=new Map;return e.forEach(e=>{let n=e.webpackId?.replace(C,"")||e.path?.replace(C,""),r=t.get(n);!r&&(r={path:n}),e[z]?r.baseline=e:r.current=e,t.set(n,r)}),[...t.values()]},[A,N,I]),{bModulesCount:B,cModulesCount:L,totalCount:O}=(0,m.useMemo)(()=>{let e=e=>_(e).alias.indexOf(I)>-1,t=R.filter(e=>e.baseline),n=R.filter(e=>e.current),r=R.length;return I&&(t=t.filter(e),n=n.filter(e),r=R.filter(e).length),{bModulesCount:t.length,cModulesCount:n.length,totalCount:r}},[R,I]);return(0,r.jsx)(u.Z,{dataSource:R,rowKey:e=>e.path,size:"small",pagination:{size:"small"},bordered:!0,scroll:{x:1500},columns:[{fixed:"left",title:()=>(0,r.jsxs)("div",{children:[(0,r.jsxs)(l.Z.Text,{children:["Modules of ",`"${e.alias}"`]}),(0,r.jsx)(a.Z,{type:"vertical"}),(0,r.jsxs)(d.Z,{title:(0,r.jsxs)(o.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z.Text,{style:{color:"inherit"},children:["filtered modules: ",O]}),(0,r.jsxs)(l.Z.Text,{style:{color:"inherit"},children:["total modules: ",R.length]})]}),children:[(0,r.jsxs)(l.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[O,"/",R.length]}),(0,r.jsx)(i.Z,{})]})]}),filterDropdown:({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i})=>(0,r.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,r.jsx)(c.Z,{ref:D,placeholder:"Search by file name",value:t[0],onChange:t=>e(t.target.value?[t.target.value]:[]),onPressEnter:()=>E(t,n),style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(h.ZP,{type:"primary",onClick:()=>E(t,n),icon:(0,r.jsx)(s.Z,{}),size:"small",style:{width:90},children:"Search"}),(0,r.jsx)(h.ZP,{onClick:()=>{i&&T(i),e([]),E([],n)},size:"small",style:{width:90},children:"Reset"})]})]}),filterSearch:!0,filterIcon:e=>(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z.Text,{type:I?void 0:"secondary",style:{fontWeight:400},children:I||"Search by file name"}),(0,r.jsx)(s.Z,{style:{color:e?g.Color.Blue:void 0}})]}),onFilterDropdownOpenChange:e=>{e&&setTimeout(()=>D.current?.focus(),100)},onFilter:(e,t)=>_(t).alias.indexOf(e)>-1,render:(e,t)=>{let{alias:n,inNodeModules:i}=_(t);return(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(d.Z,{title:t.path,children:(0,r.jsx)(l.Z.Text,{copyable:{text:t.path},children:n})}),i?(0,r.jsx)(f.Z,{color:"warning",children:"node_modules"}):null,(0,r.jsx)(S.J9,{type:(0,S.TN)(t)})]})}},P("current",B,L),P("baseline",B,L),{title:"Actions",width:200,render:(e,i)=>(0,r.jsx)(o.Z,{direction:"vertical",style:{maxWidth:170},children:(0,r.jsx)(y.H,{text:"View Changes",file:i.path,data:[{baseline:t.moduleCodeMap[i.baseline?.id]?.source,current:n.moduleCodeMap[i.current?.id]?.source,group:"Source"},{baseline:t.moduleCodeMap[i.baseline?.id]?.transformed,current:n.moduleCodeMap[i.current?.id]?.transformed,group:"Transformed Source"},{baseline:t.moduleCodeMap[i.baseline?.id]?.parsedSource,current:n.moduleCodeMap[i.current?.id]?.parsedSource,group:"Parsed Source"}]})})}]})}},94771:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(31549),i=n(78741),s=n(63272),o=n(95925),l=n(77422);let a=(e,t,n,a)=>(0,r.jsx)(r.Fragment,{children:t-e==0?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(s.Z.Text,{strong:!0,style:{color:n===i.Client.RsdoctorClientDiffState.Up?o.Color.Red:o.Color.Green,...a},children:[n===i.Client.RsdoctorClientDiffState.Up?"+":"-",(0,l.formatSize)(Math.abs(t-e))]})})},2804:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var r=n(31549),i=n(78741),s=n(43622),o=n(77422);let l=e=>{let{api:t,body:n,children:l,manifests:a}=e,d=(0,o.useUrlQuery)(),[u,c]=d[i.Client.RsdoctorClientUrlQuery.BundleDiffFiles]?.split(",")||[];return a?.length?(0,r.jsx)(r.Fragment,{children:l(a[0].data,a[1].data)}):(0,r.jsx)(s.Nu,{api:t,body:n,manifestLoader:u?()=>(0,o.fetchManifest)(u):void 0,children:e=>(0,r.jsx)(s.Nu,{api:t,body:n,manifestLoader:c?()=>(0,o.fetchManifest)(c):void 0,children:t=>l(e,t)})})}},64293:function(e,t,n){"use strict";n.d(t,{BC:function(){return i}});var r=n(44194);let i=n(78741).Client.RsdoctorClientRoutes.BundleDiff;r.createContext({manifests:[],setManifests(e){},loading:!1,setLoading(e){},async withLoading(e){}})},77455:function(e,t,n){"use strict";n.d(t,{BC:function(){return s.BC},T3:function(){return o}});var r=n(31549),i=n(47201),s=n(64293);let o=()=>(0,r.jsx)(i.X,{manifests:[]})},4282:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});let r=n(78741).Client.RsdoctorClientRoutes.RuleIndex},488:function(e,t,n){"use strict";n.d(t,{BC:function(){return j.B},T3:function(){return y}});var r=n(31549),i=n(44194),s=n(78741),o=n(99892),l=n(13019),a=n(89246),d=n(95103),u=n(51927),c=n(63272),h=n(97770),f=n(65443),p=n(61550),m=n(23675),x=n(95925),g=n(77422),j=n(4282);let y=()=>{let e=(0,g.useUrlQuery)()[s.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode]||"",[t,n]=(0,i.useState)(s.Rule.RuleErrorMap[e]),j=(0,p.Z)(s.Rule.RuleErrorMap);return(0,i.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,r.jsxs)(o.Z,{gutter:x.Size.BasePadding/2,children:[(0,r.jsx)(l.Z,{span:8,children:(0,r.jsx)(a.Z,{title:(0,r.jsx)(m.D,{text:"list of the error codes."}),bordered:!0,children:(0,r.jsx)(d.Z,{direction:"vertical",children:j.map((e,i)=>(0,r.jsxs)(d.Z,{style:{marginTop:0===i?0:x.Size.BasePadding/2,cursor:"pointer"},onClick:()=>n(e),align:"center",children:[(0,r.jsx)(u.Z,{status:"default"}),(0,r.jsx)(c.Z.Text,{code:!0,children:(0,r.jsx)("a",{children:e.code})}),(0,r.jsx)(c.Z.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,r.jsx)(l.Z,{span:16,children:t?(0,r.jsx)(a.Z,{title:(0,r.jsxs)(o.Z,{justify:"space-between",children:[(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(c.Z.Text,{code:!0,children:t.code}),(0,r.jsx)(c.Z.Text,{children:t.title})]}),(0,r.jsx)("div",{children:(0,r.jsx)(h.Z,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,r.jsx)(c.Z.Paragraph,{children:"markdown"===t.type?(0,r.jsx)(f.U,{children:t.description}):(0,r.jsx)(c.Z.Text,{children:t.description})})}):(0,r.jsx)(a.Z,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,r.jsx)(c.Z.Text,{children:"click the error code in left bar to show more details."})})})]})}},43721:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="TreeShaking",s=r.Client.RsdoctorClientRoutes.TreeShaking},77754:function(e,t,n){"use strict";n.d(t,{p:function(){return y}});var r=n(31549),i=n(44194),s=n(77410),o=n.n(s),l=n(89246),a=n(44242),d=n(95103),u=n(63272),c=n(68673),h=n(49856),f=n(55834),p=n(47180),m=n(51742),x=n(65079),g=n(77422),j=n(46591);function y(e){let{module:t,moduleGraph:n,ranges:s,toLine:y,setEditorData:S,source:Z}=e,b=(0,i.useRef)(),v=(0,i.useRef)([]),C=(0,i.useRef)([]),M=(0,i.useRef)(),P=(0,i.useRef)(!1),[w,I]=(0,i.useState)("");return((0,i.useEffect)(()=>{let{isPreferSource:e}=t;P.current=!0,I(Z.source||e?Z.source:Z.transformed),setTimeout(()=>{C.current=b.current?.getModel()?.deltaDecorations(C.current,x.su(t,n))??[]},200)},[t,Z]),(0,i.useEffect)(()=>{function e(){let e=b.current?.getModel();if(!!e)v.current=e.deltaDecorations(v.current,s.map(e=>({range:(0,g.getSelectionRange)(e,p.e),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),b.current&&"number"==typeof y&&M.current!==y&&(M.current=y,b.current.revealLine(y,0))}P?setTimeout(e,300):e(),P.current=!1},[s,y]),(0,i.useEffect)(()=>{let e=e=>{let t=(0,m.hR)(e.target);if(t){let e=n.getModuleById(t.module);e&&S(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,r.jsx)(l.Z,{title:(0,r.jsx)(a.Z,{title:t.path,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(u.Z.Text,{children:o().basename(t.path)}),(0,r.jsx)(c.Z,{})]})}),className:"tree-shaking-editor",children:(0,r.jsx)(f.ZP,{theme:"vs-dark",language:(0,g.getOriginalLanguage)(t.path),value:w,loading:(0,r.jsx)(h.Z,{style:{fontSize:30}}),options:j.z9,onMount:e=>{b.current=e}})}):(0,r.jsx)("div",{children:"\u8BF7\u9009\u62E9\u8981\u67E5\u770B\u7684\u6A21\u5757"})}},29668:function(e,t,n){"use strict";n.d(t,{$R:function(){return C},BC:function(){return v.B},u2:function(){return v.u}});var r=n(31549),i=n(44194),s=n(89246),o=n(99892),l=n(86536),a=n(13019),d=n(77590),u=n(23193),c=n(78741),h=n(77410),f=n.n(h),p=n(43622),m=n(95925),x=n(35972),g=n(33448),j=n(65079),y=n(77422),S=n(77754),Z=n(65609),b=n(74915);n(4244);var v=n(43721);let C=(0,p.i8)(y.fetchManifest,[["moduleGraph","data"],["root","cwd"]],({data:e,cwd:t})=>{let n=(0,y.useModuleGraphInstanceByModuleGraph)(e);if(0===n.size())return(0,r.jsx)(Z.T,{});let[h,v]=(0,i.useState)(""),[C,M]=(0,i.useState)(1),[P,w]=(0,i.useState)([]),[I,k]=(0,i.useState)("side-effect"),D=(0,i.useMemo)(()=>n.getModules().filter(e=>e.kind===c.SDK.ModuleKind.Normal&&f().basename(e.path).includes(h)),[h]),E=(0,i.useMemo)(()=>D.find(e=>e.isEntry),[]),[T,z]=(0,i.useState)(E||D?.length&&D?.[0]),A=(0,j.X0)(D,n,h,T,e=>{N(D.find(t=>t.path===e),[])},t),N=(e,t,n)=>{z(e),w(t.slice()),(0,d.Z)(n)&&M(n)};return(0,r.jsxs)(s.Z,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:[(0,r.jsxs)(o.Z,{justify:"space-between",align:"middle",style:{marginBottom:m.Size.BasePadding,marginTop:m.Size.BasePadding},children:[(0,r.jsx)(g.a,{icon:(0,r.jsx)(u.Z,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>v(e)}),(0,r.jsxs)(l.ZP.Group,{value:I,onChange:({target:e})=>k(e.value),children:[(0,r.jsx)(l.ZP.Button,{value:"side-effect",children:"SideEffects"}),(0,r.jsx)(l.ZP.Button,{value:"export",children:"Export Variables"})]})]}),(0,r.jsxs)(o.Z,{justify:"space-between",align:"top",wrap:!1,gutter:[m.Size.BasePadding,m.Size.BasePadding],children:[(0,r.jsx)(a.Z,{span:7,children:(0,r.jsx)(s.Z,{title:`Total Files: ${D.length}`,className:"tree-shaking-files-box",children:(0,r.jsx)(x.z,{style:{height:"80%"},className:"tree-shaking-files",selectedKeys:T?[T.path]:[],defaultExpandedKeys:(0,j.yA)(A),treeData:A,expandAction:"click"})})}),(0,r.jsx)(a.Z,{span:9,children:(0,r.jsx)(p.Nu,{api:c.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:T.id},children:e=>(0,r.jsx)(S.p,{module:T,moduleGraph:n,ranges:P,toLine:C,setEditorData:N,source:e})})}),(0,r.jsx)(a.Z,{flex:1,children:(0,r.jsx)(b.c0,{kind:I,setEditorData:N,module:T,moduleGraph:n})})]})]})})},51742:function(e,t,n){"use strict";n.d(t,{hR:function(){return o},ue:function(){return s}});var r,i=((r=i||{}).Module="data-module",r.Range="data-range",r);function s(e,t,n){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${n}</a>`}function o(e){if("a"!==e.tagName.toLocaleLowerCase())return;let t=e.getAttribute("data-href")??"",n={module:-1,range:{start:{line:1,column:0},end:{line:1,column:0}}};for(let e of t.split("&")){let[t,r]=e.split("=");if("data-module"===t){n.module=Number.parseInt(r,10);continue}"data-range"===t&&(n.range=JSON.parse(decodeURIComponent(r)))}return n}},47180:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});class r{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.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))&&!0}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))&&!0}containsRange(e){return r.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))&&!0}strictContainsRange(e){return r.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))&&!0}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn,l=t.startLineNumber,a=t.startColumn,d=t.endLineNumber,u=t.endColumn;return(n<l?(n=l,i=a):n===l&&(i=Math.max(i,a)),s>d?(s=d,o=u):s===d&&(o=Math.min(o,u)),n>s||n===s&&i>o)?null:new r(n,i,s,o)}equalsRange(e){return r.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 r.getEndPosition(this)}static getEndPosition(e){return new i(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i(e.startLineNumber,e.startColumn)}toString(){return`[${this.startLineNumber},${this.startColumn} -> ${this.endLineNumber},${this.endColumn}]`}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(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))&&!0}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))&&!0}static compareRangesUsingStarts(e,t){if(e&&t){let n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){let n=0|e.startColumn,r=0|t.startColumn;if(n===r){let n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){let n=0|e.endColumn;return n-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){if(e.endLineNumber===t.endLineNumber){if(e.endColumn===t.endColumn)return e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber;return e.endColumn-t.endColumn}return e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.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 n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){let n=0|e.column;return n-(0|t.column)}return n-r}clone(){return new i(this.lineNumber,this.column)}toString(){return`(${this.lineNumber},${this.column})`}static lift(e){return new i(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}}}},65609:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(31549),i=n(89246),s=n(47146);function o(){return(0,r.jsx)(i.Z,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,r.jsx)(s.Z,{style:{marginTop:30}})})}},74915:function(e,t,n){"use strict";n.d(t,{c0:function(){return b}});var r=n(31549),i=n(44242),s=n(73176),o=n(41681),l=n(95103),a=n(63272),d=n(10855),u=n(74379),c=n(36542),h=n(44194),f=n(79537),p=n.n(f),m=n(21807),x=n(65079),g=n(77422);function j(e,t){if(!e)return(0,r.jsx)("div",{children:"Can not find declaration."});let{module:n}=e,o=n.isPreferSource?e.position.source:e.position.transformed;return(0,r.jsx)(i.Z,{title:`${n.path}, line ${o.start.line}`,children:(0,r.jsx)(s.ZP,{type:"link",onClick:()=>t(n,[o],o.start.line),children:"Move To"})})}function y(e){let[t,n]=(0,h.useState)(""),[i,a]=(0,h.useState)(""),d=(0,h.useRef)(null),u=(e,t,r)=>{t(),n(e[0]),a(r)},f=e=>{e(),n("")};return{filterDropdown:({setSelectedKeys:t,selectedKeys:n,confirm:i,clearFilters:a,close:h})=>(0,r.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,r.jsx)(o.Z,{ref:d,placeholder:`Search ${e}`,value:n[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>u(n,i,e),style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(s.ZP,{type:"primary",onClick:()=>u(n,i,e),icon:(0,r.jsx)(c.Z,{}),size:"small",style:{width:90},children:"Search"}),(0,r.jsx)(s.ZP,{onClick:()=>a&&f(a),size:"small",style:{width:90},children:"Reset"}),(0,r.jsx)(s.ZP,{type:"link",size:"small",onClick:h,children:"close"})]})]}),filterIcon:e=>(0,r.jsx)(c.Z,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,n)=>n[e].toString().toLowerCase().includes(t.toLowerCase()),render:n=>i===e?(0,r.jsx)(p(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:n?n.toString():""}):n}}let S=({module:e,moduleGraph:t,setEditorData:n})=>{let o=(0,h.useMemo)(()=>t.getModuleGraphModule(e).getSideEffects(),[e]),c=o.map(({variable:t,name:n,identifier:r},i)=>({key:i,name:n,identifier:e.isPreferSource?r.position.source:r.position.transformed,declaration:t?.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 n=e[e.length-1];return n&&n.name===t.name?(!n.children&&(n.children=[]),n.children.push(t),e):(e.push(t),e)},[]),f=[{title:"Name",dataIndex:"name",key:"name",align:"center",...y("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:t=>(0,r.jsx)(i.Z,{title:`Current File line ${t.start.line}`,children:(0,r.jsx)(s.ZP,{type:"link",onClick:()=>n(e,[t],t.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,n)}],p=(0,r.jsx)(h.Fragment,{children:(0,r.jsxs)(l.Z,{style:{fontWeight:400},children:["Import",(0,r.jsx)(a.Z.Text,{strong:!0,children:c.length}),"variables",(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(a.Z.Text,{strong:!0,children:o.length}),"sideEffects"]})});return(0,r.jsx)(m.Zb,{style:{marginBottom:10},title:p,className:"tree-shaking-export-table",children:(0,r.jsx)(u.Z,{size:"small",dataSource:c,columns:f,pagination:!1,scroll:{y:600}})})},Z=({module:e,moduleGraph:t,setEditorData:n})=>{let o=(0,h.useMemo)(()=>t.getModuleGraphModule(e).getExports(),[e]),c=o.filter(e=>0===e.getSideEffects().length),f=(0,r.jsxs)(h.Fragment,{children:[(0,r.jsxs)(l.Z,{style:{fontWeight:400},children:["Export",(0,r.jsx)(a.Z.Text,{strong:!0,children:o.length})]}),o.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsxs)(a.Z.Text,{style:{fontWeight:400},code:!0,children:[(0,r.jsx)(a.Z.Text,{children:"Unused"}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(a.Z.Text,{strong:!0,children:c.length})]}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsxs)(a.Z.Text,{style:{fontWeight:400},code:!0,children:[(0,r.jsx)(a.Z.Text,{children:"Used"}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(a.Z.Text,{strong:!0,children:o.length-c.length})]})]}):""]}),p=o.map((e,t)=>{let{variable:n}=e;return{key:t,name:e.name,declaration:n?.identifier,used:e.getSideEffects().map(({module:e,identifier:t})=>{let n=e?.isPreferSource?t.position.source:t.position.transformed;if(!!e&&!!n)return{module:e,range:n}}).filter(g.isDef)}}),S=[{title:"Name",dataIndex:"name",key:"name",align:"center",...y("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,n)},{title:"Info",dataIndex:"used",key:"used",align:"center",sorter:(e,t)=>e.used.length-t.used.length,sortDirections:["descend","ascend"],render:e=>(0,r.jsxs)("span",{children:["Used ",e.length," times"]})}];return(0,r.jsx)(m.Zb,{title:f,className:"tree-shaking-export-table",children:(0,r.jsx)(u.Z,{size:"small",dataSource:p,columns:S,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,r.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,r.jsx)(a.Z.Text,{children:"List of SideEffect:"}),e.used.map(({module:e,range:t})=>(0,r.jsx)(i.Z,{title:`${e.path}:${t.start.line}`,children:(0,r.jsx)(s.ZP,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{n(e,[t],t.start.line)},children:`${(0,x.XZ)(e.path)}:${t.start.line}`})},e.id))]}),rowExpandable:e=>e.used.length>0}})})},b=e=>"side-effect"===e.kind?(0,r.jsx)(S,{...e}):(0,r.jsx)(Z,{...e})},65079:function(e,t,n){"use strict";n.d(t,{X0:function(){return x},XZ:function(){return j},su:function(){return y},yA:function(){return g}});var r=n(31549),i=n(44194),s=n(77410),o=n.n(s),l=n(50002),a=n(45307),d=n(70459),u=n(95103),c=n(97770),h=n(47180),f=n(51742),p=n(77422),m=n(67522);function x(e,t,n,s,o,l){return(0,i.useMemo)(()=>(0,p.createFileStructures)({files:e.map(e=>e.path),cwd:l,fileTitle(e,n){let i=t.getModules().find(t=>t.path===e&&t.kind===d.Module.kind.Normal),s=t.getModuleGraphModule(i),l=s.getExports().filter(e=>0===e.getSideEffects().length);return(0,r.jsxs)(u.Z,{style:{wordBreak:"break-all"},children:[(0,r.jsx)(m.Z,{text:n,keyword:e,onClick:()=>o(e)}),s.dynamic?(0,r.jsx)(c.Z,{color:"cyan",children:"dynamic"}):"",l.length>0?(0,r.jsxs)(c.Z,{color:"green",children:[l.length," Unused"]}):""]})}}),[n,s])}function g(e){return(0,p.mapFileKey)(e,3,e=>!((0,l.Z)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function j(e){let t="",n=e;for(let e=0;e<3;e++)t=t?`${o().basename(n)}/${t}`:o().basename(n),n=o().dirname(n);return`...${t}`}function y(e,t){let n=t.getModuleGraphModule(e).getOwnExports(),r=n.map(e=>e.variable).filter(e=>!!e);if(0===n.length&&0===r.length)return[];let{isPreferSource:i}=e;return r.map(e=>{let t=i?e.identifier.position.source:e.identifier.position.transformed,n=t&&(0,p.getSelectionRange)(t,h.e);if(!!t&&!!n)return{range:n,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 n=t.getSideEffects();if(0===n.length)return"Have no sideEffect.";let r=`Used **${n.length}** times:
79
+ (2) If you use lite mode, there will not have source codes.`}),L=({data:e})=>{let[t,n]=(0,M.useState)(""),{t:s}=(0,A.useI18n)(),o={source:"Source Code",transformed:`Transformed Code(${s("After Compile")})`,parsedSource:`Bundled Code(${s("After Bundled")})`};if(!e)return null;let{path:l}=e;return(0,r.jsx)(T.XU,{text:"",buttonProps:{size:"small",icon:(0,r.jsx)(c.Z,{content:"Open the Codes Box",children:(0,r.jsx)(i.Z,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${l}"`},children:(0,r.jsx)(P.Nu,{api:d.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:e.id},children:e=>(0,r.jsx)(r.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,r.jsx)(h.Z,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,b.Z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:o[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>n(e),tabBarExtraContent:(0,r.jsx)(c.Z,{placement:"bottom",title:(0,r.jsx)(f.Z.Title,{level:5,children:"Explain"}),content:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(f.Z.Text,{strong:!0,children:"Source: "}),(0,r.jsx)(f.Z.Text,{children:R.source})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(f.Z.Text,{strong:!0,children:["Transformed:"," "]}),(0,r.jsx)(f.Z.Text,{children:R.transformed})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)(f.Z.Text,{strong:!0,children:["Bundled Source:"," "]}),(0,r.jsx)(f.Z.Text,{children:R.parsedSource})]}),(0,r.jsx)("br",{}),(0,r.jsx)(f.Z.Text,{strong:!0,children:"More"}),(0,r.jsx)(f.Z.Text,{children:s("CodeModeExplain")})]})}),trigger:"hover",children:(0,r.jsx)("a",{href:"#",children:"Explain"})}),children:e.parsedSource||e.source||e.transformed?(0,r.jsx)(a.ZP,{theme:"vs-dark",language:(0,A.getOriginalLanguage)(l),height:window.innerHeight/1.5,value:t?e[t]:e.parsedSource?e.parsedSource:e.source,options:{readOnly:!0,domReadOnly:!0,fontSize:14,wordWrap:"bounded",minimap:{enabled:!1}}}):(0,r.jsx)(O,{})}):(0,r.jsx)(O,{})})})})},$=({id:e,show:t,setShow:n,cwd:i})=>e?(0,r.jsx)(p.Z,{open:t,maskClosable:!0,width:z.drawerWidth,onClose:()=>n(!1),children:(0,r.jsx)(P.Nu,{api:d.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:t=>(0,r.jsx)(w.H,{cwd:i,moduleId:e,modules:t})})}):null,G="__RESOURCEPATH__",F=({modules:e,chunks:t,filteredModules:n})=>{let{sourceSize:i,parsedSize:o,filteredParsedSize:l,filteredSourceSize:a}=(0,M.useMemo)(()=>({sourceSize:(0,v.Z)(e,e=>e.size.sourceSize),parsedSize:(0,v.Z)(e,e=>e.size.parsedSize),filteredSourceSize:(0,v.Z)(n,e=>e.size.sourceSize),filteredParsedSize:(0,v.Z)(n,e=>e.size.parsedSize)}),[e,n]);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(x.Z,{title:`total modules count is ${e.length}, the filtered modules count is ${n.length}`,children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",n.length," / ",e.length]}),(0,r.jsx)(s.Z,{})]})}),(0,r.jsx)(g.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,A.formatSize)(o)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,A.formatSize)(i)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,A.formatSize)(l)]}),(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,A.formatSize)(a)]})]}),children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:"," ",l===o?(0,A.formatSize)(o):`${(0,A.formatSize)(l)} / ${(0,A.formatSize)(o)}`]}),(0,r.jsx)(s.Z,{})]})}),(0,r.jsx)(g.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["this asset includes ",t.length," chunks:"," "]}),t.map(e=>(0,r.jsx)(I.Ct,{label:"chunk",value:e.name},e.name))]}),children:(0,r.jsxs)(m.Z,{children:[(0,r.jsxs)(f.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",t.length]}),(0,r.jsx)(s.Z,{})]})})]})},W=({asset:e,chunks:t,modules:n,moduleSizeLimit:i,height:s,root:a})=>{let[p,g]=(0,M.useState)(""),[b,P]=(0,M.useState)(!1),[w,I]=(0,M.useState)([]),[T,R]=(0,M.useState)(!1),O=(0,M.useMemo)(()=>{let e=n.slice();if(p){let t=RegExp(p,"i");e=e.filter(e=>t.test(e.path))}return i&&(e=e.filter(e=>e.size.parsedSize>=i)),e},[n,p,i]),W=(0,M.useMemo)(()=>(0,A.createFileStructures)({files:O.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:G,fileTitle(e,t){let i=O.find(t=>t.path===e);if(!i)return t;let{parsedSize:s=0,sourceSize:l=0}=i.size,a=i.kind===d.SDK.ModuleKind.Concatenation,u=!a&&0===s&&n.filter(e=>e!==i&&e.modules&&e.modules.indexOf(i.id)>-1);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(E.Z,{ellipsis:!0,style:{maxWidth:500},text:t,keyword:p}),0!==s?(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsx)(j.Z,{color:"orange",children:"Bundled Size:"+(0,A.formatSize)(s)}),(0,r.jsx)(j.Z,{color:"volcano",children:"Source Size:"+(0,A.formatSize)(l)})]}),color:"white",children:(0,r.jsx)(j.Z,{color:"purple",style:B,children:"Bundled: "+(0,A.formatSize)(s)})}):0!==l?(0,r.jsx)(j.Z,{color:"geekblue",children:"Source Size:"+(0,A.formatSize)(l)}):null,a?(0,r.jsx)(x.Z,{title:(0,r.jsx)(m.Z,{children:(0,r.jsxs)(f.Z.Text,{style:{color:"inherit"},children:["this is a concatenated module, it contains"," ",i.modules?.length," modules"]})}),children:(0,r.jsx)(j.Z,{color:"green",style:B,children:"concatenated"})}):null,u&&u.length?(0,r.jsx)(x.Z,{title:(0,r.jsxs)(m.Z,{direction:"vertical",children:[(0,r.jsx)(f.Z.Text,{style:{color:"inherit"},children:"this is a concatenated module, it is be contained in these modules below:"}),u.map(({id:e,path:t})=>{if((0,A.isJsDataUrl)(t))return(0,r.jsx)(f.Z.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:t},e);let n=(0,C.relative)((0,C.dirname)(i.path),t);return n.startsWith("javascript;charset=utf-8;base64,")?(0,r.jsx)(f.Z.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===n[0]?n:`./${n}`},e):(0,r.jsx)(f.Z.Text,{style:{color:"inherit"},code:!0,children:"."===n[0]?n:`./${n}`},e)})]}),children:(0,r.jsx)(j.Z,{color:"green",children:"concatenated"})}):null,(0,r.jsx)(c.Z,{content:"Open the Module Graph Box",children:(0,r.jsx)(y.ZP,{size:"small",icon:(0,r.jsx)(o.Z,{}),onClick:()=>{I([i.id]),R(!0)}})}),(0,r.jsx)(L,{data:i})]})},dirTitle(e,t){let i=function e(t){let n=[];return t.children&&t.children.forEach(t=>{t.isLeaf?n.push(t[G]):e(t)}),n}(e);if(i.length){let e=i.map(e=>n.find(t=>t.path===e)),s=(0,v.Z)(e,e=>e.size?.parsedSize||0),o=(0,v.Z)(e,e=>e.size?.sourceSize||0);return(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(f.Z.Text,{children:t}),s>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{style:B,color:"orange",children:"Bundled:"+(0,A.formatSize)(s)}),(0,r.jsx)(j.Z,{style:B,color:"lime",children:"Source:"+(0,A.formatSize)(o)})]}):(0,r.jsx)(j.Z,{style:B,color:"lime",children:"Source:"+(0,A.formatSize)(o)})]})}return t}}),[O]);return(0,M.useEffect)(()=>{g(""),P(!1)},[e]),(0,M.useEffect)(()=>{P(!1)},[p]),(0,r.jsx)(N.r.Provider,{value:{moduleJumpList:w,setModuleJumpList:I},children:(0,r.jsxs)(h.Z,{title:`Modules of "${e.path}"`,bodyStyle:{overflow:"scroll",height:s},size:"small",children:[n.length?(0,r.jsxs)(S.Z,{children:[(0,r.jsx)(Z.Z,{span:24,children:(0,r.jsx)(F,{modules:n,chunks:t,filteredModules:O})}),(0,r.jsx)(Z.Z,{span:24,children:(0,r.jsxs)(m.Z,{children:[(0,r.jsx)(D.a,{placeholder:"search module by keyword",onChange:e=>g(e)},e.path),(0,r.jsx)(y.ZP,{onClick:()=>P(!0),size:"small",icon:(0,r.jsx)(l.Z,{}),children:"expand all"})]})}),(0,r.jsx)(Z.Z,{span:24,style:{marginTop:z.Size.BasePadding},children:O.length?(0,r.jsx)(k.z,{onExpand:e=>{_=e},treeData:W,autoExpandParent:!0,defaultExpandParent:!0,defaultExpandedKeys:_?.length?_:1===W.length?[W[0].key]:[],defaultExpandAll:b||O.length<=20},`tree_${p}_${b}_${e.path}`):(0,r.jsx)(u.Z,{description:(0,r.jsx)(f.Z.Text,{strong:!0,children:`"${p}" can't match any modules`})})})]}):(0,r.jsx)(u.Z,{description:(0,r.jsx)(f.Z.Text,{strong:!0,children:`"${e.path}" doesn't have any modules`})}),(0,r.jsx)($,{id:w?.length?w[w.length-1]:"",show:T,setShow:R,cwd:a})]})})}},16581:function(e,t,n){"use strict";n.d(t,{b:function(){return g}});var r=n(31549),i=n(44194),s=n(75168),o=n(35554),l=n(99892),a=n(13019),d=n(77422),u=n(95925),c=n(50818),h=n(57448),f=n(87457);let{useToken:p}=s.Z,m=({showProgress:e=!1,data:t,total:n,tagBgColor:i})=>{let{token:s}=p(),o=i||s.colorPrimaryBorderHover;return(0,r.jsx)(f.K,{files:t.files,total:n,showProgress:e,tagBgColor:o})},x=({titles:e,datas:t,bgColor:n})=>{let[s,l]=(0,i.useState)(0);return(0,r.jsx)(c.I,{title:e.length>1?(0,r.jsx)(o.Z,{defaultValue:e[s],options:e,onChange:t=>{l(e.indexOf(t))},size:"small",style:{transition:"transform 0.3s ease"},value:e[s]||e[0]}):e[s],value:t.map((e,t)=>(0,i.createElement)(m,{...e,key:t,tagBgColor:n?.tagBgColor}))[s],boxProps:{style:{background:n?.bgColor}}})},g=({cwd:e,errors:t,summary:n})=>{let i=(0,d.useWindowWidth)(),s=(0,d.useDuplicatePackagesByErrors)(t),o=[(0,r.jsx)(x,{titles:["Total Files"],datas:[{data:n.all.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Total JS","Initial JS"],datas:[{data:n.js.total,total:n.all.total.size,showProgress:!0},{data:n.js.initial,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Total CSS","Initial CSS"],datas:[{data:n.css.total,total:n.all.total.size,showProgress:!0},{data:n.css.initial,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["Images","Fonts","Media"],datas:[{data:n.imgs.total,total:n.all.total.size,showProgress:!0},{data:n.fonts.total,total:n.all.total.size,showProgress:!0},{data:n.media.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(x,{titles:["HTML Files"],datas:[{data:n.html.total,total:n.all.total.size,showProgress:!0}]}),(0,r.jsx)(c.I,{title:"Duplicate Packages",value:(0,r.jsx)(h.sv,{buttonStyle:{height:100},duplicatePackages:s,cwd:e})})];return(0,r.jsx)(l.Z,{gutter:i>1200&&i<1400?[2*u.Size.BasePadding,u.Size.BasePadding]:[u.Size.BasePadding,u.Size.BasePadding],wrap:!0,style:{marginBottom:u.Size.BasePadding},children:o.map((e,t)=>(0,r.jsx)(a.Z,{span:i>1500?4:8,children:e},t))})}},62585:function(e,t,n){"use strict";n.d(t,{V:function(){return L}});var r=n(31549),i=n(85230),s=n(68583),o=n(68673),l=n(78666),a=n(61354),d=n(78741),u=n(8105),c=n(95103),h=n(97770),f=n(86536),p=n(89246),m=n(47146),x=n(44242),g=n(99892),j=n(13019),y=n(63272),S=n(73176),Z=n(5978),b=n(10855),v=n(6139),C=n(15890),M=n(20942),P=n(44194),w=n(43622),I=n(94386),k=n(35972),D=n(33448),E=n(67522),T=n(23675),z=n(95925),A=n(77422),N=n(16581),_=n(46591),R=n(89256);n(2623);let{Option:B}=u.Z,O=({errors:e,cwd:t,summary:n,entryPoints:O})=>{let[L,$]=(0,P.useState)([]),[G,F]=(0,P.useState)(0),[W,K]=(0,P.useState)(""),[U,H]=(0,P.useState)(0),[V,J]=(0,P.useState)(!1),[Y,q]=(0,P.useState)(""),[X,Q]=(0,P.useState)(""),[ee,et]=(0,P.useState)(null),[en,er]=(0,P.useState)(!1),[ei,es]=(0,P.useState)("tree"),{t:eo}=(0,A.useI18n)(),el=n.all.total.files,ea=(0,P.useCallback)(e=>t=>{"module"===e?q(t):"chunk"===e&&Q(t)},[]),ed=e=>(0,r.jsxs)(u.Z,{defaultValue:"kb",onChange:ea(e),children:[(0,r.jsx)(B,{value:"kb",children:"KB"}),(0,r.jsx)(B,{value:"mb",children:"MB"})]}),eu=(0,P.useCallback)((0,v.Z)(e=>{F("mb"===Y?1048576*e:1024*e)},300),[]),ec=(0,P.useCallback)((0,v.Z)(e=>{H("mb"===X?1048576*e:1024*e)},300),[]),eh=(0,P.useMemo)(()=>{let e=el.slice();return W&&(e=e.filter(e=>e.path.indexOf(W)>-1)),U>0&&(e=e.filter(e=>e.size>=U)),L.length&&(e=e.filter(e=>!!L.some(t=>(0,C.Z)(t.assets,e.path))||!1)),e.sort((e,t)=>{let n=e.path.indexOf("/")>-1?1:0;return(t.path.indexOf("/")>-1?1:0)-n})},[el,L,W,U]),ef=(0,P.useMemo)(()=>(0,A.createFileStructures)({files:eh.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:n,initial:i,path:s,content:o}=eh.find(t=>t.path===e);return(0,r.jsxs)(c.Z,{onClick:()=>{et(s)},children:[(0,r.jsx)(E.Z,{text:t,keyword:W}),(0,r.jsx)(h.Z,{color:"success",style:{margin:0},children:(0,A.formatSize)(n)}),i?(0,r.jsx)(h.Z,{color:"cyan",style:{margin:0},children:"initial"}):null,(0,r.jsx)(_.ut,{path:s,content:o,editorConfig:{readOnly:!1,domReadOnly:!1},emptyReason:"Do not have the codes of assets. If you use the lite or brief mode, there will have codes."})]})}}),[eh]);return(0,r.jsxs)(P.Fragment,{children:[(0,r.jsx)(N.b,{cwd:t,errors:e,summary:n}),(0,r.jsxs)(f.ZP.Group,{value:ei,onChange:e=>es(e.target.value),style:{marginBottom:z.Size.BasePadding},buttonStyle:"solid",optionType:"button",children:[(0,r.jsx)(f.ZP.Button,{value:"tree",children:"Tree Graph"}),(0,r.jsx)(f.ZP.Button,{value:"tile",children:"Bundle Analyzer Graph"})]}),(0,r.jsx)(p.Z,{hidden:"tree"===ei,title:(0,r.jsx)(c.Z,{children:(0,r.jsx)(T.D,{text:"From: Webpack Bundle Analyzer"})}),children:(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetTileReportHtml,body:{},children:e=>e&&"tile"===ei?(0,r.jsx)("iframe",{srcDoc:e,width:"100%",height:800,style:{border:"none"}}):(0,r.jsx)(m.Z,{description:(0,r.jsxs)("div",{children:["Generate Tile Graph is Closed.",(0,r.jsx)("a",{href:"https://rsdoctor.dev/zh/config/options/options#generatetilegraph",children:"Please check the document."})]})})})}),(0,r.jsx)(p.Z,{hidden:"tile"===ei,title:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(T.D,{text:"Bundle Analysis"}),(0,r.jsx)(x.Z,{color:"white",title:(0,r.jsxs)(c.Z,{direction:"vertical",color:"white",children:[(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"cyan",style:{margin:0},children:"initial"}),(0,r.jsx)(y.Z.Text,{children:": Indignify whether the chunk is the initial chunk."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"green",children:"concatenated"}),(0,r.jsxs)(y.Z.Text,{children:[": Indignify whether the module is the concatenated module."," "]}),(0,r.jsx)("br",{}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Concatenated Module:"}),(0,r.jsxs)(y.Z.Text,{children:["A series module is to lift or series multiple modules into a closure when packaging."," "]})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(S.ZP,{size:"small",icon:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(y.Z.Text,{children:": Open the code."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(S.ZP,{size:"small",icon:(0,r.jsx)(s.Z,{})}),(0,r.jsx)(y.Z.Text,{children:": View the module dependency, that is, module reasons in stats.json."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"purple",children:"Bundled: 15.77 KB"}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Bundled Size"}),(0,r.jsx)(y.Z.Text,{children:"The size of the code which bundled. That is, after bundle and tree-shaking."})]})}),(0,r.jsx)(g.Z,{children:(0,r.jsxs)(j.Z,{children:[(0,r.jsx)(h.Z,{color:"orange",children:"Source: 15.77 KB"}),(0,r.jsx)(y.Z.Text,{strong:!0,children:"Source Size"}),(0,r.jsx)(y.Z.Text,{children:"The size of the code which before bundle and transform."})]})})]}),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),extra:en?(0,r.jsx)(S.ZP,{onClick:()=>er(!1),children:(0,r.jsxs)(y.Z.Text,{children:["Expand ",(0,r.jsx)(l.Z,{})]})}):(0,r.jsx)(S.ZP,{onClick:()=>er(!0),children:(0,r.jsxs)(y.Z.Text,{children:["Fold",(0,r.jsx)(a.Z,{})]})}),children:(0,r.jsxs)(g.Z,{align:"middle",gutter:[z.Size.BasePadding,z.Size.BasePadding],children:[O&&O.length?(0,r.jsx)(j.Z,{children:(0,r.jsx)(u.Z,{mode:"multiple",value:L.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{$(e.map(e=>O.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{$([])},children:O.map(e=>(0,r.jsx)(u.Z.Option,{value:e.name,children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(I.Ct,{label:e.name,value:(0,A.formatSize)(e.size),tooltip:e.name})})},e.name))})}):null,(0,r.jsx)(j.Z,{children:(0,r.jsx)(D.a,{placeholder:"search asset by keyword",onChange:e=>{K(e),J(!1)}})}),(0,r.jsx)(j.Z,{span:7,children:(0,r.jsx)(Z.Z,{min:0,style:{width:"95%"},addonBefore:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,r.jsx)(x.Z,{title:eo("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>ec(Number(e)),addonAfter:ed("chunk")})}),(0,r.jsx)(j.Z,{span:7,children:(0,r.jsx)(Z.Z,{min:0,style:{width:"95%"},addonBefore:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,r.jsx)(x.Z,{title:eo("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,r.jsx)(o.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{eu(Number(e))},addonAfter:ed("module")})}),(0,r.jsx)(j.Z,{span:24,children:eh.length?(0,r.jsxs)(g.Z,{gutter:z.Size.BasePadding,children:[(0,r.jsx)(j.Z,{span:8,children:(0,r.jsx)(p.Z,{title:(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(y.Z.Text,{children:eo("Output Assets List")}),(0,r.jsx)(b.Z,{type:"vertical"}),(0,r.jsx)(x.Z,{title:`total assets count is ${el.length}, the filtered assets count is ${eh.length}`,children:(0,r.jsxs)(y.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[eh.length," / ",el.length]})}),(0,r.jsx)(b.Z,{type:"vertical"}),(0,r.jsx)(y.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,A.formatSize)((0,M.Z)(eh,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:en?410:800},extra:(0,r.jsx)(S.ZP,{size:"small",icon:(0,r.jsx)(l.Z,{}),onClick:()=>J(!0),children:"expand all"}),children:(0,r.jsx)(k.z,{treeData:ef,autoExpandParent:!0,defaultExpandAll:V||eh.length<=20},`tree_${W}_${V}`)})}),(0,r.jsx)(j.Z,{span:16,children:ee?(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:ee},children:e=>(0,r.jsx)(R.VT,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:en?410:800,moduleSizeLimit:G,root:t})}):(0,r.jsx)(p.Z,{bodyStyle:{height:en?450:800},children:(0,r.jsx)(m.Z,{description:(0,r.jsx)(y.Z.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,r.jsx)(m.Z,{})})]})})]})},L=(0,w.U$)({api:d.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:n}=e.project;return(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,r.jsx)(w.Nu,{api:d.SDK.ServerAPI.API.GetEntryPoints,children:i=>(0,r.jsx)(O,{cwd:t,errors:n,summary:e,entryPoints:i})})})}})},53394:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});let r=(0,n(44194).createContext)({setModuleJumpList(e){},moduleJumpList:[]})},16342:function(e,t,n){"use strict";n.d(t,{BC:function(){return s},u2:function(){return i}});var r=n(78741);let i="BundleSize",s=r.Client.RsdoctorClientRoutes.BundleSize},37556:function(e,t,n){"use strict";n.d(t,{BC:function(){return a.BC},T3:function(){return d},u2:function(){return a.u2}});var r=n(31549),i=n(99892),s=n(13019),o=n(95925),l=n(62585),a=n(16342);let d=()=>(0,r.jsx)(i.Z,{children:(0,r.jsx)(s.Z,{span:24,style:{marginBottom:o.Size.BasePadding},children:(0,r.jsx)(l.V,{})})})},11682:function(e,t,n){"use strict";n.d(t,{t:function(){return h}});var r=n(31549),i=n(97770),s=n(74379),o=n(47146),l=n(78398),a=n(86938),d=n(44194),u=n(77422);n(3755);let c=[{title:"Chunk Name",dataIndex:"name",key:"name"},{title:"size | \u5927\u5C0F",dataIndex:"size",key:"size"},{title:"assets | \u8D44\u6E90",dataIndex:"assets",key:"assets"},{title:"Entry or Not | \u662F\u5426\u662F\u5165\u53E3",dataIndex:"entry",key:"entry"}],h=({chunks:e})=>{let t=(0,d.useMemo)(()=>{let t=e.map(e=>{if(e)return{key:e.id,name:(0,r.jsx)(i.Z,{children:e.name}),size:(0,r.jsx)(i.Z,{children:(0,u.formatSize)(e.parsedSize)}),entry:(0,r.jsx)(i.Z,{children:e.entry?"\u662F | Yes":"\u5426 | No"}),assets:e.assets.map(e=>(0,r.jsx)("p",{children:(0,r.jsx)(i.Z,{children:e},e)},e))}});return(0,l.Z)((0,a.Z)(t),["size"],["desc"])},[e]);return(0,r.jsx)(r.Fragment,{children:t?.length?(0,r.jsx)(s.Z,{bordered:!0,pagination:!1,dataSource:t,columns:c}):(0,r.jsx)(o.Z,{})})}},25321:function(e,t,n){"use strict";n.d(t,{z:function(){return y}});var r=n(31549),i=n(72997),s=n(98022),o=n(68673),l=n(97933),a=n(78741),d=n(95103),u=n(63272),c=n(90722),h=n(97770),f=n(44194),p=n(38958),m=n(43622),x=n(95925),g=n(53394);n(39559);let j="file-tree-com",y=e=>{let{treeData:t,needJumpto:n=!1,defaultOpened:y=!1,defaultOpenFather:S=0}=e,{required:Z,handlers:b}=(0,p.Du)({id:`${j}-tree`,data:t||[],defaultOpened:y,multipleSelect:!1,refreshAsyncNodes:!0}),v=(0,f.useCallback)(({node:e,onToggle:t})=>(S&&e.data.level<S&&e.setOpened(!0),(0,r.jsx)("div",{className:`${j}-titles-box`,children:(0,r.jsx)("div",{className:`${j}-titles`,children:(0,r.jsx)(d.Z,{direction:"vertical",children:(0,r.jsx)("div",{className:`${j}-node-title`,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsxs)("div",{onClick:t,children:[!e.options.opened&&e.data.children?.length?(0,r.jsx)(i.Z,{style:{color:"lightblue"}}):(0,r.jsx)(s.Z,{style:{color:"lightblue"}}),(0,r.jsxs)(u.Z.Text,{code:!0,children:[e.data.name,(0,r.jsx)(c.Z,{content:(0,r.jsx)(r.Fragment,{children:e.data.__RESOURCEPATH__?(0,r.jsx)(u.Z.Text,{code:!0,children:e.data.__RESOURCEPATH__},`${e.data.name}-popover-path`):(0,r.jsx)(r.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,r.jsx)(o.Z,{style:{marginLeft:4}})},`${e.data.name}popover`)]})]}),(0,r.jsxs)(d.Z,{children:[e.data.concatModules?.length?(0,r.jsx)(c.Z,{content:(0,r.jsx)(m.Nu,{api:a.SDK.ServerAPI.API.GetModulesByModuleIds,body:{moduleIds:e.data.concatModules||[]},children:e=>(0,r.jsx)("div",{children:e.map(({path:e},t)=>(0,r.jsx)("p",{children:e},`${e}-${t}`))})}),title:"Concatenated Module Name",trigger:"hover",children:(0,r.jsx)(h.Z,{className:`${j}-node-title-tag`,color:x.TAG_PALLETE.DARK_BLUE,children:"Concatenated"},`${e.data.name}-size-tag`)}):e.data.size&&"0 bytes"!==e.data.size?(0,r.jsx)(h.Z,{className:`${j}-node-title-tag`,color:x.TAG_PALLETE.COLOR_B,children:`Bundled: ${e.data.size}`},`${e.data.name}-size-tag`):(0,r.jsx)(r.Fragment,{}),n&&(0,r.jsx)(g.r.Consumer,{children:({moduleJumpList:t,setModuleJumpList:n})=>(0,r.jsx)(l.Z,{onClick:()=>{let r=[...t];r.push(+e.id),n(r)}})})]})]})})})})},e.data.name)),[]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(p.ZP,{...Z,...b,horizontalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},verticalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},draggable:!1,depthGap:14,gapMode:"padding",disableLines:!1,disableTransitions:!0,disableHorizontalLines:!1,disableVerticalLines:!1,verticalLineTopOffset:0,verticalLineOffset:5,renderNode:v})})}},98771:function(e,t,n){"use strict";n.d(t,{m2:function(){return s}}),n(78741).Client.RsdoctorClientRoutes.ModuleAnalyze;var r,i=((r=i||{}).UrlQueryForModuleAnalyze="curModuleId",r);let s="module-analyze"},14310:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(31549),i=n(99892),s=n(13019),o=n(47146),l=n(41766),a=n(86938),d=n(44194),u=n(77422),c=n(25321);n(3755);var h=(0,d.memo)(({dependencies:e,cwd:t,module:n})=>{let h=(0,d.useMemo)(()=>{let t=n.dependencies.map(t=>{let n=(0,l.Z)(e,e=>e.id===t);if(n)return{__RESOURCEPATH__:n.resolvedRequest||"",id:n.dependency,key:n.resolvedRequest,name:(0,u.getShortPath)(n.resolvedRequest)||"",level:1,kind:n.kind,concatModules:void 0}});return(0,a.Z)(t)},[n]);return(0,r.jsx)(i.Z,{justify:"start",align:"middle",children:(0,r.jsx)(s.Z,{span:24,children:h.length?(0,r.jsx)(c.z,{treeData:h,needJumpto:!0,cwd:t}):(0,r.jsx)(o.Z,{})})})})},31837:function(e,t,n){"use strict";n.d(t,{V:function(){return T}});var r,i=n(31549),s=n(30835),o=n(97933),l=n(68673),a=n(60395),d=n(34781),u=n(78741),c=n(99892),h=n(90722),f=n(51927),p=n(63272),m=n(97770),x=n(73176),g=n(13019),j=n(47146),y=n(86536),S=n(44194),Z=n(43622),b=n(23675),v=n(95925),C=n(11390),M=n(11682),P=n(25321),w=n(98771),I=n(14310),k=n(3022),D=n(39465);var E=((r=E||{})[r.Dependencies=0]="Dependencies",r[r.Chunks=1]="Chunks",r);let T=e=>{let{curModule:t,modules:n,dependencies:r,cwd:E,selectedChunk:T=""}=e,{t:z}=(0,C.QT)(),[A,N]=(0,S.useState)([]),[_,R]=(0,S.useState)(0),[B,O]=(0,S.useState)(!0),{data:L}=(0,D.J)(n,A,t),[$,G]=(0,S.useState)({});return(0,S.useEffect)(()=>{N((0,k.e)(t,n))},[t,n]),(0,S.useEffect)(()=>{let e={};A.forEach(t=>{let r=[],i=new Map;(0,k.F)(t,n,r,i),e[t.id]=r}),G(e)},[A]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c.Z,{children:(0,i.jsx)(h.Z,{content:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsxs)(p.Z.Text,{code:!0,children:[(0,i.jsx)(s.Z,{})," Expand the node_modules's modules that was omitted... "]})," ",(0,i.jsx)(p.Z.Text,{children:`: ${z("Expand Omitted")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsx)(h.Z,{content:"*",title:"Concatenated Module Name",trigger:"hover",children:(0,i.jsx)(m.Z,{color:v.TAG_PALLETE.DARK_BLUE,children:"Concatenated"})}),(0,i.jsx)(p.Z.Text,{children:`: ${z("Concatenated Tag")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(f.Z,{status:"success",text:" "}),(0,i.jsx)(o.Z,{}),(0,i.jsx)(p.Z.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})]}),title:"Usage",children:(0,i.jsx)(x.ZP,{type:"primary",icon:(0,i.jsx)(l.Z,{}),children:"Usage"})})}),(0,i.jsxs)(c.Z,{gutter:4,style:{marginTop:v.Size.BasePadding},children:[(0,i.jsx)(g.Z,{span:B?18:12,children:(0,i.jsx)(c.Z,{className:`${w.m2}-file-tree`,justify:"center",children:(0,i.jsxs)(g.Z,{span:24,style:{padding:v.Size.BasePadding/2},children:[(0,i.jsx)(b.D,{text:"Current Module Imported Reasons Tree:"}),A?(0,i.jsx)(P.z,{cwd:E,treeData:T?L.filter(e=>$[e.id].indexOf(T)>=0):L,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:T}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})]})})}),(0,i.jsx)(g.Z,{span:B?6:12,children:(0,i.jsxs)("div",{className:`${w.m2}-file-tree`,style:{padding:v.Size.BasePadding/2},children:[B?(0,i.jsx)(h.Z,{content:"Unfold [Dependencies & Chunks] Box.",children:(0,i.jsx)(a.Z,{onClick:()=>O(!B),style:{marginRight:8}})}):(0,i.jsx)(h.Z,{content:"Fold [Dependencies & Chunks] Box.",children:(0,i.jsx)(d.Z,{onClick:()=>O(!B),style:{marginRight:8}})}),(0,i.jsx)(y.ZP.Group,{options:[{label:"Dependencies",value:0},{label:"Chunks",value:1}],onChange:e=>R(e.target.value),value:_,optionType:"button",buttonStyle:"solid",size:"middle"}),B?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[0===_&&(0,i.jsx)(g.Z,{span:24,style:{marginTop:v.Size.BasePadding/2},children:t?(0,i.jsx)(I.Z,{module:t,dependencies:r,cwd:E}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})}),1===_&&(0,i.jsx)(g.Z,{span:18,style:{marginTop:v.Size.BasePadding/2},children:t?(0,i.jsx)(Z.Nu,{api:u.SDK.ServerAPI.API.GetChunksByModuleId,body:{moduleId:t.id},children:e=>(0,i.jsx)(M.t,{chunks:e})}):(0,i.jsx)(j.Z,{className:`${w.m2}-empty`})})]})]})})]})]})}},18602:function(e,t,n){"use strict";n.d(t,{H:function(){return j}});var r=n(31549),i=n(61331),s=n(78741),o=n(89246),l=n(95103),a=n(63272),d=n(99892),u=n(13019),c=n(8105),h=n(44194),f=n(43622),p=n(77422),m=n(61550),x=n(53394),g=n(31837);n(3755);let j=({modules:e,cwd:t,moduleId:n})=>{let[j,y]=(0,h.useState)("");return(0,r.jsx)(f.Nu,{api:s.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+n},children:({module:n,dependencies:h})=>(0,r.jsx)(f.Nu,{api:s.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:s=>(0,r.jsx)(x.r.Consumer,{children:({moduleJumpList:f,setModuleJumpList:x})=>(0,r.jsxs)(o.Z,{title:(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(i.Z,{onClick:()=>{x([...f.slice(0,-1)])}}),(0,r.jsx)(a.Z.Title,{code:!0,level:5,style:{marginBottom:"revert"},children:`Current Module: ${(0,p.getShortPath)(n.path)}`})]}),style:{height:"100%"},children:[(0,r.jsx)(d.Z,{justify:"start",style:{marginBottom:20},children:(0,r.jsx)(u.Z,{children:(0,r.jsx)(c.Z,{allowClear:!0,placeholder:"Select Chunk To Filter Modules Links",showSearch:!0,style:{width:300},options:(0,m.Z)(s).map(e=>({label:e.name,value:e.id})),onChange:e=>y(e)})})}),(0,r.jsx)(d.Z,{justify:"start",align:"middle",children:(0,r.jsx)(u.Z,{span:24,children:(0,r.jsx)(g.V,{curModule:n,modules:e,dependencies:h,cwd:t,selectedChunk:j})})})]})})})})}},39465:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(86938),i=n(44194),s=n(77422),o=n(3022);function l(e,t,n){return(0,i.useMemo)(()=>t&&t?.length?{data:(0,r.Z)(t?.map((t,r)=>({key:`0-${r}`,name:s.getShortPath(t.path),__RESOURCEPATH__:t.path,id:t.id,level:1,chunks:t.chunks,size:s.formatSize(t.size.parsedSize),kind:t.kind,concatModules:t.concatenationModules,fatherPath:s.getShortPath(n.path),dependencies:t.dependencies,getChildren:()=>(function e(t,n,r){let i=(0,o.e)(t,n);return i?.map((i,o)=>({key:`0-${o}`,name:s.getShortPath(i.path),__RESOURCEPATH__:i.path,id:i.id,level:1,size:s.formatSize(i.size.parsedSize),kind:i.kind,chunks:i.chunks,concatModules:i.concatenationModules,fatherPath:s.getShortPath(r.path),dependencies:i.dependencies,getChildren:()=>e(i,n,t),children:i.imported}))})(t,e,n),children:t.imported})))}:{filterData:[],data:[]},[t,n])}},3022:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return s}});var r=n(41766),i=n(86938);let s=(e,t)=>{if(e?.imported?.length){let n=e.imported.map(e=>(0,r.Z)(t,t=>t.id===Number(e)));return(0,i.Z)(n)}return[]},o=(e,t,n,r)=>{if(r.has(e.id)){if(r.get(e.id))return}else r.set(e.id,!0);let i=s(e,t);if(!!i.length)i.forEach(e=>{e?.chunks?.forEach(e=>{0>n.indexOf(e)&&n.push(e)}),o(e,t,n,r)})}},15837:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="ModuleResolve",s=r.Client.RsdoctorClientRoutes.ModuleResolve},90025:function(e,t,n){"use strict";n.d(t,{BC:function(){return l.B},T3:function(){return a},u2:function(){return l.u}});var r=n(31549),i=n(89246),s=n(90647),o=n(51264),l=n(15837);let a=()=>(0,r.jsx)("div",{children:(0,r.jsx)(i.Z,{title:"Webpack Resolver Analysis",extra:(0,r.jsx)(o.S,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,r.jsx)(s.gY,{})})})},38613:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Overall",s=r.Client.RsdoctorClientRoutes.Overall},11970:function(e,t,n){"use strict";n.d(t,{BC:function(){return d.B},T3:function(){return u}});var r=n(31549),i=n(78741),s=n(14496),o=n(43622),l=n(23312),a=n(45838),d=n(38613);let u=(0,o.U$)({api:i.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{summary:t,configs:n,root:i,envinfo:o,errors:d}=e;return(0,r.jsxs)("div",{children:[(0,r.jsxs)(a.u,{children:[(0,r.jsx)(l.lj,{configs:n,cwd:i,envinfo:o,alerts:d}),(0,r.jsx)(l.vD,{errors:d,cwd:i}),(0,r.jsx)(l.F8,{summary:t})]}),(0,r.jsx)(s.$X,{}),(0,r.jsx)(s.CG,{})]})}})},45838:function(e,t,n){"use strict";n.d(t,{u:function(){return d}});var r=n(31549),i=n(37963),s=n(99892),o=n(13019),l=n(44194),a=n(95925);let d=({children:e})=>{let{sm:t,xxl:n}=i.ZP.useBreakpoint(),d=(0,l.useMemo)(()=>n?[2*a.Size.BasePadding,a.Size.BasePadding]:[a.Size.BasePadding,a.Size.BasePadding],[t,n]);return(0,r.jsx)(s.Z,{gutter:d,wrap:!0,style:{marginBottom:a.Size.BasePadding},children:e.map((e,t)=>(0,r.jsx)(o.Z,{xs:24,sm:24,md:12,lg:8,children:e},t))})}},68394:function(e,t,n){"use strict";n.d(t,{d:function(){return L}});var r=n(31549),i=n(44194),s=n(95103),o=n(63272),l=n(44242),a=n(99892),d=n(13019),u=n(8105),c=n(73176),h=n(74379),f=n(10855),p=n(97770),m=n(51445),x=n(61550),g=n(15890),j=n(20942),y=n(49647),S=n(68673),Z=n(14122),b=n(19547),v=n(93768),C=n(23193),M=n(41130),P=n(75841),w=n(78741),I=n(77422),k=n(95925),D=n(30524),E=n(33448),T=n(36749),z=n(55872),A=n(84290),N=n(94771),_=n(46641);let R={JS:[w.Constants.JSExtension],CSS:[w.Constants.CSSExtension],HTML:[w.Constants.HtmlExtension],Imgs:w.Constants.ImgExtensions,Fonts:w.Constants.FontExtensions,Media:w.Constants.MediaExtensions,Others:[]},B=(0,m.Z)((0,x.Z)(R)),O=({data:e})=>{let t=(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:e.alias}),(0,r.jsx)(l.Z,{title:(0,r.jsxs)(s.Z,{style:{color:"inherit"},direction:"vertical",children:[e.current?(0,r.jsxs)(o.Z.Text,{style:{color:"inherit"},children:["Current realpath: ",e.current.path]}):null,e.baseline?(0,r.jsxs)(o.Z.Text,{style:{color:"inherit"},children:["Baseline realpath: ",e.baseline.path]}):null]}),children:(0,r.jsx)(S.Z,{})})]});return e.baseline&&!e.current?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(Z.Z,{style:{color:k.Color.Red}}),t]}):!e.baseline&&e.current?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(b.Z,{style:{color:k.Color.Green}}),t]}):e.baseline&&e.current?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(v.Z,{style:{color:k.Color.Yellow}}),t]}):t},L=({baseline:e,current:t,outputFilename:n})=>{let[Z,b]=(0,i.useState)(),[v,L]=(0,i.useState)([]),[$,G]=(0,i.useState)([]),[F,W]=(0,i.useState)(A.E.Size),[K,U]=(0,i.useState)(null),[H,V]=(0,i.useState)(null),{assets:J}=e.chunkGraph,{assets:Y}=t.chunkGraph,q=(0,i.useMemo)(()=>{let e={};return K&&H?(e.choose={alias:`${K}
80
+ ${H}`,current:Y.find(e=>e.path===H),baseline:J.find(e=>e.path===K)},(0,x.Z)(e)):(J.forEach(t=>{let r=_.kJ.ZP(t.path,n);e[r]?console.warn("[Baseline Asset Exists]: ",t,e):e[r]={alias:r,baseline:t}}),Y.forEach(t=>{let r=_.kJ.ZP(t.path,n);!e[r]&&(e[r]={alias:r}),e[r].current=t}),(0,x.Z)(e))},[J,Y,K,H]),X=(0,i.useMemo)(()=>{let r=q.slice();if(Z&&(r=r.filter(e=>e.alias.indexOf(Z)>-1)),v.length){let e=(0,m.Z)(v.map(e=>R[e])),t=v.indexOf("Others")>-1;r=r.filter(n=>{let r=n.baseline||n.current;return!!_.kJ.Zl(r,e)||!!t&&!_.kJ.Zl(r,B)})}if($.length&&(r=r.filter(e=>{if(e.baseline&&!e.current)return(0,g.Z)($,A.$.Deleted);if(!e.baseline&&e.current)return(0,g.Z)($,A.$.New);if(e.baseline&&e.current)return e.baseline.size===e.current.size?(0,g.Z)($,A.$.NotChanged):(0,g.Z)($,A.$.Changed);return!1})),F){if(F===A.E.Name)r.sort((e,t)=>e.alias.localeCompare(t.alias));else{let{prev:i,others:s}=r.reduce((e,t)=>(t.current?t.baseline?e.prev.unshift(t):e.prev.push(t):e.others.push(t),e),{prev:[],others:[]});r=[...i.sort((r,i)=>{if(i.current&&r.current){if(F===A.E.Delta){let{percent:s}=_.kJ.bM(e.chunkGraph,t.chunkGraph,e=>_.kJ.ZP(e.path,n)===r.alias),{percent:o}=_.kJ.bM(e.chunkGraph,t.chunkGraph,e=>_.kJ.ZP(e.path,n)===i.alias);return o-s}return i.current.size-r.current.size}return -1}),...s]}}return r},[q,Z,v,$,F]),Q=(0,i.useMemo)(()=>(0,j.Z)(X,e=>e.current?e.current.size:0)||0,[X]),ee=(0,i.useMemo)(()=>(0,j.Z)(X,e=>e.baseline?e.baseline.size:0)||0,[X]);return(0,r.jsxs)(a.Z,{gutter:[k.Size.BasePadding,k.Size.BasePadding],children:[(0,r.jsxs)(d.Z,{span:24,children:[(0,r.jsxs)(s.Z,{wrap:!0,children:[(0,r.jsx)(E.a,{icon:(0,r.jsx)(C.Z,{}),label:"",labelStyle:{width:45},placeholder:"Search by file name",onChange:e=>{b(e)}}),(0,r.jsx)(u.Z,{mode:"multiple",placeholder:"Filter by file type",style:{width:250},options:(0,y.Z)(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{L(e)}}),(0,r.jsx)(u.Z,{mode:"multiple",placeholder:"Filter by file changed type",style:{width:200},options:(0,x.Z)(A.$).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{G(e)}}),(0,r.jsx)(u.Z,{suffixIcon:(0,r.jsx)(M.Z,{}),options:(0,x.Z)(A.E).map(e=>({label:e,value:e})),value:F,onChange:e=>{W(e)}})]}),(0,r.jsxs)(a.Z,{style:{marginTop:10},gutter:[6,6],children:[(0,r.jsx)(d.Z,{children:(0,r.jsx)(c.ZP,{children:"Select Baseline Asset and Current Asset to Diff "})}),(0,r.jsx)(d.Z,{children:(0,r.jsx)(u.Z,{allowClear:!0,placeholder:"select baseline assets",showSearch:!0,style:{width:300},options:(0,x.Z)(e.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>U(e)})}),(0,r.jsx)(d.Z,{children:(0,r.jsx)(u.Z,{allowClear:!0,placeholder:"select current assets",showSearch:!0,style:{width:300},options:(0,x.Z)(t.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>V(e)})})]})]}),(0,r.jsx)(d.Z,{span:24,children:(0,r.jsx)(h.Z,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:X,rowKey:e=>e.alias,expandable:{expandedRowRender:n=>(0,r.jsx)("div",{style:{margin:k.Size.BasePadding/3},children:(0,r.jsx)(T.Cn,{data:n,baseline:e,current:t})}),columnTitle:(0,r.jsx)(l.Z,{title:"Click to expand row to see the modules which the chunk contains",placement:"left",children:(0,r.jsx)(P.Z,{style:{cursor:"pointer"}})})},columns:[{title:(0,r.jsxs)(l.Z,{title:(0,r.jsxs)(s.Z,{direction:"vertical",children:[(0,r.jsxs)(o.Z.Text,{style:{color:"inherit"},children:["filtered assets is ",X.length]}),(0,r.jsxs)(o.Z.Text,{style:{color:"inherit"},children:["total assets is ",q.length]})]}),children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:"Assets"}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsxs)(o.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[X.length,"/",q.length]}),(0,r.jsx)(S.Z,{})]}),render:(e,t)=>(0,r.jsx)(O,{data:t})},{title:()=>{let e=(0,I.formatSize)(Q),t=_.kJ.OC(ee,Q);return(0,r.jsxs)(l.Z,{title:`Current size is ${e}, Delta is ${(0,I.formatPercent)(t.percent)}`,children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:"Current"}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsxs)(o.Z.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:[(0,r.jsx)(o.Z.Text,{style:{fontSize:"inherit",marginRight:8},children:e}),(0,r.jsx)(D.RA,{fontSize:"inherit",baseline:ee,current:Q}),(0,N.W)(ee,Q,ee>Q?w.Client.RsdoctorClientDiffState.Down:w.Client.RsdoctorClientDiffState.Up,{fontSize:10,fontWeight:400,marginLeft:4})]}),(0,r.jsx)(S.Z,{})]})},render:(i,l)=>{if(l.current){let{percent:i,state:a}=_.kJ.bM(e.chunkGraph,t.chunkGraph,e=>_.kJ.ZP(e.path,n)===l.alias),d=_.kJ.AL(l.current,t.chunkGraph.chunks);return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{children:(0,I.formatSize)(l.current.size)}),(0,r.jsx)(D.gG,{percent:i,state:a}),d?(0,r.jsx)(p.Z,{color:k.Color.Blue,children:"initial"}):null]})}return"-"}},{title:()=>{let e=(0,I.formatSize)(ee);return(0,r.jsxs)(l.Z,{title:`Baseline size is ${e}`,children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:"Baseline"}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsx)(o.Z.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:e}),(0,r.jsx)(S.Z,{})]})},render:(t,n)=>{if(n.baseline){let t=_.kJ.AL(n.baseline,e.chunkGraph.chunks);return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(o.Z.Text,{children:(0,I.formatSize)(n.baseline.size)}),t?(0,r.jsx)(p.Z,{color:k.Color.Blue,children:"initial"}):null]})}return"-"}},{title:"Actions",key:"actions",render:(e,t)=>(0,r.jsx)(z.H,{file:t.alias,data:[{baseline:t.baseline?.content,current:t.current?.content,group:"assets"}]})}]})})]})}},61842:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(31549),i=n(99892),s=n(13019),o=n(95103),l=n(63272),a=n(78741),d=n(95925),u=n(30524),c=n(77422),h=n(57448),f=n(2740),p=n(46641);let m=({baseline:e,current:t,assetsDiffResult:n})=>{let m=(0,c.useUniqModules)(e.moduleGraph.modules),x=(0,c.useUniqModules)(t.moduleGraph.modules),g=(0,c.useDuplicatePackagesByErrors)(e.errors),j=(0,c.useDuplicatePackagesByErrors)(t.errors),y=(0,c.useModuleGraph)(e.moduleGraph),S=(0,c.useModuleGraph)(t.moduleGraph),Z=e.root,b=t.root,v=(0,f.G1)({baseline:e.packageGraph,current:t.packageGraph}),C=[{title:["Bundle Size"],value:[n.all.total]},{title:["Total JS","Initial JS"],value:[n.js.total,n.js.initial]},{title:["Total CSS","Initial CSS"],value:[n.css.total,n.css.initial]},{title:["Images","Fonts","Media"],value:[n.imgs.total,n.fonts.total,n.media.total]},{title:["HTML"],value:[n.html.total]},{title:["Others"],value:[n.others.total]}];return(0,r.jsxs)(i.Z,{gutter:[d.Size.BasePadding,d.Size.BasePadding],wrap:!0,style:{marginBottom:d.Size.BasePadding},children:[C.map(e=>(0,r.jsx)(s.Z,{style:{minWidth:335},children:(0,r.jsx)(u.EX,{titles:e.title,datas:e.value,showPercentInTitle:!0})},e.title.join(","))),(0,r.jsx)(s.Z,{style:{minWidth:335},children:(0,r.jsx)(u.EX,{titles:["Duplicate Packages"],datas:[{size:{baseline:g.length,current:j.length},count:{baseline:g.length,current:j.length},percent:0,state:a.Client.RsdoctorClientDiffState.Equal}],formatter:(n,i)=>(0,r.jsx)(h.Pq,{duplicatePackages:"baseline"===i?g:j,moduleGraph:"baseline"===i?y:S,cwd:"baseline"===i?Z:b,buttonProps:{size:"small"},moduleCodeMap:"baseline"===i?e.moduleCodeMap:t.moduleCodeMap})})}),(0,r.jsx)(s.Z,{style:{minWidth:335},children:(0,r.jsx)(u.EX,{titles:["Modules"],datas:[{size:{baseline:m.length,current:x.length},count:{baseline:m.length,current:x.length},percent:0,state:a.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>{if("baseline"===t)return e;let n=p.kJ.OC(m.length,x.length);return(0,r.jsxs)(o.Z,{style:{fontSize:"inherit"},children:[(0,r.jsx)(l.Z.Text,{style:{fontSize:"inherit"},children:e}),(0,r.jsx)(u.gG,{...n})]})}})}),(0,r.jsx)(s.Z,{style:{minWidth:335},children:(0,r.jsx)(u.EX,{titles:[(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z.Text,{style:{color:"inherit"},children:"Packages"}),(0,r.jsx)(f.J$,{dataSource:v})]},"0")],datas:[{size:{baseline:v.filter(e=>e.baseline).length,current:v.filter(e=>e.current).length},count:{baseline:v.filter(e=>e.baseline).length,current:v.filter(e=>e.current).length},percent:0,state:a.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>"baseline"===t?e:(0,r.jsx)(o.Z,{children:e})})})]})}},55872:function(e,t,n){"use strict";n.d(t,{H:function(){return p}});var r=n(31549),i=n(44194),s=n(99892),o=n(13019),l=n(35554),a=n(63272),d=n(86058),u=n(46591),c=n(95925),h=n(57448);let f=({file:e,data:t})=>{let[n,d]=(0,i.useState)(t[0].group),h=t.find(e=>e.group===n);return(0,r.jsxs)(s.Z,{wrap:!0,gutter:[c.Size.BasePadding,c.Size.BasePadding],style:{height:"100%"},children:[t.length>1?(0,r.jsx)(o.Z,{span:24,children:(0,r.jsx)(l.Z,{style:{marginTop:c.Size.BasePadding},value:n,options:t.map(e=>e.group),onChange:e=>d(e)})}):null,h?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(o.Z,{span:12,children:(0,r.jsx)(a.Z.Text,{strong:!0,children:h.baselineTitle||"Baseline"})}),(0,r.jsx)(o.Z,{span:12,children:(0,r.jsx)(a.Z.Text,{strong:!0,children:h.currentTitle||"Current"})}),(0,r.jsx)(o.Z,{span:24,children:(0,r.jsx)(u.ZX,{filepath:e,before:h.baseline||"",after:h.current||"",editorProps:{height:Math.floor(window.innerHeight/1.25)}})})]},n):null]})},p=({text:e="View Changes",...t})=>(0,r.jsx)(h.XU,{text:e,buttonProps:{size:"small",icon:(0,r.jsx)(d.Z,{})},drawerProps:{destroyOnClose:!0,title:`Content diff for "${t.file}"`},children:(0,r.jsx)(f,{...t})})},84290:function(e,t,n){"use strict";n.d(t,{$:function(){return s},E:function(){return o}});var r,i,s=((r=s||{}).New="New",r.Changed="Changed",r.Deleted="Deleted",r.NotChanged="Not Changed",r);var o=((i=o||{}).Name="Sorted by Name",i.Size="Sorted by Size",i.Delta="Sorted by Delta",i)},47201:function(e,t,n){"use strict";n.d(t,{X:function(){return M}});var r=n(31549),i=n(62098),s=n(44242),o=n(95103),l=n(89246),a=n(63272),d=n(10855),u=n(73176),c=n(4817),h=n(76721),f=n(44194),p=n(68673),m=n(68875),x=n(78741),g=n(95925),j=n(61842),y=n(50994),S=n(68394),Z=n(66954),b=n(2740),v=n(2804),C=n(46641);let M=({manifests:e})=>((0,f.useEffect)(()=>{console.log("BundleDiff Manifests: ",e)},[e]),(0,r.jsx)(v.T,{api:x.SDK.ServerAPI.API.GetBundleDiffSummary,manifests:e,children:(e,t)=>{let n=e.chunkGraph===t.chunkGraph,f=e.chunkGraph,x=n?f:t.chunkGraph,v=C.kJ.vH(f,x);return(0,r.jsxs)("div",{children:[(0,r.jsxs)(i.Z.Group,{children:[(0,r.jsx)(s.Z,{placement:"leftBottom",title:(0,r.jsx)(o.Z,{direction:"vertical",children:[{title:"Baseline",data:e},{title:"Current",data:t}].map(({title:e,data:t})=>(0,r.jsx)(l.Z,{size:"small",children:(0,r.jsxs)(o.Z,{direction:"vertical",children:[(0,r.jsx)(a.Z.Text,{strong:!0,children:e}),(0,r.jsxs)(o.Z,{style:{fontSize:10},children:[(0,r.jsx)(a.Z.Text,{style:{fontSize:"inherit",width:30,display:"inline-block"},children:"Hash"}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(a.Z.Text,{type:"secondary",style:{fontSize:"inherit"},children:t.hash||"-"})]}),t.cloudManifestUrl?(0,r.jsx)(u.ZP,{type:"link",size:"small",style:{padding:0,fontSize:10},onClick:()=>window.open(t.cloudManifestUrl),children:"Open File"}):null]})},e))}),children:(0,r.jsx)(i.Z,{icon:(0,r.jsx)(p.Z,{})})}),(0,r.jsx)(c.Z,{title:(0,r.jsxs)(a.Z.Text,{children:["Are you sure to",(0,r.jsx)(a.Z.Text,{strong:!0,children:" re-upload "}),"json files for bundle diff?"]}),onConfirm:()=>{},okText:"Yes",cancelText:"Cancel",placement:"topLeft",trigger:"hover",children:(0,r.jsx)(i.Z,{icon:(0,r.jsx)(m.Z,{})})}),(0,r.jsx)(i.Z.BackTop,{})]}),(0,r.jsx)(j.h,{baseline:e,current:t,onlyBaseline:n,assetsDiffResult:v}),(0,r.jsx)(h.Z,{defaultActiveKey:"Overview",tabBarStyle:{marginBottom:g.Size.BasePadding/3},items:[{label:"Overview",key:"Overview",children:(0,r.jsx)(y.g,{assetsDiffResult:v})},{label:"Assets",key:"Assets",children:(0,r.jsx)(S.d,{outputFilename:e.outputFilename,baseline:e,current:t})},{label:"Modules",key:"Modules",children:(0,r.jsx)(Z.jv,{baseline:e,current:t,onlyBaseline:n,assetsDiffResult:v})},{label:"Packages",key:"Packages",children:(0,r.jsx)(b.bs,{baseline:e.packageGraph,current:t.packageGraph})}].map(e=>({...e,label:(0,r.jsx)(a.Z.Text,{strong:!0,children:e.label})}))})]})}}))},66954:function(e,t,n){"use strict";n.d(t,{J9:function(){return I},TN:function(){return w},jv:function(){return k}});var r=n(31549),i=n(44194),s=n(44242),o=n(97770),l=n(99892),a=n(13019),d=n(95103),u=n(8105),c=n(74379),h=n(63272),f=n(10855),p=n(61550),m=n(15890),x=n(23813),g=n(23193),j=n(68673),y=n(77422),S=n(95925),Z=n(33448),b=n(55872),v=n(84290),C=n(94386),M=n(36749),P=n(46641);function w(e){if(e.baseline&&!e.current)return v.$.Deleted;if(!e.baseline&&e.current)return v.$.New;if(e.baseline&&e.current)return e.baseline.size.sourceSize===e.current.size.sourceSize&&e.baseline.size.parsedSize===e.current.size.parsedSize?v.$.NotChanged:v.$.Changed;throw Error("Update Type not match")}let I=({type:e})=>e===v.$.NotChanged?(0,r.jsx)(s.Z,{title:"It hasn't changed between Baseline and Current",children:(0,r.jsx)(o.Z,{color:"success",children:"Not Changed"})}):e===v.$.Changed?(0,r.jsx)(s.Z,{title:"It has been changed between Baseline and Current",children:(0,r.jsx)(o.Z,{color:"warning",children:"Changed"})}):e===v.$.New?(0,r.jsx)(s.Z,{title:"It is created in Current",children:(0,r.jsx)(o.Z,{color:"error",children:"New"})}):e===v.$.Deleted?(0,r.jsx)(s.Z,{title:"It has been deleted in Current",children:(0,r.jsx)(o.Z,{color:"error",children:"Deleted"})}):null,k=({baseline:e,current:t})=>{let n=(0,i.useMemo)(()=>(0,y.useUniqModules)(e.moduleGraph.modules),[e]),k=(0,i.useMemo)(()=>(0,y.useUniqModules)(t.moduleGraph.modules),[t]),D=e.chunkGraph.chunks,E=t.chunkGraph.chunks,T=e.root,z=t.root,[A,N]=(0,i.useState)(),[_,R]=(0,i.useState)([]),B=(0,i.useMemo)(()=>{let e={};return n.forEach(t=>{let n=t.webpackId?.replace(M._z,"")||t.path?.replace(M._z,"");e[n]?console.warn("[Baseline Module Exists]: ",t,e):e[n]={path:n,baseline:t}}),k.forEach(t=>{let n=t.webpackId?.replace(M._z,"")||t.path?.replace(M._z,"");!e[n]&&(e[n]={path:n}),e[n].current=t}),(0,p.Z)(e)},[n,k]),O=(0,i.useMemo)(()=>{let e=B.slice();return A&&(e=e.filter(e=>e.path.indexOf(A)>-1)),_.length&&(e=e.filter(e=>(0,m.Z)(_,w(e)))),e},[B,A,_]),{bFilteredModulesLength:L,cFilteredModulesLength:$}=(0,i.useMemo)(()=>({bFilteredModulesLength:O.filter(e=>e.baseline).length,cFilteredModulesLength:O.filter(e=>e.current).length}),[O]);return(0,r.jsxs)(l.Z,{gutter:[S.Size.BasePadding,S.Size.BasePadding],children:[(0,r.jsx)(a.Z,{span:24,children:(0,r.jsxs)(d.Z,{wrap:!0,children:[(0,r.jsx)(Z.a,{icon:(0,r.jsx)(g.Z,{}),label:"",labelStyle:{width:45},placeholder:"Search by name",onChange:e=>{N(e)}}),(0,r.jsx)(u.Z,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:(0,p.Z)(v.$).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{R(e)}})]})}),(0,r.jsx)(a.Z,{span:24,children:(0,r.jsx)(c.Z,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},scroll:{x:1700},dataSource:O,rowKey:e=>e.path,columns:[{fixed:"left",title:(0,r.jsxs)(s.Z,{title:(0,r.jsxs)(d.Z,{direction:"vertical",children:[(0,r.jsxs)(h.Z.Text,{style:{color:"inherit"},children:["filtered modules is ",O.length," (Current & Baseline)"]}),(0,r.jsxs)(h.Z.Text,{style:{color:"inherit"},children:["total modules is ",B.length," (Current & Baseline)"]})]}),children:[(0,r.jsx)(h.Z.Text,{strong:!0,children:"Modules"}),(0,r.jsx)(f.Z,{type:"vertical"}),(0,r.jsxs)(h.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[O.length,"/",B.length]}),(0,r.jsx)(j.Z,{})]}),render:(e,t)=>{let{alias:n,inNodeModules:i}=(0,y.beautifyModulePath)(t.path,t.baseline?T:z);return(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(s.Z,{title:t.path,children:(0,r.jsx)(h.Z.Text,{copyable:{text:t.path},children:n})}),(0,r.jsx)(I,{type:w(t)}),i?(0,r.jsx)(o.Z,{color:"warning",children:"node_modules"}):null]})}},(0,M.tT)("current",L,$),(0,M.tT)("baseline",L,$),{title:"in Assets",render:(e,t)=>{let n=[],i=[];return(t.current&&P.kJ.o_(t.current,E).forEach(e=>e.assets.forEach(e=>i.push(e))),t.baseline&&P.kJ.o_(t.baseline,D).forEach(e=>e.assets.forEach(e=>n.push(e))),n.length||i.length)?(0,r.jsxs)(d.Z,{direction:"vertical",children:[(0,x.Z)(i).filter(Boolean).map(e=>(0,r.jsx)(C.Ct,{label:"Current",value:e},`c_${e}`)),(0,x.Z)(n).filter(Boolean).map(e=>(0,r.jsx)(C.Ct,{label:"Baseline",value:e},`b_${e}`))]}):null}},{title:"Actions",width:200,render:(n,i)=>{let s=w(i)===v.$.Changed;return(0,r.jsxs)(d.Z,{direction:"vertical",style:{maxWidth:170},children:[s?(0,r.jsx)(b.H,{text:"View Changes",file:i.path,data:[{baseline:e.moduleCodeMap[i.baseline?.id]?.source,current:t.moduleCodeMap[i.current?.id]?.source,group:"Source"},{baseline:e.moduleCodeMap[i.baseline?.id]?.transformed,current:t.moduleCodeMap[i.current?.id]?.transformed,group:"Transformed Source"},{baseline:e.moduleCodeMap[i.baseline?.id]?.parsedSource,current:t.moduleCodeMap[i.current?.id]?.parsedSource,group:"Parsed Source"}]}):null,(0,r.jsx)(b.H,{text:"Current Result Viewer",file:i.path,data:[{baseline:t.moduleCodeMap[i.current?.id]?.source,current:t.moduleCodeMap[i.current?.id]?.transformed,baselineTitle:"Current Source",currentTitle:"Current Transformed Source",group:"Transformed Source"},{baseline:t.moduleCodeMap[i.current?.id]?.source,current:t.moduleCodeMap[i.current?.id]?.parsedSource,baselineTitle:"Current Source",currentTitle:"Current Parsed Source",group:"Parsed Source"}]})]})}}]})})]})}},50994:function(e,t,n){"use strict";n.d(t,{g:function(){return f}});var r=n(31549),i=n(44194),s=n(74379),o=n(63272),l=n(95103),a=n(97770),d=n(77422),u=n(30524),c=n(95925),h=n(94771);let f=({assetsDiffResult:e})=>{let t=[{type:"JS",data:e.js},{type:"CSS",data:e.css},{type:"Imgs",data:e.imgs},{type:"Fonts",data:e.fonts},{type:"Media",data:e.media},{type:"HTML",data:e.html},{type:"Others",data:e.others}];return(0,r.jsx)(s.Z,{bordered:!0,pagination:!1,dataSource:t,rowKey:e=>e.type,style:{marginTop:c.Size.BasePadding-c.Size.BasePadding/4},columns:[{title:"File Type",dataIndex:"type",key:"type",render:e=>(0,r.jsx)(o.Z.Text,{strong:!0,children:e})},{title:"Size",dataIndex:"data",key:"size",children:[{title:"Current",dataIndex:"data",key:"csize",render:e=>{let t=(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(o.Z.Text,{strong:!0,children:(0,d.formatSize)(e.total.size.current)}),(0,r.jsx)(u.gG,{percent:e.total.percent,state:e.total.state}),(0,h.W)(e.total.size.baseline,e.total.size.current,e.total.state)]});return e.initial?(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Total"}),t]}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Initial"}),(0,r.jsx)(o.Z.Text,{strong:!0,children:(0,d.formatSize)(e.initial.size.current)}),(0,r.jsx)(u.gG,{percent:e.initial.percent,state:e.initial.state}),(0,h.W)(e.initial.size.baseline,e.initial.size.current,e.initial.state)]})]}):(0,r.jsx)(l.Z,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bsize",render:e=>{let t=(0,r.jsx)(o.Z.Text,{children:(0,d.formatSize)(e.total.size.baseline)});return e.initial?(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Total"}),t]}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Initial"}),(0,r.jsx)(o.Z.Text,{children:(0,d.formatSize)(e.initial.size.baseline)})]})]}):t}}]},{title:"Count",dataIndex:"data",key:"count",children:[{title:"Current",dataIndex:"data",key:"ccount",render:e=>{let t=(0,r.jsx)(o.Z.Text,{strong:!0,children:e.total.count.current});return e.initial?(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Total"}),t]}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Initial"}),(0,r.jsx)(o.Z.Text,{strong:!0,children:e.initial.count.current})]})]}):(0,r.jsx)(l.Z,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bcount",render:e=>{let t=(0,r.jsx)(o.Z.Text,{children:e.total.count.baseline});return e.initial?(0,r.jsxs)(l.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Total"}),t]}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(a.Z,{color:c.Color.Blue,children:"Initial"}),(0,r.jsx)(o.Z.Text,{children:e.initial.count.baseline})]})]}):(0,r.jsx)(l.Z,{children:t})}}]}]})}},2740:function(e,t,n){"use strict";n.d(t,{G1:function(){return P},J$:function(){return M},bs:function(){return w}});var r=n(31549),i=n(44194),s=n(95103),o=n(47146),l=n(99892),a=n(13019),d=n(8105),u=n(63272),c=n(74379),h=n(10855),f=n(44242),p=n(61550),m=n(23813),x=n(20942),g=n(77422),j=n(95925),y=n(66954),S=n(84290),Z=n(94386),b=n(30524);let v=e=>{if(e.baseline&&e.current){let t=e.baseline.map(e=>e.version).sort().join();return t===e.current.map(e=>e.version).sort().join()?S.$.NotChanged:S.$.Changed}return e.baseline||e.current?e.baseline&&!e.current?S.$.Deleted:S.$.New:S.$.NotChanged},C=e=>v(e)!==S.$.NotChanged,M=({dataSource:e})=>{let{newCount:t,deleteCount:n,changedCount:o}=(0,i.useMemo)(()=>({newCount:e.filter(e=>e.updateType===S.$.New).length,deleteCount:e.filter(e=>e.updateType===S.$.Deleted).length,changedCount:e.filter(e=>e.updateType===S.$.Changed).length}),[e]);return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(Z.Ct,{label:"New",value:t,type:t>0?"error":"default",tooltip:`Current has ${t} packages which not found in Baseline`}),(0,r.jsx)(Z.Ct,{label:"Deleted",value:n,type:n>0?"error":"default",tooltip:`Current delete ${n} packages than Baseline`}),(0,r.jsx)(Z.Ct,{label:"Changed",value:o,type:o>0?"error":"default",tooltip:`Current has ${o} changed packages than Baseline`})]})},P=({baseline:e,current:t})=>{let{packages:n=[]}=e||{},{packages:r=[]}=t||{},i={},s=(e,t)=>{!i[e.name]&&(i[e.name]={name:e.name,updateType:S.$.NotChanged}),!i[e.name][t]&&(i[e.name][t]=[]),i[e.name][t].push(e)};n.forEach(e=>s(e,"baseline")),r.forEach(e=>s(e,"current"));let o=[],l=[];return(0,p.Z)(i).forEach(e=>{C(e)?o.push(e):l.push(e)}),o.concat(l).map(e=>({...e,updateType:v(e)}))},w=({baseline:e,current:t})=>{let{packages:n=[]}=e||{},{packages:w=[]}=t||{};if(!n.length&&!w.length)return(0,r.jsx)(o.Z,{});let I=(0,i.useMemo)(()=>(0,m.Z)(n.concat(w).map(e=>e.name)),[n,w]),[k,D]=(0,i.useState)([]),[E,T]=(0,i.useState)([]),z=(0,i.useMemo)(()=>P({baseline:e,current:t}),[e,t]),A=(0,i.useMemo)(()=>z.filter(e=>E.length?E.indexOf(e.updateType)>-1:!k.length||k.indexOf(e.name)>-1),[z,k,E]);return(0,r.jsxs)(l.Z,{gutter:[j.Size.BasePadding,j.Size.BasePadding],children:[(0,r.jsx)(a.Z,{span:24,style:{marginTop:16},children:(0,r.jsxs)(s.Z,{wrap:!0,children:[(0,r.jsx)(d.Z,{mode:"multiple",placeholder:"Filter by package names",style:{width:400},options:I.map(e=>{let t=z.find(t=>t.name===e);return t&&C(t)?{label:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{children:e}),(0,r.jsx)(y.J9,{type:v(t)})]}),value:e}:{label:e,value:e}}),allowClear:!0,onChange:e=>{D(e)}}),(0,r.jsx)(d.Z,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:(0,p.Z)(S.$).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{T(e)}})]})}),(0,r.jsx)(a.Z,{span:24,children:(0,r.jsx)(c.Z,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:A,rowKey:e=>e.name,columns:[{title:()=>(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{children:"Package Name"}),(0,r.jsx)(h.Z,{type:"vertical"}),(0,r.jsx)(f.Z,{title:`Filtered Package Count is ${A.length}, Total Package Count is ${z.length}`,children:(0,r.jsxs)(u.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:[A.length," / ",z.length]})})]}),render:(e,t)=>t.updateType!==S.$.NotChanged?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{children:t.name}),(0,r.jsx)(y.J9,{type:t.updateType})]}):t.name},{title:()=>(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{children:"Current"}),(0,r.jsx)(h.Z,{type:"vertical"}),(0,r.jsx)(M,{dataSource:z})]}),children:[{title:"Version",render:(e,t)=>t.current?(0,r.jsx)(s.Z,{direction:"vertical",children:t.current.map(e=>(0,r.jsx)(Z.Ct,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===S.$.Deleted?"error":t.updateType===S.$.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{let n=(0,x.Z)(t.current,e=>e.size.parsedSize),i=()=>(0,r.jsx)(b.RA,{baseline:(0,x.Z)(t.baseline,e=>e.size.parsedSize),current:n});return t.current?(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z.Text,{strong:t.updateType!==S.$.NotChanged,children:(0,g.formatSize)(n)}),(0,r.jsx)(i,{})]}):(0,r.jsx)(i,{})}}]},{title:"Baseline",children:[{title:"Version",render:(e,t)=>t.baseline?(0,r.jsx)(s.Z,{direction:"vertical",children:t.baseline.map(e=>(0,r.jsx)(Z.Ct,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===S.$.Deleted?"error":t.updateType===S.$.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{if(t.baseline){let e=(0,x.Z)(t.baseline,e=>e.size.parsedSize);return(0,r.jsx)(u.Z.Text,{children:(0,g.formatSize)(e)})}return null}}]}]})})]})}},36749:function(e,t,n){"use strict";n.d(t,{Cn:function(){return w},_z:function(){return C},tT:function(){return P}});var r=n(31549),i=n(68673),s=n(36542),o=n(95103),l=n(63272),a=n(10855),d=n(44242),u=n(74379),c=n(41681),h=n(73176),f=n(97770),p=n(42689),m=n(44194),x=n(78741),g=n(95925),j=n(77422),y=n(55872),S=n(66954),Z=n(84290),b=n(94771),v=n(46641);let C=/[a-fA-F0-9]{20,}/,M=(e,t,n)=>{let i=(e,n)=>(e.current?.size[t]||0)-(e.baseline?.size[t]||0)-(n.current?.size[t]||0)+(n.baseline?.size[t]||0),s=n?(e,t)=>i(e,t):(n,r)=>(n[e]?.size[t]||0)-(r[e]?.size[t]||0);return{width:200,sorter:(e,t)=>s(e,t),render:(n,i)=>{if(!i[e])return"-";let s=i[e].size[t];return(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z.Text,{children:(0,j.formatSize)(s)}),"current"===e?(0,b.W)(i.baseline?.size[t]||0,s,(i.baseline?.size[t]||0)>s?x.Client.RsdoctorClientDiffState.Down:x.Client.RsdoctorClientDiffState.Up):null]})}}},P=(e,t,n)=>{let[s,u]=(0,m.useState)(!1),c="baseline"===e;return{title:()=>{let s=c?t:n,u=(0,p.Z)(e),h=v.kJ.OC(t,n);return(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Z.Text,{children:u}),(0,r.jsx)(a.Z,{type:"vertical"}),(0,r.jsx)(d.Z,{title:(0,r.jsxs)(o.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z.Text,{style:{color:"inherit"},children:[u," modules is ",s]}),c?null:(0,r.jsxs)(l.Z.Text,{style:{color:"inherit"},children:["Percent is ",(0,j.formatPercent)(h.percent)]})]}),children:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:s}),(0,r.jsx)(i.Z,{})]})})]})},children:[{title:"Source Size",...M(e,"sourceSize",s)},{title:"Parsed Size",defaultSortOrder:c?void 0:"descend",...M(e,"parsedSize",s)}],filterSearch:!0,filters:[{text:"Show Changed",value:Z.$.NotChanged},{text:"Show All",value:"All"}],onFilter:(e,t)=>(e===Z.$.NotChanged?u(!0):u(!1),e!==Z.$.NotChanged||(0,S.TN)(t)!==e)}},w=({data:e,baseline:t,current:n})=>{let{modules:p}=t.moduleGraph,{modules:x}=n.moduleGraph,{chunks:Z}=t.chunkGraph,{chunks:b}=n.chunkGraph,M=t.root,w=n.root,[I,k]=(0,m.useState)(""),D=(0,m.useRef)(null),E=(e,t)=>{t(),k(e[0])},T=e=>{e(),k("")},z="__is_baseline__",A=(0,m.useMemo)(()=>e.baseline?v.kJ.hq(e.baseline,Z,p).map(e=>({...e,[z]:!0})).filter(e=>!e.concatenationModules?.length):[],[e,t]),N=(0,m.useMemo)(()=>e.current?v.kJ.hq(e.current,b,x).map(e=>({...e,[z]:!1})).filter(e=>!e.concatenationModules?.length):[],[e,n]),_=e=>(0,j.beautifyModulePath)(e.path,e.__is_baseline__?M:w),R=(0,m.useMemo)(()=>{let e=[...A,...N],t=new Map;return e.forEach(e=>{let n=e.webpackId?.replace(C,"")||e.path?.replace(C,""),r=t.get(n);!r&&(r={path:n}),e[z]?r.baseline=e:r.current=e,t.set(n,r)}),[...t.values()]},[A,N,I]),{bModulesCount:B,cModulesCount:O,totalCount:L}=(0,m.useMemo)(()=>{let e=e=>_(e).alias.indexOf(I)>-1,t=R.filter(e=>e.baseline),n=R.filter(e=>e.current),r=R.length;return I&&(t=t.filter(e),n=n.filter(e),r=R.filter(e).length),{bModulesCount:t.length,cModulesCount:n.length,totalCount:r}},[R,I]);return(0,r.jsx)(u.Z,{dataSource:R,rowKey:e=>e.path,size:"small",pagination:{size:"small"},bordered:!0,scroll:{x:1500},columns:[{fixed:"left",title:()=>(0,r.jsxs)("div",{children:[(0,r.jsxs)(l.Z.Text,{children:["Modules of ",`"${e.alias}"`]}),(0,r.jsx)(a.Z,{type:"vertical"}),(0,r.jsxs)(d.Z,{title:(0,r.jsxs)(o.Z,{direction:"vertical",children:[(0,r.jsxs)(l.Z.Text,{style:{color:"inherit"},children:["filtered modules: ",L]}),(0,r.jsxs)(l.Z.Text,{style:{color:"inherit"},children:["total modules: ",R.length]})]}),children:[(0,r.jsxs)(l.Z.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[L,"/",R.length]}),(0,r.jsx)(i.Z,{})]})]}),filterDropdown:({setSelectedKeys:e,selectedKeys:t,confirm:n,clearFilters:i})=>(0,r.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,r.jsx)(c.Z,{ref:D,placeholder:"Search by file name",value:t[0],onChange:t=>e(t.target.value?[t.target.value]:[]),onPressEnter:()=>E(t,n),style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(h.ZP,{type:"primary",onClick:()=>E(t,n),icon:(0,r.jsx)(s.Z,{}),size:"small",style:{width:90},children:"Search"}),(0,r.jsx)(h.ZP,{onClick:()=>{i&&T(i),e([]),E([],n)},size:"small",style:{width:90},children:"Reset"})]})]}),filterSearch:!0,filterIcon:e=>(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(l.Z.Text,{type:I?void 0:"secondary",style:{fontWeight:400},children:I||"Search by file name"}),(0,r.jsx)(s.Z,{style:{color:e?g.Color.Blue:void 0}})]}),onFilterDropdownOpenChange:e=>{e&&setTimeout(()=>D.current?.focus(),100)},onFilter:(e,t)=>_(t).alias.indexOf(e)>-1,render:(e,t)=>{let{alias:n,inNodeModules:i}=_(t);return(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(d.Z,{title:t.path,children:(0,r.jsx)(l.Z.Text,{copyable:{text:t.path},children:n})}),i?(0,r.jsx)(f.Z,{color:"warning",children:"node_modules"}):null,(0,r.jsx)(S.J9,{type:(0,S.TN)(t)})]})}},P("current",B,O),P("baseline",B,O),{title:"Actions",width:200,render:(e,i)=>(0,r.jsx)(o.Z,{direction:"vertical",style:{maxWidth:170},children:(0,r.jsx)(y.H,{text:"View Changes",file:i.path,data:[{baseline:t.moduleCodeMap[i.baseline?.id]?.source,current:n.moduleCodeMap[i.current?.id]?.source,group:"Source"},{baseline:t.moduleCodeMap[i.baseline?.id]?.transformed,current:n.moduleCodeMap[i.current?.id]?.transformed,group:"Transformed Source"},{baseline:t.moduleCodeMap[i.baseline?.id]?.parsedSource,current:n.moduleCodeMap[i.current?.id]?.parsedSource,group:"Parsed Source"}]})})}]})}},94771:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(31549),i=n(78741),s=n(63272),o=n(95925),l=n(77422);let a=(e,t,n,a)=>(0,r.jsx)(r.Fragment,{children:t-e==0?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(s.Z.Text,{strong:!0,style:{color:n===i.Client.RsdoctorClientDiffState.Up?o.Color.Red:o.Color.Green,...a},children:[n===i.Client.RsdoctorClientDiffState.Up?"+":"-",(0,l.formatSize)(Math.abs(t-e))]})})},2804:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var r=n(31549),i=n(78741),s=n(43622),o=n(77422);let l=e=>{let{api:t,body:n,children:l,manifests:a}=e,d=(0,o.useUrlQuery)(),[u,c]=d[i.Client.RsdoctorClientUrlQuery.BundleDiffFiles]?.split(",")||[];return a?.length?(0,r.jsx)(r.Fragment,{children:l(a[0].data,a[1].data)}):(0,r.jsx)(s.Nu,{api:t,body:n,manifestLoader:u?()=>(0,o.fetchManifest)(u):void 0,children:e=>(0,r.jsx)(s.Nu,{api:t,body:n,manifestLoader:c?()=>(0,o.fetchManifest)(c):void 0,children:t=>l(e,t)})})}},64293:function(e,t,n){"use strict";n.d(t,{BC:function(){return i}});var r=n(44194);let i=n(78741).Client.RsdoctorClientRoutes.BundleDiff;r.createContext({manifests:[],setManifests(e){},loading:!1,setLoading(e){},async withLoading(e){}})},77455:function(e,t,n){"use strict";n.d(t,{BC:function(){return s.BC},T3:function(){return o}});var r=n(31549),i=n(47201),s=n(64293);let o=()=>(0,r.jsx)(i.X,{manifests:[]})},4282:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});let r=n(78741).Client.RsdoctorClientRoutes.RuleIndex},488:function(e,t,n){"use strict";n.d(t,{BC:function(){return j.B},T3:function(){return y}});var r=n(31549),i=n(44194),s=n(78741),o=n(99892),l=n(13019),a=n(89246),d=n(95103),u=n(51927),c=n(63272),h=n(97770),f=n(65443),p=n(61550),m=n(23675),x=n(95925),g=n(77422),j=n(4282);let y=()=>{let e=(0,g.useUrlQuery)()[s.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode]||"",[t,n]=(0,i.useState)(s.Rule.RuleErrorMap[e]),j=(0,p.Z)(s.Rule.RuleErrorMap);return(0,i.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,r.jsxs)(o.Z,{gutter:x.Size.BasePadding/2,children:[(0,r.jsx)(l.Z,{span:8,children:(0,r.jsx)(a.Z,{title:(0,r.jsx)(m.D,{text:"list of the error codes."}),bordered:!0,children:(0,r.jsx)(d.Z,{direction:"vertical",children:j.map((e,i)=>(0,r.jsxs)(d.Z,{style:{marginTop:0===i?0:x.Size.BasePadding/2,cursor:"pointer"},onClick:()=>n(e),align:"center",children:[(0,r.jsx)(u.Z,{status:"default"}),(0,r.jsx)(c.Z.Text,{code:!0,children:(0,r.jsx)("a",{children:e.code})}),(0,r.jsx)(c.Z.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,r.jsx)(l.Z,{span:16,children:t?(0,r.jsx)(a.Z,{title:(0,r.jsxs)(o.Z,{justify:"space-between",children:[(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(c.Z.Text,{code:!0,children:t.code}),(0,r.jsx)(c.Z.Text,{children:t.title})]}),(0,r.jsx)("div",{children:(0,r.jsx)(h.Z,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,r.jsx)(c.Z.Paragraph,{children:"markdown"===t.type?(0,r.jsx)(f.U,{children:t.description}):(0,r.jsx)(c.Z.Text,{children:t.description})})}):(0,r.jsx)(a.Z,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,r.jsx)(c.Z.Text,{children:"click the error code in left bar to show more details."})})})]})}},43721:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="TreeShaking",s=r.Client.RsdoctorClientRoutes.TreeShaking},77754:function(e,t,n){"use strict";n.d(t,{p:function(){return y}});var r=n(31549),i=n(44194),s=n(77410),o=n.n(s),l=n(89246),a=n(44242),d=n(95103),u=n(63272),c=n(68673),h=n(49856),f=n(55834),p=n(47180),m=n(51742),x=n(65079),g=n(77422),j=n(46591);function y(e){let{module:t,moduleGraph:n,ranges:s,toLine:y,setEditorData:S,source:Z}=e,b=(0,i.useRef)(),v=(0,i.useRef)([]),C=(0,i.useRef)([]),M=(0,i.useRef)(),P=(0,i.useRef)(!1),[w,I]=(0,i.useState)("");return((0,i.useEffect)(()=>{let{isPreferSource:e}=t;P.current=!0,I(Z.source||e?Z.source:Z.transformed),setTimeout(()=>{C.current=b.current?.getModel()?.deltaDecorations(C.current,x.su(t,n))??[]},200)},[t,Z]),(0,i.useEffect)(()=>{function e(){let e=b.current?.getModel();if(!!e)v.current=e.deltaDecorations(v.current,s.map(e=>({range:(0,g.getSelectionRange)(e,p.e),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),b.current&&"number"==typeof y&&M.current!==y&&(M.current=y,b.current.revealLine(y,0))}P?setTimeout(e,300):e(),P.current=!1},[s,y]),(0,i.useEffect)(()=>{let e=e=>{let t=(0,m.hR)(e.target);if(t){let e=n.getModuleById(t.module);e&&S(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,r.jsx)(l.Z,{title:(0,r.jsx)(a.Z,{title:t.path,children:(0,r.jsxs)(d.Z,{children:[(0,r.jsx)(u.Z.Text,{children:o().basename(t.path)}),(0,r.jsx)(c.Z,{})]})}),className:"tree-shaking-editor",children:(0,r.jsx)(f.ZP,{theme:"vs-dark",language:(0,g.getOriginalLanguage)(t.path),value:w,loading:(0,r.jsx)(h.Z,{style:{fontSize:30}}),options:j.z9,onMount:e=>{b.current=e}})}):(0,r.jsx)("div",{children:"\u8BF7\u9009\u62E9\u8981\u67E5\u770B\u7684\u6A21\u5757"})}},29668:function(e,t,n){"use strict";n.d(t,{$R:function(){return C},BC:function(){return v.B},u2:function(){return v.u}});var r=n(31549),i=n(44194),s=n(89246),o=n(99892),l=n(86536),a=n(13019),d=n(77590),u=n(23193),c=n(78741),h=n(77410),f=n.n(h),p=n(43622),m=n(95925),x=n(35972),g=n(33448),j=n(65079),y=n(77422),S=n(77754),Z=n(65609),b=n(74915);n(4244);var v=n(43721);let C=(0,p.i8)(y.fetchManifest,[["moduleGraph","data"],["root","cwd"]],({data:e,cwd:t})=>{let n=(0,y.useModuleGraphInstanceByModuleGraph)(e);if(0===n.size())return(0,r.jsx)(Z.T,{});let[h,v]=(0,i.useState)(""),[C,M]=(0,i.useState)(1),[P,w]=(0,i.useState)([]),[I,k]=(0,i.useState)("side-effect"),D=(0,i.useMemo)(()=>n.getModules().filter(e=>e.kind===c.SDK.ModuleKind.Normal&&f().basename(e.path).includes(h)),[h]),E=(0,i.useMemo)(()=>D.find(e=>e.isEntry),[]),[T,z]=(0,i.useState)(E||D?.length&&D?.[0]),A=(0,j.X0)(D,n,h,T,e=>{N(D.find(t=>t.path===e),[])},t),N=(e,t,n)=>{z(e),w(t.slice()),(0,d.Z)(n)&&M(n)};return(0,r.jsxs)(s.Z,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:[(0,r.jsxs)(o.Z,{justify:"space-between",align:"middle",style:{marginBottom:m.Size.BasePadding,marginTop:m.Size.BasePadding},children:[(0,r.jsx)(g.a,{icon:(0,r.jsx)(u.Z,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>v(e)}),(0,r.jsxs)(l.ZP.Group,{value:I,onChange:({target:e})=>k(e.value),children:[(0,r.jsx)(l.ZP.Button,{value:"side-effect",children:"SideEffects"}),(0,r.jsx)(l.ZP.Button,{value:"export",children:"Export Variables"})]})]}),(0,r.jsxs)(o.Z,{justify:"space-between",align:"top",wrap:!1,gutter:[m.Size.BasePadding,m.Size.BasePadding],children:[(0,r.jsx)(a.Z,{span:7,children:(0,r.jsx)(s.Z,{title:`Total Files: ${D.length}`,className:"tree-shaking-files-box",children:(0,r.jsx)(x.z,{style:{height:"80%"},className:"tree-shaking-files",selectedKeys:T?[T.path]:[],defaultExpandedKeys:(0,j.yA)(A),treeData:A,expandAction:"click"})})}),(0,r.jsx)(a.Z,{span:9,children:(0,r.jsx)(p.Nu,{api:c.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:T.id},children:e=>(0,r.jsx)(S.p,{module:T,moduleGraph:n,ranges:P,toLine:C,setEditorData:N,source:e})})}),(0,r.jsx)(a.Z,{flex:1,children:(0,r.jsx)(b.c0,{kind:I,setEditorData:N,module:T,moduleGraph:n})})]})]})})},51742:function(e,t,n){"use strict";n.d(t,{hR:function(){return o},ue:function(){return s}});var r,i=((r=i||{}).Module="data-module",r.Range="data-range",r);function s(e,t,n){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${n}</a>`}function o(e){if("a"!==e.tagName.toLocaleLowerCase())return;let t=e.getAttribute("data-href")??"",n={module:-1,range:{start:{line:1,column:0},end:{line:1,column:0}}};for(let e of t.split("&")){let[t,r]=e.split("=");if("data-module"===t){n.module=Number.parseInt(r,10);continue}"data-range"===t&&(n.range=JSON.parse(decodeURIComponent(r)))}return n}},47180:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});class r{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.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))&&!0}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))&&!0}containsRange(e){return r.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))&&!0}strictContainsRange(e){return r.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))&&!0}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new r(n,i,s,o)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,o=e.endColumn,l=t.startLineNumber,a=t.startColumn,d=t.endLineNumber,u=t.endColumn;return(n<l?(n=l,i=a):n===l&&(i=Math.max(i,a)),s>d?(s=d,o=u):s===d&&(o=Math.min(o,u)),n>s||n===s&&i>o)?null:new r(n,i,s,o)}equalsRange(e){return r.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 r.getEndPosition(this)}static getEndPosition(e){return new i(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i(e.startLineNumber,e.startColumn)}toString(){return`[${this.startLineNumber},${this.startColumn} -> ${this.endLineNumber},${this.endColumn}]`}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(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))&&!0}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))&&!0}static compareRangesUsingStarts(e,t){if(e&&t){let n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){let n=0|e.startColumn,r=0|t.startColumn;if(n===r){let n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){let n=0|e.endColumn;return n-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){if(e.endLineNumber===t.endLineNumber){if(e.endColumn===t.endColumn)return e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber;return e.endColumn-t.endColumn}return e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.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 n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){let n=0|e.column;return n-(0|t.column)}return n-r}clone(){return new i(this.lineNumber,this.column)}toString(){return`(${this.lineNumber},${this.column})`}static lift(e){return new i(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}}}},65609:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(31549),i=n(89246),s=n(47146);function o(){return(0,r.jsx)(i.Z,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,r.jsx)(s.Z,{style:{marginTop:30}})})}},74915:function(e,t,n){"use strict";n.d(t,{c0:function(){return b}});var r=n(31549),i=n(44242),s=n(73176),o=n(41681),l=n(95103),a=n(63272),d=n(10855),u=n(74379),c=n(36542),h=n(44194),f=n(79537),p=n.n(f),m=n(21807),x=n(65079),g=n(77422);function j(e,t){if(!e)return(0,r.jsx)("div",{children:"Can not find declaration."});let{module:n}=e,o=n.isPreferSource?e.position.source:e.position.transformed;return(0,r.jsx)(i.Z,{title:`${n.path}, line ${o.start.line}`,children:(0,r.jsx)(s.ZP,{type:"link",onClick:()=>t(n,[o],o.start.line),children:"Move To"})})}function y(e){let[t,n]=(0,h.useState)(""),[i,a]=(0,h.useState)(""),d=(0,h.useRef)(null),u=(e,t,r)=>{t(),n(e[0]),a(r)},f=e=>{e(),n("")};return{filterDropdown:({setSelectedKeys:t,selectedKeys:n,confirm:i,clearFilters:a,close:h})=>(0,r.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,r.jsx)(o.Z,{ref:d,placeholder:`Search ${e}`,value:n[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>u(n,i,e),style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(l.Z,{children:[(0,r.jsx)(s.ZP,{type:"primary",onClick:()=>u(n,i,e),icon:(0,r.jsx)(c.Z,{}),size:"small",style:{width:90},children:"Search"}),(0,r.jsx)(s.ZP,{onClick:()=>a&&f(a),size:"small",style:{width:90},children:"Reset"}),(0,r.jsx)(s.ZP,{type:"link",size:"small",onClick:h,children:"close"})]})]}),filterIcon:e=>(0,r.jsx)(c.Z,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,n)=>n[e].toString().toLowerCase().includes(t.toLowerCase()),render:n=>i===e?(0,r.jsx)(p(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:n?n.toString():""}):n}}let S=({module:e,moduleGraph:t,setEditorData:n})=>{let o=(0,h.useMemo)(()=>t.getModuleGraphModule(e).getSideEffects(),[e]),c=o.map(({variable:t,name:n,identifier:r},i)=>({key:i,name:n,identifier:e.isPreferSource?r.position.source:r.position.transformed,declaration:t?.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 n=e[e.length-1];return n&&n.name===t.name?(!n.children&&(n.children=[]),n.children.push(t),e):(e.push(t),e)},[]),f=[{title:"Name",dataIndex:"name",key:"name",align:"center",...y("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:t=>(0,r.jsx)(i.Z,{title:`Current File line ${t.start.line}`,children:(0,r.jsx)(s.ZP,{type:"link",onClick:()=>n(e,[t],t.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,n)}],p=(0,r.jsx)(h.Fragment,{children:(0,r.jsxs)(l.Z,{style:{fontWeight:400},children:["Import",(0,r.jsx)(a.Z.Text,{strong:!0,children:c.length}),"variables",(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(a.Z.Text,{strong:!0,children:o.length}),"sideEffects"]})});return(0,r.jsx)(m.Zb,{style:{marginBottom:10},title:p,className:"tree-shaking-export-table",children:(0,r.jsx)(u.Z,{size:"small",dataSource:c,columns:f,pagination:!1,scroll:{y:600}})})},Z=({module:e,moduleGraph:t,setEditorData:n})=>{let o=(0,h.useMemo)(()=>t.getModuleGraphModule(e).getExports(),[e]),c=o.filter(e=>0===e.getSideEffects().length),f=(0,r.jsxs)(h.Fragment,{children:[(0,r.jsxs)(l.Z,{style:{fontWeight:400},children:["Export",(0,r.jsx)(a.Z.Text,{strong:!0,children:o.length})]}),o.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsxs)(a.Z.Text,{style:{fontWeight:400},code:!0,children:[(0,r.jsx)(a.Z.Text,{children:"Unused"}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(a.Z.Text,{strong:!0,children:c.length})]}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsxs)(a.Z.Text,{style:{fontWeight:400},code:!0,children:[(0,r.jsx)(a.Z.Text,{children:"Used"}),(0,r.jsx)(d.Z,{type:"vertical"}),(0,r.jsx)(a.Z.Text,{strong:!0,children:o.length-c.length})]})]}):""]}),p=o.map((e,t)=>{let{variable:n}=e;return{key:t,name:e.name,declaration:n?.identifier,used:e.getSideEffects().map(({module:e,identifier:t})=>{let n=e?.isPreferSource?t.position.source:t.position.transformed;if(!!e&&!!n)return{module:e,range:n}}).filter(g.isDef)}}),S=[{title:"Name",dataIndex:"name",key:"name",align:"center",...y("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,n)},{title:"Info",dataIndex:"used",key:"used",align:"center",sorter:(e,t)=>e.used.length-t.used.length,sortDirections:["descend","ascend"],render:e=>(0,r.jsxs)("span",{children:["Used ",e.length," times"]})}];return(0,r.jsx)(m.Zb,{title:f,className:"tree-shaking-export-table",children:(0,r.jsx)(u.Z,{size:"small",dataSource:p,columns:S,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,r.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,r.jsx)(a.Z.Text,{children:"List of SideEffect:"}),e.used.map(({module:e,range:t})=>(0,r.jsx)(i.Z,{title:`${e.path}:${t.start.line}`,children:(0,r.jsx)(s.ZP,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{n(e,[t],t.start.line)},children:`${(0,x.XZ)(e.path)}:${t.start.line}`})},e.id))]}),rowExpandable:e=>e.used.length>0}})})},b=e=>"side-effect"===e.kind?(0,r.jsx)(S,{...e}):(0,r.jsx)(Z,{...e})},65079:function(e,t,n){"use strict";n.d(t,{X0:function(){return x},XZ:function(){return j},su:function(){return y},yA:function(){return g}});var r=n(31549),i=n(44194),s=n(77410),o=n.n(s),l=n(50002),a=n(45307),d=n(70459),u=n(95103),c=n(97770),h=n(47180),f=n(51742),p=n(77422),m=n(67522);function x(e,t,n,s,o,l){return(0,i.useMemo)(()=>(0,p.createFileStructures)({files:e.map(e=>e.path),cwd:l,fileTitle(e,n){let i=t.getModules().find(t=>t.path===e&&t.kind===d.Module.kind.Normal),s=t.getModuleGraphModule(i),l=s.getExports().filter(e=>0===e.getSideEffects().length);return(0,r.jsxs)(u.Z,{style:{wordBreak:"break-all"},children:[(0,r.jsx)(m.Z,{text:n,keyword:e,onClick:()=>o(e)}),s.dynamic?(0,r.jsx)(c.Z,{color:"cyan",children:"dynamic"}):"",l.length>0?(0,r.jsxs)(c.Z,{color:"green",children:[l.length," Unused"]}):""]})}}),[n,s])}function g(e){return(0,p.mapFileKey)(e,3,e=>!((0,l.Z)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function j(e){let t="",n=e;for(let e=0;e<3;e++)t=t?`${o().basename(n)}/${t}`:o().basename(n),n=o().dirname(n);return`...${t}`}function y(e,t){let n=t.getModuleGraphModule(e).getOwnExports(),r=n.map(e=>e.variable).filter(e=>!!e);if(0===n.length&&0===r.length)return[];let{isPreferSource:i}=e;return r.map(e=>{let t=i?e.identifier.position.source:e.identifier.position.transformed,n=t&&(0,p.getSelectionRange)(t,h.e);if(!!t&&!!n)return{range:n,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 n=t.getSideEffects();if(0===n.length)return"Have no sideEffect.";let r=`Used **${n.length}** times:
81
81
 
82
82
  <div data-code="tree-shaking-hover">
83
83
  <li>`;for(let e of n){if(!e)continue;let{identifier:t,module:n}=e;if(!n)continue;let{id:i,isPreferSource:s}=n,o=t.getLineCode();r+=`
84
84
  <ol>
85
85
  ${(0,f.ue)(i,s?t.position.source:t.position.transformed,function(e,t){let{path:n,isPreferSource:r}=t,i=r?e.position.source.start:e.position.transformed.start,s=`:${i.line??1}:${i.column??0}`;return n.length<=30?`${n}${s}`:`...${n.substring(n.length-30)}${s}`}(t,n))}
86
86
  ${o?`<pre>${(0,a.Z)(o)}</pre>`:""}
87
- </ol>`}return r+="\n</li></div>"}(e)}}}}).filter(e=>!!e)}},41457:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Loaders Analysis",s=r.Client.RsdoctorClientRoutes.WebpackLoaderAnalysis},40335:function(e,t,n){"use strict";n.d(t,{BC:function(){return l.B},T3:function(){return a},u2:function(){return l.u}});var r=n(31549),i=n(4487),s=n(51264),o=n(21807),l=n(41457);let a=()=>(0,r.jsx)(o.Zb,{title:"Webpack Loader Analysis",extra:(0,r.jsx)(s.S,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:0,height:800},children:(0,r.jsx)(i.a,{})})},50638:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Loaders Timeline",s=r.Client.RsdoctorClientRoutes.WebpackLoaderOverall},77122:function(e,t,n){"use strict";n.d(t,{BC:function(){return l.B},T3:function(){return a},u2:function(){return l.u}});var r=n(31549),i=n(51264),s=n(21807),o=n(98463),l=n(50638);let a=()=>(0,r.jsx)(s.Zb,{title:"Loader Timeline",extra:(0,r.jsx)(i.S,{defaultKeys:["module"]}),collapsable:!0,children:(0,r.jsx)(o.T,{})})},90520:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Plugins Analysis",s=r.Client.RsdoctorClientRoutes.WebpackPlugins},86825:function(e,t,n){"use strict";n.d(t,{BC:function(){return j.B},T3:function(){return y},u2:function(){return j.u}});var r=n(31549),i=n(37809),s=n(32780),o=n(78741),l=n(89246),a=n(95103),d=n(41681),u=n(73176),c=n(63272),h=n(8105),f=n(44194),p=n(51264),m=n(43622),x=n(13938),g=n(95925),j=n(90520);let y=()=>{let[e,t]=(0,f.useState)([]),[n,j]=(0,f.useState)([]);return(0,r.jsx)("div",{children:(0,r.jsx)(l.Z,{title:"Webpack Plugins Overall",bodyStyle:{paddingTop:g.Size.BasePadding/3},extra:(0,r.jsx)(p.S,{defaultKeys:["plugins"]}),children:(0,r.jsxs)(a.Z,{direction:"vertical",children:[(0,r.jsx)(m.Nu,{api:o.SDK.ServerAPI.API.GetPluginSummary,children:({hooks:e,tapNames:n})=>(0,r.jsxs)(a.Z,{style:{marginBottom:g.Size.BasePadding/2},children:[(0,r.jsxs)(d.Z.Group,{compact:!0,children:[(0,r.jsxs)(u.ZP,{children:[(0,r.jsx)(i.Z,{}),(0,r.jsx)(c.Z.Text,{children:"Plugin Tap Names"})]}),(0,r.jsx)(h.Z,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{t(e)},children:n.map(e=>(0,r.jsx)(h.Z.Option,{label:e,value:e,children:e},e))})]}),(0,r.jsxs)(d.Z.Group,{compact:!0,children:[(0,r.jsxs)(u.ZP,{children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(c.Z.Text,{children:"Hooks"})]}),(0,r.jsx)(h.Z,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{j(e)},children:e.map(e=>(0,r.jsx)(h.Z.Option,{label:e,value:e,children:e},e))})]})]})}),(0,r.jsx)(m.Nu,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:n,tapNames:e},children:e=>(0,r.jsx)(x.A,{dataSource:e})})]})})})}},83177:function(e,t,n){"use strict";n.d(t,{JZ:function(){return r},P3:function(){return i},Px:function(){return d},UM:function(){return l},Yt:function(){return o},kc:function(){return a},wH:function(){return u},xA:function(){return s},xk:function(){return c}});var r=n(11970),i=n(37556);n(18602);var s=n(77122),o=n(40335),l=n(86825),a=n(90025),d=n(488),u=n(29668),c=n(77455)},11082:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(46641);class i{constructor(e){this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new r.Vw.D(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e,t="data"){let n=this.get(t);if(n)return n[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 n=t().finally(()=>this.pool.delete(e));return this.pool.set(e,n),n}log(...e){console.log(`[${this.constructor.name}]`,...e)}async loadManifest(){return this.manifest}}},16510:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(46641),i=n(11082),s=n(78741);class o extends i.K{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let n=this.getData(t);if(console.log(`[loadData]-[data]: ${n}`),!n)return;let i=n;if(!this.shardingDataMap.has(t)){let e="object"==typeof i?i:JSON.parse(r.k1.AV(i));console.log(`[loadData]-[scopeData]: ${e}`),this.shardingDataMap.set(t,e)}return i=await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[s.Constants.WINDOW_RSDOCTOR_TAG][e]}async loadAPI(...e){return this.loader.loadAPI(...e)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},1675:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(78741),i=n(44194),s=n(36514),o=n(21249);n(41451),n(95925);var l=n(16510);let a=new WeakMap;async function d(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new s.G(e)}catch(e){console.log("[DataLoader] fallback to RemoteDataLoader")}return new o.O(e)}function u(e){let[t,n]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{window[r.Constants.WINDOW_RSDOCTOR_TAG]&&(console.log("[brief mode]"),n(new l.P({data:[]})))},[]),(0,i.useEffect)(()=>{if(!!e){if(!a.has(e)){let t=d(e);a.set(e,t)}a.get(e).then(e=>{n(e)})}},[e]),{loader:t}}},36514:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(46641),i=n(78741),s=n(50002),o=n(11082),l=n(41561);class a extends o.K{constructor(){super(...arguments),this.events=new Map}isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...n]=this.getKeys(e),o=this.getData(t);if(!o)return;let a=o;if(r.Gp.j8(a)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{(0,l.h)().emit(i.SDK.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return a=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),a}return n.length>0?(0,s.Z)(a,this.joinKeys(n)):a})}async loadAPI(...e){let[t,n]=e,r=n?`${t}_${JSON.stringify(n)}`:`${t}`,i=this.get("__SOCKET__URL__")??"";return this.limit(r,async()=>new Promise(e=>{(0,l.h)(i).emit(t,n,t=>{e(t.res)})}))}dispose(){super.dispose(),this.events.forEach((e,t)=>{e.forEach(e=>{this.removeOnDataUpdate(t,e)}),e.clear()}),this.events.clear()}onDataUpdate(e,t){if(!this.events.has(e)&&this.events.set(e,new Set),!this.events.get(e).has(t))this.events.get(e).add(t),(0,l.h)().on(e,t)}removeOnDataUpdate(e,t){(0,l.h)().off(e,t),this.events.get(e).delete(t)}}},21249:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(46641),i=n(50002),s=n(11082),o=n(48612);class l extends s.K{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...n]=this.getKeys(e),s=this.getData(t,"cloudData");if(!s)return;let l=s;if(r.Gp.j8(l)){if(!this.shardingDataMap.has(t)){let n=r.Gp.om(l,o.C2).catch(t=>{throw this.log("loadData error: ",l,e),t});this.shardingDataMap.set(t,n)}l=await this.shardingDataMap.get(t)}return n.length>0?(0,i.Z)(l,this.joinKeys(n)):l})}async loadAPI(...e){let[t,n]=e,r=n?`${t}_${JSON.stringify(n)}`:`${t}`;return this.limit(r,async()=>this.loader.loadAPI(...e))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},85518:function(e,t,n){"use strict";n.d(t,{C0:function(){return d},ZK:function(){return u},n9:function(){return a},p_:function(){return o}});var r=n(50002),i=n(96883);let s=(e,t="/")=>{let n=e?.indexOf(t);return -1===n?null:0===n?t+(s(e?.slice(1))||""):e?.slice(0,n)};function o(e,t=2,n=()=>!0){let r=0,i=[],s=e;for(;r<t&&(s.filter(n).forEach(e=>{!e.isLeaf&&i.push(e.key)}),(s=s.reduce((e,t)=>e.concat(t.children||[]),[])).length);){;r++}return i}let l="__BASENAME__";function a({files:e,sep:t="/",inlinedResourcePathKey:n="__RESOURCEPATH__",fileTitle:i=(e,t)=>t,dirTitle:o=(e,t)=>t}){let a=new RegExp(t),d=e.reduce((e,o)=>{let d=s(o,t),u=d?o?.slice(d.length+1):o,c=e;for(;d;){let e=c.children.find(e=>e.title===d);if(!e){let r=[c[n],d].filter(Boolean).join(t);e={title:d,key:r,children:[],[n]:r,[l]:d},c.children.push(e)}c=e,u=(d=s(u))?u.slice(d.length).replace(a,""):u}return c.children.some(e=>(0,r.Z)(e,n)===o)?e:(c.children.push({title:()=>i(o,u),key:o,isLeaf:!0,[n]:o,[l]:u}),e)},{key:"0",children:[]}).children;return d.forEach(e=>{e.children&&e.children.forEach(r=>(function e(t,n,r="/",i,s=(e,t)=>t){if(!t.isLeaf){if(n.children&&1===n.children.length){let o=[n[l],t[l]].join(r);n[i]=t[i],n[l]=o,n.key=[n.key,t.key].join("-"),n.children=t.children,n.title=s(n,o),t.children&&t.children.forEach(t=>{e(t,n,r,i,s)})}else t.title=s(t,t[l]),t.children&&t.children.forEach(n=>{e(n,t,r,i,s)})}})(r,e,t,n,o))}),d}function d(e,t){return(0,i.Z)(e,t)?e.replace(t,"."):e}function u(e,t){let n=d(e,t),r="/node_modules/",i=n.lastIndexOf(r);return i>-1?{alias:n.slice(i+r.length),inNodeModules:!0}:{alias:n,inNodeModules:!1}}},11390:function(e,t,n){"use strict";n.d(t,{Bh:function(){return b},Bo:function(){return Z},EF:function(){return S},LR:function(){return v},Lm:function(){return M},Pd:function(){return y},QT:function(){return m},XO:function(){return x},is:function(){return g},m5:function(){return C},wm:function(){return j}});var r=n(46641),i=n(78741),s=n(40521),o=n(50013),l=n(78493),a=n(44194),d=n(76121),u=n(91425),c=n(89730),h=n.n(c);n(63396);var f=n(41451);let p=i.Client.RsdoctorClientRoutes.RuleIndex,m=()=>{let{i18n:e,...t}=(0,d.$)();return{...t,i18n:{...e,changeLanguage:(t,n)=>e.changeLanguage(t,(e,r)=>{!e&&(0,f.Ch)(t),n&&n(e,r)})}}};function x(e,t){let n=(0,u.s0)();return t?()=>window.open(t,"__blank"):()=>{n(`${p}?${i.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function g(){let e=(0,u.TH)().search||location.search,{query:t}=h()(e,!0);return t}function j(e){let t=e;return"string"==typeof t&&(e=JSON.parse(r.k1.AV(t))),function(e,t){if(e&&"object"==typeof e)return(0,s.Z)(e)?t:(0,o.Z)(e,t);return t}(e,{dependencies:[],modules:[],moduleGraphModules:[],exports:[],sideEffects:[],variables:[]})}function y(e){return(0,l.Z)(e,e=>e.path)}function S(e){return(0,s.Z)(e)?e.filter(e=>e.category===i.Rule.RuleMessageCategory.Compile&&e.code!==i.Rule.RuleMessageCodeEnumerated.Overlay):[]}function Z(e){return(0,s.Z)(e)?e.filter(e=>e.category===i.Rule.RuleMessageCategory.Bundle&&e.code!==i.Rule.RuleMessageCodeEnumerated.Overlay):[]}function b(e){return Z(e).filter(e=>e.code===i.Rule.RuleErrorMap.E1001.code)}function v(e=[]){return(0,s.Z)(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}function C(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)||!1}function M(){let[e,t]=(0,a.useState)(window.innerWidth);return(0,a.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},91110:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r={Overall:"\u6982\u89C8","Compile Analysis":"\u7F16\u8BD1\u5206\u6790",LoadersAnalysis:"Loaders \u5206\u6790","Loaders Timeline":"Loaders \u6982\u89C8","Loaders Analysis":"Loaders \u5206\u6790",PluginsAnalysis:"Plugins \u5206\u6790",ModuleResolve:"Module Resolve \u5206\u6790","Bundle Analysis":"\u4EA7\u7269\u5206\u6790",BundleSize:"\u4EA7\u7269\u4F53\u79EF\u5206\u6790","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"\u9519\u8BEF\u7D22\u5F15\u4FE1\u606F",Resources:"\u8D44\u6E90","Project Overall":"\u9879\u76EE\u4FE1\u606F\u6982\u89C8","Compile Overall":"\u7F16\u8BD1\u6570\u636E\u6982\u89C8","Bundle Overall":"\u4EA7\u7269\u6570\u636E\u6982\u89C8","Expand Omitted":" reasons \u6811\u4F1A\u9ED8\u8BA4\u6298\u53E0\u4E2D\u95F4\u7684\u7B2C\u4E09\u65B9\u5F15\u5165\u7684\u6A21\u5757\uFF0C\u70B9\u51FB\u8FD9\u4E2A\u56FE\u6807\u53EF\u4EE5\u67E5\u770B\u5B8C\u6574\u6811\u56FE","Concatenated Tag":"\u4E32\u8054\u6A21\u5757\uFF0Chover \u4E0A\u53BB\u53EF\u4EE5\u663E\u793A\u805A\u5408\u6210\u7684\u4E3B\u6A21\u5757\u540D\u79F0\u3002\u6CE8\uFF1A\u805A\u5408\u6A21\u5757 bundled size \u4E3A\u96F6\uFF0C\u6709\u53EF\u80FD\u662F\u56E0\u4E3A\u88AB\u805A\u5408\u5230\u4E86\u4E3B\u6A21\u5757\u4E2D\u3002","the file content not changed after transpiled by this loader":"\u8BE5\u6587\u4EF6\u5185\u5BB9\u5728 loader \u5904\u7406\u524D\u540E\u6CA1\u6709\u53D1\u751F\u53D8\u5316","Output Assets List":"\u4EA7\u7269\u6587\u4EF6\u5217\u8868","filter the output assets which size is greater than the input value":"\u7B5B\u9009\u5927\u5C0F\u5927\u4E8E\u8F93\u5165\u503C\u7684\u4EA7\u7269\u6587\u4EF6","filter the modules which size is greater than the input value":"\u7B5B\u9009\u5927\u5C0F\u5927\u4E8E\u8F93\u5165\u503C\u7684\u6A21\u5757","After Compile":"\u7F16\u8BD1\u540E","After Bundle":"\u6253\u5305\u540E",CodeModeExplain:"Lite \u6A21\u5F0F\u4E0B\u6216\u7EAF stats.json \u4E0A\u4F20\u7684\u60C5\u51B5\u4E0B\u53EA\u6709 source code.",DuplicatePakCodeExplain:"\u7EAF stats.json \u8F93\u5165\u7684\u60C5\u51B5\u4E0B\u6CA1\u6709\u4EE3\u7801\uFF0C\u53EF\u4F7F\u7528 Rsdoctor \u63D2\u4EF6\u53C2\u4E0E\u6784\u5EFA\u4F1A\u6709\u5BF9\u5E94\u4EE3\u7801\u3002"}},85371:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r={Overall:"Overall","Compile Analysis":"Compile Analysis",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"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."}},63396:function(e,t,n){"use strict";var r=n(81346),i=n(32060),s=n(85371),o=n(91110),l=n(41451);r.ZP.use(i.Db).init({lng:(0,l.V1)(),resources:{en:{translations:s.Z},cn:{translations:o.Z}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},77422:function(e,t,n){"use strict";n.d(t,{beautifyModulePath:function(){return i.ZK},beautifyPath:function(){return i.C0},changeOrigin:function(){return p.yq},createFileStructures:function(){return i.n9},fetchManifest:function(){return d.eq},filterLoader:function(){return x.F3},formatCosts:function(){return f.au},formatPercent:function(){return c.T},formatSize:function(){return c.B},getDemoUrl:function(){return p.jg},getLocale:function(){return o.K},getModifiedLanguage:function(){return a.oU},getOriginalLanguage:function(){return a.wA},getSelectionRange:function(){return a.pl},getShortPath:function(){return p.Uc},hasBundle:function(){return u.p},hasCompile:function(){return u.H},hasViewModeFromStorage:function(){return h.JS},isDef:function(){return p.Xq},isJsDataUrl:function(){return p.lW},mapFileKey:function(){return i.p_},setThemeToStorage:function(){return h.rn},setViewModeToStorage:function(){return h.oP},useBundleAlertsByErrors:function(){return s.Bo},useCompileAlertsByErrors:function(){return s.EF},useDataLoader:function(){return r.w},useDetectIfCloudIdeEnv:function(){return s.m5},useDuplicatePackagesByErrors:function(){return s.Bh},useI18n:function(){return s.QT},useLocale:function(){return l.bU},useModuleGraph:function(){return s.wm},useModuleGraphInstanceByModuleGraph:function(){return l.kb},useMonacoEditor:function(){return a.xA},useRuleIndexNavigate:function(){return s.XO},useTheme:function(){return l.Fg},useUniqModules:function(){return s.Pd},useUrlQuery:function(){return s.is},useViewMode:function(){return l.mJ},useWebpackConfigurationByConfigs:function(){return s.LR},useWindowWidth:function(){return s.Lm}});var r=n(1675),i=n(85518),s=n(11390),o=n(84573),l=n(44428),a=n(60271),d=n(48612),u=n(45437),c=n(29321);n(41561);var h=n(41451),f=n(53607),p=n(93155),m=n(47993);n.o(m,"filterLoader")&&n.d(t,{filterLoader:function(){return m.filterLoader}}),n.o(m,"Constants")&&n.d(t,{Constants:function(){return m.Constants}});var x=n(75196)},75196:function(e,t,n){"use strict";n.d(t,{F3:function(){return l},d8:function(){return s}});var r=n(46641),i=n(15890);let{findLoaderTotalTiming:s,getLoaderCosts:o}=r.aN;function l(e,t,n,r){return!(n&&-1===e.indexOf(n)||r?.length&&!(0,i.Z)(r,t))&&!0}},84573:function(e,t,n){"use strict";n.d(t,{K:function(){return s}});var r=n(93787),i=n(74547);function s(e){return"cn"===e||"zh-CN"===e?r.Z:i.Z}},44428:function(e,t,n){"use strict";n.d(t,{Fg:function(){return a},bU:function(){return l},kb:function(){return u},mJ:function(){return d}});var r=n(44194),i=n(70459),s=n(67351),o=n(95925);function l(){return(0,r.useContext)(s.E).locale}function a(){let{theme:e,setTheme:t}=(0,r.useContext)(s.E),n=e===o.Theme.Dark;return{theme:e,setTheme:t,isDark:n,isLight:!n}}function d(){let{viewMode:e,setViewMode:t}=(0,r.useContext)(s.E),{bundleAlerts:n,compileAlerts:i}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:i===o.ViewMode.List,isBundleList:n===o.ViewMode.List}}function u(e){return(0,r.useMemo)(()=>i.ModuleGraph.fromData(e),[e])}n(48612)},60271:function(e,t,n){"use strict";n.d(t,{oU:function(){return a},pl:function(){return d},wA:function(){return l},xA:function(){return c}});var r=n(77410),i=n(55834),s=n(93155);let o=i._m.init();function l(e){if((0,s.lW)(e))return"javascript";let t=(0,r.extname)(e).slice(1);switch(t){case"js":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";default:return t}}function a(e){let t=(0,r.extname)(e).slice(1);switch(t){case"js":case"jsx":case"ts":case"tsx":return"javascript";default:return t}}function d(e,t){let{start:n,end:r}=e,{line:i=1,column:s=0}=n;return new t(i,s+1,r?.line??i,(r?.column??9999)+1)}let u=e=>new Promise((t,n)=>{if(e.value){t();return}o.then(t=>{e.value=t}).catch(e=>{e?.type!=="cancelation"&&(console.error("Monaco initialization error:",e),n())})});function c(){return{initMonaco:u}}},48612:function(e,t,n){"use strict";let r;n.d(t,{C2:function(){return a},eq:function(){return c}});var i=n(80926),s=n(78741),o=n(46641);n(95925);var l=n(93155);async function a(e){return o.R9.CB(e)?i.Z.get(e,{timeout:999999,responseType:"text"}).then(e=>e.data):e}async function d(e){let t=await i.Z.get(e,{timeout:3e4}).then(e=>e.data);return"string"==typeof t&&(t=JSON.parse(t)),console.log("[json] ",e,t),t}n(41451);let u=new Map;async function c(e=(!(r=window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,l.Pi)())&&(r=s.SDK.ServerAPI.API.Manifest),r)){return!u.has(e)&&u.set(e,d(e).catch(t=>{throw u.delete(e),t})),await u.get(e)}},45437:function(e,t,n){"use strict";n.d(t,{H:function(){return s},p:function(){return o}});var r=n(15890),i=n(78741);function s(e){return(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)}function o(e){return(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.BundleSize)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleGraph)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.TreeShaking)}},29321:function(e,t,n){"use strict";function r(e){let t;return t=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 i(e){return`${+e.toFixed(2)}%`}n.d(t,{B:function(){return r},T:function(){return i}})},41561:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(99524);let i=new Map,s=location.protocol.includes("https")?"wss":"ws",o=`${s}://${location.host}`;function l(e){return function(e=o){if(!i.has(e)){let t=(0,r.io)(e,{});t.on("connect",()=>{console.log(`Socket Connect ${e}`)}),i.set(e,t)}return i.get(e)}(e||o)}},41451:function(e,t,n){"use strict";n.d(t,{Bd:function(){return a},Ch:function(){return c},JS:function(){return p},V1:function(){return u},ZM:function(){return h},oP:function(){return f},rn:function(){return d}});var r,i=n(95925);var s=((r=s||{}).Namespace="__RSDOCTOR__STORAGE__",r.Theme="THEME",r.Locale="LOCALE",r.ViewMode="VIEWMODE",r.APILoaderMode4Dev="APILOADERMODE_DEV",r);function o(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function l(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function a(){return o("THEME")||i.Theme.Light}function d(e){l("THEME",e)}function u(){return o("LOCALE")||i.Language.En}function c(e){l("LOCALE",e)}function h(){let e={bundleAlerts:i.ViewMode.List,compileAlerts:i.ViewMode.List};try{let t=o("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch(t){return e}}function f(e){l("VIEWMODE",JSON.stringify(e))}function p(){return!!o("VIEWMODE")}},53607:function(e,t,n){"use strict";n.d(t,{au:function(){return s}});let{toFixedDigits:r,getUnit:i,formatCosts:s}=n(46641).qp},93155:function(e,t,n){"use strict";n.d(t,{Pi:function(){return a},Uc:function(){return c},Xq:function(){return h},jg:function(){return u},lW:function(){return l},yq:function(){return d}});var r=n(89730),i=n.n(r),s=n(78741),o=n(45641);function l(e){return e.startsWith("data:text/javascript;")}function a(){let{query:e}=i()(location.href,!0),t=e[s.Client.RsdoctorClientUrlQuery.ManifestFile];if(t)return decodeURIComponent(t)}function d(e){var t;let n=i()(location.href,!0),r=i()(e,!0);return t=n,(0,o.Z)(t.hash,s.Client.RsdoctorClientRoutes.Uploader)&&t.set("hash",s.Client.RsdoctorClientRoutes.Overall),n.set("origin",e),n.set("protocol",r.protocol),n.set("host",r.host),n.set("port",r.port),n.toString()}function u(){return null}let c=e=>{if(e?.indexOf("node_modules")>=0){let t=e.split("node_modules");return`node_modules${t[t.length-1]}`}return e?.length?`${e?.split("/").slice(-4).join("/")}`:e};function h(e){return null!=e}},47993:function(e,t,n){"use strict";n.d(t,{master:function(){return i.S}});var r=n(19749);n.o(r,"filterLoader")&&n.d(t,{filterLoader:function(){return r.filterLoader}}),n.o(r,"master")&&n.d(t,{master:function(){return r.master}}),n.o(r,"Constants")&&n.d(t,{Constants:function(){return r.Constants}});var i=n(3204)},3204:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(86880);let i=new class e{constructor(){this._workerMap=new WeakMap}detectWorker(e){if(this._workerMap.has(e))return this._workerMap.get(e);let t=e(),n=new r.V(t);return this._workerMap.set(e,n),n}}},19749:function(){},86848:function(e,t,n){"use strict";function r(e,t){return t.postMessage(e)}n.d(t,{F5:function(){return r}})},86880:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(86848);class i{constructor(e){this.worker=e,this.timer=0,this.callbacks=new Map,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){let n=this.createEventId();return this.callbacks.set(n,t),(0,r.F5)({id:n,data:e},this.worker),{abort:()=>this.callbacks.delete(n)}}dispose(){this.worker.terminate()}}},35563:function(e,t,n){"use strict";n(78741)},47687:function(e,t,n){"use strict";n(35563)},49689:function(e,t,n){"use strict";n.d(t,{Module:function(){return r.Module},ModuleGraph:function(){return r.ModuleGraph}}),n(47687);var r=n(55620);n(16898)},93492:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(78741);let i=1;class s{constructor(e,t,n,r,s){this.statements=[],this.meta={exportsType:"default-with-named"},this.id=i++,this.request=e,this.module=t,this._originDependency=n,this.kind=r,this.statements=s??[]}static init(){i=1}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return r.SDK.DependencyKind[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===r.SDK.ModuleKind.Concatenation}isSameWithoutStatements(e){return this.request===e.request&&this.kind===e.kind&&this.module.id===e.module.id&&this.dependency.id===e.dependency.id}addStatement(e){!this.hasStatement(e)&&this.statements.push(e)}hasStatement(e){return this.statements.some(t=>t.isSame(e))}setBuildMeta(e){this.meta={...this.meta,...e}}toData(){return{id:this.id,request:this.request,resolvedRequest:this.resolvedRequest,kind:this.kind,module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}}s.kind=r.SDK.DependencyKind},39126:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(78741),i=n(93492),s=n(54223),o=n(1718),l=n(57882);class a{constructor(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map}static init(){s.Y.init(),i.S.init(),l.ModuleGraphModule.init()}static fromData(e){let t=new a,n=e=>new o.P(t.getModuleById(e.module),e.position);for(let n of e.modules??[]){let e=new s.Y(String(n.id),n.path,n.isEntry,n.kind);e.id=n.id,e.setSize(n.size),e.meta={strictHarmonyModule:n.meta?.strictHarmonyModule??!1,hasSetEsModuleStatement:n.meta?.hasSetEsModuleStatement??!1},e._isPreferSource=n.isPreferSource,e.chunks=n.chunks,t.addModule(e)}for(let r of e.modules??[]){let i=t.getModuleById(r.id);for(let s of r.dependencies){let r=(e.dependencies??[]).find(e=>e.id===s),o=r&&t.getModuleById(r.originDependency);if(!r||!o){console.warn(`The connection data ID is empty: ${s}`);continue}let l=i.addDependency(r.request,o,r.kind,r.statements.map(n));if(!!l)l.id=r.id,t.addDependency(l)}for(let e of r.modules??[]){let n=t.getModuleById(e);if(!n){console.warn(`Add the ordinary module ID as empty: ${e}`);continue}i.addNormalModule(n)}for(let e of r.concatenationModules??[]){let n=t.getModuleById(e);if(!n){console.warn(`The aggregation module ID is empty: ${n}`);continue}i.addConcatenationModule(n)}}for(let r of e.exports??[]){let e=new l.ExportInfo(r.name,r.identifier?n(r.identifier):void 0);e.id=r.id,t.addExportInfo(e)}for(let n of e.exports??[])if(n.from){let e=t._exportIdMap.get(n.id),r=t._exportIdMap.get(n.from);e&&r&&e.setFromExport(r)}for(let r of e.variables??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in the variable is empty\u{FF1A}${r.module}`);continue}let i=new l.Variable(r.name,e,r.usedInfo,n(r.identifier)),s=t._exportIdMap.get(r.exported??-1);s&&i.setExportInfo(s),i.id=r.id,t.addVariable(i)}for(let r of e.sideEffects??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in the side effects is empty\u{FF1A}${r.module}`);continue}let i=new l.SideEffect(r.name,e,n(r.identifier),r.originName);for(let e of(i.isNameSpace=r.isNameSpace,i.id=r.id,r.exports??[])){let n=t._exportIdMap.get(e);n&&n.addSideEffect(i)}if(r.variable){let e=t._varIdMap.get(r.variable);e&&(i._variable=e)}t.addSideEffect(i)}for(let n of e.moduleGraphModules??[]){let e=t.getModuleById(n.module);if(!e){console.warn(`The module ID in ModuleGraphModule is empty: ${n.module}`);continue}let r=new l.ModuleGraphModule(e,t,n.dynamic);t.addModuleGraphModule(r),n.exports.forEach(e=>{let n=t._exportIdMap.get(e);n&&r.addExportInfo(n)}),n.sideEffects.forEach(e=>{let n=t._sideEffectIdMap.get(e);n&&r.addSideEffect(n)}),n.variables.forEach(e=>{let n=t._varIdMap.get(e);n&&r.addVariable(n)})}return a.init(),t}clear(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map}size(){return this._moduleIdMap.size}fromInstance(e){this._dependenciesIdMap=new Map(e._dependenciesIdMap),this._moduleWebpackIdMap=new Map(e._moduleWebpackIdMap),this._moduleIdMap=new Map(e._moduleIdMap),this._moduleGraphModules=new Map(e._moduleGraphModules),this._exportIdMap=new Map(e._exportIdMap),this._sideEffectIdMap=new Map(e._sideEffectIdMap),this._varIdMap=new Map(e._varIdMap)}getSubGraphByModule(e){let t=new Set,n=[e];t.add(e);for(let e=0;e<n.length;e++)for(let{dependency:r}of n[e].getDependencies()){if(!t.has(r))t.add(r),n.push(r)}return n}getModules(){return Array.from(this._moduleWebpackIdMap.values())}getDependencies(){return Array.from(this._dependenciesIdMap.values())}getEntryModules(){return this.getModules().filter(e=>e.isEntry&&e.kind!==r.SDK.ModuleKind.Concatenation)}getModuleById(e){return this._moduleIdMap.get(e)}getDependencyById(e){return this._dependenciesIdMap.get(e)}getModuleByWebpackId(e){return this._moduleWebpackIdMap.get(e)}getModuleByFile(e){return this.getModules().find(t=>t.path===e)}addModule(...e){for(let t of e)!this._moduleIdMap.has(t.id)&&(this._moduleWebpackIdMap.set(t.webpackId,t),this._moduleIdMap.set(t.id,t))}addDependency(...e){for(let t of e)!this._dependenciesIdMap.has(t.id)&&(this._dependenciesIdMap.set(t.id,t),this.addModule(t.module),this.addModule(t.dependency))}removeModule(e){for(let t of(this._moduleIdMap.delete(e.id),this._moduleWebpackIdMap.delete(e.webpackId),e.getDependencies()))this.removeDependency(t),this._dependenciesIdMap.delete(t.id);for(let t of e.getImported())t.removeDependencyByModule(t)}removeDependency(e){e.module.removeDependency(e),e.dependency.removeImported(e.module),this._dependenciesIdMap.delete(e.id)}addModuleGraphModule(e){!this._moduleGraphModules.has(e.module)&&this._moduleGraphModules.set(e.module,e)}getModuleGraphModule(e){return this._moduleGraphModules.get(e)}getModuleGraphModules(){return Array.from(this._moduleGraphModules.values())}addExportInfo(e){this._exportIdMap.set(e.id,e)}addSideEffect(e){this._sideEffectIdMap.set(e.id,e)}addVariable(e){this._varIdMap.set(e.id,e)}toData(e){return{dependencies:this.getDependencies().map(e=>e.toData()),modules:this.getModules().map(t=>t.toData(e?.contextPath)),moduleGraphModules:Array.from(this._moduleGraphModules.values()).map(e=>e.toData()),exports:Array.from(this._exportIdMap.values()).map(e=>e.toData()),sideEffects:Array.from(this._sideEffectIdMap.values()).map(e=>e.toData()),variables:Array.from(this._varIdMap.values()).map(e=>e.toData())}}toCodeData(e=r.SDK.ToDataType.Normal){let t={};return this.getModules().forEach(n=>{t[n.id]=n.getSource(e)}),t}}},55620:function(e,t,n){"use strict";n.d(t,{Module:function(){return r.Y},ModuleGraph:function(){return i.x}}),n(93492);var r=n(54223),i=n(39126);n(1718),n(57882)},54223:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(78741),i=n(77410),s=n.n(i),o=n(39378),l=n(93492),a=n(1718),d=n(4034);let u=1;class c{constructor(e,t,n=!1,i=r.SDK.ModuleKind.Normal){this.source={source:"",transformed:"",parsedSource:""},this.size={sourceSize:0,transformedSize:0,parsedSize:0},this.chunks=[],this.dependencies=[],this.imported=[],this.modules=[],this.concatenationModules=[],this.meta={hasSetEsModuleStatement:!1,strictHarmonyModule:!1},this.id=u++,this.webpackId=e,this.path=t,this.isEntry=n,this.kind=i}static init(){u=1}get rootModule(){return this.modules.find(e=>e.path===this.path)}get isPreferSource(){if("boolean"==typeof this._isPreferSource)return this._isPreferSource;let e=this.source.source.length>0&&"test code"!==this.source.source&&!!this.sourceMap;return this._isPreferSource=e,e}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,n,r){let i=new l.S(e,this,t,n,r);if(this.dependencies.every(e=>!e.isSameWithoutStatements(i)))return this.dependencies.push(i),t.addImported(this),t.rootModule&&t.rootModule.addImported(this),i}removeDependency(e){this.dependencies=this.dependencies.filter(t=>t===e)}removeDependencyByModule(e){let t=this.getDependencyByModule(e);t&&this.removeDependency(t)}getImported(){return this.imported.slice()}addImported(e){!this.imported.includes(e)&&this.imported.push(e)}removeImported(e){this.imported=this.imported.filter(t=>t===e)}setProgram(e){this.program=e}getProgram(){return this.program}setSource(e){let{source:t}=this;t.source=e.source??t.source,t.transformed=e.transformed??t.transformed,t.parsedSource=e.parsedSource??t.parsedSource}getSource(e=r.SDK.ToDataType.Normal){return e===r.SDK.ToDataType.NoCode?{source:"",transformed:"",parsedSource:""}:e===r.SDK.ToDataType.NoSourceAndAssets||e===r.SDK.ToDataType.NoSource?{source:"",transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}:e===r.SDK.ToDataType.All?{source:this.source.source,transformed:this.source.transformed,parsedSource:this.isPreferSource?"":this.source.parsedSource}:{source:this.source.source,transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}}setSourceMap(e){this.sourceMap=e}getSourceMap(){return this.sourceMap}setSize(e){let{size:t}=this;t.sourceSize=e.sourceSize??t.sourceSize,t.transformedSize=e.transformedSize??t.transformedSize,t.parsedSize=e.parsedSize??t.parsedSize}getSize(){return{...this.size}}getStatement(e){return new a.P(this,{source:this.getSourceRange(e),transformed:{start:{...e.start},end:e.end?{...e.end}:void 0}})}getSourceRange(e){let{sourceMap:t}=this;if(!t)return;let n={start:{}},r=t.originalPositionFor({line:e.start.line??0,column:e.start.column??0,bias:1});if((0,o.isNumber)(r.line)&&(n.start={line:r.line,column:r.column??void 0}),e.end){let r=t.originalPositionFor({line:e.end.line??0,column:e.end.column??0});(0,o.isNumber)(r.line)&&(n.end={line:r.line,column:r.column??void 0})}return n}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)}getConcatenationModules(){return this.concatenationModules.slice()}toData(e){let{isPreferSource:t}=this,n=(0,d.mz)(this.webpackId),r={id:this.id,webpackId:e&&n.indexOf(".")>0?s().relative(e,n):this.webpackId,path:this.path,isPreferSource:t,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};return(this.meta.hasSetEsModuleStatement||this.meta.strictHarmonyModule)&&(r.meta={},this.meta.hasSetEsModuleStatement&&(r.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(r.meta.strictHarmonyModule=!0)),this.isEntry&&(r.isEntry=this.isEntry),this.modules.length>0&&(r.modules=this.modules.map(e=>e.id)),this.rootModule&&(r.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(r.concatenationModules=this.concatenationModules.map(e=>e.id)),r}}c.kind=r.SDK.ModuleKind},1718:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(4034);class i{static getDefaultStatement(e){let t={line:1,column:0},n={start:{...t},end:{...t}};return new i(e,{source:{...n},transformed:{...n}})}constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,r.Hf)(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(),n=e?t.source:t.transformed,r=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof r)return n.split("\n")[r-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}},23634:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});let r=1;class i{constructor(e,t,n){this.id=r++,this._sideEffects=[],this.name=e,this.identifier=t,this._variable=n}static init(){r=1}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(e=1/0){if(0===e)throw Error("`getRecursiveExport` method parameter depth must be greater than 1.");if(!this.from)return this;let t=0,n=this;for(;n.from&&t<e;)t++,n=n.from;return n}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}}},57882:function(e,t,n){"use strict";n.d(t,{ExportInfo:function(){return i.h},ModuleGraphModule:function(){return r.N},SideEffect:function(){return o.k},Variable:function(){return s._}});var r=n(97095),i=n(23634),s=n(12689),o=n(88449)},97095:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(23634),i=n(88449),s=n(12689);class o{constructor(e,t,n){this.exports=[],this.sideEffects=[],this.variables=[],this.module=e,this._graph=t,"boolean"==typeof this._dynamic&&(this._dynamic=n)}static init(){r.h.init(),i.k.init(),s._.init()}get dynamic(){return"boolean"==typeof this._dynamic?this._dynamic:this.module.getImported().map(e=>e.getDependencyByModule(this.module)).some(e=>e&&"dynamic"===e.meta.exportsType)}addExportInfo(e){this.exports.push(e),this._graph.addExportInfo(e)}addSideEffect(e){this.sideEffects.push(e),this._graph.addSideEffect(e)}addVariable(e){this.variables.push(e),this._graph.addVariable(e)}getExports(){return this.exports.slice()}getSideEffects(e){return e?this.sideEffects.filter(t=>t.name===e):this.sideEffects.slice()}getOwnExports(){return this.exports.filter(e=>!e.isReExport)}getExport(e){return this.exports.find(t=>t.name===e)}getReExports(){return this.exports.filter(e=>e.isReExport)}getOwnExport(e){return this.getOwnExports().find(t=>t.name===e)}getReExport(e){return this.getReExports().find(t=>t.name===e)}toData(){return{module:this.module.id,dynamic:this.dynamic,exports:this.exports.map(e=>e.id),sideEffects:this.sideEffects.map(e=>e.id),variables:this.variables.map(e=>e.id)}}}},88449:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});let r=1,i=class e{constructor(t,n,i,s,o){this.id=r++,this._exports=[],this.name=t,this.module=n,this.identifier=i,s&&(this.fromDependency=this.module.getDependencyByRequest(s)),o===e.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=o)}static init(){r=1}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}};i.NamespaceSymbol=Symbol("namespace");let s=i},12689:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});let r=1;class i{constructor(e,t,n,i){this.id=r++,this.name=e,this.module=t,this.usedInfo=n,this.identifier=i}static init(){r=1}get isUsed(){return!!this._exported&&this._exported.getSideEffects().length>0}setExportInfo(e){this._exported=e,e.variable=this}getExportInfo(){return this._exported}toData(){let e={id:this.id,name:this.name,module:this.module.id,identifier:this.identifier.toData(),usedInfo:this.usedInfo};return this._exported&&(e.exported=this._exported.id),e}}},4034:function(e,t,n){"use strict";n.d(t,{Hf:function(){return s},mz:function(){return d}});var r=n(39378);function i(e,t){return e.line===t.line&&e.column===t.column}function s(e,t){return!!i(e.start,t.start)&&((0,r.isNil)(e.end)||(0,r.isNil)(t.end)?(0,r.isUndefined)(e.end)&&(0,r.isUndefined)(t.end):i(e.end,t.end))}let o=/!/,l=/\s\+\s\d*\smodules$/,a=/^css\s.*node_modules(?!\/)/;function d(e){if(!e)return"";if(o.test(e)){let t=(0,r.last)(e.split(o));if(t?.trim())return t}return l.test(e)?e.replace(l,""):a.test(e)?e.replace(a,""):e}},53330:function(e,t,n){"use strict";n(39378),n(77410),n(78741),n(32603),n(68442)},16898:function(e,t,n){"use strict";n(53330),n(32603)},32603:function(e,t,n){"use strict";n(77410),n(68442)},68442:function(e,t,n){"use strict";n(77410),n(46641)},70459:function(e,t,n){"use strict";var r=n(49689);n.o(r,"Module")&&n.d(t,{Module:function(){return r.Module}}),n.o(r,"ModuleGraph")&&n.d(t,{ModuleGraph:function(){return r.ModuleGraph}})},98878:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5264:function(e,t){"use strict";var n,r,i,s,o,l;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorClientDiffState=t.RsdoctorClientRoutes=t.RsdoctorClientUrlQuery=void 0,(s=n||(t.RsdoctorClientUrlQuery=n={})).BundleDiffFiles="__bundle_files__",s.ManifestFile="manifest",(o=r||(t.RsdoctorClientRoutes=r={})).Overall="/overall",o.WebpackLoaderOverall="/webpack/loaders/overall",o.WebpackLoaderAnalysis="/webpack/loaders/analysis",o.ModuleResolve="/module/resolve",o.WebpackPlugins="/webpack/plugins",o.BundleSize="/bundle/size",o.ModuleAnalyze="/module/analyze",o.TreeShaking="/treeshaking",o.BundleDiff="/resources/bundle/diff",o.RuleIndex="/resources/rules",o.Uploader="/resources/uploader",o.EmoCheck="/emo/check",(l=i||(t.RsdoctorClientDiffState=i={})).Equal="-",l.Up="UP",l.Down="DOWN"},43900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81046:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WINDOW_RSDOCTOR_TAG=t.RsdoctorClientUrl=t.RsdoctorProcessEnvDebugKey=t.RsdoctorMonitorDocBId=t.RsdoctorMonitorWebBId=t.RsdoctorMonitorNodeBId=t.StatsFilePath=t.RsdoctorOutputManifestPath=t.RsdoctorOutputManifest=t.RsdoctorOutputFolder=t.MapExtensions=t.FontExtensions=t.MediaExtensions=t.ImgExtensions=t.HtmlExtension=t.CSSExtension=t.JSExtension=void 0,t.JSExtension=".js",t.CSSExtension=".css",t.HtmlExtension=".html",t.ImgExtensions=[".png",".jpg",".svg",".webp",".jpeg",".gif",".bmp"],t.MediaExtensions=[".mp3",".mp4",".avi",".wav",".flv",".mov",".mpg",".mpeg"],t.FontExtensions=[".ttf",".fnt",".fon",".otf",".woff",".woff2"],t.MapExtensions=[".js.map",".css.map",".ts.map",".LICENSE.txt"],t.RsdoctorOutputFolder=".rsdoctor",t.RsdoctorOutputManifest="manifest.json",t.RsdoctorOutputManifestPath=`${t.RsdoctorOutputFolder}/${t.RsdoctorOutputManifest}`,t.StatsFilePath="dist/stats.json",t.RsdoctorMonitorNodeBId="Rsdoctor",t.RsdoctorMonitorWebBId="Rsdoctor-Client",t.RsdoctorMonitorDocBId="Rsdoctor-Doc",t.RsdoctorProcessEnvDebugKey="RSDOCTOR_DEBUG",t.RsdoctorClientUrl="",t.WINDOW_RSDOCTOR_TAG="__RSDOCTOR__"},38159:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLevel=void 0,(r=n||(t.ErrorLevel=n={}))[r.Ignore=0]="Ignore",r[r.Warn=1]="Warn",r[r.Error=2]="Error"},99982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78741:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Plugin=t.Constants=t.Client=t.Thirdparty=t.Rule=t.Linter=t.Modules=t.SDK=t.Logger=t.Err=t.Common=t.Babel=t.Esbuild=t.Manifest=void 0,t.Manifest=s(n(41657)),t.Esbuild=s(n(99982)),t.Babel=s(n(98878)),t.Common=s(n(43900)),t.Err=s(n(38159)),t.Logger=s(n(79841)),t.SDK=s(n(2167)),t.Modules=s(n(25775)),t.Linter=s(n(57274)),t.Rule=s(n(30518)),t.Thirdparty=s(n(11549)),t.Client=s(n(5264)),t.Constants=s(n(81046)),t.Plugin=s(n(87428))},46615:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=void 0;var r=n(38159);Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return r.ErrorLevel}})},57274:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(46615),t),i(n(57222),t)},57222:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79841:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,(r=n||(t.LogLevel=n={}))[r.Silent=0]="Silent",r[r.Error=1]="Error",r[r.Warning=2]="Warning",r[r.Info=3]="Info",r[r.Debug=4]="Debug",r[r.Verbose=5]="Verbose"},41657:function(e,t){"use strict";var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorManifestClientConstant=t.RsdoctorManifestClientRoutes=void 0,(i=n||(t.RsdoctorManifestClientRoutes=n={})).Overall="Overall",i.WebpackLoaders="Compile.WebpackLoaders",i.ModuleResolve="Compile.ModuleResolve",i.WebpackPlugins="Compile.WebpackPlugins",i.BundleSize="Bundle.BundleSize",i.ModuleGraph="Bundle.ModuleGraph",i.TreeShaking="Bundle.TreeShaking",(r||(t.RsdoctorManifestClientConstant=r={})).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__"},25775:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},13709:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},87428:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(82122),t),i(n(29842),t),i(n(63345),t),i(n(13709),t)},63345:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5312:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1001",t.message={code:t.code,title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
87
+ </ol>`}return r+="\n</li></div>"}(e)}}}}).filter(e=>!!e)}},41457:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Loaders Analysis",s=r.Client.RsdoctorClientRoutes.WebpackLoaderAnalysis},40335:function(e,t,n){"use strict";n.d(t,{BC:function(){return l.B},T3:function(){return a},u2:function(){return l.u}});var r=n(31549),i=n(4487),s=n(51264),o=n(21807),l=n(41457);let a=()=>(0,r.jsx)(o.Zb,{title:"Webpack Loader Analysis",extra:(0,r.jsx)(s.S,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:0,height:800},children:(0,r.jsx)(i.a,{})})},50638:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Loaders Timeline",s=r.Client.RsdoctorClientRoutes.WebpackLoaderOverall},77122:function(e,t,n){"use strict";n.d(t,{BC:function(){return l.B},T3:function(){return a},u2:function(){return l.u}});var r=n(31549),i=n(51264),s=n(21807),o=n(98463),l=n(50638);let a=()=>(0,r.jsx)(s.Zb,{title:"Loader Timeline",extra:(0,r.jsx)(i.S,{defaultKeys:["module"]}),collapsable:!0,children:(0,r.jsx)(o.T,{})})},90520:function(e,t,n){"use strict";n.d(t,{B:function(){return s},u:function(){return i}});var r=n(78741);let i="Plugins Analysis",s=r.Client.RsdoctorClientRoutes.WebpackPlugins},86825:function(e,t,n){"use strict";n.d(t,{BC:function(){return j.B},T3:function(){return y},u2:function(){return j.u}});var r=n(31549),i=n(37809),s=n(32780),o=n(78741),l=n(89246),a=n(95103),d=n(41681),u=n(73176),c=n(63272),h=n(8105),f=n(44194),p=n(51264),m=n(43622),x=n(13938),g=n(95925),j=n(90520);let y=()=>{let[e,t]=(0,f.useState)([]),[n,j]=(0,f.useState)([]);return(0,r.jsx)("div",{children:(0,r.jsx)(l.Z,{title:"Webpack Plugins Overall",bodyStyle:{paddingTop:g.Size.BasePadding/3},extra:(0,r.jsx)(p.S,{defaultKeys:["plugins"]}),children:(0,r.jsxs)(a.Z,{direction:"vertical",children:[(0,r.jsx)(m.Nu,{api:o.SDK.ServerAPI.API.GetPluginSummary,children:({hooks:e,tapNames:n})=>(0,r.jsxs)(a.Z,{style:{marginBottom:g.Size.BasePadding/2},children:[(0,r.jsxs)(d.Z.Group,{compact:!0,children:[(0,r.jsxs)(u.ZP,{children:[(0,r.jsx)(i.Z,{}),(0,r.jsx)(c.Z.Text,{children:"Plugin Tap Names"})]}),(0,r.jsx)(h.Z,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{t(e)},children:n.map(e=>(0,r.jsx)(h.Z.Option,{label:e,value:e,children:e},e))})]}),(0,r.jsxs)(d.Z.Group,{compact:!0,children:[(0,r.jsxs)(u.ZP,{children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(c.Z.Text,{children:"Hooks"})]}),(0,r.jsx)(h.Z,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{j(e)},children:e.map(e=>(0,r.jsx)(h.Z.Option,{label:e,value:e,children:e},e))})]})]})}),(0,r.jsx)(m.Nu,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:n,tapNames:e},children:e=>(0,r.jsx)(x.A,{dataSource:e})})]})})})}},83177:function(e,t,n){"use strict";n.d(t,{JZ:function(){return r},P3:function(){return i},Px:function(){return d},UM:function(){return l},Yt:function(){return o},kc:function(){return a},wH:function(){return u},xA:function(){return s},xk:function(){return c}});var r=n(11970),i=n(37556);n(18602);var s=n(77122),o=n(40335),l=n(86825),a=n(90025),d=n(488),u=n(29668),c=n(77455)},11082:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(46641);class i{constructor(e){this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new r.Vw.D(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e,t="data"){let n=this.get(t);if(n)return n[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 n=t().finally(()=>this.pool.delete(e));return this.pool.set(e,n),n}log(...e){console.log(`[${this.constructor.name}]`,...e)}async loadManifest(){return this.manifest}}},16510:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(46641),i=n(11082),s=n(78741);class o extends i.K{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let n=this.getData(t);if(console.log(`[loadData]-[data]: ${n}`),!n)return;let i=n;if(!this.shardingDataMap.has(t)){let e="object"==typeof i?i:JSON.parse(r.k1.AV(i));console.log(`[loadData]-[scopeData]: ${e}`),this.shardingDataMap.set(t,e)}return i=await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[s.Constants.WINDOW_RSDOCTOR_TAG][e]}async loadAPI(...e){return this.loader.loadAPI(...e)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},1675:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(78741),i=n(44194),s=n(36514),o=n(21249);n(41451),n(95925);var l=n(16510);let a=new WeakMap;async function d(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new s.G(e)}catch(e){console.log("[DataLoader] fallback to RemoteDataLoader")}return new o.O(e)}function u(e){let[t,n]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{window[r.Constants.WINDOW_RSDOCTOR_TAG]&&(console.log("[brief mode]"),n(new l.P({data:[]})))},[]),(0,i.useEffect)(()=>{if(!!e){if(!a.has(e)){let t=d(e);a.set(e,t)}a.get(e).then(e=>{n(e)})}},[e]),{loader:t}}},36514:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(46641),i=n(78741),s=n(50002),o=n(11082),l=n(41561);class a extends o.K{constructor(){super(...arguments),this.events=new Map}isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...n]=this.getKeys(e),o=this.getData(t);if(!o)return;let a=o;if(r.Gp.j8(a)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{(0,l.h)().emit(i.SDK.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return a=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),a}return n.length>0?(0,s.Z)(a,this.joinKeys(n)):a})}async loadAPI(...e){let[t,n]=e,r=n?`${t}_${JSON.stringify(n)}`:`${t}`,i=this.get("__SOCKET__PORT__")??"";return this.limit(r,async()=>new Promise(e=>{(0,l.h)(i).emit(t,n,t=>{e(t.res)})}))}dispose(){super.dispose(),this.events.forEach((e,t)=>{e.forEach(e=>{this.removeOnDataUpdate(t,e)}),e.clear()}),this.events.clear()}onDataUpdate(e,t){if(!this.events.has(e)&&this.events.set(e,new Set),!this.events.get(e).has(t))this.events.get(e).add(t),(0,l.h)().on(e,t)}removeOnDataUpdate(e,t){(0,l.h)().off(e,t),this.events.get(e).delete(t)}}},21249:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(46641),i=n(50002),s=n(11082),o=n(48612);class l extends s.K{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...n]=this.getKeys(e),s=this.getData(t,"cloudData");if(!s)return;let l=s;if(r.Gp.j8(l)){if(!this.shardingDataMap.has(t)){let n=r.Gp.om(l,o.C2).catch(t=>{throw this.log("loadData error: ",l,e),t});this.shardingDataMap.set(t,n)}l=await this.shardingDataMap.get(t)}return n.length>0?(0,i.Z)(l,this.joinKeys(n)):l})}async loadAPI(...e){let[t,n]=e,r=n?`${t}_${JSON.stringify(n)}`:`${t}`;return this.limit(r,async()=>this.loader.loadAPI(...e))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},85518:function(e,t,n){"use strict";n.d(t,{C0:function(){return d},ZK:function(){return u},n9:function(){return a},p_:function(){return o}});var r=n(50002),i=n(96883);let s=(e,t="/")=>{let n=e?.indexOf(t);return -1===n?null:0===n?t+(s(e?.slice(1))||""):e?.slice(0,n)};function o(e,t=2,n=()=>!0){let r=0,i=[],s=e;for(;r<t&&(s.filter(n).forEach(e=>{!e.isLeaf&&i.push(e.key)}),(s=s.reduce((e,t)=>e.concat(t.children||[]),[])).length);){;r++}return i}let l="__BASENAME__";function a({files:e,sep:t="/",inlinedResourcePathKey:n="__RESOURCEPATH__",fileTitle:i=(e,t)=>t,dirTitle:o=(e,t)=>t}){let a=new RegExp(t),d=e.reduce((e,o)=>{let d=s(o,t),u=d?o?.slice(d.length+1):o,c=e;for(;d;){let e=c.children.find(e=>e.title===d);if(!e){let r=[c[n],d].filter(Boolean).join(t);e={title:d,key:r,children:[],[n]:r,[l]:d},c.children.push(e)}c=e,u=(d=s(u))?u.slice(d.length).replace(a,""):u}return c.children.some(e=>(0,r.Z)(e,n)===o)?e:(c.children.push({title:()=>i(o,u),key:o,isLeaf:!0,[n]:o,[l]:u}),e)},{key:"0",children:[]}).children;return d.forEach(e=>{e.children&&e.children.forEach(r=>(function e(t,n,r="/",i,s=(e,t)=>t){if(!t.isLeaf){if(n.children&&1===n.children.length){let o=[n[l],t[l]].join(r);n[i]=t[i],n[l]=o,n.key=[n.key,t.key].join("-"),n.children=t.children,n.title=s(n,o),t.children&&t.children.forEach(t=>{e(t,n,r,i,s)})}else t.title=s(t,t[l]),t.children&&t.children.forEach(n=>{e(n,t,r,i,s)})}})(r,e,t,n,o))}),d}function d(e,t){return(0,i.Z)(e,t)?e.replace(t,"."):e}function u(e,t){let n=d(e,t),r="/node_modules/",i=n.lastIndexOf(r);return i>-1?{alias:n.slice(i+r.length),inNodeModules:!0}:{alias:n,inNodeModules:!1}}},11390:function(e,t,n){"use strict";n.d(t,{Bh:function(){return b},Bo:function(){return Z},EF:function(){return S},LR:function(){return v},Lm:function(){return M},Pd:function(){return y},QT:function(){return m},XO:function(){return x},is:function(){return g},m5:function(){return C},wm:function(){return j}});var r=n(46641),i=n(78741),s=n(40521),o=n(50013),l=n(78493),a=n(44194),d=n(76121),u=n(91425),c=n(89730),h=n.n(c);n(63396);var f=n(41451);let p=i.Client.RsdoctorClientRoutes.RuleIndex,m=()=>{let{i18n:e,...t}=(0,d.$)();return{...t,i18n:{...e,changeLanguage:(t,n)=>e.changeLanguage(t,(e,r)=>{!e&&(0,f.Ch)(t),n&&n(e,r)})}}};function x(e,t){let n=(0,u.s0)();return t?()=>window.open(t,"__blank"):()=>{n(`${p}?${i.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function g(){let e=(0,u.TH)().search||location.search,{query:t}=h()(e,!0);return t}function j(e){let t=e;return"string"==typeof t&&(e=JSON.parse(r.k1.AV(t))),function(e,t){if(e&&"object"==typeof e)return(0,s.Z)(e)?t:(0,o.Z)(e,t);return t}(e,{dependencies:[],modules:[],moduleGraphModules:[],exports:[],sideEffects:[],variables:[]})}function y(e){return(0,l.Z)(e,e=>e.path)}function S(e){return(0,s.Z)(e)?e.filter(e=>e.category===i.Rule.RuleMessageCategory.Compile&&e.code!==i.Rule.RuleMessageCodeEnumerated.Overlay):[]}function Z(e){return(0,s.Z)(e)?e.filter(e=>e.category===i.Rule.RuleMessageCategory.Bundle&&e.code!==i.Rule.RuleMessageCodeEnumerated.Overlay):[]}function b(e){return Z(e).filter(e=>e.code===i.Rule.RuleErrorMap.E1001.code)}function v(e=[]){return(0,s.Z)(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}function C(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)||!1}function M(){let[e,t]=(0,a.useState)(window.innerWidth);return(0,a.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},91110:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r={Overall:"\u6982\u89C8","Compile Analysis":"\u7F16\u8BD1\u5206\u6790",LoadersAnalysis:"Loaders \u5206\u6790","Loaders Timeline":"Loaders \u6982\u89C8","Loaders Analysis":"Loaders \u5206\u6790",PluginsAnalysis:"Plugins \u5206\u6790",ModuleResolve:"Module Resolve \u5206\u6790","Bundle Analysis":"\u4EA7\u7269\u5206\u6790",BundleSize:"\u4EA7\u7269\u4F53\u79EF\u5206\u6790","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"\u9519\u8BEF\u7D22\u5F15\u4FE1\u606F",Resources:"\u8D44\u6E90","Project Overall":"\u9879\u76EE\u4FE1\u606F\u6982\u89C8","Compile Overall":"\u7F16\u8BD1\u6570\u636E\u6982\u89C8","Bundle Overall":"\u4EA7\u7269\u6570\u636E\u6982\u89C8","Expand Omitted":" reasons \u6811\u4F1A\u9ED8\u8BA4\u6298\u53E0\u4E2D\u95F4\u7684\u7B2C\u4E09\u65B9\u5F15\u5165\u7684\u6A21\u5757\uFF0C\u70B9\u51FB\u8FD9\u4E2A\u56FE\u6807\u53EF\u4EE5\u67E5\u770B\u5B8C\u6574\u6811\u56FE","Concatenated Tag":"\u4E32\u8054\u6A21\u5757\uFF0Chover \u4E0A\u53BB\u53EF\u4EE5\u663E\u793A\u805A\u5408\u6210\u7684\u4E3B\u6A21\u5757\u540D\u79F0\u3002\u6CE8\uFF1A\u805A\u5408\u6A21\u5757 bundled size \u4E3A\u96F6\uFF0C\u6709\u53EF\u80FD\u662F\u56E0\u4E3A\u88AB\u805A\u5408\u5230\u4E86\u4E3B\u6A21\u5757\u4E2D\u3002","the file content not changed after transpiled by this loader":"\u8BE5\u6587\u4EF6\u5185\u5BB9\u5728 loader \u5904\u7406\u524D\u540E\u6CA1\u6709\u53D1\u751F\u53D8\u5316","Output Assets List":"\u4EA7\u7269\u6587\u4EF6\u5217\u8868","filter the output assets which size is greater than the input value":"\u7B5B\u9009\u5927\u5C0F\u5927\u4E8E\u8F93\u5165\u503C\u7684\u4EA7\u7269\u6587\u4EF6","filter the modules which size is greater than the input value":"\u7B5B\u9009\u5927\u5C0F\u5927\u4E8E\u8F93\u5165\u503C\u7684\u6A21\u5757","After Compile":"\u7F16\u8BD1\u540E","After Bundle":"\u6253\u5305\u540E",CodeModeExplain:"Lite \u6A21\u5F0F\u4E0B\u6216\u7EAF stats.json \u4E0A\u4F20\u7684\u60C5\u51B5\u4E0B\u53EA\u6709 source code.",DuplicatePakCodeExplain:"\u7EAF stats.json \u8F93\u5165\u7684\u60C5\u51B5\u4E0B\u6CA1\u6709\u4EE3\u7801\uFF0C\u53EF\u4F7F\u7528 Rsdoctor \u63D2\u4EF6\u53C2\u4E0E\u6784\u5EFA\u4F1A\u6709\u5BF9\u5E94\u4EE3\u7801\u3002"}},85371:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r={Overall:"Overall","Compile Analysis":"Compile Analysis",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"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."}},63396:function(e,t,n){"use strict";var r=n(81346),i=n(32060),s=n(85371),o=n(91110),l=n(41451);r.ZP.use(i.Db).init({lng:(0,l.V1)(),resources:{en:{translations:s.Z},cn:{translations:o.Z}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},77422:function(e,t,n){"use strict";n.d(t,{beautifyModulePath:function(){return i.ZK},beautifyPath:function(){return i.C0},changeOrigin:function(){return p.yq},createFileStructures:function(){return i.n9},fetchManifest:function(){return d.eq},filterLoader:function(){return x.F3},formatCosts:function(){return f.au},formatPercent:function(){return c.T},formatSize:function(){return c.B},getDemoUrl:function(){return p.jg},getLocale:function(){return o.K},getModifiedLanguage:function(){return a.oU},getOriginalLanguage:function(){return a.wA},getSelectionRange:function(){return a.pl},getShortPath:function(){return p.Uc},hasBundle:function(){return u.p},hasCompile:function(){return u.H},hasViewModeFromStorage:function(){return h.JS},isDef:function(){return p.Xq},isJsDataUrl:function(){return p.lW},mapFileKey:function(){return i.p_},setThemeToStorage:function(){return h.rn},setViewModeToStorage:function(){return h.oP},useBundleAlertsByErrors:function(){return s.Bo},useCompileAlertsByErrors:function(){return s.EF},useDataLoader:function(){return r.w},useDetectIfCloudIdeEnv:function(){return s.m5},useDuplicatePackagesByErrors:function(){return s.Bh},useI18n:function(){return s.QT},useLocale:function(){return l.bU},useModuleGraph:function(){return s.wm},useModuleGraphInstanceByModuleGraph:function(){return l.kb},useMonacoEditor:function(){return a.xA},useRuleIndexNavigate:function(){return s.XO},useTheme:function(){return l.Fg},useUniqModules:function(){return s.Pd},useUrlQuery:function(){return s.is},useViewMode:function(){return l.mJ},useWebpackConfigurationByConfigs:function(){return s.LR},useWindowWidth:function(){return s.Lm}});var r=n(1675),i=n(85518),s=n(11390),o=n(84573),l=n(44428),a=n(60271),d=n(48612),u=n(45437),c=n(29321);n(41561);var h=n(41451),f=n(53607),p=n(93155),m=n(47993);n.o(m,"filterLoader")&&n.d(t,{filterLoader:function(){return m.filterLoader}}),n.o(m,"Constants")&&n.d(t,{Constants:function(){return m.Constants}});var x=n(75196)},75196:function(e,t,n){"use strict";n.d(t,{F3:function(){return l},d8:function(){return s}});var r=n(46641),i=n(15890);let{findLoaderTotalTiming:s,getLoaderCosts:o}=r.aN;function l(e,t,n,r){return!(n&&-1===e.indexOf(n)||r?.length&&!(0,i.Z)(r,t))&&!0}},84573:function(e,t,n){"use strict";n.d(t,{K:function(){return s}});var r=n(93787),i=n(74547);function s(e){return"cn"===e||"zh-CN"===e?r.Z:i.Z}},44428:function(e,t,n){"use strict";n.d(t,{Fg:function(){return a},bU:function(){return l},kb:function(){return u},mJ:function(){return d}});var r=n(44194),i=n(70459),s=n(67351),o=n(95925);function l(){return(0,r.useContext)(s.E).locale}function a(){let{theme:e,setTheme:t}=(0,r.useContext)(s.E),n=e===o.Theme.Dark;return{theme:e,setTheme:t,isDark:n,isLight:!n}}function d(){let{viewMode:e,setViewMode:t}=(0,r.useContext)(s.E),{bundleAlerts:n,compileAlerts:i}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:i===o.ViewMode.List,isBundleList:n===o.ViewMode.List}}function u(e){return(0,r.useMemo)(()=>i.ModuleGraph.fromData(e),[e])}n(48612)},60271:function(e,t,n){"use strict";n.d(t,{oU:function(){return a},pl:function(){return d},wA:function(){return l},xA:function(){return c}});var r=n(77410),i=n(55834),s=n(93155);let o=i._m.init();function l(e){if((0,s.lW)(e))return"javascript";let t=(0,r.extname)(e).slice(1);switch(t){case"js":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";default:return t}}function a(e){let t=(0,r.extname)(e).slice(1);switch(t){case"js":case"jsx":case"ts":case"tsx":return"javascript";default:return t}}function d(e,t){let{start:n,end:r}=e,{line:i=1,column:s=0}=n;return new t(i,s+1,r?.line??i,(r?.column??9999)+1)}let u=e=>new Promise((t,n)=>{if(e.value){t();return}o.then(t=>{e.value=t}).catch(e=>{e?.type!=="cancelation"&&(console.error("Monaco initialization error:",e),n())})});function c(){return{initMonaco:u}}},48612:function(e,t,n){"use strict";let r;n.d(t,{C2:function(){return a},eq:function(){return c}});var i=n(80926),s=n(78741),o=n(46641);n(95925);var l=n(93155);async function a(e){return o.R9.CB(e)?i.Z.get(e,{timeout:999999,responseType:"text"}).then(e=>e.data):e}async function d(e){let t=await i.Z.get(e,{timeout:3e4}).then(e=>e.data);return"string"==typeof t&&(t=JSON.parse(t)),console.log("[json] ",e,t),t}n(41451);let u=new Map;async function c(e=(!(r=window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,l.Pi)())&&(r=s.SDK.ServerAPI.API.Manifest),r)){return!u.has(e)&&u.set(e,d(e).catch(t=>{throw u.delete(e),t})),await u.get(e)}},45437:function(e,t,n){"use strict";n.d(t,{H:function(){return s},p:function(){return o}});var r=n(15890),i=n(78741);function s(e){return(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)}function o(e){return(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.BundleSize)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleGraph)||(0,r.Z)(e,i.Manifest.RsdoctorManifestClientRoutes.TreeShaking)}},29321:function(e,t,n){"use strict";function r(e){let t;return t=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 i(e){return`${+e.toFixed(2)}%`}n.d(t,{B:function(){return r},T:function(){return i}})},41561:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(99524);let i=new Map,s=location.protocol.includes("https")?"wss":"ws",o=`${s}://${location.host}`;function l(e){let t=function({port:e,protocol:t,hostname:n}){if("undefined"!=typeof URL){let t=new URL("http://localhost");return t.port=String(e),t.hostname=n,t.protocol=location.protocol.includes("https")?"wss":"ws",t.toString()}let r=-1===t.indexOf(":")?":":"";return`${t}${r}//${n}:${e}`}({port:e,hostname:location.hostname,protocol:location.protocol});return function(e=o){if(!i.has(e)){let t=(0,r.io)(e,{});t.on("connect",()=>{console.log(`Socket Connect ${e}`)}),i.set(e,t)}return i.get(e)}(e?t:o)}},41451:function(e,t,n){"use strict";n.d(t,{Bd:function(){return a},Ch:function(){return c},JS:function(){return p},V1:function(){return u},ZM:function(){return h},oP:function(){return f},rn:function(){return d}});var r,i=n(95925);var s=((r=s||{}).Namespace="__RSDOCTOR__STORAGE__",r.Theme="THEME",r.Locale="LOCALE",r.ViewMode="VIEWMODE",r.APILoaderMode4Dev="APILOADERMODE_DEV",r);function o(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function l(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function a(){return o("THEME")||i.Theme.Light}function d(e){l("THEME",e)}function u(){return o("LOCALE")||i.Language.En}function c(e){l("LOCALE",e)}function h(){let e={bundleAlerts:i.ViewMode.List,compileAlerts:i.ViewMode.List};try{let t=o("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch(t){return e}}function f(e){l("VIEWMODE",JSON.stringify(e))}function p(){return!!o("VIEWMODE")}},53607:function(e,t,n){"use strict";n.d(t,{au:function(){return s}});let{toFixedDigits:r,getUnit:i,formatCosts:s}=n(46641).qp},93155:function(e,t,n){"use strict";n.d(t,{Pi:function(){return a},Uc:function(){return c},Xq:function(){return h},jg:function(){return u},lW:function(){return l},yq:function(){return d}});var r=n(89730),i=n.n(r),s=n(78741),o=n(45641);function l(e){return e.startsWith("data:text/javascript;")}function a(){let{query:e}=i()(location.href,!0),t=e[s.Client.RsdoctorClientUrlQuery.ManifestFile];if(t)return decodeURIComponent(t)}function d(e){var t;let n=i()(location.href,!0),r=i()(e,!0);return t=n,(0,o.Z)(t.hash,s.Client.RsdoctorClientRoutes.Uploader)&&t.set("hash",s.Client.RsdoctorClientRoutes.Overall),n.set("origin",e),n.set("protocol",r.protocol),n.set("host",r.host),n.set("port",r.port),n.toString()}function u(){return null}let c=e=>{if(e?.indexOf("node_modules")>=0){let t=e.split("node_modules");return`node_modules${t[t.length-1]}`}return e?.length?`${e?.split("/").slice(-4).join("/")}`:e};function h(e){return null!=e}},47993:function(e,t,n){"use strict";n.d(t,{master:function(){return i.S}});var r=n(19749);n.o(r,"filterLoader")&&n.d(t,{filterLoader:function(){return r.filterLoader}}),n.o(r,"master")&&n.d(t,{master:function(){return r.master}}),n.o(r,"Constants")&&n.d(t,{Constants:function(){return r.Constants}});var i=n(3204)},3204:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(86880);let i=new class e{constructor(){this._workerMap=new WeakMap}detectWorker(e){if(this._workerMap.has(e))return this._workerMap.get(e);let t=e(),n=new r.V(t);return this._workerMap.set(e,n),n}}},19749:function(){},86848:function(e,t,n){"use strict";function r(e,t){return t.postMessage(e)}n.d(t,{F5:function(){return r}})},86880:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(86848);class i{constructor(e){this.worker=e,this.timer=0,this.callbacks=new Map,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){let n=this.createEventId();return this.callbacks.set(n,t),(0,r.F5)({id:n,data:e},this.worker),{abort:()=>this.callbacks.delete(n)}}dispose(){this.worker.terminate()}}},35563:function(e,t,n){"use strict";n(78741)},47687:function(e,t,n){"use strict";n(35563)},49689:function(e,t,n){"use strict";n.d(t,{Module:function(){return r.Module},ModuleGraph:function(){return r.ModuleGraph}}),n(47687);var r=n(55620);n(16898)},93492:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(78741);let i=1;class s{constructor(e,t,n,r,s){this.statements=[],this.meta={exportsType:"default-with-named"},this.id=i++,this.request=e,this.module=t,this._originDependency=n,this.kind=r,this.statements=s??[]}static init(){i=1}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return r.SDK.DependencyKind[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===r.SDK.ModuleKind.Concatenation}isSameWithoutStatements(e){return this.request===e.request&&this.kind===e.kind&&this.module.id===e.module.id&&this.dependency.id===e.dependency.id}addStatement(e){!this.hasStatement(e)&&this.statements.push(e)}hasStatement(e){return this.statements.some(t=>t.isSame(e))}setBuildMeta(e){this.meta={...this.meta,...e}}toData(){return{id:this.id,request:this.request,resolvedRequest:this.resolvedRequest,kind:this.kind,module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}}s.kind=r.SDK.DependencyKind},39126:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(78741),i=n(93492),s=n(54223),o=n(1718),l=n(57882);class a{constructor(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map}static init(){s.Y.init(),i.S.init(),l.ModuleGraphModule.init()}static fromData(e){let t=new a,n=e=>new o.P(t.getModuleById(e.module),e.position);for(let n of e.modules??[]){let e=new s.Y(String(n.id),n.path,n.isEntry,n.kind);e.id=n.id,e.setSize(n.size),e.meta={strictHarmonyModule:n.meta?.strictHarmonyModule??!1,hasSetEsModuleStatement:n.meta?.hasSetEsModuleStatement??!1},e._isPreferSource=n.isPreferSource,e.chunks=n.chunks,t.addModule(e)}for(let r of e.modules??[]){let i=t.getModuleById(r.id);for(let s of r.dependencies){let r=(e.dependencies??[]).find(e=>e.id===s),o=r&&t.getModuleById(r.originDependency);if(!r||!o){console.warn(`The connection data ID is empty: ${s}`);continue}let l=i.addDependency(r.request,o,r.kind,r.statements.map(n));if(!!l)l.id=r.id,t.addDependency(l)}for(let e of r.modules??[]){let n=t.getModuleById(e);if(!n){console.warn(`Add the ordinary module ID as empty: ${e}`);continue}i.addNormalModule(n)}for(let e of r.concatenationModules??[]){let n=t.getModuleById(e);if(!n){console.warn(`The aggregation module ID is empty: ${n}`);continue}i.addConcatenationModule(n)}}for(let r of e.exports??[]){let e=new l.ExportInfo(r.name,r.identifier?n(r.identifier):void 0);e.id=r.id,t.addExportInfo(e)}for(let n of e.exports??[])if(n.from){let e=t._exportIdMap.get(n.id),r=t._exportIdMap.get(n.from);e&&r&&e.setFromExport(r)}for(let r of e.variables??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in the variable is empty\u{FF1A}${r.module}`);continue}let i=new l.Variable(r.name,e,r.usedInfo,n(r.identifier)),s=t._exportIdMap.get(r.exported??-1);s&&i.setExportInfo(s),i.id=r.id,t.addVariable(i)}for(let r of e.sideEffects??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in the side effects is empty\u{FF1A}${r.module}`);continue}let i=new l.SideEffect(r.name,e,n(r.identifier),r.originName);for(let e of(i.isNameSpace=r.isNameSpace,i.id=r.id,r.exports??[])){let n=t._exportIdMap.get(e);n&&n.addSideEffect(i)}if(r.variable){let e=t._varIdMap.get(r.variable);e&&(i._variable=e)}t.addSideEffect(i)}for(let n of e.moduleGraphModules??[]){let e=t.getModuleById(n.module);if(!e){console.warn(`The module ID in ModuleGraphModule is empty: ${n.module}`);continue}let r=new l.ModuleGraphModule(e,t,n.dynamic);t.addModuleGraphModule(r),n.exports.forEach(e=>{let n=t._exportIdMap.get(e);n&&r.addExportInfo(n)}),n.sideEffects.forEach(e=>{let n=t._sideEffectIdMap.get(e);n&&r.addSideEffect(n)}),n.variables.forEach(e=>{let n=t._varIdMap.get(e);n&&r.addVariable(n)})}return a.init(),t}clear(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map}size(){return this._moduleIdMap.size}fromInstance(e){this._dependenciesIdMap=new Map(e._dependenciesIdMap),this._moduleWebpackIdMap=new Map(e._moduleWebpackIdMap),this._moduleIdMap=new Map(e._moduleIdMap),this._moduleGraphModules=new Map(e._moduleGraphModules),this._exportIdMap=new Map(e._exportIdMap),this._sideEffectIdMap=new Map(e._sideEffectIdMap),this._varIdMap=new Map(e._varIdMap)}getSubGraphByModule(e){let t=new Set,n=[e];t.add(e);for(let e=0;e<n.length;e++)for(let{dependency:r}of n[e].getDependencies()){if(!t.has(r))t.add(r),n.push(r)}return n}getModules(){return Array.from(this._moduleWebpackIdMap.values())}getDependencies(){return Array.from(this._dependenciesIdMap.values())}getEntryModules(){return this.getModules().filter(e=>e.isEntry&&e.kind!==r.SDK.ModuleKind.Concatenation)}getModuleById(e){return this._moduleIdMap.get(e)}getDependencyById(e){return this._dependenciesIdMap.get(e)}getModuleByWebpackId(e){return this._moduleWebpackIdMap.get(e)}getModuleByFile(e){return this.getModules().find(t=>t.path===e)}addModule(...e){for(let t of e)!this._moduleIdMap.has(t.id)&&(this._moduleWebpackIdMap.set(t.webpackId,t),this._moduleIdMap.set(t.id,t))}addDependency(...e){for(let t of e)!this._dependenciesIdMap.has(t.id)&&(this._dependenciesIdMap.set(t.id,t),this.addModule(t.module),this.addModule(t.dependency))}removeModule(e){for(let t of(this._moduleIdMap.delete(e.id),this._moduleWebpackIdMap.delete(e.webpackId),e.getDependencies()))this.removeDependency(t),this._dependenciesIdMap.delete(t.id);for(let t of e.getImported())t.removeDependencyByModule(t)}removeDependency(e){e.module.removeDependency(e),e.dependency.removeImported(e.module),this._dependenciesIdMap.delete(e.id)}addModuleGraphModule(e){!this._moduleGraphModules.has(e.module)&&this._moduleGraphModules.set(e.module,e)}getModuleGraphModule(e){return this._moduleGraphModules.get(e)}getModuleGraphModules(){return Array.from(this._moduleGraphModules.values())}addExportInfo(e){this._exportIdMap.set(e.id,e)}addSideEffect(e){this._sideEffectIdMap.set(e.id,e)}addVariable(e){this._varIdMap.set(e.id,e)}toData(e){return{dependencies:this.getDependencies().map(e=>e.toData()),modules:this.getModules().map(t=>t.toData(e?.contextPath)),moduleGraphModules:Array.from(this._moduleGraphModules.values()).map(e=>e.toData()),exports:Array.from(this._exportIdMap.values()).map(e=>e.toData()),sideEffects:Array.from(this._sideEffectIdMap.values()).map(e=>e.toData()),variables:Array.from(this._varIdMap.values()).map(e=>e.toData())}}toCodeData(e=r.SDK.ToDataType.Normal){let t={};return this.getModules().forEach(n=>{t[n.id]=n.getSource(e)}),t}}},55620:function(e,t,n){"use strict";n.d(t,{Module:function(){return r.Y},ModuleGraph:function(){return i.x}}),n(93492);var r=n(54223),i=n(39126);n(1718),n(57882)},54223:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(78741),i=n(77410),s=n.n(i),o=n(39378),l=n(93492),a=n(1718),d=n(4034);let u=1;class c{constructor(e,t,n=!1,i=r.SDK.ModuleKind.Normal){this.source={source:"",transformed:"",parsedSource:""},this.size={sourceSize:0,transformedSize:0,parsedSize:0},this.chunks=[],this.dependencies=[],this.imported=[],this.modules=[],this.concatenationModules=[],this.meta={hasSetEsModuleStatement:!1,strictHarmonyModule:!1},this.id=u++,this.webpackId=e,this.path=t,this.isEntry=n,this.kind=i}static init(){u=1}get rootModule(){return this.modules.find(e=>e.path===this.path)}get isPreferSource(){if("boolean"==typeof this._isPreferSource)return this._isPreferSource;let e=this.source.source.length>0&&"test code"!==this.source.source&&!!this.sourceMap;return this._isPreferSource=e,e}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,n,r){let i=new l.S(e,this,t,n,r);if(this.dependencies.every(e=>!e.isSameWithoutStatements(i)))return this.dependencies.push(i),t.addImported(this),t.rootModule&&t.rootModule.addImported(this),i}removeDependency(e){this.dependencies=this.dependencies.filter(t=>t===e)}removeDependencyByModule(e){let t=this.getDependencyByModule(e);t&&this.removeDependency(t)}getImported(){return this.imported.slice()}addImported(e){!this.imported.includes(e)&&this.imported.push(e)}removeImported(e){this.imported=this.imported.filter(t=>t===e)}setProgram(e){this.program=e}getProgram(){return this.program}setSource(e){let{source:t}=this;t.source=e.source??t.source,t.transformed=e.transformed??t.transformed,t.parsedSource=e.parsedSource??t.parsedSource}getSource(e=r.SDK.ToDataType.Normal){return e===r.SDK.ToDataType.NoCode?{source:"",transformed:"",parsedSource:""}:e===r.SDK.ToDataType.NoSourceAndAssets||e===r.SDK.ToDataType.NoSource?{source:"",transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}:e===r.SDK.ToDataType.All?{source:this.source.source,transformed:this.source.transformed,parsedSource:this.isPreferSource?"":this.source.parsedSource}:{source:this.source.source,transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}}setSourceMap(e){this.sourceMap=e}getSourceMap(){return this.sourceMap}setSize(e){let{size:t}=this;t.sourceSize=e.sourceSize??t.sourceSize,t.transformedSize=e.transformedSize??t.transformedSize,t.parsedSize=e.parsedSize??t.parsedSize}getSize(){return{...this.size}}getStatement(e){return new a.P(this,{source:this.getSourceRange(e),transformed:{start:{...e.start},end:e.end?{...e.end}:void 0}})}getSourceRange(e){let{sourceMap:t}=this;if(!t)return;let n={start:{}},r=t.originalPositionFor({line:e.start.line??0,column:e.start.column??0,bias:1});if((0,o.isNumber)(r.line)&&(n.start={line:r.line,column:r.column??void 0}),e.end){let r=t.originalPositionFor({line:e.end.line??0,column:e.end.column??0});(0,o.isNumber)(r.line)&&(n.end={line:r.line,column:r.column??void 0})}return n}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)}getConcatenationModules(){return this.concatenationModules.slice()}toData(e){let{isPreferSource:t}=this,n=(0,d.mz)(this.webpackId),r={id:this.id,webpackId:e&&n.indexOf(".")>0?s().relative(e,n):this.webpackId,path:this.path,isPreferSource:t,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};return(this.meta.hasSetEsModuleStatement||this.meta.strictHarmonyModule)&&(r.meta={},this.meta.hasSetEsModuleStatement&&(r.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(r.meta.strictHarmonyModule=!0)),this.isEntry&&(r.isEntry=this.isEntry),this.modules.length>0&&(r.modules=this.modules.map(e=>e.id)),this.rootModule&&(r.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(r.concatenationModules=this.concatenationModules.map(e=>e.id)),r}}c.kind=r.SDK.ModuleKind},1718:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(4034);class i{static getDefaultStatement(e){let t={line:1,column:0},n={start:{...t},end:{...t}};return new i(e,{source:{...n},transformed:{...n}})}constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,r.Hf)(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(),n=e?t.source:t.transformed,r=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof r)return n.split("\n")[r-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}},23634:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});let r=1;class i{constructor(e,t,n){this.id=r++,this._sideEffects=[],this.name=e,this.identifier=t,this._variable=n}static init(){r=1}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(e=1/0){if(0===e)throw Error("`getRecursiveExport` method parameter depth must be greater than 1.");if(!this.from)return this;let t=0,n=this;for(;n.from&&t<e;)t++,n=n.from;return n}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}}},57882:function(e,t,n){"use strict";n.d(t,{ExportInfo:function(){return i.h},ModuleGraphModule:function(){return r.N},SideEffect:function(){return o.k},Variable:function(){return s._}});var r=n(97095),i=n(23634),s=n(12689),o=n(88449)},97095:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(23634),i=n(88449),s=n(12689);class o{constructor(e,t,n){this.exports=[],this.sideEffects=[],this.variables=[],this.module=e,this._graph=t,"boolean"==typeof this._dynamic&&(this._dynamic=n)}static init(){r.h.init(),i.k.init(),s._.init()}get dynamic(){return"boolean"==typeof this._dynamic?this._dynamic:this.module.getImported().map(e=>e.getDependencyByModule(this.module)).some(e=>e&&"dynamic"===e.meta.exportsType)}addExportInfo(e){this.exports.push(e),this._graph.addExportInfo(e)}addSideEffect(e){this.sideEffects.push(e),this._graph.addSideEffect(e)}addVariable(e){this.variables.push(e),this._graph.addVariable(e)}getExports(){return this.exports.slice()}getSideEffects(e){return e?this.sideEffects.filter(t=>t.name===e):this.sideEffects.slice()}getOwnExports(){return this.exports.filter(e=>!e.isReExport)}getExport(e){return this.exports.find(t=>t.name===e)}getReExports(){return this.exports.filter(e=>e.isReExport)}getOwnExport(e){return this.getOwnExports().find(t=>t.name===e)}getReExport(e){return this.getReExports().find(t=>t.name===e)}toData(){return{module:this.module.id,dynamic:this.dynamic,exports:this.exports.map(e=>e.id),sideEffects:this.sideEffects.map(e=>e.id),variables:this.variables.map(e=>e.id)}}}},88449:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});let r=1,i=class e{constructor(t,n,i,s,o){this.id=r++,this._exports=[],this.name=t,this.module=n,this.identifier=i,s&&(this.fromDependency=this.module.getDependencyByRequest(s)),o===e.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=o)}static init(){r=1}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}};i.NamespaceSymbol=Symbol("namespace");let s=i},12689:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});let r=1;class i{constructor(e,t,n,i){this.id=r++,this.name=e,this.module=t,this.usedInfo=n,this.identifier=i}static init(){r=1}get isUsed(){return!!this._exported&&this._exported.getSideEffects().length>0}setExportInfo(e){this._exported=e,e.variable=this}getExportInfo(){return this._exported}toData(){let e={id:this.id,name:this.name,module:this.module.id,identifier:this.identifier.toData(),usedInfo:this.usedInfo};return this._exported&&(e.exported=this._exported.id),e}}},4034:function(e,t,n){"use strict";n.d(t,{Hf:function(){return s},mz:function(){return d}});var r=n(39378);function i(e,t){return e.line===t.line&&e.column===t.column}function s(e,t){return!!i(e.start,t.start)&&((0,r.isNil)(e.end)||(0,r.isNil)(t.end)?(0,r.isUndefined)(e.end)&&(0,r.isUndefined)(t.end):i(e.end,t.end))}let o=/!/,l=/\s\+\s\d*\smodules$/,a=/^css\s.*node_modules(?!\/)/;function d(e){if(!e)return"";if(o.test(e)){let t=(0,r.last)(e.split(o));if(t?.trim())return t}return l.test(e)?e.replace(l,""):a.test(e)?e.replace(a,""):e}},53330:function(e,t,n){"use strict";n(39378),n(77410),n(78741),n(32603),n(68442)},16898:function(e,t,n){"use strict";n(53330),n(32603)},32603:function(e,t,n){"use strict";n(77410),n(68442)},68442:function(e,t,n){"use strict";n(77410),n(46641)},70459:function(e,t,n){"use strict";var r=n(49689);n.o(r,"Module")&&n.d(t,{Module:function(){return r.Module}}),n.o(r,"ModuleGraph")&&n.d(t,{ModuleGraph:function(){return r.ModuleGraph}})},98878:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5264:function(e,t){"use strict";var n,r,i,s,o,l;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorClientDiffState=t.RsdoctorClientRoutes=t.RsdoctorClientUrlQuery=void 0,(s=n||(t.RsdoctorClientUrlQuery=n={})).BundleDiffFiles="__bundle_files__",s.ManifestFile="manifest",(o=r||(t.RsdoctorClientRoutes=r={})).Overall="/overall",o.WebpackLoaderOverall="/webpack/loaders/overall",o.WebpackLoaderAnalysis="/webpack/loaders/analysis",o.ModuleResolve="/module/resolve",o.WebpackPlugins="/webpack/plugins",o.BundleSize="/bundle/size",o.ModuleAnalyze="/module/analyze",o.TreeShaking="/treeshaking",o.BundleDiff="/resources/bundle/diff",o.RuleIndex="/resources/rules",o.Uploader="/resources/uploader",o.EmoCheck="/emo/check",(l=i||(t.RsdoctorClientDiffState=i={})).Equal="-",l.Up="UP",l.Down="DOWN"},43900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81046:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WINDOW_RSDOCTOR_TAG=t.RsdoctorClientUrl=t.RsdoctorProcessEnvDebugKey=t.RsdoctorMonitorDocBId=t.RsdoctorMonitorWebBId=t.RsdoctorMonitorNodeBId=t.StatsFilePath=t.RsdoctorOutputManifestPath=t.RsdoctorOutputManifest=t.RsdoctorOutputFolder=t.MapExtensions=t.FontExtensions=t.MediaExtensions=t.ImgExtensions=t.HtmlExtension=t.CSSExtension=t.JSExtension=void 0,t.JSExtension=".js",t.CSSExtension=".css",t.HtmlExtension=".html",t.ImgExtensions=[".png",".jpg",".svg",".webp",".jpeg",".gif",".bmp"],t.MediaExtensions=[".mp3",".mp4",".avi",".wav",".flv",".mov",".mpg",".mpeg"],t.FontExtensions=[".ttf",".fnt",".fon",".otf",".woff",".woff2"],t.MapExtensions=[".js.map",".css.map",".ts.map",".LICENSE.txt"],t.RsdoctorOutputFolder=".rsdoctor",t.RsdoctorOutputManifest="manifest.json",t.RsdoctorOutputManifestPath=`${t.RsdoctorOutputFolder}/${t.RsdoctorOutputManifest}`,t.StatsFilePath="dist/stats.json",t.RsdoctorMonitorNodeBId="Rsdoctor",t.RsdoctorMonitorWebBId="Rsdoctor-Client",t.RsdoctorMonitorDocBId="Rsdoctor-Doc",t.RsdoctorProcessEnvDebugKey="RSDOCTOR_DEBUG",t.RsdoctorClientUrl="",t.WINDOW_RSDOCTOR_TAG="__RSDOCTOR__"},38159:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLevel=void 0,(r=n||(t.ErrorLevel=n={}))[r.Ignore=0]="Ignore",r[r.Warn=1]="Warn",r[r.Error=2]="Error"},99982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78741:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Plugin=t.Constants=t.Client=t.Thirdparty=t.Rule=t.Linter=t.Modules=t.SDK=t.Logger=t.Err=t.Common=t.Babel=t.Esbuild=t.Manifest=void 0,t.Manifest=s(n(41657)),t.Esbuild=s(n(99982)),t.Babel=s(n(98878)),t.Common=s(n(43900)),t.Err=s(n(38159)),t.Logger=s(n(79841)),t.SDK=s(n(2167)),t.Modules=s(n(25775)),t.Linter=s(n(57274)),t.Rule=s(n(30518)),t.Thirdparty=s(n(11549)),t.Client=s(n(5264)),t.Constants=s(n(81046)),t.Plugin=s(n(87428))},46615:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=void 0;var r=n(38159);Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return r.ErrorLevel}})},57274:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(46615),t),i(n(57222),t)},57222:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79841:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,(r=n||(t.LogLevel=n={}))[r.Silent=0]="Silent",r[r.Error=1]="Error",r[r.Warning=2]="Warning",r[r.Info=3]="Info",r[r.Debug=4]="Debug",r[r.Verbose=5]="Verbose"},41657:function(e,t){"use strict";var n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorManifestClientConstant=t.RsdoctorManifestClientRoutes=void 0,(i=n||(t.RsdoctorManifestClientRoutes=n={})).Overall="Overall",i.WebpackLoaders="Compile.WebpackLoaders",i.ModuleResolve="Compile.ModuleResolve",i.WebpackPlugins="Compile.WebpackPlugins",i.BundleSize="Bundle.BundleSize",i.ModuleGraph="Bundle.ModuleGraph",i.TreeShaking="Bundle.TreeShaking",(r||(t.RsdoctorManifestClientConstant=r={})).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__"},25775:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},13709:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},87428:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(82122),t),i(n(29842),t),i(n(63345),t),i(n(13709),t)},63345:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5312:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1001",t.message={code:t.code,title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
88
88
  #### Description
89
89
 
90
90
  there is a same name package which bundled more than one version in your application.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/client",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "main": "dist/index.html",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,8 +38,8 @@
38
38
  "react-router-dom": "6.4.3",
39
39
  "serve-static": "1.16.2",
40
40
  "typescript": "^5.2.2",
41
- "@rsdoctor/components": "0.4.7",
42
- "@rsdoctor/types": "0.4.7"
41
+ "@rsdoctor/components": "0.4.8",
42
+ "@rsdoctor/types": "0.4.8"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public",