@rsdoctor/client 0.1.0 → 0.1.2

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.
@@ -1,5 +1,5 @@
1
- /*! For license information please see index.1da84dc9.js.LICENSE.txt */
2
- !function(){var e,t,r,n,i={13275:function(e,t,r){e=r.nmd(e),(function(){var n,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",s=1/0,l=0/0,u=4294967294,c=2147483647,d=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",h="[object Array]",p="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",x="[object GeneratorFunction]",v="[object Map]",j="[object Number]",S="[object Object]",b="[object Promise]",_="[object RegExp]",C="[object Set]",w="[object String]",T="[object Symbol]",P="[object WeakMap]",A="[object ArrayBuffer]",I="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",k="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",R="[object Uint8Array]",z="[object Uint8ClampedArray]",B="[object Uint16Array]",L="[object Uint32Array]",N=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(W.source),U=RegExp(G.source),V=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Q.source),ee=/^\s+/,et=/\s/,er=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,en=/\{\n\/\* \[wrapped with (.+)\] \*/,ei=/,? & /,eo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ea=/[()=,{}\[\]\/\s]/,es=/\\(\\)?/g,el=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eu=/\w*$/,ec=/^[-+]0x[0-9a-f]+$/i,ed=/^0b[01]+$/i,ef=/^\[object .+?Constructor\]$/,eh=/^0o[0-7]+$/i,ep=/^(?:0|[1-9]\d*)$/,eg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,em=/($^)/,ey=/['\n\r\u2028\u2029\\]/g,ex="\ud800-\udfff",ev="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ej="\\u2700-\\u27bf",eS="a-z\\xdf-\\xf6\\xf8-\\xff",eb="A-Z\\xc0-\\xd6\\xd8-\\xde",e_="\\ufe0e\\ufe0f",eC="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ew="['\u2019]",eT="["+eC+"]",eP="["+ev+"]",eA="["+eS+"]",eI="[^"+ex+eC+"\\d+"+ej+eS+eb+"]",eM="\ud83c[\udffb-\udfff]",eD="[^"+ex+"]",ek="(?:\ud83c[\udde6-\uddff]){2}",eE="[\ud800-\udbff][\udc00-\udfff]",eO="["+eb+"]",eR="\\u200d",ez="(?:"+eA+"|"+eI+")",eB="(?:"+ew+"(?:d|ll|m|re|s|t|ve))?",eL="(?:"+ew+"(?:D|LL|M|RE|S|T|VE))?",eN="(?:"+eP+"|"+eM+")?",eF="["+e_+"]?",e$="(?:"+eR+"(?:"+[eD,ek,eE].join("|")+")"+eF+eN+")*",eW=eF+eN+e$,eG="(?:"+["["+ej+"]",ek,eE].join("|")+")"+eW,eK="(?:"+[eD+eP+"?",eP,ek,eE,"["+ex+"]"].join("|")+")",eU=RegExp(ew,"g"),eV=RegExp(eP,"g"),eH=RegExp(eM+"(?="+eM+")|"+eK+eW,"g"),eY=RegExp([eO+"?"+eA+"+"+eB+"(?="+[eT,eO,"$"].join("|")+")","(?:"+eO+"|"+eI+")+"+eL+"(?="+[eT,eO+ez,"$"].join("|")+")",eO+"?"+ez+"+"+eB,eO+"+"+eL,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",eG].join("|"),"g"),eq=RegExp("["+eR+ex+ev+e_+"]"),eJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eZ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eQ=-1,eX={};eX[M]=eX[D]=eX[k]=eX[E]=eX[O]=eX[R]=eX[z]=eX[B]=eX[L]=!0,eX[f]=eX[h]=eX[A]=eX[p]=eX[I]=eX[g]=eX[m]=eX[y]=eX[v]=eX[j]=eX[S]=eX[_]=eX[C]=eX[w]=eX[P]=!1;var e0={};e0[f]=e0[h]=e0[A]=e0[I]=e0[p]=e0[g]=e0[M]=e0[D]=e0[k]=e0[E]=e0[O]=e0[v]=e0[j]=e0[S]=e0[_]=e0[C]=e0[w]=e0[T]=e0[R]=e0[z]=e0[B]=e0[L]=!0,e0[m]=e0[y]=e0[P]=!1;var e1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e2=parseFloat,e7=parseInt,e3="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,e9="object"==typeof self&&self&&self.Object===Object&&self,e6=e3||e9||Function("return this")(),e4="object"==typeof t&&t&&!t.nodeType&&t,e8=e4&&"object"==typeof e&&e&&!e.nodeType&&e,e5=e8&&e8.exports===e4,te=e5&&e3.process,tt=function(){try{var e=e8&&e8.require&&e8.require("util").types;if(e)return e;return te&&te.binding&&te.binding("util")}catch(e){}}(),tr=tt&&tt.isArrayBuffer,tn=tt&&tt.isDate,ti=tt&&tt.isMap,to=tt&&tt.isRegExp,ta=tt&&tt.isSet,ts=tt&&tt.isTypedArray;function tl(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function tu(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function tc(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function td(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function tf(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function th(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function tp(e,t){return!!(null==e?0:e.length)&&tC(e,t,0)>-1}function tg(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function tm(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function ty(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tx(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function tv(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function tj(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var tS=tA("length");function tb(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function t_(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return -1}function tC(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t,r):t_(e,tT,r)}function tw(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return -1}function tT(e){return e!=e}function tP(e,t){var r=null==e?0:e.length;return r?tD(e,t)/r:l}function tA(e){return function(t){return null==t?n:t[e]}}function tI(e){return function(t){return null==e?n:e[t]}}function tM(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function tD(e,t){for(var r,i=-1,o=e.length;++i<o;){var a=t(e[i]);n!==a&&(r=n===r?a:r+a)}return r}function tk(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tE(e){return e?e.slice(0,tq(e)+1).replace(ee,""):e}function tO(e){return function(t){return e(t)}}function tR(e,t){return tm(t,function(t){return e[t]})}function tz(e,t){return e.has(t)}function tB(e,t){for(var r=-1,n=e.length;++r<n&&tC(t,e[r],0)>-1;);return r}function tL(e,t){for(var r=e.length;r--&&tC(t,e[r],0)>-1;);return r}var tN=tI({\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"}),tF=tI({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function t$(e){return"\\"+e1[e]}function tW(e){return eq.test(e)}function tG(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tK(e,t){return function(r){return e(t(r))}}function tU(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r];(s===t||s===a)&&(e[r]=a,o[i++]=r)}return o}function tV(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tH(e){return tW(e)?function(e){for(var t=eH.lastIndex=0;eH.test(e);)++t;return t}(e):tS(e)}function tY(e){return tW(e)?function(e){return e.match(eH)||[]}(e):e.split("")}function tq(e){for(var t=e.length;t--&&et.test(e.charAt(t)););return t}var tJ=tI({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),tZ=function e(t){var r,et,ex,ev,ej=(t=null==t?e6:tZ.defaults(e6.Object(),t,tZ.pick(e6,eZ))).Array,eS=t.Date,eb=t.Error,e_=t.Function,eC=t.Math,ew=t.Object,eT=t.RegExp,eP=t.String,eA=t.TypeError,eI=ej.prototype,eM=e_.prototype,eD=ew.prototype,ek=t["__core-js_shared__"],eE=eM.toString,eO=eD.hasOwnProperty,eR=0;var ez=(r=/[^.]+$/.exec(ek&&ek.keys&&ek.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",eB=eD.toString,eL=eE.call(ew),eN=e6._,eF=eT("^"+eE.call(eO).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),e$=e5?t.Buffer:n,eW=t.Symbol,eG=t.Uint8Array,eK=e$?e$.allocUnsafe:n,eH=tK(ew.getPrototypeOf,ew),eq=ew.create,e1=eD.propertyIsEnumerable,e3=eI.splice,e9=eW?eW.isConcatSpreadable:n,e4=eW?eW.iterator:n,e8=eW?eW.toStringTag:n,te=function(){try{var e=ib(ew,"defineProperty");return e({},"",{}),e}catch(e){}}(),tt=t.clearTimeout!==e6.clearTimeout&&t.clearTimeout,tS=eS&&eS.now!==e6.Date.now&&eS.now,tI=t.setTimeout!==e6.setTimeout&&t.setTimeout,tQ=eC.ceil,tX=eC.floor,t0=ew.getOwnPropertySymbols,t1=e$?e$.isBuffer:n,t2=t.isFinite,t7=eI.join,t3=tK(ew.keys,ew),t9=eC.max,t6=eC.min,t4=eS.now,t8=t.parseInt,t5=eC.random,re=eI.reverse,rt=ib(t,"DataView"),rr=ib(t,"Map"),rn=ib(t,"Promise"),ri=ib(t,"Set"),ro=ib(t,"WeakMap"),ra=ib(ew,"create"),rs=ro&&new ro,rl={},ru=iY(rt),rc=iY(rr),rd=iY(rn),rf=iY(ri),rh=iY(ro),rp=eW?eW.prototype:n,rg=rp?rp.valueOf:n,rm=rp?rp.toString:n;function ry(e){if(o1(e)&&!oK(e)&&!(e instanceof rS)){if(e instanceof rj)return e;if(eO.call(e,"__wrapped__"))return iq(e)}return new rj(e)}var rx=function(){function e(){}return function(t){if(!o0(t))return{};if(eq)return eq(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function rv(){}function rj(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function rS(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}ry.templateSettings={escape:V,evaluate:H,interpolate:Y,variable:"",imports:{_:ry}},ry.prototype=rv.prototype,ry.prototype.constructor=ry,rj.prototype=rx(rv.prototype),rj.prototype.constructor=rj;function rb(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rS.prototype=rx(rv.prototype),rS.prototype.constructor=rS;function r_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rb.prototype.clear=function(){this.__data__=ra?ra(null):{},this.size=0},rb.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rb.prototype.get=function(e){var t=this.__data__;if(ra){var r=t[e];return r===o?n:r}return eO.call(t,e)?t[e]:n},rb.prototype.has=function(e){var t=this.__data__;return ra?n!==t[e]:eO.call(t,e)},rb.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ra&&n===t?o:t,this};function rC(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}r_.prototype.clear=function(){this.__data__=[],this.size=0},r_.prototype.delete=function(e){var t=this.__data__,r=rE(t,e);return!(r<0)&&(r==t.length-1?t.pop():e3.call(t,r,1),--this.size,!0)},r_.prototype.get=function(e){var t=this.__data__,r=rE(t,e);return r<0?n:t[r][1]},r_.prototype.has=function(e){return rE(this.__data__,e)>-1},r_.prototype.set=function(e,t){var r=this.__data__,n=rE(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function rw(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rC;++t<r;)this.add(e[t])}rC.prototype.clear=function(){this.size=0,this.__data__={hash:new rb,map:new(rr||r_),string:new rb}},rC.prototype.delete=function(e){var t=ij(this,e).delete(e);return this.size-=t?1:0,t},rC.prototype.get=function(e){return ij(this,e).get(e)},rC.prototype.has=function(e){return ij(this,e).has(e)},rC.prototype.set=function(e,t){var r=ij(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function rT(e){var t=this.__data__=new r_(e);this.size=t.size}rw.prototype.add=rw.prototype.push=function(e){return this.__data__.set(e,o),this},rw.prototype.has=function(e){return this.__data__.has(e)};function rP(e,t){var r=oK(e),n=!r&&oG(e),i=!r&&!n&&oY(e),o=!r&&!n&&!i&&o5(e),a=r||n||i||o,s=a?tk(e.length,eP):[],l=s.length;for(var u in e)(t||eO.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||iI(u,l)))&&s.push(u);return s}function rA(e){var t=e.length;return t?e[np(0,t-1)]:n}function rI(e,t){return iU(nY(e),rL(t,0,e.length))}function rM(e){return iU(nY(e))}function rD(e,t,r){(n!==r&&!oF(e[t],r)||n===r&&!(t in e))&&rz(e,t,r)}function rk(e,t,r){var i=e[t];(!(eO.call(e,t)&&oF(i,r))||n===r&&!(t in e))&&rz(e,t,r)}function rE(e,t){for(var r=e.length;r--;)if(oF(e[r][0],t))return r;return -1}function rO(e,t,r,n){return rG(e,function(e,i,o){t(n,e,r(e),o)}),n}function rR(e,t){return e&&nq(t,aS(t),e)}rT.prototype.clear=function(){this.__data__=new r_,this.size=0},rT.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rT.prototype.get=function(e){return this.__data__.get(e)},rT.prototype.has=function(e){return this.__data__.has(e)},rT.prototype.set=function(e,t){var r=this.__data__;if(r instanceof r_){var n=r.__data__;if(!rr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rC(n)}return r.set(e,t),this.size=r.size,this};function rz(e,t,r){"__proto__"==t&&te?te(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rB(e,t){for(var r=-1,i=t.length,o=ej(i),a=null==e;++r<i;)o[r]=a?n:am(e,t[r]);return o}function rL(e,t,r){return e==e&&(n!==r&&(e=e<=r?e:r),n!==t&&(e=e>=t?e:t)),e}function rN(e,t,r,i,o,a){var s,l=1&t,u=2&t,c=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),n!==s)return s;if(!o0(e))return e;var d=oK(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&eO.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return nY(e,s)}else{var h,m,b=iw(e),P=b==y||b==x;if(oY(e))return nW(e,l);if(b==S||b==f||P&&!o){if(s=u||P?{}:iP(e),!l){;return u?function(e,t){return nq(e,iC(e),t)}(e,(h=s,m=e,h&&nq(m,ab(m),h))):function(e,t){return nq(e,i_(e),t)}(e,rR(s,e))}}else{if(!e0[b])return o?e:{};s=function(e,t,r){var n,i,o,a,s,l=e.constructor;switch(t){case A:return nG(e);case p:case g:return new l(+e);case I:;return n=e,i=r?nG(n.buffer):n.buffer,new n.constructor(i,n.byteOffset,n.byteLength);case M:case D:case k:case E:case O:case R:case z:case B:case L:return nK(e,r);case v:return new l;case j:case w:return new l(e);case _:;return(a=new(o=e).constructor(o.source,eu.exec(o))).lastIndex=o.lastIndex,a;case C:return new l;case T:;return s=e,rg?ew(rg.call(s)):{}}}(e,b,l)}}a||(a=new rT);var N=a.get(e);if(N)return N;a.set(e,s),o6(e)?e.forEach(function(n){s.add(rN(n,t,r,n,e,a))}):o2(e)&&e.forEach(function(n,i){s.set(i,rN(n,t,r,i,e,a))});var F=c?u?ig:ip:u?ab:aS,$=d?n:F(e);return tc($||e,function(n,i){$&&(n=e[i=n]),rk(s,i,rN(n,t,r,i,e,a))}),s}function rF(e,t,r){var i=r.length;if(null==e)return!i;for(e=ew(e);i--;){var o=r[i],a=t[o],s=e[o];if(n===s&&!(o in e)||!a(s))return!1}return!0}function r$(e,t,r){if("function"!=typeof e)throw new eA(i);return i$(function(){e.apply(n,r)},t)}function rW(e,t,r,n){var i=-1,o=tp,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=tm(t,tO(r))),n?(o=tg,a=!1):t.length>=200&&(o=tz,a=!1,t=new rw(t));e:for(;++i<s;){var c=e[i],d=null==r?c:r(c);if(c=n||0!==c?c:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else!o(t,d,n)&&l.push(c)}return l}var rG=nQ(rZ),rK=nQ(rQ,!0);function rU(e,t){var r=!0;return rG(e,function(e,n,i){return r=!!t(e,n,i)}),r}function rV(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(n===l?s==s&&!o8(s):r(s,l)))var l=s,u=a}return u}function rH(e,t){var r=[];return rG(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function rY(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=iA),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?rY(s,t-1,r,n,i):ty(i,s):!n&&(i[i.length]=s)}return i}var rq=nX(),rJ=nX(!0);function rZ(e,t){return e&&rq(e,t,aS)}function rQ(e,t){return e&&rJ(e,t,aS)}function rX(e,t){return th(t,function(t){return oZ(e[t])})}function r0(e,t){t=nN(t,e);for(var r=0,i=t.length;null!=e&&r<i;)e=e[iH(t[r++])];return r&&r==i?e:n}function r1(e,t,r){var n=t(e);return oK(e)?n:ty(n,r(e))}function r2(e){return null==e?n===e?"[object Undefined]":"[object Null]":e8&&e8 in ew(e)?function(e){var t=eO.call(e,e8),r=e[e8];try{e[e8]=n;var i=!0}catch(e){}var o=eB.call(e);return i&&(t?e[e8]=r:delete e[e8]),o}(e):function(e){return eB.call(e)}(e)}function r7(e,t){return e>t}function r3(e,t){return null!=e&&eO.call(e,t)}function r9(e,t){return null!=e&&t in ew(e)}function r6(e,t,r){for(var i=r?tg:tp,o=e[0].length,a=e.length,s=a,l=ej(a),u=1/0,c=[];s--;){var d=e[s];s&&t&&(d=tm(d,tO(t))),u=t6(d.length,u),l[s]=!r&&(t||o>=120&&d.length>=120)?new rw(s&&d):n}d=e[0];var f=-1,h=l[0];e:for(;++f<o&&c.length<u;){var p=d[f],g=t?t(p):p;if(p=r||0!==p?p:0,!(h?tz(h,g):i(c,g,r))){for(s=a;--s;){var m=l[s];if(!(m?tz(m,g):i(e[s],g,r)))continue e}h&&h.push(g),c.push(p)}}return c}function r4(e,t,r){t=nN(t,e);var i=null==(e=iL(e,t))?e:e[iH(i6(t))];return null==i?n:tl(i,e,r)}function r8(e){return o1(e)&&r2(e)==f}function r5(e,t,r,i,o){return e===t||(null!=e&&null!=t&&(o1(e)||o1(t))?function(e,t,r,i,o,a){var s=oK(e),l=oK(t),u=s?h:iw(e),c=l?h:iw(t);u=u==f?S:u,c=c==f?S:c;var d=u==S,y=c==S,x=u==c;if(x&&oY(e)){if(!oY(t))return!1;s=!0,d=!1}if(x&&!d)return a||(a=new rT),s||o5(e)?id(e,t,r,i,o,a):function(e,t,r,n,i,o,a){switch(r){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case A:if(e.byteLength!=t.byteLength||!o(new eG(e),new eG(t)))break;return!0;case p:case g:case j:return oF(+e,+t);case m:return e.name==t.name&&e.message==t.message;case _:case w:return e==t+"";case v:var s=tG;case C:var l=1&n;if(s||(s=tV),e.size!=t.size&&!l)break;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var c=id(s(e),s(t),n,i,o,a);return a.delete(e),c;case T:if(rg)return rg.call(e)==rg.call(t)}return!1}(e,t,u,r,i,o,a);if(!(1&r)){var b=d&&eO.call(e,"__wrapped__"),P=y&&eO.call(t,"__wrapped__");if(b||P){var M=b?e.value():e,D=P?t.value():t;return a||(a=new rT),o(M,D,r,i,a)}}return!!x&&(a||(a=new rT),function(e,t,r,i,o,a){var s=1&r,l=ip(e),u=l.length;if(u!=ip(t).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:eO.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++c<u;){var m=e[d=l[c]],y=t[d];if(i)var x=s?i(y,m,d,t,e,a):i(m,y,d,e,t,a);if(!(n===x?m===y||o(m,y,r,i,a):x)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var v=e.constructor,j=t.constructor;v!=j&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof j&&j instanceof j)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,i,o,a))}(e,t,r,i,r5,o):e!=e&&t!=t)}function ne(e,t,r,i){var o=r.length,a=o,s=!i;if(null==e)return!a;for(e=ew(e);o--;){var l=r[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=r[o])[0],c=e[u],d=l[1];if(s&&l[2]){if(n===c&&!(u in e))return!1}else{var f=new rT;if(i)var h=i(c,d,u,e,t,f);if(!(n===h?r5(d,c,3,i,f):h))return!1}}return!0}function nt(e){return!(!o0(e)||function(e){return!!ez&&ez in e}(e))&&(oZ(e)?eF:ef).test(iY(e))}function nr(e){return"function"==typeof e?e:null==e?aH:"object"==typeof e?oK(e)?ns(e[0],e[1]):na(e):a2(e)}function nn(e){if(!iO(e))return t3(e);var t=[];for(var r in ew(e))eO.call(e,r)&&"constructor"!=r&&t.push(r);return t}function ni(e,t){return e<t}function no(e,t){var r=-1,n=oV(e)?ej(e.length):[];return rG(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function na(e){var t=iS(e);return 1==t.length&&t[0][2]?iz(t[0][0],t[0][1]):function(r){return r===e||ne(r,e,t)}}function ns(e,t){return iD(e)&&function(e){return e==e&&!o0(e)}(t)?iz(iH(e),t):function(r){var i=am(r,e);return n===i&&i===t?ay(r,e):r5(t,i,3)}}function nl(e,t,r,i,o){e!==t&&rq(t,function(a,s){if(o||(o=new rT),o0(a))(function(e,t,r,i,o,a,s){var l=iN(e,r),u=iN(t,r),c=s.get(u);if(c){rD(e,r,c);return}var d=a?a(l,u,r+"",e,t,s):n,f=n===d;if(f){var h=oK(u),p=!h&&oY(u),g=!h&&!p&&o5(u);d=u,h||p||g?oK(l)?d=l:oH(l)?d=nY(l):p?(f=!1,d=nW(u,!0)):g?(f=!1,d=nK(u,!0)):d=[]:o3(u)||oG(u)?(d=l,oG(l)?d=as(l):(!o0(l)||oZ(l))&&(d=iP(u))):f=!1}f&&(s.set(u,d),o(d,u,i,a,s),s.delete(u)),rD(e,r,d)})(e,t,s,r,nl,i,o);else{var l=i?i(iN(e,s),a,s+"",e,t,o):n;n===l&&(l=a),rD(e,s,l)}},ab)}function nu(e,t){var r=e.length;if(r)return iI(t+=t<0?r:0,r)?e[t]:n}function nc(e,t,r){t=t.length?tm(t,function(e){return oK(e)?function(t){return r0(t,1===e.length?e[0]:e)}:e}):[aH];var n=-1;return t=tm(t,tO(iv())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(no(e,function(e,r,i){return{criteria:tm(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=nU(i[n],o[n]);if(l){if(n>=s)return l;return l*("desc"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)})}function nd(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=r0(e,a);r(s,a)&&nv(o,nN(a,e),s)}return o}function nf(e,t,r,n){var i=n?tw:tC,o=-1,a=t.length,s=e;for(e===t&&(t=nY(t)),r&&(s=tm(e,tO(r)));++o<a;){for(var l=0,u=t[o],c=r?r(u):u;(l=i(s,c,l,n))>-1;)s!==e&&e3.call(s,l,1),e3.call(e,l,1)}return e}function nh(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;iI(i)?e3.call(e,i,1):nD(e,i)}}return e}function np(e,t){return e+tX(t5()*(t-e+1))}function ng(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do t%2&&(r+=e),(t=tX(t/2))&&(e+=e);while(t);return r}function nm(e,t){return iW(iB(e,t,aH),e+"")}function ny(e){return rA(aM(e))}function nx(e,t){var r=aM(e);return iU(r,rL(t,0,r.length))}function nv(e,t,r,i){if(!o0(e))return e;t=nN(t,e);for(var o=-1,a=t.length,s=a-1,l=e;null!=l&&++o<a;){var u=iH(t[o]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(o!=s){var d=l[u];c=i?i(d,u,l):n,n===c&&(c=o0(d)?d:iI(t[o+1])?[]:{})}rk(l,u,c),l=l[u]}return e}var nj=rs?function(e,t){return rs.set(e,t),e}:aH,nS=te?function(e,t){return te(e,"toString",{configurable:!0,enumerable:!1,value:aK(t),writable:!0})}:aH;function nb(e){return iU(aM(e))}function n_(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=ej(i);++n<i;)o[n]=e[n+t];return o}function nC(e,t){var r;return rG(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function nw(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=c){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!o8(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return nT(e,t,aH,r)}function nT(e,t,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,l=null===t,c=o8(t),d=n===t;o<a;){var f=tX((o+a)/2),h=r(e[f]),p=n!==h,g=null===h,m=h==h,y=o8(h);if(s)var x=i||m;else x=d?m&&(i||p):l?m&&p&&(i||!g):c?m&&p&&!g&&(i||!y):!g&&!y&&(i?h<=t:h<t);x?o=f+1:a=f}return t6(a,u)}function nP(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!oF(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function nA(e){return"number"==typeof e?e:o8(e)?l:+e}function nI(e){if("string"==typeof e)return e;if(oK(e))return tm(e,nI)+"";if(o8(e))return rm?rm.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}function nM(e,t,r){var n=-1,i=tp,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=tg;else if(o>=200){var u=t?null:io(e);if(u)return tV(u);a=!1,i=tz,l=new rw}else l=t?[]:s;e:for(;++n<o;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else!i(l,d,r)&&(l!==s&&l.push(d),s.push(c))}return s}function nD(e,t){return t=nN(t,e),null==(e=iL(e,t))||delete e[iH(i6(t))]}function nk(e,t,r,n){return nv(e,t,r(r0(e,t)),n)}function nE(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?n_(e,n?0:o,n?o+1:i):n_(e,n?o+1:0,n?i:o)}function nO(e,t){var r=e;return r instanceof rS&&(r=r.value()),tx(t,function(e,t){return t.func.apply(t.thisArg,ty([e],t.args))},r)}function nR(e,t,r){var n=e.length;if(n<2)return n?nM(e[0]):[];for(var i=-1,o=ej(n);++i<n;){for(var a=e[i],s=-1;++s<n;)s!=i&&(o[i]=rW(o[i]||a,e[s],t,r))}return nM(rY(o,1),t,r)}function nz(e,t,r){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var l=i<a?t[i]:n;r(s,e[i],l)}return s}function nB(e){return oH(e)?e:[]}function nL(e){return"function"==typeof e?e:aH}function nN(e,t){return oK(e)?e:iD(e,t)?[e]:iV(al(e))}function nF(e,t,r){var i=e.length;return r=n===r?i:r,!t&&r>=i?e:n_(e,t,r)}var n$=tt||function(e){return e6.clearTimeout(e)};function nW(e,t){if(t)return e.slice();var r=e.length,n=eK?eK(r):new e.constructor(r);return e.copy(n),n}function nG(e){var t=new e.constructor(e.byteLength);return new eG(t).set(new eG(e)),t}function nK(e,t){var r=t?nG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nU(e,t){if(e!==t){var r=n!==e,i=null===e,o=e==e,a=o8(e),s=n!==t,l=null===t,u=t==t,c=o8(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!u)return -1}return 0}function nV(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,l=t.length,u=t9(o-a,0),c=ej(l+u),d=!n;++s<l;)c[s]=t[s];for(;++i<a;)(d||i<o)&&(c[r[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function nH(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,l=-1,u=t.length,c=t9(o-s,0),d=ej(c+u),f=!n;++i<c;)d[i]=e[i];for(var h=i;++l<u;)d[h+l]=t[l];for(;++a<s;)(f||i<o)&&(d[h+r[a]]=e[i++]);return d}function nY(e,t){var r=-1,n=e.length;for(t||(t=ej(n));++r<n;)t[r]=e[r];return t}function nq(e,t,r,i){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=i?i(r[l],e[l],l,r,e):n;n===u&&(u=e[l]),o?rz(r,l,u):rk(r,l,u)}return r}function nJ(e,t){return function(r,n){var i=oK(r)?tu:rO,o=t?t():{};return i(r,e,iv(n,2),o)}}function nZ(e){return nm(function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&iM(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=ew(t);++i<o;){var l=r[i];l&&e(t,l,i,a)}return t})}function nQ(e,t){return function(r,n){if(null==r)return r;if(!oV(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=ew(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function nX(e){return function(t,r,n){for(var i=-1,o=ew(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}function n0(e){return function(t){var r=tW(t=al(t))?tY(t):n,i=r?r[0]:t.charAt(0),o=r?nF(r,1).join(""):t.slice(1);return i[e]()+o}}function n1(e){return function(t){return tx(a$(aE(t).replace(eU,"")),e,"")}}function n2(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rx(e.prototype),n=e.apply(r,t);return o0(n)?n:r}}function n7(e){return function(t,r,i){var o=ew(t);if(!oV(t)){var a=iv(r,3);t=aS(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,i);return s>-1?o[a?t[s]:s]:n}}function n3(e){return ih(function(t){var r=t.length,o=r,a=rj.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new eA(i);if(a&&!l&&"wrapper"==iy(s))var l=new rj([],!0)}for(o=l?o:r;++o<r;){var u=iy(s=t[o]),c="wrapper"==u?im(s):n;l=c&&ik(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[iy(c[0])].apply(l,c[3]):1==s.length&&ik(s)?l[u]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&oK(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}})}function n9(e,t,r,i,o,a,s,l,u,c){var d=128&t,f=1&t,h=2&t,p=24&t,g=512&t,m=h?n:n2(e);return function y(){for(var x=arguments.length,v=ej(x),j=x;j--;)v[j]=arguments[j];if(p)var S=ix(y),b=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(v,S);if(i&&(v=nV(v,i,o,p)),a&&(v=nH(v,a,s,p)),x-=b,p&&x<c){var _=tU(v,S);return ir(e,t,n9,y.placeholder,r,v,_,l,u,c-x)}var C=f?r:this,w=h?C[e]:e;return x=v.length,l?v=function(e,t){for(var r=e.length,i=t6(t.length,r),o=nY(e);i--;){var a=t[i];e[i]=iI(a,r)?o[a]:n}return e}(v,l):g&&x>1&&v.reverse(),d&&u<x&&(v.length=u),this&&this!==e6&&this instanceof y&&(w=m||n2(w)),w.apply(C,v)}}function n6(e,t){return function(r,n){var i,o,a,s;return i=r,o=e,a=t(n),s={},rZ(i,function(e,t,r){o(s,a(e),t,r)}),s}}function n4(e,t){return function(r,i){var o;if(n===r&&n===i)return t;if(n!==r&&(o=r),n!==i){if(n===o)return i;"string"==typeof r||"string"==typeof i?(r=nI(r),i=nI(i)):(r=nA(r),i=nA(i)),o=e(r,i)}return o}}function n8(e){return ih(function(t){return t=tm(t,tO(iv())),nm(function(r){var n=this;return e(t,function(e){return tl(e,n,r)})})})}function n5(e,t){var r=(t=n===t?" ":nI(t)).length;if(r<2)return r?ng(t,e):t;var i=ng(t,tQ(e/tH(t)));return tW(t)?nF(tY(i),0,e).join(""):i.slice(0,e)}function ie(e){return function(t,r,i){return i&&"number"!=typeof i&&iM(t,r,i)&&(r=i=n),t=an(t),n===r?(r=t,t=0):r=an(r),i=n===i?t<r?1:-1:an(i),function(e,t,r,n){for(var i=-1,o=t9(tQ((t-e)/(r||1)),0),a=ej(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,r,i,e)}}function it(e){return function(t,r){return!("string"==typeof t&&"string"==typeof r)&&(t=aa(t),r=aa(r)),e(t,r)}}function ir(e,t,r,i,o,a,s,l,u,c){var d=8&t,f=d?s:n,h=d?n:s,p=d?a:n,g=d?n:a;t|=d?32:64,!(4&(t&=~(d?64:32)))&&(t&=-4);var m=[e,t,o,p,f,g,h,l,u,c],y=r.apply(n,m);return ik(e)&&iF(y,m),y.placeholder=i,iG(y,e,t)}function ii(e){var t=eC[e];return function(e,r){if(e=aa(e),(r=null==r?0:t6(ai(r),292))&&t2(e)){var n=(al(e)+"e").split("e");return+((n=(al(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var io=ri&&1/tV(new ri([,-0]))[1]==s?function(e){return new ri(e)}:aQ;function ia(e){return function(t){var r,n,i,o,a=iw(t);if(a==v)return tG(t);if(a==C){;return n=-1,i=Array((r=t).size),r.forEach(function(e){i[++n]=[e,e]}),i}return o=t,tm(e(t),function(e){return[e,o[e]]})}}function is(e,t,r,o,s,l,u,c){var d=2&t;if(!d&&"function"!=typeof e)throw new eA(i);var f=o?o.length:0;if(!f&&(t&=-97,o=s=n),u=n===u?u:t9(ai(u),0),c=n===c?c:ai(c),f-=s?s.length:0,64&t){var h=o,p=s;o=s=n}var g=d?n:im(e),m=[e,t,r,o,s,h,p,l,u,c];if(g&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,s=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!(o||s))return;1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?nV(u,l,t[4]):l,e[4]=u?tU(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?nH(u,l,t[6]):l,e[6]=u?tU(e[5],a):t[6]),(l=t[7])&&(e[7]=l),128&n&&(e[8]=null==e[8]?t[8]:t6(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(m,g),e=m[0],t=m[1],r=m[2],o=m[3],s=m[4],!(c=m[9]=n===m[9]?d?0:e.length:t9(m[9]-f,0))&&24&t&&(t&=-25),t&&1!=t){;if(8==t||16==t){;y=e,x=t,v=c,j=n2(y),k=function e(){for(var t=arguments.length,r=ej(t),i=t,o=ix(e);i--;)r[i]=arguments[i];var a=t<3&&r[0]!==o&&r[t-1]!==o?[]:tU(r,o);return(t-=a.length)<v?ir(y,x,n9,e.placeholder,n,r,a,n,n,v-t):tl(this&&this!==e6&&this instanceof e?j:y,this,r)}}else if(32!=t&&33!=t||s.length)k=n9.apply(n,m);else{;S=e,b=t,_=r,C=o,w=1&b,T=n2(S),k=function e(){for(var t=-1,r=arguments.length,n=-1,i=C.length,o=ej(i+r),a=this&&this!==e6&&this instanceof e?T:S;++n<i;)o[n]=C[n];for(;r--;)o[n++]=arguments[++t];return tl(a,w?_:this,o)}}}else{var y,x,v,j,S,b,_,C,w,T,P,A,I,M,D,k=(P=e,A=t,I=r,M=1&A,D=n2(P),function e(){return(this&&this!==e6&&this instanceof e?D:P).apply(M?I:this,arguments)})}return iG((g?nj:iF)(k,m),e,t)}function il(e,t,r,i){return n===e||oF(e,eD[r])&&!eO.call(i,r)?t:e}function iu(e,t,r,i,o,a){return o0(e)&&o0(t)&&(a.set(t,e),nl(e,t,n,iu,a),a.delete(t)),e}function ic(e){return o3(e)?n:e}function id(e,t,r,i,o,a){var s=1&r,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&r?new rw:n;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(i)var y=s?i(m,g,f,t,e,a):i(g,m,f,e,t,a);if(n!==y){if(y)continue;h=!1;break}if(p){if(!tj(t,function(e,t){if(!tz(p,t)&&(g===e||o(g,e,r,i,a)))return p.push(t)})){h=!1;break}}else if(!(g===m||o(g,m,r,i,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function ih(e){return iW(iB(e,n,i1),e+"")}function ip(e){return r1(e,aS,i_)}function ig(e){return r1(e,ab,iC)}var im=rs?function(e){return rs.get(e)}:aQ;function iy(e){for(var t=e.name+"",r=rl[t],n=eO.call(rl,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function ix(e){return(eO.call(ry,"placeholder")?ry:e).placeholder}function iv(){var e=ry.iteratee||aY;return e=e===aY?nr:e,arguments.length?e(arguments[0],arguments[1]):e}function ij(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function iS(e){for(var t=aS(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,function(e){return e==e&&!o0(e)}(i)]}return t}function ib(e,t){var r,i,o=(r=e,i=t,null==r?n:r[i]);return nt(o)?o:n}var i_=t0?function(e){return null==e?[]:th(t0(e=ew(e)),function(t){return e1.call(e,t)})}:a9,iC=t0?function(e){for(var t=[];e;)ty(t,i_(e)),e=eH(e);return t}:a9,iw=r2;(rt&&iw(new rt(new ArrayBuffer(1)))!=I||rr&&iw(new rr)!=v||rn&&iw(rn.resolve())!=b||ri&&iw(new ri)!=C||ro&&iw(new ro)!=P)&&(iw=function(e){var t=r2(e),r=t==S?e.constructor:n,i=r?iY(r):"";if(i)switch(i){case ru:return I;case rc:return v;case rd:return b;case rf:return C;case rh:return P}return t});function iT(e,t,r){t=nN(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=iH(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&oX(i)&&iI(a,i)&&(oK(e)||oG(e))}function iP(e){return"function"!=typeof e.constructor||iO(e)?{}:rx(eH(e))}function iA(e){return oK(e)||oG(e)||!!(e9&&e&&e[e9])}function iI(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ep.test(e))&&e>-1&&e%1==0&&e<t}function iM(e,t,r){if(!o0(r))return!1;var n=typeof t;return("number"==n?!!(oV(r)&&iI(t,r.length)):"string"==n&&t in r)&&oF(r[t],e)}function iD(e,t){if(oK(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||o8(e))||J.test(e)||!q.test(e)||null!=t&&e in ew(t)}function ik(e){var t=iy(e),r=ry[t];if("function"!=typeof r||!(t in rS.prototype))return!1;if(e===r)return!0;var n=im(r);return!!n&&e===n[0]}var iE=ek?oZ:a6;function iO(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eD)}function iR(e){return e==e&&!o0(e)}function iz(e,t){return function(r){return null!=r&&r[e]===t&&(n!==t||e in ew(r))}}function iB(e,t,r){return t=t9(n===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=t9(n.length-t,0),a=ej(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=ej(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),tl(e,this,s)}}function iL(e,t){return t.length<2?e:r0(e,n_(t,0,-1))}function iN(e,t){if("constructor"!==t||"function"!=typeof e[t]){if("__proto__"!=t)return e[t]}}var iF=iK(nj),i$=tI||function(e,t){return e6.setTimeout(e,t)},iW=iK(nS);function iG(e,t,r){var n,i=t+"";return iW(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(er,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return tc(d,function(r){var n="_."+r[0];t&r[1]&&!tp(e,n)&&e.push(n)}),e.sort()}((n=i.match(en))?n[1].split(ei):[],r)))}function iK(e){var t=0,r=0;return function(){var i=t4(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function iU(e,t){var r=-1,i=e.length,o=i-1;for(t=n===t?i:t;++r<t;){var a=np(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var iV=(ex=(et=oO(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Z,function(e,r,n,i){t.push(n?i.replace(es,"$1"):r||e)}),t},function(e){return 500===ex.size&&ex.clear(),e})).cache,et);function iH(e){if("string"==typeof e||o8(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function iY(e){if(null!=e){try{return eE.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function iq(e){if(e instanceof rS)return e.clone();var t=new rj(e.__wrapped__,e.__chain__);return t.__actions__=nY(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iJ=nm(function(e,t){return oH(e)?rW(e,rY(t,1,oH,!0)):[]}),iZ=nm(function(e,t){var r=i6(t);return oH(r)&&(r=n),oH(e)?rW(e,rY(t,1,oH,!0),iv(r,2)):[]}),iQ=nm(function(e,t){var r=i6(t);return oH(r)&&(r=n),oH(e)?rW(e,rY(t,1,oH,!0),n,r):[]});function iX(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:ai(r);return i<0&&(i=t9(n+i,0)),t_(e,iv(t,3),i)}function i0(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var o=i-1;return n!==r&&(o=ai(r),o=r<0?t9(i+o,0):t6(o,i-1)),t_(e,iv(t,3),o,!0)}function i1(e){return(null==e?0:e.length)?rY(e,1):[]}function i2(e){return e&&e.length?e[0]:n}var i7=nm(function(e){var t=tm(e,nB);return t.length&&t[0]===e[0]?r6(t):[]}),i3=nm(function(e){var t=i6(e),r=tm(e,nB);return t===i6(r)?t=n:r.pop(),r.length&&r[0]===e[0]?r6(r,iv(t,2)):[]}),i9=nm(function(e){var t=i6(e),r=tm(e,nB);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?r6(r,n,t):[]});function i6(e){var t=null==e?0:e.length;return t?e[t-1]:n}var i4=nm(i8);function i8(e,t){return e&&e.length&&t&&t.length?nf(e,t):e}var i5=ih(function(e,t){var r=null==e?0:e.length,n=rB(e,t);return nh(e,tm(t,function(e){return iI(e,r)?+e:e}).sort(nU)),n});function oe(e){return null==e?e:re.call(e)}var ot=nm(function(e){return nM(rY(e,1,oH,!0))}),or=nm(function(e){var t=i6(e);return oH(t)&&(t=n),nM(rY(e,1,oH,!0),iv(t,2))}),on=nm(function(e){var t=i6(e);return t="function"==typeof t?t:n,nM(rY(e,1,oH,!0),n,t)});function oi(e){if(!(e&&e.length))return[];var t=0;return e=th(e,function(e){if(oH(e))return t=t9(e.length,t),!0}),tk(t,function(t){return tm(e,tA(t))})}function oo(e,t){if(!(e&&e.length))return[];var r=oi(e);return null==t?r:tm(r,function(e){return tl(t,n,e)})}var oa=nm(function(e,t){return oH(e)?rW(e,t):[]}),os=nm(function(e){return nR(th(e,oH))}),ol=nm(function(e){var t=i6(e);return oH(t)&&(t=n),nR(th(e,oH),iv(t,2))}),ou=nm(function(e){var t=i6(e);return t="function"==typeof t?t:n,nR(th(e,oH),n,t)}),oc=nm(oi),od=nm(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,oo(e,r)});function of(e){var t=ry(e);return t.__chain__=!0,t}function oh(e,t){return t(e)}var op=ih(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return rB(t,e)};return!(t>1)&&!this.__actions__.length&&i instanceof rS&&iI(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:oh,args:[o],thisArg:n}),new rj(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(o)}),og=nJ(function(e,t,r){eO.call(e,r)?++e[r]:rz(e,r,1)}),om=n7(iX),oy=n7(i0);function ox(e,t){return(oK(e)?tc:rG)(e,iv(t,3))}function ov(e,t){return(oK(e)?td:rK)(e,iv(t,3))}var oj=nJ(function(e,t,r){eO.call(e,r)?e[r].push(t):rz(e,r,[t])}),oS=nm(function(e,t,r){var n=-1,i="function"==typeof t,o=oV(e)?ej(e.length):[];return rG(e,function(e){o[++n]=i?tl(t,e,r):r4(e,t,r)}),o}),ob=nJ(function(e,t,r){rz(e,r,t)});function o_(e,t){return(oK(e)?tm:no)(e,iv(t,3))}var oC=nJ(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),ow=nm(function(e,t){if(null==e)return[];var r=t.length;return r>1&&iM(e,t[0],t[1])?t=[]:r>2&&iM(t[0],t[1],t[2])&&(t=[t[0]]),nc(e,rY(t,1),[])}),oT=tS||function(){return e6.Date.now()};function oP(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,is(e,128,n,n,n,n,t)}function oA(e,t){var r;if("function"!=typeof t)throw new eA(i);return e=ai(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var oI=nm(function(e,t,r){var n=1;if(r.length){var i=tU(r,ix(oI));n|=32}return is(e,n,t,r,i)}),oM=nm(function(e,t,r){var n=3;if(r.length){var i=tU(r,ix(oM));n|=32}return is(t,n,e,r,i)});function oD(e,t,r){var o,a,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new eA(i);function g(t){var r=o,i=a;return o=a=n,d=t,l=e.apply(i,r)}t=aa(t)||0,o0(r)&&(f=!!r.leading,s=(h="maxWait"in r)?t9(aa(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p);function m(e){var r=e-c,i=e-d;return n===c||r>=t||r<0||h&&i>=s}function y(){var e,r,n,i,o=oT();if(m(o))return x(o);u=i$(y,(r=(e=o)-c,n=e-d,i=t-r,h?t6(i,s-n):i))}function x(e){return(u=n,p&&o)?g(e):(o=a=n,l)}function v(){var e,r=oT(),i=m(r);if(o=arguments,a=this,c=r,i){if(n===u){;return d=e=c,u=i$(y,t),f?g(e):l}if(h)return n$(u),u=i$(y,t),g(c)}return n===u&&(u=i$(y,t)),l}return v.cancel=function(){n!==u&&n$(u),d=0,o=c=a=u=n},v.flush=function(){return n===u?l:x(oT())},v}var ok=nm(function(e,t){return r$(e,1,t)}),oE=nm(function(e,t,r){return r$(e,aa(t)||0,r)});function oO(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new eA(i);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(oO.Cache||rC),r}function oR(e){if("function"!=typeof e)throw new eA(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}oO.Cache=rC;var oz=nm(function(e,t){var r=(t=1==t.length&&oK(t[0])?tm(t[0],tO(iv())):tm(rY(t,1),tO(iv()))).length;return nm(function(n){for(var i=-1,o=t6(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return tl(e,this,n)})}),oB=nm(function(e,t){var r=tU(t,ix(oB));return is(e,32,n,t,r)}),oL=nm(function(e,t){var r=tU(t,ix(oL));return is(e,64,n,t,r)}),oN=ih(function(e,t){return is(e,256,n,n,n,t)});function oF(e,t){return e===t||e!=e&&t!=t}var o$=it(r7),oW=it(function(e,t){return e>=t}),oG=r8(function(){return arguments}())?r8:function(e){return o1(e)&&eO.call(e,"callee")&&!e1.call(e,"callee")},oK=ej.isArray,oU=tr?tO(tr):function(e){return o1(e)&&r2(e)==A};function oV(e){return null!=e&&oX(e.length)&&!oZ(e)}function oH(e){return o1(e)&&oV(e)}var oY=t1||a6,oq=tn?tO(tn):function(e){return o1(e)&&r2(e)==g};function oJ(e){if(!o1(e))return!1;var t=r2(e);return t==m||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o3(e)}function oZ(e){if(!o0(e))return!1;var t=r2(e);return t==y||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function oQ(e){return"number"==typeof e&&e==ai(e)}function oX(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function o0(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function o1(e){return null!=e&&"object"==typeof e}var o2=ti?tO(ti):function(e){return o1(e)&&iw(e)==v};function o7(e){return"number"==typeof e||o1(e)&&r2(e)==j}function o3(e){if(!o1(e)||r2(e)!=S)return!1;var t=eH(e);if(null===t)return!0;var r=eO.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eE.call(r)==eL}var o9=to?tO(to):function(e){return o1(e)&&r2(e)==_},o6=ta?tO(ta):function(e){return o1(e)&&iw(e)==C};function o4(e){return"string"==typeof e||!oK(e)&&o1(e)&&r2(e)==w}function o8(e){return"symbol"==typeof e||o1(e)&&r2(e)==T}var o5=ts?tO(ts):function(e){return o1(e)&&oX(e.length)&&!!eX[r2(e)]},ae=it(ni),at=it(function(e,t){return e<=t});function ar(e){if(!e)return[];if(oV(e))return o4(e)?tY(e):nY(e);if(e4&&e[e4])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[e4]());var t=iw(e);return(t==v?tG:t==C?tV:aM)(e)}function an(e){return e?(e=aa(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function ai(e){var t=an(e),r=t%1;return t==t?r?t-r:t:0}function ao(e){return e?rL(ai(e),0,4294967295):0}function aa(e){if("number"==typeof e)return e;if(o8(e))return l;if(o0(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o0(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tE(e);var r=ed.test(e);return r||eh.test(e)?e7(e.slice(2),r?2:8):ec.test(e)?l:+e}function as(e){return nq(e,ab(e))}function al(e){return null==e?"":nI(e)}var au=nZ(function(e,t){if(iO(t)||oV(t)){nq(t,aS(t),e);return}for(var r in t)eO.call(t,r)&&rk(e,r,t[r])}),ac=nZ(function(e,t){nq(t,ab(t),e)}),ad=nZ(function(e,t,r,n){nq(t,ab(t),e,n)}),af=nZ(function(e,t,r,n){nq(t,aS(t),e,n)}),ah=ih(rB),ap=nm(function(e,t){e=ew(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&iM(t[0],t[1],o)&&(i=1);++r<i;){for(var a=t[r],s=ab(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(n===d||oF(d,eD[c])&&!eO.call(e,c))&&(e[c]=a[c])}}return e}),ag=nm(function(e){return e.push(n,iu),tl(aC,n,e)});function am(e,t,r){var i=null==e?n:r0(e,t);return n===i?r:i}function ay(e,t){return null!=e&&iT(e,t,r9)}var ax=n6(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=eB.call(t)),e[t]=r},aK(aH)),av=n6(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=eB.call(t)),eO.call(e,t)?e[t].push(r):e[t]=[r]},iv),aj=nm(r4);function aS(e){return oV(e)?rP(e):nn(e)}function ab(e){return oV(e)?rP(e,!0):function(e){if(!o0(e))return function(e){var t=[];if(null!=e)for(var r in ew(e))t.push(r);return t}(e);var t=iO(e),r=[];for(var n in e)!("constructor"==n&&(t||!eO.call(e,n)))&&r.push(n);return r}(e)}var a_=nZ(function(e,t,r){nl(e,t,r)}),aC=nZ(function(e,t,r,n){nl(e,t,r,n)}),aw=ih(function(e,t){var r={};if(null==e)return r;var n=!1;t=tm(t,function(t){return t=nN(t,e),n||(n=t.length>1),t}),nq(e,ig(e),r),n&&(r=rN(r,7,ic));for(var i=t.length;i--;)nD(r,t[i]);return r}),aT=ih(function(e,t){var r;return null==e?{}:nd(r=e,t,function(e,t){return ay(r,t)})});function aP(e,t){if(null==e)return{};var r=tm(ig(e),function(e){return[e]});return t=iv(t),nd(e,r,function(e,r){return t(e,r[0])})}var aA=ia(aS),aI=ia(ab);function aM(e){return null==e?[]:tR(e,aS(e))}var aD=n1(function(e,t,r){return t=t.toLowerCase(),e+(r?ak(t):t)});function ak(e){return aF(al(e).toLowerCase())}function aE(e){return(e=al(e))&&e.replace(eg,tN).replace(eV,"")}var aO=n1(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),aR=n1(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),az=n0("toLowerCase"),aB=n1(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),aL=n1(function(e,t,r){return e+(r?" ":"")+aF(t)}),aN=n1(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),aF=n0("toUpperCase");function a$(e,t,r){if(e=al(e),t=r?n:t,n===t){var i;return(i=e,eJ.test(i))?e.match(eY)||[]:e.match(eo)||[]}return e.match(t)||[]}var aW=nm(function(e,t){try{return tl(e,n,t)}catch(e){return oJ(e)?e:new eb(e)}}),aG=ih(function(e,t){return tc(t,function(t){rz(e,t=iH(t),oI(e[t],e))}),e});function aK(e){return function(){return e}}var aU=n3(),aV=n3(!0);function aH(e){return e}function aY(e){return nr("function"==typeof e?e:rN(e,1))}var aq=nm(function(e,t){return function(r){return r4(r,e,t)}}),aJ=nm(function(e,t){return function(r){return r4(e,r,t)}});function aZ(e,t,r){var n=aS(t),i=rX(t,n);null==r&&!(o0(t)&&(i.length||!n.length))&&(r=t,t=e,e=this,i=rX(t,aS(t)));var o=!(o0(r)&&"chain"in r)||!!r.chain,a=oZ(e);return tc(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=nY(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,ty([this.value()],arguments))})}),e}function aQ(){}var aX=n8(tm),a0=n8(tf),a1=n8(tj);function a2(e){var t;return iD(e)?tA(iH(e)):(t=e,function(e){return r0(e,t)})}var a7=ie(),a3=ie(!0);function a9(){return[]}function a6(){return!1}var a4=n4(function(e,t){return e+t},0),a8=ii("ceil"),a5=n4(function(e,t){return e/t},1),se=ii("floor"),st=n4(function(e,t){return e*t},1),sr=ii("round"),sn=n4(function(e,t){return e-t},0);return ry.after=function(e,t){if("function"!=typeof t)throw new eA(i);return e=ai(e),function(){if(--e<1)return t.apply(this,arguments)}},ry.ary=oP,ry.assign=au,ry.assignIn=ac,ry.assignInWith=ad,ry.assignWith=af,ry.at=ah,ry.before=oA,ry.bind=oI,ry.bindAll=aG,ry.bindKey=oM,ry.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return oK(e)?e:[e]},ry.chain=of,ry.chunk=function(e,t,r){t=(r?iM(e,t,r):n===t)?1:t9(ai(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=ej(tQ(i/t));o<i;)s[a++]=n_(e,o,o+=t);return s},ry.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},ry.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ej(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return ty(oK(r)?nY(r):[r],rY(t,1))},ry.cond=function(e){var t=null==e?0:e.length,r=iv();return e=t?tm(e,function(e){if("function"!=typeof e[1])throw new eA(i);return[r(e[0]),e[1]]}):[],nm(function(r){for(var n=-1;++n<t;){var i=e[n];if(tl(i[0],this,r))return tl(i[1],this,r)}})},ry.conforms=function(e){var t,r;return r=aS(t=rN(e,1)),function(e){return rF(e,t,r)}},ry.constant=aK,ry.countBy=og,ry.create=function(e,t){var r=rx(e);return null==t?r:rR(r,t)},ry.curry=function e(t,r,i){r=i?n:r;var o=is(t,8,n,n,n,n,n,r);return o.placeholder=e.placeholder,o},ry.curryRight=function e(t,r,i){r=i?n:r;var o=is(t,16,n,n,n,n,n,r);return o.placeholder=e.placeholder,o},ry.debounce=oD,ry.defaults=ap,ry.defaultsDeep=ag,ry.defer=ok,ry.delay=oE,ry.difference=iJ,ry.differenceBy=iZ,ry.differenceWith=iQ,ry.drop=function(e,t,r){var i=null==e?0:e.length;return i?n_(e,(t=r||n===t?1:ai(t))<0?0:t,i):[]},ry.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?n_(e,0,(t=i-(t=r||n===t?1:ai(t)))<0?0:t):[]},ry.dropRightWhile=function(e,t){return e&&e.length?nE(e,iv(t,3),!0,!0):[]},ry.dropWhile=function(e,t){return e&&e.length?nE(e,iv(t,3),!0):[]},ry.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&iM(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=ai(r))<0&&(r=-r>o?0:o+r),(i=n===i||i>o?o:ai(i))<0&&(i+=o),i=r>i?0:ao(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},ry.filter=function(e,t){return(oK(e)?th:rH)(e,iv(t,3))},ry.flatMap=function(e,t){return rY(o_(e,t),1)},ry.flatMapDeep=function(e,t){return rY(o_(e,t),s)},ry.flatMapDepth=function(e,t,r){return r=n===r?1:ai(r),rY(o_(e,t),r)},ry.flatten=i1,ry.flattenDeep=function(e){return(null==e?0:e.length)?rY(e,s):[]},ry.flattenDepth=function(e,t){return(null==e?0:e.length)?rY(e,t=n===t?1:ai(t)):[]},ry.flip=function(e){return is(e,512)},ry.flow=aU,ry.flowRight=aV,ry.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},ry.functions=function(e){return null==e?[]:rX(e,aS(e))},ry.functionsIn=function(e){return null==e?[]:rX(e,ab(e))},ry.groupBy=oj,ry.initial=function(e){return(null==e?0:e.length)?n_(e,0,-1):[]},ry.intersection=i7,ry.intersectionBy=i3,ry.intersectionWith=i9,ry.invert=ax,ry.invertBy=av,ry.invokeMap=oS,ry.iteratee=aY,ry.keyBy=ob,ry.keys=aS,ry.keysIn=ab,ry.map=o_,ry.mapKeys=function(e,t){var r={};return t=iv(t,3),rZ(e,function(e,n,i){rz(r,t(e,n,i),e)}),r},ry.mapValues=function(e,t){var r={};return t=iv(t,3),rZ(e,function(e,n,i){rz(r,n,t(e,n,i))}),r},ry.matches=function(e){return na(rN(e,1))},ry.matchesProperty=function(e,t){return ns(e,rN(t,1))},ry.memoize=oO,ry.merge=a_,ry.mergeWith=aC,ry.method=aq,ry.methodOf=aJ,ry.mixin=aZ,ry.negate=oR,ry.nthArg=function(e){return e=ai(e),nm(function(t){return nu(t,e)})},ry.omit=aw,ry.omitBy=function(e,t){return aP(e,oR(iv(t)))},ry.once=function(e){return oA(2,e)},ry.orderBy=function(e,t,r,i){return null==e?[]:(!oK(t)&&(t=null==t?[]:[t]),!oK(r=i?n:r)&&(r=null==r?[]:[r]),nc(e,t,r))},ry.over=aX,ry.overArgs=oz,ry.overEvery=a0,ry.overSome=a1,ry.partial=oB,ry.partialRight=oL,ry.partition=oC,ry.pick=aT,ry.pickBy=aP,ry.property=a2,ry.propertyOf=function(e){return function(t){return null==e?n:r0(e,t)}},ry.pull=i4,ry.pullAll=i8,ry.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?nf(e,t,iv(r,2)):e},ry.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?nf(e,t,n,r):e},ry.pullAt=i5,ry.range=a7,ry.rangeRight=a3,ry.rearg=oN,ry.reject=function(e,t){return(oK(e)?th:rH)(e,oR(iv(t,3)))},ry.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],o=e.length;for(t=iv(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return nh(e,i),r},ry.rest=function(e,t){if("function"!=typeof e)throw new eA(i);return nm(e,t=n===t?t:ai(t))},ry.reverse=oe,ry.sampleSize=function(e,t,r){return t=(r?iM(e,t,r):n===t)?1:ai(t),(oK(e)?rI:nx)(e,t)},ry.set=function(e,t,r){return null==e?e:nv(e,t,r)},ry.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:nv(e,t,r,i)},ry.shuffle=function(e){return(oK(e)?rM:nb)(e)},ry.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&iM(e,t,r)?(t=0,r=i):(t=null==t?0:ai(t),r=n===r?i:ai(r)),n_(e,t,r)):[]},ry.sortBy=ow,ry.sortedUniq=function(e){return e&&e.length?nP(e):[]},ry.sortedUniqBy=function(e,t){return e&&e.length?nP(e,iv(t,2)):[]},ry.split=function(e,t,r){return(r&&"number"!=typeof r&&iM(e,t,r)&&(t=r=n),r=n===r?4294967295:r>>>0)?(e=al(e))&&("string"==typeof t||null!=t&&!o9(t))&&!(t=nI(t))&&tW(e)?nF(tY(e),0,r):e.split(t,r):[]},ry.spread=function(e,t){if("function"!=typeof e)throw new eA(i);return t=null==t?0:t9(ai(t),0),nm(function(r){var n=r[t],i=nF(r,0,t);return n&&ty(i,n),tl(e,this,i)})},ry.tail=function(e){var t=null==e?0:e.length;return t?n_(e,1,t):[]},ry.take=function(e,t,r){return e&&e.length?n_(e,0,(t=r||n===t?1:ai(t))<0?0:t):[]},ry.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?n_(e,(t=i-(t=r||n===t?1:ai(t)))<0?0:t,i):[]},ry.takeRightWhile=function(e,t){return e&&e.length?nE(e,iv(t,3),!1,!0):[]},ry.takeWhile=function(e,t){return e&&e.length?nE(e,iv(t,3)):[]},ry.tap=function(e,t){return t(e),e},ry.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new eA(i);return o0(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),oD(e,t,{leading:n,maxWait:t,trailing:o})},ry.thru=oh,ry.toArray=ar,ry.toPairs=aA,ry.toPairsIn=aI,ry.toPath=function(e){return oK(e)?tm(e,iH):o8(e)?[e]:nY(iV(al(e)))},ry.toPlainObject=as,ry.transform=function(e,t,r){var n=oK(e),i=n||oY(e)||o5(e);if(t=iv(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:o0(e)?oZ(o)?rx(eH(e)):{}:{}}return(i?tc:rZ)(e,function(e,n,i){return t(r,e,n,i)}),r},ry.unary=function(e){return oP(e,1)},ry.union=ot,ry.unionBy=or,ry.unionWith=on,ry.uniq=function(e){return e&&e.length?nM(e):[]},ry.uniqBy=function(e,t){return e&&e.length?nM(e,iv(t,2)):[]},ry.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?nM(e,n,t):[]},ry.unset=function(e,t){return null==e||nD(e,t)},ry.unzip=oi,ry.unzipWith=oo,ry.update=function(e,t,r){return null==e?e:nk(e,t,nL(r))},ry.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:nk(e,t,nL(r),i)},ry.values=aM,ry.valuesIn=function(e){return null==e?[]:tR(e,ab(e))},ry.without=oa,ry.words=a$,ry.wrap=function(e,t){return oB(nL(t),e)},ry.xor=os,ry.xorBy=ol,ry.xorWith=ou,ry.zip=oc,ry.zipObject=function(e,t){return nz(e||[],t||[],rk)},ry.zipObjectDeep=function(e,t){return nz(e||[],t||[],nv)},ry.zipWith=od,ry.entries=aA,ry.entriesIn=aI,ry.extend=ac,ry.extendWith=ad,aZ(ry,ry),ry.add=a4,ry.attempt=aW,ry.camelCase=aD,ry.capitalize=ak,ry.ceil=a8,ry.clamp=function(e,t,r){return n===r&&(r=t,t=n),n!==r&&(r=(r=aa(r))==r?r:0),n!==t&&(t=(t=aa(t))==t?t:0),rL(aa(e),t,r)},ry.clone=function(e){return rN(e,4)},ry.cloneDeep=function(e){return rN(e,5)},ry.cloneDeepWith=function(e,t){return rN(e,5,t="function"==typeof t?t:n)},ry.cloneWith=function(e,t){return rN(e,4,t="function"==typeof t?t:n)},ry.conformsTo=function(e,t){return null==t||rF(e,t,aS(t))},ry.deburr=aE,ry.defaultTo=function(e,t){return null==e||e!=e?t:e},ry.divide=a5,ry.endsWith=function(e,t,r){e=al(e),t=nI(t);var i=e.length,o=r=n===r?i:rL(ai(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},ry.eq=oF,ry.escape=function(e){return(e=al(e))&&U.test(e)?e.replace(G,tF):e},ry.escapeRegExp=function(e){return(e=al(e))&&X.test(e)?e.replace(Q,"\\$&"):e},ry.every=function(e,t,r){var i=oK(e)?tf:rU;return r&&iM(e,t,r)&&(t=n),i(e,iv(t,3))},ry.find=om,ry.findIndex=iX,ry.findKey=function(e,t){return tb(e,iv(t,3),rZ)},ry.findLast=oy,ry.findLastIndex=i0,ry.findLastKey=function(e,t){return tb(e,iv(t,3),rQ)},ry.floor=se,ry.forEach=ox,ry.forEachRight=ov,ry.forIn=function(e,t){return null==e?e:rq(e,iv(t,3),ab)},ry.forInRight=function(e,t){return null==e?e:rJ(e,iv(t,3),ab)},ry.forOwn=function(e,t){return e&&rZ(e,iv(t,3))},ry.forOwnRight=function(e,t){return e&&rQ(e,iv(t,3))},ry.get=am,ry.gt=o$,ry.gte=oW,ry.has=function(e,t){return null!=e&&iT(e,t,r3)},ry.hasIn=ay,ry.head=i2,ry.identity=aH,ry.includes=function(e,t,r,n){e=oV(e)?e:aM(e),r=r&&!n?ai(r):0;var i=e.length;return r<0&&(r=t9(i+r,0)),o4(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&tC(e,t,r)>-1},ry.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:ai(r);return i<0&&(i=t9(n+i,0)),tC(e,t,i)},ry.inRange=function(e,t,r){var i,o,a;return t=an(t),n===r?(r=t,t=0):r=an(r),(i=e=aa(e))>=t6(o=t,a=r)&&i<t9(o,a)},ry.invoke=aj,ry.isArguments=oG,ry.isArray=oK,ry.isArrayBuffer=oU,ry.isArrayLike=oV,ry.isArrayLikeObject=oH,ry.isBoolean=function(e){return!0===e||!1===e||o1(e)&&r2(e)==p},ry.isBuffer=oY,ry.isDate=oq,ry.isElement=function(e){return o1(e)&&1===e.nodeType&&!o3(e)},ry.isEmpty=function(e){if(null==e)return!0;if(oV(e)&&(oK(e)||"string"==typeof e||"function"==typeof e.splice||oY(e)||o5(e)||oG(e)))return!e.length;var t=iw(e);if(t==v||t==C)return!e.size;if(iO(e))return!nn(e).length;for(var r in e)if(eO.call(e,r))return!1;return!0},ry.isEqual=function(e,t){return r5(e,t)},ry.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return n===i?r5(e,t,n,r):!!i},ry.isError=oJ,ry.isFinite=function(e){return"number"==typeof e&&t2(e)},ry.isFunction=oZ,ry.isInteger=oQ,ry.isLength=oX,ry.isMap=o2,ry.isMatch=function(e,t){return e===t||ne(e,t,iS(t))},ry.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,ne(e,t,iS(t),r)},ry.isNaN=function(e){return o7(e)&&e!=+e},ry.isNative=function(e){if(iE(e))throw new eb("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return nt(e)},ry.isNil=function(e){return null==e},ry.isNull=function(e){return null===e},ry.isNumber=o7,ry.isObject=o0,ry.isObjectLike=o1,ry.isPlainObject=o3,ry.isRegExp=o9,ry.isSafeInteger=function(e){return oQ(e)&&e>=-9007199254740991&&e<=9007199254740991},ry.isSet=o6,ry.isString=o4,ry.isSymbol=o8,ry.isTypedArray=o5,ry.isUndefined=function(e){return n===e},ry.isWeakMap=function(e){return o1(e)&&iw(e)==P},ry.isWeakSet=function(e){return o1(e)&&"[object WeakSet]"==r2(e)},ry.join=function(e,t){return null==e?"":t7.call(e,t)},ry.kebabCase=aO,ry.last=i6,ry.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var o=i;return n!==r&&(o=(o=ai(r))<0?t9(i+o,0):t6(o,i-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,o):t_(e,tT,o,!0)},ry.lowerCase=aR,ry.lowerFirst=az,ry.lt=ae,ry.lte=at,ry.max=function(e){return e&&e.length?rV(e,aH,r7):n},ry.maxBy=function(e,t){return e&&e.length?rV(e,iv(t,2),r7):n},ry.mean=function(e){return tP(e,aH)},ry.meanBy=function(e,t){return tP(e,iv(t,2))},ry.min=function(e){return e&&e.length?rV(e,aH,ni):n},ry.minBy=function(e,t){return e&&e.length?rV(e,iv(t,2),ni):n},ry.stubArray=a9,ry.stubFalse=a6,ry.stubObject=function(){return{}},ry.stubString=function(){return""},ry.stubTrue=function(){return!0},ry.multiply=st,ry.nth=function(e,t){return e&&e.length?nu(e,ai(t)):n},ry.noConflict=function(){return e6._===this&&(e6._=eN),this},ry.noop=aQ,ry.now=oT,ry.pad=function(e,t,r){e=al(e);var n=(t=ai(t))?tH(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return n5(tX(i),r)+e+n5(tQ(i),r)},ry.padEnd=function(e,t,r){e=al(e);var n=(t=ai(t))?tH(e):0;return t&&n<t?e+n5(t-n,r):e},ry.padStart=function(e,t,r){e=al(e);var n=(t=ai(t))?tH(e):0;return t&&n<t?n5(t-n,r)+e:e},ry.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),t8(al(e).replace(ee,""),t||0)},ry.random=function(e,t,r){if(r&&"boolean"!=typeof r&&iM(e,t,r)&&(t=r=n),n===r&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),n===e&&n===t?(e=0,t=1):(e=an(e),n===t?(t=e,e=0):t=an(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=t5();return t6(e+o*(t-e+e2("1e-"+((o+"").length-1))),t)}return np(e,t)},ry.reduce=function(e,t,r){var n=oK(e)?tx:tM,i=arguments.length<3;return n(e,iv(t,4),r,i,rG)},ry.reduceRight=function(e,t,r){var n=oK(e)?tv:tM,i=arguments.length<3;return n(e,iv(t,4),r,i,rK)},ry.repeat=function(e,t,r){return t=(r?iM(e,t,r):n===t)?1:ai(t),ng(al(e),t)},ry.replace=function(){var e=arguments,t=al(e[0]);return e.length<3?t:t.replace(e[1],e[2])},ry.result=function(e,t,r){t=nN(t,e);var i=-1,o=t.length;for(!o&&(o=1,e=n);++i<o;){var a=null==e?n:e[iH(t[i])];n===a&&(i=o,a=r),e=oZ(a)?a.call(e):a}return e},ry.round=sr,ry.runInContext=e,ry.sample=function(e){return(oK(e)?rA:ny)(e)},ry.size=function(e){if(null==e)return 0;if(oV(e))return o4(e)?tH(e):e.length;var t=iw(e);return t==v||t==C?e.size:nn(e).length},ry.snakeCase=aB,ry.some=function(e,t,r){var i=oK(e)?tj:nC;return r&&iM(e,t,r)&&(t=n),i(e,iv(t,3))},ry.sortedIndex=function(e,t){return nw(e,t)},ry.sortedIndexBy=function(e,t,r){return nT(e,t,iv(r,2))},ry.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=nw(e,t);if(n<r&&oF(e[n],t))return n}return -1},ry.sortedLastIndex=function(e,t){return nw(e,t,!0)},ry.sortedLastIndexBy=function(e,t,r){return nT(e,t,iv(r,2),!0)},ry.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=nw(e,t,!0)-1;if(oF(e[r],t))return r}return -1},ry.startCase=aL,ry.startsWith=function(e,t,r){return e=al(e),r=null==r?0:rL(ai(r),0,e.length),t=nI(t),e.slice(r,r+t.length)==t},ry.subtract=sn,ry.sum=function(e){return e&&e.length?tD(e,aH):0},ry.sumBy=function(e,t){return e&&e.length?tD(e,iv(t,2)):0},ry.template=function(e,t,r){var i=ry.templateSettings;r&&iM(e,t,r)&&(t=n),e=al(e),t=ad({},t,i,il);var o=ad({},t.imports,i.imports,il),a=aS(o),s=tR(o,a),l,u,c=0,d=t.interpolate||em,f="__p += '",h=eT((t.escape||em).source+"|"+d.source+"|"+(d===Y?el:em).source+"|"+(t.evaluate||em).source+"|$","g"),p="//# sourceURL="+(eO.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eQ+"]")+"\n";e.replace(h,function(t,r,n,i,o,a){return n||(n=i),f+=e.slice(c,a).replace(ey,t$),r&&(l=!0,f+="' +\n__e("+r+") +\n'"),o&&(u=!0,f+="';\n"+o+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=a+t.length,t}),f+="';\n";var g=eO.call(t,"variable")&&t.variable;if(g){if(ea.test(g))throw new eb("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(u?f.replace(N,""):f).replace(F,"$1").replace($,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=aW(function(){return e_(a,p+"return "+f).apply(n,s)});if(m.source=f,oJ(m))throw m;return m},ry.times=function(e,t){if((e=ai(e))<1||e>9007199254740991)return[];var r=4294967295,n=t6(e,4294967295);t=iv(t),e-=4294967295;for(var i=tk(n,t);++r<e;)t(r);return i},ry.toFinite=an,ry.toInteger=ai,ry.toLength=ao,ry.toLower=function(e){return al(e).toLowerCase()},ry.toNumber=aa,ry.toSafeInteger=function(e){return e?rL(ai(e),-9007199254740991,9007199254740991):0===e?e:0},ry.toString=al,ry.toUpper=function(e){return al(e).toUpperCase()},ry.trim=function(e,t,r){if((e=al(e))&&(r||n===t))return tE(e);if(!e||!(t=nI(t)))return e;var i=tY(e),o=tY(t),a=tB(i,o),s=tL(i,o)+1;return nF(i,a,s).join("")},ry.trimEnd=function(e,t,r){if((e=al(e))&&(r||n===t))return e.slice(0,tq(e)+1);if(!e||!(t=nI(t)))return e;var i=tY(e),o=tL(i,tY(t))+1;return nF(i,0,o).join("")},ry.trimStart=function(e,t,r){if((e=al(e))&&(r||n===t))return e.replace(ee,"");if(!e||!(t=nI(t)))return e;var i=tY(e),o=tB(i,tY(t));return nF(i,o).join("")},ry.truncate=function(e,t){var r=30,i="...";if(o0(t)){var o="separator"in t?t.separator:o;r="length"in t?ai(t.length):r,i="omission"in t?nI(t.omission):i}var a=(e=al(e)).length;if(tW(e)){var s=tY(e);a=s.length}if(r>=a)return e;var l=r-tH(i);if(l<1)return i;var u=s?nF(s,0,l).join(""):e.slice(0,l);if(n===o)return u+i;if(s&&(l+=u.length-l),o9(o)){if(e.slice(l).search(o)){var c,d=u;for(!o.global&&(o=eT(o.source,al(eu.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,n===f?l:f)}}else if(e.indexOf(nI(o),l)!=l){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+i},ry.unescape=function(e){return(e=al(e))&&K.test(e)?e.replace(W,tJ):e},ry.uniqueId=function(e){var t=++eR;return al(e)+t},ry.upperCase=aN,ry.upperFirst=aF,ry.each=ox,ry.eachRight=ov,ry.first=i2,aZ(ry,(ev={},rZ(ry,function(e,t){!eO.call(ry.prototype,t)&&(ev[t]=e)}),ev),{chain:!1}),ry.VERSION="4.17.21",tc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){ry[e].placeholder=ry}),tc(["drop","take"],function(e,t){rS.prototype[e]=function(r){r=n===r?1:t9(ai(r),0);var i=this.__filtered__&&!t?new rS(this):this.clone();return i.__filtered__?i.__takeCount__=t6(r,i.__takeCount__):i.__views__.push({size:t6(r,4294967295),type:e+(i.__dir__<0?"Right":"")}),i},rS.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tc(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;rS.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:iv(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),tc(["head","last"],function(e,t){var r="take"+(t?"Right":"");rS.prototype[e]=function(){return this[r](1).value()[0]}}),tc(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");rS.prototype[e]=function(){return this.__filtered__?new rS(this):this[r](1)}}),rS.prototype.compact=function(){return this.filter(aH)},rS.prototype.find=function(e){return this.filter(e).head()},rS.prototype.findLast=function(e){return this.reverse().find(e)},rS.prototype.invokeMap=nm(function(e,t){return"function"==typeof e?new rS(this):this.map(function(r){return r4(r,e,t)})}),rS.prototype.reject=function(e){return this.filter(oR(iv(e)))},rS.prototype.slice=function(e,t){e=ai(e);var r=this;return r.__filtered__&&(e>0||t<0)?new rS(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(t=ai(t))<0?r.dropRight(-t):r.take(t-e)),r)},rS.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rS.prototype.toArray=function(){return this.take(4294967295)},rZ(rS.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=ry[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(ry.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof rS,u=s[0],c=l||oK(t),d=function(e){var t=o.apply(ry,ty([e],s));return i&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&c){t=g?t:new rS(this);var m=e.apply(t,s);return m.__actions__.push({func:oh,args:[d],thisArg:n}),new rj(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),tc(["pop","push","shift","sort","splice","unshift"],function(e){var t=eI[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);ry.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(oK(i)?i:[],e)}return this[r](function(r){return t.apply(oK(r)?r:[],e)})}}),rZ(rS.prototype,function(e,t){var r=ry[t];if(r){var n=r.name+"";!eO.call(rl,n)&&(rl[n]=[]),rl[n].push({name:t,func:r})}}),rl[n9(n,2).name]=[{name:"wrapper",func:n}],rS.prototype.clone=function(){var e=new rS(this.__wrapped__);return e.__actions__=nY(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nY(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nY(this.__views__),e},rS.prototype.reverse=function(){if(this.__filtered__){var e=new rS(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},rS.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=oK(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=t6(t,e+a);break;case"takeRight":e=t9(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=n?s:a-1,c=this.__iteratees__,d=c.length,f=0,h=t6(l,this.__takeCount__);if(!r||!n&&i==l&&h==l)return nO(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[u+=t];++g<d;){var y=c[g],x=y.iteratee,v=y.type,j=x(m);if(2==v)m=j;else if(!j){if(1==v)continue e;break e}}p[f++]=m}return p},ry.prototype.at=op,ry.prototype.chain=function(){return of(this)},ry.prototype.commit=function(){return new rj(this.value(),this.__chain__)},ry.prototype.next=function(){n===this.__values__&&(this.__values__=ar(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}},ry.prototype.plant=function(e){for(var t,r=this;r instanceof rv;){var i=iq(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},ry.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof rS){var t=e;return this.__actions__.length&&(t=new rS(this)),(t=t.reverse()).__actions__.push({func:oh,args:[oe],thisArg:n}),new rj(t,this.__chain__)}return this.thru(oe)},ry.prototype.toJSON=ry.prototype.valueOf=ry.prototype.value=function(){return nO(this.__wrapped__,this.__actions__)},ry.prototype.first=ry.prototype.head,e4&&(ry.prototype[e4]=function(){return this}),ry}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(e6._=tZ,define(function(){return tZ})):e8?((e8.exports=tZ)._=tZ,e4._=tZ):e6._=tZ}).call(this)},147545:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeChangeAlert:function(){return g}});var n=r("766791"),i=r("911100"),o=r("311486"),a=r("907366"),s=r("537585"),l=r("889702"),u=r("373262"),c=r("943436"),d=r("767434"),f=r("817847"),h=r("8917");let p=({data:e,setIsFixed:t,cwd:r})=>{let{file:i,id:u}=e,{path:c,line:p,isFixed:g,actual:m,expected:y}=i,x=()=>{o.default.post(l.SDK.ServerAPI.API.ApplyErrorFix,{id:u}).then(()=>{t(!0)})};return(0,n.jsxs)(a.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(d.Title,{text:g?"Fix History":"Suggest Fix"}),(0,n.jsx)("span",{className:"code-change-tag-list",children:(0,n.jsx)(()=>(0,n.jsx)(a.Popconfirm,{title:"Did you confirm to apply the change i the area below ?",onConfirm:x,okText:"Yes",cancelText:"Cancel",zIndex:99999,disabled:g,placement:"bottom",children:(0,n.jsx)(a.Button,{type:"primary",size:"small",icon:g?(0,n.jsx)(s.CheckOutlined,{}):void 0,disabled:g,children:g?"Fix Applied":"Apply Fix"})}),{})})]}),(0,n.jsx)(f.CodeOpener,{cwd:r,url:c,loc:String(p),code:!0,disabled:!0}),(0,n.jsxs)(a.Row,{children:[(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Before"})}),(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Typography.Text,{strong:!0,children:"After"})})]}),(0,n.jsx)(h.DiffViewer,{className:"full-space",filepath:c,before:m,after:y})]})},g=({data:e,cwd:t})=>{let{title:r,description:o="",level:l,code:d,file:f}=e,[h,g]=(0,i.useState)(f.isFixed??!1),m=(0,u.useRuleIndexNavigate)(d,e.link),y=(0,n.jsxs)(a.Space,{direction:"vertical",children:[(0,n.jsx)(a.Typography.Text,{children:o}),(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{children:"File:"}),(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:f.path}),(0,n.jsx)(a.Typography.Text,{children:"in line"}),(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:f.line})]})]});return(0,n.jsx)(a.Alert,{showIcon:!0,message:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{code:!0,strong:!0,onClick:m,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:d})}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:r})]}),description:y,type:h?"success":"warn"===l?"info":l,action:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(c.TextDrawer,{text:h?"Fixed | Show Fix History":"Show Fix Suggestion",buttonProps:{size:"small"},children:(0,n.jsx)(p,{data:e,setIsFixed:e=>{g(e),f.isFixed=e},cwd:t})}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Button,{type:"link",onClick:m,size:"small",children:(0,n.jsx)(s.InfoCircleOutlined,{})})]})})}},807516:function(e,t,r){"use strict";r.r(t),r.d(t,{FileRelationAlert:function(){return o}});var n=r("766791"),i=r("907366");let o=({data:e})=>{let{description:t="",level:r}=e;return(0,n.jsx)(i.Alert,{type:"warn"===r?"info":r,description:t})}},254722:function(e,t,r){"use strict";r.r(t),r.d(t,{Alert:function(){return u}});var n=r("766791"),i=r("855532"),o=r("807516"),a=r("981328"),s=r("147545"),l=r("431346");r("586755");let u=e=>{let{data:t,cwd:r=""}=e;if("file-relation"===t.type)return(0,n.jsx)(o.FileRelationAlert,{data:t});if("code-view"===t.type)return(0,n.jsx)(l.CodeViewAlert,{data:t,cwd:r});if("code-change"===t.type)return(0,n.jsx)(s.CodeChangeAlert,{data:t,cwd:r});if("emo"===t.type)return(0,n.jsx)(n.Fragment,{});if("package-relation"===t.type){let{getPackageRelationContentComponent:i}=e;return(0,n.jsx)(a.PackageRelationAlert,{data:t,cwd:r,getPackageRelationContentComponent:i})}return(0,n.jsx)(i.LinkRuleAlert,{data:t})}},855532:function(e,t,r){"use strict";r.r(t),r.d(t,{LinkRuleAlert:function(){return s}});var n=r("766791"),i=r("907366"),o=r("537585"),a=r("373262");let s=({data:e})=>{let{title:t,description:r="",level:s,code:l}=e,u=(0,a.useRuleIndexNavigate)(l,e.link);return(0,n.jsx)(i.Alert,{showIcon:!0,message:(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{code:!0,strong:!0,onClick:u,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:l})}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:t})]}),description:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}),type:"warn"===s?"info":s,action:(0,n.jsxs)(i.Button,{type:"link",onClick:u,size:"small",children:["More",(0,n.jsx)(o.InfoCircleOutlined,{})]})})}},981328:function(e,t,r){"use strict";r.r(t),r.d(t,{PackageRelationAlert:function(){return x},PackageRelationReasonsWithServer:function(){return y}});var n=r("766791"),i=r("911100"),o=r.n(i),a=r("907366"),s=r("667227"),l=r("889702"),u=r("537585"),c=r("373262"),d=r("943436"),f=r("767434"),h=r("723854"),p=r("972519"),g=r("8917"),m=r("321217");let y=(0,m.withServerAPI)({Component:({data:e,cwd:t})=>{let[r,s]=(0,i.useState)(0),{t:l}=(0,c.useI18n)();return(0,n.jsxs)(a.Row,{gutter:h.Size.BasePadding,wrap:!1,align:"top",children:[(0,n.jsx)(a.Col,{span:12,style:{height:"100%"},children:(0,n.jsx)(a.Card,{title:"The reasons for importing this version",style:{height:"100%"},extra:(0,n.jsx)(a.Popover,{content:(0,n.jsx)(a.Typography.Text,{children:l("DuplicatePakCodeExplain")}),children:(0,n.jsx)("a",{href:"#",children:"Explain"})}),bodyStyle:{overflow:"scroll"},children:e.length?(0,n.jsxs)(o().Fragment,{children:[(0,n.jsx)("div",{style:{marginBottom:h.Size.BasePadding},children:(0,n.jsx)(a.Typography.Text,{type:"secondary",strong:!0,children:"Click the file path below to show the reason in code viewer."})}),(0,n.jsx)(a.Timeline,{children:e.map((t,i)=>{let{dependency:o,module:l,relativePath:u}=t,{statements:c}=o,{start:d}=c?.[0]?.position?l.isPreferSource?c[0].position.source:c[0].position.transformed:{start:{line:0,column:0}},f=`${u}:${d.line}:${d.column||1}`;return(0,n.jsx)(a.Timeline.Item,{style:{cursor:"pointer"},dot:i===e.length-1?void 0:"\u2B07\uFE0F",children:(0,n.jsx)(a.Typography.Text,{copyable:{text:u},onClick:e=>{e.preventDefault(),e.stopPropagation(),s(i)},strong:i===r,style:{color:i===r?h.Color.Blue:"inherit",display:"block"},children:f})},f)})})]}):(0,n.jsx)(a.Empty,{description:"This package no dependencies"})})}),(0,n.jsx)(a.Col,{span:12,style:{height:"100%"},children:(0,i.createElement)(g.FileHightLightViewer,{...e[r],key:r,cwd:t})})]})},api:l.SDK.ServerAPI.API.GetPackageRelationAlertDetails,responsePropName:"data"}),x=({data:e,getPackageRelationContentComponent:t})=>{let{level:r,code:i,packages:g}=e,m=(0,c.useRuleIndexNavigate)(i,e.link),y=(0,s.sumBy)(g,e=>e.targetSize.sourceSize),x=(0,c.formatSize)(y),v=(0,c.useWindowWidth)(),{name:j}=g.find(e=>!!e.target.name).target,S=g.map(e=>e.target.version);return(0,n.jsx)(a.Alert,{showIcon:!0,message:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{code:!0,strong:!0,onClick:m,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:i})}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:l.Rule.RuleErrorMap[i]?.title||e.title}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsxs)(a.Typography.Text,{children:[(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:j}),(0,n.jsxs)(a.Typography.Text,{strong:!0,children:[" ",e.packages.length]}),(0,n.jsx)(a.Typography.Text,{children:" versions was found"})]}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(p.Badge,{label:"total size",value:x,type:"error",tooltip:`total size of ${e.packages.length} versions is ${x}`})]}),description:(0,n.jsx)(a.Space,{direction:"vertical",wrap:!1,children:e.packages.map(({target:e,targetSize:t})=>{let r=(0,c.formatSize)(t.sourceSize),i=t.parsedSize?(0,c.formatSize)(t.parsedSize):null,o=`${e.name}@${e.version}`;return(0,n.jsxs)(a.Space,{style:{wordBreak:"break-all"},align:"center",children:[(0,n.jsx)(a.Typography.Text,{style:{marginLeft:4},children:"\u2514"}),(0,n.jsx)(p.Badge,{label:e.name,value:`v${e.version}`,tooltip:o}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(p.Badge,{label:(0,n.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,n.jsx)(u.InfoCircleOutlined,{})]}),value:r,tooltip:`The bundle size of "${o}" is ${r}, this is source size.`,type:"error"}),(0,n.jsx)(p.Badge,{label:"Bundled size",value:i||"CONCATENATED",tooltip:`The bundle size of "${o}" is ${r}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Typography.Paragraph,{style:{marginBottom:0,width:v>1500?"40rem":v>1200?"30rem":"20rem"},copyable:{text:e.root},ellipsis:{rows:1,expandable:!0,symbol:(0,n.jsx)(u.ExpandAltOutlined,{}),tooltip:e.root},code:!0,children:e.root})]},e.version)})}),type:"warn"===r?"info":r,action:(0,n.jsxs)(o().Fragment,{children:[g&&g.length>0?(0,n.jsx)(d.TextDrawer,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:e.title},children:(0,n.jsxs)(a.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsxs)(a.Space,{style:{marginBottom:h.Size.BasePadding/2},children:[(0,n.jsx)(f.Title,{text:j,upperFisrt:!1}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:S.length}),(0,n.jsx)(a.Typography.Text,{children:" versions was found: "}),S.map(e=>(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:e},e))]}),(0,n.jsx)(a.Tabs,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:S[0],items:g.map(r=>{let{target:i,targetSize:o}=r;return{label:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{children:`${j}@${i.version}`}),(0,n.jsx)(a.Tag,{color:h.Color.Red,children:(0,c.formatSize)(o.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:t({data:e,package:r})}})})]})}):null,(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Button,{type:"link",onClick:m,size:"small",icon:(0,n.jsx)(u.InfoCircleOutlined,{})})]})})}},431346:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeViewAlert:function(){return h}});var n=r("766791"),i=r("667227"),o=r("907366"),a=r("537585"),s=r("373262"),l=r("943436"),u=r("767434"),c=r("817847"),d=r("8917");let f=({data:e,cwd:t})=>{let{file:r}=e,{path:a,ranges:s}=r,l=s?.[0].start.line;return(0,n.jsxs)(o.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsx)(u.Title,{text:"Code Viewer"}),(0,n.jsx)(c.CodeOpener,{cwd:t,url:a,loc:(0,i.isNumber)(l)?String(l):void 0,code:!0,disabled:!0}),(0,n.jsx)(d.CodeViewer,{path:r.path,content:r.content,ranges:s,defaultLine:l})]})},h=({data:e,cwd:t})=>{let{title:r,description:u="",level:c,code:d,file:h}=e,p=(0,s.useRuleIndexNavigate)(d,e.link),g=h.ranges?.[0].start.line,m=(0,n.jsxs)(o.Space,{direction:"vertical",children:[(0,n.jsx)(o.Typography.Text,{children:u}),(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:"File:"}),(0,n.jsx)(o.Typography.Text,{strong:!0,code:!0,children:h.path}),(0,i.isNumber)(g)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Typography.Text,{children:"in line"}),(0,n.jsx)(o.Typography.Text,{strong:!0,code:!0,children:g})]}):""]})]});return(0,n.jsx)(o.Alert,{showIcon:!0,message:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{code:!0,strong:!0,onClick:p,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:d})}),(0,n.jsx)(o.Typography.Text,{strong:!0,children:r})]}),description:m,type:"warn"===c?"info":c,action:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(l.TextDrawer,{text:"Show Source Code",buttonProps:{size:"small"},children:(0,n.jsx)(f,{data:e,cwd:t})}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Divider,{type:"vertical"}),(0,n.jsx)(o.Button,{type:"link",onClick:p,size:"small",icon:(0,n.jsx)(a.InfoCircleOutlined,{})})]})]})})}},936816:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleAlerts:function(){return f}});var n=r("766791"),i=r("911100"),o=r("889702"),a=r("373262"),s=r("421638"),l=r("321217"),u=r("723854"),c=r("981328"),d=r("907366");let f=(0,l.withServerAPI)({api:o.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({filter:e,project:t})=>{let{errors:r,root:o}=t,l=(0,a.useBundleAlertsByErrors)(r),{setBundleAlertsViewMode:f,viewMode:h,setViewMode:p}=(0,a.useViewMode)(),g=e?l.filter(e):l;return(0,i.useEffect)(()=>{!(0,a.hasViewModeFromStorage)()&&p({bundleAlerts:l.length>=5?u.ViewMode.Group:u.ViewMode.List},!1)},[]),(0,n.jsx)(d.ConfigProvider,{theme:{components:{Alert:{colorInfoBg:"#e6f4ff57",colorInfoBorder:"none"}}},children:(0,n.jsx)(s.CommonAlertsContainer,{title:"Bundle Alerts",dataSource:g,extraData:{cwd:o,getPackageRelationContentComponent:e=>(0,n.jsx)(c.PackageRelationReasonsWithServer,{body:{id:e.data.id,target:e.package.target},cwd:o})},viewMode:h.bundleAlerts,setViewMode:f,cwd:o})})}})},421638:function(e,t,r){"use strict";r.r(t),r.d(t,{CommonAlertsContainer:function(){return m}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("537585"),s=r("889702"),l=r("667227"),u=r("723854"),c=r("254722"),d=r("794568"),f=r("972519");let h={warn:1,error:2},p=({dataSource:e,extraData:t})=>{let r=(0,o.useMemo)(()=>e.slice().sort((e,t)=>h[t.level]-h[e.level]),[e]);return(0,n.jsx)(i.Space,{direction:"vertical",style:{wordBreak:"break-all",width:"100%"},children:r.map((e,r)=>(0,n.jsx)(c.Alert,{data:e,...t},r))})},g=({dataSource:e,extraData:t})=>{let r=(0,o.useMemo)(()=>(0,l.values)((0,l.groupBy)(e,e=>e.code)),[e]);return(0,n.jsx)(i.Space,{direction:"vertical",style:{wordBreak:"break-all",width:"100%"},children:(0,n.jsx)(i.Collapse,{children:r.map(e=>{let[r]=e;return(0,n.jsx)(i.Collapse.Panel,{header:(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{code:!0,strong:!0,style:{cursor:"pointer"},children:r.code}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:s.Rule.RuleErrorMap[r.code]?.title||r.title}),(0,n.jsx)(f.Badge,{label:"count",value:e.length,type:"error"})]}),children:(0,n.jsx)(i.Space,{direction:"vertical",size:16,children:e.map((e,r)=>(0,n.jsx)(c.Alert,{data:e,...t},r))})},r.code)})})})},m=({title:e,dataSource:t,extraData:r,viewMode:o,setViewMode:s,extraCom:l})=>t.length?(0,n.jsx)(d.Card,{title:e,style:{marginTop:u.Size.BasePadding},collapsable:!0,extra:l||(0,n.jsx)(i.Radio.Group,{options:[{label:(0,n.jsx)(i.Tooltip,{title:"display by list",children:(0,n.jsx)(a.UnorderedListOutlined,{})}),value:u.ViewMode.List},{label:(0,n.jsx)(i.Tooltip,{title:"display by group",children:(0,n.jsx)(a.AppstoreOutlined,{})}),value:u.ViewMode.Group}],value:o,optionType:"button",size:"small",onChange:e=>{s(e.target.value)}}),children:o===u.ViewMode.List?(0,n.jsx)(p,{dataSource:t,extraData:r}):(0,n.jsx)(g,{dataSource:t,extraData:r})}):null},396700:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileAlerts:function(){return d}});var n=r("766791"),i=r("911100"),o=r("889702"),a=r("373262"),s=r("421638"),l=r("321217"),u=r("723854"),c=r("981328");let d=(0,l.withServerAPI)({api:o.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({filter:e,project:t})=>{let{root:r,errors:o}=t,l=(0,a.useCompileAlertsByErrors)(o),{setCompileAlertsViewMode:d,viewMode:f,setViewMode:h}=(0,a.useViewMode)(),p=e?l.filter(e):l;return(0,i.useEffect)(()=>{!(0,a.hasViewModeFromStorage)()&&h({compileAlerts:l.length>=5?u.ViewMode.Group:u.ViewMode.List},!1)},[]),(0,n.jsx)(s.CommonAlertsContainer,{title:"Compile Alerts",dataSource:p,extraData:{cwd:r,getPackageRelationContentComponent:e=>(0,n.jsx)(c.PackageRelationReasonsWithServer,{body:{id:e.data.id,target:e.package.target},cwd:r})},viewMode:f.compileAlerts,setViewMode:d,cwd:r})}})},98394:function(e,t,r){"use strict";r.r(t);var n=r("936816");r.es(n,t);var i=r("396700");r.es(i,t);var o=r("279557");r.es(o,t)},279557:function(e,t,r){"use strict";r.r(t),r.d(t,{OverlayAlertsWithButton:function(){return m},OverlayAlertsWithTips:function(){return y}});var n=r("766791"),i=r("911100"),o=r.n(i),a=r("889702"),s=r("907366"),l=r("537585"),u=r("958086"),c=r("374827"),d=r.n(c),f=r("321217"),h=r("723854");function p(e){let t=0,r=0;e.forEach(e=>{"warn"===e.level?t++:r++});let i=0!==t&&0!==r?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${i}`,detail:(0,n.jsxs)(s.Typography.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,n.jsx)(s.Typography.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with "}),(0,n.jsxs)(s.Typography.Text,{strong:!0,style:{color:h.Color.Red,fontSize:16},children:[r," errors"]}),(0,n.jsx)(s.Typography.Text,{style:{color:"inherit",fontSize:16},children:" and "}),(0,n.jsxs)(s.Typography.Text,{strong:!0,style:{color:h.Color.Yellow,fontSize:16},children:[t," warnings"]})]}),warns:t,errors:r}}r("529048");let g=({alerts:e=[],open:t,onClose:r})=>e.length?(0,n.jsxs)(u.default,{visible:t,onClose:()=>r(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>o().cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,n.jsxs)(s.Row,{justify:"space-between",align:"middle",children:[p(e).detail,(0,n.jsx)(s.Button,{onClick:()=>r(),type:"text",style:{color:"#fff"},size:"large",icon:(0,n.jsx)(l.CloseCircleOutlined,{})})]}),(0,n.jsx)(s.Row,{gutter:[0,h.Size.BasePadding],children:e.map(e=>(0,n.jsx)(s.Col,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,n.jsx)(s.Collapse,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,n.jsx)(l.DownOutlined,{style:{color:"#fff"}}):(0,n.jsx)(l.RightOutlined,{style:{color:"#fff"}}),children:(0,n.jsx)(s.Collapse.Panel,{header:(0,n.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,n.jsx)(s.Tag,{color:h.Color.Yellow,children:"WARNING"}):(0,n.jsx)(s.Tag,{color:h.Color.Red,children:"ERROR"}),(0,n.jsx)(d(),{children:e.description||e.title})]}),children:(0,n.jsx)("div",{style:{color:"#fff"},children:(0,n.jsx)(d(),{children:e.stack})})},e.id)})},e.id))})]}):null,m=(0,f.withServerAPI)({api:a.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[]})=>{if(!e.length)return null;let{errors:t}=p(e),[r,a]=(0,i.useState)(t>0);return(0,n.jsxs)(o().Fragment,{children:[(0,n.jsx)(s.Button,{icon:(0,n.jsx)(l.BugOutlined,{}),danger:!0,size:"small",onClick:()=>a(!r),children:p(e).title}),(0,n.jsx)(g,{alerts:e,open:r,onClose:()=>a(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null}),y=(0,f.withServerAPI)({api:a.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[],defaultOpen:t=e.length>0})=>{if(!e.length)return null;let[r,a]=(0,i.useState)(t);return(0,n.jsxs)(o().Fragment,{children:[(0,n.jsx)(s.Alert,{banner:!0,message:o().cloneElement(p(e).detail,{style:{color:"#000"}}),icon:(0,n.jsx)(l.BugOutlined,{}),action:(0,n.jsx)(s.Button,{onClick:()=>a(!0),size:"small",children:"More"})}),(0,n.jsx)(g,{alerts:e,open:r,onClose:()=>a(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},972519:function(e,t,r){"use strict";r.r(t),r.d(t,{Badge:function(){return l},BadgeColorMap:function(){return s},BadgeType:function(){return a}});var n,i=r("766791"),o=r("907366");var a=((n=a||{}).Default="default",n.Success="success",n.Warn="warn",n.Error="error",n);let s={default:"linear-gradient(to bottom, #3ea2ff 0%, #0072db 100%)",success:"linear-gradient(to bottom, #6cf42a 0%, #52C41A 100%)",warn:"linear-gradient(to bottom, #ffc100 0%, #f59025 100%)",error:"linear-gradient(to bottom, rgb(250 127 22), #FF4D4F 100%)"},l=({label:e,value:t,type:r="default",tooltip:n})=>{let a={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},l=(0,i.jsxs)("div",{style:{height:22,margin:0,padding:0,boxSizing:"border-box",borderRadius:4,fontSize:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:[(0,i.jsx)("div",{style:{...a,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:e}),(0,i.jsx)("div",{style:{...a,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:s[r]||s.default},children:t})]});return n?(0,i.jsx)(o.Tooltip,{title:!0===n?t:n,placement:"topLeft",children:l}):l}},794568:function(e,t,r){"use strict";r.r(t),r.d(t,{Card:function(){return s}});var n=r("766791"),i=r("537585"),o=r("907366"),a=r("911100");let s=({collapsable:e=!1,children:t,title:r,dividerStyle:s,defaultCollapsed:l=!1,...u})=>{let[c,d]=(0,a.useState)(l);return r&&e?(0,n.jsx)(o.Card,{...u,title:(0,n.jsxs)(o.Space,{style:{fontSize:"inherit"},children:[(0,n.jsx)(o.Button,{icon:c?(0,n.jsx)(i.ColumnHeightOutlined,{}):(0,n.jsx)(i.VerticalAlignMiddleOutlined,{}),onClick:()=>d(!c),size:"small"}),r]}),children:c?(0,n.jsx)(o.Divider,{orientation:"center",style:s,plain:!0,children:(0,n.jsx)(o.Button,{icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),type:"text",onClick:()=>d(!c),children:"show more"})}):t}):(0,n.jsx)(o.Card,{title:r,...u,children:t})}},543767:function(e,t,r){"use strict";r.r(t),r.d(t,{SizeCard:function(){return f}});var n=r("766791"),i=r("537585"),o=r("907366"),a=r("667227"),s=r("911100"),l=r("373262"),u=r("674542"),c=r("943436");let{useToken:d}=o.theme,f=({files:e,total:t,showProgress:r=!1,tagBgColor:f})=>{let{token:h}=d(),p=(0,s.useMemo)(()=>(0,a.sumBy)(e,e=>e.size),[e]),g=(0,s.useMemo)(()=>(0,l.createFileStructures)({files:e.map(e=>e.path),fileTitle(t,r){let{size:i}=e.find(e=>e.path===t);return(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:r}),(0,n.jsx)(o.Tag,{color:"success",children:(0,l.formatSize)(i)})]})}}),[e]);return 0===g.length?(0,n.jsx)(o.Space,{style:{height:100,fontSize:24},align:"center",children:(0,n.jsx)(o.Tag,{bordered:!1,color:f,children:(0,n.jsxs)(o.Typography.Text,{style:{fontSize:14,color:h.colorWhite},children:[(0,n.jsxs)(o.Typography.Text,{style:{color:h.colorWhite},children:[" ",0]})," Files"]})})}):(0,n.jsxs)(o.Space,{style:{height:100},align:"center",children:[r?0===p?(0,n.jsx)(o.Empty,{}):(0,n.jsx)(o.Progress,{type:"dashboard",percent:+(p/t*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#87d068"},width:80}):null,(0,n.jsx)(c.TextDrawer,{text:(0,n.jsx)(o.Tooltip,{title:"Click to show the total files",children:(0,n.jsxs)(o.Space,{style:{textAlign:r?"left":"center"},align:"end",children:[(0,n.jsxs)(o.Space,{direction:"vertical",children:[(0,n.jsx)(o.Tag,{bordered:!1,color:f,children:(0,n.jsxs)(o.Typography.Text,{style:{fontSize:14,color:h.colorWhite},children:[(0,n.jsxs)(o.Typography.Text,{style:{color:h.colorWhite},children:[" ",e.length]})," Files"]})}),(0,n.jsx)(o.Typography.Text,{style:{fontSize:20},children:(0,l.formatSize)(p)})]}),(0,n.jsx)(i.ExceptionOutlined,{style:{transform:"translateY(-3.5px)"}})]})}),buttonStyle:{height:"100%"},buttonProps:{type:"text"},children:(0,n.jsx)(u.FileTree,{treeData:g,defaultExpandAll:!0,titleRender:e=>(0,n.jsx)(o.Typography.Text,{children:e.title})})})]})}},31017:function(e,t,r){"use strict";r.r(t),r.d(t,{StatisticCard:function(){return a}});var n=r("766791"),i=r("907366");r("353628");var o=r("373262");let a=({title:e,value:t,statisticProps:r,boxProps:a})=>{let{theme:s}=(0,o.useTheme)();return(0,n.jsx)("div",{className:`statistic-card statistic-card-${s}`,...a,children:(0,n.jsx)(i.Statistic,{title:(0,n.jsx)("div",{className:"statistic-card-title",children:e}),valueRender:()=>t,valueStyle:{fontSize:24},...r})})}},372531:function(e,t,r){"use strict";r.r(t),r.d(t,{TimelineCom:function(){return f}});var n=r("766791"),i=r("911100"),o=r("875655"),a=r("314670"),s=r("770866"),l=r.n(s),u=r("667227"),c=r("279304"),d=r.n(c);let f=(0,i.memo)(({loaderData:e,pluginsData:t,formatterFn:r,chartType:s="normal"})=>{let c=[],f=[],[h,p]=(0,i.useState)({});return(0,i.useEffect)(()=>{if(!e)return;let t=[];e.forEach(e=>{t.unshift(e.n+" total"),t.unshift(e.n)}),e.forEach(function(e,r){if(c.push({name:e.n+" total",value:[t.indexOf(e.n+" total"),e.s,e.e,e.e-e.s],itemStyle:{normal:{color:d()()}}}),e?.c)for(let r=0;r<e?.c?.length;r++)c.push({name:e.n,value:[t.indexOf(e.n),e.c[r].s,e.c[r].e,e.c[r].e-e.c[r].s],itemStyle:{normal:{color:d()()}},ext:e.c[r].ext})}),f=t.map((e,t)=>t%2!=0?e.replace(" total",""):"")},[e]),(0,i.useEffect)(()=>{if(!t)return;let e=(0,u.groupBy)(t,e=>e.pid);Object.keys(e).reverse().forEach(function(t,r){e[t].forEach(e=>{c.push({name:String(e.pid),value:[r,e.args.s,e.args.e,e.args.e-e.args.s],itemStyle:{normal:{color:d()()}},ext:e})}),f.push(String(t.charAt(0).toUpperCase()+t.slice(1)))})},[t]),(0,i.useEffect)(()=>{p({tooltip:{formatter:e=>r(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-10,labelFormatter:""},{type:"inside",filterMode:"weakFilter"}],grid:{top:10,left:0,bottom:10,right:0,height:f.length>("loader"===s?6:3)?"auto":60*f.length,containLabel:!0},xAxis:{position:"top",splitLine:{show:!1},scale:!0,axisLine:{show:!1},axisLabel:{formatter:e=>l()(e).format("HH:mm:ss")}},yAxis:{type:"category",splitLine:{interval:"loader"===s?1:0,show:!0},axisLabel:{inside:!0,lineHeight:20,width:100,fontSize:12,color:"#000",verticalAlign:"bottom"},axisLine:{show:!0},axisTick:{show:!1},data:f},series:[{type:"custom",renderItem:function(e,t){let r=t.value(0),n=t.coord([t.value(1),r]),i=t.coord([t.value(2),r]),o=.3*t.size([0,1])[1],l=a.graphic.clipRectByRect({x:n[0],y:"loader"===s?n[1]-(r%2!=0?0:2*o):n[1],width:i[0]-n[0]||5,height:o},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return l&&{type:"rect",transition:["shape"],shape:l,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:c}]})},[e,t]),(0,n.jsx)(o.default,{option:h,echarts:a,style:{width:"100%",minHeight:"400px"}})})},685394:function(e,t,r){"use strict";r.r(t),r.d(t,{BootstrapChartContainer:function(){return d}});var n=r("766791"),i=r("907366"),o=r("537585"),a=r("889702"),s=r("943436");r("746689"),r("820238");var l=r("494587"),u=r("321217"),c=r("534851");let d=({summary:e})=>{let{costs:t=[]}=e||{},r=t.find(e=>e.name===c.Summary.SummaryCostsDataName.Bootstrap);return r?(0,n.jsx)(s.TextDrawer,{drawerProps:{title:'Chart of the "Bootstrap -> BeforeCompile" stage'},text:(0,n.jsxs)(i.Space,{children:["detail",(0,n.jsx)(o.BarChartOutlined,{})]}),children:(0,n.jsx)(u.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetPluginData,body:{hooks:["environment","afterEnvironment","entryOption","afterPlugins","afterResolvers","initialize","beforeRun","run","watchRun","normalModuleFactory","contextModuleFactory","beforeCompile"]},children:e=>e&&e.length?(0,n.jsx)(l.CommonExecutionsChart,{plugins:e}):(0,n.jsx)(l.CommonExecutionEmptyTips,{})})}):null}},494587:function(e,t,r){"use strict";r.r(t),r.d(t,{CommonExecutionEmptyTips:function(){return c},CommonExecutionsChart:function(){return u}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("373262"),s=r("372531");r("746689"),r("820238");var l=r("637493");let u=({plugins:e,defaultDatas:t=[]})=>{let{isDark:r}=(0,a.useTheme)(),i=(0,o.useRef)(null),[u,c]=(0,o.useState)([]);return(0,o.useEffect)(()=>{let r=[];e.forEach(e=>{e.data.forEach(t=>{r.push({p:e.hook,n:`${e.tapName}`,s:t.startAt,e:t.endAt})})}),c([...(0,l.processTrans)(t),...(0,l.processTrans)(r)])},[]),(0,n.jsx)("div",{className:["loader-chart-container",r?"loader-chart-container_dark":""].join(" ").trim(),ref:i,style:{width:"100%",height:"600px"},children:(0,n.jsx)(s.TimelineCom,{pluginsData:u,formatterFn:l.formatterForPlugins})})},c=()=>(0,n.jsx)(i.Alert,{message:(0,n.jsxs)(i.Typography.Text,{children:[(0,n.jsx)(i.Typography.Text,{children:"make sure that you have turn on "}),(0,n.jsx)(i.Typography.Text,{children:" in configuration for the Rsdoctor plugin."})]}),type:"info",showIcon:!0})},682508:function(e,t,r){"use strict";r.r(t),r.d(t,{DoneChartContainer:function(){return h}});var n=r("766791"),i=r("907366"),o=r("537585"),a=r("889702"),s=r("534851"),l=r("943436"),u=r("794568"),c=r("494587"),d=r("153218"),f=r("321217");r("746689"),r("820238");let h=({summary:e})=>{let{costs:t=[]}=e||{},r=t.find(e=>e.name===s.Summary.SummaryCostsDataName.Done),h='of the "AfterCompile -> Done" stage';return r?(0,n.jsx)(l.TextDrawer,{drawerProps:{title:`Details ${h}`},text:(0,n.jsxs)(i.Space,{children:["detail",(0,n.jsx)(o.BarChartOutlined,{})]}),children:(0,n.jsx)(f.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetPluginData,body:{hooks:["afterCompile","shouldEmit","emit","afterEmit","assetEmitted","done"]},children:e=>e&&e.length?(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(u.Card,{title:`Plugin DataSource of ${h}`,collapsable:!0,children:(0,n.jsx)(d.WebpackPluginsDataTable,{dataSource:e})}),(0,n.jsx)(i.Divider,{}),(0,n.jsx)(u.Card,{title:`Chart ${h}`,children:(0,n.jsx)(c.CommonExecutionsChart,{plugins:e})})]}):(0,n.jsx)(c.CommonExecutionEmptyTips,{})})}):null}},976566:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderChart:function(){return h}});var n,i=r("766791"),o=r("911100"),a=r("907366"),s=r("889702"),l=r("19492"),u=r("321217"),c=r("344468"),d=r("423282");var f=((n=f||{})[n.Loader=0]="Loader",n[n.Process=1]="Process",n);let h=(0,u.withServerAPI)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[r,n]=(0,o.useState)({filename:"",loaders:[]}),[f,h]=(0,o.useState)(0);return(0,i.jsxs)(a.Space,{direction:"vertical",style:{width:"100%"},children:[(0,i.jsx)(u.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,i.jsx)(l.LoaderCommonSelect,{onChange:n,loaderNames:e})}),(0,i.jsx)(u.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetLoaderChartData,children:e=>{let n=e.filter(e=>(0,d.filterLoader)(e.resource,e.loader,r.filename,r.loaders));return 0===f?(0,i.jsx)(c.LoaderExecutionsChart,{loaders:n,cwd:t}):(0,i.jsx)(i.Fragment,{})}})]})}})},344468:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderExecutionsChart:function(){return f}});var n=r("766791"),i=r("911100"),o=r("667227"),a=r("907366");r("746689");var s=r("111404"),l=r("423282"),u=r("697071"),c=r("372531"),d=r("637493");let f=({loaders:e,cwd:t})=>{let{isDark:r}=(0,s.useTheme)(),f=(0,i.useRef)(null),[h,p]=(0,i.useState)([]),g=(0,i.useMemo)(()=>(0,o.groupBy)(e,e=>e.loader),[e]),m=(0,i.useCallback)(r=>{let{name:n,data:i}=r,o=n.replace(" total","");return i?.ext?(0,d.getTooltipHtmlForLoader)(i.ext):(0,d.renderTotalLoadersTooltip)(o,e,t)},[]);return(0,i.useEffect)(()=>{p(Object.keys(g).map(e=>{let r=g[e]||[],{start:n,end:i}=(0,l.findLoaderTotalTiming)(r);return{p:e,n:e,s:n,e:i,c:r.map(r=>({p:e,n:(0,u.beautifyPath)(r.resource,t),s:r.startAt,e:r.endAt,ext:r}))}}))},[g]),(0,n.jsx)(n.Fragment,{children:h?.length?(0,n.jsx)("div",{className:["loader-chart-container",r?"loader-chart-container_dark":""].join(" ").trim(),ref:f,style:{width:"100%",height:"600px"},children:(0,n.jsx)(c.TimelineCom,{loaderData:h,formatterFn:m,chartType:"loader"})}):(0,n.jsx)(a.Empty,{})})}},388558:function(e,t,r){"use strict";r.r(t),r.d(t,{MinifyChartContainer:function(){return h}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("943436"),l=r("534851"),u=r("794568"),c=r("321217"),d=r("153218"),f=r("494587");r("746689"),r("820238");let h=({summary:e})=>{let{costs:t=[]}=e||{};return t.find(e=>e.name===l.Summary.SummaryCostsDataName.Minify)?(0,n.jsx)(s.TextDrawer,{drawerProps:{title:'Details of the "Minify" stage'},text:(0,n.jsxs)(a.Space,{children:["detail",(0,n.jsx)(i.BarChartOutlined,{})]}),children:(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:["processAssets","optimizeChunkAssets"]},children:e=>e&&e.length?(0,n.jsxs)(a.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(u.Card,{title:'Plugin DataSource of the "Minify"',collapsable:!0,children:(0,n.jsx)(d.WebpackPluginsDataTable,{dataSource:e})}),(0,n.jsx)(a.Divider,{}),(0,n.jsx)(u.Card,{title:'Chart of the "Minify"',children:(0,n.jsx)(f.CommonExecutionsChart,{plugins:e})})]}):(0,n.jsx)(f.CommonExecutionEmptyTips,{})})}):null}},833:function(e,t,r){"use strict";r.r(t),r.d(t,{ETraceEventPhase:function(){return i}});var n,i=((n=i||{}).BEGIN="B",n.END="E",n.COMPLETE="X",n.INSTANT="I",n.MARK="R",n)},637493:function(e,t,r){"use strict";r.r(t),r.d(t,{formatterForPlugins:function(){return f},getTooltipHtmlForLoader:function(){return u},processTrans:function(){return d},renderTotalLoadersTooltip:function(){return c}});var n=r("534851"),i=r("770866"),o=r.n(i),a=r("667227"),s=r("373262");r("820238");var l=r("833");function u(e){return`
1
+ /*! For license information please see index.1e8ed5aa.js.LICENSE.txt */
2
+ !function(){var e,t,r,n,i={13275:function(e,t,r){e=r.nmd(e),(function(){var n,i="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",s=1/0,l=0/0,u=4294967294,c=2147483647,d=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",h="[object Array]",p="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",x="[object GeneratorFunction]",v="[object Map]",j="[object Number]",S="[object Object]",b="[object Promise]",_="[object RegExp]",C="[object Set]",w="[object String]",T="[object Symbol]",P="[object WeakMap]",A="[object ArrayBuffer]",I="[object DataView]",M="[object Float32Array]",D="[object Float64Array]",k="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",R="[object Uint8Array]",z="[object Uint8ClampedArray]",B="[object Uint16Array]",L="[object Uint32Array]",N=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(W.source),U=RegExp(G.source),V=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Q.source),ee=/^\s+/,et=/\s/,er=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,en=/\{\n\/\* \[wrapped with (.+)\] \*/,ei=/,? & /,eo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ea=/[()=,{}\[\]\/\s]/,es=/\\(\\)?/g,el=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eu=/\w*$/,ec=/^[-+]0x[0-9a-f]+$/i,ed=/^0b[01]+$/i,ef=/^\[object .+?Constructor\]$/,eh=/^0o[0-7]+$/i,ep=/^(?:0|[1-9]\d*)$/,eg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,em=/($^)/,ey=/['\n\r\u2028\u2029\\]/g,ex="\ud800-\udfff",ev="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ej="\\u2700-\\u27bf",eS="a-z\\xdf-\\xf6\\xf8-\\xff",eb="A-Z\\xc0-\\xd6\\xd8-\\xde",e_="\\ufe0e\\ufe0f",eC="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ew="['\u2019]",eT="["+eC+"]",eP="["+ev+"]",eA="["+eS+"]",eI="[^"+ex+eC+"\\d+"+ej+eS+eb+"]",eM="\ud83c[\udffb-\udfff]",eD="[^"+ex+"]",ek="(?:\ud83c[\udde6-\uddff]){2}",eE="[\ud800-\udbff][\udc00-\udfff]",eO="["+eb+"]",eR="\\u200d",ez="(?:"+eA+"|"+eI+")",eB="(?:"+ew+"(?:d|ll|m|re|s|t|ve))?",eL="(?:"+ew+"(?:D|LL|M|RE|S|T|VE))?",eN="(?:"+eP+"|"+eM+")?",eF="["+e_+"]?",e$="(?:"+eR+"(?:"+[eD,ek,eE].join("|")+")"+eF+eN+")*",eW=eF+eN+e$,eG="(?:"+["["+ej+"]",ek,eE].join("|")+")"+eW,eK="(?:"+[eD+eP+"?",eP,ek,eE,"["+ex+"]"].join("|")+")",eU=RegExp(ew,"g"),eV=RegExp(eP,"g"),eH=RegExp(eM+"(?="+eM+")|"+eK+eW,"g"),eY=RegExp([eO+"?"+eA+"+"+eB+"(?="+[eT,eO,"$"].join("|")+")","(?:"+eO+"|"+eI+")+"+eL+"(?="+[eT,eO+ez,"$"].join("|")+")",eO+"?"+ez+"+"+eB,eO+"+"+eL,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",eG].join("|"),"g"),eq=RegExp("["+eR+ex+ev+e_+"]"),eJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eZ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eQ=-1,eX={};eX[M]=eX[D]=eX[k]=eX[E]=eX[O]=eX[R]=eX[z]=eX[B]=eX[L]=!0,eX[f]=eX[h]=eX[A]=eX[p]=eX[I]=eX[g]=eX[m]=eX[y]=eX[v]=eX[j]=eX[S]=eX[_]=eX[C]=eX[w]=eX[P]=!1;var e0={};e0[f]=e0[h]=e0[A]=e0[I]=e0[p]=e0[g]=e0[M]=e0[D]=e0[k]=e0[E]=e0[O]=e0[v]=e0[j]=e0[S]=e0[_]=e0[C]=e0[w]=e0[T]=e0[R]=e0[z]=e0[B]=e0[L]=!0,e0[m]=e0[y]=e0[P]=!1;var e1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e2=parseFloat,e7=parseInt,e9="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,e3="object"==typeof self&&self&&self.Object===Object&&self,e6=e9||e3||Function("return this")(),e4="object"==typeof t&&t&&!t.nodeType&&t,e8=e4&&"object"==typeof e&&e&&!e.nodeType&&e,e5=e8&&e8.exports===e4,te=e5&&e9.process,tt=function(){try{var e=e8&&e8.require&&e8.require("util").types;if(e)return e;return te&&te.binding&&te.binding("util")}catch(e){}}(),tr=tt&&tt.isArrayBuffer,tn=tt&&tt.isDate,ti=tt&&tt.isMap,to=tt&&tt.isRegExp,ta=tt&&tt.isSet,ts=tt&&tt.isTypedArray;function tl(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function tu(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function tc(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function td(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function tf(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function th(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function tp(e,t){return!!(null==e?0:e.length)&&tC(e,t,0)>-1}function tg(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function tm(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function ty(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tx(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function tv(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function tj(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var tS=tA("length");function tb(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function t_(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return -1}function tC(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t,r):t_(e,tT,r)}function tw(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return -1}function tT(e){return e!=e}function tP(e,t){var r=null==e?0:e.length;return r?tD(e,t)/r:l}function tA(e){return function(t){return null==t?n:t[e]}}function tI(e){return function(t){return null==e?n:e[t]}}function tM(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function tD(e,t){for(var r,i=-1,o=e.length;++i<o;){var a=t(e[i]);n!==a&&(r=n===r?a:r+a)}return r}function tk(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tE(e){return e?e.slice(0,tq(e)+1).replace(ee,""):e}function tO(e){return function(t){return e(t)}}function tR(e,t){return tm(t,function(t){return e[t]})}function tz(e,t){return e.has(t)}function tB(e,t){for(var r=-1,n=e.length;++r<n&&tC(t,e[r],0)>-1;);return r}function tL(e,t){for(var r=e.length;r--&&tC(t,e[r],0)>-1;);return r}var tN=tI({\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"}),tF=tI({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function t$(e){return"\\"+e1[e]}function tW(e){return eq.test(e)}function tG(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tK(e,t){return function(r){return e(t(r))}}function tU(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var s=e[r];(s===t||s===a)&&(e[r]=a,o[i++]=r)}return o}function tV(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tH(e){return tW(e)?function(e){for(var t=eH.lastIndex=0;eH.test(e);)++t;return t}(e):tS(e)}function tY(e){return tW(e)?function(e){return e.match(eH)||[]}(e):e.split("")}function tq(e){for(var t=e.length;t--&&et.test(e.charAt(t)););return t}var tJ=tI({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),tZ=function e(t){var r,et,ex,ev,ej=(t=null==t?e6:tZ.defaults(e6.Object(),t,tZ.pick(e6,eZ))).Array,eS=t.Date,eb=t.Error,e_=t.Function,eC=t.Math,ew=t.Object,eT=t.RegExp,eP=t.String,eA=t.TypeError,eI=ej.prototype,eM=e_.prototype,eD=ew.prototype,ek=t["__core-js_shared__"],eE=eM.toString,eO=eD.hasOwnProperty,eR=0;var ez=(r=/[^.]+$/.exec(ek&&ek.keys&&ek.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",eB=eD.toString,eL=eE.call(ew),eN=e6._,eF=eT("^"+eE.call(eO).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),e$=e5?t.Buffer:n,eW=t.Symbol,eG=t.Uint8Array,eK=e$?e$.allocUnsafe:n,eH=tK(ew.getPrototypeOf,ew),eq=ew.create,e1=eD.propertyIsEnumerable,e9=eI.splice,e3=eW?eW.isConcatSpreadable:n,e4=eW?eW.iterator:n,e8=eW?eW.toStringTag:n,te=function(){try{var e=ib(ew,"defineProperty");return e({},"",{}),e}catch(e){}}(),tt=t.clearTimeout!==e6.clearTimeout&&t.clearTimeout,tS=eS&&eS.now!==e6.Date.now&&eS.now,tI=t.setTimeout!==e6.setTimeout&&t.setTimeout,tQ=eC.ceil,tX=eC.floor,t0=ew.getOwnPropertySymbols,t1=e$?e$.isBuffer:n,t2=t.isFinite,t7=eI.join,t9=tK(ew.keys,ew),t3=eC.max,t6=eC.min,t4=eS.now,t8=t.parseInt,t5=eC.random,re=eI.reverse,rt=ib(t,"DataView"),rr=ib(t,"Map"),rn=ib(t,"Promise"),ri=ib(t,"Set"),ro=ib(t,"WeakMap"),ra=ib(ew,"create"),rs=ro&&new ro,rl={},ru=iY(rt),rc=iY(rr),rd=iY(rn),rf=iY(ri),rh=iY(ro),rp=eW?eW.prototype:n,rg=rp?rp.valueOf:n,rm=rp?rp.toString:n;function ry(e){if(o1(e)&&!oK(e)&&!(e instanceof rS)){if(e instanceof rj)return e;if(eO.call(e,"__wrapped__"))return iq(e)}return new rj(e)}var rx=function(){function e(){}return function(t){if(!o0(t))return{};if(eq)return eq(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function rv(){}function rj(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function rS(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}ry.templateSettings={escape:V,evaluate:H,interpolate:Y,variable:"",imports:{_:ry}},ry.prototype=rv.prototype,ry.prototype.constructor=ry,rj.prototype=rx(rv.prototype),rj.prototype.constructor=rj;function rb(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rS.prototype=rx(rv.prototype),rS.prototype.constructor=rS;function r_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rb.prototype.clear=function(){this.__data__=ra?ra(null):{},this.size=0},rb.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rb.prototype.get=function(e){var t=this.__data__;if(ra){var r=t[e];return r===o?n:r}return eO.call(t,e)?t[e]:n},rb.prototype.has=function(e){var t=this.__data__;return ra?n!==t[e]:eO.call(t,e)},rb.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ra&&n===t?o:t,this};function rC(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}r_.prototype.clear=function(){this.__data__=[],this.size=0},r_.prototype.delete=function(e){var t=this.__data__,r=rE(t,e);return!(r<0)&&(r==t.length-1?t.pop():e9.call(t,r,1),--this.size,!0)},r_.prototype.get=function(e){var t=this.__data__,r=rE(t,e);return r<0?n:t[r][1]},r_.prototype.has=function(e){return rE(this.__data__,e)>-1},r_.prototype.set=function(e,t){var r=this.__data__,n=rE(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function rw(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rC;++t<r;)this.add(e[t])}rC.prototype.clear=function(){this.size=0,this.__data__={hash:new rb,map:new(rr||r_),string:new rb}},rC.prototype.delete=function(e){var t=ij(this,e).delete(e);return this.size-=t?1:0,t},rC.prototype.get=function(e){return ij(this,e).get(e)},rC.prototype.has=function(e){return ij(this,e).has(e)},rC.prototype.set=function(e,t){var r=ij(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function rT(e){var t=this.__data__=new r_(e);this.size=t.size}rw.prototype.add=rw.prototype.push=function(e){return this.__data__.set(e,o),this},rw.prototype.has=function(e){return this.__data__.has(e)};function rP(e,t){var r=oK(e),n=!r&&oG(e),i=!r&&!n&&oY(e),o=!r&&!n&&!i&&o5(e),a=r||n||i||o,s=a?tk(e.length,eP):[],l=s.length;for(var u in e)(t||eO.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||iI(u,l)))&&s.push(u);return s}function rA(e){var t=e.length;return t?e[np(0,t-1)]:n}function rI(e,t){return iU(nY(e),rL(t,0,e.length))}function rM(e){return iU(nY(e))}function rD(e,t,r){(n!==r&&!oF(e[t],r)||n===r&&!(t in e))&&rz(e,t,r)}function rk(e,t,r){var i=e[t];(!(eO.call(e,t)&&oF(i,r))||n===r&&!(t in e))&&rz(e,t,r)}function rE(e,t){for(var r=e.length;r--;)if(oF(e[r][0],t))return r;return -1}function rO(e,t,r,n){return rG(e,function(e,i,o){t(n,e,r(e),o)}),n}function rR(e,t){return e&&nq(t,aS(t),e)}rT.prototype.clear=function(){this.__data__=new r_,this.size=0},rT.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rT.prototype.get=function(e){return this.__data__.get(e)},rT.prototype.has=function(e){return this.__data__.has(e)},rT.prototype.set=function(e,t){var r=this.__data__;if(r instanceof r_){var n=r.__data__;if(!rr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rC(n)}return r.set(e,t),this.size=r.size,this};function rz(e,t,r){"__proto__"==t&&te?te(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rB(e,t){for(var r=-1,i=t.length,o=ej(i),a=null==e;++r<i;)o[r]=a?n:am(e,t[r]);return o}function rL(e,t,r){return e==e&&(n!==r&&(e=e<=r?e:r),n!==t&&(e=e>=t?e:t)),e}function rN(e,t,r,i,o,a){var s,l=1&t,u=2&t,c=4&t;if(r&&(s=o?r(e,i,o,a):r(e)),n!==s)return s;if(!o0(e))return e;var d=oK(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&eO.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return nY(e,s)}else{var h,m,b=iw(e),P=b==y||b==x;if(oY(e))return nW(e,l);if(b==S||b==f||P&&!o){if(s=u||P?{}:iP(e),!l){;return u?function(e,t){return nq(e,iC(e),t)}(e,(h=s,m=e,h&&nq(m,ab(m),h))):function(e,t){return nq(e,i_(e),t)}(e,rR(s,e))}}else{if(!e0[b])return o?e:{};s=function(e,t,r){var n,i,o,a,s,l=e.constructor;switch(t){case A:return nG(e);case p:case g:return new l(+e);case I:;return n=e,i=r?nG(n.buffer):n.buffer,new n.constructor(i,n.byteOffset,n.byteLength);case M:case D:case k:case E:case O:case R:case z:case B:case L:return nK(e,r);case v:return new l;case j:case w:return new l(e);case _:;return(a=new(o=e).constructor(o.source,eu.exec(o))).lastIndex=o.lastIndex,a;case C:return new l;case T:;return s=e,rg?ew(rg.call(s)):{}}}(e,b,l)}}a||(a=new rT);var N=a.get(e);if(N)return N;a.set(e,s),o6(e)?e.forEach(function(n){s.add(rN(n,t,r,n,e,a))}):o2(e)&&e.forEach(function(n,i){s.set(i,rN(n,t,r,i,e,a))});var F=c?u?ig:ip:u?ab:aS,$=d?n:F(e);return tc($||e,function(n,i){$&&(n=e[i=n]),rk(s,i,rN(n,t,r,i,e,a))}),s}function rF(e,t,r){var i=r.length;if(null==e)return!i;for(e=ew(e);i--;){var o=r[i],a=t[o],s=e[o];if(n===s&&!(o in e)||!a(s))return!1}return!0}function r$(e,t,r){if("function"!=typeof e)throw new eA(i);return i$(function(){e.apply(n,r)},t)}function rW(e,t,r,n){var i=-1,o=tp,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=tm(t,tO(r))),n?(o=tg,a=!1):t.length>=200&&(o=tz,a=!1,t=new rw(t));e:for(;++i<s;){var c=e[i],d=null==r?c:r(c);if(c=n||0!==c?c:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else!o(t,d,n)&&l.push(c)}return l}var rG=nQ(rZ),rK=nQ(rQ,!0);function rU(e,t){var r=!0;return rG(e,function(e,n,i){return r=!!t(e,n,i)}),r}function rV(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(n===l?s==s&&!o8(s):r(s,l)))var l=s,u=a}return u}function rH(e,t){var r=[];return rG(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function rY(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=iA),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?rY(s,t-1,r,n,i):ty(i,s):!n&&(i[i.length]=s)}return i}var rq=nX(),rJ=nX(!0);function rZ(e,t){return e&&rq(e,t,aS)}function rQ(e,t){return e&&rJ(e,t,aS)}function rX(e,t){return th(t,function(t){return oZ(e[t])})}function r0(e,t){t=nN(t,e);for(var r=0,i=t.length;null!=e&&r<i;)e=e[iH(t[r++])];return r&&r==i?e:n}function r1(e,t,r){var n=t(e);return oK(e)?n:ty(n,r(e))}function r2(e){return null==e?n===e?"[object Undefined]":"[object Null]":e8&&e8 in ew(e)?function(e){var t=eO.call(e,e8),r=e[e8];try{e[e8]=n;var i=!0}catch(e){}var o=eB.call(e);return i&&(t?e[e8]=r:delete e[e8]),o}(e):function(e){return eB.call(e)}(e)}function r7(e,t){return e>t}function r9(e,t){return null!=e&&eO.call(e,t)}function r3(e,t){return null!=e&&t in ew(e)}function r6(e,t,r){for(var i=r?tg:tp,o=e[0].length,a=e.length,s=a,l=ej(a),u=1/0,c=[];s--;){var d=e[s];s&&t&&(d=tm(d,tO(t))),u=t6(d.length,u),l[s]=!r&&(t||o>=120&&d.length>=120)?new rw(s&&d):n}d=e[0];var f=-1,h=l[0];e:for(;++f<o&&c.length<u;){var p=d[f],g=t?t(p):p;if(p=r||0!==p?p:0,!(h?tz(h,g):i(c,g,r))){for(s=a;--s;){var m=l[s];if(!(m?tz(m,g):i(e[s],g,r)))continue e}h&&h.push(g),c.push(p)}}return c}function r4(e,t,r){t=nN(t,e);var i=null==(e=iL(e,t))?e:e[iH(i6(t))];return null==i?n:tl(i,e,r)}function r8(e){return o1(e)&&r2(e)==f}function r5(e,t,r,i,o){return e===t||(null!=e&&null!=t&&(o1(e)||o1(t))?function(e,t,r,i,o,a){var s=oK(e),l=oK(t),u=s?h:iw(e),c=l?h:iw(t);u=u==f?S:u,c=c==f?S:c;var d=u==S,y=c==S,x=u==c;if(x&&oY(e)){if(!oY(t))return!1;s=!0,d=!1}if(x&&!d)return a||(a=new rT),s||o5(e)?id(e,t,r,i,o,a):function(e,t,r,n,i,o,a){switch(r){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case A:if(e.byteLength!=t.byteLength||!o(new eG(e),new eG(t)))break;return!0;case p:case g:case j:return oF(+e,+t);case m:return e.name==t.name&&e.message==t.message;case _:case w:return e==t+"";case v:var s=tG;case C:var l=1&n;if(s||(s=tV),e.size!=t.size&&!l)break;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var c=id(s(e),s(t),n,i,o,a);return a.delete(e),c;case T:if(rg)return rg.call(e)==rg.call(t)}return!1}(e,t,u,r,i,o,a);if(!(1&r)){var b=d&&eO.call(e,"__wrapped__"),P=y&&eO.call(t,"__wrapped__");if(b||P){var M=b?e.value():e,D=P?t.value():t;return a||(a=new rT),o(M,D,r,i,a)}}return!!x&&(a||(a=new rT),function(e,t,r,i,o,a){var s=1&r,l=ip(e),u=l.length;if(u!=ip(t).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:eO.call(t,d)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++c<u;){var m=e[d=l[c]],y=t[d];if(i)var x=s?i(y,m,d,t,e,a):i(m,y,d,e,t,a);if(!(n===x?m===y||o(m,y,r,i,a):x)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var v=e.constructor,j=t.constructor;v!=j&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof j&&j instanceof j)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,i,o,a))}(e,t,r,i,r5,o):e!=e&&t!=t)}function ne(e,t,r,i){var o=r.length,a=o,s=!i;if(null==e)return!a;for(e=ew(e);o--;){var l=r[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=r[o])[0],c=e[u],d=l[1];if(s&&l[2]){if(n===c&&!(u in e))return!1}else{var f=new rT;if(i)var h=i(c,d,u,e,t,f);if(!(n===h?r5(d,c,3,i,f):h))return!1}}return!0}function nt(e){return!(!o0(e)||function(e){return!!ez&&ez in e}(e))&&(oZ(e)?eF:ef).test(iY(e))}function nr(e){return"function"==typeof e?e:null==e?aH:"object"==typeof e?oK(e)?ns(e[0],e[1]):na(e):a2(e)}function nn(e){if(!iO(e))return t9(e);var t=[];for(var r in ew(e))eO.call(e,r)&&"constructor"!=r&&t.push(r);return t}function ni(e,t){return e<t}function no(e,t){var r=-1,n=oV(e)?ej(e.length):[];return rG(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function na(e){var t=iS(e);return 1==t.length&&t[0][2]?iz(t[0][0],t[0][1]):function(r){return r===e||ne(r,e,t)}}function ns(e,t){return iD(e)&&function(e){return e==e&&!o0(e)}(t)?iz(iH(e),t):function(r){var i=am(r,e);return n===i&&i===t?ay(r,e):r5(t,i,3)}}function nl(e,t,r,i,o){e!==t&&rq(t,function(a,s){if(o||(o=new rT),o0(a))(function(e,t,r,i,o,a,s){var l=iN(e,r),u=iN(t,r),c=s.get(u);if(c){rD(e,r,c);return}var d=a?a(l,u,r+"",e,t,s):n,f=n===d;if(f){var h=oK(u),p=!h&&oY(u),g=!h&&!p&&o5(u);d=u,h||p||g?oK(l)?d=l:oH(l)?d=nY(l):p?(f=!1,d=nW(u,!0)):g?(f=!1,d=nK(u,!0)):d=[]:o9(u)||oG(u)?(d=l,oG(l)?d=as(l):(!o0(l)||oZ(l))&&(d=iP(u))):f=!1}f&&(s.set(u,d),o(d,u,i,a,s),s.delete(u)),rD(e,r,d)})(e,t,s,r,nl,i,o);else{var l=i?i(iN(e,s),a,s+"",e,t,o):n;n===l&&(l=a),rD(e,s,l)}},ab)}function nu(e,t){var r=e.length;if(r)return iI(t+=t<0?r:0,r)?e[t]:n}function nc(e,t,r){t=t.length?tm(t,function(e){return oK(e)?function(t){return r0(t,1===e.length?e[0]:e)}:e}):[aH];var n=-1;return t=tm(t,tO(iv())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(no(e,function(e,r,i){return{criteria:tm(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=nU(i[n],o[n]);if(l){if(n>=s)return l;return l*("desc"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)})}function nd(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=r0(e,a);r(s,a)&&nv(o,nN(a,e),s)}return o}function nf(e,t,r,n){var i=n?tw:tC,o=-1,a=t.length,s=e;for(e===t&&(t=nY(t)),r&&(s=tm(e,tO(r)));++o<a;){for(var l=0,u=t[o],c=r?r(u):u;(l=i(s,c,l,n))>-1;)s!==e&&e9.call(s,l,1),e9.call(e,l,1)}return e}function nh(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;iI(i)?e9.call(e,i,1):nD(e,i)}}return e}function np(e,t){return e+tX(t5()*(t-e+1))}function ng(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do t%2&&(r+=e),(t=tX(t/2))&&(e+=e);while(t);return r}function nm(e,t){return iW(iB(e,t,aH),e+"")}function ny(e){return rA(aM(e))}function nx(e,t){var r=aM(e);return iU(r,rL(t,0,r.length))}function nv(e,t,r,i){if(!o0(e))return e;t=nN(t,e);for(var o=-1,a=t.length,s=a-1,l=e;null!=l&&++o<a;){var u=iH(t[o]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(o!=s){var d=l[u];c=i?i(d,u,l):n,n===c&&(c=o0(d)?d:iI(t[o+1])?[]:{})}rk(l,u,c),l=l[u]}return e}var nj=rs?function(e,t){return rs.set(e,t),e}:aH,nS=te?function(e,t){return te(e,"toString",{configurable:!0,enumerable:!1,value:aK(t),writable:!0})}:aH;function nb(e){return iU(aM(e))}function n_(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=ej(i);++n<i;)o[n]=e[n+t];return o}function nC(e,t){var r;return rG(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function nw(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=c){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!o8(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return nT(e,t,aH,r)}function nT(e,t,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,l=null===t,c=o8(t),d=n===t;o<a;){var f=tX((o+a)/2),h=r(e[f]),p=n!==h,g=null===h,m=h==h,y=o8(h);if(s)var x=i||m;else x=d?m&&(i||p):l?m&&p&&(i||!g):c?m&&p&&!g&&(i||!y):!g&&!y&&(i?h<=t:h<t);x?o=f+1:a=f}return t6(a,u)}function nP(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!oF(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function nA(e){return"number"==typeof e?e:o8(e)?l:+e}function nI(e){if("string"==typeof e)return e;if(oK(e))return tm(e,nI)+"";if(o8(e))return rm?rm.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}function nM(e,t,r){var n=-1,i=tp,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=tg;else if(o>=200){var u=t?null:io(e);if(u)return tV(u);a=!1,i=tz,l=new rw}else l=t?[]:s;e:for(;++n<o;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else!i(l,d,r)&&(l!==s&&l.push(d),s.push(c))}return s}function nD(e,t){return t=nN(t,e),null==(e=iL(e,t))||delete e[iH(i6(t))]}function nk(e,t,r,n){return nv(e,t,r(r0(e,t)),n)}function nE(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?n_(e,n?0:o,n?o+1:i):n_(e,n?o+1:0,n?i:o)}function nO(e,t){var r=e;return r instanceof rS&&(r=r.value()),tx(t,function(e,t){return t.func.apply(t.thisArg,ty([e],t.args))},r)}function nR(e,t,r){var n=e.length;if(n<2)return n?nM(e[0]):[];for(var i=-1,o=ej(n);++i<n;){for(var a=e[i],s=-1;++s<n;)s!=i&&(o[i]=rW(o[i]||a,e[s],t,r))}return nM(rY(o,1),t,r)}function nz(e,t,r){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var l=i<a?t[i]:n;r(s,e[i],l)}return s}function nB(e){return oH(e)?e:[]}function nL(e){return"function"==typeof e?e:aH}function nN(e,t){return oK(e)?e:iD(e,t)?[e]:iV(al(e))}function nF(e,t,r){var i=e.length;return r=n===r?i:r,!t&&r>=i?e:n_(e,t,r)}var n$=tt||function(e){return e6.clearTimeout(e)};function nW(e,t){if(t)return e.slice();var r=e.length,n=eK?eK(r):new e.constructor(r);return e.copy(n),n}function nG(e){var t=new e.constructor(e.byteLength);return new eG(t).set(new eG(e)),t}function nK(e,t){var r=t?nG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nU(e,t){if(e!==t){var r=n!==e,i=null===e,o=e==e,a=o8(e),s=n!==t,l=null===t,u=t==t,c=o8(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!u)return -1}return 0}function nV(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,l=t.length,u=t3(o-a,0),c=ej(l+u),d=!n;++s<l;)c[s]=t[s];for(;++i<a;)(d||i<o)&&(c[r[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function nH(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,l=-1,u=t.length,c=t3(o-s,0),d=ej(c+u),f=!n;++i<c;)d[i]=e[i];for(var h=i;++l<u;)d[h+l]=t[l];for(;++a<s;)(f||i<o)&&(d[h+r[a]]=e[i++]);return d}function nY(e,t){var r=-1,n=e.length;for(t||(t=ej(n));++r<n;)t[r]=e[r];return t}function nq(e,t,r,i){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=i?i(r[l],e[l],l,r,e):n;n===u&&(u=e[l]),o?rz(r,l,u):rk(r,l,u)}return r}function nJ(e,t){return function(r,n){var i=oK(r)?tu:rO,o=t?t():{};return i(r,e,iv(n,2),o)}}function nZ(e){return nm(function(t,r){var i=-1,o=r.length,a=o>1?r[o-1]:n,s=o>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(o--,a):n,s&&iM(r[0],r[1],s)&&(a=o<3?n:a,o=1),t=ew(t);++i<o;){var l=r[i];l&&e(t,l,i,a)}return t})}function nQ(e,t){return function(r,n){if(null==r)return r;if(!oV(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=ew(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function nX(e){return function(t,r,n){for(var i=-1,o=ew(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}function n0(e){return function(t){var r=tW(t=al(t))?tY(t):n,i=r?r[0]:t.charAt(0),o=r?nF(r,1).join(""):t.slice(1);return i[e]()+o}}function n1(e){return function(t){return tx(a$(aE(t).replace(eU,"")),e,"")}}function n2(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rx(e.prototype),n=e.apply(r,t);return o0(n)?n:r}}function n7(e){return function(t,r,i){var o=ew(t);if(!oV(t)){var a=iv(r,3);t=aS(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,i);return s>-1?o[a?t[s]:s]:n}}function n9(e){return ih(function(t){var r=t.length,o=r,a=rj.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new eA(i);if(a&&!l&&"wrapper"==iy(s))var l=new rj([],!0)}for(o=l?o:r;++o<r;){var u=iy(s=t[o]),c="wrapper"==u?im(s):n;l=c&&ik(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[iy(c[0])].apply(l,c[3]):1==s.length&&ik(s)?l[u]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&oK(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}})}function n3(e,t,r,i,o,a,s,l,u,c){var d=128&t,f=1&t,h=2&t,p=24&t,g=512&t,m=h?n:n2(e);return function y(){for(var x=arguments.length,v=ej(x),j=x;j--;)v[j]=arguments[j];if(p)var S=ix(y),b=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(v,S);if(i&&(v=nV(v,i,o,p)),a&&(v=nH(v,a,s,p)),x-=b,p&&x<c){var _=tU(v,S);return ir(e,t,n3,y.placeholder,r,v,_,l,u,c-x)}var C=f?r:this,w=h?C[e]:e;return x=v.length,l?v=function(e,t){for(var r=e.length,i=t6(t.length,r),o=nY(e);i--;){var a=t[i];e[i]=iI(a,r)?o[a]:n}return e}(v,l):g&&x>1&&v.reverse(),d&&u<x&&(v.length=u),this&&this!==e6&&this instanceof y&&(w=m||n2(w)),w.apply(C,v)}}function n6(e,t){return function(r,n){var i,o,a,s;return i=r,o=e,a=t(n),s={},rZ(i,function(e,t,r){o(s,a(e),t,r)}),s}}function n4(e,t){return function(r,i){var o;if(n===r&&n===i)return t;if(n!==r&&(o=r),n!==i){if(n===o)return i;"string"==typeof r||"string"==typeof i?(r=nI(r),i=nI(i)):(r=nA(r),i=nA(i)),o=e(r,i)}return o}}function n8(e){return ih(function(t){return t=tm(t,tO(iv())),nm(function(r){var n=this;return e(t,function(e){return tl(e,n,r)})})})}function n5(e,t){var r=(t=n===t?" ":nI(t)).length;if(r<2)return r?ng(t,e):t;var i=ng(t,tQ(e/tH(t)));return tW(t)?nF(tY(i),0,e).join(""):i.slice(0,e)}function ie(e){return function(t,r,i){return i&&"number"!=typeof i&&iM(t,r,i)&&(r=i=n),t=an(t),n===r?(r=t,t=0):r=an(r),i=n===i?t<r?1:-1:an(i),function(e,t,r,n){for(var i=-1,o=t3(tQ((t-e)/(r||1)),0),a=ej(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,r,i,e)}}function it(e){return function(t,r){return!("string"==typeof t&&"string"==typeof r)&&(t=aa(t),r=aa(r)),e(t,r)}}function ir(e,t,r,i,o,a,s,l,u,c){var d=8&t,f=d?s:n,h=d?n:s,p=d?a:n,g=d?n:a;t|=d?32:64,!(4&(t&=~(d?64:32)))&&(t&=-4);var m=[e,t,o,p,f,g,h,l,u,c],y=r.apply(n,m);return ik(e)&&iF(y,m),y.placeholder=i,iG(y,e,t)}function ii(e){var t=eC[e];return function(e,r){if(e=aa(e),(r=null==r?0:t6(ai(r),292))&&t2(e)){var n=(al(e)+"e").split("e");return+((n=(al(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var io=ri&&1/tV(new ri([,-0]))[1]==s?function(e){return new ri(e)}:aQ;function ia(e){return function(t){var r,n,i,o,a=iw(t);if(a==v)return tG(t);if(a==C){;return n=-1,i=Array((r=t).size),r.forEach(function(e){i[++n]=[e,e]}),i}return o=t,tm(e(t),function(e){return[e,o[e]]})}}function is(e,t,r,o,s,l,u,c){var d=2&t;if(!d&&"function"!=typeof e)throw new eA(i);var f=o?o.length:0;if(!f&&(t&=-97,o=s=n),u=n===u?u:t3(ai(u),0),c=n===c?c:ai(c),f-=s?s.length:0,64&t){var h=o,p=s;o=s=n}var g=d?n:im(e),m=[e,t,r,o,s,h,p,l,u,c];if(g&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,s=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!(o||s))return;1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?nV(u,l,t[4]):l,e[4]=u?tU(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?nH(u,l,t[6]):l,e[6]=u?tU(e[5],a):t[6]),(l=t[7])&&(e[7]=l),128&n&&(e[8]=null==e[8]?t[8]:t6(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(m,g),e=m[0],t=m[1],r=m[2],o=m[3],s=m[4],!(c=m[9]=n===m[9]?d?0:e.length:t3(m[9]-f,0))&&24&t&&(t&=-25),t&&1!=t){;if(8==t||16==t){;y=e,x=t,v=c,j=n2(y),k=function e(){for(var t=arguments.length,r=ej(t),i=t,o=ix(e);i--;)r[i]=arguments[i];var a=t<3&&r[0]!==o&&r[t-1]!==o?[]:tU(r,o);return(t-=a.length)<v?ir(y,x,n3,e.placeholder,n,r,a,n,n,v-t):tl(this&&this!==e6&&this instanceof e?j:y,this,r)}}else if(32!=t&&33!=t||s.length)k=n3.apply(n,m);else{;S=e,b=t,_=r,C=o,w=1&b,T=n2(S),k=function e(){for(var t=-1,r=arguments.length,n=-1,i=C.length,o=ej(i+r),a=this&&this!==e6&&this instanceof e?T:S;++n<i;)o[n]=C[n];for(;r--;)o[n++]=arguments[++t];return tl(a,w?_:this,o)}}}else{var y,x,v,j,S,b,_,C,w,T,P,A,I,M,D,k=(P=e,A=t,I=r,M=1&A,D=n2(P),function e(){return(this&&this!==e6&&this instanceof e?D:P).apply(M?I:this,arguments)})}return iG((g?nj:iF)(k,m),e,t)}function il(e,t,r,i){return n===e||oF(e,eD[r])&&!eO.call(i,r)?t:e}function iu(e,t,r,i,o,a){return o0(e)&&o0(t)&&(a.set(t,e),nl(e,t,n,iu,a),a.delete(t)),e}function ic(e){return o9(e)?n:e}function id(e,t,r,i,o,a){var s=1&r,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&r?new rw:n;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(i)var y=s?i(m,g,f,t,e,a):i(g,m,f,e,t,a);if(n!==y){if(y)continue;h=!1;break}if(p){if(!tj(t,function(e,t){if(!tz(p,t)&&(g===e||o(g,e,r,i,a)))return p.push(t)})){h=!1;break}}else if(!(g===m||o(g,m,r,i,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function ih(e){return iW(iB(e,n,i1),e+"")}function ip(e){return r1(e,aS,i_)}function ig(e){return r1(e,ab,iC)}var im=rs?function(e){return rs.get(e)}:aQ;function iy(e){for(var t=e.name+"",r=rl[t],n=eO.call(rl,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function ix(e){return(eO.call(ry,"placeholder")?ry:e).placeholder}function iv(){var e=ry.iteratee||aY;return e=e===aY?nr:e,arguments.length?e(arguments[0],arguments[1]):e}function ij(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function iS(e){for(var t=aS(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,function(e){return e==e&&!o0(e)}(i)]}return t}function ib(e,t){var r,i,o=(r=e,i=t,null==r?n:r[i]);return nt(o)?o:n}var i_=t0?function(e){return null==e?[]:th(t0(e=ew(e)),function(t){return e1.call(e,t)})}:a3,iC=t0?function(e){for(var t=[];e;)ty(t,i_(e)),e=eH(e);return t}:a3,iw=r2;(rt&&iw(new rt(new ArrayBuffer(1)))!=I||rr&&iw(new rr)!=v||rn&&iw(rn.resolve())!=b||ri&&iw(new ri)!=C||ro&&iw(new ro)!=P)&&(iw=function(e){var t=r2(e),r=t==S?e.constructor:n,i=r?iY(r):"";if(i)switch(i){case ru:return I;case rc:return v;case rd:return b;case rf:return C;case rh:return P}return t});function iT(e,t,r){t=nN(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=iH(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&oX(i)&&iI(a,i)&&(oK(e)||oG(e))}function iP(e){return"function"!=typeof e.constructor||iO(e)?{}:rx(eH(e))}function iA(e){return oK(e)||oG(e)||!!(e3&&e&&e[e3])}function iI(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ep.test(e))&&e>-1&&e%1==0&&e<t}function iM(e,t,r){if(!o0(r))return!1;var n=typeof t;return("number"==n?!!(oV(r)&&iI(t,r.length)):"string"==n&&t in r)&&oF(r[t],e)}function iD(e,t){if(oK(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||o8(e))||J.test(e)||!q.test(e)||null!=t&&e in ew(t)}function ik(e){var t=iy(e),r=ry[t];if("function"!=typeof r||!(t in rS.prototype))return!1;if(e===r)return!0;var n=im(r);return!!n&&e===n[0]}var iE=ek?oZ:a6;function iO(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eD)}function iR(e){return e==e&&!o0(e)}function iz(e,t){return function(r){return null!=r&&r[e]===t&&(n!==t||e in ew(r))}}function iB(e,t,r){return t=t3(n===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=t3(n.length-t,0),a=ej(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=ej(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),tl(e,this,s)}}function iL(e,t){return t.length<2?e:r0(e,n_(t,0,-1))}function iN(e,t){if("constructor"!==t||"function"!=typeof e[t]){if("__proto__"!=t)return e[t]}}var iF=iK(nj),i$=tI||function(e,t){return e6.setTimeout(e,t)},iW=iK(nS);function iG(e,t,r){var n,i=t+"";return iW(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(er,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return tc(d,function(r){var n="_."+r[0];t&r[1]&&!tp(e,n)&&e.push(n)}),e.sort()}((n=i.match(en))?n[1].split(ei):[],r)))}function iK(e){var t=0,r=0;return function(){var i=t4(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function iU(e,t){var r=-1,i=e.length,o=i-1;for(t=n===t?i:t;++r<t;){var a=np(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var iV=(ex=(et=oO(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Z,function(e,r,n,i){t.push(n?i.replace(es,"$1"):r||e)}),t},function(e){return 500===ex.size&&ex.clear(),e})).cache,et);function iH(e){if("string"==typeof e||o8(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function iY(e){if(null!=e){try{return eE.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function iq(e){if(e instanceof rS)return e.clone();var t=new rj(e.__wrapped__,e.__chain__);return t.__actions__=nY(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iJ=nm(function(e,t){return oH(e)?rW(e,rY(t,1,oH,!0)):[]}),iZ=nm(function(e,t){var r=i6(t);return oH(r)&&(r=n),oH(e)?rW(e,rY(t,1,oH,!0),iv(r,2)):[]}),iQ=nm(function(e,t){var r=i6(t);return oH(r)&&(r=n),oH(e)?rW(e,rY(t,1,oH,!0),n,r):[]});function iX(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:ai(r);return i<0&&(i=t3(n+i,0)),t_(e,iv(t,3),i)}function i0(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var o=i-1;return n!==r&&(o=ai(r),o=r<0?t3(i+o,0):t6(o,i-1)),t_(e,iv(t,3),o,!0)}function i1(e){return(null==e?0:e.length)?rY(e,1):[]}function i2(e){return e&&e.length?e[0]:n}var i7=nm(function(e){var t=tm(e,nB);return t.length&&t[0]===e[0]?r6(t):[]}),i9=nm(function(e){var t=i6(e),r=tm(e,nB);return t===i6(r)?t=n:r.pop(),r.length&&r[0]===e[0]?r6(r,iv(t,2)):[]}),i3=nm(function(e){var t=i6(e),r=tm(e,nB);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?r6(r,n,t):[]});function i6(e){var t=null==e?0:e.length;return t?e[t-1]:n}var i4=nm(i8);function i8(e,t){return e&&e.length&&t&&t.length?nf(e,t):e}var i5=ih(function(e,t){var r=null==e?0:e.length,n=rB(e,t);return nh(e,tm(t,function(e){return iI(e,r)?+e:e}).sort(nU)),n});function oe(e){return null==e?e:re.call(e)}var ot=nm(function(e){return nM(rY(e,1,oH,!0))}),or=nm(function(e){var t=i6(e);return oH(t)&&(t=n),nM(rY(e,1,oH,!0),iv(t,2))}),on=nm(function(e){var t=i6(e);return t="function"==typeof t?t:n,nM(rY(e,1,oH,!0),n,t)});function oi(e){if(!(e&&e.length))return[];var t=0;return e=th(e,function(e){if(oH(e))return t=t3(e.length,t),!0}),tk(t,function(t){return tm(e,tA(t))})}function oo(e,t){if(!(e&&e.length))return[];var r=oi(e);return null==t?r:tm(r,function(e){return tl(t,n,e)})}var oa=nm(function(e,t){return oH(e)?rW(e,t):[]}),os=nm(function(e){return nR(th(e,oH))}),ol=nm(function(e){var t=i6(e);return oH(t)&&(t=n),nR(th(e,oH),iv(t,2))}),ou=nm(function(e){var t=i6(e);return t="function"==typeof t?t:n,nR(th(e,oH),n,t)}),oc=nm(oi),od=nm(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,oo(e,r)});function of(e){var t=ry(e);return t.__chain__=!0,t}function oh(e,t){return t(e)}var op=ih(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return rB(t,e)};return!(t>1)&&!this.__actions__.length&&i instanceof rS&&iI(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:oh,args:[o],thisArg:n}),new rj(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(o)}),og=nJ(function(e,t,r){eO.call(e,r)?++e[r]:rz(e,r,1)}),om=n7(iX),oy=n7(i0);function ox(e,t){return(oK(e)?tc:rG)(e,iv(t,3))}function ov(e,t){return(oK(e)?td:rK)(e,iv(t,3))}var oj=nJ(function(e,t,r){eO.call(e,r)?e[r].push(t):rz(e,r,[t])}),oS=nm(function(e,t,r){var n=-1,i="function"==typeof t,o=oV(e)?ej(e.length):[];return rG(e,function(e){o[++n]=i?tl(t,e,r):r4(e,t,r)}),o}),ob=nJ(function(e,t,r){rz(e,r,t)});function o_(e,t){return(oK(e)?tm:no)(e,iv(t,3))}var oC=nJ(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),ow=nm(function(e,t){if(null==e)return[];var r=t.length;return r>1&&iM(e,t[0],t[1])?t=[]:r>2&&iM(t[0],t[1],t[2])&&(t=[t[0]]),nc(e,rY(t,1),[])}),oT=tS||function(){return e6.Date.now()};function oP(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,is(e,128,n,n,n,n,t)}function oA(e,t){var r;if("function"!=typeof t)throw new eA(i);return e=ai(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var oI=nm(function(e,t,r){var n=1;if(r.length){var i=tU(r,ix(oI));n|=32}return is(e,n,t,r,i)}),oM=nm(function(e,t,r){var n=3;if(r.length){var i=tU(r,ix(oM));n|=32}return is(t,n,e,r,i)});function oD(e,t,r){var o,a,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new eA(i);function g(t){var r=o,i=a;return o=a=n,d=t,l=e.apply(i,r)}t=aa(t)||0,o0(r)&&(f=!!r.leading,s=(h="maxWait"in r)?t3(aa(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p);function m(e){var r=e-c,i=e-d;return n===c||r>=t||r<0||h&&i>=s}function y(){var e,r,n,i,o=oT();if(m(o))return x(o);u=i$(y,(r=(e=o)-c,n=e-d,i=t-r,h?t6(i,s-n):i))}function x(e){return(u=n,p&&o)?g(e):(o=a=n,l)}function v(){var e,r=oT(),i=m(r);if(o=arguments,a=this,c=r,i){if(n===u){;return d=e=c,u=i$(y,t),f?g(e):l}if(h)return n$(u),u=i$(y,t),g(c)}return n===u&&(u=i$(y,t)),l}return v.cancel=function(){n!==u&&n$(u),d=0,o=c=a=u=n},v.flush=function(){return n===u?l:x(oT())},v}var ok=nm(function(e,t){return r$(e,1,t)}),oE=nm(function(e,t,r){return r$(e,aa(t)||0,r)});function oO(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new eA(i);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(oO.Cache||rC),r}function oR(e){if("function"!=typeof e)throw new eA(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}oO.Cache=rC;var oz=nm(function(e,t){var r=(t=1==t.length&&oK(t[0])?tm(t[0],tO(iv())):tm(rY(t,1),tO(iv()))).length;return nm(function(n){for(var i=-1,o=t6(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return tl(e,this,n)})}),oB=nm(function(e,t){var r=tU(t,ix(oB));return is(e,32,n,t,r)}),oL=nm(function(e,t){var r=tU(t,ix(oL));return is(e,64,n,t,r)}),oN=ih(function(e,t){return is(e,256,n,n,n,t)});function oF(e,t){return e===t||e!=e&&t!=t}var o$=it(r7),oW=it(function(e,t){return e>=t}),oG=r8(function(){return arguments}())?r8:function(e){return o1(e)&&eO.call(e,"callee")&&!e1.call(e,"callee")},oK=ej.isArray,oU=tr?tO(tr):function(e){return o1(e)&&r2(e)==A};function oV(e){return null!=e&&oX(e.length)&&!oZ(e)}function oH(e){return o1(e)&&oV(e)}var oY=t1||a6,oq=tn?tO(tn):function(e){return o1(e)&&r2(e)==g};function oJ(e){if(!o1(e))return!1;var t=r2(e);return t==m||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o9(e)}function oZ(e){if(!o0(e))return!1;var t=r2(e);return t==y||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function oQ(e){return"number"==typeof e&&e==ai(e)}function oX(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function o0(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function o1(e){return null!=e&&"object"==typeof e}var o2=ti?tO(ti):function(e){return o1(e)&&iw(e)==v};function o7(e){return"number"==typeof e||o1(e)&&r2(e)==j}function o9(e){if(!o1(e)||r2(e)!=S)return!1;var t=eH(e);if(null===t)return!0;var r=eO.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eE.call(r)==eL}var o3=to?tO(to):function(e){return o1(e)&&r2(e)==_},o6=ta?tO(ta):function(e){return o1(e)&&iw(e)==C};function o4(e){return"string"==typeof e||!oK(e)&&o1(e)&&r2(e)==w}function o8(e){return"symbol"==typeof e||o1(e)&&r2(e)==T}var o5=ts?tO(ts):function(e){return o1(e)&&oX(e.length)&&!!eX[r2(e)]},ae=it(ni),at=it(function(e,t){return e<=t});function ar(e){if(!e)return[];if(oV(e))return o4(e)?tY(e):nY(e);if(e4&&e[e4])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[e4]());var t=iw(e);return(t==v?tG:t==C?tV:aM)(e)}function an(e){return e?(e=aa(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function ai(e){var t=an(e),r=t%1;return t==t?r?t-r:t:0}function ao(e){return e?rL(ai(e),0,4294967295):0}function aa(e){if("number"==typeof e)return e;if(o8(e))return l;if(o0(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o0(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tE(e);var r=ed.test(e);return r||eh.test(e)?e7(e.slice(2),r?2:8):ec.test(e)?l:+e}function as(e){return nq(e,ab(e))}function al(e){return null==e?"":nI(e)}var au=nZ(function(e,t){if(iO(t)||oV(t)){nq(t,aS(t),e);return}for(var r in t)eO.call(t,r)&&rk(e,r,t[r])}),ac=nZ(function(e,t){nq(t,ab(t),e)}),ad=nZ(function(e,t,r,n){nq(t,ab(t),e,n)}),af=nZ(function(e,t,r,n){nq(t,aS(t),e,n)}),ah=ih(rB),ap=nm(function(e,t){e=ew(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&iM(t[0],t[1],o)&&(i=1);++r<i;){for(var a=t[r],s=ab(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(n===d||oF(d,eD[c])&&!eO.call(e,c))&&(e[c]=a[c])}}return e}),ag=nm(function(e){return e.push(n,iu),tl(aC,n,e)});function am(e,t,r){var i=null==e?n:r0(e,t);return n===i?r:i}function ay(e,t){return null!=e&&iT(e,t,r3)}var ax=n6(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=eB.call(t)),e[t]=r},aK(aH)),av=n6(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=eB.call(t)),eO.call(e,t)?e[t].push(r):e[t]=[r]},iv),aj=nm(r4);function aS(e){return oV(e)?rP(e):nn(e)}function ab(e){return oV(e)?rP(e,!0):function(e){if(!o0(e))return function(e){var t=[];if(null!=e)for(var r in ew(e))t.push(r);return t}(e);var t=iO(e),r=[];for(var n in e)!("constructor"==n&&(t||!eO.call(e,n)))&&r.push(n);return r}(e)}var a_=nZ(function(e,t,r){nl(e,t,r)}),aC=nZ(function(e,t,r,n){nl(e,t,r,n)}),aw=ih(function(e,t){var r={};if(null==e)return r;var n=!1;t=tm(t,function(t){return t=nN(t,e),n||(n=t.length>1),t}),nq(e,ig(e),r),n&&(r=rN(r,7,ic));for(var i=t.length;i--;)nD(r,t[i]);return r}),aT=ih(function(e,t){var r;return null==e?{}:nd(r=e,t,function(e,t){return ay(r,t)})});function aP(e,t){if(null==e)return{};var r=tm(ig(e),function(e){return[e]});return t=iv(t),nd(e,r,function(e,r){return t(e,r[0])})}var aA=ia(aS),aI=ia(ab);function aM(e){return null==e?[]:tR(e,aS(e))}var aD=n1(function(e,t,r){return t=t.toLowerCase(),e+(r?ak(t):t)});function ak(e){return aF(al(e).toLowerCase())}function aE(e){return(e=al(e))&&e.replace(eg,tN).replace(eV,"")}var aO=n1(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),aR=n1(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),az=n0("toLowerCase"),aB=n1(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),aL=n1(function(e,t,r){return e+(r?" ":"")+aF(t)}),aN=n1(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),aF=n0("toUpperCase");function a$(e,t,r){if(e=al(e),t=r?n:t,n===t){var i;return(i=e,eJ.test(i))?e.match(eY)||[]:e.match(eo)||[]}return e.match(t)||[]}var aW=nm(function(e,t){try{return tl(e,n,t)}catch(e){return oJ(e)?e:new eb(e)}}),aG=ih(function(e,t){return tc(t,function(t){rz(e,t=iH(t),oI(e[t],e))}),e});function aK(e){return function(){return e}}var aU=n9(),aV=n9(!0);function aH(e){return e}function aY(e){return nr("function"==typeof e?e:rN(e,1))}var aq=nm(function(e,t){return function(r){return r4(r,e,t)}}),aJ=nm(function(e,t){return function(r){return r4(e,r,t)}});function aZ(e,t,r){var n=aS(t),i=rX(t,n);null==r&&!(o0(t)&&(i.length||!n.length))&&(r=t,t=e,e=this,i=rX(t,aS(t)));var o=!(o0(r)&&"chain"in r)||!!r.chain,a=oZ(e);return tc(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=nY(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,ty([this.value()],arguments))})}),e}function aQ(){}var aX=n8(tm),a0=n8(tf),a1=n8(tj);function a2(e){var t;return iD(e)?tA(iH(e)):(t=e,function(e){return r0(e,t)})}var a7=ie(),a9=ie(!0);function a3(){return[]}function a6(){return!1}var a4=n4(function(e,t){return e+t},0),a8=ii("ceil"),a5=n4(function(e,t){return e/t},1),se=ii("floor"),st=n4(function(e,t){return e*t},1),sr=ii("round"),sn=n4(function(e,t){return e-t},0);return ry.after=function(e,t){if("function"!=typeof t)throw new eA(i);return e=ai(e),function(){if(--e<1)return t.apply(this,arguments)}},ry.ary=oP,ry.assign=au,ry.assignIn=ac,ry.assignInWith=ad,ry.assignWith=af,ry.at=ah,ry.before=oA,ry.bind=oI,ry.bindAll=aG,ry.bindKey=oM,ry.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return oK(e)?e:[e]},ry.chain=of,ry.chunk=function(e,t,r){t=(r?iM(e,t,r):n===t)?1:t3(ai(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=ej(tQ(i/t));o<i;)s[a++]=n_(e,o,o+=t);return s},ry.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},ry.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ej(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return ty(oK(r)?nY(r):[r],rY(t,1))},ry.cond=function(e){var t=null==e?0:e.length,r=iv();return e=t?tm(e,function(e){if("function"!=typeof e[1])throw new eA(i);return[r(e[0]),e[1]]}):[],nm(function(r){for(var n=-1;++n<t;){var i=e[n];if(tl(i[0],this,r))return tl(i[1],this,r)}})},ry.conforms=function(e){var t,r;return r=aS(t=rN(e,1)),function(e){return rF(e,t,r)}},ry.constant=aK,ry.countBy=og,ry.create=function(e,t){var r=rx(e);return null==t?r:rR(r,t)},ry.curry=function e(t,r,i){r=i?n:r;var o=is(t,8,n,n,n,n,n,r);return o.placeholder=e.placeholder,o},ry.curryRight=function e(t,r,i){r=i?n:r;var o=is(t,16,n,n,n,n,n,r);return o.placeholder=e.placeholder,o},ry.debounce=oD,ry.defaults=ap,ry.defaultsDeep=ag,ry.defer=ok,ry.delay=oE,ry.difference=iJ,ry.differenceBy=iZ,ry.differenceWith=iQ,ry.drop=function(e,t,r){var i=null==e?0:e.length;return i?n_(e,(t=r||n===t?1:ai(t))<0?0:t,i):[]},ry.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?n_(e,0,(t=i-(t=r||n===t?1:ai(t)))<0?0:t):[]},ry.dropRightWhile=function(e,t){return e&&e.length?nE(e,iv(t,3),!0,!0):[]},ry.dropWhile=function(e,t){return e&&e.length?nE(e,iv(t,3),!0):[]},ry.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&iM(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=ai(r))<0&&(r=-r>o?0:o+r),(i=n===i||i>o?o:ai(i))<0&&(i+=o),i=r>i?0:ao(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},ry.filter=function(e,t){return(oK(e)?th:rH)(e,iv(t,3))},ry.flatMap=function(e,t){return rY(o_(e,t),1)},ry.flatMapDeep=function(e,t){return rY(o_(e,t),s)},ry.flatMapDepth=function(e,t,r){return r=n===r?1:ai(r),rY(o_(e,t),r)},ry.flatten=i1,ry.flattenDeep=function(e){return(null==e?0:e.length)?rY(e,s):[]},ry.flattenDepth=function(e,t){return(null==e?0:e.length)?rY(e,t=n===t?1:ai(t)):[]},ry.flip=function(e){return is(e,512)},ry.flow=aU,ry.flowRight=aV,ry.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},ry.functions=function(e){return null==e?[]:rX(e,aS(e))},ry.functionsIn=function(e){return null==e?[]:rX(e,ab(e))},ry.groupBy=oj,ry.initial=function(e){return(null==e?0:e.length)?n_(e,0,-1):[]},ry.intersection=i7,ry.intersectionBy=i9,ry.intersectionWith=i3,ry.invert=ax,ry.invertBy=av,ry.invokeMap=oS,ry.iteratee=aY,ry.keyBy=ob,ry.keys=aS,ry.keysIn=ab,ry.map=o_,ry.mapKeys=function(e,t){var r={};return t=iv(t,3),rZ(e,function(e,n,i){rz(r,t(e,n,i),e)}),r},ry.mapValues=function(e,t){var r={};return t=iv(t,3),rZ(e,function(e,n,i){rz(r,n,t(e,n,i))}),r},ry.matches=function(e){return na(rN(e,1))},ry.matchesProperty=function(e,t){return ns(e,rN(t,1))},ry.memoize=oO,ry.merge=a_,ry.mergeWith=aC,ry.method=aq,ry.methodOf=aJ,ry.mixin=aZ,ry.negate=oR,ry.nthArg=function(e){return e=ai(e),nm(function(t){return nu(t,e)})},ry.omit=aw,ry.omitBy=function(e,t){return aP(e,oR(iv(t)))},ry.once=function(e){return oA(2,e)},ry.orderBy=function(e,t,r,i){return null==e?[]:(!oK(t)&&(t=null==t?[]:[t]),!oK(r=i?n:r)&&(r=null==r?[]:[r]),nc(e,t,r))},ry.over=aX,ry.overArgs=oz,ry.overEvery=a0,ry.overSome=a1,ry.partial=oB,ry.partialRight=oL,ry.partition=oC,ry.pick=aT,ry.pickBy=aP,ry.property=a2,ry.propertyOf=function(e){return function(t){return null==e?n:r0(e,t)}},ry.pull=i4,ry.pullAll=i8,ry.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?nf(e,t,iv(r,2)):e},ry.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?nf(e,t,n,r):e},ry.pullAt=i5,ry.range=a7,ry.rangeRight=a9,ry.rearg=oN,ry.reject=function(e,t){return(oK(e)?th:rH)(e,oR(iv(t,3)))},ry.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],o=e.length;for(t=iv(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return nh(e,i),r},ry.rest=function(e,t){if("function"!=typeof e)throw new eA(i);return nm(e,t=n===t?t:ai(t))},ry.reverse=oe,ry.sampleSize=function(e,t,r){return t=(r?iM(e,t,r):n===t)?1:ai(t),(oK(e)?rI:nx)(e,t)},ry.set=function(e,t,r){return null==e?e:nv(e,t,r)},ry.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:nv(e,t,r,i)},ry.shuffle=function(e){return(oK(e)?rM:nb)(e)},ry.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&iM(e,t,r)?(t=0,r=i):(t=null==t?0:ai(t),r=n===r?i:ai(r)),n_(e,t,r)):[]},ry.sortBy=ow,ry.sortedUniq=function(e){return e&&e.length?nP(e):[]},ry.sortedUniqBy=function(e,t){return e&&e.length?nP(e,iv(t,2)):[]},ry.split=function(e,t,r){return(r&&"number"!=typeof r&&iM(e,t,r)&&(t=r=n),r=n===r?4294967295:r>>>0)?(e=al(e))&&("string"==typeof t||null!=t&&!o3(t))&&!(t=nI(t))&&tW(e)?nF(tY(e),0,r):e.split(t,r):[]},ry.spread=function(e,t){if("function"!=typeof e)throw new eA(i);return t=null==t?0:t3(ai(t),0),nm(function(r){var n=r[t],i=nF(r,0,t);return n&&ty(i,n),tl(e,this,i)})},ry.tail=function(e){var t=null==e?0:e.length;return t?n_(e,1,t):[]},ry.take=function(e,t,r){return e&&e.length?n_(e,0,(t=r||n===t?1:ai(t))<0?0:t):[]},ry.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?n_(e,(t=i-(t=r||n===t?1:ai(t)))<0?0:t,i):[]},ry.takeRightWhile=function(e,t){return e&&e.length?nE(e,iv(t,3),!1,!0):[]},ry.takeWhile=function(e,t){return e&&e.length?nE(e,iv(t,3)):[]},ry.tap=function(e,t){return t(e),e},ry.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new eA(i);return o0(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),oD(e,t,{leading:n,maxWait:t,trailing:o})},ry.thru=oh,ry.toArray=ar,ry.toPairs=aA,ry.toPairsIn=aI,ry.toPath=function(e){return oK(e)?tm(e,iH):o8(e)?[e]:nY(iV(al(e)))},ry.toPlainObject=as,ry.transform=function(e,t,r){var n=oK(e),i=n||oY(e)||o5(e);if(t=iv(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:o0(e)?oZ(o)?rx(eH(e)):{}:{}}return(i?tc:rZ)(e,function(e,n,i){return t(r,e,n,i)}),r},ry.unary=function(e){return oP(e,1)},ry.union=ot,ry.unionBy=or,ry.unionWith=on,ry.uniq=function(e){return e&&e.length?nM(e):[]},ry.uniqBy=function(e,t){return e&&e.length?nM(e,iv(t,2)):[]},ry.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?nM(e,n,t):[]},ry.unset=function(e,t){return null==e||nD(e,t)},ry.unzip=oi,ry.unzipWith=oo,ry.update=function(e,t,r){return null==e?e:nk(e,t,nL(r))},ry.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:nk(e,t,nL(r),i)},ry.values=aM,ry.valuesIn=function(e){return null==e?[]:tR(e,ab(e))},ry.without=oa,ry.words=a$,ry.wrap=function(e,t){return oB(nL(t),e)},ry.xor=os,ry.xorBy=ol,ry.xorWith=ou,ry.zip=oc,ry.zipObject=function(e,t){return nz(e||[],t||[],rk)},ry.zipObjectDeep=function(e,t){return nz(e||[],t||[],nv)},ry.zipWith=od,ry.entries=aA,ry.entriesIn=aI,ry.extend=ac,ry.extendWith=ad,aZ(ry,ry),ry.add=a4,ry.attempt=aW,ry.camelCase=aD,ry.capitalize=ak,ry.ceil=a8,ry.clamp=function(e,t,r){return n===r&&(r=t,t=n),n!==r&&(r=(r=aa(r))==r?r:0),n!==t&&(t=(t=aa(t))==t?t:0),rL(aa(e),t,r)},ry.clone=function(e){return rN(e,4)},ry.cloneDeep=function(e){return rN(e,5)},ry.cloneDeepWith=function(e,t){return rN(e,5,t="function"==typeof t?t:n)},ry.cloneWith=function(e,t){return rN(e,4,t="function"==typeof t?t:n)},ry.conformsTo=function(e,t){return null==t||rF(e,t,aS(t))},ry.deburr=aE,ry.defaultTo=function(e,t){return null==e||e!=e?t:e},ry.divide=a5,ry.endsWith=function(e,t,r){e=al(e),t=nI(t);var i=e.length,o=r=n===r?i:rL(ai(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},ry.eq=oF,ry.escape=function(e){return(e=al(e))&&U.test(e)?e.replace(G,tF):e},ry.escapeRegExp=function(e){return(e=al(e))&&X.test(e)?e.replace(Q,"\\$&"):e},ry.every=function(e,t,r){var i=oK(e)?tf:rU;return r&&iM(e,t,r)&&(t=n),i(e,iv(t,3))},ry.find=om,ry.findIndex=iX,ry.findKey=function(e,t){return tb(e,iv(t,3),rZ)},ry.findLast=oy,ry.findLastIndex=i0,ry.findLastKey=function(e,t){return tb(e,iv(t,3),rQ)},ry.floor=se,ry.forEach=ox,ry.forEachRight=ov,ry.forIn=function(e,t){return null==e?e:rq(e,iv(t,3),ab)},ry.forInRight=function(e,t){return null==e?e:rJ(e,iv(t,3),ab)},ry.forOwn=function(e,t){return e&&rZ(e,iv(t,3))},ry.forOwnRight=function(e,t){return e&&rQ(e,iv(t,3))},ry.get=am,ry.gt=o$,ry.gte=oW,ry.has=function(e,t){return null!=e&&iT(e,t,r9)},ry.hasIn=ay,ry.head=i2,ry.identity=aH,ry.includes=function(e,t,r,n){e=oV(e)?e:aM(e),r=r&&!n?ai(r):0;var i=e.length;return r<0&&(r=t3(i+r,0)),o4(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&tC(e,t,r)>-1},ry.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:ai(r);return i<0&&(i=t3(n+i,0)),tC(e,t,i)},ry.inRange=function(e,t,r){var i,o,a;return t=an(t),n===r?(r=t,t=0):r=an(r),(i=e=aa(e))>=t6(o=t,a=r)&&i<t3(o,a)},ry.invoke=aj,ry.isArguments=oG,ry.isArray=oK,ry.isArrayBuffer=oU,ry.isArrayLike=oV,ry.isArrayLikeObject=oH,ry.isBoolean=function(e){return!0===e||!1===e||o1(e)&&r2(e)==p},ry.isBuffer=oY,ry.isDate=oq,ry.isElement=function(e){return o1(e)&&1===e.nodeType&&!o9(e)},ry.isEmpty=function(e){if(null==e)return!0;if(oV(e)&&(oK(e)||"string"==typeof e||"function"==typeof e.splice||oY(e)||o5(e)||oG(e)))return!e.length;var t=iw(e);if(t==v||t==C)return!e.size;if(iO(e))return!nn(e).length;for(var r in e)if(eO.call(e,r))return!1;return!0},ry.isEqual=function(e,t){return r5(e,t)},ry.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return n===i?r5(e,t,n,r):!!i},ry.isError=oJ,ry.isFinite=function(e){return"number"==typeof e&&t2(e)},ry.isFunction=oZ,ry.isInteger=oQ,ry.isLength=oX,ry.isMap=o2,ry.isMatch=function(e,t){return e===t||ne(e,t,iS(t))},ry.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,ne(e,t,iS(t),r)},ry.isNaN=function(e){return o7(e)&&e!=+e},ry.isNative=function(e){if(iE(e))throw new eb("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return nt(e)},ry.isNil=function(e){return null==e},ry.isNull=function(e){return null===e},ry.isNumber=o7,ry.isObject=o0,ry.isObjectLike=o1,ry.isPlainObject=o9,ry.isRegExp=o3,ry.isSafeInteger=function(e){return oQ(e)&&e>=-9007199254740991&&e<=9007199254740991},ry.isSet=o6,ry.isString=o4,ry.isSymbol=o8,ry.isTypedArray=o5,ry.isUndefined=function(e){return n===e},ry.isWeakMap=function(e){return o1(e)&&iw(e)==P},ry.isWeakSet=function(e){return o1(e)&&"[object WeakSet]"==r2(e)},ry.join=function(e,t){return null==e?"":t7.call(e,t)},ry.kebabCase=aO,ry.last=i6,ry.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var o=i;return n!==r&&(o=(o=ai(r))<0?t3(i+o,0):t6(o,i-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,o):t_(e,tT,o,!0)},ry.lowerCase=aR,ry.lowerFirst=az,ry.lt=ae,ry.lte=at,ry.max=function(e){return e&&e.length?rV(e,aH,r7):n},ry.maxBy=function(e,t){return e&&e.length?rV(e,iv(t,2),r7):n},ry.mean=function(e){return tP(e,aH)},ry.meanBy=function(e,t){return tP(e,iv(t,2))},ry.min=function(e){return e&&e.length?rV(e,aH,ni):n},ry.minBy=function(e,t){return e&&e.length?rV(e,iv(t,2),ni):n},ry.stubArray=a3,ry.stubFalse=a6,ry.stubObject=function(){return{}},ry.stubString=function(){return""},ry.stubTrue=function(){return!0},ry.multiply=st,ry.nth=function(e,t){return e&&e.length?nu(e,ai(t)):n},ry.noConflict=function(){return e6._===this&&(e6._=eN),this},ry.noop=aQ,ry.now=oT,ry.pad=function(e,t,r){e=al(e);var n=(t=ai(t))?tH(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return n5(tX(i),r)+e+n5(tQ(i),r)},ry.padEnd=function(e,t,r){e=al(e);var n=(t=ai(t))?tH(e):0;return t&&n<t?e+n5(t-n,r):e},ry.padStart=function(e,t,r){e=al(e);var n=(t=ai(t))?tH(e):0;return t&&n<t?n5(t-n,r)+e:e},ry.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),t8(al(e).replace(ee,""),t||0)},ry.random=function(e,t,r){if(r&&"boolean"!=typeof r&&iM(e,t,r)&&(t=r=n),n===r&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),n===e&&n===t?(e=0,t=1):(e=an(e),n===t?(t=e,e=0):t=an(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=t5();return t6(e+o*(t-e+e2("1e-"+((o+"").length-1))),t)}return np(e,t)},ry.reduce=function(e,t,r){var n=oK(e)?tx:tM,i=arguments.length<3;return n(e,iv(t,4),r,i,rG)},ry.reduceRight=function(e,t,r){var n=oK(e)?tv:tM,i=arguments.length<3;return n(e,iv(t,4),r,i,rK)},ry.repeat=function(e,t,r){return t=(r?iM(e,t,r):n===t)?1:ai(t),ng(al(e),t)},ry.replace=function(){var e=arguments,t=al(e[0]);return e.length<3?t:t.replace(e[1],e[2])},ry.result=function(e,t,r){t=nN(t,e);var i=-1,o=t.length;for(!o&&(o=1,e=n);++i<o;){var a=null==e?n:e[iH(t[i])];n===a&&(i=o,a=r),e=oZ(a)?a.call(e):a}return e},ry.round=sr,ry.runInContext=e,ry.sample=function(e){return(oK(e)?rA:ny)(e)},ry.size=function(e){if(null==e)return 0;if(oV(e))return o4(e)?tH(e):e.length;var t=iw(e);return t==v||t==C?e.size:nn(e).length},ry.snakeCase=aB,ry.some=function(e,t,r){var i=oK(e)?tj:nC;return r&&iM(e,t,r)&&(t=n),i(e,iv(t,3))},ry.sortedIndex=function(e,t){return nw(e,t)},ry.sortedIndexBy=function(e,t,r){return nT(e,t,iv(r,2))},ry.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=nw(e,t);if(n<r&&oF(e[n],t))return n}return -1},ry.sortedLastIndex=function(e,t){return nw(e,t,!0)},ry.sortedLastIndexBy=function(e,t,r){return nT(e,t,iv(r,2),!0)},ry.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=nw(e,t,!0)-1;if(oF(e[r],t))return r}return -1},ry.startCase=aL,ry.startsWith=function(e,t,r){return e=al(e),r=null==r?0:rL(ai(r),0,e.length),t=nI(t),e.slice(r,r+t.length)==t},ry.subtract=sn,ry.sum=function(e){return e&&e.length?tD(e,aH):0},ry.sumBy=function(e,t){return e&&e.length?tD(e,iv(t,2)):0},ry.template=function(e,t,r){var i=ry.templateSettings;r&&iM(e,t,r)&&(t=n),e=al(e),t=ad({},t,i,il);var o=ad({},t.imports,i.imports,il),a=aS(o),s=tR(o,a),l,u,c=0,d=t.interpolate||em,f="__p += '",h=eT((t.escape||em).source+"|"+d.source+"|"+(d===Y?el:em).source+"|"+(t.evaluate||em).source+"|$","g"),p="//# sourceURL="+(eO.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eQ+"]")+"\n";e.replace(h,function(t,r,n,i,o,a){return n||(n=i),f+=e.slice(c,a).replace(ey,t$),r&&(l=!0,f+="' +\n__e("+r+") +\n'"),o&&(u=!0,f+="';\n"+o+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=a+t.length,t}),f+="';\n";var g=eO.call(t,"variable")&&t.variable;if(g){if(ea.test(g))throw new eb("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(u?f.replace(N,""):f).replace(F,"$1").replace($,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=aW(function(){return e_(a,p+"return "+f).apply(n,s)});if(m.source=f,oJ(m))throw m;return m},ry.times=function(e,t){if((e=ai(e))<1||e>9007199254740991)return[];var r=4294967295,n=t6(e,4294967295);t=iv(t),e-=4294967295;for(var i=tk(n,t);++r<e;)t(r);return i},ry.toFinite=an,ry.toInteger=ai,ry.toLength=ao,ry.toLower=function(e){return al(e).toLowerCase()},ry.toNumber=aa,ry.toSafeInteger=function(e){return e?rL(ai(e),-9007199254740991,9007199254740991):0===e?e:0},ry.toString=al,ry.toUpper=function(e){return al(e).toUpperCase()},ry.trim=function(e,t,r){if((e=al(e))&&(r||n===t))return tE(e);if(!e||!(t=nI(t)))return e;var i=tY(e),o=tY(t),a=tB(i,o),s=tL(i,o)+1;return nF(i,a,s).join("")},ry.trimEnd=function(e,t,r){if((e=al(e))&&(r||n===t))return e.slice(0,tq(e)+1);if(!e||!(t=nI(t)))return e;var i=tY(e),o=tL(i,tY(t))+1;return nF(i,0,o).join("")},ry.trimStart=function(e,t,r){if((e=al(e))&&(r||n===t))return e.replace(ee,"");if(!e||!(t=nI(t)))return e;var i=tY(e),o=tB(i,tY(t));return nF(i,o).join("")},ry.truncate=function(e,t){var r=30,i="...";if(o0(t)){var o="separator"in t?t.separator:o;r="length"in t?ai(t.length):r,i="omission"in t?nI(t.omission):i}var a=(e=al(e)).length;if(tW(e)){var s=tY(e);a=s.length}if(r>=a)return e;var l=r-tH(i);if(l<1)return i;var u=s?nF(s,0,l).join(""):e.slice(0,l);if(n===o)return u+i;if(s&&(l+=u.length-l),o3(o)){if(e.slice(l).search(o)){var c,d=u;for(!o.global&&(o=eT(o.source,al(eu.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,n===f?l:f)}}else if(e.indexOf(nI(o),l)!=l){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+i},ry.unescape=function(e){return(e=al(e))&&K.test(e)?e.replace(W,tJ):e},ry.uniqueId=function(e){var t=++eR;return al(e)+t},ry.upperCase=aN,ry.upperFirst=aF,ry.each=ox,ry.eachRight=ov,ry.first=i2,aZ(ry,(ev={},rZ(ry,function(e,t){!eO.call(ry.prototype,t)&&(ev[t]=e)}),ev),{chain:!1}),ry.VERSION="4.17.21",tc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){ry[e].placeholder=ry}),tc(["drop","take"],function(e,t){rS.prototype[e]=function(r){r=n===r?1:t3(ai(r),0);var i=this.__filtered__&&!t?new rS(this):this.clone();return i.__filtered__?i.__takeCount__=t6(r,i.__takeCount__):i.__views__.push({size:t6(r,4294967295),type:e+(i.__dir__<0?"Right":"")}),i},rS.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tc(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;rS.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:iv(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),tc(["head","last"],function(e,t){var r="take"+(t?"Right":"");rS.prototype[e]=function(){return this[r](1).value()[0]}}),tc(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");rS.prototype[e]=function(){return this.__filtered__?new rS(this):this[r](1)}}),rS.prototype.compact=function(){return this.filter(aH)},rS.prototype.find=function(e){return this.filter(e).head()},rS.prototype.findLast=function(e){return this.reverse().find(e)},rS.prototype.invokeMap=nm(function(e,t){return"function"==typeof e?new rS(this):this.map(function(r){return r4(r,e,t)})}),rS.prototype.reject=function(e){return this.filter(oR(iv(e)))},rS.prototype.slice=function(e,t){e=ai(e);var r=this;return r.__filtered__&&(e>0||t<0)?new rS(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(t=ai(t))<0?r.dropRight(-t):r.take(t-e)),r)},rS.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rS.prototype.toArray=function(){return this.take(4294967295)},rZ(rS.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=ry[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(ry.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof rS,u=s[0],c=l||oK(t),d=function(e){var t=o.apply(ry,ty([e],s));return i&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&c){t=g?t:new rS(this);var m=e.apply(t,s);return m.__actions__.push({func:oh,args:[d],thisArg:n}),new rj(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),tc(["pop","push","shift","sort","splice","unshift"],function(e){var t=eI[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);ry.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(oK(i)?i:[],e)}return this[r](function(r){return t.apply(oK(r)?r:[],e)})}}),rZ(rS.prototype,function(e,t){var r=ry[t];if(r){var n=r.name+"";!eO.call(rl,n)&&(rl[n]=[]),rl[n].push({name:t,func:r})}}),rl[n3(n,2).name]=[{name:"wrapper",func:n}],rS.prototype.clone=function(){var e=new rS(this.__wrapped__);return e.__actions__=nY(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nY(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nY(this.__views__),e},rS.prototype.reverse=function(){if(this.__filtered__){var e=new rS(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},rS.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=oK(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=t6(t,e+a);break;case"takeRight":e=t3(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=n?s:a-1,c=this.__iteratees__,d=c.length,f=0,h=t6(l,this.__takeCount__);if(!r||!n&&i==l&&h==l)return nO(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[u+=t];++g<d;){var y=c[g],x=y.iteratee,v=y.type,j=x(m);if(2==v)m=j;else if(!j){if(1==v)continue e;break e}}p[f++]=m}return p},ry.prototype.at=op,ry.prototype.chain=function(){return of(this)},ry.prototype.commit=function(){return new rj(this.value(),this.__chain__)},ry.prototype.next=function(){n===this.__values__&&(this.__values__=ar(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}},ry.prototype.plant=function(e){for(var t,r=this;r instanceof rv;){var i=iq(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},ry.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof rS){var t=e;return this.__actions__.length&&(t=new rS(this)),(t=t.reverse()).__actions__.push({func:oh,args:[oe],thisArg:n}),new rj(t,this.__chain__)}return this.thru(oe)},ry.prototype.toJSON=ry.prototype.valueOf=ry.prototype.value=function(){return nO(this.__wrapped__,this.__actions__)},ry.prototype.first=ry.prototype.head,e4&&(ry.prototype[e4]=function(){return this}),ry}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(e6._=tZ,define(function(){return tZ})):e8?((e8.exports=tZ)._=tZ,e4._=tZ):e6._=tZ}).call(this)},147545:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeChangeAlert:function(){return g}});var n=r("766791"),i=r("911100"),o=r("311486"),a=r("907366"),s=r("537585"),l=r("889702"),u=r("373262"),c=r("943436"),d=r("767434"),f=r("817847"),h=r("8917");let p=({data:e,setIsFixed:t,cwd:r})=>{let{file:i,id:u}=e,{path:c,line:p,isFixed:g,actual:m,expected:y}=i,x=()=>{o.default.post(l.SDK.ServerAPI.API.ApplyErrorFix,{id:u}).then(()=>{t(!0)})};return(0,n.jsxs)(a.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(d.Title,{text:g?"Fix History":"Suggest Fix"}),(0,n.jsx)("span",{className:"code-change-tag-list",children:(0,n.jsx)(()=>(0,n.jsx)(a.Popconfirm,{title:"Did you confirm to apply the change i the area below ?",onConfirm:x,okText:"Yes",cancelText:"Cancel",zIndex:99999,disabled:g,placement:"bottom",children:(0,n.jsx)(a.Button,{type:"primary",size:"small",icon:g?(0,n.jsx)(s.CheckOutlined,{}):void 0,disabled:g,children:g?"Fix Applied":"Apply Fix"})}),{})})]}),(0,n.jsx)(f.CodeOpener,{cwd:r,url:c,loc:String(p),code:!0,disabled:!0}),(0,n.jsxs)(a.Row,{children:[(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Before"})}),(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Typography.Text,{strong:!0,children:"After"})})]}),(0,n.jsx)(h.DiffViewer,{className:"full-space",filepath:c,before:m,after:y})]})},g=({data:e,cwd:t})=>{let{title:r,description:o="",level:l,code:d,file:f}=e,[h,g]=(0,i.useState)(f.isFixed??!1),m=(0,u.useRuleIndexNavigate)(d,e.link),y=(0,n.jsxs)(a.Space,{direction:"vertical",children:[(0,n.jsx)(a.Typography.Text,{children:o}),(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{children:"File:"}),(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:f.path}),(0,n.jsx)(a.Typography.Text,{children:"in line"}),(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:f.line})]})]});return(0,n.jsx)(a.Alert,{showIcon:!0,message:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{code:!0,strong:!0,onClick:m,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:d})}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:r})]}),description:y,type:h?"success":"warn"===l?"info":l,action:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(c.TextDrawer,{text:h?"Fixed | Show Fix History":"Show Fix Suggestion",buttonProps:{size:"small"},children:(0,n.jsx)(p,{data:e,setIsFixed:e=>{g(e),f.isFixed=e},cwd:t})}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Button,{type:"link",onClick:m,size:"small",children:(0,n.jsx)(s.InfoCircleOutlined,{})})]})})}},807516:function(e,t,r){"use strict";r.r(t),r.d(t,{FileRelationAlert:function(){return o}});var n=r("766791"),i=r("907366");let o=({data:e})=>{let{description:t="",level:r}=e;return(0,n.jsx)(i.Alert,{type:"warn"===r?"info":r,description:t})}},254722:function(e,t,r){"use strict";r.r(t),r.d(t,{Alert:function(){return u}});var n=r("766791"),i=r("855532"),o=r("807516"),a=r("981328"),s=r("147545"),l=r("431346");r("586755");let u=e=>{let{data:t,cwd:r=""}=e;if("file-relation"===t.type)return(0,n.jsx)(o.FileRelationAlert,{data:t});if("code-view"===t.type)return(0,n.jsx)(l.CodeViewAlert,{data:t,cwd:r});if("code-change"===t.type)return(0,n.jsx)(s.CodeChangeAlert,{data:t,cwd:r});if("emo"===t.type)return(0,n.jsx)(n.Fragment,{});if("package-relation"===t.type){let{getPackageRelationContentComponent:i}=e;return(0,n.jsx)(a.PackageRelationAlert,{data:t,cwd:r,getPackageRelationContentComponent:i})}return(0,n.jsx)(i.LinkRuleAlert,{data:t})}},855532:function(e,t,r){"use strict";r.r(t),r.d(t,{LinkRuleAlert:function(){return s}});var n=r("766791"),i=r("907366"),o=r("537585"),a=r("373262");let s=({data:e})=>{let{title:t,description:r="",level:s,code:l}=e,u=(0,a.useRuleIndexNavigate)(l,e.link);return(0,n.jsx)(i.Alert,{showIcon:!0,message:(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{code:!0,strong:!0,onClick:u,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:l})}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:t})]}),description:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}),type:"warn"===s?"info":s,action:(0,n.jsxs)(i.Button,{type:"link",onClick:u,size:"small",children:["More",(0,n.jsx)(o.InfoCircleOutlined,{})]})})}},981328:function(e,t,r){"use strict";r.r(t),r.d(t,{PackageRelationAlert:function(){return x},PackageRelationReasonsWithServer:function(){return y}});var n=r("766791"),i=r("911100"),o=r.n(i),a=r("907366"),s=r("667227"),l=r("889702"),u=r("537585"),c=r("373262"),d=r("943436"),f=r("767434"),h=r("723854"),p=r("972519"),g=r("8917"),m=r("321217");let y=(0,m.withServerAPI)({Component:({data:e,cwd:t})=>{let[r,s]=(0,i.useState)(0),{t:l}=(0,c.useI18n)();return(0,n.jsxs)(a.Row,{gutter:h.Size.BasePadding,wrap:!1,align:"top",children:[(0,n.jsx)(a.Col,{span:12,style:{height:"100%"},children:(0,n.jsx)(a.Card,{title:"The reasons for importing this version",style:{height:"100%"},extra:(0,n.jsx)(a.Popover,{content:(0,n.jsx)(a.Typography.Text,{children:l("DuplicatePakCodeExplain")}),children:(0,n.jsx)("a",{href:"#",children:"Explain"})}),bodyStyle:{overflow:"scroll"},children:e.length?(0,n.jsxs)(o().Fragment,{children:[(0,n.jsx)("div",{style:{marginBottom:h.Size.BasePadding},children:(0,n.jsx)(a.Typography.Text,{type:"secondary",strong:!0,children:"Click the file path below to show the reason in code viewer."})}),(0,n.jsx)(a.Timeline,{children:e.map((t,i)=>{let{dependency:o,module:l,relativePath:u}=t,{statements:c}=o,{start:d}=c?.[0]?.position?l.isPreferSource?c[0].position.source:c[0].position.transformed:{start:{line:0,column:0}},f=`${u}:${d.line}:${d.column||1}`;return(0,n.jsx)(a.Timeline.Item,{style:{cursor:"pointer"},dot:i===e.length-1?void 0:"\u2B07\uFE0F",children:(0,n.jsx)(a.Typography.Text,{copyable:{text:u},onClick:e=>{e.preventDefault(),e.stopPropagation(),s(i)},strong:i===r,style:{color:i===r?h.Color.Blue:"inherit",display:"block"},children:f})},f)})})]}):(0,n.jsx)(a.Empty,{description:"This package no dependencies"})})}),(0,n.jsx)(a.Col,{span:12,style:{height:"100%"},children:(0,i.createElement)(g.FileHightLightViewer,{...e[r],key:r,cwd:t})})]})},api:l.SDK.ServerAPI.API.GetPackageRelationAlertDetails,responsePropName:"data"}),x=({data:e,getPackageRelationContentComponent:t})=>{let{level:r,code:i,packages:g}=e,m=(0,c.useRuleIndexNavigate)(i,e.link),y=(0,s.sumBy)(g,e=>e.targetSize.sourceSize),x=(0,c.formatSize)(y),{xs:v,lg:j,xxl:S}=a.Grid.useBreakpoint(),{name:b}=g.find(e=>!!e.target.name).target,_=g.map(e=>e.target.version);return(0,n.jsx)(a.Alert,{showIcon:!v,message:(0,n.jsxs)(a.Space,{wrap:!0,split:v?null:(0,n.jsx)(a.Divider,{type:"vertical"}),align:"center",children:[(0,n.jsxs)(a.Space,{wrap:!1,children:[(0,n.jsx)(a.Typography.Text,{code:!0,strong:!0,onClick:m,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:i})}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:l.Rule.RuleErrorMap[i]?.title||e.title})]}),(0,n.jsxs)(a.Typography.Paragraph,{ellipsis:{rows:1},style:{marginBottom:0},children:[(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:b}),(0,n.jsxs)(a.Typography.Text,{strong:!0,children:[" ",e.packages.length]}),(0,n.jsx)(a.Typography.Text,{children:" versions was found"})]}),(0,n.jsx)(p.Badge,{label:"total size",value:x,type:"error",tooltip:`total size of ${e.packages.length} versions is ${x}`})]}),description:(0,n.jsx)(a.Space,{direction:"vertical",wrap:!1,children:e.packages.map(({target:e,targetSize:t})=>{let r=(0,c.formatSize)(t.sourceSize),i=t.parsedSize?(0,c.formatSize)(t.parsedSize):null,o=`${e.name}@${e.version}`;return(0,n.jsxs)(a.Space,{style:{wordBreak:"break-all"},align:"center",split:v?null:(0,n.jsx)(a.Divider,{type:"vertical"}),wrap:!0,children:[(0,n.jsxs)(a.Space,{wrap:!1,children:[(0,n.jsx)(a.Typography.Text,{style:{marginLeft:4},children:"\u2514"}),(0,n.jsx)(p.Badge,{label:e.name,value:`v${e.version}`,tooltip:o})]}),(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(p.Badge,{label:(0,n.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,n.jsx)(u.InfoCircleOutlined,{})]}),value:r,tooltip:`The bundle size of "${o}" is ${r}, this is source size.`,type:"error"}),(0,n.jsx)(p.Badge,{label:"Bundled size",value:i||"CONCATENATED",tooltip:`The bundle size of "${o}" is ${r}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"})]}),(0,n.jsx)(a.Typography.Paragraph,{style:{marginBottom:0,width:S?"40rem":j?"30rem":"20rem"},copyable:{text:e.root},ellipsis:{rows:1,expandable:!0,symbol:(0,n.jsx)(u.ExpandAltOutlined,{}),tooltip:e.root},code:!0,children:e.root})]},e.version)})}),type:"warn"===r?"info":r,action:(0,n.jsxs)(o().Fragment,{children:[g&&g.length>0?(0,n.jsx)(d.TextDrawer,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:e.title},children:(0,n.jsxs)(a.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsxs)(a.Space,{style:{marginBottom:h.Size.BasePadding/2},children:[(0,n.jsx)(f.Title,{text:b,upperFisrt:!1}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:_.length}),(0,n.jsx)(a.Typography.Text,{children:" versions was found: "}),_.map(e=>(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:e},e))]}),(0,n.jsx)(a.Tabs,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:_[0],items:g.map(r=>{let{target:i,targetSize:o}=r;return{label:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{children:`${b}@${i.version}`}),(0,n.jsx)(a.Tag,{color:h.Color.Red,children:(0,c.formatSize)(o.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:t({data:e,package:r})}})})]})}):null,(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Button,{type:"link",onClick:m,size:"small",icon:(0,n.jsx)(u.InfoCircleOutlined,{})})]})})}},431346:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeViewAlert:function(){return h}});var n=r("766791"),i=r("667227"),o=r("907366"),a=r("537585"),s=r("373262"),l=r("943436"),u=r("767434"),c=r("817847"),d=r("8917");let f=({data:e,cwd:t})=>{let{file:r}=e,{path:a,ranges:s}=r,l=s?.[0].start.line;return(0,n.jsxs)(o.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsx)(u.Title,{text:"Code Viewer"}),(0,n.jsx)(c.CodeOpener,{cwd:t,url:a,loc:(0,i.isNumber)(l)?String(l):void 0,code:!0,disabled:!0}),(0,n.jsx)(d.CodeViewer,{path:r.path,content:r.content,ranges:s,defaultLine:l})]})},h=({data:e,cwd:t})=>{let{title:r,description:u="",level:c,code:d,file:h}=e,p=(0,s.useRuleIndexNavigate)(d,e.link),g=h.ranges?.[0].start.line,m=(0,n.jsxs)(o.Space,{direction:"vertical",children:[(0,n.jsx)(o.Typography.Text,{children:u}),(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:"File:"}),(0,n.jsx)(o.Typography.Text,{strong:!0,code:!0,children:h.path}),(0,i.isNumber)(g)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Typography.Text,{children:"in line"}),(0,n.jsx)(o.Typography.Text,{strong:!0,code:!0,children:g})]}):""]})]});return(0,n.jsx)(o.Alert,{showIcon:!0,message:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{code:!0,strong:!0,onClick:p,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:d})}),(0,n.jsx)(o.Typography.Text,{strong:!0,children:r})]}),description:m,type:"warn"===c?"info":c,action:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(l.TextDrawer,{text:"Show Source Code",buttonProps:{size:"small"},children:(0,n.jsx)(f,{data:e,cwd:t})}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Divider,{type:"vertical"}),(0,n.jsx)(o.Button,{type:"link",onClick:p,size:"small",icon:(0,n.jsx)(a.InfoCircleOutlined,{})})]})]})})}},936816:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleAlerts:function(){return f}});var n=r("766791"),i=r("911100"),o=r("889702"),a=r("373262"),s=r("421638"),l=r("321217"),u=r("723854"),c=r("981328"),d=r("907366");let f=(0,l.withServerAPI)({api:o.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({filter:e,project:t})=>{let{errors:r,root:o}=t,l=(0,a.useBundleAlertsByErrors)(r),{setBundleAlertsViewMode:f,viewMode:h,setViewMode:p}=(0,a.useViewMode)(),g=e?l.filter(e):l;return(0,i.useEffect)(()=>{!(0,a.hasViewModeFromStorage)()&&p({bundleAlerts:l.length>=5?u.ViewMode.Group:u.ViewMode.List},!1)},[]),(0,n.jsx)(d.ConfigProvider,{theme:{components:{Alert:{colorInfoBg:"#e6f4ff57",colorInfoBorder:"none"}}},children:(0,n.jsx)(s.CommonAlertsContainer,{title:"Bundle Alerts",dataSource:g,extraData:{cwd:o,getPackageRelationContentComponent:e=>(0,n.jsx)(c.PackageRelationReasonsWithServer,{body:{id:e.data.id,target:e.package.target},cwd:o})},viewMode:h.bundleAlerts,setViewMode:f,cwd:o})})}})},421638:function(e,t,r){"use strict";r.r(t),r.d(t,{CommonAlertsContainer:function(){return m}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("537585"),s=r("889702"),l=r("667227"),u=r("723854"),c=r("254722"),d=r("794568"),f=r("972519");let h={warn:1,error:2},p=({dataSource:e,extraData:t})=>{let r=(0,o.useMemo)(()=>e.slice().sort((e,t)=>h[t.level]-h[e.level]),[e]);return(0,n.jsx)(i.Space,{direction:"vertical",style:{wordBreak:"break-all",width:"100%"},children:r.map((e,r)=>(0,n.jsx)(c.Alert,{data:e,...t},r))})},g=({dataSource:e,extraData:t})=>{let r=(0,o.useMemo)(()=>(0,l.values)((0,l.groupBy)(e,e=>e.code)),[e]);return(0,n.jsx)(i.Space,{direction:"vertical",style:{wordBreak:"break-all",width:"100%"},children:(0,n.jsx)(i.Collapse,{children:r.map(e=>{let[r]=e;return(0,n.jsx)(i.Collapse.Panel,{header:(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{code:!0,strong:!0,style:{cursor:"pointer"},children:r.code}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:s.Rule.RuleErrorMap[r.code]?.title||r.title}),(0,n.jsx)(f.Badge,{label:"count",value:e.length,type:"error"})]}),children:(0,n.jsx)(i.Space,{direction:"vertical",size:16,style:{width:"100%"},children:e.map((e,r)=>(0,n.jsx)(c.Alert,{data:e,...t},r))})},r.code)})})})},m=({title:e,dataSource:t,extraData:r,viewMode:o,setViewMode:s,extraCom:l})=>t.length?(0,n.jsx)(d.Card,{title:e,style:{marginTop:u.Size.BasePadding},collapsable:!0,extra:l||(0,n.jsx)(i.Radio.Group,{options:[{label:(0,n.jsx)(i.Tooltip,{title:"display by list",children:(0,n.jsx)(a.UnorderedListOutlined,{})}),value:u.ViewMode.List},{label:(0,n.jsx)(i.Tooltip,{title:"display by group",children:(0,n.jsx)(a.AppstoreOutlined,{})}),value:u.ViewMode.Group}],value:o,optionType:"button",size:"small",onChange:e=>{s(e.target.value)}}),children:o===u.ViewMode.List?(0,n.jsx)(p,{dataSource:t,extraData:r}):(0,n.jsx)(g,{dataSource:t,extraData:r})}):null},396700:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileAlerts:function(){return d}});var n=r("766791"),i=r("911100"),o=r("889702"),a=r("373262"),s=r("421638"),l=r("321217"),u=r("723854"),c=r("981328");let d=(0,l.withServerAPI)({api:o.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({filter:e,project:t})=>{let{root:r,errors:o}=t,l=(0,a.useCompileAlertsByErrors)(o),{setCompileAlertsViewMode:d,viewMode:f,setViewMode:h}=(0,a.useViewMode)(),p=e?l.filter(e):l;return(0,i.useEffect)(()=>{!(0,a.hasViewModeFromStorage)()&&h({compileAlerts:l.length>=5?u.ViewMode.Group:u.ViewMode.List},!1)},[]),(0,n.jsx)(s.CommonAlertsContainer,{title:"Compile Alerts",dataSource:p,extraData:{cwd:r,getPackageRelationContentComponent:e=>(0,n.jsx)(c.PackageRelationReasonsWithServer,{body:{id:e.data.id,target:e.package.target},cwd:r})},viewMode:f.compileAlerts,setViewMode:d,cwd:r})}})},98394:function(e,t,r){"use strict";r.r(t);var n=r("936816");r.es(n,t);var i=r("396700");r.es(i,t);var o=r("279557");r.es(o,t)},279557:function(e,t,r){"use strict";r.r(t),r.d(t,{OverlayAlertsWithButton:function(){return m},OverlayAlertsWithTips:function(){return y}});var n=r("766791"),i=r("911100"),o=r.n(i),a=r("889702"),s=r("907366"),l=r("537585"),u=r("958086"),c=r("374827"),d=r.n(c),f=r("321217"),h=r("723854");function p(e){let t=0,r=0;e.forEach(e=>{"warn"===e.level?t++:r++});let i=0!==t&&0!==r?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${i}`,detail:(0,n.jsxs)(s.Typography.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,n.jsx)(s.Typography.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with "}),(0,n.jsxs)(s.Typography.Text,{strong:!0,style:{color:h.Color.Red,fontSize:16},children:[r," errors"]}),(0,n.jsx)(s.Typography.Text,{style:{color:"inherit",fontSize:16},children:" and "}),(0,n.jsxs)(s.Typography.Text,{strong:!0,style:{color:h.Color.Yellow,fontSize:16},children:[t," warnings"]})]}),warns:t,errors:r}}r("529048");let g=({alerts:e=[],open:t,onClose:r})=>e.length?(0,n.jsxs)(u.default,{visible:t,onClose:()=>r(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>o().cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,n.jsxs)(s.Row,{justify:"space-between",align:"middle",children:[p(e).detail,(0,n.jsx)(s.Button,{onClick:()=>r(),type:"text",style:{color:"#fff"},size:"large",icon:(0,n.jsx)(l.CloseCircleOutlined,{})})]}),(0,n.jsx)(s.Row,{gutter:[0,h.Size.BasePadding],children:e.map(e=>(0,n.jsx)(s.Col,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,n.jsx)(s.Collapse,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,n.jsx)(l.DownOutlined,{style:{color:"#fff"}}):(0,n.jsx)(l.RightOutlined,{style:{color:"#fff"}}),children:(0,n.jsx)(s.Collapse.Panel,{header:(0,n.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,n.jsx)(s.Tag,{color:h.Color.Yellow,children:"WARNING"}):(0,n.jsx)(s.Tag,{color:h.Color.Red,children:"ERROR"}),(0,n.jsx)(d(),{children:e.description||e.title})]}),children:(0,n.jsx)("div",{style:{color:"#fff"},children:(0,n.jsx)(d(),{children:e.stack})})},e.id)})},e.id))})]}):null,m=(0,f.withServerAPI)({api:a.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[]})=>{if(!e.length)return null;let{errors:t}=p(e),[r,a]=(0,i.useState)(t>0);return(0,n.jsxs)(o().Fragment,{children:[(0,n.jsx)(s.Button,{icon:(0,n.jsx)(l.BugOutlined,{}),danger:!0,size:"small",onClick:()=>a(!r),children:p(e).title}),(0,n.jsx)(g,{alerts:e,open:r,onClose:()=>a(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null}),y=(0,f.withServerAPI)({api:a.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[],defaultOpen:t=e.length>0})=>{if(!e.length)return null;let[r,a]=(0,i.useState)(t);return(0,n.jsxs)(o().Fragment,{children:[(0,n.jsx)(s.Alert,{banner:!0,message:o().cloneElement(p(e).detail,{style:{color:"#000"}}),icon:(0,n.jsx)(l.BugOutlined,{}),action:(0,n.jsx)(s.Button,{onClick:()=>a(!0),size:"small",children:"More"})}),(0,n.jsx)(g,{alerts:e,open:r,onClose:()=>a(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},972519:function(e,t,r){"use strict";r.r(t),r.d(t,{Badge:function(){return l},BadgeColorMap:function(){return s},BadgeType:function(){return a}});var n,i=r("766791"),o=r("907366");var a=((n=a||{}).Default="default",n.Success="success",n.Warn="warn",n.Error="error",n);let s={default:"linear-gradient(to bottom, #3ea2ff 0%, #0072db 100%)",success:"linear-gradient(to bottom, #6cf42a 0%, #52C41A 100%)",warn:"linear-gradient(to bottom, #ffc100 0%, #f59025 100%)",error:"linear-gradient(to bottom, rgb(250 127 22), #FF4D4F 100%)"},l=({label:e,value:t,type:r="default",tooltip:n})=>{let a={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},l=(0,i.jsxs)("div",{style:{height:22,margin:0,padding:0,boxSizing:"border-box",borderRadius:4,fontSize:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:[(0,i.jsx)("div",{style:{...a,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:e}),(0,i.jsx)("div",{style:{...a,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:s[r]||s.default},children:t})]});return n?(0,i.jsx)(o.Tooltip,{title:!0===n?t:n,placement:"topLeft",children:l}):l}},794568:function(e,t,r){"use strict";r.r(t),r.d(t,{Card:function(){return s}});var n=r("766791"),i=r("537585"),o=r("907366"),a=r("911100");let s=({collapsable:e=!1,children:t,title:r,dividerStyle:s,defaultCollapsed:l=!1,...u})=>{let[c,d]=(0,a.useState)(l);return r&&e?(0,n.jsx)(o.Card,{...u,title:(0,n.jsxs)(o.Space,{style:{fontSize:"inherit"},children:[(0,n.jsx)(o.Button,{icon:c?(0,n.jsx)(i.ColumnHeightOutlined,{}):(0,n.jsx)(i.VerticalAlignMiddleOutlined,{}),onClick:()=>d(!c),size:"small"}),r]}),children:c?(0,n.jsx)(o.Divider,{orientation:"center",style:s,plain:!0,children:(0,n.jsx)(o.Button,{icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),type:"text",onClick:()=>d(!c),children:"show more"})}):t}):(0,n.jsx)(o.Card,{title:r,...u,children:t})}},543767:function(e,t,r){"use strict";r.r(t),r.d(t,{SizeCard:function(){return f}});var n=r("766791"),i=r("537585"),o=r("907366"),a=r("667227"),s=r("911100"),l=r("373262"),u=r("674542"),c=r("943436");let{useToken:d}=o.theme,f=({files:e,total:t,showProgress:r=!1,tagBgColor:f})=>{let{token:h}=d(),p=(0,s.useMemo)(()=>(0,a.sumBy)(e,e=>e.size),[e]),g=(0,s.useMemo)(()=>(0,l.createFileStructures)({files:e.map(e=>e.path),fileTitle(t,r){let{size:i}=e.find(e=>e.path===t);return(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:r}),(0,n.jsx)(o.Tag,{color:"success",children:(0,l.formatSize)(i)})]})}}),[e]);return 0===g.length?(0,n.jsx)(o.Space,{style:{height:100,fontSize:24},align:"center",children:(0,n.jsx)(o.Tag,{bordered:!1,color:f,children:(0,n.jsxs)(o.Typography.Text,{style:{fontSize:14,color:h.colorWhite},children:[(0,n.jsxs)(o.Typography.Text,{style:{color:h.colorWhite},children:[" ",0]})," Files"]})})}):(0,n.jsxs)(o.Space,{style:{height:100},align:"center",children:[r?0===p?(0,n.jsx)(o.Empty,{}):(0,n.jsx)(o.Progress,{type:"dashboard",percent:+(p/t*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#87d068"},width:80}):null,(0,n.jsx)(c.TextDrawer,{text:(0,n.jsx)(o.Tooltip,{title:"Click to show the total files",children:(0,n.jsxs)(o.Space,{style:{textAlign:r?"left":"center"},align:"end",children:[(0,n.jsxs)(o.Space,{direction:"vertical",children:[(0,n.jsx)(o.Tag,{bordered:!1,color:f,children:(0,n.jsxs)(o.Typography.Text,{style:{fontSize:14,color:h.colorWhite},children:[(0,n.jsxs)(o.Typography.Text,{style:{color:h.colorWhite},children:[" ",e.length]})," Files"]})}),(0,n.jsx)(o.Typography.Text,{style:{fontSize:20},children:(0,l.formatSize)(p)})]}),(0,n.jsx)(i.ExceptionOutlined,{style:{transform:"translateY(-3.5px)"}})]})}),buttonStyle:{height:"100%"},buttonProps:{type:"text"},children:(0,n.jsx)(u.FileTree,{treeData:g,defaultExpandAll:!0,titleRender:e=>(0,n.jsx)(o.Typography.Text,{children:e.title})})})]})}},31017:function(e,t,r){"use strict";r.r(t),r.d(t,{StatisticCard:function(){return a}});var n=r("766791"),i=r("907366");r("353628");var o=r("373262");let a=({title:e,value:t,statisticProps:r,boxProps:a})=>{let{theme:s}=(0,o.useTheme)();return(0,n.jsx)("div",{className:`statistic-card statistic-card-${s}`,...a,children:(0,n.jsx)(i.Statistic,{title:(0,n.jsx)("div",{className:"statistic-card-title",children:e}),valueRender:()=>t,valueStyle:{fontSize:24},...r})})}},372531:function(e,t,r){"use strict";r.r(t),r.d(t,{TimelineCom:function(){return d}});var n=r("766791"),i=r("911100"),o=r("875655"),a=r("314670"),s=r("770866"),l=r.n(s),u=r("667227"),c=r("960552");let d=(0,i.memo)(({loaderData:e,pluginsData:t,formatterFn:r,chartType:s="normal"})=>{let d=[],f=[],[h,p]=(0,i.useState)({});return(0,i.useEffect)(()=>{if(!e)return;let t=[];e.forEach(e=>{t.unshift(e.n+" total"),t.unshift(e.n)}),e.forEach(function(e,r){if(d.push({name:e.n+" total",value:[t.indexOf(e.n+" total"),e.s,e.e,e.e-e.s],itemStyle:{normal:{color:c.LITTLE_PALETTE_COLORS[r%8]}}}),e?.c)for(let n=0;n<e?.c?.length;n++)d.push({name:e.n,value:[t.indexOf(e.n),e.c[n].s,e.c[n].e,e.c[n].e-e.c[n].s],itemStyle:{normal:{color:c.PALETTE_COLORS[(n+r)%30]}},ext:e.c[n].ext})}),f=t.map((e,t)=>t%2!=0?e.replace(" total",""):"")},[e]),(0,i.useEffect)(()=>{if(!t)return;let e=(0,u.groupBy)(t,e=>e.pid);Object.keys(e).reverse().forEach(function(t,r){e[t].forEach((e,t)=>{d.push({name:String(e.pid),value:[r,e.args.s,e.args.e,e.args.e-e.args.s],itemStyle:{normal:{color:c.PALETTE_COLORS[(t+r)%30]}},ext:e})}),f.push(String(t.charAt(0).toUpperCase()+t.slice(1)))})},[t]),(0,i.useEffect)(()=>{p({tooltip:{formatter:e=>r(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-10,labelFormatter:""},{type:"inside",filterMode:"weakFilter"}],grid:{top:10,left:0,bottom:10,right:0,height:f.length>("loader"===s?6:3)?"auto":60*f.length,containLabel:!0},xAxis:{position:"top",splitLine:{show:!1},scale:!0,axisLine:{show:!1},axisLabel:{formatter:e=>l()(e).format("HH:mm:ss")}},yAxis:{type:"category",splitLine:{interval:"loader"===s?1:0,show:!0},axisLabel:{inside:!0,lineHeight:20,width:100,fontSize:12,color:"#000",verticalAlign:"bottom"},axisLine:{show:!0},axisTick:{show:!1},data:f},series:[{type:"custom",renderItem:function(e,t){let r=t.value(0),n=t.coord([t.value(1),r]),i=t.coord([t.value(2),r]),o=.3*t.size([0,1])[1],l=a.graphic.clipRectByRect({x:n[0],y:"loader"===s?n[1]-(r%2!=0?0:2*o):n[1],width:i[0]-n[0]||5,height:o},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return l&&{type:"rect",transition:["shape"],shape:l,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:d}]})},[e,t]),(0,n.jsx)(o.default,{option:h,echarts:a,style:{width:"100%",minHeight:"400px"}})})},685394:function(e,t,r){"use strict";r.r(t),r.d(t,{BootstrapChartContainer:function(){return d}});var n=r("766791"),i=r("907366"),o=r("537585"),a=r("889702"),s=r("943436");r("746689"),r("820238");var l=r("494587"),u=r("321217"),c=r("534851");let d=({summary:e})=>{let{costs:t=[]}=e||{},r=t.find(e=>e.name===c.Summary.SummaryCostsDataName.Bootstrap);return r?(0,n.jsx)(s.TextDrawer,{drawerProps:{title:'Chart of the "Bootstrap -> BeforeCompile" stage'},text:(0,n.jsxs)(i.Space,{children:["detail",(0,n.jsx)(o.BarChartOutlined,{})]}),children:(0,n.jsx)(u.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetPluginData,body:{hooks:["environment","afterEnvironment","entryOption","afterPlugins","afterResolvers","initialize","beforeRun","run","watchRun","normalModuleFactory","contextModuleFactory","beforeCompile"]},children:e=>e&&e.length?(0,n.jsx)(l.CommonExecutionsChart,{plugins:e}):(0,n.jsx)(l.CommonExecutionEmptyTips,{})})}):null}},494587:function(e,t,r){"use strict";r.r(t),r.d(t,{CommonExecutionEmptyTips:function(){return c},CommonExecutionsChart:function(){return u}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("373262"),s=r("372531");r("746689"),r("820238");var l=r("637493");let u=({plugins:e,defaultDatas:t=[]})=>{let{isDark:r}=(0,a.useTheme)(),i=(0,o.useRef)(null),[u,c]=(0,o.useState)([]);return(0,o.useEffect)(()=>{let r=[];e.forEach(e=>{e.data.forEach(t=>{r.push({p:e.hook,n:`${e.tapName}`,s:t.startAt,e:t.endAt})})}),c([...(0,l.processTrans)(t),...(0,l.processTrans)(r)])},[]),(0,n.jsx)("div",{className:["loader-chart-container",r?"loader-chart-container_dark":""].join(" ").trim(),ref:i,style:{width:"100%",height:"600px"},children:(0,n.jsx)(s.TimelineCom,{pluginsData:u,formatterFn:l.formatterForPlugins})})},c=()=>(0,n.jsx)(i.Alert,{message:(0,n.jsxs)(i.Typography.Text,{children:[(0,n.jsx)(i.Typography.Text,{children:"make sure that you have turn on "}),(0,n.jsx)(i.Typography.Text,{children:" in configuration for the Rsdoctor plugin."})]}),type:"info",showIcon:!0})},960552:function(e,t,r){"use strict";r.r(t),r.d(t,{LITTLE_PALETTE_COLORS:function(){return n},PALETTE_COLORS:function(){return i}});let n=["#a8071a","#ad6800","#237804","#006d75","#ad8b00","#ad4e00","#5b8c00","#003eb3"],i=["#4096ff","#69b1ff","#9e1068","#722ed1","#bae0ff","#d3adf7","#597ef7","#ffadd2","#c41d7f","#391085","#ffa940","#5c060b","#a81414","#ff7875","#ffd591","#ffe58f","#d3f261","#d4b106","#7cb305","#f4ffb8","#fa8c16","#0958d9","#fff3f0","#82090d","#ffbfb3","#f44336","#ff998a","#ff7161","#ffe2db","#cf2923"]},682508:function(e,t,r){"use strict";r.r(t),r.d(t,{DoneChartContainer:function(){return h}});var n=r("766791"),i=r("907366"),o=r("537585"),a=r("889702"),s=r("534851"),l=r("943436"),u=r("794568"),c=r("494587"),d=r("153218"),f=r("321217");r("746689"),r("820238");let h=({summary:e})=>{let{costs:t=[]}=e||{},r=t.find(e=>e.name===s.Summary.SummaryCostsDataName.Done),h='of the "AfterCompile -> Done" stage';return r?(0,n.jsx)(l.TextDrawer,{drawerProps:{title:`Details ${h}`},text:(0,n.jsxs)(i.Space,{children:["detail",(0,n.jsx)(o.BarChartOutlined,{})]}),children:(0,n.jsx)(f.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetPluginData,body:{hooks:["afterCompile","shouldEmit","emit","afterEmit","assetEmitted","done"]},children:e=>e&&e.length?(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(u.Card,{title:`Plugin DataSource of ${h}`,collapsable:!0,children:(0,n.jsx)(d.WebpackPluginsDataTable,{dataSource:e})}),(0,n.jsx)(i.Divider,{}),(0,n.jsx)(u.Card,{title:`Chart ${h}`,children:(0,n.jsx)(c.CommonExecutionsChart,{plugins:e})})]}):(0,n.jsx)(c.CommonExecutionEmptyTips,{})})}):null}},976566:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderChart:function(){return h}});var n,i=r("766791"),o=r("911100"),a=r("907366"),s=r("889702"),l=r("19492"),u=r("321217"),c=r("344468"),d=r("423282");var f=((n=f||{})[n.Loader=0]="Loader",n[n.Process=1]="Process",n);let h=(0,u.withServerAPI)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[r,n]=(0,o.useState)({filename:"",loaders:[]}),[f,h]=(0,o.useState)(0);return(0,i.jsxs)(a.Space,{direction:"vertical",style:{width:"100%"},children:[(0,i.jsx)(u.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,i.jsx)(l.LoaderCommonSelect,{onChange:n,loaderNames:e})}),(0,i.jsx)(u.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetLoaderChartData,children:e=>{let n=e.filter(e=>(0,d.filterLoader)(e.resource,e.loader,r.filename,r.loaders));return 0===f?(0,i.jsx)(c.LoaderExecutionsChart,{loaders:n,cwd:t}):(0,i.jsx)(i.Fragment,{})}})]})}})},344468:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderExecutionsChart:function(){return f}});var n=r("766791"),i=r("911100"),o=r("667227"),a=r("907366");r("746689");var s=r("111404"),l=r("423282"),u=r("697071"),c=r("372531"),d=r("637493");let f=({loaders:e,cwd:t})=>{let{isDark:r}=(0,s.useTheme)(),f=(0,i.useRef)(null),[h,p]=(0,i.useState)([]),g=(0,d.useDebounceHook)(h,200),m=(0,i.useMemo)(()=>(0,o.groupBy)(e,e=>e.loader),[e]),y=(0,i.useCallback)(r=>{let{name:n,data:i}=r,o=n.replace(" total","");return i?.ext?(0,d.getTooltipHtmlForLoader)(i.ext):(0,d.renderTotalLoadersTooltip)(o,e,t)},[]);return(0,i.useEffect)(()=>{p(Object.keys(m).map(e=>{let r=m[e]||[],{start:n,end:i}=(0,l.findLoaderTotalTiming)(r);return{p:e,n:e,s:n,e:i,c:r.map(r=>({p:e,n:(0,u.beautifyPath)(r.resource,t),s:r.startAt,e:r.endAt,ext:r}))}}))},[m]),(0,n.jsx)(n.Fragment,{children:h?.length?(0,n.jsx)("div",{className:["loader-chart-container",r?"loader-chart-container_dark":""].join(" ").trim(),ref:f,style:{width:"100%",height:"600px"},children:(0,n.jsx)(c.TimelineCom,{loaderData:g,formatterFn:y,chartType:"loader"})}):(0,n.jsx)(a.Empty,{})})}},388558:function(e,t,r){"use strict";r.r(t),r.d(t,{MinifyChartContainer:function(){return h}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("943436"),l=r("534851"),u=r("794568"),c=r("321217"),d=r("153218"),f=r("494587");r("746689"),r("820238");let h=({summary:e})=>{let{costs:t=[]}=e||{};return t.find(e=>e.name===l.Summary.SummaryCostsDataName.Minify)?(0,n.jsx)(s.TextDrawer,{drawerProps:{title:'Details of the "Minify" stage'},text:(0,n.jsxs)(a.Space,{children:["detail",(0,n.jsx)(i.BarChartOutlined,{})]}),children:(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:["processAssets","optimizeChunkAssets"]},children:e=>e&&e.length?(0,n.jsxs)(a.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(u.Card,{title:'Plugin DataSource of the "Minify"',collapsable:!0,children:(0,n.jsx)(d.WebpackPluginsDataTable,{dataSource:e})}),(0,n.jsx)(a.Divider,{}),(0,n.jsx)(u.Card,{title:'Chart of the "Minify"',children:(0,n.jsx)(f.CommonExecutionsChart,{plugins:e})})]}):(0,n.jsx)(f.CommonExecutionEmptyTips,{})})}):null}},833:function(e,t,r){"use strict";r.r(t),r.d(t,{ETraceEventPhase:function(){return i}});var n,i=((n=i||{}).BEGIN="B",n.END="E",n.COMPLETE="X",n.INSTANT="I",n.MARK="R",n)},637493:function(e,t,r){"use strict";r.r(t),r.d(t,{formatterForPlugins:function(){return h},getTooltipHtmlForLoader:function(){return c},processTrans:function(){return f},renderTotalLoadersTooltip:function(){return d},useDebounceHook:function(){return p}});var n=r("534851"),i=r("770866"),o=r.n(i),a=r("667227"),s=r("373262");r("820238");var l=r("833"),u=r("911100");function c(e){return`
3
3
  <div class="loader-tooltip-container">
4
4
  <div class="loader-tooltip-title">${e.loader}</div>
5
5
  <li class="loader-tooltip-item">
@@ -23,7 +23,7 @@
23
23
  <span class="loader-tooltip-textbold">${o()(e.endAt).format("YYYY/MM/DD HH:mm:ss")}</span>
24
24
  </li>
25
25
  </div>
26
- `.trim()}function c(e,t,r){let i=t=>t.loader===e,l=t.filter(i),u=l.map(e=>e.resource),c=u.filter(e=>e.includes("/node_modules/")),d=u.filter(e=>!e.startsWith(r)),f=(0,a.minBy)(l,e=>e.startAt).startAt,h=(0,a.maxBy)(l,e=>e.endAt).endAt,p=n.Loader.getLoadersCosts(i,t);return`
26
+ `.trim()}function d(e,t,r){let i=t=>t.loader===e,l=t.filter(i),u=l.map(e=>e.resource),c=u.filter(e=>e.includes("/node_modules/")),d=u.filter(e=>!e.startsWith(r)),f=(0,a.minBy)(l,e=>e.startAt).startAt,h=(0,a.maxBy)(l,e=>e.endAt).endAt,p=n.Loader.getLoadersCosts(i,t);return`
27
27
  <div class="loader-tooltip-container">
28
28
  <div class="loader-tooltip-title">${e}</div>
29
29
  <li class="loader-tooltip-item">
@@ -51,7 +51,7 @@
51
51
  <span>${o()(h).format("YYYY/MM/DD HH:mm:ss")}</span>
52
52
  </li>
53
53
  </div>
54
- `.trim()}function d(e){return function e(t){return t.reduce((t,r)=>{if(r.c){let n=e(r.c);t.push({name:r.n,ph:l.ETraceEventPhase.BEGIN,pid:r.p,ts:r.s,args:r},...n,{name:r.n,ph:l.ETraceEventPhase.END,pid:r.p,ts:r.e,args:r})}else t.push({name:r.n,ph:l.ETraceEventPhase.BEGIN,pid:r.p,ts:r.s,args:r}),t.push({name:r.n,ph:l.ETraceEventPhase.END,pid:r.p,ts:r.e,args:r});return t},[])}(Object.entries(e.sort((e,t)=>e.s-t.s).reduce((e,t)=>{let r=e[t.p];return r?function(e,t){let r=[e];for(;r.length>0;){let e;let n=r.shift()||[];if(0===n.length)return;let i=n[n.length-1];if(i.e<=t.s)return n.push(t);for(let t=n.length-1;t>=0;t--){let{c:r}=n[t];r&&(e=r)}e?r.push(e):i.c=[t]}}(r,t):e[t.p]=[t],e},{})).reduce((e,[t,r])=>(e.push(...r),e),[]))}function f(e){let{ext:t}=e.data;return`
54
+ `.trim()}function f(e){return function e(t){return t.reduce((t,r)=>{if(r.c){let n=e(r.c);t.push({name:r.n,ph:l.ETraceEventPhase.BEGIN,pid:r.p,ts:r.s,args:r},...n,{name:r.n,ph:l.ETraceEventPhase.END,pid:r.p,ts:r.e,args:r})}else t.push({name:r.n,ph:l.ETraceEventPhase.BEGIN,pid:r.p,ts:r.s,args:r}),t.push({name:r.n,ph:l.ETraceEventPhase.END,pid:r.p,ts:r.e,args:r});return t},[])}(Object.entries(e.sort((e,t)=>e.s-t.s).reduce((e,t)=>{let r=e[t.p];return r?function(e,t){let r=[e];for(;r.length>0;){let e;let n=r.shift()||[];if(0===n.length)return;let i=n[n.length-1];if(i.e<=t.s)return n.push(t);for(let t=n.length-1;t>=0;t--){let{c:r}=n[t];r&&(e=r)}e?r.push(e):i.c=[t]}}(r,t):e[t.p]=[t],e},{})).reduce((e,[t,r])=>(e.push(...r),e),[]))}function h(e){let{ext:t}=e.data;return`
55
55
  <div class="loader-tooltip-container">
56
56
  <div class="loader-tooltip-title">[${t.args.p}] ${t.args.n}</div>
57
57
  <li class="loader-tooltip-item">
@@ -75,7 +75,7 @@
75
75
  <span>${(0,s.formatCosts)(t.args.e-t.args.s)}</span>
76
76
  </li>
77
77
  </div>
78
- `.trim()}},18886:function(e,t,r){"use strict";r.r(t),r.d(t,{DefaultEditorConfig:function(){return n}});let n={readOnly:!0,domReadOnly:!0,fontSize:12,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"bounded",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1}}},96911:function(e,t,r){"use strict";r.r(t),r.d(t,{DiffViewer:function(){return s}});var n=r("766791"),i=r("972440"),o=r("723854"),a=r("373262");let s=({before:e,after:t,filepath:r,className:s,editorProps:l})=>(0,n.jsx)(i.DiffEditor,{className:s,originalLanguage:(0,a.getOriginalLanguage)(r),modifiedLanguage:(0,a.getModifiedLanguage)(r),theme:"vs-dark",original:e,modified:t,width:"100%",...l,options:{readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderIndicators:!0,lineDecorationsWidth:o.Size.BasePadding,definitionLinkOpensInPeek:!1,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},diffWordWrap:"on",...l?.options}})},102897:function(e,t,r){"use strict";r.r(t),r.d(t,{FileHightLightViewer:function(){return c}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("537585"),s=r("972440"),l=r("373262"),u=r("817847");let c=({dependency:e,module:t,cwd:r,moduleCode:c})=>{let d=(0,i.useRef)(null);if(!e)return null;let{statements:f}=e,h=!!f?.[0]?.position?.source,{start:p,end:g}=f?.[0]?.position?h?f[0].position.source:f[0].position.transformed:{start:{line:0,column:0},end:{line:0,column:0}},m=h?c?.source:c?.transformed||c?.source,y=t.path;return(0,n.jsx)(o.Card,{title:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Tooltip,{title:y,zIndex:99999,children:(0,n.jsx)(a.InfoCircleOutlined,{})}),(0,n.jsx)(u.CodeOpener,{cwd:r,url:y,label:(0,l.beautifyModulePath)(y,r).alias,loc:`${p.line}:${p.column||1}`,code:!0,disabled:!0})]}),style:{height:"100%"},children:(0,n.jsx)(s.default,{theme:"vs-dark",language:(0,l.getOriginalLanguage)(y),value:m,width:"100%",height:window.innerHeight/1.5,options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1}},onMount:(e,t)=>{d.current=e;let r=(0,l.getSelectionRange)({start:p,end:g},t.Range),n=(0,l.getRevealPositionForViewer)(r.startLineNumber,r.startColumn);e.revealPositionInCenter(n),e.deltaDecorations([],[{range:r,options:{inlineClassName:"file-inline-decoration"}}])}})})}},8917:function(e,t,r){"use strict";r.r(t);var n=r("96911");r.es(n,t);var i=r("102897");r.es(i,t);var o=r("367010");r.es(o,t);var a=r("18886");r.es(a,t)},367010:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeViewer:function(){return c},CodeViewerWithDrawer:function(){return d}});var n=r("766791"),i=r("972440"),o=r("667227"),a=r("537585"),s=r("373262"),l=r("18886"),u=r("943436");let c=({content:e,ranges:t,path:r,defaultLine:a,editorConfig:u={}})=>(0,n.jsx)(i.default,{theme:"vs-dark",language:(0,s.getOriginalLanguage)(r),value:e,width:"100%",height:window.innerHeight/1.5,options:{...l.DefaultEditorConfig,...u},onMount:(e,r)=>{(0,o.isNumber)(a)&&e.revealLine(a),t&&t.length>0&&e.deltaDecorations([],t.map(e=>({range:(0,s.getSelectionRange)(e,r.Range),options:{inlineClassName:"file-inline-decoration"}})))}}),d=e=>(0,n.jsx)(u.TextDrawer,{text:"",buttonProps:{size:"small",icon:(0,n.jsx)(a.CodepenCircleOutlined,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${e.path}"`},children:(0,n.jsx)(c,{...e})})},820994:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackConfigurationViewer:function(){return p}});var n=r("766791"),i=r("889702"),o=r("907366"),a=r("667227"),s=r("911100"),l=r("735707"),u=r.n(l),c=r("373262"),d=r("321217"),f=r("943436"),h=r("767434");let p=(0,d.withServerAPI)({Component:({defaultKeys:e,configs:t})=>{let r=(0,c.useWebpackConfigurationByConfigs)(t||[]);if(!r)return null;let{config:i,version:l,name:d}=r,p=Object.keys(i),[g,m]=(0,s.useState)(e||p);return(0,n.jsx)(f.TextDrawer,{text:"View Builder Config",children:(0,n.jsxs)(o.Row,{children:[(0,n.jsx)(h.Title,{text:"Builder Config Viewer"}),(0,n.jsx)(o.Divider,{}),(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:"Properties: "}),(0,n.jsx)(o.Select,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:g.length===p.length?[]:g,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{m(e)},children:p.map(e=>(0,n.jsx)(o.Select.Option,{label:e,value:e,children:e},e))})]}),(0,n.jsx)(o.Divider,{}),(0,n.jsx)(u(),{name:l&&"unknown"!==l?`${d}@${l}`:"webpack.config",theme:"monokai",src:0===g.length?i:(0,a.pick)(i,g),displayDataTypes:!1,displayObjectSize:!1})]})})},api:i.SDK.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1})},857238:function(e,t,r){"use strict";r.r(t);var n=r("820994");r.es(n,t)},674542:function(e,t,r){"use strict";r.r(t),r.d(t,{FileTree:function(){return c}});var n=r("766791"),i=r("907366"),o=r("537585"),a=r("83121"),s=r("723854");r("971704");var l=r("373262");let{useToken:u}=i.theme,c=e=>{let{isDark:t}=(0,l.useTheme)(),{token:r}=u(),c=t?r.colorWhite:r.colorText,d={fontSize:r.fontSize};return(0,n.jsx)(a.default,{checkable:!1,selectable:!0,switcherIcon:({data:e,expanded:t})=>e?.children?(0,n.jsxs)(i.Space,{style:{color:c},children:[(0,n.jsx)(o.RightOutlined,{twoToneColor:c,className:`file-tree-switcher-arrow ${t?"file-tree-switcher-arrow-expand":""}`,style:d}),t?(0,n.jsx)(o.FolderOpenOutlined,{twoToneColor:c,style:d}):(0,n.jsx)(o.FolderOutlined,{twoToneColor:c,style:d})]}):(0,n.jsx)(o.FileOutlined,{style:{marginLeft:s.Size.BasePadding-6,color:c}}),expandAction:"click",...e})}},792489:function(e,t,r){"use strict";r.r(t),r.d(t,{KeywordInput:function(){return a}});var n=r("766791"),i=r("911100"),o=r("907366");let a=({icon:e,label:t,labelStyle:r={},placeholder:a,onChange:s,style:l,className:u,width:c,delay:d=300})=>{let f;let[h,p]=(0,i.useState)(""),g={width:120,...r},m=(0,i.useRef)(null);return(0,i.useEffect)(()=>{s(h)},[h]),(0,n.jsxs)(o.Input.Group,{compact:!0,style:l,className:u,children:[t||e?(0,n.jsxs)(o.Button,{style:g,onClick:()=>{m&&m.current&&m.current.focus()},children:[e||null,(0,n.jsx)(o.Typography.Text,{children:t})]}):null,(0,n.jsx)(o.Input,{ref:m,allowClear:!0,defaultValue:h,style:{width:c?c-120:250},placeholder:a,onChange:e=>{clearTimeout(f);let t=e.target.value.trim();setTimeout(()=>{p(t)},d)}})]})}},289641:function(e,t,r){"use strict";r.r(t),r.d(t,{Keyword:function(){return o}});var n=r("766791"),i=r("907366");let o=({text:e,keyword:t,...r})=>{if(!t||-1===e.indexOf(t))return(0,n.jsx)(i.Typography.Text,{...r,children:e});let o=[],a=e;for(;a.length>0;){let e=a.indexOf(t);if(e>-1)0!==e&&o.push((0,n.jsx)(i.Typography.Text,{style:{fontSize:"inherit"},children:a.slice(0,e)},o.length)),o.push((0,n.jsx)(i.Typography.Text,{mark:!0,style:{fontSize:"inherit"},children:t},o.length)),a=a.slice(e+t.length);else{o.push((0,n.jsx)(i.Typography.Text,{style:{fontSize:"inherit"},children:a},o.length));break}}return(0,n.jsx)(i.Typography.Text,{...r,children:o})}},297517:function(e,t,r){"use strict";r.r(t),r.d(t,{BuilderSelect:function(){return l}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("521964"),s=r("373262");let l=()=>{let[e,t]=(0,o.useState)(""),[r,l]=(0,o.useState)([]);return((0,o.useEffect)(()=>{(0,s.fetchManifest)().then(({name:e,series:r})=>{e&&t(e),r&&r.length>0&&l(r)})},[]),e.length<=0||r.length<=0)?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Divider,{type:"vertical",style:{margin:"0 24px"}}),(0,n.jsx)("img",{src:a,style:{marginRight:6,height:16}}),(0,n.jsx)(i.Typography,{children:"Compiler"}),(0,n.jsx)(i.Select,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=r.find(t=>t.name===e);t&&(t.origin?location.href=(0,s.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:r.map((e,t)=>(0,n.jsx)(i.Select.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})}},277680:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileName:function(){return n}});let n="Compile Analysis"},772195:function(e,t,r){"use strict";r.r(t),r.d(t,{Header:function(){return d}});var n=r("766791"),i=r("537585"),o=r("907366"),a=r("723854"),s=r("373262"),l=r("98394"),u=r("297517"),c=r("625548");r("853938");let d=()=>{let{i18n:e}=(0,s.useI18n)(),{isLight:t}=(0,s.useTheme)(),r=[{value:a.Language.Cn,label:"\u4E2D\u6587"},{value:a.Language.En,label:"English"}];return(0,n.jsx)(o.Layout.Header,{style:{height:a.Size.NavBarHeight,padding:0,paddingLeft:a.Size.BasePadding,paddingRight:a.Size.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:t?"#fff":"#141414",transition:"none"},children:(0,n.jsxs)(o.Row,{justify:"space-between",align:"middle",style:{height:a.Size.NavBarHeight},wrap:!1,children:[(0,n.jsx)(o.Col,{style:{height:a.Size.NavBarHeight,lineHeight:`${a.Size.NavBarHeight+2}px`},children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,n.jsx)("img",{style:{height:30},src:"https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor.png",className:"web-doctor-logo",alt:"logo"}),(0,n.jsx)(o.Typography.Text,{style:{color:"inherit",fontSize:18,marginLeft:4,marginTop:8},children:"Rsdoctor"}),(0,n.jsx)(u.BuilderSelect,{})]})}),(0,n.jsx)(o.Col,{flex:1,children:(0,n.jsxs)(o.Row,{align:"middle",justify:"end",style:{height:a.Size.NavBarHeight},wrap:!1,gutter:[a.Size.BasePadding/3,0],children:[(0,n.jsx)(o.Col,{children:(0,n.jsx)(l.OverlayAlertsWithButton,{})}),(0,n.jsx)(c.Menus,{style:{transition:"none"}}),(0,n.jsx)(o.Col,{children:(0,n.jsx)(o.Dropdown,{overlayStyle:{zIndex:1e3},menu:{items:r.map(t=>({label:t.label,key:t.value,onClick(){e.changeLanguage(t.value)}})),selectedKeys:[e.language]},children:(0,n.jsx)(i.TranslationOutlined,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})}},967079:function(e,t,r){"use strict";r.r(t),r.d(t,{Layout:function(){return c}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("723854"),s=r("772195"),l=r("373262"),u=r("747668");let c=e=>{let t=(0,l.useLocale)(),{i18n:r}=(0,l.useI18n)(),{children:c}=e;return(0,i.useEffect)(()=>{r.language!==t&&r.changeLanguage(t)},[t]),(0,n.jsxs)(o.Layout,{children:[(0,n.jsx)(s.Header,{}),(0,n.jsx)(u.Progress,{}),(0,n.jsxs)(o.Layout.Content,{style:{height:"100%",minHeight:"100vh",padding:a.Size.BasePadding,marginTop:a.Size.NavBarHeight,background:a.MAIN_BG},children:[c,(0,n.jsx)(o.FloatButton.BackTop,{})]})]})}},625548:function(e,t,r){"use strict";r.r(t),r.d(t,{Menus:function(){return m}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("667227"),l=r("336873"),u=r("131988"),c=r("723854"),d=r("194445"),f=r("373262"),h=r("321217"),p=r("350802"),g=r("277680");let m=(0,h.withServerAPI)({api:o.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,f.useI18n)(),{pathname:r}=(0,l.useLocation)(),h=(0,l.useNavigate)(),{routes:m}=e,y={fontSize:16},x={...y,transform:"translateY(-2px)"},v=[],{xxl:j}=a.Grid.useBreakpoint();console.log("enableRoutes: ",m),(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.Overall)&&v.push({label:t(d.name),key:d.route,icon:(0,n.jsx)(i.BarChartOutlined,{style:y}),children:[],onTitleClick(e){h(e.key)}}),(0,f.hasCompile)(m)&&v.push({label:t(g.CompileName),key:g.CompileName,icon:(0,n.jsx)(i.ToolOutlined,{style:y}),children:[(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:(0,n.jsx)(a.Typography.Text,{style:{marginRight:8},children:t(p.LoaderFiles.name)}),key:p.LoaderFiles.route,icon:(0,n.jsx)("img",{src:u,alt:"",style:{...y,width:16}}),children:[{label:t(p.LoaderTimeline.name),key:p.LoaderTimeline.route,icon:(0,n.jsx)(i.BarChartOutlined,{style:y})},{label:t(p.LoaderFiles.name),key:p.LoaderFiles.route,icon:(0,n.jsx)(i.MonitorOutlined,{style:y})}]},(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(p.ModuleResolve.name),key:p.ModuleResolve.route,icon:(0,n.jsx)(i.NodeIndexOutlined,{style:y})},(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(p.PluginsAnalyze.name),key:p.PluginsAnalyze.route,icon:(0,n.jsx)(i.ApiOutlined,{style:y})}].filter(e=>!!e)}),(0,f.hasBundle)(m)&&v.push({label:t(p.BundleSize.name),key:p.BundleSize.name,icon:(0,n.jsx)("span",{style:x,children:"\uD83D\uDCE6"}),children:[(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.BundleSize)&&{label:t(p.BundleSize.name),key:p.BundleSize.route,icon:(0,n.jsx)(i.FolderViewOutlined,{style:y})}].filter(e=>!!e)});let S=(0,n.jsx)(a.Menu,{items:v,mode:"horizontal",onClick:e=>{!e.keyPath.includes("builder-switcher")&&h(e.key)},overflowedIndicator:(0,n.jsx)(i.MenuOutlined,{}),style:{height:c.Size.NavBarHeight,lineHeight:`${c.Size.NavBarHeight}px`,...e.style},selectedKeys:["/"===r?d.route:r]},m.join(""));return v.length<=3||j?(0,n.jsx)(a.Col,{children:S}):(0,n.jsx)(a.Col,{xs:{span:3},md:{span:6},lg:{span:10},xl:{span:11},children:S})},fallbackComponent:()=>null})},747668:function(e,t,r){"use strict";r.r(t),r.d(t,{Progress:function(){return l}});var n=r("766791"),i=r("907366"),o=r("889702"),a=r("723854"),s=r("321217");let l=(0,s.withServerAPI)({api:o.SDK.ServerAPI.APIExtends.GetCompileProgess,responsePropName:"progress",Component:({progress:e})=>{if(!e)return null;let{percentage:t=1,message:r}=e;if(t>=1)return null;let o=+(100*t).toFixed(1);return(0,n.jsx)(i.Row,{wrap:!0,style:{width:"100%",position:"fixed",top:a.Size.NavBarHeight,left:1,zIndex:99},children:(0,n.jsx)(i.Col,{span:Math.min(Math.floor(24*t),24),children:(0,n.jsx)(i.Progress,{percent:100,status:"active",size:"small",format:()=>(0,n.jsx)(i.Typography.Text,{style:{fontSize:12},type:"secondary",children:`${o}% ${r}`})})})})},fallbackComponent:()=>null})},98159:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderFiles:function(){return y}});var n=r("766791"),i=r("911100"),o=r.n(i),a=r("667227"),s=r("907366"),l=r("537585"),u=r("889702"),c=r("321217"),d=r("723854"),f=r("373262"),h=r("576778"),p=r("674542"),g=r("289641"),m=r("74190");let y=e=>{let{cwd:t,filetree:r}=e,[y,x]=(0,i.useState)(!1),[v,j]=(0,i.useState)(""),[S,b]=(0,i.useState)(0),[_,C]=(0,i.useState)(null),w=(0,i.useRef)(null),{initMonaco:T}=(0,f.useMonacoEditor)(),P=(0,i.useCallback)(async()=>{await T(w)},[]),A=(0,i.useMemo)(()=>r.filter(t=>t.loaders.some(r=>(0,f.filterLoader)(t.path,r.loader,e.filename,e.loaders))),[e.filename,e.loaders]),I="__RESOURCEPATH__",M=(0,i.useMemo)(()=>(0,f.createFileStructures)({files:A.map(e=>e.path),cwd:t,fileTitle(t,i){let{loaders:o}=r.find(e=>e.path===t);return(0,n.jsxs)(s.Space,{style:{wordBreak:"break-all"},onClick:()=>{b(0),j(t),x(!0)},children:[(0,n.jsx)(g.Keyword,{text:i,keyword:e.filename}),(0,a.endsWith)(t,u.Constants.JSExtension)?(0,n.jsx)(c.ServerAPIProvider,{api:u.SDK.ServerAPI.API.GetLoaderFileFirstInput,body:{file:t},fallbackComponent:()=>null,children:e=>(0,n.jsx)(m.ECMAVersionDetectTag,{code:e})}):null,o.map((e,r)=>{let i=e.errors&&e.errors.length,o=`${t}_${e.loader}_${r}`;return(0,n.jsx)(s.Tooltip,{title:e.path,children:(0,n.jsxs)(s.Typography.Text,{code:!0,style:{color:i?"#f50":"inherit"},onClick:e=>{e.stopPropagation(),j(t),b(r),x(!0)},children:[(0,n.jsx)(s.Typography.Text,{style:{maxWidth:135,color:"inherit"},ellipsis:!0,children:e.loader}),(0,n.jsx)(s.Divider,{type:"vertical"}),i?(0,n.jsx)(l.CloseCircleOutlined,{}):(0,n.jsx)(s.Typography.Text,{strong:!0,children:(0,f.formatCosts)(e.costs)})]})},o)})]})},dirTitle:(t,r)=>(0,n.jsx)(g.Keyword,{text:r,keyword:e.filename})}),[A]);return(0,n.jsxs)(s.Row,{style:{width:"100%"},gutter:d.Size.BasePadding,children:[(0,n.jsx)(s.Col,{span:14,children:(0,n.jsxs)(s.Card,{title:(0,n.jsxs)(s.Typography.Text,{strong:!0,children:["Total Files: ",A.length]}),bodyStyle:{overflow:"scroll",maxHeight:700},children:[(0,n.jsx)(p.FileTree,{defaultExpandedKeys:(0,f.mapFileKey)(M,A.length>=100?3:4,e=>!((0,a.get)(e,I).indexOf("/node_modules/")>-1)),treeData:M,onSelect:(e,t)=>{P(),!t.node.isLeaf&&C(t.node)},selectedKeys:_?[_.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,n.jsx)(s.Drawer,{open:y,onClose:()=>x(!1),maskClosable:!0,width:d.drawerWidth,zIndex:999,bodyStyle:{padding:0},children:y?(0,n.jsx)(c.ServerAPIProvider,{api:u.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:v},children:e=>(0,n.jsx)(h.LoaderExecutions,{data:e,cwd:t,index:S})}):null})]})}),_?(0,n.jsx)(s.Col,{span:10,children:(0,n.jsx)(s.Card,{title:(0,n.jsx)(s.Tooltip,{title:o().cloneElement(_.title,{style:{color:"#fff"}}),children:(0,n.jsxs)(s.Typography.Text,{children:['Statistics of "',_.title,'"']})}),children:(0,n.jsx)(c.ServerAPIProvider,{api:u.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:_[I]},children:e=>(0,n.jsx)(s.Table,{style:{width:"100%",maxHeight:700,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,n.jsx)(s.Typography.Text,{strong:!0,children:(0,f.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e,footer:()=>(0,n.jsxs)(s.Descriptions,{title:"Total",bordered:!0,layout:"vertical",size:"small",children:[(0,n.jsx)(s.Descriptions.Item,{label:"loaders",children:e.length}),(0,n.jsx)(s.Descriptions.Item,{label:"files",children:(0,a.sumBy)(e,e=>e.files)}),(0,n.jsx)(s.Descriptions.Item,{label:"duration",children:(0,n.jsx)(s.Typography.Text,{strong:!0,children:(0,f.formatCosts)((0,a.sumBy)(e,e=>e.costs))})})]})})})})}):null]})}},934608:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderAnalysis:function(){return u}});var n=r("766791"),i=r("911100"),o=r("889702"),a=r("321217"),s=r("98159"),l=r("19492");let u=(0,a.withServerAPI)({api:o.SDK.ServerAPI.API.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:({cwd:e})=>{let[t,r]=(0,i.useState)({filename:"",loaders:[]});return(0,n.jsxs)("div",{children:[(0,n.jsx)(a.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,n.jsx)(l.LoaderCommonSelect,{onChange:e=>r(e),loaderNames:e})}),(0,n.jsx)(a.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetLoaderFileTree,children:r=>(0,n.jsx)(s.LoaderFiles,{filename:t.filename,filetree:r,loaders:t.loaders,cwd:e})})]})}})},576778:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderExecutions:function(){return j}});var n=r("766791"),i=r("537585"),o=r("972440"),a=r("889702"),s=r("907366"),l=r("770866"),u=r.n(l),c=r("667227"),d=r("911100"),f=r("723854"),h=r("373262"),p=r("794568"),g=r("8917"),m=r("817847"),y=r("767434"),x=r("986424");let v=({label:e,value:t,ellipsis:r=!1,...i})=>(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:6,children:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Badge,{status:"processing"}),(0,n.jsx)("div",{style:{width:180},children:(0,n.jsx)(s.Typography.Text,{strong:!0,code:!0,children:e})}),(0,n.jsx)(s.Divider,{type:"vertical"})]})}),(0,n.jsx)(s.Col,{span:18,children:(0,n.jsx)(s.Typography.Paragraph,{ellipsis:r,strong:!0,...i,children:t})})]}),j=({data:e,cwd:t,index:r})=>{let{loaders:l,resource:j}=e,[S,b]=(0,d.useState)(r||0),{theme:_}=(0,h.useTheme)(),C="light"===_,w=l[S],T=w.input||"",P=w.errors&&w.errors.length;return(0,n.jsxs)(s.Row,{style:{height:"100%"},children:[(0,n.jsx)(s.Col,{span:5,style:{borderRight:C?"1px solid #f0f0f0":void 0,padding:f.Size.BasePadding},children:(0,n.jsxs)(s.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(y.Title,{text:"Executions"}),(0,n.jsx)(s.Timeline,{mode:"left",style:{marginTop:f.Size.BasePadding},children:l.map((e,t,r)=>{let{loader:o,isPitch:a}=e;return(0,n.jsxs)(s.Timeline.Item,{dot:a?(0,n.jsx)(s.Tag,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,n.jsx)(i.ClockCircleOutlined,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,n.jsx)(s.Row,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,n.jsx)(s.Col,{span:24,children:(0,n.jsx)(s.Tooltip,{title:o,trigger:"hover",children:(0,n.jsx)(s.Button,{type:t===S?"primary":"default",block:!0,onClick:()=>{b(t)},style:{textAlign:"left"},children:(0,n.jsxs)(s.Typography.Text,{ellipsis:!0,style:{color:"inherit"},children:[(0,n.jsx)(s.Typography.Text,{strong:!0,style:{color:"inherit"},children:(0,h.formatCosts)(e.costs)}),(0,n.jsx)(s.Divider,{type:"vertical"}),o]})})})})}),t===r.length-1?null:(0,n.jsx)("div",{style:{paddingTop:10},children:(0,n.jsx)(s.Typography.Text,{children:"\u2B07\uFE0F"})})]},t)})})]})}),(0,n.jsxs)(s.Col,{span:19,style:{height:"100%"},children:[(0,n.jsx)(s.Col,{span:24,children:(0,n.jsxs)(p.Card,{title:"Loader Details",style:{border:"none"},collapsable:!0,defaultCollapsed:!0,extra:(0,n.jsx)(s.Tag,{icon:(0,n.jsx)(i.ClockCircleOutlined,{}),color:"default",children:u()(w.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:[w.isPitch?(0,n.jsx)(s.Typography.Text,{code:!0,children:"pitch"}):null,w.isPitch||P||!(0,c.endsWith)(j.path,a.Constants.JSExtension)?null:(0,n.jsx)(x.JSIsEqualTag,{input:T,output:w.result||""}),(0,n.jsxs)(s.Space,{direction:"vertical",style:{padding:f.Size.BasePadding,wordBreak:"break-all"},children:[(0,n.jsx)(v,{label:"file path",value:(0,h.beautifyPath)(j.path,t),code:!0}),(0,n.jsx)(v,{label:"resource path",value:(0,n.jsx)(m.CodeOpener,{cwd:t,url:j.path,loc:"",disabled:!0})}),(0,n.jsx)(v,{label:"resource query",value:j.queryRaw||"-"}),(0,n.jsx)(v,{label:"duration",value:(0,h.formatCosts)(w.costs),mark:!0}),(0,n.jsx)(v,{label:"loader name",value:w.loader,code:!0}),(0,n.jsx)(v,{label:"loader index",value:`${w.loaderIndex}`}),(0,n.jsx)(v,{label:"loader path",value:(0,n.jsx)(m.CodeOpener,{cwd:t,url:w.path,loc:"",disabled:!0})}),(0,n.jsx)(v,{label:"options",value:JSON.stringify(w.options||"-"),copyable:!0,ellipsis:{rows:2,expandable:!0,symbol:"more"}})]})]})}),P?(0,n.jsxs)(s.Col,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsx)("div",{style:{padding:f.Size.BasePadding,borderTop:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,n.jsx)(y.Title,{text:`the error stack of [${w.loader}] ${w.isPitch?"pitch":""}`})}),(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(o.default,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},lineNumbers:"off"},value:w.errors[0].message,language:"javascript"})})]}):(0,n.jsxs)(s.Col,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsx)("div",{style:{padding:f.Size.BasePadding,borderTop:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,n.jsx)(y.Title,{text:`the result of [${w.loader}] ${w.isPitch?"pitch":""}`})}),w.isPitch?w.result?(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(o.default,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,formatOnType:!0,formatOnPaste:!0},value:w.result,language:(0,h.getModifiedLanguage)(j.path)})}):(0,n.jsx)(s.Empty,{}):(0,n.jsxs)("div",{style:{height:"90%"},children:[(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:12,style:{padding:`${f.Size.BasePadding/2}px ${f.Size.BasePadding}px`},children:(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Input"})}),(0,n.jsx)(s.Col,{span:12,style:{padding:`${f.Size.BasePadding/2}px ${f.Size.BasePadding}px`},children:(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Output"})})]}),(0,n.jsx)("div",{style:{height:"86%"},children:(0,n.jsx)(g.DiffViewer,{filepath:j.path,before:T,after:w.result||""})})]})]})]})]})}},752179:function(e,t,r){"use strict";r.r(t),r.d(t,{ServerAPIProvider:function(){return d},withServerAPI:function(){return f}});var n=r("766791"),i=r("889702"),o=r("907366"),a=r("911100"),s=r("667227"),l=r("373262"),u=r("723854"),c=r("504285");let d=e=>{let{manifestLoader:t=l.fetchManifest,api:r,children:d,body:f=null,showSkeleton:h=!0,fallbackComponent:p}=e,g=t(),[m,y]=(0,a.useState)(),[x,v]=(0,a.useState)(u.ComponentState.Pending),[j,S]=(0,a.useState)({}),{loader:b}=(0,l.useDataLoader)(m);function _(e){(function(e){return e.then(e=>{y(e)}).catch(e=>{throw v(u.ComponentState.Fail),e})})(g).then(()=>{(function(e){if(!e)return;let t=(0,s.values)(i.SDK.ServerAPI.APIExtends);if((0,s.includes)(t,r)){v(u.ComponentState.Success);return}e.loadAPI(r,f).then(e=>{!(0,s.isNil)(e)&&(S(e),v(u.ComponentState.Success))}).catch(e=>{console.error(e),v(u.ComponentState.Fail)})})(e)})}let C=(0,a.useCallback)(({req:e,res:t})=>{e.api===r&&((0,s.isEqual)(e.body,f)||(0,s.isNil)(e.body)&&(0,s.isNil)(f))&&!(0,s.isEqual)(j,t)&&S(t),v(u.ComponentState.Success)},[j,r,f]);(0,a.useEffect)(()=>{_(b)},[b,r,f]),(0,a.useEffect)(()=>{if(b)return b.onDataUpdate(r,C),()=>{b.removeOnDataUpdate(r,C)}},[b,r,f]);if(x===u.ComponentState.Pending)return h?(0,n.jsx)(o.Skeleton,{active:!0}):null;if(x===u.ComponentState.Fail)return p?p:(0,n.jsx)(c.FailedStatus,{retry:()=>{v(u.ComponentState.Pending),g=t(),_()}});return x===u.ComponentState.Updating?(0,n.jsx)(o.Spin,{spinning:!0,children:d(j)}):d(j)};function f({Component:e,api:t,responsePropName:r,body:i,fallbackComponent:o,showSkeleton:a}){return function(s){let{body:l=i,...u}=s;return(0,n.jsx)(d,{api:t,body:l,showSkeleton:a,fallbackComponent:o,children:t=>{let i={...u,[r]:t};return(0,n.jsx)(e,{...i})}})}}},493338:function(e,t,r){"use strict";r.r(t),r("766791"),r("911100"),r("373262"),r("723854"),r("504285")},321217:function(e,t,r){"use strict";r.r(t);var n=r("493338");r.es(n,t);var i=r("752179");r.es(i,t)},449537:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeOpener:function(){return c}});var n=r("766791"),i=r("907366"),o=r("918300"),a=r.n(o),s=r("667227"),l=r("302515");let u=+Date.now().toString().slice(-4)+1e3,c=({cwd:e,url:t,loc:r,windowId:o=u,label:c,disabled:d,code:f=!1})=>{let h=a().resolve(e,function(e){let t=e.split(" "),r="";return 1===t.length?[r]=t:[r]=t.filter(e=>a().isAbsolute(e)||(0,s.startsWith)(e,"./")),r||e}(t)),{line:p,columnStart:g}=function(e){if(!e)return{line:1,column:1};let[t,r=""]=e.split(":"),[n=1,i]=r.split("-");return{line:t,columnStart:n,columnEnd:i||n}}(r);return(0,n.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,n.jsx)(i.Typography.Text,{copyable:{text:h},children:(0,n.jsxs)(i.Typography.Text,{code:f,onClick:()=>{!d&&(0,l.openVSCode)({file:h,line:p,column:g,windowId:o})},style:{cursor:d?"revert":"pointer"},children:[c||t,r?`:${r}`:""]})}),(0,n.jsx)("div",{style:{display:"inline-block"}})]})}},817847:function(e,t,r){"use strict";r.r(t);var n=r("449537");r.es(n,t);var i=r("302515");r.es(i,t)},302515:function(e,t,r){"use strict";r.r(t),r.d(t,{openVSCode:function(){return i}}),r("766791");var n=r("667227");function i({file:e,line:t=1,column:r=1,windowId:i}){let o={windowId:i},a=Object.keys(o).map(e=>{let t=o[e];return(0,n.isNil)(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),s=`vscode://file/${e}:${t}:${r}`;a&&(s+=`?${a}`),window.open(s)}},926499:function(e,t,r){"use strict";r.r(t),r.d(t,{NumberButton:function(){return a}});var n=r("766791"),i=r("907366"),o=r("985630");let a=({theme:e,number:t,onClick:r,description:a,numberFontSize:s})=>{let l={success:{number:o.default.successNumber,button:o.default.successButton,description:o.default.successText},error:{number:o.default.errorNumber,button:o.default.errorButton,description:o.default.errorText},warning:{number:o.default.warningNumber,button:o.default.warningButton,description:o.default.warningText}};return(0,n.jsxs)(i.Button,{type:"text",className:l[e].button,onClick:r,children:[(0,n.jsx)(i.Typography.Text,{className:l[e].number,style:{fontSize:s},children:t}),(0,n.jsx)("div",{className:l[e].description,children:a})]})}},985630:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("404183");var n={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"}},324543:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleOverall:function(){return j}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("889702"),s=r("537585"),l=r("336873"),u=r("373262"),c=r("943436"),d=r("794568"),f=r("321217"),h=r("674542"),p=r("727323"),g=r("566448"),m=r("985630"),y=r("926499");let x=e=>{let t=(0,o.useMemo)(()=>e.files.length?(0,u.createFileStructures)({files:e.files.map(e=>e.path),fileTitle(t,r){let{size:o,initial:a}=e.files.find(e=>e.path===t);return(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{children:r}),(0,n.jsx)(i.Tag,{color:"success",style:{marginRight:0},children:(0,u.formatSize)(o)}),a?(0,n.jsx)(i.Tag,{color:"cyan",children:"Initial"}):null]})}}):[],[e.files]);return(0,n.jsx)(n.Fragment,{children:e.files.length?(0,n.jsx)(c.TextDrawer,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},text:(0,n.jsxs)(n.Fragment,{children:[e.count," ",(0,n.jsx)(s.ExceptionOutlined,{})]}),children:(0,n.jsx)(h.FileTree,{treeData:t,defaultExpandAll:!0})}):e.count})},v=({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:x(e.js.total)},{key:"js-files-size",label:"JS size",children:(0,u.formatSize)(e.js.total.size)},{key:"css-files-count",label:"CSS files",children:x(e.css.total)},{key:"css-files-size",label:"CSS size",children:(0,u.formatSize)(e.css.total.size)},{key:"font-files-count",label:"Font files",children:x(e.fonts.total)},{key:"font-files-size",label:"Font size",children:(0,u.formatSize)(e.fonts.total.size)},{key:"html-files-count",label:"HTML files",children:x(e.html.total)},{key:"html-files-size",label:"HTML size",children:(0,u.formatSize)(e.html.total.size)},{key:"image-files-count",label:"Image files",children:x(e.imgs.total)},{key:"image-files-size",label:"Image size",children:(0,u.formatSize)(e.imgs.total.size)},{key:"media-files-count",label:"Media files",children:x(e.media.total)},{key:"media-files-size",label:"Media size",children:(0,u.formatSize)(e.media.total.size)}];return(0,n.jsx)(i.Descriptions,{className:p.default.root,size:"small",column:2,items:t})},j=({errors:e,cwd:t})=>{let{t:r}=(0,u.useI18n)(),o=(0,l.useNavigate)(),s=(0,u.useDuplicatePackagesByErrors)(e);return(0,n.jsx)(f.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let l=(0,u.formatSize)(e.all.total.size);return(0,n.jsxs)(d.Card,{title:r("Bundle Overall"),className:g.default.card,children:[(0,n.jsxs)(i.Row,{gutter:16,children:[(0,n.jsx)(i.Col,{span:12,className:m.default.container,children:(0,n.jsx)(y.NumberButton,{theme:"success",number:l,description:"Total Size",numberFontSize:"30px",onClick:()=>{o(a.Client.RsdoctorClientRoutes.BundleSize)}})}),(0,n.jsx)(i.Col,{span:12,className:m.default.container,children:(0,n.jsx)(c.DuplicatePackageDrawerWithServer,{cwd:t,duplicatePackages:s,button:(0,n.jsx)(y.NumberButton,{theme:0===s.length?"success":"warning",number:s.length,description:"Duplicate Packages"})})})]}),(0,n.jsx)(v,{res:e})]})}})}},566448:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("563296");var n={card:"card_3bba1"}},956914:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileOverall:function(){return g}});var n=r("766791"),i=r("534851"),o=r("907366"),a=r("373262"),s=r("794568"),l=r("685394"),u=r("682508"),c=r("388558"),d=r("566448"),f=r("458017");let h=({children:e,name:t,showDivider:r=!0})=>(0,n.jsxs)(o.Typography.Text,{style:{color:"inherit"},children:[(0,n.jsx)(o.Typography.Text,{style:{color:"inherit"},children:t}),r?(0,n.jsx)(o.Divider,{type:"vertical"}):null,e]}),p=e=>e<33.3?{"0%":"#95de64","100%":"#5cdbd3"}:{"0%":"#ff9c6e","100%":"#ff7875"},g=({summary:e})=>{let{t}=(0,a.useI18n)();if(!e?.costs?.length)return null;let r=Math.max(...e.costs.map(e=>e.costs));return(0,n.jsx)(s.Card,{title:t("Compile Overall"),className:d.default.card,children:(0,n.jsx)(o.Space,{style:{wordBreak:"break-all",width:"100%"},size:20,direction:"vertical",children:e.costs.map(t=>{let{name:s,costs:d}=t,g=100*d/r,m=(0,n.jsx)(o.Progress,{className:f.default.progress,percent:g,status:"normal",strokeColor:p(g),format:()=>(0,a.formatCosts)(d)});switch(s){case i.Summary.SummaryCostsDataName.Bootstrap:return(0,n.jsxs)(h,{name:"Bootstrap ~ BeforeCompile",children:[(0,n.jsx)(l.BootstrapChartContainer,{summary:e}),m]},s);case i.Summary.SummaryCostsDataName.Compile:return(0,n.jsx)(h,{name:"Compile",showDivider:!1,children:m},s);case i.Summary.SummaryCostsDataName.Done:return(0,n.jsxs)(h,{name:"AfterCompile ~ Done",children:[(0,n.jsx)(u.DoneChartContainer,{summary:e}),m]},s);case i.Summary.SummaryCostsDataName.Minify:return(0,n.jsxs)(h,{name:"Minify",children:[(0,n.jsx)(c.MinifyChartContainer,{summary:e}),m]},s);default:return null}})})})}},458017:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("629247");var n={progress:"progress_61324"}},580778:function(e,t,r){"use strict";r.r(t);var n=r("324543");r.es(n,t);var i=r("956914");r.es(i,t);var o=r("992461");r.es(o,t)},727323:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("192828");var n={root:"root_17e15"}},992461:function(e,t,r){"use strict";r.r(t),r.d(t,{ProjectOverall:function(){return g}});var n=r("766791"),i=r("907366"),o=r("667227"),a=r("373262"),s=r("857238"),l=r("794568"),u=r("727323"),c=r("566448"),d=r("985630"),f=r("943436"),h=r("98394"),p=r("926499");let g=({configs:e=[],cwd:t,envinfo:r,alerts:g=[]})=>{let{t:m}=(0,a.useI18n)(),y=(0,o.filter)(g,e=>"warn"===e.level).length,x=g.length-y,v=[...Object.keys(r).map(e=>{let t=/Version$/,n=t.test(e);return{key:e,label:n?e.replace(t,""):e,children:r?r[e]:void 0}}),...e.filter(e=>!!e.version).map(e=>{let{name:t,version:r}=e;return{key:t,label:t,children:r}}),{key:"cwd",label:"cwd",children:t}];return(0,n.jsxs)(l.Card,{title:m("Project Overall"),extra:(0,n.jsx)(s.WebpackConfigurationViewer,{}),className:c.default.card,children:[(0,n.jsxs)(i.Row,{gutter:16,children:[(0,n.jsx)(i.Col,{span:12,className:d.default.container,children:(0,n.jsx)(f.TextDrawer,{button:(0,n.jsx)(p.NumberButton,{theme:0===x?"success":"error",number:x,description:"Errors"}),drawerProps:{title:"Errors List"},children:(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(h.OverlayAlertsWithTips,{defaultOpen:!1}),(0,n.jsx)(h.BundleAlerts,{filter:e=>"error"===e.level}),(0,n.jsx)(h.CompileAlerts,{filter:e=>"error"===e.level})]})})}),(0,n.jsx)(i.Col,{span:12,className:d.default.container,children:(0,n.jsx)(f.TextDrawer,{button:(0,n.jsx)(p.NumberButton,{theme:0===y?"success":"warning",number:y,description:"Warnings"}),drawerProps:{title:"Warnings List"},children:(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(h.OverlayAlertsWithTips,{defaultOpen:!1}),(0,n.jsx)(h.BundleAlerts,{filter:e=>"warn"===e.level}),(0,n.jsx)(h.CompileAlerts,{filter:e=>"warn"===e.level})]})})})]}),(0,n.jsx)(i.Descriptions,{className:u.default.root,items:v,size:"small",column:1})]})}},153218:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackPluginsDataTable:function(){return s}});var n=r("766791");r("911100");var i=r("907366"),o=r("667227"),a=r("373262");let s=({dataSource:e})=>(0,n.jsx)(i.Table,{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,n.jsx)(i.Tooltip,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>(0,a.formatCosts)((0,o.sumBy)(t.data,e=>e.costs)),sorter:(e,t)=>(0,o.sumBy)(e.data,e=>e.costs)-(0,o.sumBy)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},397991:function(e,t,r){"use strict";r.r(t),r.d(t,{ResolverAnalysis:function(){return v}});var n=r("766791"),i=r("911100"),o=r.n(i),a=r("667227"),s=r("907366"),l=r("537585"),u=r("534851"),c=r("889702"),d=r("723854"),f=r("373262"),h=r("674542"),p=r("792489"),g=r("8917"),m=r("321217");let y=({filepath:e,before:t,after:r,resolvers:a})=>{let[c,d]=(0,i.useState)(!1);return(0,n.jsxs)(o().Fragment,{children:[(0,n.jsx)(s.Col,{flex:1,children:(0,n.jsx)(s.Card,{title:"Resolve Diff Viewer",children:(0,n.jsx)(g.DiffViewer,{filepath:e,before:t,after:r,editorProps:{height:735}})})}),(0,n.jsx)(s.Col,{span:c?2:7,children:(0,n.jsx)(s.Card,{title:c?"...":"Resolve Details",extra:(0,n.jsx)(s.Button,{onClick:()=>d(!c),size:"small",icon:c?(0,n.jsx)(l.MenuFoldOutlined,{}):(0,n.jsx)(l.MenuUnfoldOutlined,{})}),style:c?{width:80}:void 0,children:c?null:(0,n.jsx)(s.Table,{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,n.jsx)(s.Typography.Text,{copyable:!0,children:(0,n.jsx)(s.Typography.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,n.jsx)(s.Typography.Text,{strong:!0,children:(0,f.formatCosts)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>u.Resolver.isResolveSuccessData(t)?(0,n.jsx)(s.Typography.Text,{copyable:!0,children:t.result}):(0,n.jsx)(l.CloseCircleOutlined,{style:{color:"#f50"}})}],dataSource:a})})})]})},x=e=>{let{resolver:t,cwd:r}=e,[o,l]=(0,i.useState)(""),u="/node_modules/",p=(0,i.useMemo)(()=>(0,a.map)(t,e=>e.issuerPath).filter(Boolean),[t]),g=(0,i.useMemo)(()=>p.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,p]),x=g.length&&g.every(e=>e.indexOf(u)>-1),v=(0,i.useMemo)(()=>(0,f.createFileStructures)({files:g.length?g:p,cwd:r,fileTitle:(e,t)=>(0,n.jsx)("div",{onClick:()=>l(e),children:t})}),[e.filename]);return(0,n.jsxs)(s.Row,{justify:"start",align:"top",wrap:!1,gutter:d.Size.BasePadding,children:[(0,n.jsx)(s.Col,{span:7,children:(0,n.jsx)(s.Card,{title:"Files",children:(0,n.jsx)(h.FileTree,{style:{width:"100%",height:735,overflow:"scroll"},treeData:v,defaultExpandedKeys:(0,f.mapFileKey)(v,x?1:4,x?void 0:e=>{let t=(0,a.get)(e,"__RESOURCEPATH__").indexOf(u)>-1;return!!(g.length&&g.every(e=>e.indexOf(u)>-1))||!t})},`tree_${e.filename}`)})}),o&&(0,n.jsx)(m.ServerAPIProvider,{api:c.SDK.ServerAPI.API.GetResolverFileDetails,body:{filepath:o},children:e=>(0,n.jsx)(y,{...e})})]})},v=(0,m.withServerAPI)({api:c.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[r,o]=(0,i.useState)("");return(0,n.jsxs)("div",{style:{width:"100%"},children:[(0,n.jsx)(s.Space,{style:{marginTop:d.Size.BasePadding,marginBottom:d.Size.BasePadding},children:(0,n.jsx)(p.KeywordInput,{icon:(0,n.jsx)(l.FileSearchOutlined,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>o(e)})}),(0,n.jsx)(m.ServerAPIProvider,{api:c.SDK.ServerAPI.API.GetResolverFileTree,children:e=>(0,n.jsx)(x,{filename:r,resolver:e,cwd:t})})]})}})},19492:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderCommonSelect:function(){return c}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("537585"),s=r("792489"),l=r("723854");let u=({style:e,onChange:t,loaderNames:r})=>{let[s,l]=(0,i.useState)([]);return(0,n.jsxs)(o.Input.Group,{compact:!0,style:e,children:[(0,n.jsxs)(o.Button,{style:{width:120},children:[(0,n.jsx)(a.SelectOutlined,{}),(0,n.jsx)(o.Typography.Text,{children:"Loaders"})]}),(0,n.jsx)(o.Select,{mode:"multiple",allowClear:!0,defaultValue:s,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"select loaders",onChange:e=>{l(e),t(e)},children:r.map(e=>(0,n.jsx)(o.Select.Option,{label:e,value:e,children:e},e))})]})},c=({onChange:e,loaderNames:t})=>{let[r,c]=(0,i.useState)([]),[d,f]=(0,i.useState)("");return(0,i.useEffect)(()=>{e({loaders:r,filename:d})},[r,d]),(0,n.jsxs)(o.Space,{style:{marginBottom:l.Size.BasePadding},children:[(0,n.jsx)(u,{loaderNames:t,style:{marginRight:l.Size.BasePadding-8},onChange:e=>{c(e)}}),(0,n.jsx)(s.KeywordInput,{icon:(0,n.jsx)(a.FileSearchOutlined,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>{f(e)}})]})}},121772:function(e,t,r){"use strict";r.r(t),r.d(t,{FailedStatus:function(){return u}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r.n(o);let s="Load data failed, please try again",l="retry",u=a().memo(({title:e=s,buttonText:t=l,retry:r})=>(0,n.jsx)(i.Empty,{description:(0,n.jsxs)(i.Space,{direction:"vertical",children:[(0,n.jsx)(i.Typography.Text,{children:e}),(0,n.jsx)(i.Button,{type:"primary",onClick:()=>{r()},children:t})]})}))},504285:function(e,t,r){"use strict";r.r(t);var n=r("121772");r.es(n,t)},854026:function(e,t,r){"use strict";r.r(t),r.d(t,{DuplicatePackageDrawerWithServer:function(){return c}});var n=r("766791"),i=r("907366");r("889702");var o=r("537585");r("534851");var a=r("723854"),s=r("943436"),l=r("981328");r("321217");let u=({duplicatePackages:e=[],cwd:t,children:r,...u})=>(0,n.jsx)(s.TextDrawer,{...u,buttonStyle:{fontSize:"inherit",...u.buttonStyle},buttonProps:{type:"text",...u.buttonProps},text:(0,n.jsx)(i.Tooltip,{title:"Click to show the details of duplicate packages",children:(0,n.jsxs)(i.Space,{style:{fontSize:"inherit"},children:[(0,n.jsx)(i.Typography.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...u.textStyle},children:e.length}),(0,n.jsx)(o.ExceptionOutlined,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...u.drawerProps},children:(0,n.jsx)(i.Row,{gutter:[a.Size.BasePadding,a.Size.BasePadding],children:e.map((e,o)=>(0,n.jsx)(i.Col,{span:24,children:(0,n.jsx)(l.PackageRelationAlert,{data:e,cwd:t,getPackageRelationContentComponent:r})},o))})}),c=e=>(0,n.jsx)(u,{...e,children:t=>(0,n.jsx)(l.PackageRelationReasonsWithServer,{body:{id:t.data.id,target:t.package.target},cwd:e.cwd})})},943436:function(e,t,r){"use strict";r.r(t),r.d(t,{TextDrawer:function(){return u}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r.n(o),s=r("723854"),l=r("854026");r.es(l,t);let u=e=>{let[t,r]=(0,o.useState)(!1);return(0,n.jsxs)(a().Fragment,{children:[e.button?(0,n.jsx)("div",{onClick:()=>r(!t),children:e.button}):(0,n.jsx)(i.Button,{type:"link",...e.buttonProps,onClick:()=>r(!t),style:{padding:0,...e.buttonStyle},children:e.text}),(0,n.jsx)(i.Drawer,{maskClosable:!0,width:s.drawerWidth,zIndex:999,...e.drawerProps,open:t,onClose:()=>r(!1),destroyOnClose:!0,children:e.children})]})}},767434:function(e,t,r){"use strict";r.r(t),r.d(t,{Title:function(){return a}});var n=r("766791"),i=r("907366"),o=r("667227");let a=({upperFisrt:e=!0,fontSize:t=16,text:r,hash:a})=>{let s="string"==typeof r&&e?(0,o.upperFirst)(r):r;return(0,n.jsx)(i.Typography.Text,{style:{fontSize:t},strong:!0,children:a?(0,n.jsx)("a",{href:a,id:a.replace(/^#/,""),style:{color:"inherit"},children:s}):s})}},415191:function(e,t,r){"use strict";r.r(t);var n=r("254722");r.es(n,t);var i=r("98394");r.es(i,t);var o=r("972519");r.es(o,t);var a=r("794568");r.es(a,t);var s=r("8917");r.es(s,t);var l=r("967079");r.es(l,t);var u=r("580778");r.es(u,t),r("372531")},74190:function(e,t,r){"use strict";r.r(t),r.d(t,{ECMAVersionDetectTag:function(){return c}});var n=r("766791"),i=r("911100"),o=r("972519"),a=r("226035"),s=r("630212");let l=()=>new Worker(new URL(r.p+r.u("952"),r.b)),u={[a.ECMAVersion.ES5]:o.BadgeColorMap[o.BadgeType.Success],[a.ECMAVersion.ES6]:o.BadgeColorMap[o.BadgeType.Error],[a.ECMAVersion.ES7P]:o.BadgeColorMap[o.BadgeType.Error]},c=({code:e})=>{if(!e)return null;let{version:t}=function(e){let{code:t}=e,[r,n]=(0,i.useState)();return(0,i.useEffect)(()=>{if(!t)return;let{abort:e}=s.master.detectWorker(l).emit(t,e=>{n(e)});return()=>{e()}},[t]),{version:r}}({code:e});return t?(0,n.jsx)("div",{style:{display:"inline-block",height:19.5,padding:"0px 4px",width:40,fontSize:10,lineHeight:"19.5px",textAlign:"center",color:"#fff",background:u[t]||o.BadgeColorMap[o.BadgeType.Default],borderRadius:4},children:t}):null}},986424:function(e,t,r){"use strict";r.r(t),r.d(t,{JSIsEqualTag:function(){return u}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("630212"),s=r("373262");let l=()=>new Worker(new URL(r.p+r.u("258"),r.b)),u=({input:e,output:t})=>{if(!e||!t)return null;let{isEqual:r}=function(e){let{input:t,output:r}=e,[n,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!t||!r)return;let{abort:e}=a.master.detectWorker(l).emit({input:t,output:r},e=>{o(e)});return()=>{e()}},[t,r]),{isEqual:n}}({input:e,output:t}),{t:u}=(0,s.useI18n)();return r?(0,n.jsx)(o.Tag,{color:"warning",children:u("the file content not changed after transpiled by this loader")}):null}},136795:function(e,t,r){"use strict";r.r(t),r.d(t,{ConfigContext:function(){return s},defaultConfig:function(){return a}});var n=r("911100"),i=r("423453"),o=r("723854");let a={locale:(0,i.getLocaleFromStorage)(),theme:(0,i.getThemeFromStorage)(),pageState:o.PageState.Pending,viewMode:(0,i.getViewModeFromStorage)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},s=(0,n.createContext)({...a})},723854:function(e,t,r){"use strict";r.r(t),r.d(t,{APILoaderMode4Dev:function(){return m},Color:function(){return x},ComponentState:function(){return h},Language:function(){return g},MAIN_BG:function(){return S},PageState:function(){return f},ROOT_BG_COLOR:function(){return b},Size:function(){return y},TAG_PALLETE:function(){return j},Theme:function(){return d},ViewMode:function(){return p},drawerWidth:function(){return v}});var n,i,o,a,s,l,u,c,d=((n=d||{}).Light="light",n.Dark="dark",n);var f=((i=f||{})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Fail=2]="Fail",i);var h=((o=h||{})[o.Success=0]="Success",o[o.Pending=1]="Pending",o[o.Updating=2]="Updating",o[o.Fail=3]="Fail",o);var p=((a=p||{}).List="list",a.Group="group",a);var g=((s=g||{}).Cn="cn",s.En="en",s);var m=((l=m||{}).Local="local",l.Remote="remote",l.Default="default",l);var y=((u=y||{})[u.BasePadding=24]="BasePadding",u[u.BaseBorderRadius=8]="BaseBorderRadius",u[u.NavBarHeight=54]="NavBarHeight",u);var x=((c=x||{}).Red="#e17055",c.Green="#52c41a",c.Yellow="#faad14",c.Blue="#1677ff",c);let v="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100,j={COLOR_A:"#90DCE9",COLOR_B:"green",COLOR_C:"#4EAAB9",COLOR_D:"#B7E9F4",COLOR_E:"#2E7CBE",DARK_BLUE:"#1554ad"},S="",b="rgb(105, 177, 255)"},435067:function(e,t,r){"use strict";r.r(t),r.d(t,{Constants:function(){return o}});var n=r("415191");r.es(n,t);var i=r("373262");r.es(i,t);var o=r("723854")},276933:function(e,t,r){"use strict";r.r(t),r.d(t,{AssetDetail:function(){return A}});var n=r("766791"),i=r("537585"),o=r("972440"),a=r("889702"),s=r("907366"),l=r("667227"),u=r("918300"),c=r("911100"),d=r("321217"),f=r("62414"),h=r("972519"),p=r("674542"),g=r("792489"),m=r("289641"),y=r("943436"),x=r("723854"),v=r("373262"),j=r("318230");let S=[],b={source:"source code",transformed:"Transformed Code (After compile)",parsedSource:"Bundled Code (After bundle and tree-shaking)"},_={margin:"none",marginInlineEnd:0},C=({data:e})=>{let[t,r]=(0,c.useState)("source"),{t:u}=(0,v.useI18n)(),f={source:"Source Code",transformed:`Transformed Code(${u("After Compile")})`,parsedSource:`Bundled Code(${u("After Bundled")})`};if(!e)return null;let{path:h}=e;return(0,n.jsx)(y.TextDrawer,{text:"",buttonProps:{size:"small",icon:(0,n.jsx)(i.CodepenCircleOutlined,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${h}"`},children:(0,n.jsx)(d.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:e.id},children:e=>(0,n.jsx)(n.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,n.jsx)(s.Card,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,l.omitBy)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:f[e.tab],key:e.tab})),onTabChange:e=>r(e),tabBarExtraContent:(0,n.jsx)(s.Popover,{placement:"bottom",title:(0,n.jsx)(s.Typography.Title,{level:5,children:"Explain"}),content:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Source: "}),(0,n.jsx)(s.Typography.Text,{children:b.source})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Transformed: "}),(0,n.jsx)(s.Typography.Text,{children:b.transformed})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Bundled Source: "}),(0,n.jsx)(s.Typography.Text,{children:b.parsedSource})]}),(0,n.jsx)("br",{}),(0,n.jsx)(s.Typography.Text,{strong:!0,children:"More"}),(0,n.jsx)(s.Typography.Text,{children:u("CodeModeExplain")})]})}),trigger:"hover",children:(0,n.jsx)("a",{href:"#",children:"Explain"})}),children:(0,n.jsx)(o.default,{theme:"vs-dark",language:(0,v.getOriginalLanguage)(h),height:window.innerHeight/1.5,value:e[t],options:{readOnly:!0,domReadOnly:!0,fontSize:14,wordWrap:"bounded",minimap:{enabled:!1}}})}):(0,n.jsx)(s.Empty,{description:"No Code. Rspack builder not support code yet. And if you upload the stats.json to analysis, it's also no code to show."})})})})},w=({id:e,show:t,setShow:r,cwd:i})=>e?(0,n.jsx)(s.Drawer,{open:t,maskClosable:!0,width:x.drawerWidth,onClose:()=>r(!1),children:(0,n.jsx)(d.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:t=>(0,n.jsx)(f.ModuleAnalyzeComponent,{cwd:i,moduleId:e,modules:t})})}):null,T="__RESOURCEPATH__",P=({modules:e,chunks:t,filteredModules:r})=>{let{sourceSize:o,parsedSize:a,filteredParsedSize:u,filteredSourceSize:d}=(0,c.useMemo)(()=>({sourceSize:(0,l.sumBy)(e,e=>e.size.sourceSize),parsedSize:(0,l.sumBy)(e,e=>e.size.parsedSize),filteredSourceSize:(0,l.sumBy)(r,e=>e.size.sourceSize),filteredParsedSize:(0,l.sumBy)(r,e=>e.size.parsedSize)}),[e,r]);return(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Tooltip,{title:`total modules count is ${e.length}, the filtered modules count is ${r.length}`,children:(0,n.jsxs)(s.Space,{children:[(0,n.jsxs)(s.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",r.length," / ",e.length]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})}),(0,n.jsx)(s.Divider,{type:"vertical"}),(0,n.jsx)(s.Tooltip,{title:(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,v.formatSize)(a)]}),(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,v.formatSize)(o)]}),(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,v.formatSize)(u)]}),(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,v.formatSize)(d)]})]}),children:(0,n.jsxs)(s.Space,{children:[(0,n.jsxs)(s.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:"," ",u===a?(0,v.formatSize)(a):`${(0,v.formatSize)(u)} / ${(0,v.formatSize)(a)}`]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})}),(0,n.jsx)(s.Divider,{type:"vertical"}),(0,n.jsx)(s.Tooltip,{title:(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["this asset includes ",t.length," chunks: "]}),t.map(e=>(0,n.jsx)(h.Badge,{label:"chunk",value:e.name},e.name))]}),children:(0,n.jsxs)(s.Space,{children:[(0,n.jsxs)(s.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",t.length]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})})]})},A=({asset:e,chunks:t,modules:r,moduleSizeLimit:o,height:d,root:f})=>{let[h,y]=(0,c.useState)(""),[b,A]=(0,c.useState)(!1),[I,M]=(0,c.useState)([]),[D,k]=(0,c.useState)(!1),E=(0,c.useMemo)(()=>{let e=r.slice();if(h){let t=RegExp(h,"i");e=e.filter(e=>t.test(e.path))}return o&&(e=e.filter(e=>e.size.parsedSize>=o)),e},[r,h,o]),O=(0,c.useMemo)(()=>(0,v.createFileStructures)({files:E.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:T,fileTitle(e,t){let o=E.find(t=>t.path===e);if(!o)return t;let{parsedSize:l=0,sourceSize:c=0}=o.size,d=o.kind===a.SDK.ModuleKind.Concatenation,f=!d&&0===l&&r.filter(e=>e!==o&&e.modules&&e.modules.indexOf(o.id)>-1);return(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(m.Keyword,{ellipsis:!0,style:{maxWidth:500},text:t,keyword:h}),0!==l?(0,n.jsx)(s.Tooltip,{title:(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsx)(s.Tag,{color:"orange",children:"Bundled Size:"+(0,v.formatSize)(l)}),(0,n.jsx)(s.Tag,{color:"volcano",children:"Source Size:"+(0,v.formatSize)(c)})]}),color:"white",children:(0,n.jsx)(s.Tag,{color:"purple",style:_,children:"Bundled: "+(0,v.formatSize)(l)})}):0!==c?(0,n.jsx)(s.Tag,{color:"geekblue",children:"Source Size:"+(0,v.formatSize)(c)}):null,d?(0,n.jsx)(s.Tooltip,{title:(0,n.jsx)(s.Space,{children:(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["this is a concatenated module, it contains ",o.modules?.length," modules"]})}),children:(0,n.jsx)(s.Tag,{color:"green",style:_,children:"concatenated"})}):null,f&&f.length?(0,n.jsx)(s.Tooltip,{title:(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsx)(s.Typography.Text,{style:{color:"inherit"},children:"this is a concatenated module, it is be contained in these modules below:"}),f.map(({id:e,path:t})=>{if((0,v.isJsDataUrl)(t))return(0,n.jsx)(s.Typography.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:t},e);let r=(0,u.relative)((0,u.dirname)(o.path),t);return r.startsWith("javascript;charset=utf-8;base64,")?(0,n.jsx)(s.Typography.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===r[0]?r:`./${r}`},e):(0,n.jsx)(s.Typography.Text,{style:{color:"inherit"},code:!0,children:"."===r[0]?r:`./${r}`},e)})]}),children:(0,n.jsx)(s.Tag,{color:"green",children:"concatenated"})}):null,(0,n.jsx)(s.Button,{size:"small",icon:(0,n.jsx)(i.DeploymentUnitOutlined,{}),onClick:()=>{M([o.id]),k(!0)}}),(0,n.jsx)(C,{data:o})]})},dirTitle(e,t){let i=function e(t){let r=[];return t.children&&t.children.forEach(t=>{t.isLeaf?r.push(t[T]):e(t)}),r}(e);if(i.length){let e=i.map(e=>r.find(t=>t.path===e)),o=(0,l.sumBy)(e,e=>e.size?.parsedSize||0);return(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Typography.Text,{children:t}),o>0?(0,n.jsx)(s.Tag,{style:_,color:"orange",children:"Bundled:"+(0,v.formatSize)(o)}):null]})}return t}}),[E]);return(0,c.useEffect)(()=>{y(""),A(!1)},[e]),(0,c.useEffect)(()=>{A(!1)},[h]),(0,n.jsx)(j.ModuleGraphListContext.Provider,{value:{moduleJumpList:I,setModuleJumpList:M},children:(0,n.jsxs)(s.Card,{title:`Modules of "${e.path}"`,bodyStyle:{overflow:"scroll",height:d},size:"small",children:[r.length?(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:24,children:(0,n.jsx)(P,{modules:r,chunks:t,filteredModules:E})}),(0,n.jsx)(s.Col,{span:24,children:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(g.KeywordInput,{placeholder:"search module by keyword",onChange:e=>y(e)},e.path),(0,n.jsx)(s.Button,{onClick:()=>A(!0),size:"small",icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),children:"expand all"})]})}),(0,n.jsx)(s.Col,{span:24,style:{marginTop:x.Size.BasePadding},children:E.length?(0,n.jsx)(p.FileTree,{onExpand:e=>{S=e},treeData:O,autoExpandParent:!0,defaultExpandParent:!0,defaultExpandedKeys:S?.length?S:1===O.length?[O[0].key]:[],defaultExpandAll:b||E.length<=20},`tree_${h}_${b}_${e.path}`):(0,n.jsx)(s.Empty,{description:(0,n.jsx)(s.Typography.Text,{strong:!0,children:`"${h}" can't match any modules`})})})]}):(0,n.jsx)(s.Empty,{description:(0,n.jsx)(s.Typography.Text,{strong:!0,children:`"${e.path}" don't has any modules`})}),(0,n.jsx)(w,{id:I?.length?I[I.length-1]:"",show:D,setShow:k,cwd:f})]})})}},137900:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleCards:function(){return p}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("373262"),s=r("723854"),l=r("31017"),u=r("943436"),c=r("543767");let{useToken:d}=o.theme,f=({showProgress:e=!1,data:t,total:r,tagBgColor:i})=>{let{token:o}=d(),a=i||o.colorPrimaryBorderHover;return(0,n.jsx)(c.SizeCard,{files:t.files,total:r,showProgress:e,tagBgColor:a})},h=({titles:e,datas:t,bgColor:r})=>{let[a,s]=(0,i.useState)(0);return(0,n.jsx)(l.StatisticCard,{title:e.length>1?(0,n.jsx)(o.Segmented,{defaultValue:e[a],options:e,onChange:t=>{s(e.indexOf(t))},size:"small",style:{transition:"transform 0.3s ease"},value:e[a]||e[0]}):e[a],value:t.map((e,t)=>(0,i.createElement)(f,{...e,key:t,tagBgColor:r?.tagBgColor}))[a],boxProps:{style:{background:r?.bgColor}}})},p=({cwd:e,errors:t,summary:r})=>{let i=(0,a.useWindowWidth)(),c=(0,a.useDuplicatePackagesByErrors)(t),d=[(0,n.jsx)(h,{titles:["Total Files"],datas:[{data:r.all.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Total JS","Initial JS"],datas:[{data:r.js.total,total:r.all.total.size,showProgress:!0},{data:r.js.initial,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Total CSS","Initial CSS"],datas:[{data:r.css.total,total:r.all.total.size,showProgress:!0},{data:r.css.initial,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Images","Fonts","Media"],datas:[{data:r.imgs.total,total:r.all.total.size,showProgress:!0},{data:r.fonts.total,total:r.all.total.size,showProgress:!0},{data:r.media.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["HTML Files"],datas:[{data:r.html.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(l.StatisticCard,{title:"Duplicate Packages",value:(0,n.jsx)(u.DuplicatePackageDrawerWithServer,{buttonStyle:{height:100},duplicatePackages:c,cwd:e})})];return(0,n.jsx)(o.Row,{gutter:i>1200&&i<1400?[2*s.Size.BasePadding,s.Size.BasePadding]:[s.Size.BasePadding,s.Size.BasePadding],wrap:!0,style:{marginBottom:s.Size.BasePadding},children:d.map((e,t)=>(0,n.jsx)(o.Col,{span:i>1500?4:8,children:e},t))})}},473352:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackModulesOverall:function(){return _}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("667227"),l=r("911100"),u=r.n(l),c=r("321217"),d=r("972519"),f=r("674542"),h=r("792489"),p=r("289641"),g=r("767434"),m=r("723854"),y=r("373262"),x=r("137900"),v=r("8917"),j=r("276933");r("77044");let{Option:S}=a.Select,b=({errors:e,cwd:t,summary:r,entryPoints:b})=>{let[_,C]=(0,l.useState)([]),[w,T]=(0,l.useState)(0),[P,A]=(0,l.useState)(""),[I,M]=(0,l.useState)(0),[D,k]=(0,l.useState)(!1),[E,O]=(0,l.useState)(""),[R,z]=(0,l.useState)(""),[B,L]=(0,l.useState)(null),[N,F]=(0,l.useState)(!1),[$,W]=(0,l.useState)("tree"),{t:G}=(0,y.useI18n)(),K=r.all.total.files,U=(0,l.useCallback)(e=>t=>{"module"===e?O(t):"chunk"===e&&z(t)},[]),V=e=>(0,n.jsxs)(a.Select,{defaultValue:"kb",onChange:U(e),children:[(0,n.jsx)(S,{value:"kb",children:"KB"}),(0,n.jsx)(S,{value:"mb",children:"MB"})]}),H=(0,l.useCallback)((0,s.debounce)(e=>{T("mb"===E?1048576*e:1024*e)},300),[]),Y=(0,l.useCallback)((0,s.debounce)(e=>{M("mb"===R?1048576*e:1024*e)},300),[]),q=(0,l.useMemo)(()=>{let e=K.slice();return P&&(e=e.filter(e=>e.path.indexOf(P)>-1)),I>0&&(e=e.filter(e=>e.size>=I)),_.length&&(e=e.filter(e=>!!_.some(t=>(0,s.includes)(t.assets,e.path))||!1)),e.sort((e,t)=>{let r=e.path.indexOf("/")>-1?1:0;return(t.path.indexOf("/")>-1?1:0)-r})},[K,_,P,I]),J=(0,l.useMemo)(()=>(0,y.createFileStructures)({files:q.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:r,initial:i,path:o,content:s}=q.find(t=>t.path===e);return(0,n.jsxs)(a.Space,{onClick:()=>{L(o)},children:[(0,n.jsx)(p.Keyword,{text:t,keyword:P}),(0,n.jsx)(a.Tag,{color:"success",style:{margin:0},children:(0,y.formatSize)(r)}),i?(0,n.jsx)(a.Tag,{color:"cyan",style:{margin:0},children:"initial"}):null,(0,n.jsx)(v.CodeViewerWithDrawer,{path:o,content:s,editorConfig:{readOnly:!1,domReadOnly:!1}})]})}}),[q]);return(0,n.jsxs)(u().Fragment,{children:[(0,n.jsx)(x.BundleCards,{cwd:t,errors:e,summary:r}),(0,n.jsxs)(a.Radio.Group,{value:$,onChange:e=>W(e.target.value),style:{marginBottom:m.Size.BasePadding},buttonStyle:"solid",optionType:"button",children:[(0,n.jsx)(a.Radio.Button,{value:"tree",children:"Tree Graph"}),(0,n.jsx)(a.Radio.Button,{value:"tile",children:"Bundle Analyzer Graph"})]}),(0,n.jsx)(a.Card,{hidden:"tree"===$,title:(0,n.jsx)(a.Space,{children:(0,n.jsx)(g.Title,{text:"From: Webpack Bundle Analyzer"})}),children:(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetTileReportHtml,body:{},children:e=>e&&"tile"===$?(0,n.jsx)("iframe",{srcDoc:e,width:"100%",height:800,style:{border:"none"}}):(0,n.jsx)(a.Empty,{})})}),(0,n.jsx)(a.Card,{hidden:"tile"===$,title:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(g.Title,{text:"Bundle Analysis"}),(0,n.jsx)(a.Tooltip,{color:"white",title:(0,n.jsxs)(a.Space,{direction:"vertical",color:"white",children:[(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Tag,{color:"cyan",style:{margin:0},children:"initial"}),(0,n.jsx)(a.Typography.Text,{children:": Indignify whether the chunk is the initial chunk."})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Tag,{color:"green",children:"concatenated"}),(0,n.jsx)(a.Typography.Text,{children:": Indignify whether the module is the concatenated module. "}),(0,n.jsx)("br",{}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Concatenated Module:"}),(0,n.jsx)(a.Typography.Text,{children:"A series module is to lift or series multiple modules into a closure when packaging. "})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Button,{size:"small",icon:(0,n.jsx)(i.CodepenCircleOutlined,{})}),(0,n.jsx)(a.Typography.Text,{children:": Open the code."})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Button,{size:"small",icon:(0,n.jsx)(i.DeploymentUnitOutlined,{})}),(0,n.jsx)(a.Typography.Text,{children:": View the module dependency, that is, module reasons in stats.json."})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Tag,{color:"purple",children:"Bundled: 15.77 KB"}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Bundled Size"}),(0,n.jsx)(a.Typography.Text,{children:"The size of the code which bundled. That is, after bundle and tree-shaking."})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Tag,{color:"orange",children:"Source: 15.77 KB"}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Source Size"}),(0,n.jsx)(a.Typography.Text,{children:"The size of the code which before bundle and transform."})]})})]}),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),extra:N?(0,n.jsx)(a.Button,{onClick:()=>F(!1),children:(0,n.jsxs)(a.Typography.Text,{children:["Expand ",(0,n.jsx)(i.ColumnHeightOutlined,{})]})}):(0,n.jsx)(a.Button,{onClick:()=>F(!0),children:(0,n.jsxs)(a.Typography.Text,{children:["Fold",(0,n.jsx)(i.VerticalAlignMiddleOutlined,{})]})}),children:(0,n.jsxs)(a.Row,{align:"middle",gutter:[m.Size.BasePadding,m.Size.BasePadding],children:[b&&b.length?(0,n.jsx)(a.Col,{children:(0,n.jsx)(a.Select,{mode:"multiple",value:_.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{C(e.map(e=>b.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{C([])},children:b.map(e=>(0,n.jsx)(a.Select.Option,{value:e.name,children:(0,n.jsx)(a.Space,{children:(0,n.jsx)(d.Badge,{label:e.name,value:(0,y.formatSize)(e.size),tooltip:e.name})})},e.name))})}):null,(0,n.jsx)(a.Col,{children:(0,n.jsx)(h.KeywordInput,{placeholder:"search asset by keyword",onChange:e=>{A(e),k(!1)}})}),(0,n.jsx)(a.Col,{span:7,children:(0,n.jsx)(a.InputNumber,{min:0,style:{width:"95%"},addonBefore:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,n.jsx)(a.Tooltip,{title:G("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>Y(Number(e)),addonAfter:V("chunk")})}),(0,n.jsx)(a.Col,{span:7,children:(0,n.jsx)(a.InputNumber,{min:0,style:{width:"95%"},addonBefore:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,n.jsx)(a.Tooltip,{title:G("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{H(Number(e))},addonAfter:V("module")})}),(0,n.jsx)(a.Col,{span:24,children:q.length?(0,n.jsxs)(a.Row,{gutter:m.Size.BasePadding,children:[(0,n.jsx)(a.Col,{span:8,children:(0,n.jsx)(a.Card,{title:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{children:G("Output Assets List")}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Tooltip,{title:`total assets count is ${K.length}, the filtered assets count is ${q.length}`,children:(0,n.jsxs)(a.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[q.length," / ",K.length]})}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,y.formatSize)((0,s.sumBy)(q,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:N?410:800},extra:(0,n.jsx)(a.Button,{size:"small",icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),onClick:()=>k(!0),children:"expand all"}),children:(0,n.jsx)(f.FileTree,{treeData:J,autoExpandParent:!0,defaultExpandAll:D||q.length<=20},`tree_${P}_${D}`)})}),(0,n.jsx)(a.Col,{span:16,children:B?(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:B},children:e=>(0,n.jsx)(j.AssetDetail,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:N?410:800,moduleSizeLimit:w,root:t})}):(0,n.jsx)(a.Card,{bodyStyle:{height:N?450:800},children:(0,n.jsx)(a.Empty,{description:(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,n.jsx)(a.Empty,{})})]})})]})},_=(0,c.withServerAPI)({api:o.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:r}=e.project;return(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetEntryPoints,children:i=>(0,n.jsx)(b,{cwd:t,errors:r,summary:e,entryPoints:i})})})}})},318230:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleGraphListContext:function(){return n}});let n=(0,r("911100").createContext)({setModuleJumpList(e){},moduleJumpList:[]})},980057:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="BundleSize",o=n.Client.RsdoctorClientRoutes.BundleSize},192095:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("766791"),i=r("907366"),o=r("723854"),a=r("473352"),s=r("980057");r.es(s,t);let l=()=>(0,n.jsx)(i.Row,{children:(0,n.jsx)(i.Col,{span:24,style:{marginBottom:o.Size.BasePadding},children:(0,n.jsx)(a.WebpackModulesOverall,{})})})},142237:function(e,t,r){"use strict";r.r(t),r.d(t,{ChunksTable:function(){return u}});var n=r("766791"),i=r("907366"),o=r("667227"),a=r("911100"),s=r("373262");r("844381");let l=[{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"}],u=({chunks:e})=>{let t=(0,a.useMemo)(()=>{let t=e.map(e=>{if(e)return{key:e.id,name:(0,n.jsx)(i.Tag,{children:e.name}),size:(0,n.jsx)(i.Tag,{children:(0,s.formatSize)(e.parsedSize)}),entry:(0,n.jsx)(i.Tag,{children:e.entry?"\u662F | Yes":"\u5426 | No"}),assets:e.assets.map(e=>(0,n.jsx)("p",{children:(0,n.jsx)(i.Tag,{children:e},e)},e))}});return(0,o.orderBy)((0,o.compact)(t),["size"],["desc"])},[e]);return(0,n.jsx)(n.Fragment,{children:t?.length?(0,n.jsx)(i.Table,{bordered:!0,pagination:!1,dataSource:t,columns:l}):(0,n.jsx)(i.Empty,{})})}},932446:function(e,t,r){"use strict";r.r(t),r.d(t,{FileTree:function(){return h}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("911100"),l=r("643873"),u=r("321217"),c=r("723854"),d=r("318230");r("561227");let f="file-tree-com",h=e=>{let{treeData:t,needJumpto:r=!1,defaultOpened:h=!1,defaultOpenFather:p=0}=e,{required:g,handlers:m}=(0,l.useTreeState)({id:`${f}-tree`,data:t||[],defaultOpened:h,multipleSelect:!1,refreshAsyncNodes:!0}),y=(0,s.useCallback)(({node:e,onToggle:t})=>(p&&e.data.level<p&&e.setOpened(!0),(0,n.jsx)("div",{className:`${f}-titles-box`,children:(0,n.jsx)("div",{className:`${f}-titles`,children:(0,n.jsx)(a.Space,{direction:"vertical",children:(0,n.jsx)("div",{className:`${f}-node-title`,children:(0,n.jsxs)(a.Space,{children:[(0,n.jsxs)("div",{onClick:t,children:[!e.options.opened&&e.data.children?.length?(0,n.jsx)(i.PlusCircleOutlined,{style:{color:"lightblue"}}):(0,n.jsx)(i.MinusCircleOutlined,{style:{color:"lightblue"}}),(0,n.jsxs)(a.Typography.Text,{code:!0,children:[e.data.name,(0,n.jsx)(a.Popover,{content:(0,n.jsx)(n.Fragment,{children:e.data.__RESOURCEPATH__?(0,n.jsx)(a.Typography.Text,{code:!0,children:e.data.__RESOURCEPATH__},`${e.data.name}-popover-path`):(0,n.jsx)(n.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,n.jsx)(i.InfoCircleOutlined,{style:{marginLeft:4}})},`${e.data.name}popover`)]})]}),(0,n.jsxs)(a.Space,{children:[e.data.concatModules?.length?(0,n.jsx)(a.Popover,{content:(0,n.jsx)(u.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetModulesByModuleIds,body:{moduleIds:e.data.concatModules||[]},children:e=>(0,n.jsx)("div",{children:e.map(({path:e},t)=>(0,n.jsx)("p",{children:e},`${e}-${t}`))})}),title:"Concatenated Module Name",trigger:"hover",children:(0,n.jsx)(a.Tag,{className:`${f}-node-title-tag`,color:c.TAG_PALLETE.DARK_BLUE,children:"Concatenated"},`${e.data.name}-size-tag`)}):e.data.size&&"0 bytes"!==e.data.size?(0,n.jsx)(a.Tag,{className:`${f}-node-title-tag`,color:c.TAG_PALLETE.COLOR_B,children:`Bundled: ${e.data.size}`},`${e.data.name}-size-tag`):(0,n.jsx)(n.Fragment,{}),r&&(0,n.jsx)(d.ModuleGraphListContext.Consumer,{children:({moduleJumpList:t,setModuleJumpList:r})=>(0,n.jsx)(i.RightSquareTwoTone,{onClick:()=>{let n=[...t];n.push(+e.id),r(n)}})})]})]})})})})},e.data.name)),[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.default,{...g,...m,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:y})})}},55182:function(e,t,r){"use strict";r.r(t),r.d(t,{clsNamePrefix:function(){return o}}),r("889702").Client.RsdoctorClientRoutes.ModuleAnalyze;var n,i=((n=i||{}).UrlQueryForModuleAnalyze="curModuleId",n);let o="module-analyze"},508545:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r("766791"),i=r("907366"),o=r("667227"),a=r("911100"),s=r("373262"),l=r("932446");r("844381");var u=(0,a.memo)(({dependencies:e,cwd:t,module:r})=>{let u=(0,a.useMemo)(()=>{let t=r.dependencies.map(t=>{let r=(0,o.find)(e,e=>e.id===t);if(r)return{__RESOURCEPATH__:r.resolvedRequest||"",id:r.dependency,key:r.resolvedRequest,name:(0,s.getShortPath)(r.resolvedRequest)||"",level:1,kind:r.kind,concatModules:void 0}});return(0,o.compact)(t)},[r]);return(0,n.jsx)(i.Row,{justify:"start",align:"middle",children:(0,n.jsx)(i.Col,{span:24,children:u.length?(0,n.jsx)(l.FileTree,{treeData:u,needJumpto:!0,cwd:t}):(0,n.jsx)(i.Empty,{})})})})},895075:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleFilesTree:function(){return j}});var n,i=r("766791"),o=r("537585"),a=r("889702"),s=r("907366"),l=r("911100"),u=r("321217"),c=r("767434"),d=r("723854"),f=r("729361"),h=r("142237"),p=r("932446"),g=r("55182"),m=r("508545"),y=r("604588"),x=r("781110");var v=((n=v||{})[n.Dependencies=0]="Dependencies",n[n.Chunks=1]="Chunks",n);let j=e=>{let{curModule:t,modules:r,dependencies:n,cwd:v,selectedChunk:j=""}=e,{t:S}=(0,f.useI18n)(),[b,_]=(0,l.useState)([]),[C,w]=(0,l.useState)(0),[T,P]=(0,l.useState)(!0),{data:A}=(0,x.useCreatFileTreeData)(r,b,t),[I,M]=(0,l.useState)({});return(0,l.useEffect)(()=>{_((0,y.getImporteds)(t,r))},[t,r]),(0,l.useEffect)(()=>{let e={};b.forEach(t=>{let n=[],i=new Map;(0,y.getModuleReasonsTree)(t,r,n,i),e[t.id]=n}),M(e)},[b]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Row,{children:(0,i.jsx)(s.Popover,{content:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(s.Badge,{status:"success",text:" "}),(0,i.jsxs)(s.Typography.Text,{code:!0,children:[(0,i.jsx)(o.ExpandOutlined,{})," Expand the node_modules's modules that was omitted... "]})," ",(0,i.jsx)(s.Typography.Text,{children:`: ${S("Expand Omitted")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(s.Badge,{status:"success",text:" "}),(0,i.jsx)(s.Popover,{content:"xxxx",title:"Concatenated Module Name",trigger:"hover",children:(0,i.jsx)(s.Tag,{color:d.TAG_PALLETE.DARK_BLUE,children:"Concatenated"})}),(0,i.jsx)(s.Typography.Text,{children:`: ${S("Concatenated Tag")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(s.Badge,{status:"success",text:" "}),(0,i.jsx)(o.RightSquareTwoTone,{}),(0,i.jsx)(s.Typography.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})]}),title:"Usage",children:(0,i.jsx)(s.Button,{type:"primary",icon:(0,i.jsx)(o.InfoCircleOutlined,{}),children:"Usage"})})}),(0,i.jsxs)(s.Row,{gutter:4,style:{marginTop:d.Size.BasePadding},children:[(0,i.jsx)(s.Col,{span:T?18:12,children:(0,i.jsx)(s.Row,{className:`${g.clsNamePrefix}-file-tree`,justify:"center",children:(0,i.jsxs)(s.Col,{span:24,style:{padding:d.Size.BasePadding/2},children:[(0,i.jsx)(c.Title,{text:"Current Module Imported Reasons Tree:"}),b?(0,i.jsx)(p.FileTree,{cwd:v,treeData:j?A.filter(e=>I[e.id].indexOf(j)>=0):A,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:j}):(0,i.jsx)(s.Empty,{className:`${g.clsNamePrefix}-empty`})]})})}),(0,i.jsx)(s.Col,{span:T?6:12,children:(0,i.jsxs)("div",{className:`${g.clsNamePrefix}-file-tree`,style:{padding:d.Size.BasePadding/2},children:[T?(0,i.jsx)(s.Popover,{content:"Unfold [Dependencies & Chunks] Box.",children:(0,i.jsx)(o.MenuFoldOutlined,{onClick:()=>P(!T),style:{marginRight:8}})}):(0,i.jsx)(s.Popover,{content:"Fold [Dependencies & Chunks] Box.",children:(0,i.jsx)(o.MenuUnfoldOutlined,{onClick:()=>P(!T),style:{marginRight:8}})}),(0,i.jsx)(s.Radio.Group,{options:[{label:"Dependencies",value:0},{label:"Chunks",value:1}],onChange:e=>w(e.target.value),value:C,optionType:"button",buttonStyle:"solid",size:"middle"}),T?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[0===C&&(0,i.jsx)(s.Col,{span:24,style:{marginTop:d.Size.BasePadding/2},children:t?(0,i.jsx)(m.default,{module:t,dependencies:n,cwd:v}):(0,i.jsx)(s.Empty,{className:`${g.clsNamePrefix}-empty`})}),1===C&&(0,i.jsx)(s.Col,{span:18,style:{marginTop:d.Size.BasePadding/2},children:t?(0,i.jsx)(u.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetChunksByModuleId,body:{moduleId:t.id},children:e=>(0,i.jsx)(h.ChunksTable,{chunks:e})}):(0,i.jsx)(s.Empty,{className:`${g.clsNamePrefix}-empty`})})]})]})})]})]})}},62414:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleAnalyzeComponent:function(){return h}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("911100"),l=r("321217"),u=r("373262"),c=r("667227"),d=r("318230"),f=r("895075");r("844381");let h=({modules:e,cwd:t,moduleId:r})=>{let[h,p]=(0,s.useState)("");return(0,n.jsx)(l.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+r},children:({module:r,dependencies:s})=>(0,n.jsx)(l.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:o=>(0,n.jsx)(d.ModuleGraphListContext.Consumer,{children:({moduleJumpList:l,setModuleJumpList:d})=>(0,n.jsxs)(a.Card,{title:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(i.LeftSquareOutlined,{onClick:()=>{d([...l.slice(0,-1)])}}),(0,n.jsx)(a.Typography.Title,{code:!0,level:5,style:{marginBottom:"revert"},children:`Current Module: ${(0,u.getShortPath)(r.path)}`})]}),style:{height:"100%"},children:[(0,n.jsx)(a.Row,{justify:"start",style:{marginBottom:20},children:(0,n.jsx)(a.Col,{children:(0,n.jsx)(a.Select,{allowClear:!0,placeholder:"Select Chunk To Filter Modules Links",showSearch:!0,style:{width:300},options:(0,c.values)(o).map(e=>({label:e.name,value:e.id})),onChange:e=>p(e)})})}),(0,n.jsx)(a.Row,{justify:"start",align:"middle",children:(0,n.jsx)(a.Col,{span:24,children:(0,n.jsx)(f.ModuleFilesTree,{curModule:r,modules:e,dependencies:s,cwd:t,selectedChunk:h})})})]})})})})}},781110:function(e,t,r){"use strict";r.r(t),r.d(t,{useCreatFileTreeData:function(){return s}});var n=r("667227"),i=r("911100"),o=r("373262"),a=r("604588");function s(e,t,r){return(0,i.useMemo)(()=>t&&t?.length?{data:(0,n.compact)(t?.map((t,n)=>({key:`0-${n}`,name:o.getShortPath(t.path),__RESOURCEPATH__:t.path,id:t.id,level:1,chunks:t.chunks,size:o.formatSize(t.size.parsedSize),kind:t.kind,concatModules:t.concatenationModules,fatherPath:o.getShortPath(r.path),dependencies:t.dependencies,getChildren:()=>(function e(t,r,n){let i=(0,a.getImporteds)(t,r);return i?.map((i,a)=>({key:`0-${a}`,name:o.getShortPath(i.path),__RESOURCEPATH__:i.path,id:i.id,level:1,size:o.formatSize(i.size.parsedSize),kind:i.kind,chunks:i.chunks,concatModules:i.concatenationModules,fatherPath:o.getShortPath(n.path),dependencies:i.dependencies,getChildren:()=>e(i,r,t),children:i.imported}))})(t,e,r),children:t.imported})))}:{filterData:[],data:[]},[t,r])}},604588:function(e,t,r){"use strict";r.r(t),r.d(t,{getImporteds:function(){return i},getModuleReasonsTree:function(){return o}});var n=r("667227");let i=(e,t)=>{if(e?.imported?.length){let r=e.imported.map(e=>(0,n.find)(t,t=>t.id===Number(e)));return(0,n.compact)(r)}return[]},o=(e,t,r,n)=>{if(n.has(e.id)){if(n.get(e.id))return}else n.set(e.id,!0);let a=i(e,t);a.length&&a.forEach(e=>{e?.chunks?.forEach(e=>{0>r.indexOf(e)&&r.push(e)}),o(e,t,r,n)})}},737826:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="ModuleResolve",o=n.Client.RsdoctorClientRoutes.ModuleResolve},972158:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("766791"),i=r("907366"),o=r("397991"),a=r("857238"),s=r("737826");r.es(s,t);let l=()=>(0,n.jsx)("div",{children:(0,n.jsx)(i.Card,{title:"Webpack Resolver Analysis",extra:(0,n.jsx)(a.WebpackConfigurationViewer,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,n.jsx)(o.ResolverAnalysis,{})})})},194445:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="Overall",o=n.Client.RsdoctorClientRoutes.Overall},275062:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return d}});var n=r("766791"),i=r("907366"),o=r("889702"),a=r("723854"),s=r("580778"),l=r("98394"),u=r("321217"),c=r("194445");r.es(c,t);let d=(0,u.withServerAPI)({api:o.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{summary:t,configs:r,root:o,envinfo:u,errors:c}=e;return(0,n.jsxs)("div",{children:[(0,n.jsxs)(i.Row,{gutter:a.Size.BasePadding,children:[(0,n.jsx)(i.Col,{span:8,children:(0,n.jsx)(s.ProjectOverall,{configs:r,cwd:o,envinfo:u,alerts:c})}),(0,n.jsx)(i.Col,{span:8,children:(0,n.jsx)(s.BundleOverall,{errors:c,cwd:o})}),(0,n.jsx)(i.Col,{span:8,children:(0,n.jsx)(s.CompileOverall,{summary:t})})]}),(0,n.jsx)(l.CompileAlerts,{}),(0,n.jsx)(l.BundleAlerts,{})]})}})},997937:function(e,t,r){"use strict";r.r(t),r.d(t,{route:function(){return n}});let n=r("889702").Client.RsdoctorClientRoutes.RuleIndex},720464:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return h}});var n=r("766791"),i=r("911100"),o=r("889702"),a=r("907366"),s=r("342378"),l=r("667227"),u=r("767434"),c=r("723854"),d=r("373262"),f=r("997937");r.es(f,t);let h=()=>{let e=(0,d.useUrlQuery)()[o.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode]||"",[t,r]=(0,i.useState)(o.Rule.RuleErrorMap[e]),f=(0,l.values)(o.Rule.RuleErrorMap);return(0,i.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,n.jsxs)(a.Row,{gutter:c.Size.BasePadding/2,children:[(0,n.jsx)(a.Col,{span:8,children:(0,n.jsx)(a.Card,{title:(0,n.jsx)(u.Title,{text:"list of the error codes."}),bordered:!0,children:(0,n.jsx)(a.Space,{direction:"vertical",children:f.map((e,i)=>(0,n.jsxs)(a.Space,{style:{marginTop:0===i?0:c.Size.BasePadding/2,cursor:"pointer"},onClick:()=>r(e),align:"center",children:[(0,n.jsx)(a.Badge,{status:"default"}),(0,n.jsx)(a.Typography.Text,{code:!0,children:(0,n.jsx)("a",{children:e.code})}),(0,n.jsx)(a.Typography.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,n.jsx)(a.Col,{span:16,children:t?(0,n.jsx)(a.Card,{title:(0,n.jsxs)(a.Row,{justify:"space-between",children:[(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{code:!0,children:t.code}),(0,n.jsx)(a.Typography.Text,{children:t.title})]}),(0,n.jsx)("div",{children:(0,n.jsx)(a.Tag,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,n.jsx)(a.Typography.Paragraph,{children:"markdown"===t.type?(0,n.jsx)(s.default,{children:t.description}):(0,n.jsx)(a.Typography.Text,{children:t.description})})}):(0,n.jsx)(a.Card,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,n.jsx)(a.Typography.Text,{children:"click the error code in left bar to show more details."})})})]})}},975667:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="Loaders Analysis",o=n.Client.RsdoctorClientRoutes.WebpackLoaderAnalysis},834078:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("766791"),i=r("934608"),o=r("857238"),a=r("794568"),s=r("975667");r.es(s,t);let l=()=>(0,n.jsx)(a.Card,{title:"Webpack Loader Analysis",extra:(0,n.jsx)(o.WebpackConfigurationViewer,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:0},children:(0,n.jsx)(i.LoaderAnalysis,{})})},402915:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="Loaders Timeline",o=n.Client.RsdoctorClientRoutes.WebpackLoaderOverall},231462:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("766791"),i=r("857238"),o=r("794568"),a=r("976566"),s=r("402915");r.es(s,t);let l=()=>(0,n.jsx)(o.Card,{title:"Loader Timeline",extra:(0,n.jsx)(i.WebpackConfigurationViewer,{defaultKeys:["module"]}),collapsable:!0,children:(0,n.jsx)(a.LoaderChart,{})})},198197:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="Plugins Analysis",o=n.Client.RsdoctorClientRoutes.WebpackPlugins},814604:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return h}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("911100"),l=r("857238"),u=r("321217"),c=r("153218"),d=r("723854"),f=r("198197");r.es(f,t);let h=()=>{let[e,t]=(0,s.useState)([]),[r,f]=(0,s.useState)([]);return(0,n.jsx)("div",{children:(0,n.jsx)(a.Card,{title:"Webpack Plugins Overall",bodyStyle:{paddingTop:d.Size.BasePadding/3},extra:(0,n.jsx)(l.WebpackConfigurationViewer,{defaultKeys:["plugins"]}),children:(0,n.jsxs)(a.Space,{direction:"vertical",children:[(0,n.jsx)(u.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetPluginSummary,children:({hooks:e,tapNames:r})=>(0,n.jsxs)(a.Space,{style:{marginBottom:d.Size.BasePadding/2},children:[(0,n.jsxs)(a.Input.Group,{compact:!0,children:[(0,n.jsxs)(a.Button,{children:[(0,n.jsx)(i.ApiOutlined,{}),(0,n.jsx)(a.Typography.Text,{children:"Plugin Tap Names"})]}),(0,n.jsx)(a.Select,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{t(e)},children:r.map(e=>(0,n.jsx)(a.Select.Option,{label:e,value:e,children:e},e))})]}),(0,n.jsxs)(a.Input.Group,{compact:!0,children:[(0,n.jsxs)(a.Button,{children:[(0,n.jsx)(i.PartitionOutlined,{}),(0,n.jsx)(a.Typography.Text,{children:"Hooks"})]}),(0,n.jsx)(a.Select,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{f(e)},children:e.map(e=>(0,n.jsx)(a.Select.Option,{label:e,value:e,children:e},e))})]})]})}),(0,n.jsx)(u.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:r,tapNames:e},children:e=>(0,n.jsx)(c.WebpackPluginsDataTable,{dataSource:e})})]})})})}},350802:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleSize:function(){return i},LoaderFiles:function(){return a},LoaderTimeline:function(){return o},ModuleResolve:function(){return l},Overall:function(){return n},PluginsAnalyze:function(){return s},RuleIndex:function(){return u}});var n=r("275062"),i=r("192095");r("62414");var o=r("231462"),a=r("834078"),s=r("814604"),l=r("972158"),u=r("720464")},551785:function(e,t,r){"use strict";r.r(t),r.d(t,{BaseDataLoader:function(){return i}});var n=r("534851");class i{constructor(e){this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new n.Data.APIDataLoader(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e,t="data"){let r=this.get(t);if(r)return r[e]}getKeys(e){return e.split(".")}joinKeys(e){return e.join(".")}dispose(){this.disposed=!0}limit(e,t){if(this.pool.has(e))return this.pool.get(e);let r=t().finally(()=>this.pool.delete(e));return this.pool.set(e,r),r}log(...e){console.log(`[${this.constructor.name}]`,...e)}async loadManifest(){return this.manifest}}},65651:function(e,t,r){"use strict";r.r(t),r.d(t,{useDataLoader:function(){return l}});var n=r("911100"),i=r("557109"),o=r("932066");r("423453"),r("723854");let a=new WeakMap;async function s(e){try{if(e.__LOCAL__SERVER__)return new i.LocalServerDataLoader(e)}catch(e){console.log("[DataLoader] fallback to RemoteDataLoader")}return new o.RemoteDataLoader(e)}function l(e){let[t,r]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{if(!!e){if(!a.has(e)){let t=s(e);a.set(e,t)}a.get(e).then(e=>{r(e)})}},[e]),{loader:t}}},557109:function(e,t,r){"use strict";r.r(t),r.d(t,{LocalServerDataLoader:function(){return l}});var n=r("534851"),i=r("889702"),o=r("667227"),a=r("551785"),s=r("236010");class l extends a.BaseDataLoader{constructor(){super(...arguments),this.events=new Map}isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),a=this.getData(t);if(!a)return;let l=a;if(n.Manifest.isShardingData(l)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{(0,s.getSocket)(this.manifest.__SOCKET__URL__).emit(i.SDK.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return l=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),l}return r.length>0?(0,o.get)(l,this.joinKeys(r)):l})}async loadAPI(...e){let[t,r]=e,n=r?`${t}_${JSON.stringify(r)}`:`${t}`;return this.limit(n,async()=>new Promise(e=>{(0,s.getSocket)(this.manifest.__SOCKET__URL__).emit(t,r,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){!this.events.has(e)&&this.events.set(e,new Set),!this.events.get(e).has(t)&&(this.events.get(e).add(t),(0,s.getSocket)(this.manifest.__SOCKET__URL__).on(e,t))}removeOnDataUpdate(e,t){(0,s.getSocket)(this.manifest.__SOCKET__URL__).off(e,t),this.events.get(e).delete(t)}}},932066:function(e,t,r){"use strict";r.r(t),r.d(t,{RemoteDataLoader:function(){return s}});var n=r("534851"),i=r("667227"),o=r("551785"),a=r("17235");class s extends o.BaseDataLoader{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),o=this.getData(t);if(!o)return;let s=o;if(n.Manifest.isShardingData(s)){if(!this.shardingDataMap.has(t)){let r=n.Manifest.fetchShardingData(s,a.fetchShardingFile).catch(t=>{throw this.log("loadData error: ",s,e),t});this.shardingDataMap.set(t,r)}s=await this.shardingDataMap.get(t)}return r.length>0?(0,i.get)(s,this.joinKeys(r)):s})}async loadAPI(...e){let[t,r]=e,n=r?`${t}_${JSON.stringify(r)}`:`${t}`;return this.limit(n,async()=>this.loader.loadAPI(...e))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},697071:function(e,t,r){"use strict";r.r(t),r.d(t,{beautifyModulePath:function(){return u},beautifyPath:function(){return l},createFileStructures:function(){return s},mapFileKey:function(){return o}});var n=r("667227");let i=(e,t="/")=>{let r=e?.indexOf(t);return -1===r?null:0===r?t+(i(e?.slice(1))||""):e?.slice(0,r)};function o(e,t=2,r=()=>!0){let n=0,i=[],o=e;for(;n<t&&(o.filter(r).forEach(e=>{!e.isLeaf&&i.push(e.key)}),(o=o.reduce((e,t)=>e.concat(t.children||[]),[])).length);){;n++}return i}let a="__BASENAME__";function s({files:e,sep:t="/",inlinedResourcePathKey:r="__RESOURCEPATH__",fileTitle:o=(e,t)=>t,dirTitle:s=(e,t)=>t}){let l=new RegExp(t),u=e.reduce((e,s)=>{let u=i(s,t),c=u?s?.slice(u.length+1):s,d=e;for(;u;){let e=d.children.find(e=>e.title===u);if(!e){let n=[d[r],u].filter(Boolean).join(t);e={title:u,key:n,children:[],[r]:n,[a]:u},d.children.push(e)}d=e,c=(u=i(c))?c.slice(u.length).replace(l,""):c}return d.children.some(e=>(0,n.get)(e,r)===s)?e:(d.children.push({title:()=>o(s,c),key:s,isLeaf:!0,[r]:s,[a]:c}),e)},{key:"0",children:[]}).children;return u.forEach(e=>{e.children&&e.children.forEach(n=>(function e(t,r,n="/",i,o=(e,t)=>t){if(!t.isLeaf){if(r.children&&1===r.children.length){let s=[r[a],t[a]].join(n);r[i]=t[i],r[a]=s,r.key=[r.key,t.key].join("-"),r.children=t.children,r.title=o(r,s),t.children&&t.children.forEach(t=>{e(t,r,n,i,o)})}else t.title=o(t,t[a]),t.children&&t.children.forEach(r=>{e(r,t,n,i,o)})}})(n,e,t,r,s))}),u}function l(e,t){return(0,n.startsWith)(e,t)?e.replace(t,"."):e}function u(e,t){let r=l(e,t),n="/node_modules/",i=r.lastIndexOf(n);return i>-1?{alias:r.slice(i+n.length),inNodeModules:!0}:{alias:r,inNodeModules:!1}}},729361:function(e,t,r){"use strict";r.r(t),r.d(t,{useBundleAlertsByErrors:function(){return m},useCompileAlertsByErrors:function(){return g},useDetectIfCloudIdeEnv:function(){return v},useDuplicatePackagesByErrors:function(){return y},useI18n:function(){return f},useRuleIndexNavigate:function(){return h},useUrlQuery:function(){return p},useWebpackConfigurationByConfigs:function(){return x},useWindowWidth:function(){return j}}),r("534851");var n=r("889702"),i=r("667227"),o=r("911100"),a=r("192089"),s=r("336873"),l=r("393763"),u=r.n(l);r("926791");var c=r("423453");let d=n.Client.RsdoctorClientRoutes.RuleIndex,f=()=>{let{i18n:e,...t}=(0,a.useTranslation)();return{...t,i18n:{...e,changeLanguage:(t,r)=>e.changeLanguage(t,(e,n)=>{!e&&(0,c.setLocaleToStorage)(t),r&&r(e,n)})}}};function h(e,t){let r=(0,s.useNavigate)();return t?()=>window.open(t,"__blank"):()=>{r(`${d}?${n.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function p(){let e=(0,s.useLocation)().search||location.search,{query:t}=u()(e,!0);return t}function g(e){return(0,i.isArray)(e)?e.filter(e=>e.category===n.Rule.RuleMessageCategory.Compile&&e.code!==n.Rule.RuleMessageCodeEnumerated.Overlay):[]}function m(e){return(0,i.isArray)(e)?e.filter(e=>e.category===n.Rule.RuleMessageCategory.Bundle&&e.code!==n.Rule.RuleMessageCodeEnumerated.Overlay):[]}function y(e){return m(e).filter(e=>e.code===n.Rule.RuleErrorMap.E1001.code)}function x(e=[]){return(0,i.isArray)(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}function v(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)||!1}function j(){let[e,t]=(0,o.useState)(window.innerWidth);return(0,o.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},971962:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n={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 web-doctor \u63D2\u4EF6\u53C2\u4E0E\u6784\u5EFA\u4F1A\u6709\u5BF9\u5E94\u4EE3\u7801\u3002"}},774347:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n={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."}},926791:function(e,t,r){"use strict";r.r(t);var n=r("166289"),i=r("192089"),o=r("774347"),a=r("971962"),s=r("423453");n.default.use(i.initReactI18next).init({lng:(0,s.getLocaleFromStorage)(),resources:{en:{translations:o.default},cn:{translations:a.default}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}}),n.default},373262:function(e,t,r){"use strict";r.r(t);var n=r("65651");r.es(n,t);var i=r("697071");r.es(i,t);var o=r("729361");r.es(o,t);var a=r("560103");r.es(a,t);var s=r("111404");r.es(s,t);var l=r("517242");r.es(l,t);var u=r("17235");r.es(u,t);var c=r("703659");r.es(c,t);var d=r("353372");r.es(d,t);var f=r("236010");r.es(f,t);var h=r("423453");r.es(h,t);var p=r("864264");r.es(p,t);var g=r("431251");r.es(g,t);var m=r("630212");r.es(m,t);var y=r("423282");r.es(y,t)},423282:function(e,t,r){"use strict";r.r(t),r.d(t,{filterLoader:function(){return s},findLoaderTotalTiming:function(){return o}});var n=r("534851"),i=r("667227");let{findLoaderTotalTiming:o,getLoaderCosts:a}=n.Loader;function s(e,t,r,n){return!(r&&-1===e.indexOf(r)||n?.length&&!(0,i.includes)(n,t))&&!0}},560103:function(e,t,r){"use strict";r.r(t),r.d(t,{getLocale:function(){return o}});var n=r("674806"),i=r("808794");function o(e){return"cn"===e||"zh-CN"===e?n.default:i.default}},111404:function(e,t,r){"use strict";r.r(t),r.d(t,{useLocale:function(){return a},useTheme:function(){return s},useViewMode:function(){return l}});var n=r("911100");r("315992");var i=r("136795"),o=r("723854");function a(){return(0,n.useContext)(i.ConfigContext).locale}function s(){let{theme:e,setTheme:t}=(0,n.useContext)(i.ConfigContext),r=e===o.Theme.Dark;return{theme:e,setTheme:t,isDark:r,isLight:!r}}function l(){let{viewMode:e,setViewMode:t}=(0,n.useContext)(i.ConfigContext),{bundleAlerts:r,compileAlerts:a}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:a===o.ViewMode.List,isBundleList:r===o.ViewMode.List}}r("17235")},517242:function(e,t,r){"use strict";r.r(t),r.d(t,{getModifiedLanguage:function(){return l},getOriginalLanguage:function(){return s},getRevealPositionForViewer:function(){return u},getSelectionRange:function(){return c},useMonacoEditor:function(){return f}});var n=r("918300"),i=r("972440"),o=r("431251");let a=i.loader.init();function s(e){if((0,o.isJsDataUrl)(e))return"javascript";let t=(0,n.extname)(e).slice(1);switch(t){case"js":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";default:return t}}function l(e){let t=(0,n.extname)(e).slice(1);switch(t){case"js":case"jsx":case"ts":case"tsx":return"javascript";default:return t}}function u(e,t){return{lineNumber:Math.floor(e/1.2)||1,column:Math.floor(t/1.5)||1}}function c(e,t){let{start:r,end:n}=e,{line:i=1,column:o=0}=r;return new t(i,o+1,n?.line??i,(n?.column??9999)+1)}let d=e=>new Promise((t,r)=>{if(e.value){t();return}a.then(t=>{e.value=t}).catch(e=>{e?.type!=="cancelation"&&(console.error("Monaco initialization error:",e),r())})});function f(){return{initMonaco:d}}},17235:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{fetchManifest:function(){return d},fetchShardingFile:function(){return l}});var i=r("311486"),o=r("889702"),a=r("534851");r("723854");var s=r("431251");async function l(e){return a.Url.isUrl(e)?i.default.get(e,{timeout:999999,responseType:"text"}).then(e=>e.data):e}async function u(e){let t=await i.default.get(e,{timeout:3e4}).then(e=>e.data);return"string"==typeof t&&(t=JSON.parse(t)),console.log("[json] ",e,t),t}r("423453");let c=new Map;async function d(e=(!(n=window[o.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[o.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,s.getManifestUrlFromUrlQuery)())&&(n=o.SDK.ServerAPI.API.Manifest),n)){return!c.has(e)&&c.set(e,u(e).catch(t=>{throw c.delete(e),t})),await c.get(e)}},703659:function(e,t,r){"use strict";r.r(t),r.d(t,{hasBundle:function(){return a},hasCompile:function(){return o}});var n=r("667227"),i=r("889702");function o(e){return(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)}function a(e){return(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.BundleSize)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleGraph)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.TreeShaking)}},353372:function(e,t,r){"use strict";function n(e){let t;return t=e>=1073741824?`${(e/1073741824).toFixed(2)} GB`:e>=1048576?`${(e/1048576).toFixed(2)} MB`:e>=1024?`${(e/1024).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}r.r(t),r.d(t,{formatSize:function(){return n}})},236010:function(e,t,r){"use strict";r.r(t),r.d(t,{getSocket:function(){return a}});var n=r("351892");let i=new Map,o=`ws://${location.host}`;function a(e=o){return function(e=o){if(!i.has(e)){let t=(0,n.io)(e,{});t.on("connect",()=>{console.log(`Scoket Connect ${e}`)}),i.set(e,t)}return i.get(e)}(e)}},423453:function(e,t,r){"use strict";r.r(t),r.d(t,{getLocaleFromStorage:function(){return c},getThemeFromStorage:function(){return l},getViewModeFromStorage:function(){return f},hasViewModeFromStorage:function(){return p},setLocaleToStorage:function(){return d},setThemeToStorage:function(){return u},setViewModeToStorage:function(){return h}});var n,i=r("723854");var o=((n=o||{}).Namespace="__RSDOCTOR__STORAGE__",n.Theme="THEME",n.Locale="LOCALE",n.ViewMode="VIEWMODE",n.APILoaderMode4Dev="APILOADERMODE_DEV",n);function a(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function s(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function l(){return a("THEME")||i.Theme.Light}function u(e){s("THEME",e)}function c(){return a("LOCALE")||i.Language.En}function d(e){s("LOCALE",e)}function f(){let e={bundleAlerts:i.ViewMode.List,compileAlerts:i.ViewMode.List};try{let t=a("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch(t){return e}}function h(e){s("VIEWMODE",JSON.stringify(e))}function p(){return!!a("VIEWMODE")}},864264:function(e,t,r){"use strict";r.r(t),r.d(t,{formatCosts:function(){return o}});let{toFixedDigits:n,getUnit:i,formatCosts:o}=r("534851").Time},431251:function(e,t,r){"use strict";r.r(t),r.d(t,{changeOrigin:function(){return c},getDemoUrl:function(){return d},getManifestUrlFromUrlQuery:function(){return u},getShortPath:function(){return f},isJsDataUrl:function(){return l}});var n=r("393763"),i=r.n(n),o=r("889702"),a=r("667227");function s(e){(0,a.endsWith)(e.hash,o.Client.RsdoctorClientRoutes.Uploader)&&e.set("hash",o.Client.RsdoctorClientRoutes.Overall)}function l(e){return e.startsWith("data:text/javascript;")}function u(){let{query:e}=i()(location.href,!0),t=e[o.Client.RsdoctorClientUrlQuery.ManifestFile];if(t)return decodeURIComponent(t)}function c(e){let t=i()(location.href,!0),r=i()(e,!0);return s(t),t.set("origin",e),t.set("protocol",r.protocol),t.set("host",r.host),t.set("port",r.port),t.toString()}function d(){return null}let f=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}},630212:function(e,t,r){"use strict";r.r(t);var n=r("529829");r.es(n,t);var i=r("307890");r.es(i,t);var o=r("52884");r.es(o,t)},307890:function(e,t,r){"use strict";r.r(t),r.d(t,{master:function(){return i}});var n=r("52884");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(),r=new n.ChildWorker(t);return this._workerMap.set(e,r),r}}},529829:function(e,t,r){"use strict";function n(e,t){return t.postMessage(e)}function i(e,t){let r={id:e.data.id,data:t};return postMessage(r)}function o({handler:e}){onmessage=t=>{let r=e(t.data.data);r instanceof Promise?r.then(e=>{i(t,e)}):i(t,r)}}r.r(t),r.d(t,{handleMessageInWorker:function(){return o},sendMessageInClient:function(){return n},sendMessageInWorker:function(){return i}})},52884:function(e,t,r){"use strict";r.r(t),r.d(t,{ChildWorker:function(){return i}});var n=r("529829");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 r=this.createEventId();return this.callbacks.set(r,t),(0,n.sendMessageInClient)({id:r,data:e},this.worker),{abort:()=>this.callbacks.delete(r)}}dispose(){this.worker.terminate()}}},473744:function(e,t,r){"use strict";r.r(t),r("889702")},143341:function(e,t,r){"use strict";r.r(t);var n=r("473744");r.es(n,t)},214631:function(e,t,r){"use strict";r.r(t);var n=r("143341");r.es(n,t);var i=r("634707");r.es(i,t);var o=r("299407");r.es(o,t)},668674:function(e,t,r){"use strict";r.r(t),r.d(t,{Dependency:function(){return o}});var n=r("889702");let i=1;class o{constructor(e,t,r,n,o){this.statements=[],this.meta={exportsType:"default-with-named"},this.id=i++,this.request=e,this.module=t,this._originDependency=r,this.kind=n,this.statements=o??[]}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 n.SDK.DependencyKind[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===n.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())}}}o.kind=n.SDK.DependencyKind},747366:function(e,t,r){"use strict";r.r(t),r("889702"),r("668674"),r("633801"),r("894294"),r("768758")},634707:function(e,t,r){"use strict";r.r(t);var n=r("668674");r.es(n,t);var i=r("633801");r.es(i,t);var o=r("747366");r.es(o,t);var a=r("894294");r.es(a,t);var s=r("768758");r.es(s,t)},633801:function(e,t,r){"use strict";r.r(t);var n=r("889702"),i=r("918300"),o=r.n(i),a=r("13275"),s=r("668674"),l=r("894294"),u=r("628343");let c=1;n.SDK.ModuleKind},894294:function(e,t,r){"use strict";r.r(t),r.d(t,{Statement:function(){return i}});var n=r("628343");class i{static getDefaultStatement(e){let t={line:1,column:0},r={start:{...t},end:{...t}};return new i(e,{source:{...r},transformed:{...r}})}constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,n.isSameRange)(this.position.transformed,e.position.transformed)}getSourcePosition(){let{module:e,position:t}=this;return t.source?t.source:e.getSourceMap()?(t.source=e.getSourceRange(t.transformed),t.source):void 0}getLineCode(){let e=this.module.isPreferSource&&this.position.source,t=this.module.getSource(),r=e?t.source:t.transformed,n=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof n)return r.split("\n")[n-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}},768758:function(e,t,r){"use strict";r.r(t);var n=r("854558");r.es(n,t);var i=r("975369");r.es(i,t)},854558:function(e,t,r){"use strict";r.r(t),r("975369")},975369:function(e,t,r){"use strict";r.r(t);let n=1;(class e{constructor(t,r,i,o,a){this.id=n++,this._exports=[],this.name=t,this.module=r,this.identifier=i,o&&(this.fromDependency=this.module.getDependencyByRequest(o)),a===e.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=a)}static init(){n=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}}).NamespaceSymbol=Symbol("namespace")},628343:function(e,t,r){"use strict";r.r(t),r.d(t,{getModuleName:function(){return u},isSameRange:function(){return o}});var n=r("13275");function i(e,t){return e.line===t.line&&e.column===t.column}function o(e,t){return!!i(e.start,t.start)&&((0,n.isNil)(e.end)||(0,n.isNil)(t.end)?(0,n.isUndefined)(e.end)&&(0,n.isUndefined)(t.end):i(e.end,t.end))}let a=/!/,s=/\s\+\s\d*\smodules$/,l=/^css\s.*node_modules(?!\/)/;function u(e){if(!e)return"";if(a.test(e)){let t=(0,n.last)(e.split(a));if(t?.trim())return t}return s.test(e)?e.replace(s,""):l.test(e)?e.replace(l,""):e}},562367:function(e,t,r){"use strict";r.r(t),r("13275"),r("918300"),r("889702"),r("534851"),r("773671")},299407:function(e,t,r){"use strict";r.r(t);var n=r("562367");r.es(n,t);var i=r("773671");r.es(i,t)},773671:function(e,t,r){"use strict";r.r(t),r("918300")},315992:function(e,t,r){"use strict";r.r(t);var n=r("214631");r.es(n,t)},867405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},494257:function(e,t,r){"use strict";var n,i,o,a,s,l;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorClientDiffState=t.RsdoctorClientRoutes=t.RsdoctorClientUrlQuery=void 0,(a=n||(t.RsdoctorClientUrlQuery=n={})).BundleDiffFiles="__bundle_files__",a.ManifestFile="manifest",(s=i||(t.RsdoctorClientRoutes=i={})).Overall="/overall",s.WebpackLoaderOverall="/webpack/loaders/overall",s.WebpackLoaderAnalysis="/webpack/loaders/analysis",s.ModuleResolve="/module/resolve",s.WebpackPlugins="/webpack/plugins",s.BundleSize="/bundle/size",s.ModuleAnalyze="/module/analyze",s.TreeShaking="/treeshaking",s.BundleDiff="/resources/bundle/diff",s.RuleIndex="/resources/rules",s.Uploader="/resources/uploader",s.EmoCheck="/emo/check",(l=o||(t.RsdoctorClientDiffState=o={})).Equal="-",l.Up="UP",l.Down="DOWN"},281032:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},203768:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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"],t.MapExtensions=[".js.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=""},98689:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLevel=void 0,(i=n||(t.ErrorLevel=n={}))[i.Ignore=0]="Ignore",i[i.Warn=1]="Warn",i[i.Error=2]="Error"},286766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},889702:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);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=o(r("590359")),t.Esbuild=o(r("286766")),t.Babel=o(r("867405")),t.Common=o(r("281032")),t.Err=o(r("98689")),t.Logger=o(r("609997")),t.SDK=o(r("761095")),t.Modules=o(r("61023")),t.Linter=o(r("710603")),t.Rule=o(r("169344")),t.Thirdparty=o(r("3118")),t.Client=o(r("494257")),t.Constants=o(r("203768")),t.Plugin=o(r("20359"))},908224:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=void 0;var n=r("98689");Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return n.ErrorLevel}})},710603:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("908224"),t),i(r("340285"),t)},340285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},609997:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerInstance=t.LogLevel=void 0,(i=n||(t.LogLevel=n={}))[i.Silent=0]="Silent",i[i.Error=1]="Error",i[i.Warning=2]="Warning",i[i.Info=3]="Info",i[i.Debug=4]="Debug",i[i.Verbose=5]="Verbose";t.LoggerInstance=class e{}},590359:function(e,t,r){"use strict";var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorManifestClientConstant=t.RsdoctorManifestClientRoutes=void 0,(o=n||(t.RsdoctorManifestClientRoutes=n={})).Overall="Overall",o.WebpackLoaders="Compile.WebpackLoaders",o.ModuleResolve="Compile.ModuleResolve",o.WebpackPlugins="Compile.WebpackPlugins",o.BundleSize="Bundle.BundleSize",o.ModuleGraph="Bundle.ModuleGraph",o.TreeShaking="Bundle.TreeShaking",(i||(t.RsdoctorManifestClientConstant=i={})).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__"},61023:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},970418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},862559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},503989:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20359:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("970418"),t),i(r("503989"),t),i(r("649901"),t),i(r("862559"),t)},649901:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},104229:function(e,t,r){"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:`
78
+ `.trim()}function p(e,t){let[r,n]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let r=setTimeout(()=>n(e),t);return()=>clearTimeout(r)},[e,t]),r}},18886:function(e,t,r){"use strict";r.r(t),r.d(t,{DefaultEditorConfig:function(){return n}});let n={readOnly:!0,domReadOnly:!0,fontSize:12,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"bounded",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1}}},96911:function(e,t,r){"use strict";r.r(t),r.d(t,{DiffViewer:function(){return s}});var n=r("766791"),i=r("972440"),o=r("723854"),a=r("373262");let s=({before:e,after:t,filepath:r,className:s,editorProps:l})=>(0,n.jsx)(i.DiffEditor,{className:s,originalLanguage:(0,a.getOriginalLanguage)(r),modifiedLanguage:(0,a.getModifiedLanguage)(r),theme:"vs-dark",original:e,modified:t,width:"100%",...l,options:{readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderIndicators:!0,lineDecorationsWidth:o.Size.BasePadding,definitionLinkOpensInPeek:!1,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},diffWordWrap:"on",...l?.options}})},102897:function(e,t,r){"use strict";r.r(t),r.d(t,{FileHightLightViewer:function(){return c}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("537585"),s=r("972440"),l=r("373262"),u=r("817847");let c=({dependency:e,module:t,cwd:r,moduleCode:c})=>{let d=(0,i.useRef)(null);if(!e)return null;let{statements:f}=e,h=!!f?.[0]?.position?.source,{start:p,end:g}=f?.[0]?.position?h?f[0].position.source:f[0].position.transformed:{start:{line:0,column:0},end:{line:0,column:0}},m=h?c?.source:c?.transformed||c?.source,y=t.path;return(0,n.jsx)(o.Card,{title:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Tooltip,{title:y,zIndex:99999,children:(0,n.jsx)(a.InfoCircleOutlined,{})}),(0,n.jsx)(u.CodeOpener,{cwd:r,url:y,label:(0,l.beautifyModulePath)(y,r).alias,loc:`${p.line}:${p.column||1}`,code:!0,disabled:!0})]}),style:{height:"100%"},children:(0,n.jsx)(s.default,{theme:"vs-dark",language:(0,l.getOriginalLanguage)(y),value:m,width:"100%",height:window.innerHeight/1.5,options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1}},onMount:(e,t)=>{d.current=e;let r=(0,l.getSelectionRange)({start:p,end:g},t.Range),n=(0,l.getRevealPositionForViewer)(r.startLineNumber,r.startColumn);e.revealPositionInCenter(n),e.deltaDecorations([],[{range:r,options:{inlineClassName:"file-inline-decoration"}}])}})})}},8917:function(e,t,r){"use strict";r.r(t);var n=r("96911");r.es(n,t);var i=r("102897");r.es(i,t);var o=r("367010");r.es(o,t);var a=r("18886");r.es(a,t)},367010:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeViewer:function(){return c},CodeViewerWithDrawer:function(){return d}});var n=r("766791"),i=r("972440"),o=r("667227"),a=r("537585"),s=r("373262"),l=r("18886"),u=r("943436");let c=({content:e,ranges:t,path:r,defaultLine:a,editorConfig:u={}})=>(0,n.jsx)(i.default,{theme:"vs-dark",language:(0,s.getOriginalLanguage)(r),value:e,width:"100%",height:window.innerHeight/1.5,options:{...l.DefaultEditorConfig,...u},onMount:(e,r)=>{(0,o.isNumber)(a)&&e.revealLine(a),t&&t.length>0&&e.deltaDecorations([],t.map(e=>({range:(0,s.getSelectionRange)(e,r.Range),options:{inlineClassName:"file-inline-decoration"}})))}}),d=e=>(0,n.jsx)(u.TextDrawer,{text:"",buttonProps:{size:"small",icon:(0,n.jsx)(a.CodepenCircleOutlined,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${e.path}"`},children:(0,n.jsx)(c,{...e})})},820994:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackConfigurationViewer:function(){return p}});var n=r("766791"),i=r("889702"),o=r("907366"),a=r("667227"),s=r("911100"),l=r("735707"),u=r.n(l),c=r("373262"),d=r("321217"),f=r("943436"),h=r("767434");let p=(0,d.withServerAPI)({Component:({defaultKeys:e,configs:t})=>{let r=(0,c.useWebpackConfigurationByConfigs)(t||[]);if(!r)return null;let{config:i,version:l,name:d}=r,p=Object.keys(i),[g,m]=(0,s.useState)(e||p);return(0,n.jsx)(f.TextDrawer,{text:"View Builder Config",children:(0,n.jsxs)(o.Row,{children:[(0,n.jsx)(h.Title,{text:"Builder Config Viewer"}),(0,n.jsx)(o.Divider,{}),(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:"Properties: "}),(0,n.jsx)(o.Select,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:g.length===p.length?[]:g,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{m(e)},children:p.map(e=>(0,n.jsx)(o.Select.Option,{label:e,value:e,children:e},e))})]}),(0,n.jsx)(o.Divider,{}),(0,n.jsx)(u(),{name:l&&"unknown"!==l?`${d}@${l}`:"webpack.config",theme:"monokai",src:0===g.length?i:(0,a.pick)(i,g),displayDataTypes:!1,displayObjectSize:!1})]})})},api:i.SDK.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1})},857238:function(e,t,r){"use strict";r.r(t);var n=r("820994");r.es(n,t)},674542:function(e,t,r){"use strict";r.r(t),r.d(t,{FileTree:function(){return c}});var n=r("766791"),i=r("907366"),o=r("537585"),a=r("83121"),s=r("723854");r("971704");var l=r("373262");let{useToken:u}=i.theme,c=e=>{let{isDark:t}=(0,l.useTheme)(),{token:r}=u(),c=t?r.colorWhite:r.colorText,d={fontSize:r.fontSize};return(0,n.jsx)(a.default,{checkable:!1,selectable:!0,switcherIcon:({data:e,expanded:t})=>e?.children?(0,n.jsxs)(i.Space,{style:{color:c},children:[(0,n.jsx)(o.RightOutlined,{twoToneColor:c,className:`file-tree-switcher-arrow ${t?"file-tree-switcher-arrow-expand":""}`,style:d}),t?(0,n.jsx)(o.FolderOpenOutlined,{twoToneColor:c,style:d}):(0,n.jsx)(o.FolderOutlined,{twoToneColor:c,style:d})]}):(0,n.jsx)(o.FileOutlined,{style:{marginLeft:s.Size.BasePadding-6,color:c}}),expandAction:"click",...e})}},792489:function(e,t,r){"use strict";r.r(t),r.d(t,{KeywordInput:function(){return a}});var n=r("766791"),i=r("911100"),o=r("907366");let a=({icon:e,label:t,labelStyle:r={},placeholder:a,onChange:s,style:l,className:u,width:c,delay:d=300})=>{let f;let[h,p]=(0,i.useState)(""),g={width:120,...r},m=(0,i.useRef)(null);return(0,i.useEffect)(()=>{s(h)},[h]),(0,n.jsxs)(o.Input.Group,{compact:!0,style:l,className:u,children:[t||e?(0,n.jsxs)(o.Button,{style:g,onClick:()=>{m&&m.current&&m.current.focus()},children:[e||null,(0,n.jsx)(o.Typography.Text,{children:t})]}):null,(0,n.jsx)(o.Input,{ref:m,allowClear:!0,defaultValue:h,style:{width:c?c-120:250},placeholder:a,onChange:e=>{clearTimeout(f);let t=e.target.value.trim();setTimeout(()=>{p(t)},d)}})]})}},289641:function(e,t,r){"use strict";r.r(t),r.d(t,{Keyword:function(){return o}});var n=r("766791"),i=r("907366");let o=({text:e,keyword:t,...r})=>{if(!t||-1===e.indexOf(t))return(0,n.jsx)(i.Typography.Text,{...r,children:e});let o=[],a=e;for(;a.length>0;){let e=a.indexOf(t);if(e>-1)0!==e&&o.push((0,n.jsx)(i.Typography.Text,{style:{fontSize:"inherit"},children:a.slice(0,e)},o.length)),o.push((0,n.jsx)(i.Typography.Text,{mark:!0,style:{fontSize:"inherit"},children:t},o.length)),a=a.slice(e+t.length);else{o.push((0,n.jsx)(i.Typography.Text,{style:{fontSize:"inherit"},children:a},o.length));break}}return(0,n.jsx)(i.Typography.Text,{...r,children:o})}},297517:function(e,t,r){"use strict";r.r(t),r.d(t,{BuilderSelect:function(){return l}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("521964"),s=r("373262");let l=()=>{let[e,t]=(0,o.useState)(""),[r,l]=(0,o.useState)([]);return((0,o.useEffect)(()=>{(0,s.fetchManifest)().then(({name:e,series:r})=>{e&&t(e),r&&r.length>0&&l(r)})},[]),e.length<=0||r.length<=0)?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Divider,{type:"vertical",style:{margin:"0 24px"}}),(0,n.jsx)("img",{src:a,style:{marginRight:6,height:16}}),(0,n.jsx)(i.Typography,{children:"Compiler"}),(0,n.jsx)(i.Select,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=r.find(t=>t.name===e);t&&(t.origin?location.href=(0,s.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:r.map((e,t)=>(0,n.jsx)(i.Select.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})}},277680:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileName:function(){return n}});let n="Compile Analysis"},772195:function(e,t,r){"use strict";r.r(t),r.d(t,{Header:function(){return d}});var n=r("766791"),i=r("537585"),o=r("907366"),a=r("723854"),s=r("373262"),l=r("98394"),u=r("297517"),c=r("625548");r("853938");let d=()=>{let{i18n:e}=(0,s.useI18n)(),{isLight:t}=(0,s.useTheme)(),r=[{value:a.Language.Cn,label:"\u4E2D\u6587"},{value:a.Language.En,label:"English"}];return(0,n.jsx)(o.Layout.Header,{style:{height:a.Size.NavBarHeight,padding:0,paddingLeft:a.Size.BasePadding,paddingRight:a.Size.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:t?"#fff":"#141414",transition:"none"},children:(0,n.jsxs)(o.Row,{justify:"space-between",align:"middle",style:{height:a.Size.NavBarHeight},wrap:!1,children:[(0,n.jsx)(o.Col,{style:{height:a.Size.NavBarHeight,lineHeight:`${a.Size.NavBarHeight+2}px`},children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,n.jsx)("img",{style:{height:30},src:"https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor.png",className:"web-doctor-logo",alt:"logo"}),(0,n.jsx)(o.Typography.Text,{style:{color:"inherit",fontSize:18,marginLeft:4,marginTop:8},children:"Rsdoctor"}),(0,n.jsx)(u.BuilderSelect,{})]})}),(0,n.jsx)(o.Col,{flex:1,children:(0,n.jsxs)(o.Row,{align:"middle",justify:"end",style:{height:a.Size.NavBarHeight},wrap:!1,gutter:[a.Size.BasePadding/3,0],children:[(0,n.jsx)(o.Col,{children:(0,n.jsx)(l.OverlayAlertsWithButton,{})}),(0,n.jsx)(c.Menus,{style:{transition:"none"}}),(0,n.jsx)(o.Col,{children:(0,n.jsx)(o.Dropdown,{overlayStyle:{zIndex:1e3},menu:{items:r.map(t=>({label:t.label,key:t.value,onClick(){e.changeLanguage(t.value)}})),selectedKeys:[e.language]},children:(0,n.jsx)(i.TranslationOutlined,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})}},967079:function(e,t,r){"use strict";r.r(t),r.d(t,{Layout:function(){return c}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("723854"),s=r("772195"),l=r("373262"),u=r("747668");let c=e=>{let t=(0,l.useLocale)(),{i18n:r}=(0,l.useI18n)(),{children:c}=e;return(0,i.useEffect)(()=>{r.language!==t&&r.changeLanguage(t)},[t]),(0,n.jsxs)(o.Layout,{children:[(0,n.jsx)(s.Header,{}),(0,n.jsx)(u.Progress,{}),(0,n.jsxs)(o.Layout.Content,{style:{height:"100%",minHeight:"100vh",padding:a.Size.BasePadding,marginTop:a.Size.NavBarHeight,background:a.MAIN_BG},children:[c,(0,n.jsx)(o.FloatButton.BackTop,{})]})]})}},625548:function(e,t,r){"use strict";r.r(t),r.d(t,{Menus:function(){return m}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("667227"),l=r("336873"),u=r("131988"),c=r("723854"),d=r("194445"),f=r("373262"),h=r("321217"),p=r("350802"),g=r("277680");let m=(0,h.withServerAPI)({api:o.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,f.useI18n)(),{pathname:r}=(0,l.useLocation)(),h=(0,l.useNavigate)(),{routes:m}=e,y={fontSize:16},x={...y,transform:"translateY(-2px)"},v=[],{xxl:j}=a.Grid.useBreakpoint();console.log("enableRoutes: ",m),(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.Overall)&&v.push({label:t(d.name),key:d.route,icon:(0,n.jsx)(i.BarChartOutlined,{style:y}),children:[],onTitleClick(e){h(e.key)}}),(0,f.hasCompile)(m)&&v.push({label:t(g.CompileName),key:g.CompileName,icon:(0,n.jsx)(i.ToolOutlined,{style:y}),children:[(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:(0,n.jsx)(a.Typography.Text,{style:{marginRight:8},children:t(p.LoaderFiles.name)}),key:p.LoaderFiles.route,icon:(0,n.jsx)("img",{src:u,alt:"",style:{...y,width:16}}),children:[{label:t(p.LoaderTimeline.name),key:p.LoaderTimeline.route,icon:(0,n.jsx)(i.BarChartOutlined,{style:y})},{label:t(p.LoaderFiles.name),key:p.LoaderFiles.route,icon:(0,n.jsx)(i.MonitorOutlined,{style:y})}]},(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(p.ModuleResolve.name),key:p.ModuleResolve.route,icon:(0,n.jsx)(i.NodeIndexOutlined,{style:y})},(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(p.PluginsAnalyze.name),key:p.PluginsAnalyze.route,icon:(0,n.jsx)(i.ApiOutlined,{style:y})}].filter(e=>!!e)}),(0,f.hasBundle)(m)&&v.push({label:t(p.BundleSize.name),key:p.BundleSize.name,icon:(0,n.jsx)("span",{style:x,children:"\uD83D\uDCE6"}),children:[(0,s.includes)(m,o.Manifest.RsdoctorManifestClientRoutes.BundleSize)&&{label:t(p.BundleSize.name),key:p.BundleSize.route,icon:(0,n.jsx)(i.FolderViewOutlined,{style:y})}].filter(e=>!!e)});let S=(0,n.jsx)(a.Menu,{items:v,mode:"horizontal",onClick:e=>{!e.keyPath.includes("builder-switcher")&&h(e.key)},overflowedIndicator:(0,n.jsx)(i.MenuOutlined,{}),style:{height:c.Size.NavBarHeight,lineHeight:`${c.Size.NavBarHeight}px`,minWidth:0,justifyContent:j?"center":"flex-end",...e.style},selectedKeys:["/"===r?d.route:r]},m.join(""));return(0,n.jsx)(a.Col,{xs:{span:3},md:{span:6},lg:{span:10},xl:{span:11},xxl:{span:12},children:S})},fallbackComponent:()=>null})},747668:function(e,t,r){"use strict";r.r(t),r.d(t,{Progress:function(){return l}});var n=r("766791"),i=r("907366"),o=r("889702"),a=r("723854"),s=r("321217");let l=(0,s.withServerAPI)({api:o.SDK.ServerAPI.APIExtends.GetCompileProgess,responsePropName:"progress",Component:({progress:e})=>{if(!e)return null;let{percentage:t=1,message:r}=e;if(t>=1)return null;let o=+(100*t).toFixed(1);return(0,n.jsx)(i.Row,{wrap:!0,style:{width:"100%",position:"fixed",top:a.Size.NavBarHeight,left:1,zIndex:99},children:(0,n.jsx)(i.Col,{span:Math.min(Math.floor(24*t),24),children:(0,n.jsx)(i.Progress,{percent:100,status:"active",size:"small",format:()=>(0,n.jsx)(i.Typography.Text,{style:{fontSize:12},type:"secondary",children:`${o}% ${r}`})})})})},fallbackComponent:()=>null})},98159:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderFiles:function(){return y}});var n=r("766791"),i=r("911100"),o=r.n(i),a=r("667227"),s=r("907366"),l=r("537585"),u=r("889702"),c=r("321217"),d=r("723854"),f=r("373262"),h=r("576778"),p=r("674542"),g=r("289641"),m=r("74190");let y=e=>{let{cwd:t,filetree:r}=e,[y,x]=(0,i.useState)(!1),[v,j]=(0,i.useState)(""),[S,b]=(0,i.useState)(0),[_,C]=(0,i.useState)(null),w=(0,i.useRef)(null),{initMonaco:T}=(0,f.useMonacoEditor)(),P=(0,i.useCallback)(async()=>{await T(w)},[]),A=(0,i.useMemo)(()=>r.filter(t=>t.loaders.some(r=>(0,f.filterLoader)(t.path,r.loader,e.filename,e.loaders))),[e.filename,e.loaders]),I="__RESOURCEPATH__",M=(0,i.useMemo)(()=>(0,f.createFileStructures)({files:A.map(e=>e.path),cwd:t,fileTitle(t,i){let{loaders:o}=r.find(e=>e.path===t);return(0,n.jsxs)(s.Space,{style:{wordBreak:"break-all"},onClick:()=>{b(0),j(t),x(!0)},children:[(0,n.jsx)(g.Keyword,{text:i,keyword:e.filename}),(0,a.endsWith)(t,u.Constants.JSExtension)?(0,n.jsx)(c.ServerAPIProvider,{api:u.SDK.ServerAPI.API.GetLoaderFileFirstInput,body:{file:t},fallbackComponent:()=>null,children:e=>(0,n.jsx)(m.ECMAVersionDetectTag,{code:e})}):null,o.map((e,r)=>{let i=e.errors&&e.errors.length,o=`${t}_${e.loader}_${r}`;return(0,n.jsx)(s.Tooltip,{title:e.path,children:(0,n.jsxs)(s.Typography.Text,{code:!0,style:{color:i?"#f50":"inherit"},onClick:e=>{e.stopPropagation(),j(t),b(r),x(!0)},children:[(0,n.jsx)(s.Typography.Text,{style:{maxWidth:135,color:"inherit"},ellipsis:!0,children:e.loader}),(0,n.jsx)(s.Divider,{type:"vertical"}),i?(0,n.jsx)(l.CloseCircleOutlined,{}):(0,n.jsx)(s.Typography.Text,{strong:!0,children:(0,f.formatCosts)(e.costs)})]})},o)})]})},dirTitle:(t,r)=>(0,n.jsx)(g.Keyword,{text:r,keyword:e.filename})}),[A]);return(0,n.jsxs)(s.Row,{style:{width:"100%"},gutter:d.Size.BasePadding,children:[(0,n.jsx)(s.Col,{span:14,children:(0,n.jsxs)(s.Card,{title:(0,n.jsxs)(s.Typography.Text,{strong:!0,children:["Total Files: ",A.length]}),bodyStyle:{overflow:"scroll",maxHeight:700},children:[(0,n.jsx)(p.FileTree,{defaultExpandedKeys:(0,f.mapFileKey)(M,A.length>=100?3:4,e=>!((0,a.get)(e,I).indexOf("/node_modules/")>-1)),treeData:M,onSelect:(e,t)=>{P(),!t.node.isLeaf&&C(t.node)},selectedKeys:_?[_.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,n.jsx)(s.Drawer,{open:y,onClose:()=>x(!1),maskClosable:!0,width:d.drawerWidth,zIndex:999,bodyStyle:{padding:0},children:y?(0,n.jsx)(c.ServerAPIProvider,{api:u.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:v},children:e=>(0,n.jsx)(h.LoaderExecutions,{data:e,cwd:t,index:S})}):null})]})}),_?(0,n.jsx)(s.Col,{span:10,children:(0,n.jsx)(s.Card,{title:(0,n.jsx)(s.Tooltip,{title:o().cloneElement(_.title,{style:{color:"#fff"}}),children:(0,n.jsxs)(s.Typography.Text,{children:['Statistics of "',_.title,'"']})}),children:(0,n.jsx)(c.ServerAPIProvider,{api:u.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:_[I]},children:e=>(0,n.jsx)(s.Table,{style:{width:"100%",maxHeight:700,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,n.jsx)(s.Typography.Text,{strong:!0,children:(0,f.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e,footer:()=>(0,n.jsxs)(s.Descriptions,{title:"Total",bordered:!0,layout:"vertical",size:"small",children:[(0,n.jsx)(s.Descriptions.Item,{label:"loaders",children:e.length}),(0,n.jsx)(s.Descriptions.Item,{label:"files",children:(0,a.sumBy)(e,e=>e.files)}),(0,n.jsx)(s.Descriptions.Item,{label:"duration",children:(0,n.jsx)(s.Typography.Text,{strong:!0,children:(0,f.formatCosts)((0,a.sumBy)(e,e=>e.costs))})})]})})})})}):null]})}},934608:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderAnalysis:function(){return u}});var n=r("766791"),i=r("911100"),o=r("889702"),a=r("321217"),s=r("98159"),l=r("19492");let u=(0,a.withServerAPI)({api:o.SDK.ServerAPI.API.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:({cwd:e})=>{let[t,r]=(0,i.useState)({filename:"",loaders:[]});return(0,n.jsxs)("div",{children:[(0,n.jsx)(a.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,n.jsx)(l.LoaderCommonSelect,{onChange:e=>r(e),loaderNames:e})}),(0,n.jsx)(a.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetLoaderFileTree,children:r=>(0,n.jsx)(s.LoaderFiles,{filename:t.filename,filetree:r,loaders:t.loaders,cwd:e})})]})}})},576778:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderExecutions:function(){return j}});var n=r("766791"),i=r("537585"),o=r("972440"),a=r("889702"),s=r("907366"),l=r("770866"),u=r.n(l),c=r("667227"),d=r("911100"),f=r("723854"),h=r("373262"),p=r("794568"),g=r("8917"),m=r("817847"),y=r("767434"),x=r("986424");let v=({label:e,value:t,ellipsis:r=!1,...i})=>(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:6,children:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Badge,{status:"processing"}),(0,n.jsx)("div",{style:{width:180},children:(0,n.jsx)(s.Typography.Text,{strong:!0,code:!0,children:e})}),(0,n.jsx)(s.Divider,{type:"vertical"})]})}),(0,n.jsx)(s.Col,{span:18,children:(0,n.jsx)(s.Typography.Paragraph,{ellipsis:r,strong:!0,...i,children:t})})]}),j=({data:e,cwd:t,index:r})=>{let{loaders:l,resource:j}=e,[S,b]=(0,d.useState)(r||0),{theme:_}=(0,h.useTheme)(),C="light"===_,w=l[S],T=w.input||"",P=w.errors&&w.errors.length;return(0,n.jsxs)(s.Row,{style:{height:"100%"},children:[(0,n.jsx)(s.Col,{span:5,style:{borderRight:C?"1px solid #f0f0f0":void 0,padding:f.Size.BasePadding},children:(0,n.jsxs)(s.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(y.Title,{text:"Executions"}),(0,n.jsx)(s.Timeline,{mode:"left",style:{marginTop:f.Size.BasePadding},children:l.map((e,t,r)=>{let{loader:o,isPitch:a}=e;return(0,n.jsxs)(s.Timeline.Item,{dot:a?(0,n.jsx)(s.Tag,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,n.jsx)(i.ClockCircleOutlined,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,n.jsx)(s.Row,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,n.jsx)(s.Col,{span:24,children:(0,n.jsx)(s.Tooltip,{title:o,trigger:"hover",children:(0,n.jsx)(s.Button,{type:t===S?"primary":"default",block:!0,onClick:()=>{b(t)},style:{textAlign:"left"},children:(0,n.jsxs)(s.Typography.Text,{ellipsis:!0,style:{color:"inherit"},children:[(0,n.jsx)(s.Typography.Text,{strong:!0,style:{color:"inherit"},children:(0,h.formatCosts)(e.costs)}),(0,n.jsx)(s.Divider,{type:"vertical"}),o]})})})})}),t===r.length-1?null:(0,n.jsx)("div",{style:{paddingTop:10},children:(0,n.jsx)(s.Typography.Text,{children:"\u2B07\uFE0F"})})]},t)})})]})}),(0,n.jsxs)(s.Col,{span:19,style:{height:"100%"},children:[(0,n.jsx)(s.Col,{span:24,children:(0,n.jsxs)(p.Card,{title:"Loader Details",style:{border:"none"},collapsable:!0,defaultCollapsed:!0,extra:(0,n.jsx)(s.Tag,{icon:(0,n.jsx)(i.ClockCircleOutlined,{}),color:"default",children:u()(w.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:[w.isPitch?(0,n.jsx)(s.Typography.Text,{code:!0,children:"pitch"}):null,w.isPitch||P||!(0,c.endsWith)(j.path,a.Constants.JSExtension)?null:(0,n.jsx)(x.JSIsEqualTag,{input:T,output:w.result||""}),(0,n.jsxs)(s.Space,{direction:"vertical",style:{padding:f.Size.BasePadding,wordBreak:"break-all"},children:[(0,n.jsx)(v,{label:"file path",value:(0,h.beautifyPath)(j.path,t),code:!0}),(0,n.jsx)(v,{label:"resource path",value:(0,n.jsx)(m.CodeOpener,{cwd:t,url:j.path,loc:"",disabled:!0})}),(0,n.jsx)(v,{label:"resource query",value:j.queryRaw||"-"}),(0,n.jsx)(v,{label:"duration",value:(0,h.formatCosts)(w.costs),mark:!0}),(0,n.jsx)(v,{label:"loader name",value:w.loader,code:!0}),(0,n.jsx)(v,{label:"loader index",value:`${w.loaderIndex}`}),(0,n.jsx)(v,{label:"loader path",value:(0,n.jsx)(m.CodeOpener,{cwd:t,url:w.path,loc:"",disabled:!0})}),(0,n.jsx)(v,{label:"options",value:JSON.stringify(w.options||"-"),copyable:!0,ellipsis:{rows:2,expandable:!0,symbol:"more"}})]})]})}),P?(0,n.jsxs)(s.Col,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsx)("div",{style:{padding:f.Size.BasePadding,borderTop:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,n.jsx)(y.Title,{text:`the error stack of [${w.loader}] ${w.isPitch?"pitch":""}`})}),(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(o.default,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},lineNumbers:"off"},value:w.errors[0].message,language:"javascript"})})]}):(0,n.jsxs)(s.Col,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsx)("div",{style:{padding:f.Size.BasePadding,borderTop:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${C?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,n.jsx)(y.Title,{text:`the result of [${w.loader}] ${w.isPitch?"pitch":""}`})}),w.isPitch?w.result?(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(o.default,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,formatOnType:!0,formatOnPaste:!0},value:w.result,language:(0,h.getModifiedLanguage)(j.path)})}):(0,n.jsx)(s.Empty,{}):(0,n.jsxs)("div",{style:{height:"90%"},children:[(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:12,style:{padding:`${f.Size.BasePadding/2}px ${f.Size.BasePadding}px`},children:(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Input"})}),(0,n.jsx)(s.Col,{span:12,style:{padding:`${f.Size.BasePadding/2}px ${f.Size.BasePadding}px`},children:(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Output"})})]}),(0,n.jsx)("div",{style:{height:"86%"},children:(0,n.jsx)(g.DiffViewer,{filepath:j.path,before:T,after:w.result||""})})]})]})]})]})}},752179:function(e,t,r){"use strict";r.r(t),r.d(t,{ServerAPIProvider:function(){return d},withServerAPI:function(){return f}});var n=r("766791"),i=r("889702"),o=r("907366"),a=r("911100"),s=r("667227"),l=r("373262"),u=r("723854"),c=r("504285");let d=e=>{let{manifestLoader:t=l.fetchManifest,api:r,children:d,body:f=null,showSkeleton:h=!0,fallbackComponent:p}=e,g=t(),[m,y]=(0,a.useState)(),[x,v]=(0,a.useState)(u.ComponentState.Pending),[j,S]=(0,a.useState)({}),{loader:b}=(0,l.useDataLoader)(m);function _(e){(function(e){return e.then(e=>{y(e)}).catch(e=>{throw v(u.ComponentState.Fail),e})})(g).then(()=>{(function(e){if(!e)return;let t=(0,s.values)(i.SDK.ServerAPI.APIExtends);if((0,s.includes)(t,r)){v(u.ComponentState.Success);return}e.loadAPI(r,f).then(e=>{!(0,s.isNil)(e)&&(S(e),v(u.ComponentState.Success))}).catch(e=>{console.error(e),v(u.ComponentState.Fail)})})(e)})}let C=(0,a.useCallback)(({req:e,res:t})=>{e.api===r&&((0,s.isEqual)(e.body,f)||(0,s.isNil)(e.body)&&(0,s.isNil)(f))&&!(0,s.isEqual)(j,t)&&S(t),v(u.ComponentState.Success)},[j,r,f]);(0,a.useEffect)(()=>{_(b)},[b,r,f]),(0,a.useEffect)(()=>{if(b)return b.onDataUpdate(r,C),()=>{b.removeOnDataUpdate(r,C)}},[b,r,f]);if(x===u.ComponentState.Pending)return h?(0,n.jsx)(o.Skeleton,{active:!0}):null;if(x===u.ComponentState.Fail)return p?p:(0,n.jsx)(c.FailedStatus,{retry:()=>{v(u.ComponentState.Pending),g=t(),_()}});return x===u.ComponentState.Updating?(0,n.jsx)(o.Spin,{spinning:!0,children:d(j)}):d(j)};function f({Component:e,api:t,responsePropName:r,body:i,fallbackComponent:o,showSkeleton:a}){return function(s){let{body:l=i,...u}=s;return(0,n.jsx)(d,{api:t,body:l,showSkeleton:a,fallbackComponent:o,children:t=>{let i={...u,[r]:t};return(0,n.jsx)(e,{...i})}})}}},493338:function(e,t,r){"use strict";r.r(t),r("766791"),r("911100"),r("373262"),r("723854"),r("504285")},321217:function(e,t,r){"use strict";r.r(t);var n=r("493338");r.es(n,t);var i=r("752179");r.es(i,t)},449537:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeOpener:function(){return c}});var n=r("766791"),i=r("907366"),o=r("918300"),a=r.n(o),s=r("667227"),l=r("302515");let u=+Date.now().toString().slice(-4)+1e3,c=({cwd:e,url:t,loc:r,windowId:o=u,label:c,disabled:d,code:f=!1})=>{let h=a().resolve(e,function(e){let t=e.split(" "),r="";return 1===t.length?[r]=t:[r]=t.filter(e=>a().isAbsolute(e)||(0,s.startsWith)(e,"./")),r||e}(t)),{line:p,columnStart:g}=function(e){if(!e)return{line:1,column:1};let[t,r=""]=e.split(":"),[n=1,i]=r.split("-");return{line:t,columnStart:n,columnEnd:i||n}}(r);return(0,n.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,n.jsx)(i.Typography.Text,{copyable:{text:h},children:(0,n.jsxs)(i.Typography.Text,{code:f,onClick:()=>{!d&&(0,l.openVSCode)({file:h,line:p,column:g,windowId:o})},style:{cursor:d?"revert":"pointer"},children:[c||t,r?`:${r}`:""]})}),(0,n.jsx)("div",{style:{display:"inline-block"}})]})}},817847:function(e,t,r){"use strict";r.r(t);var n=r("449537");r.es(n,t);var i=r("302515");r.es(i,t)},302515:function(e,t,r){"use strict";r.r(t),r.d(t,{openVSCode:function(){return i}}),r("766791");var n=r("667227");function i({file:e,line:t=1,column:r=1,windowId:i}){let o={windowId:i},a=Object.keys(o).map(e=>{let t=o[e];return(0,n.isNil)(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),s=`vscode://file/${e}:${t}:${r}`;a&&(s+=`?${a}`),window.open(s)}},926499:function(e,t,r){"use strict";r.r(t),r.d(t,{NumberButton:function(){return a}});var n=r("766791"),i=r("907366"),o=r("985630");let a=({theme:e,number:t,onClick:r,description:a,numberFontSize:s})=>{let l={success:{number:o.default.successNumber,button:o.default.successButton,description:o.default.successText},error:{number:o.default.errorNumber,button:o.default.errorButton,description:o.default.errorText},warning:{number:o.default.warningNumber,button:o.default.warningButton,description:o.default.warningText}};return(0,n.jsxs)(i.Button,{type:"text",className:l[e].button,onClick:r,children:[(0,n.jsx)(i.Typography.Text,{className:l[e].number,style:{fontSize:s},children:t}),(0,n.jsx)("div",{className:l[e].description,children:a})]})}},985630:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("404183");var n={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"}},324543:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleOverall:function(){return j}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("889702"),s=r("537585"),l=r("336873"),u=r("373262"),c=r("943436"),d=r("794568"),f=r("321217"),h=r("674542"),p=r("727323"),g=r("566448"),m=r("985630"),y=r("926499");let x=e=>{let t=(0,o.useMemo)(()=>e.files.length?(0,u.createFileStructures)({files:e.files.map(e=>e.path),fileTitle(t,r){let{size:o,initial:a}=e.files.find(e=>e.path===t);return(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{children:r}),(0,n.jsx)(i.Tag,{color:"success",style:{marginRight:0},children:(0,u.formatSize)(o)}),a?(0,n.jsx)(i.Tag,{color:"cyan",children:"Initial"}):null]})}}):[],[e.files]);return(0,n.jsx)(n.Fragment,{children:e.files.length?(0,n.jsx)(c.TextDrawer,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},text:(0,n.jsxs)(n.Fragment,{children:[e.count," ",(0,n.jsx)(s.ExceptionOutlined,{})]}),children:(0,n.jsx)(h.FileTree,{treeData:t,defaultExpandAll:!0})}):e.count})},v=({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:x(e.js.total)},{key:"js-files-size",label:"JS size",children:(0,u.formatSize)(e.js.total.size)},{key:"css-files-count",label:"CSS files",children:x(e.css.total)},{key:"css-files-size",label:"CSS size",children:(0,u.formatSize)(e.css.total.size)},{key:"font-files-count",label:"Font files",children:x(e.fonts.total)},{key:"font-files-size",label:"Font size",children:(0,u.formatSize)(e.fonts.total.size)},{key:"html-files-count",label:"HTML files",children:x(e.html.total)},{key:"html-files-size",label:"HTML size",children:(0,u.formatSize)(e.html.total.size)},{key:"image-files-count",label:"Image files",children:x(e.imgs.total)},{key:"image-files-size",label:"Image size",children:(0,u.formatSize)(e.imgs.total.size)},{key:"media-files-count",label:"Media files",children:x(e.media.total)},{key:"media-files-size",label:"Media size",children:(0,u.formatSize)(e.media.total.size)}];return(0,n.jsx)(i.Descriptions,{className:p.default.root,size:"small",column:2,items:t})},j=({errors:e,cwd:t})=>{let{t:r}=(0,u.useI18n)(),o=(0,l.useNavigate)(),s=(0,u.useDuplicatePackagesByErrors)(e);return(0,n.jsx)(f.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let l=(0,u.formatSize)(e.all.total.size);return(0,n.jsxs)(d.Card,{title:r("Bundle Overall"),className:g.default.card,children:[(0,n.jsxs)(i.Row,{gutter:16,children:[(0,n.jsx)(i.Col,{span:12,className:m.default.container,children:(0,n.jsx)(y.NumberButton,{theme:"success",number:l,description:"Total Size",numberFontSize:"30px",onClick:()=>{o(a.Client.RsdoctorClientRoutes.BundleSize)}})}),(0,n.jsx)(i.Col,{span:12,className:m.default.container,children:(0,n.jsx)(c.DuplicatePackageDrawerWithServer,{cwd:t,duplicatePackages:s,button:(0,n.jsx)(y.NumberButton,{theme:0===s.length?"success":"warning",number:s.length,description:"Duplicate Packages"})})})]}),(0,n.jsx)(v,{res:e})]})}})}},566448:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("563296");var n={card:"card_3bba1"}},956914:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileOverall:function(){return g}});var n=r("766791"),i=r("534851"),o=r("907366"),a=r("373262"),s=r("794568"),l=r("685394"),u=r("682508"),c=r("388558"),d=r("566448"),f=r("458017");let h=({children:e,name:t,showDivider:r=!0})=>(0,n.jsxs)(o.Typography.Text,{style:{color:"inherit"},children:[(0,n.jsx)(o.Typography.Text,{style:{color:"inherit"},children:t}),r?(0,n.jsx)(o.Divider,{type:"vertical"}):null,e]}),p=e=>e<33.3?{"0%":"#95de64","100%":"#5cdbd3"}:{"0%":"#ff9c6e","100%":"#ff7875"},g=({summary:e})=>{let{t}=(0,a.useI18n)();if(!e?.costs?.length)return null;let r=Math.max(...e.costs.map(e=>e.costs));return(0,n.jsx)(s.Card,{title:t("Compile Overall"),className:d.default.card,children:(0,n.jsx)(o.Space,{style:{wordBreak:"break-all",width:"100%"},size:20,direction:"vertical",children:e.costs.map(t=>{let{name:s,costs:d}=t,g=100*d/r,m=(0,n.jsx)(o.Progress,{className:f.default.progress,percent:g,status:"normal",strokeColor:p(g),format:()=>(0,a.formatCosts)(d)});switch(s){case i.Summary.SummaryCostsDataName.Bootstrap:return(0,n.jsxs)(h,{name:"Bootstrap ~ BeforeCompile",children:[(0,n.jsx)(l.BootstrapChartContainer,{summary:e}),m]},s);case i.Summary.SummaryCostsDataName.Compile:return(0,n.jsx)(h,{name:"Compile",showDivider:!1,children:m},s);case i.Summary.SummaryCostsDataName.Done:return(0,n.jsxs)(h,{name:"AfterCompile ~ Done",children:[(0,n.jsx)(u.DoneChartContainer,{summary:e}),m]},s);case i.Summary.SummaryCostsDataName.Minify:return(0,n.jsxs)(h,{name:"Minify",children:[(0,n.jsx)(c.MinifyChartContainer,{summary:e}),m]},s);default:return null}})})})}},458017:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("629247");var n={progress:"progress_61324"}},580778:function(e,t,r){"use strict";r.r(t);var n=r("324543");r.es(n,t);var i=r("956914");r.es(i,t);var o=r("992461");r.es(o,t)},727323:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("192828");var n={root:"root_17e15"}},992461:function(e,t,r){"use strict";r.r(t),r.d(t,{ProjectOverall:function(){return g}});var n=r("766791"),i=r("907366"),o=r("667227"),a=r("373262"),s=r("857238"),l=r("794568"),u=r("727323"),c=r("566448"),d=r("985630"),f=r("943436"),h=r("98394"),p=r("926499");let g=({configs:e=[],cwd:t,envinfo:r,alerts:g=[]})=>{let{t:m}=(0,a.useI18n)(),y=(0,o.filter)(g,e=>"warn"===e.level).length,x=g.length-y,v=[...Object.keys(r).map(e=>{let t=/Version$/,n=t.test(e);return{key:e,label:n?e.replace(t,""):e,children:r?r[e]:void 0}}),...e.filter(e=>!!e.version).map(e=>{let{name:t,version:r}=e;return{key:t,label:t,children:r}}),{key:"cwd",label:"cwd",children:t}];return(0,n.jsxs)(l.Card,{title:m("Project Overall"),extra:(0,n.jsx)(s.WebpackConfigurationViewer,{}),className:c.default.card,children:[(0,n.jsxs)(i.Row,{gutter:16,children:[(0,n.jsx)(i.Col,{span:12,className:d.default.container,children:(0,n.jsx)(f.TextDrawer,{button:(0,n.jsx)(p.NumberButton,{theme:0===x?"success":"error",number:x,description:"Errors"}),drawerProps:{title:"Errors List"},children:(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(h.OverlayAlertsWithTips,{defaultOpen:!1}),(0,n.jsx)(h.BundleAlerts,{filter:e=>"error"===e.level}),(0,n.jsx)(h.CompileAlerts,{filter:e=>"error"===e.level})]})})}),(0,n.jsx)(i.Col,{span:12,className:d.default.container,children:(0,n.jsx)(f.TextDrawer,{button:(0,n.jsx)(p.NumberButton,{theme:0===y?"success":"warning",number:y,description:"Warnings"}),drawerProps:{title:"Warnings List"},children:(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(h.OverlayAlertsWithTips,{defaultOpen:!1}),(0,n.jsx)(h.BundleAlerts,{filter:e=>"warn"===e.level}),(0,n.jsx)(h.CompileAlerts,{filter:e=>"warn"===e.level})]})})})]}),(0,n.jsx)(i.Descriptions,{className:u.default.root,items:v,size:"small",column:1})]})}},153218:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackPluginsDataTable:function(){return s}});var n=r("766791");r("911100");var i=r("907366"),o=r("667227"),a=r("373262");let s=({dataSource:e})=>(0,n.jsx)(i.Table,{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,n.jsx)(i.Tooltip,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>(0,a.formatCosts)((0,o.sumBy)(t.data,e=>e.costs)),sorter:(e,t)=>(0,o.sumBy)(e.data,e=>e.costs)-(0,o.sumBy)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},397991:function(e,t,r){"use strict";r.r(t),r.d(t,{ResolverAnalysis:function(){return v}});var n=r("766791"),i=r("911100"),o=r.n(i),a=r("667227"),s=r("907366"),l=r("537585"),u=r("534851"),c=r("889702"),d=r("723854"),f=r("373262"),h=r("674542"),p=r("792489"),g=r("8917"),m=r("321217");let y=({filepath:e,before:t,after:r,resolvers:a})=>{let[c,d]=(0,i.useState)(!1);return(0,n.jsxs)(o().Fragment,{children:[(0,n.jsx)(s.Col,{flex:1,children:(0,n.jsx)(s.Card,{title:"Resolve Diff Viewer",children:(0,n.jsx)(g.DiffViewer,{filepath:e,before:t,after:r,editorProps:{height:735}})})}),(0,n.jsx)(s.Col,{span:c?2:7,children:(0,n.jsx)(s.Card,{title:c?"...":"Resolve Details",extra:(0,n.jsx)(s.Button,{onClick:()=>d(!c),size:"small",icon:c?(0,n.jsx)(l.MenuFoldOutlined,{}):(0,n.jsx)(l.MenuUnfoldOutlined,{})}),style:c?{width:80}:void 0,children:c?null:(0,n.jsx)(s.Table,{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,n.jsx)(s.Typography.Text,{copyable:!0,children:(0,n.jsx)(s.Typography.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,n.jsx)(s.Typography.Text,{strong:!0,children:(0,f.formatCosts)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>u.Resolver.isResolveSuccessData(t)?(0,n.jsx)(s.Typography.Text,{copyable:!0,children:t.result}):(0,n.jsx)(l.CloseCircleOutlined,{style:{color:"#f50"}})}],dataSource:a})})})]})},x=e=>{let{resolver:t,cwd:r}=e,[o,l]=(0,i.useState)(""),u="/node_modules/",p=(0,i.useMemo)(()=>(0,a.map)(t,e=>e.issuerPath).filter(Boolean),[t]),g=(0,i.useMemo)(()=>p.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,p]),x=g.length&&g.every(e=>e.indexOf(u)>-1),v=(0,i.useMemo)(()=>(0,f.createFileStructures)({files:g.length?g:p,cwd:r,fileTitle:(e,t)=>(0,n.jsx)("div",{onClick:()=>l(e),children:t})}),[e.filename]);return(0,n.jsxs)(s.Row,{justify:"start",align:"top",wrap:!1,gutter:d.Size.BasePadding,children:[(0,n.jsx)(s.Col,{span:7,children:(0,n.jsx)(s.Card,{title:"Files",children:(0,n.jsx)(h.FileTree,{style:{width:"100%",height:735,overflow:"scroll"},treeData:v,defaultExpandedKeys:(0,f.mapFileKey)(v,x?1:4,x?void 0:e=>{let t=(0,a.get)(e,"__RESOURCEPATH__").indexOf(u)>-1;return!!(g.length&&g.every(e=>e.indexOf(u)>-1))||!t})},`tree_${e.filename}`)})}),o&&(0,n.jsx)(m.ServerAPIProvider,{api:c.SDK.ServerAPI.API.GetResolverFileDetails,body:{filepath:o},children:e=>(0,n.jsx)(y,{...e})})]})},v=(0,m.withServerAPI)({api:c.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[r,o]=(0,i.useState)("");return(0,n.jsxs)("div",{style:{width:"100%"},children:[(0,n.jsx)(s.Space,{style:{marginTop:d.Size.BasePadding,marginBottom:d.Size.BasePadding},children:(0,n.jsx)(p.KeywordInput,{icon:(0,n.jsx)(l.FileSearchOutlined,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>o(e)})}),(0,n.jsx)(m.ServerAPIProvider,{api:c.SDK.ServerAPI.API.GetResolverFileTree,children:e=>(0,n.jsx)(x,{filename:r,resolver:e,cwd:t})})]})}})},19492:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderCommonSelect:function(){return c}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("537585"),s=r("792489"),l=r("723854");let u=({style:e,onChange:t,loaderNames:r})=>{let[s,l]=(0,i.useState)([]);return(0,n.jsxs)(o.Input.Group,{compact:!0,style:e,children:[(0,n.jsxs)(o.Button,{style:{width:120},children:[(0,n.jsx)(a.SelectOutlined,{}),(0,n.jsx)(o.Typography.Text,{children:"Loaders"})]}),(0,n.jsx)(o.Select,{mode:"multiple",allowClear:!0,defaultValue:s,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"select loaders",onChange:e=>{l(e),t(e)},children:r.map(e=>(0,n.jsx)(o.Select.Option,{label:e,value:e,children:e},e))})]})},c=({onChange:e,loaderNames:t})=>{let[r,c]=(0,i.useState)([]),[d,f]=(0,i.useState)("");return(0,i.useEffect)(()=>{e({loaders:r,filename:d})},[r,d]),(0,n.jsxs)(o.Space,{style:{marginBottom:l.Size.BasePadding},children:[(0,n.jsx)(u,{loaderNames:t,style:{marginRight:l.Size.BasePadding-8},onChange:e=>{c(e)}}),(0,n.jsx)(s.KeywordInput,{icon:(0,n.jsx)(a.FileSearchOutlined,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>{f(e)}})]})}},121772:function(e,t,r){"use strict";r.r(t),r.d(t,{FailedStatus:function(){return u}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r.n(o);let s="Load data failed, please try again",l="retry",u=a().memo(({title:e=s,buttonText:t=l,retry:r})=>(0,n.jsx)(i.Empty,{description:(0,n.jsxs)(i.Space,{direction:"vertical",children:[(0,n.jsx)(i.Typography.Text,{children:e}),(0,n.jsx)(i.Button,{type:"primary",onClick:()=>{r()},children:t})]})}))},504285:function(e,t,r){"use strict";r.r(t);var n=r("121772");r.es(n,t)},854026:function(e,t,r){"use strict";r.r(t),r.d(t,{DuplicatePackageDrawerWithServer:function(){return c}});var n=r("766791"),i=r("907366");r("889702");var o=r("537585");r("534851");var a=r("723854"),s=r("943436"),l=r("981328");r("321217");let u=({duplicatePackages:e=[],cwd:t,children:r,...u})=>(0,n.jsx)(s.TextDrawer,{...u,buttonStyle:{fontSize:"inherit",...u.buttonStyle},buttonProps:{type:"text",...u.buttonProps},text:(0,n.jsx)(i.Tooltip,{title:"Click to show the details of duplicate packages",children:(0,n.jsxs)(i.Space,{style:{fontSize:"inherit"},children:[(0,n.jsx)(i.Typography.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...u.textStyle},children:e.length}),(0,n.jsx)(o.ExceptionOutlined,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...u.drawerProps},children:(0,n.jsx)(i.Row,{gutter:[a.Size.BasePadding,a.Size.BasePadding],children:e.map((e,o)=>(0,n.jsx)(i.Col,{span:24,children:(0,n.jsx)(l.PackageRelationAlert,{data:e,cwd:t,getPackageRelationContentComponent:r})},o))})}),c=e=>(0,n.jsx)(u,{...e,children:t=>(0,n.jsx)(l.PackageRelationReasonsWithServer,{body:{id:t.data.id,target:t.package.target},cwd:e.cwd})})},943436:function(e,t,r){"use strict";r.r(t),r.d(t,{TextDrawer:function(){return u}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r.n(o),s=r("723854"),l=r("854026");r.es(l,t);let u=e=>{let[t,r]=(0,o.useState)(!1);return(0,n.jsxs)(a().Fragment,{children:[e.button?(0,n.jsx)("div",{onClick:()=>r(!t),children:e.button}):(0,n.jsx)(i.Button,{type:"link",...e.buttonProps,onClick:()=>r(!t),style:{padding:0,...e.buttonStyle},children:e.text}),(0,n.jsx)(i.Drawer,{maskClosable:!0,width:s.drawerWidth,zIndex:999,...e.drawerProps,open:t,onClose:()=>r(!1),destroyOnClose:!0,children:e.children})]})}},767434:function(e,t,r){"use strict";r.r(t),r.d(t,{Title:function(){return a}});var n=r("766791"),i=r("907366"),o=r("667227");let a=({upperFisrt:e=!0,fontSize:t=16,text:r,hash:a})=>{let s="string"==typeof r&&e?(0,o.upperFirst)(r):r;return(0,n.jsx)(i.Typography.Text,{style:{fontSize:t},strong:!0,children:a?(0,n.jsx)("a",{href:a,id:a.replace(/^#/,""),style:{color:"inherit"},children:s}):s})}},415191:function(e,t,r){"use strict";r.r(t);var n=r("254722");r.es(n,t);var i=r("98394");r.es(i,t);var o=r("972519");r.es(o,t);var a=r("794568");r.es(a,t);var s=r("8917");r.es(s,t);var l=r("967079");r.es(l,t);var u=r("580778");r.es(u,t),r("372531")},74190:function(e,t,r){"use strict";r.r(t),r.d(t,{ECMAVersionDetectTag:function(){return c}});var n=r("766791"),i=r("911100"),o=r("972519"),a=r("226035"),s=r("630212");let l=()=>new Worker(new URL(r.p+r.u("952"),r.b)),u={[a.ECMAVersion.ES5]:o.BadgeColorMap[o.BadgeType.Success],[a.ECMAVersion.ES6]:o.BadgeColorMap[o.BadgeType.Error],[a.ECMAVersion.ES7P]:o.BadgeColorMap[o.BadgeType.Error]},c=({code:e})=>{if(!e)return null;let{version:t}=function(e){let{code:t}=e,[r,n]=(0,i.useState)();return(0,i.useEffect)(()=>{if(!t)return;let{abort:e}=s.master.detectWorker(l).emit(t,e=>{n(e)});return()=>{e()}},[t]),{version:r}}({code:e});return t?(0,n.jsx)("div",{style:{display:"inline-block",height:19.5,padding:"0px 4px",width:40,fontSize:10,lineHeight:"19.5px",textAlign:"center",color:"#fff",background:u[t]||o.BadgeColorMap[o.BadgeType.Default],borderRadius:4},children:t}):null}},986424:function(e,t,r){"use strict";r.r(t),r.d(t,{JSIsEqualTag:function(){return u}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("630212"),s=r("373262");let l=()=>new Worker(new URL(r.p+r.u("258"),r.b)),u=({input:e,output:t})=>{if(!e||!t)return null;let{isEqual:r}=function(e){let{input:t,output:r}=e,[n,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!t||!r)return;let{abort:e}=a.master.detectWorker(l).emit({input:t,output:r},e=>{o(e)});return()=>{e()}},[t,r]),{isEqual:n}}({input:e,output:t}),{t:u}=(0,s.useI18n)();return r?(0,n.jsx)(o.Tag,{color:"warning",children:u("the file content not changed after transpiled by this loader")}):null}},136795:function(e,t,r){"use strict";r.r(t),r.d(t,{ConfigContext:function(){return s},defaultConfig:function(){return a}});var n=r("911100"),i=r("423453"),o=r("723854");let a={locale:(0,i.getLocaleFromStorage)(),theme:(0,i.getThemeFromStorage)(),pageState:o.PageState.Pending,viewMode:(0,i.getViewModeFromStorage)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},s=(0,n.createContext)({...a})},723854:function(e,t,r){"use strict";r.r(t),r.d(t,{APILoaderMode4Dev:function(){return m},Color:function(){return x},ComponentState:function(){return h},Language:function(){return g},MAIN_BG:function(){return S},PageState:function(){return f},ROOT_BG_COLOR:function(){return b},Size:function(){return y},TAG_PALLETE:function(){return j},Theme:function(){return d},ViewMode:function(){return p},drawerWidth:function(){return v}});var n,i,o,a,s,l,u,c,d=((n=d||{}).Light="light",n.Dark="dark",n);var f=((i=f||{})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Fail=2]="Fail",i);var h=((o=h||{})[o.Success=0]="Success",o[o.Pending=1]="Pending",o[o.Updating=2]="Updating",o[o.Fail=3]="Fail",o);var p=((a=p||{}).List="list",a.Group="group",a);var g=((s=g||{}).Cn="cn",s.En="en",s);var m=((l=m||{}).Local="local",l.Remote="remote",l.Default="default",l);var y=((u=y||{})[u.BasePadding=24]="BasePadding",u[u.BaseBorderRadius=8]="BaseBorderRadius",u[u.NavBarHeight=54]="NavBarHeight",u);var x=((c=x||{}).Red="#e17055",c.Green="#52c41a",c.Yellow="#faad14",c.Blue="#1677ff",c);let v="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100,j={COLOR_A:"#90DCE9",COLOR_B:"green",COLOR_C:"#4EAAB9",COLOR_D:"#B7E9F4",COLOR_E:"#2E7CBE",DARK_BLUE:"#1554ad"},S="",b="rgb(105, 177, 255)"},435067:function(e,t,r){"use strict";r.r(t),r.d(t,{Constants:function(){return o}});var n=r("415191");r.es(n,t);var i=r("373262");r.es(i,t);var o=r("723854")},276933:function(e,t,r){"use strict";r.r(t),r.d(t,{AssetDetail:function(){return A}});var n=r("766791"),i=r("537585"),o=r("972440"),a=r("889702"),s=r("907366"),l=r("667227"),u=r("918300"),c=r("911100"),d=r("321217"),f=r("62414"),h=r("972519"),p=r("674542"),g=r("792489"),m=r("289641"),y=r("943436"),x=r("723854"),v=r("373262"),j=r("318230");let S=[],b={source:"source code",transformed:"Transformed Code (After compile)",parsedSource:"Bundled Code (After bundle and tree-shaking)"},_={margin:"none",marginInlineEnd:0},C=({data:e})=>{let[t,r]=(0,c.useState)("source"),{t:u}=(0,v.useI18n)(),f={source:"Source Code",transformed:`Transformed Code(${u("After Compile")})`,parsedSource:`Bundled Code(${u("After Bundled")})`};if(!e)return null;let{path:h}=e;return(0,n.jsx)(y.TextDrawer,{text:"",buttonProps:{size:"small",icon:(0,n.jsx)(i.CodepenCircleOutlined,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${h}"`},children:(0,n.jsx)(d.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:e.id},children:e=>(0,n.jsx)(n.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,n.jsx)(s.Card,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,l.omitBy)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:f[e.tab],key:e.tab})),onTabChange:e=>r(e),tabBarExtraContent:(0,n.jsx)(s.Popover,{placement:"bottom",title:(0,n.jsx)(s.Typography.Title,{level:5,children:"Explain"}),content:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Source: "}),(0,n.jsx)(s.Typography.Text,{children:b.source})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Transformed: "}),(0,n.jsx)(s.Typography.Text,{children:b.transformed})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Typography.Text,{strong:!0,children:"Bundled Source: "}),(0,n.jsx)(s.Typography.Text,{children:b.parsedSource})]}),(0,n.jsx)("br",{}),(0,n.jsx)(s.Typography.Text,{strong:!0,children:"More"}),(0,n.jsx)(s.Typography.Text,{children:u("CodeModeExplain")})]})}),trigger:"hover",children:(0,n.jsx)("a",{href:"#",children:"Explain"})}),children:(0,n.jsx)(o.default,{theme:"vs-dark",language:(0,v.getOriginalLanguage)(h),height:window.innerHeight/1.5,value:e[t],options:{readOnly:!0,domReadOnly:!0,fontSize:14,wordWrap:"bounded",minimap:{enabled:!1}}})}):(0,n.jsx)(s.Empty,{description:"No Code. Rspack builder not support code yet. And if you upload the stats.json to analysis, it's also no code to show."})})})})},w=({id:e,show:t,setShow:r,cwd:i})=>e?(0,n.jsx)(s.Drawer,{open:t,maskClosable:!0,width:x.drawerWidth,onClose:()=>r(!1),children:(0,n.jsx)(d.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:t=>(0,n.jsx)(f.ModuleAnalyzeComponent,{cwd:i,moduleId:e,modules:t})})}):null,T="__RESOURCEPATH__",P=({modules:e,chunks:t,filteredModules:r})=>{let{sourceSize:o,parsedSize:a,filteredParsedSize:u,filteredSourceSize:d}=(0,c.useMemo)(()=>({sourceSize:(0,l.sumBy)(e,e=>e.size.sourceSize),parsedSize:(0,l.sumBy)(e,e=>e.size.parsedSize),filteredSourceSize:(0,l.sumBy)(r,e=>e.size.sourceSize),filteredParsedSize:(0,l.sumBy)(r,e=>e.size.parsedSize)}),[e,r]);return(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Tooltip,{title:`total modules count is ${e.length}, the filtered modules count is ${r.length}`,children:(0,n.jsxs)(s.Space,{children:[(0,n.jsxs)(s.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",r.length," / ",e.length]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})}),(0,n.jsx)(s.Divider,{type:"vertical"}),(0,n.jsx)(s.Tooltip,{title:(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,v.formatSize)(a)]}),(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,v.formatSize)(o)]}),(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,v.formatSize)(u)]}),(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,v.formatSize)(d)]})]}),children:(0,n.jsxs)(s.Space,{children:[(0,n.jsxs)(s.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:"," ",u===a?(0,v.formatSize)(a):`${(0,v.formatSize)(u)} / ${(0,v.formatSize)(a)}`]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})}),(0,n.jsx)(s.Divider,{type:"vertical"}),(0,n.jsx)(s.Tooltip,{title:(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["this asset includes ",t.length," chunks: "]}),t.map(e=>(0,n.jsx)(h.Badge,{label:"chunk",value:e.name},e.name))]}),children:(0,n.jsxs)(s.Space,{children:[(0,n.jsxs)(s.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",t.length]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})})]})},A=({asset:e,chunks:t,modules:r,moduleSizeLimit:o,height:d,root:f})=>{let[h,y]=(0,c.useState)(""),[b,A]=(0,c.useState)(!1),[I,M]=(0,c.useState)([]),[D,k]=(0,c.useState)(!1),E=(0,c.useMemo)(()=>{let e=r.slice();if(h){let t=RegExp(h,"i");e=e.filter(e=>t.test(e.path))}return o&&(e=e.filter(e=>e.size.parsedSize>=o)),e},[r,h,o]),O=(0,c.useMemo)(()=>(0,v.createFileStructures)({files:E.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:T,fileTitle(e,t){let o=E.find(t=>t.path===e);if(!o)return t;let{parsedSize:l=0,sourceSize:c=0}=o.size,d=o.kind===a.SDK.ModuleKind.Concatenation,f=!d&&0===l&&r.filter(e=>e!==o&&e.modules&&e.modules.indexOf(o.id)>-1);return(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(m.Keyword,{ellipsis:!0,style:{maxWidth:500},text:t,keyword:h}),0!==l?(0,n.jsx)(s.Tooltip,{title:(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsx)(s.Tag,{color:"orange",children:"Bundled Size:"+(0,v.formatSize)(l)}),(0,n.jsx)(s.Tag,{color:"volcano",children:"Source Size:"+(0,v.formatSize)(c)})]}),color:"white",children:(0,n.jsx)(s.Tag,{color:"purple",style:_,children:"Bundled: "+(0,v.formatSize)(l)})}):0!==c?(0,n.jsx)(s.Tag,{color:"geekblue",children:"Source Size:"+(0,v.formatSize)(c)}):null,d?(0,n.jsx)(s.Tooltip,{title:(0,n.jsx)(s.Space,{children:(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:["this is a concatenated module, it contains ",o.modules?.length," modules"]})}),children:(0,n.jsx)(s.Tag,{color:"green",style:_,children:"concatenated"})}):null,f&&f.length?(0,n.jsx)(s.Tooltip,{title:(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsx)(s.Typography.Text,{style:{color:"inherit"},children:"this is a concatenated module, it is be contained in these modules below:"}),f.map(({id:e,path:t})=>{if((0,v.isJsDataUrl)(t))return(0,n.jsx)(s.Typography.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:t},e);let r=(0,u.relative)((0,u.dirname)(o.path),t);return r.startsWith("javascript;charset=utf-8;base64,")?(0,n.jsx)(s.Typography.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===r[0]?r:`./${r}`},e):(0,n.jsx)(s.Typography.Text,{style:{color:"inherit"},code:!0,children:"."===r[0]?r:`./${r}`},e)})]}),children:(0,n.jsx)(s.Tag,{color:"green",children:"concatenated"})}):null,(0,n.jsx)(s.Button,{size:"small",icon:(0,n.jsx)(i.DeploymentUnitOutlined,{}),onClick:()=>{M([o.id]),k(!0)}}),(0,n.jsx)(C,{data:o})]})},dirTitle(e,t){let i=function e(t){let r=[];return t.children&&t.children.forEach(t=>{t.isLeaf?r.push(t[T]):e(t)}),r}(e);if(i.length){let e=i.map(e=>r.find(t=>t.path===e)),o=(0,l.sumBy)(e,e=>e.size?.parsedSize||0);return(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Typography.Text,{children:t}),o>0?(0,n.jsx)(s.Tag,{style:_,color:"orange",children:"Bundled:"+(0,v.formatSize)(o)}):null]})}return t}}),[E]);return(0,c.useEffect)(()=>{y(""),A(!1)},[e]),(0,c.useEffect)(()=>{A(!1)},[h]),(0,n.jsx)(j.ModuleGraphListContext.Provider,{value:{moduleJumpList:I,setModuleJumpList:M},children:(0,n.jsxs)(s.Card,{title:`Modules of "${e.path}"`,bodyStyle:{overflow:"scroll",height:d},size:"small",children:[r.length?(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:24,children:(0,n.jsx)(P,{modules:r,chunks:t,filteredModules:E})}),(0,n.jsx)(s.Col,{span:24,children:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(g.KeywordInput,{placeholder:"search module by keyword",onChange:e=>y(e)},e.path),(0,n.jsx)(s.Button,{onClick:()=>A(!0),size:"small",icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),children:"expand all"})]})}),(0,n.jsx)(s.Col,{span:24,style:{marginTop:x.Size.BasePadding},children:E.length?(0,n.jsx)(p.FileTree,{onExpand:e=>{S=e},treeData:O,autoExpandParent:!0,defaultExpandParent:!0,defaultExpandedKeys:S?.length?S:1===O.length?[O[0].key]:[],defaultExpandAll:b||E.length<=20},`tree_${h}_${b}_${e.path}`):(0,n.jsx)(s.Empty,{description:(0,n.jsx)(s.Typography.Text,{strong:!0,children:`"${h}" can't match any modules`})})})]}):(0,n.jsx)(s.Empty,{description:(0,n.jsx)(s.Typography.Text,{strong:!0,children:`"${e.path}" don't has any modules`})}),(0,n.jsx)(w,{id:I?.length?I[I.length-1]:"",show:D,setShow:k,cwd:f})]})})}},137900:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleCards:function(){return p}});var n=r("766791"),i=r("911100"),o=r("907366"),a=r("373262"),s=r("723854"),l=r("31017"),u=r("943436"),c=r("543767");let{useToken:d}=o.theme,f=({showProgress:e=!1,data:t,total:r,tagBgColor:i})=>{let{token:o}=d(),a=i||o.colorPrimaryBorderHover;return(0,n.jsx)(c.SizeCard,{files:t.files,total:r,showProgress:e,tagBgColor:a})},h=({titles:e,datas:t,bgColor:r})=>{let[a,s]=(0,i.useState)(0);return(0,n.jsx)(l.StatisticCard,{title:e.length>1?(0,n.jsx)(o.Segmented,{defaultValue:e[a],options:e,onChange:t=>{s(e.indexOf(t))},size:"small",style:{transition:"transform 0.3s ease"},value:e[a]||e[0]}):e[a],value:t.map((e,t)=>(0,i.createElement)(f,{...e,key:t,tagBgColor:r?.tagBgColor}))[a],boxProps:{style:{background:r?.bgColor}}})},p=({cwd:e,errors:t,summary:r})=>{let i=(0,a.useWindowWidth)(),c=(0,a.useDuplicatePackagesByErrors)(t),d=[(0,n.jsx)(h,{titles:["Total Files"],datas:[{data:r.all.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Total JS","Initial JS"],datas:[{data:r.js.total,total:r.all.total.size,showProgress:!0},{data:r.js.initial,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Total CSS","Initial CSS"],datas:[{data:r.css.total,total:r.all.total.size,showProgress:!0},{data:r.css.initial,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Images","Fonts","Media"],datas:[{data:r.imgs.total,total:r.all.total.size,showProgress:!0},{data:r.fonts.total,total:r.all.total.size,showProgress:!0},{data:r.media.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["HTML Files"],datas:[{data:r.html.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(l.StatisticCard,{title:"Duplicate Packages",value:(0,n.jsx)(u.DuplicatePackageDrawerWithServer,{buttonStyle:{height:100},duplicatePackages:c,cwd:e})})];return(0,n.jsx)(o.Row,{gutter:i>1200&&i<1400?[2*s.Size.BasePadding,s.Size.BasePadding]:[s.Size.BasePadding,s.Size.BasePadding],wrap:!0,style:{marginBottom:s.Size.BasePadding},children:d.map((e,t)=>(0,n.jsx)(o.Col,{span:i>1500?4:8,children:e},t))})}},473352:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackModulesOverall:function(){return _}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("667227"),l=r("911100"),u=r.n(l),c=r("321217"),d=r("972519"),f=r("674542"),h=r("792489"),p=r("289641"),g=r("767434"),m=r("723854"),y=r("373262"),x=r("137900"),v=r("8917"),j=r("276933");r("77044");let{Option:S}=a.Select,b=({errors:e,cwd:t,summary:r,entryPoints:b})=>{let[_,C]=(0,l.useState)([]),[w,T]=(0,l.useState)(0),[P,A]=(0,l.useState)(""),[I,M]=(0,l.useState)(0),[D,k]=(0,l.useState)(!1),[E,O]=(0,l.useState)(""),[R,z]=(0,l.useState)(""),[B,L]=(0,l.useState)(null),[N,F]=(0,l.useState)(!1),[$,W]=(0,l.useState)("tree"),{t:G}=(0,y.useI18n)(),K=r.all.total.files,U=(0,l.useCallback)(e=>t=>{"module"===e?O(t):"chunk"===e&&z(t)},[]),V=e=>(0,n.jsxs)(a.Select,{defaultValue:"kb",onChange:U(e),children:[(0,n.jsx)(S,{value:"kb",children:"KB"}),(0,n.jsx)(S,{value:"mb",children:"MB"})]}),H=(0,l.useCallback)((0,s.debounce)(e=>{T("mb"===E?1048576*e:1024*e)},300),[]),Y=(0,l.useCallback)((0,s.debounce)(e=>{M("mb"===R?1048576*e:1024*e)},300),[]),q=(0,l.useMemo)(()=>{let e=K.slice();return P&&(e=e.filter(e=>e.path.indexOf(P)>-1)),I>0&&(e=e.filter(e=>e.size>=I)),_.length&&(e=e.filter(e=>!!_.some(t=>(0,s.includes)(t.assets,e.path))||!1)),e.sort((e,t)=>{let r=e.path.indexOf("/")>-1?1:0;return(t.path.indexOf("/")>-1?1:0)-r})},[K,_,P,I]),J=(0,l.useMemo)(()=>(0,y.createFileStructures)({files:q.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:r,initial:i,path:o,content:s}=q.find(t=>t.path===e);return(0,n.jsxs)(a.Space,{onClick:()=>{L(o)},children:[(0,n.jsx)(p.Keyword,{text:t,keyword:P}),(0,n.jsx)(a.Tag,{color:"success",style:{margin:0},children:(0,y.formatSize)(r)}),i?(0,n.jsx)(a.Tag,{color:"cyan",style:{margin:0},children:"initial"}):null,(0,n.jsx)(v.CodeViewerWithDrawer,{path:o,content:s,editorConfig:{readOnly:!1,domReadOnly:!1}})]})}}),[q]);return(0,n.jsxs)(u().Fragment,{children:[(0,n.jsx)(x.BundleCards,{cwd:t,errors:e,summary:r}),(0,n.jsxs)(a.Radio.Group,{value:$,onChange:e=>W(e.target.value),style:{marginBottom:m.Size.BasePadding},buttonStyle:"solid",optionType:"button",children:[(0,n.jsx)(a.Radio.Button,{value:"tree",children:"Tree Graph"}),(0,n.jsx)(a.Radio.Button,{value:"tile",children:"Bundle Analyzer Graph"})]}),(0,n.jsx)(a.Card,{hidden:"tree"===$,title:(0,n.jsx)(a.Space,{children:(0,n.jsx)(g.Title,{text:"From: Webpack Bundle Analyzer"})}),children:(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetTileReportHtml,body:{},children:e=>e&&"tile"===$?(0,n.jsx)("iframe",{srcDoc:e,width:"100%",height:800,style:{border:"none"}}):(0,n.jsx)(a.Empty,{})})}),(0,n.jsx)(a.Card,{hidden:"tile"===$,title:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(g.Title,{text:"Bundle Analysis"}),(0,n.jsx)(a.Tooltip,{color:"white",title:(0,n.jsxs)(a.Space,{direction:"vertical",color:"white",children:[(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Tag,{color:"cyan",style:{margin:0},children:"initial"}),(0,n.jsx)(a.Typography.Text,{children:": Indignify whether the chunk is the initial chunk."})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Tag,{color:"green",children:"concatenated"}),(0,n.jsx)(a.Typography.Text,{children:": Indignify whether the module is the concatenated module. "}),(0,n.jsx)("br",{}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Concatenated Module:"}),(0,n.jsx)(a.Typography.Text,{children:"A series module is to lift or series multiple modules into a closure when packaging. "})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Button,{size:"small",icon:(0,n.jsx)(i.CodepenCircleOutlined,{})}),(0,n.jsx)(a.Typography.Text,{children:": Open the code."})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Button,{size:"small",icon:(0,n.jsx)(i.DeploymentUnitOutlined,{})}),(0,n.jsx)(a.Typography.Text,{children:": View the module dependency, that is, module reasons in stats.json."})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Tag,{color:"purple",children:"Bundled: 15.77 KB"}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Bundled Size"}),(0,n.jsx)(a.Typography.Text,{children:"The size of the code which bundled. That is, after bundle and tree-shaking."})]})}),(0,n.jsx)(a.Row,{children:(0,n.jsxs)(a.Col,{children:[(0,n.jsx)(a.Tag,{color:"orange",children:"Source: 15.77 KB"}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Source Size"}),(0,n.jsx)(a.Typography.Text,{children:"The size of the code which before bundle and transform."})]})})]}),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),extra:N?(0,n.jsx)(a.Button,{onClick:()=>F(!1),children:(0,n.jsxs)(a.Typography.Text,{children:["Expand ",(0,n.jsx)(i.ColumnHeightOutlined,{})]})}):(0,n.jsx)(a.Button,{onClick:()=>F(!0),children:(0,n.jsxs)(a.Typography.Text,{children:["Fold",(0,n.jsx)(i.VerticalAlignMiddleOutlined,{})]})}),children:(0,n.jsxs)(a.Row,{align:"middle",gutter:[m.Size.BasePadding,m.Size.BasePadding],children:[b&&b.length?(0,n.jsx)(a.Col,{children:(0,n.jsx)(a.Select,{mode:"multiple",value:_.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{C(e.map(e=>b.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{C([])},children:b.map(e=>(0,n.jsx)(a.Select.Option,{value:e.name,children:(0,n.jsx)(a.Space,{children:(0,n.jsx)(d.Badge,{label:e.name,value:(0,y.formatSize)(e.size),tooltip:e.name})})},e.name))})}):null,(0,n.jsx)(a.Col,{children:(0,n.jsx)(h.KeywordInput,{placeholder:"search asset by keyword",onChange:e=>{A(e),k(!1)}})}),(0,n.jsx)(a.Col,{span:7,children:(0,n.jsx)(a.InputNumber,{min:0,style:{width:"95%"},addonBefore:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,n.jsx)(a.Tooltip,{title:G("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>Y(Number(e)),addonAfter:V("chunk")})}),(0,n.jsx)(a.Col,{span:7,children:(0,n.jsx)(a.InputNumber,{min:0,style:{width:"95%"},addonBefore:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,n.jsx)(a.Tooltip,{title:G("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{H(Number(e))},addonAfter:V("module")})}),(0,n.jsx)(a.Col,{span:24,children:q.length?(0,n.jsxs)(a.Row,{gutter:m.Size.BasePadding,children:[(0,n.jsx)(a.Col,{span:8,children:(0,n.jsx)(a.Card,{title:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{children:G("Output Assets List")}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Tooltip,{title:`total assets count is ${K.length}, the filtered assets count is ${q.length}`,children:(0,n.jsxs)(a.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[q.length," / ",K.length]})}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,y.formatSize)((0,s.sumBy)(q,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:N?410:800},extra:(0,n.jsx)(a.Button,{size:"small",icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),onClick:()=>k(!0),children:"expand all"}),children:(0,n.jsx)(f.FileTree,{treeData:J,autoExpandParent:!0,defaultExpandAll:D||q.length<=20},`tree_${P}_${D}`)})}),(0,n.jsx)(a.Col,{span:16,children:B?(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:B},children:e=>(0,n.jsx)(j.AssetDetail,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:N?410:800,moduleSizeLimit:w,root:t})}):(0,n.jsx)(a.Card,{bodyStyle:{height:N?450:800},children:(0,n.jsx)(a.Empty,{description:(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,n.jsx)(a.Empty,{})})]})})]})},_=(0,c.withServerAPI)({api:o.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:r}=e.project;return(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,n.jsx)(c.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetEntryPoints,children:i=>(0,n.jsx)(b,{cwd:t,errors:r,summary:e,entryPoints:i})})})}})},318230:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleGraphListContext:function(){return n}});let n=(0,r("911100").createContext)({setModuleJumpList(e){},moduleJumpList:[]})},980057:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="BundleSize",o=n.Client.RsdoctorClientRoutes.BundleSize},192095:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("766791"),i=r("907366"),o=r("723854"),a=r("473352"),s=r("980057");r.es(s,t);let l=()=>(0,n.jsx)(i.Row,{children:(0,n.jsx)(i.Col,{span:24,style:{marginBottom:o.Size.BasePadding},children:(0,n.jsx)(a.WebpackModulesOverall,{})})})},142237:function(e,t,r){"use strict";r.r(t),r.d(t,{ChunksTable:function(){return u}});var n=r("766791"),i=r("907366"),o=r("667227"),a=r("911100"),s=r("373262");r("844381");let l=[{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"}],u=({chunks:e})=>{let t=(0,a.useMemo)(()=>{let t=e.map(e=>{if(e)return{key:e.id,name:(0,n.jsx)(i.Tag,{children:e.name}),size:(0,n.jsx)(i.Tag,{children:(0,s.formatSize)(e.parsedSize)}),entry:(0,n.jsx)(i.Tag,{children:e.entry?"\u662F | Yes":"\u5426 | No"}),assets:e.assets.map(e=>(0,n.jsx)("p",{children:(0,n.jsx)(i.Tag,{children:e},e)},e))}});return(0,o.orderBy)((0,o.compact)(t),["size"],["desc"])},[e]);return(0,n.jsx)(n.Fragment,{children:t?.length?(0,n.jsx)(i.Table,{bordered:!0,pagination:!1,dataSource:t,columns:l}):(0,n.jsx)(i.Empty,{})})}},932446:function(e,t,r){"use strict";r.r(t),r.d(t,{FileTree:function(){return h}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("911100"),l=r("643873"),u=r("321217"),c=r("723854"),d=r("318230");r("561227");let f="file-tree-com",h=e=>{let{treeData:t,needJumpto:r=!1,defaultOpened:h=!1,defaultOpenFather:p=0}=e,{required:g,handlers:m}=(0,l.useTreeState)({id:`${f}-tree`,data:t||[],defaultOpened:h,multipleSelect:!1,refreshAsyncNodes:!0}),y=(0,s.useCallback)(({node:e,onToggle:t})=>(p&&e.data.level<p&&e.setOpened(!0),(0,n.jsx)("div",{className:`${f}-titles-box`,children:(0,n.jsx)("div",{className:`${f}-titles`,children:(0,n.jsx)(a.Space,{direction:"vertical",children:(0,n.jsx)("div",{className:`${f}-node-title`,children:(0,n.jsxs)(a.Space,{children:[(0,n.jsxs)("div",{onClick:t,children:[!e.options.opened&&e.data.children?.length?(0,n.jsx)(i.PlusCircleOutlined,{style:{color:"lightblue"}}):(0,n.jsx)(i.MinusCircleOutlined,{style:{color:"lightblue"}}),(0,n.jsxs)(a.Typography.Text,{code:!0,children:[e.data.name,(0,n.jsx)(a.Popover,{content:(0,n.jsx)(n.Fragment,{children:e.data.__RESOURCEPATH__?(0,n.jsx)(a.Typography.Text,{code:!0,children:e.data.__RESOURCEPATH__},`${e.data.name}-popover-path`):(0,n.jsx)(n.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,n.jsx)(i.InfoCircleOutlined,{style:{marginLeft:4}})},`${e.data.name}popover`)]})]}),(0,n.jsxs)(a.Space,{children:[e.data.concatModules?.length?(0,n.jsx)(a.Popover,{content:(0,n.jsx)(u.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetModulesByModuleIds,body:{moduleIds:e.data.concatModules||[]},children:e=>(0,n.jsx)("div",{children:e.map(({path:e},t)=>(0,n.jsx)("p",{children:e},`${e}-${t}`))})}),title:"Concatenated Module Name",trigger:"hover",children:(0,n.jsx)(a.Tag,{className:`${f}-node-title-tag`,color:c.TAG_PALLETE.DARK_BLUE,children:"Concatenated"},`${e.data.name}-size-tag`)}):e.data.size&&"0 bytes"!==e.data.size?(0,n.jsx)(a.Tag,{className:`${f}-node-title-tag`,color:c.TAG_PALLETE.COLOR_B,children:`Bundled: ${e.data.size}`},`${e.data.name}-size-tag`):(0,n.jsx)(n.Fragment,{}),r&&(0,n.jsx)(d.ModuleGraphListContext.Consumer,{children:({moduleJumpList:t,setModuleJumpList:r})=>(0,n.jsx)(i.RightSquareTwoTone,{onClick:()=>{let n=[...t];n.push(+e.id),r(n)}})})]})]})})})})},e.data.name)),[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.default,{...g,...m,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:y})})}},55182:function(e,t,r){"use strict";r.r(t),r.d(t,{clsNamePrefix:function(){return o}}),r("889702").Client.RsdoctorClientRoutes.ModuleAnalyze;var n,i=((n=i||{}).UrlQueryForModuleAnalyze="curModuleId",n);let o="module-analyze"},508545:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r("766791"),i=r("907366"),o=r("667227"),a=r("911100"),s=r("373262"),l=r("932446");r("844381");var u=(0,a.memo)(({dependencies:e,cwd:t,module:r})=>{let u=(0,a.useMemo)(()=>{let t=r.dependencies.map(t=>{let r=(0,o.find)(e,e=>e.id===t);if(r)return{__RESOURCEPATH__:r.resolvedRequest||"",id:r.dependency,key:r.resolvedRequest,name:(0,s.getShortPath)(r.resolvedRequest)||"",level:1,kind:r.kind,concatModules:void 0}});return(0,o.compact)(t)},[r]);return(0,n.jsx)(i.Row,{justify:"start",align:"middle",children:(0,n.jsx)(i.Col,{span:24,children:u.length?(0,n.jsx)(l.FileTree,{treeData:u,needJumpto:!0,cwd:t}):(0,n.jsx)(i.Empty,{})})})})},895075:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleFilesTree:function(){return j}});var n,i=r("766791"),o=r("537585"),a=r("889702"),s=r("907366"),l=r("911100"),u=r("321217"),c=r("767434"),d=r("723854"),f=r("729361"),h=r("142237"),p=r("932446"),g=r("55182"),m=r("508545"),y=r("604588"),x=r("781110");var v=((n=v||{})[n.Dependencies=0]="Dependencies",n[n.Chunks=1]="Chunks",n);let j=e=>{let{curModule:t,modules:r,dependencies:n,cwd:v,selectedChunk:j=""}=e,{t:S}=(0,f.useI18n)(),[b,_]=(0,l.useState)([]),[C,w]=(0,l.useState)(0),[T,P]=(0,l.useState)(!0),{data:A}=(0,x.useCreatFileTreeData)(r,b,t),[I,M]=(0,l.useState)({});return(0,l.useEffect)(()=>{_((0,y.getImporteds)(t,r))},[t,r]),(0,l.useEffect)(()=>{let e={};b.forEach(t=>{let n=[],i=new Map;(0,y.getModuleReasonsTree)(t,r,n,i),e[t.id]=n}),M(e)},[b]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Row,{children:(0,i.jsx)(s.Popover,{content:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(s.Badge,{status:"success",text:" "}),(0,i.jsxs)(s.Typography.Text,{code:!0,children:[(0,i.jsx)(o.ExpandOutlined,{})," Expand the node_modules's modules that was omitted... "]})," ",(0,i.jsx)(s.Typography.Text,{children:`: ${S("Expand Omitted")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(s.Badge,{status:"success",text:" "}),(0,i.jsx)(s.Popover,{content:"xxxx",title:"Concatenated Module Name",trigger:"hover",children:(0,i.jsx)(s.Tag,{color:d.TAG_PALLETE.DARK_BLUE,children:"Concatenated"})}),(0,i.jsx)(s.Typography.Text,{children:`: ${S("Concatenated Tag")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(s.Badge,{status:"success",text:" "}),(0,i.jsx)(o.RightSquareTwoTone,{}),(0,i.jsx)(s.Typography.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})]}),title:"Usage",children:(0,i.jsx)(s.Button,{type:"primary",icon:(0,i.jsx)(o.InfoCircleOutlined,{}),children:"Usage"})})}),(0,i.jsxs)(s.Row,{gutter:4,style:{marginTop:d.Size.BasePadding},children:[(0,i.jsx)(s.Col,{span:T?18:12,children:(0,i.jsx)(s.Row,{className:`${g.clsNamePrefix}-file-tree`,justify:"center",children:(0,i.jsxs)(s.Col,{span:24,style:{padding:d.Size.BasePadding/2},children:[(0,i.jsx)(c.Title,{text:"Current Module Imported Reasons Tree:"}),b?(0,i.jsx)(p.FileTree,{cwd:v,treeData:j?A.filter(e=>I[e.id].indexOf(j)>=0):A,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:j}):(0,i.jsx)(s.Empty,{className:`${g.clsNamePrefix}-empty`})]})})}),(0,i.jsx)(s.Col,{span:T?6:12,children:(0,i.jsxs)("div",{className:`${g.clsNamePrefix}-file-tree`,style:{padding:d.Size.BasePadding/2},children:[T?(0,i.jsx)(s.Popover,{content:"Unfold [Dependencies & Chunks] Box.",children:(0,i.jsx)(o.MenuFoldOutlined,{onClick:()=>P(!T),style:{marginRight:8}})}):(0,i.jsx)(s.Popover,{content:"Fold [Dependencies & Chunks] Box.",children:(0,i.jsx)(o.MenuUnfoldOutlined,{onClick:()=>P(!T),style:{marginRight:8}})}),(0,i.jsx)(s.Radio.Group,{options:[{label:"Dependencies",value:0},{label:"Chunks",value:1}],onChange:e=>w(e.target.value),value:C,optionType:"button",buttonStyle:"solid",size:"middle"}),T?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[0===C&&(0,i.jsx)(s.Col,{span:24,style:{marginTop:d.Size.BasePadding/2},children:t?(0,i.jsx)(m.default,{module:t,dependencies:n,cwd:v}):(0,i.jsx)(s.Empty,{className:`${g.clsNamePrefix}-empty`})}),1===C&&(0,i.jsx)(s.Col,{span:18,style:{marginTop:d.Size.BasePadding/2},children:t?(0,i.jsx)(u.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetChunksByModuleId,body:{moduleId:t.id},children:e=>(0,i.jsx)(h.ChunksTable,{chunks:e})}):(0,i.jsx)(s.Empty,{className:`${g.clsNamePrefix}-empty`})})]})]})})]})]})}},62414:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleAnalyzeComponent:function(){return h}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("911100"),l=r("321217"),u=r("373262"),c=r("667227"),d=r("318230"),f=r("895075");r("844381");let h=({modules:e,cwd:t,moduleId:r})=>{let[h,p]=(0,s.useState)("");return(0,n.jsx)(l.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+r},children:({module:r,dependencies:s})=>(0,n.jsx)(l.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:o=>(0,n.jsx)(d.ModuleGraphListContext.Consumer,{children:({moduleJumpList:l,setModuleJumpList:d})=>(0,n.jsxs)(a.Card,{title:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(i.LeftSquareOutlined,{onClick:()=>{d([...l.slice(0,-1)])}}),(0,n.jsx)(a.Typography.Title,{code:!0,level:5,style:{marginBottom:"revert"},children:`Current Module: ${(0,u.getShortPath)(r.path)}`})]}),style:{height:"100%"},children:[(0,n.jsx)(a.Row,{justify:"start",style:{marginBottom:20},children:(0,n.jsx)(a.Col,{children:(0,n.jsx)(a.Select,{allowClear:!0,placeholder:"Select Chunk To Filter Modules Links",showSearch:!0,style:{width:300},options:(0,c.values)(o).map(e=>({label:e.name,value:e.id})),onChange:e=>p(e)})})}),(0,n.jsx)(a.Row,{justify:"start",align:"middle",children:(0,n.jsx)(a.Col,{span:24,children:(0,n.jsx)(f.ModuleFilesTree,{curModule:r,modules:e,dependencies:s,cwd:t,selectedChunk:h})})})]})})})})}},781110:function(e,t,r){"use strict";r.r(t),r.d(t,{useCreatFileTreeData:function(){return s}});var n=r("667227"),i=r("911100"),o=r("373262"),a=r("604588");function s(e,t,r){return(0,i.useMemo)(()=>t&&t?.length?{data:(0,n.compact)(t?.map((t,n)=>({key:`0-${n}`,name:o.getShortPath(t.path),__RESOURCEPATH__:t.path,id:t.id,level:1,chunks:t.chunks,size:o.formatSize(t.size.parsedSize),kind:t.kind,concatModules:t.concatenationModules,fatherPath:o.getShortPath(r.path),dependencies:t.dependencies,getChildren:()=>(function e(t,r,n){let i=(0,a.getImporteds)(t,r);return i?.map((i,a)=>({key:`0-${a}`,name:o.getShortPath(i.path),__RESOURCEPATH__:i.path,id:i.id,level:1,size:o.formatSize(i.size.parsedSize),kind:i.kind,chunks:i.chunks,concatModules:i.concatenationModules,fatherPath:o.getShortPath(n.path),dependencies:i.dependencies,getChildren:()=>e(i,r,t),children:i.imported}))})(t,e,r),children:t.imported})))}:{filterData:[],data:[]},[t,r])}},604588:function(e,t,r){"use strict";r.r(t),r.d(t,{getImporteds:function(){return i},getModuleReasonsTree:function(){return o}});var n=r("667227");let i=(e,t)=>{if(e?.imported?.length){let r=e.imported.map(e=>(0,n.find)(t,t=>t.id===Number(e)));return(0,n.compact)(r)}return[]},o=(e,t,r,n)=>{if(n.has(e.id)){if(n.get(e.id))return}else n.set(e.id,!0);let a=i(e,t);a.length&&a.forEach(e=>{e?.chunks?.forEach(e=>{0>r.indexOf(e)&&r.push(e)}),o(e,t,r,n)})}},737826:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="ModuleResolve",o=n.Client.RsdoctorClientRoutes.ModuleResolve},972158:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("766791"),i=r("907366"),o=r("397991"),a=r("857238"),s=r("737826");r.es(s,t);let l=()=>(0,n.jsx)("div",{children:(0,n.jsx)(i.Card,{title:"Webpack Resolver Analysis",extra:(0,n.jsx)(a.WebpackConfigurationViewer,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,n.jsx)(o.ResolverAnalysis,{})})})},194445:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="Overall",o=n.Client.RsdoctorClientRoutes.Overall},275062:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return c}});var n=r("766791"),i=r("889702"),o=r("98394"),a=r("321217"),s=r("580778"),l=r("466003"),u=r("194445");r.es(u,t);let c=(0,a.withServerAPI)({api:i.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{summary:t,configs:r,root:i,envinfo:a,errors:u}=e;return(0,n.jsxs)("div",{children:[(0,n.jsxs)(l.ResponsiveGridLayout,{children:[(0,n.jsx)(s.ProjectOverall,{configs:r,cwd:i,envinfo:a,alerts:u}),(0,n.jsx)(s.BundleOverall,{errors:u,cwd:i}),(0,n.jsx)(s.CompileOverall,{summary:t})]}),(0,n.jsx)(o.CompileAlerts,{}),(0,n.jsx)(o.BundleAlerts,{})]})}})},466003:function(e,t,r){"use strict";r.r(t),r.d(t,{ResponsiveGridLayout:function(){return s}});var n=r("766791"),i=r("907366"),o=r("911100"),a=r("723854");let s=({children:e})=>{let{sm:t,xxl:r}=i.Grid.useBreakpoint(),s=(0,o.useMemo)(()=>r?[2*a.Size.BasePadding,a.Size.BasePadding]:[a.Size.BasePadding,a.Size.BasePadding],[t,r]);return(0,n.jsx)(i.Row,{gutter:s,wrap:!0,style:{marginBottom:a.Size.BasePadding},children:e.map((e,t)=>(0,n.jsx)(i.Col,{xs:24,sm:24,md:12,lg:8,children:e},t))})}},997937:function(e,t,r){"use strict";r.r(t),r.d(t,{route:function(){return n}});let n=r("889702").Client.RsdoctorClientRoutes.RuleIndex},720464:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return h}});var n=r("766791"),i=r("911100"),o=r("889702"),a=r("907366"),s=r("342378"),l=r("667227"),u=r("767434"),c=r("723854"),d=r("373262"),f=r("997937");r.es(f,t);let h=()=>{let e=(0,d.useUrlQuery)()[o.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode]||"",[t,r]=(0,i.useState)(o.Rule.RuleErrorMap[e]),f=(0,l.values)(o.Rule.RuleErrorMap);return(0,i.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,n.jsxs)(a.Row,{gutter:c.Size.BasePadding/2,children:[(0,n.jsx)(a.Col,{span:8,children:(0,n.jsx)(a.Card,{title:(0,n.jsx)(u.Title,{text:"list of the error codes."}),bordered:!0,children:(0,n.jsx)(a.Space,{direction:"vertical",children:f.map((e,i)=>(0,n.jsxs)(a.Space,{style:{marginTop:0===i?0:c.Size.BasePadding/2,cursor:"pointer"},onClick:()=>r(e),align:"center",children:[(0,n.jsx)(a.Badge,{status:"default"}),(0,n.jsx)(a.Typography.Text,{code:!0,children:(0,n.jsx)("a",{children:e.code})}),(0,n.jsx)(a.Typography.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,n.jsx)(a.Col,{span:16,children:t?(0,n.jsx)(a.Card,{title:(0,n.jsxs)(a.Row,{justify:"space-between",children:[(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{code:!0,children:t.code}),(0,n.jsx)(a.Typography.Text,{children:t.title})]}),(0,n.jsx)("div",{children:(0,n.jsx)(a.Tag,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,n.jsx)(a.Typography.Paragraph,{children:"markdown"===t.type?(0,n.jsx)(s.default,{children:t.description}):(0,n.jsx)(a.Typography.Text,{children:t.description})})}):(0,n.jsx)(a.Card,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,n.jsx)(a.Typography.Text,{children:"click the error code in left bar to show more details."})})})]})}},975667:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="Loaders Analysis",o=n.Client.RsdoctorClientRoutes.WebpackLoaderAnalysis},834078:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("766791"),i=r("934608"),o=r("857238"),a=r("794568"),s=r("975667");r.es(s,t);let l=()=>(0,n.jsx)(a.Card,{title:"Webpack Loader Analysis",extra:(0,n.jsx)(o.WebpackConfigurationViewer,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:0},children:(0,n.jsx)(i.LoaderAnalysis,{})})},402915:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="Loaders Timeline",o=n.Client.RsdoctorClientRoutes.WebpackLoaderOverall},231462:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("766791"),i=r("857238"),o=r("794568"),a=r("976566"),s=r("402915");r.es(s,t);let l=()=>(0,n.jsx)(o.Card,{title:"Loader Timeline",extra:(0,n.jsx)(i.WebpackConfigurationViewer,{defaultKeys:["module"]}),collapsable:!0,children:(0,n.jsx)(a.LoaderChart,{})})},198197:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return o}});var n=r("889702");let i="Plugins Analysis",o=n.Client.RsdoctorClientRoutes.WebpackPlugins},814604:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return h}});var n=r("766791"),i=r("537585"),o=r("889702"),a=r("907366"),s=r("911100"),l=r("857238"),u=r("321217"),c=r("153218"),d=r("723854"),f=r("198197");r.es(f,t);let h=()=>{let[e,t]=(0,s.useState)([]),[r,f]=(0,s.useState)([]);return(0,n.jsx)("div",{children:(0,n.jsx)(a.Card,{title:"Webpack Plugins Overall",bodyStyle:{paddingTop:d.Size.BasePadding/3},extra:(0,n.jsx)(l.WebpackConfigurationViewer,{defaultKeys:["plugins"]}),children:(0,n.jsxs)(a.Space,{direction:"vertical",children:[(0,n.jsx)(u.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetPluginSummary,children:({hooks:e,tapNames:r})=>(0,n.jsxs)(a.Space,{style:{marginBottom:d.Size.BasePadding/2},children:[(0,n.jsxs)(a.Input.Group,{compact:!0,children:[(0,n.jsxs)(a.Button,{children:[(0,n.jsx)(i.ApiOutlined,{}),(0,n.jsx)(a.Typography.Text,{children:"Plugin Tap Names"})]}),(0,n.jsx)(a.Select,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{t(e)},children:r.map(e=>(0,n.jsx)(a.Select.Option,{label:e,value:e,children:e},e))})]}),(0,n.jsxs)(a.Input.Group,{compact:!0,children:[(0,n.jsxs)(a.Button,{children:[(0,n.jsx)(i.PartitionOutlined,{}),(0,n.jsx)(a.Typography.Text,{children:"Hooks"})]}),(0,n.jsx)(a.Select,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{f(e)},children:e.map(e=>(0,n.jsx)(a.Select.Option,{label:e,value:e,children:e},e))})]})]})}),(0,n.jsx)(u.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:r,tapNames:e},children:e=>(0,n.jsx)(c.WebpackPluginsDataTable,{dataSource:e})})]})})})}},350802:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleSize:function(){return i},LoaderFiles:function(){return a},LoaderTimeline:function(){return o},ModuleResolve:function(){return l},Overall:function(){return n},PluginsAnalyze:function(){return s},RuleIndex:function(){return u}});var n=r("275062"),i=r("192095");r("62414");var o=r("231462"),a=r("834078"),s=r("814604"),l=r("972158"),u=r("720464")},551785:function(e,t,r){"use strict";r.r(t),r.d(t,{BaseDataLoader:function(){return i}});var n=r("534851");class i{constructor(e){this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new n.Data.APIDataLoader(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e,t="data"){let r=this.get(t);if(r)return r[e]}getKeys(e){return e.split(".")}joinKeys(e){return e.join(".")}dispose(){this.disposed=!0}limit(e,t){if(this.pool.has(e))return this.pool.get(e);let r=t().finally(()=>this.pool.delete(e));return this.pool.set(e,r),r}log(...e){console.log(`[${this.constructor.name}]`,...e)}async loadManifest(){return this.manifest}}},65651:function(e,t,r){"use strict";r.r(t),r.d(t,{useDataLoader:function(){return l}});var n=r("911100"),i=r("557109"),o=r("932066");r("423453"),r("723854");let a=new WeakMap;async function s(e){try{if(e.__LOCAL__SERVER__)return new i.LocalServerDataLoader(e)}catch(e){console.log("[DataLoader] fallback to RemoteDataLoader")}return new o.RemoteDataLoader(e)}function l(e){let[t,r]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{if(!!e){if(!a.has(e)){let t=s(e);a.set(e,t)}a.get(e).then(e=>{r(e)})}},[e]),{loader:t}}},557109:function(e,t,r){"use strict";r.r(t),r.d(t,{LocalServerDataLoader:function(){return l}});var n=r("534851"),i=r("889702"),o=r("667227"),a=r("551785"),s=r("236010");class l extends a.BaseDataLoader{constructor(){super(...arguments),this.events=new Map}isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),a=this.getData(t);if(!a)return;let l=a;if(n.Manifest.isShardingData(l)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{(0,s.getSocket)(this.manifest.__SOCKET__URL__).emit(i.SDK.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return l=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),l}return r.length>0?(0,o.get)(l,this.joinKeys(r)):l})}async loadAPI(...e){let[t,r]=e,n=r?`${t}_${JSON.stringify(r)}`:`${t}`;return this.limit(n,async()=>new Promise(e=>{(0,s.getSocket)(this.manifest.__SOCKET__URL__).emit(t,r,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){!this.events.has(e)&&this.events.set(e,new Set),!this.events.get(e).has(t)&&(this.events.get(e).add(t),(0,s.getSocket)(this.manifest.__SOCKET__URL__).on(e,t))}removeOnDataUpdate(e,t){(0,s.getSocket)(this.manifest.__SOCKET__URL__).off(e,t),this.events.get(e).delete(t)}}},932066:function(e,t,r){"use strict";r.r(t),r.d(t,{RemoteDataLoader:function(){return s}});var n=r("534851"),i=r("667227"),o=r("551785"),a=r("17235");class s extends o.BaseDataLoader{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),o=this.getData(t);if(!o)return;let s=o;if(n.Manifest.isShardingData(s)){if(!this.shardingDataMap.has(t)){let r=n.Manifest.fetchShardingData(s,a.fetchShardingFile).catch(t=>{throw this.log("loadData error: ",s,e),t});this.shardingDataMap.set(t,r)}s=await this.shardingDataMap.get(t)}return r.length>0?(0,i.get)(s,this.joinKeys(r)):s})}async loadAPI(...e){let[t,r]=e,n=r?`${t}_${JSON.stringify(r)}`:`${t}`;return this.limit(n,async()=>this.loader.loadAPI(...e))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},697071:function(e,t,r){"use strict";r.r(t),r.d(t,{beautifyModulePath:function(){return u},beautifyPath:function(){return l},createFileStructures:function(){return s},mapFileKey:function(){return o}});var n=r("667227");let i=(e,t="/")=>{let r=e?.indexOf(t);return -1===r?null:0===r?t+(i(e?.slice(1))||""):e?.slice(0,r)};function o(e,t=2,r=()=>!0){let n=0,i=[],o=e;for(;n<t&&(o.filter(r).forEach(e=>{!e.isLeaf&&i.push(e.key)}),(o=o.reduce((e,t)=>e.concat(t.children||[]),[])).length);){;n++}return i}let a="__BASENAME__";function s({files:e,sep:t="/",inlinedResourcePathKey:r="__RESOURCEPATH__",fileTitle:o=(e,t)=>t,dirTitle:s=(e,t)=>t}){let l=new RegExp(t),u=e.reduce((e,s)=>{let u=i(s,t),c=u?s?.slice(u.length+1):s,d=e;for(;u;){let e=d.children.find(e=>e.title===u);if(!e){let n=[d[r],u].filter(Boolean).join(t);e={title:u,key:n,children:[],[r]:n,[a]:u},d.children.push(e)}d=e,c=(u=i(c))?c.slice(u.length).replace(l,""):c}return d.children.some(e=>(0,n.get)(e,r)===s)?e:(d.children.push({title:()=>o(s,c),key:s,isLeaf:!0,[r]:s,[a]:c}),e)},{key:"0",children:[]}).children;return u.forEach(e=>{e.children&&e.children.forEach(n=>(function e(t,r,n="/",i,o=(e,t)=>t){if(!t.isLeaf){if(r.children&&1===r.children.length){let s=[r[a],t[a]].join(n);r[i]=t[i],r[a]=s,r.key=[r.key,t.key].join("-"),r.children=t.children,r.title=o(r,s),t.children&&t.children.forEach(t=>{e(t,r,n,i,o)})}else t.title=o(t,t[a]),t.children&&t.children.forEach(r=>{e(r,t,n,i,o)})}})(n,e,t,r,s))}),u}function l(e,t){return(0,n.startsWith)(e,t)?e.replace(t,"."):e}function u(e,t){let r=l(e,t),n="/node_modules/",i=r.lastIndexOf(n);return i>-1?{alias:r.slice(i+n.length),inNodeModules:!0}:{alias:r,inNodeModules:!1}}},729361:function(e,t,r){"use strict";r.r(t),r.d(t,{useBundleAlertsByErrors:function(){return m},useCompileAlertsByErrors:function(){return g},useDetectIfCloudIdeEnv:function(){return v},useDuplicatePackagesByErrors:function(){return y},useI18n:function(){return f},useRuleIndexNavigate:function(){return h},useUrlQuery:function(){return p},useWebpackConfigurationByConfigs:function(){return x},useWindowWidth:function(){return j}}),r("534851");var n=r("889702"),i=r("667227"),o=r("911100"),a=r("192089"),s=r("336873"),l=r("393763"),u=r.n(l);r("926791");var c=r("423453");let d=n.Client.RsdoctorClientRoutes.RuleIndex,f=()=>{let{i18n:e,...t}=(0,a.useTranslation)();return{...t,i18n:{...e,changeLanguage:(t,r)=>e.changeLanguage(t,(e,n)=>{!e&&(0,c.setLocaleToStorage)(t),r&&r(e,n)})}}};function h(e,t){let r=(0,s.useNavigate)();return t?()=>window.open(t,"__blank"):()=>{r(`${d}?${n.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function p(){let e=(0,s.useLocation)().search||location.search,{query:t}=u()(e,!0);return t}function g(e){return(0,i.isArray)(e)?e.filter(e=>e.category===n.Rule.RuleMessageCategory.Compile&&e.code!==n.Rule.RuleMessageCodeEnumerated.Overlay):[]}function m(e){return(0,i.isArray)(e)?e.filter(e=>e.category===n.Rule.RuleMessageCategory.Bundle&&e.code!==n.Rule.RuleMessageCodeEnumerated.Overlay):[]}function y(e){return m(e).filter(e=>e.code===n.Rule.RuleErrorMap.E1001.code)}function x(e=[]){return(0,i.isArray)(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}function v(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)||!1}function j(){let[e,t]=(0,o.useState)(window.innerWidth);return(0,o.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},971962:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n={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 web-doctor \u63D2\u4EF6\u53C2\u4E0E\u6784\u5EFA\u4F1A\u6709\u5BF9\u5E94\u4EE3\u7801\u3002"}},774347:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n={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."}},926791:function(e,t,r){"use strict";r.r(t);var n=r("166289"),i=r("192089"),o=r("774347"),a=r("971962"),s=r("423453");n.default.use(i.initReactI18next).init({lng:(0,s.getLocaleFromStorage)(),resources:{en:{translations:o.default},cn:{translations:a.default}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}}),n.default},373262:function(e,t,r){"use strict";r.r(t);var n=r("65651");r.es(n,t);var i=r("697071");r.es(i,t);var o=r("729361");r.es(o,t);var a=r("560103");r.es(a,t);var s=r("111404");r.es(s,t);var l=r("517242");r.es(l,t);var u=r("17235");r.es(u,t);var c=r("703659");r.es(c,t);var d=r("353372");r.es(d,t);var f=r("236010");r.es(f,t);var h=r("423453");r.es(h,t);var p=r("864264");r.es(p,t);var g=r("431251");r.es(g,t);var m=r("630212");r.es(m,t);var y=r("423282");r.es(y,t)},423282:function(e,t,r){"use strict";r.r(t),r.d(t,{filterLoader:function(){return s},findLoaderTotalTiming:function(){return o}});var n=r("534851"),i=r("667227");let{findLoaderTotalTiming:o,getLoaderCosts:a}=n.Loader;function s(e,t,r,n){return!(r&&-1===e.indexOf(r)||n?.length&&!(0,i.includes)(n,t))&&!0}},560103:function(e,t,r){"use strict";r.r(t),r.d(t,{getLocale:function(){return o}});var n=r("674806"),i=r("808794");function o(e){return"cn"===e||"zh-CN"===e?n.default:i.default}},111404:function(e,t,r){"use strict";r.r(t),r.d(t,{useLocale:function(){return a},useTheme:function(){return s},useViewMode:function(){return l}});var n=r("911100");r("315992");var i=r("136795"),o=r("723854");function a(){return(0,n.useContext)(i.ConfigContext).locale}function s(){let{theme:e,setTheme:t}=(0,n.useContext)(i.ConfigContext),r=e===o.Theme.Dark;return{theme:e,setTheme:t,isDark:r,isLight:!r}}function l(){let{viewMode:e,setViewMode:t}=(0,n.useContext)(i.ConfigContext),{bundleAlerts:r,compileAlerts:a}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:a===o.ViewMode.List,isBundleList:r===o.ViewMode.List}}r("17235")},517242:function(e,t,r){"use strict";r.r(t),r.d(t,{getModifiedLanguage:function(){return l},getOriginalLanguage:function(){return s},getRevealPositionForViewer:function(){return u},getSelectionRange:function(){return c},useMonacoEditor:function(){return f}});var n=r("918300"),i=r("972440"),o=r("431251");let a=i.loader.init();function s(e){if((0,o.isJsDataUrl)(e))return"javascript";let t=(0,n.extname)(e).slice(1);switch(t){case"js":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";default:return t}}function l(e){let t=(0,n.extname)(e).slice(1);switch(t){case"js":case"jsx":case"ts":case"tsx":return"javascript";default:return t}}function u(e,t){return{lineNumber:Math.floor(e/1.2)||1,column:Math.floor(t/1.5)||1}}function c(e,t){let{start:r,end:n}=e,{line:i=1,column:o=0}=r;return new t(i,o+1,n?.line??i,(n?.column??9999)+1)}let d=e=>new Promise((t,r)=>{if(e.value){t();return}a.then(t=>{e.value=t}).catch(e=>{e?.type!=="cancelation"&&(console.error("Monaco initialization error:",e),r())})});function f(){return{initMonaco:d}}},17235:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{fetchManifest:function(){return d},fetchShardingFile:function(){return l}});var i=r("311486"),o=r("889702"),a=r("534851");r("723854");var s=r("431251");async function l(e){return a.Url.isUrl(e)?i.default.get(e,{timeout:999999,responseType:"text"}).then(e=>e.data):e}async function u(e){let t=await i.default.get(e,{timeout:3e4}).then(e=>e.data);return"string"==typeof t&&(t=JSON.parse(t)),console.log("[json] ",e,t),t}r("423453");let c=new Map;async function d(e=(!(n=window[o.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[o.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,s.getManifestUrlFromUrlQuery)())&&(n=o.SDK.ServerAPI.API.Manifest),n)){return!c.has(e)&&c.set(e,u(e).catch(t=>{throw c.delete(e),t})),await c.get(e)}},703659:function(e,t,r){"use strict";r.r(t),r.d(t,{hasBundle:function(){return a},hasCompile:function(){return o}});var n=r("667227"),i=r("889702");function o(e){return(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)}function a(e){return(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.BundleSize)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleGraph)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.TreeShaking)}},353372:function(e,t,r){"use strict";function n(e){let t;return t=e>=1073741824?`${(e/1073741824).toFixed(2)} GB`:e>=1048576?`${(e/1048576).toFixed(2)} MB`:e>=1024?`${(e/1024).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}r.r(t),r.d(t,{formatSize:function(){return n}})},236010:function(e,t,r){"use strict";r.r(t),r.d(t,{getSocket:function(){return a}});var n=r("351892");let i=new Map,o=`ws://${location.host}`;function a(e=o){return function(e=o){if(!i.has(e)){let t=(0,n.io)(e,{});t.on("connect",()=>{console.log(`Scoket Connect ${e}`)}),i.set(e,t)}return i.get(e)}(e)}},423453:function(e,t,r){"use strict";r.r(t),r.d(t,{getLocaleFromStorage:function(){return c},getThemeFromStorage:function(){return l},getViewModeFromStorage:function(){return f},hasViewModeFromStorage:function(){return p},setLocaleToStorage:function(){return d},setThemeToStorage:function(){return u},setViewModeToStorage:function(){return h}});var n,i=r("723854");var o=((n=o||{}).Namespace="__RSDOCTOR__STORAGE__",n.Theme="THEME",n.Locale="LOCALE",n.ViewMode="VIEWMODE",n.APILoaderMode4Dev="APILOADERMODE_DEV",n);function a(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function s(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function l(){return a("THEME")||i.Theme.Light}function u(e){s("THEME",e)}function c(){return a("LOCALE")||i.Language.En}function d(e){s("LOCALE",e)}function f(){let e={bundleAlerts:i.ViewMode.List,compileAlerts:i.ViewMode.List};try{let t=a("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch(t){return e}}function h(e){s("VIEWMODE",JSON.stringify(e))}function p(){return!!a("VIEWMODE")}},864264:function(e,t,r){"use strict";r.r(t),r.d(t,{formatCosts:function(){return o}});let{toFixedDigits:n,getUnit:i,formatCosts:o}=r("534851").Time},431251:function(e,t,r){"use strict";r.r(t),r.d(t,{changeOrigin:function(){return c},getDemoUrl:function(){return d},getManifestUrlFromUrlQuery:function(){return u},getShortPath:function(){return f},isJsDataUrl:function(){return l}});var n=r("393763"),i=r.n(n),o=r("889702"),a=r("667227");function s(e){(0,a.endsWith)(e.hash,o.Client.RsdoctorClientRoutes.Uploader)&&e.set("hash",o.Client.RsdoctorClientRoutes.Overall)}function l(e){return e.startsWith("data:text/javascript;")}function u(){let{query:e}=i()(location.href,!0),t=e[o.Client.RsdoctorClientUrlQuery.ManifestFile];if(t)return decodeURIComponent(t)}function c(e){let t=i()(location.href,!0),r=i()(e,!0);return s(t),t.set("origin",e),t.set("protocol",r.protocol),t.set("host",r.host),t.set("port",r.port),t.toString()}function d(){return null}let f=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}},630212:function(e,t,r){"use strict";r.r(t);var n=r("529829");r.es(n,t);var i=r("307890");r.es(i,t);var o=r("52884");r.es(o,t)},307890:function(e,t,r){"use strict";r.r(t),r.d(t,{master:function(){return i}});var n=r("52884");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(),r=new n.ChildWorker(t);return this._workerMap.set(e,r),r}}},529829:function(e,t,r){"use strict";function n(e,t){return t.postMessage(e)}function i(e,t){let r={id:e.data.id,data:t};return postMessage(r)}function o({handler:e}){onmessage=t=>{let r=e(t.data.data);r instanceof Promise?r.then(e=>{i(t,e)}):i(t,r)}}r.r(t),r.d(t,{handleMessageInWorker:function(){return o},sendMessageInClient:function(){return n},sendMessageInWorker:function(){return i}})},52884:function(e,t,r){"use strict";r.r(t),r.d(t,{ChildWorker:function(){return i}});var n=r("529829");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 r=this.createEventId();return this.callbacks.set(r,t),(0,n.sendMessageInClient)({id:r,data:e},this.worker),{abort:()=>this.callbacks.delete(r)}}dispose(){this.worker.terminate()}}},473744:function(e,t,r){"use strict";r.r(t),r("889702")},143341:function(e,t,r){"use strict";r.r(t);var n=r("473744");r.es(n,t)},214631:function(e,t,r){"use strict";r.r(t);var n=r("143341");r.es(n,t);var i=r("634707");r.es(i,t);var o=r("299407");r.es(o,t)},668674:function(e,t,r){"use strict";r.r(t),r.d(t,{Dependency:function(){return o}});var n=r("889702");let i=1;class o{constructor(e,t,r,n,o){this.statements=[],this.meta={exportsType:"default-with-named"},this.id=i++,this.request=e,this.module=t,this._originDependency=r,this.kind=n,this.statements=o??[]}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 n.SDK.DependencyKind[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===n.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())}}}o.kind=n.SDK.DependencyKind},747366:function(e,t,r){"use strict";r.r(t),r("889702"),r("668674"),r("633801"),r("894294"),r("768758")},634707:function(e,t,r){"use strict";r.r(t);var n=r("668674");r.es(n,t);var i=r("633801");r.es(i,t);var o=r("747366");r.es(o,t);var a=r("894294");r.es(a,t);var s=r("768758");r.es(s,t)},633801:function(e,t,r){"use strict";r.r(t);var n=r("889702"),i=r("918300"),o=r.n(i),a=r("13275"),s=r("668674"),l=r("894294"),u=r("628343");let c=1;n.SDK.ModuleKind},894294:function(e,t,r){"use strict";r.r(t),r.d(t,{Statement:function(){return i}});var n=r("628343");class i{static getDefaultStatement(e){let t={line:1,column:0},r={start:{...t},end:{...t}};return new i(e,{source:{...r},transformed:{...r}})}constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,n.isSameRange)(this.position.transformed,e.position.transformed)}getSourcePosition(){let{module:e,position:t}=this;return t.source?t.source:e.getSourceMap()?(t.source=e.getSourceRange(t.transformed),t.source):void 0}getLineCode(){let e=this.module.isPreferSource&&this.position.source,t=this.module.getSource(),r=e?t.source:t.transformed,n=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof n)return r.split("\n")[n-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}},768758:function(e,t,r){"use strict";r.r(t);var n=r("854558");r.es(n,t);var i=r("975369");r.es(i,t)},854558:function(e,t,r){"use strict";r.r(t),r("975369")},975369:function(e,t,r){"use strict";r.r(t);let n=1;(class e{constructor(t,r,i,o,a){this.id=n++,this._exports=[],this.name=t,this.module=r,this.identifier=i,o&&(this.fromDependency=this.module.getDependencyByRequest(o)),a===e.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=a)}static init(){n=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}}).NamespaceSymbol=Symbol("namespace")},628343:function(e,t,r){"use strict";r.r(t),r.d(t,{getModuleName:function(){return u},isSameRange:function(){return o}});var n=r("13275");function i(e,t){return e.line===t.line&&e.column===t.column}function o(e,t){return!!i(e.start,t.start)&&((0,n.isNil)(e.end)||(0,n.isNil)(t.end)?(0,n.isUndefined)(e.end)&&(0,n.isUndefined)(t.end):i(e.end,t.end))}let a=/!/,s=/\s\+\s\d*\smodules$/,l=/^css\s.*node_modules(?!\/)/;function u(e){if(!e)return"";if(a.test(e)){let t=(0,n.last)(e.split(a));if(t?.trim())return t}return s.test(e)?e.replace(s,""):l.test(e)?e.replace(l,""):e}},562367:function(e,t,r){"use strict";r.r(t),r("13275"),r("918300"),r("889702"),r("534851"),r("773671")},299407:function(e,t,r){"use strict";r.r(t);var n=r("562367");r.es(n,t);var i=r("773671");r.es(i,t)},773671:function(e,t,r){"use strict";r.r(t),r("918300")},315992:function(e,t,r){"use strict";r.r(t);var n=r("214631");r.es(n,t)},867405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},494257:function(e,t,r){"use strict";var n,i,o,a,s,l;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorClientDiffState=t.RsdoctorClientRoutes=t.RsdoctorClientUrlQuery=void 0,(a=n||(t.RsdoctorClientUrlQuery=n={})).BundleDiffFiles="__bundle_files__",a.ManifestFile="manifest",(s=i||(t.RsdoctorClientRoutes=i={})).Overall="/overall",s.WebpackLoaderOverall="/webpack/loaders/overall",s.WebpackLoaderAnalysis="/webpack/loaders/analysis",s.ModuleResolve="/module/resolve",s.WebpackPlugins="/webpack/plugins",s.BundleSize="/bundle/size",s.ModuleAnalyze="/module/analyze",s.TreeShaking="/treeshaking",s.BundleDiff="/resources/bundle/diff",s.RuleIndex="/resources/rules",s.Uploader="/resources/uploader",s.EmoCheck="/emo/check",(l=o||(t.RsdoctorClientDiffState=o={})).Equal="-",l.Up="UP",l.Down="DOWN"},281032:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},203768:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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",".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=""},98689:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLevel=void 0,(i=n||(t.ErrorLevel=n={}))[i.Ignore=0]="Ignore",i[i.Warn=1]="Warn",i[i.Error=2]="Error"},286766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},889702:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);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=o(r("590359")),t.Esbuild=o(r("286766")),t.Babel=o(r("867405")),t.Common=o(r("281032")),t.Err=o(r("98689")),t.Logger=o(r("609997")),t.SDK=o(r("761095")),t.Modules=o(r("61023")),t.Linter=o(r("710603")),t.Rule=o(r("169344")),t.Thirdparty=o(r("3118")),t.Client=o(r("494257")),t.Constants=o(r("203768")),t.Plugin=o(r("20359"))},908224:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=void 0;var n=r("98689");Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return n.ErrorLevel}})},710603:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("908224"),t),i(r("340285"),t)},340285:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},609997:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,(i=n||(t.LogLevel=n={}))[i.Silent=0]="Silent",i[i.Error=1]="Error",i[i.Warning=2]="Warning",i[i.Info=3]="Info",i[i.Debug=4]="Debug",i[i.Verbose=5]="Verbose"},590359:function(e,t,r){"use strict";var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorManifestClientConstant=t.RsdoctorManifestClientRoutes=void 0,(o=n||(t.RsdoctorManifestClientRoutes=n={})).Overall="Overall",o.WebpackLoaders="Compile.WebpackLoaders",o.ModuleResolve="Compile.ModuleResolve",o.WebpackPlugins="Compile.WebpackPlugins",o.BundleSize="Bundle.BundleSize",o.ModuleGraph="Bundle.ModuleGraph",o.TreeShaking="Bundle.TreeShaking",(i||(t.RsdoctorManifestClientConstant=i={})).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__"},61023:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},970418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},862559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},503989:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20359:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("970418"),t),i(r("503989"),t),i(r("649901"),t),i(r("862559"),t)},649901:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},104229:function(e,t,r){"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:`
79
79
  #### Description
80
80
 
81
81
  there is a same name package which bundled more than one version in your application.
@@ -147,4 +147,4 @@ For example, if \`node_modules/lodash\` is processed by the \`babel-loader\` tha
147
147
  #### Description
148
148
 
149
149
  Detect if there is a low version of ECMA syntax in the js bundle file
150
- `}},429896:function(e,t,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorRuleClientConstant=t.RuleErrorMap=void 0;let l=a(r("104229")),u=a(r("627827")),c=a(r("81221")),d=a(r("739111"));t.RuleErrorMap={[l.code]:l.message,[u.code]:u.message,[c.code]:c.message,[d.code]:d.message},(n||(t.RsdoctorRuleClientConstant=n={})).UrlQueryForErrorCode="code",s(r("761223"),t)},761223:function(e,t,r){"use strict";var n,i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.RuleMessageCategory=t.RuleMessageCodeEnumerated=void 0,(o=n||(t.RuleMessageCodeEnumerated=n={})).Extend="EXTEND",o.Overlay="OVERLAY",(a=i||(t.RuleMessageCategory=i={})).Compile="compile",a.Bundle="bundle",a.EMO="emo"},525435:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},169344:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("429896"),t),i(r("525435"),t)},262779:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},303237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},227697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},534009:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},841450:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},761095:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("288665"),t),i(r("192568"),t),i(r("25404"),t),i(r("492416"),t),i(r("262779"),t),i(r("805920"),t),i(r("481556"),t),i(r("640656"),t),i(r("227697"),t),i(r("303237"),t),i(r("607130"),t),i(r("118422"),t),i(r("664501"),t),i(r("534009"),t),i(r("61478"),t),i(r("841450"),t)},61478:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},288665:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},492416:function(e,t,r){"use strict";var n,i,o,a,s,l;Object.defineProperty(t,"__esModule",{value:!0}),t.ToDataType=t.ModuleKind=t.DependencyKind=void 0,(a=n||(t.DependencyKind=n={}))[a.Unknown=0]="Unknown",a[a.ImportStatement=1]="ImportStatement",a[a.DynamicImport=2]="DynamicImport",a[a.RequireCall=3]="RequireCall",a[a.AMDRequire=4]="AMDRequire",(s=i||(t.ModuleKind=i={}))[s.Normal=0]="Normal",s[s.Concatenation=1]="Concatenation",(l=o||(t.ToDataType=o={}))[l.Normal=0]="Normal",l[l.Lite=1]="Lite",l[l.LiteAndNoAsset=2]="LiteAndNoAsset",l[l.All=3]="All"},640656:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},25404:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},192568:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},805920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},936329:function(e,t,r){"use strict";var n,i,o,a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.APIExtends=t.API=void 0,s(r("61531"),t),(n=i||(t.API=i={})).ApplyErrorFix="/api/apply/error/fix",n.Env="/api/env",n.EntryHtml="/index.html",n.Manifest="/api/manifest.json",n.LoadDataByKey="/api/data/key",n.SendAPIDataToClient="/api/socket/send",n.GetProjectInfo="/api/project/info",n.GetClientRoutes="/api/routes",n.ReportLoader="/api/loader/report",n.GetLoaderNames="/api/loader/names",n.GetLoaderChartData="/api/loader/chart/data",n.GetLoaderFileTree="/api/loader/filetree",n.GetLoaderFileDetails="/api/loader/file",n.GetLoaderFolderStatistics="/api/loader/folder/statics",n.GetLoaderFileFirstInput="/api/loader/input",n.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",n.ReportSourceMap="/api/sourcemap/report",n.GetResolverFileTree="/api/resolver/filetree",n.GetResolverFileDetails="/api/resolver/file",n.GetPluginSummary="/api/plugins/summary",n.GetPluginData="/api/plugins/data",n.GetAssetsSummary="/api/graph/assets/summary",n.GetAssetDetails="/api/graph/asset/details",n.GetChunksByModuleId="/api/graph/chunk/module",n.GetModuleDetails="/api/graph/module/details",n.GetModulesByModuleIds="/api/graph/modules/ids",n.GetEntryPoints="/api/graph/entrypoints",n.GetModuleCodeByModuleId="/api/graph/module/code",n.GetModuleCodeByModuleIds="/api/graph/module/codes",n.GetAllModuleGraph="/api/graph/module/all",n.GetAllChunkGraph="/api/graph/chunk/all",n.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",n.GetOverlayAlerts="/api/alerts/overlay",n.BundleDiffManifest="/api/bundle_diff/manifest.json",n.GetBundleDiffSummary="/api/bundle_diff/summary",n.GetTileReportHtml="/api/tile/report",(o||(t.APIExtends=o={})).GetCompileProgess="/api/progress"},61531:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},607130:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ServerAPI=void 0,t.ServerAPI=o(r("936329"))},118422:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.StatementKind=void 0,(i=n||(t.StatementKind=n={}))[i.ImportDefault=100]="ImportDefault",i[i.ImportNamed=101]="ImportNamed",i[i.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",i[i.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",i[i.ImportNamespace=104]="ImportNamespace",i[i.ImportSideEffect=105]="ImportSideEffect",i[i.ImportDynamic=106]="ImportDynamic",i[i.ExportDeclaration=200]="ExportDeclaration",i[i.ExportList=201]="ExportList",i[i.ExportDefault=202]="ExportDefault",i[i.ExportAggregating=203]="ExportAggregating",i[i.ExportNamespace=204]="ExportNamespace",i[i.RequireCall=300]="RequireCall",i[i.RequireName=301]="RequireName",i[i.RequireExports=302]="RequireExports",i[i.RequireExportAggregating=303]="RequireExportAggregating",i[i.RequireExportName=304]="RequireExportName",i[i.Unknown=999]="Unknown"},481556:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},664501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3118:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},100122:function(e,t,r){"use strict";r.r(t),r.d(t,{getPackageRelationAlertDetails:function(){return i}});var n=r("918300");function i(e,t,r,i,o){return i.slice().reverse().map(i=>{let a=t.find(e=>e.id===i.dependencyId);if(!a)return null;let s=e.find(e=>e.id===a.module);return s?{group:i.group,module:s,dependency:a,relativePath:(0,n.relative)(r,s.path),moduleCode:o?.[s.id]}:null}).filter(Boolean)}},288599:function(e,t,r){"use strict";r.r(t),r.d(t,{decompressText:function(){return a},mergeIntervals:function(){return o}});var n=r("459116"),i=r("139528");function o(e){let t,r;e.sort((e,t)=>e[0]-t[0]);let n=[];for(let i=0;i<e.length;i++)r=e[i],!t||r[0]>t[1]?(t=r,n.push(r)):t[1]=Math.max(t[1],r[1]);return n}function a(e){return(0,n.inflateSync)(i.Buffer.from(e,"base64")).toString()}},822598:function(e,t,r){"use strict";r.r(t),r("889702")},66843:function(e,t,r){"use strict";r.r(t),r.d(t,{APIDataLoader:function(){return u}});var n=r("889702"),i=r("261768"),o=r("775773"),a=r("529599"),s=r("188854"),l=r("100122");class u{constructor(e){this.loader=e,this.loadAPI=this.loadAPI.bind(this)}log(...e){console.log(`[${this.constructor.name}]`,...e)}loadAPI(...e){let[t,r]=e;switch(t){case n.SDK.ServerAPI.API.LoadDataByKey:return this.loader.loadData(r.key);case n.SDK.ServerAPI.API.GetProjectInfo:return Promise.all([this.loader.loadData("root"),this.loader.loadData("pid"),this.loader.loadData("hash"),this.loader.loadData("summary"),this.loader.loadData("configs"),this.loader.loadData("envinfo"),this.loader.loadData("errors")]).then(([e,t,r,n,i,o,a])=>({root:e,pid:t,hash:r,summary:n,configs:i,envinfo:o,errors:a}));case n.SDK.ServerAPI.API.GetClientRoutes:return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t});case n.SDK.ServerAPI.API.GetLoaderNames:return this.loader.loadData("loader").then(e=>i.getLoaderNames(e||[]));case n.SDK.ServerAPI.API.GetLoaderChartData:return this.loader.loadData("loader").then(e=>i.getLoaderChartData(e||[]));case n.SDK.ServerAPI.API.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>i.getLoaderFileTree(e||[]));case n.SDK.ServerAPI.API.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>i.getLoaderFileDetails(r.path,e||[]));case n.SDK.ServerAPI.API.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>i.getLoaderFolderStatistics(r.folder,e||[]));case n.SDK.ServerAPI.API.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>i.getLoaderFileFirstInput(r.file,e||[]));case n.SDK.ServerAPI.API.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>i.getLoaderFileFirstInput(r.file,e||[]));case n.SDK.ServerAPI.API.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>o.getResolverFileTree(e||[]));case n.SDK.ServerAPI.API.GetResolverFileDetails:return Promise.all([this.loader.loadData("resolver"),this.loader.loadData("moduleGraph.modules"),this.loader.loadData("moduleCodeMap")]).then(e=>{let t=e[0],n=e[1],i=e[2];return o.getResolverFileDetails(r.filepath,t||[],n||[],i||{})});case n.SDK.ServerAPI.API.GetPluginSummary:return this.loader.loadData("plugin").then(e=>a.getPluginSummary(e||{}));case n.SDK.ServerAPI.API.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:n}=r;return a.getPluginData(e||{},t,n)});case n.SDK.ServerAPI.API.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=r,{assets:n=[],chunks:i=[]}=e||{};return s.getAssetsSummary(n,i,{withFileContent:t})});case n.SDK.ServerAPI.API.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{assetPath:t}=r,{assets:n=[],chunks:i=[]}=e[0]||{},{modules:o=[]}=e[1]||{};return s.getAssetDetails(t,n,i,o)});case n.SDK.ServerAPI.API.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=r,{chunks:n=[]}=e[0]||{},{modules:i=[]}=e[1]||{};return s.getChunksByModuleId(t,i,n)});case n.SDK.ServerAPI.API.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=r,{modules:n=[],dependencies:i=[]}=e[1]||{};return s.getModuleDetails(t,n,i)});case n.SDK.ServerAPI.API.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=r,{modules:n=[]}=e||{};return s.getModuleIdsByModulesIds(t,n)});case n.SDK.ServerAPI.API.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:r=[]}=t||{};return s.getEntryPoints(r)});case n.SDK.ServerAPI.API.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=r;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case n.SDK.ServerAPI.API.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=r,n={};return e?(t.forEach(t=>{n[t]=e[t]}),n):[]});case n.SDK.ServerAPI.API.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>e?.modules);case n.SDK.ServerAPI.API.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>e?.chunks);case n.SDK.ServerAPI.API.GetPackageRelationAlertDetails:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("errors"),this.loader.loadData("root"),this.loader.loadData("moduleCodeMap")]).then(e=>{let{id:t,target:n}=r,[i,o=[],a="",s]=e,{modules:u=[],dependencies:c=[]}=i||{},{packages:d=[]}=o.find(e=>e.id===t)||{},{dependencies:f=[]}=d.find(e=>e.target.name===n.name&&e.target.root===n.root&&e.target.version===n.version)||{};return l.getPackageRelationAlertDetails(u,c,a,f,s||{})});case n.SDK.ServerAPI.API.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===n.Rule.RuleMessageCodeEnumerated.Overlay));case n.SDK.ServerAPI.API.BundleDiffManifest:return this.loader.loadManifest();case n.SDK.ServerAPI.API.GetBundleDiffSummary:return Promise.all([this.loader.loadManifest(),this.loader.loadData("root"),this.loader.loadData("hash"),this.loader.loadData("errors"),this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("moduleCodeMap"),this.loader.loadData("packageGraph"),this.loader.loadData("configs")]).then(([e,t="",r="",n={},i={},o={},a={},s={},l=[]])=>{let u="";return"string"==typeof l[0].config?.output?.chunkFilename&&(u=l[0].config.output.chunkFilename),{root:t,hash:r,errors:n,chunkGraph:i,moduleGraph:o,packageGraph:s,outputFilename:u,moduleCodeMap:a}});case n.SDK.ServerAPI.API.GetTileReportHtml:return this.loader.loadData("otherReports").then(e=>e?.tileReportHtml);default:throw Error(`API not implement: "${t}"`)}}}},346393:function(e,t,r){"use strict";r.r(t),r.d(t,{getAssetDetails:function(){return h},getAssetsSummary:function(){return f}});var n=r("889702"),i=r("972922"),o=r("116580");function a(e,t){return e.path.slice(-t.length)===t}function s(e,t){return!!t.length&&t.some(t=>a(e,t))}RegExp(`(.*)${/[-|.]/.source}${/[a-z|A-Z|0-9]{4,32}/.source}(${/(?:\.[a-z|A-Z|0-9]{2,}){1,}/.source})$`);function l(e,t){if(t){if("function"==typeof t)e=e.filter(t);else{var r,n;r=e,e="string"==typeof(n=t)?r.filter(e=>a(e,n)):Array.isArray(n)?r.filter(e=>s(e,n)):[]}}return e}function u(e,t,r={}){let{withFileContent:i=!0,filterOrExtensions:o}=r;return(e=e.filter(e=>!s(e,n.Constants.MapExtensions)),o&&(e=l(e,o)),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,initial:c(e,t),content:i?e.content:void 0}))}:{count:0,size:0,files:[]}}function c(e,t){return(0,i.getChunksByAsset)(e,t).some(e=>!!e.initial)}function d(e,t,r={}){return r.filterOrExtensions&&(e=l(e,r.filterOrExtensions)),u(e,t,{...r,filterOrExtensions:e=>c(e,t)})}function f(e,t,r={}){let i={...r,filterOrExtensions:n.Constants.JSExtension},o={...r,filterOrExtensions:n.Constants.CSSExtension},a={...r,filterOrExtensions:n.Constants.ImgExtensions},l={...r,filterOrExtensions:n.Constants.HtmlExtension},c={...r,filterOrExtensions:n.Constants.MediaExtensions},f={...r,filterOrExtensions:n.Constants.FontExtensions},h={...r,filterOrExtensions:e=>!s(e,[n.Constants.JSExtension,n.Constants.CSSExtension,n.Constants.HtmlExtension].concat(n.Constants.ImgExtensions,n.Constants.MediaExtensions,n.Constants.FontExtensions,n.Constants.MapExtensions))};return{all:{total:u(e,t,r)},js:{total:u(e,t,i),initial:d(e,t,i)},css:{total:u(e,t,o),initial:d(e,t,o)},imgs:{total:u(e,t,a)},html:{total:u(e,t,l)},media:{total:u(e,t,c)},fonts:{total:u(e,t,f)},others:{total:u(e,t,h)}}}function h(e,t,r,n){let a=t.find(t=>t.path===e);return{asset:a,chunks:(0,i.getChunksByAsset)(a,r),modules:(0,o.getModulesByAsset)(a,r,n)}}},972922:function(e,t,r){"use strict";function n(e){return e.chunks?e.chunks:[]}r.r(t),r.d(t,{getChunkIdsByAsset:function(){return n},getChunksByAsset:function(){return o},getChunksByChunkIds:function(){return i},getChunksByModuleId:function(){return a}});function i(e,t){return e.length?e.map(e=>{var r;return r=e,t.find(e=>e.id===r)}).filter(Boolean):[]}function o(e,t){return i(n(e),t)}function a(e,t,r){var n,o;let a=t.find(t=>t.id===e);if(!a)return[];return n=a,o=r,n.chunks.length?i(n.chunks,o):[]}},498289:function(e,t,r){"use strict";function n(e,t){return e.dependencies.map(e=>t.find(t=>t.id===e)).filter(Boolean)}r.r(t),r.d(t,{getDependenciesByModule:function(){return n}})},236009:function(e,t,r){"use strict";function n(e){return e}r.r(t),r.d(t,{getEntryPoints:function(){return n}})},188854:function(e,t,r){"use strict";r.r(t);var n=r("346393");r.es(n,t);var i=r("972922");r.es(i,t);var o=r("116580");r.es(o,t);var a=r("498289");r.es(a,t);var s=r("236009");r.es(s,t)},116580:function(e,t,r){"use strict";r.r(t),r.d(t,{getModuleDetails:function(){return s},getModuleIdsByModulesIds:function(){return a},getModulesByAsset:function(){return o}});var n=r("972922"),i=r("498289");function o(e,t,r){let i=(0,n.getChunkIdsByAsset)(e);return function(e,t){let r=[];return e.forEach(e=>{var n,i;(n=e,i=t,(function(e){let{modules:t=[]}=e;return t})(n).map(e=>i.find(t=>t.id===e)).filter(Boolean)).forEach(e=>{!r.filter(t=>t.id===e.id).length&&r.push(e)})}),r}((0,n.getChunksByChunkIds)(i,t),r)}function a(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function s(e,t,r){let n=t.find(t=>t.id===e);return{module:n,dependencies:(0,i.getDependenciesByModule)(n,r)}}},534851:function(e,t,r){"use strict";r.r(t),r.d(t,{Data:function(){return u},Loader:function(){return o},Manifest:function(){return i},Resolver:function(){return s},Summary:function(){return n},Time:function(){return a},Url:function(){return l}});var n=r("393243"),i=r("311521"),o=r("261768"),a=r("287982");r("288599");var s=r("775773");r("188854"),r("822598");var l=r("209917");r("529599");var u=r("66843");r("100122"),r("912311"),r("357798")},261768:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderInternalPropertyName:function(){return g},findLoaderTotalTiming:function(){return i},getLoaderChartData:function(){return u},getLoaderCosts:function(){return a},getLoaderFileDetails:function(){return d},getLoaderFileFirstInput:function(){return h},getLoaderFileInputAndOutput:function(){return p},getLoaderFileTree:function(){return c},getLoaderFolderStatistics:function(){return f},getLoaderNames:function(){return s},getLoadersCosts:function(){return o},getLoadersTransformData:function(){return l}});var n=r("288599");function i(e){let t=1/0,r=-1/0;for(let n=0;n<e.length;n++){let i=e[n];i.startAt<=t&&(t=i.startAt),i.endAt>=r&&(r=i.endAt)}return{start:t,end:r}}function o(e,t){let r={},i={};t.forEach(t=>{e(t)?(!r[t.pid]&&(r[t.pid]=[]),r[t.pid].push([t.startAt,t.endAt])):(!i[t.pid]&&(i[t.pid]=[]),i[t.pid].push([t.startAt,t.endAt]))});let o=0,a=Object.keys(r);for(let e=0;e<a.length;e++){let t=a[e],s=(0,n.mergeIntervals)(r[t]),l=(0,n.mergeIntervals)(i[t]||[]).filter(([e,t])=>s.some(r=>e>=r[0]&&t<=r[1])),u=s.length?s.reduce((e,t)=>e+=t[1]-t[0],0):0;o+=u-(l.length?l.reduce((e,t)=>e+=t[1]-t[0],0):0)}return o}function a(e,t){let r=t.filter(t=>t!==e&&t.pid===e.pid&&!!(t.startAt>=e.startAt)&&!!(t.endAt<=e.endAt)||!1),i=e.endAt-e.startAt;if(r.length){let t=r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)]);(0,n.mergeIntervals)(t).forEach(e=>{let t=e[1]-e[0];i-=t})}return i}function s(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(e.loader))),[...t]}function l(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(let e=0;e<n.loaders.length;e++){let r=n.loaders[e];t.push(r)}}return t}function u(e){let t=[],r=l(e);return e.forEach(e=>{e.loaders.forEach(n=>{t.push({loader:n.loader,isPitch:n.isPitch,startAt:n.startAt,endAt:n.endAt,pid:n.pid,sync:n.sync,resource:e.resource.path,costs:a(n,r)})})}),t}function c(e){let t=l(e);return e.map(e=>{let{loaders:r,resource:n}=e;return{path:n.path,loaders:r.map(e=>({loader:e.loader,path:e.path,errors:e.errors,costs:a(e,t)}))}})}function d(e,t){let r=t.find(t=>t.resource.path===e);if(!r)throw Error(`"${e}" not match any loader data`);let n=l(t);return{...r,loaders:r.loaders.map(e=>({...e,costs:a(e,n)}))}}function f(e,t){let r=t.filter(t=>{let{path:r}=t.resource;return r.startsWith(e)}),n=l(t);return r.reduce((e,t)=>{let{loaders:r}=t;return r.forEach(t=>{let r=e.find(e=>e.loader===t.loader),i=a(t,n);r?(r.files++,r.costs+=i):e.push({loader:t.loader,path:t.path,files:1,costs:i})}),e},[])}function h(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.resource.path===e){let e=n.loaders.filter(e=>!e.isPitch);if(!e.length)return"";return e[0].input||""}}return""}function p(e,t,r,n){for(let i=0;i<n.length;i++){let o=n[i];if(o.resource.path===e)for(let e=0;e<o.loaders.length;e++){let n=o.loaders[e];if(n.loader===t&&n.loaderIndex===r)return{input:n.input||"",output:n.result||""};return{input:"",output:""}}}return{input:"",output:""}}let g="__l__"},311521:function(e,t,r){"use strict";r.r(t),r.d(t,{fetchShardingData:function(){return a},isShardingData:function(){return o}});var n=r("288599"),i=r("209917");function o(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>(0,i.isRemoteUrl)(e)))||!1}async function a(e,t){let r=await Promise.all(e.map(e=>t(e))),i=0===r.length?[]:r.reduce((e,t)=>e+t);return"object"==typeof i?i:JSON.parse((0,n.decompressText)(i))}},357798:function(e,t,r){"use strict";r.r(t),r("13275");let n=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/;RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${n.source}[/|+])?(?:${n.source}\\+)*(?:${n.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${n.source}[/|+])?(?:${n.source})(?:@${n.source})?)*/`,"g")},529599:function(e,t,r){"use strict";function n(e){return Object.keys(e)}function i(e){let t=n(e),r=new Set;return t.forEach(t=>{e[t].forEach(e=>{r.add(e.tapName)})}),[...r]}function o(e){return{hooks:n(e),tapNames:i(e)}}function a(e,t=[],r=[]){let o=n(e).filter(e=>(!t.length||-1!==t.indexOf(e))&&!0);return o.length?i(e).reduce((t,n)=>r.length&&-1===r.indexOf(n)?t:(o.forEach(r=>{let i=e[r].filter(e=>e.tapName===n);0!==i.length&&t.push({tapName:n,hook:r,data:i.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}r.r(t),r.d(t,{getPluginData:function(){return a},getPluginSummary:function(){return o}})},775773:function(e,t,r){"use strict";r.r(t),r.d(t,{getResolverFileDetails:function(){return a},getResolverFileTree:function(){return o},isResolveSuccessData:function(){return i}});var n=r("288599");function i(e){return!!e.result}function o(e){return e.map(e=>({issuerPath:e.issuerPath}))}function a(e,t,r,o){let a=r.find(t=>t.path===e),s=t.filter(t=>t.issuerPath===e),l=a&&o&&o[a.id]?o[a.id].source:"",u=s.reduce((e,t)=>t.request&&i(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,l);return{filepath:e,before:l,after:u,resolvers:s.map(e=>({...e,costs:function(e,t){let r=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),i=e.endAt-e.startAt;if(r.length){let t=r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)]);(0,n.mergeIntervals)(t).forEach(e=>{let t=e[1]-e[0];i-=t})}return i}(e,t)}))}}},912311:function(e,t,r){"use strict";r.r(t);var n,i=((n=i||{}).Bootstrap="bootstrap->rspack:beforeCompile",n.Compile="rspack:beforeCompile->afterCompile",n.Done="rspack:afterCompile->done",n.Minify="rspack:minify(rspack:optimizeChunkAssets)",n)},393243:function(e,t,r){"use strict";r.r(t),r.d(t,{SummaryCostsDataName:function(){return i}});var n,i=((n=i||{}).Bootstrap="bootstrap->beforeCompile",n.Compile="beforeCompile->afterCompile",n.Done="afterCompile->done",n.Minify="minify(webpack4:optimizeChunkAssets|webpack5:processAssets|rspack:processAssets)",n)},287982:function(e,t,r){"use strict";r.r(t),r.d(t,{formatCosts:function(){return s},getCurrentTimestamp:function(){return l},getUnit:function(){return a},toFixedDigits:function(){return o}});var n=r("980389"),i=r("980389");function o(e,t=2){return 0===t?Math.floor(e):+e.toFixed(t)}function a(e,t){let r;return r="m"===t?e>1?"mins":"min":e>1?"hours":"hour"}function s(e){if((e=Number(e))>=1e3){let t=e/1e3;if(t>=60){let e=t/60;if(e>=60){let t=o(e/60,0),r=o(e%60,1),n=a(t,"h");return r>0?`${t}${n} ${r}${a(r,"m")}`:`${t}${n}`}let r=a(e=o(e,0),"m"),n=o(t%60,0);return n>0?`${e}${r} ${n}s`:`${e}${r}`}return`${o(t,1)}s`}if(e>=10)return`${+o(e,0)}ms`;if(e>=1)return`${+o(e,1)}ms`;let t=+o(e,2);return 0===t&&(t=+o(e,3)),`${t}ms`}function l(e,t){let r=(0,n.hrtime)(t);return e+1e3*r[0]+(i.env.VITEST?Math.round(r[1]/1e6):r[1]/1e6)}},209917:function(e,t,r){"use strict";r.r(t),r.d(t,{isRemoteUrl:function(){return o},isUrl:function(){return i}});var n=r("918300");function i(e){return/^https?:\/\//.test(e)}function o(e){if("string"==typeof e){var t;if(i(e)||(t=e,(0,n.isAbsolute)(t)))return!0}return!1}},696480:function(e,t,r){"use strict";r.r(t),r("755993"),r("13275")},361515:function(e,t,r){"use strict";r.r(t);var n=r("696480");r.es(n,t);var i=r("852900");r.es(i,t)},852900:function(e,t,r){"use strict";r.r(t),r("696480")},226035:function(e,t,r){"use strict";r.r(t);var n=r("361515");r.es(n,t);var i=r("835040");r.es(i,t)},993925:function(e,t,r){"use strict";r.r(t),r.d(t,{asserts:function(){return a}});var n=r("13275");function i(e){return(0,n.isObject)(e)&&"type"in e}function o(e){return t=>i(t)&&t.type===e}let a={isProgram:o("Program"),isEmptyStatement:o("EmptyStatement"),isBlockStatement:o("BlockStatement"),isStaticBlock:o("StaticBlock"),isExpressionStatement:o("ExpressionStatement"),isIfStatement:o("IfStatement"),isLabeledStatement:o("LabeledStatement"),isBreakStatement:o("BreakStatement"),isContinueStatement:o("ContinueStatement"),isWithStatement:o("WithStatement"),isSwitchStatement:o("SwitchStatement"),isReturnStatement:o("ReturnStatement"),isThrowStatement:o("ThrowStatement"),isTryStatement:o("TryStatement"),isWhileStatement:o("WhileStatement"),isDoWhileStatement:o("DoWhileStatement"),isForStatement:o("ForStatement"),isForInStatement:o("ForInStatement"),isForOfStatement:o("ForOfStatement"),isDebuggerStatement:o("DebuggerStatement"),isFunctionDeclaration:o("FunctionDeclaration"),isVariableDeclaration:o("VariableDeclaration"),isVariableDeclarator:o("VariableDeclarator"),isChainExpression:o("ChainExpression"),isThisExpression:o("ThisExpression"),isArrayExpression:o("ArrayExpression"),isObjectExpression:o("ObjectExpression"),isPrivateIdentifier:o("PrivateIdentifier"),isProperty:o("Property"),isPropertyDefinition:o("PropertyDefinition"),isFunctionExpression:o("FunctionExpression"),isSequenceExpression:o("SequenceExpression"),isUnaryExpression:o("UnaryExpression"),isBinaryExpression:o("BinaryExpression"),isAssignmentExpression:o("AssignmentExpression"),isUpdateExpression:o("UpdateExpression"),isLogicalExpression:o("LogicalExpression"),isConditionalExpression:o("ConditionalExpression"),isNewExpression:o("NewExpression"),isSwitchCase:o("SwitchCase"),isCatchClause:o("CatchClause"),isIdentifier:o("Identifier"),isLiteral:o("Literal"),isSuper:o("Super"),isSpreadElement:o("SpreadElement"),isArrowFunctionExpression:o("ArrowFunctionExpression"),isYieldExpression:o("YieldExpression"),isTemplateLiteral:o("TemplateLiteral"),isTaggedTemplateExpression:o("TaggedTemplateExpression"),isTemplateElement:o("TemplateElement"),isObjectPattern:o("ObjectPattern"),isArrayPattern:o("ArrayPattern"),isRestElement:o("RestElement"),isAssignmentPattern:o("AssignmentPattern"),isClassBody:o("ClassBody"),isClassDeclaration:o("ClassDeclaration"),isClassExpression:o("ClassExpression"),isMetaProperty:o("MetaProperty"),isImportDeclaration:o("ImportDeclaration"),isImportSpecifier:o("ImportSpecifier"),isImportExpression:o("ImportExpression"),isImportDefaultSpecifier:o("ImportDefaultSpecifier"),isImportNamespaceSpecifier:o("ImportNamespaceSpecifier"),isExportNamedDeclaration:o("ExportNamedDeclaration"),isExportSpecifier:o("ExportSpecifier"),isExportDefaultDeclaration:o("ExportDefaultDeclaration"),isExportAllDeclaration:o("ExportAllDeclaration"),isAwaitExpression:o("AwaitExpression"),isMethodDefinition:o("MethodDefinition"),isMemberExpression:o("MemberExpression"),isComment:e=>i(e)&&("Line"===e.type||"Block"===e.type),isDirective:e=>a.isExpressionStatement(e)&&"directive"in e,isSimpleCallExpression:e=>i(e)&&"CallExpression"===e.type,isAssignmentProperty:e=>a.isProperty(e)&&"init"===e.kind,isSimpleLiteral:e=>a.isLiteral(e)&&!a.isRegExpLiteral(e)&&!a.isBigIntLiteral(e),isRegExpLiteral:e=>a.isLiteral(e)&&"regex"in e,isBigIntLiteral:e=>a.isLiteral(e)&&"bigint"in e,isExportStatement:e=>a.isExportAllDeclaration(e)||a.isExportDefaultDeclaration(e)||a.isExportNamedDeclaration(e)}},835040:function(e,t,r){"use strict";r.r(t);var n=r("993925");r.es(n,t);var i=r("416578");r.es(i,t);var o=r("48478");r.es(o,t);var a=r("289196");r.es(a,t)},416578:function(e,t,r){"use strict";r.r(t);var n=r("625020"),i=r("837208");r("908035");var o=r("993925");r("48478"),n.Parser.extend(i.importAssertions);let a=n.Parser.extend(i.importAssertions);(e,t)=>a.parse(e,t),o.asserts},289196:function(e,t,r){"use strict";r.r(t),r.d(t,{ECMAVersion:function(){return i}});var n,i=((n=i||{}).ES5="ES5",n.ES6="ES6",n.ES7P="ES7+",n)},48478:function(e,t,r){"use strict";r.r(t),r.d(t,{canParse:function(){return d},detectECMAVersion:function(){return p},getDefaultImports:function(){return a},getIdentifierInDeclaration:function(){return l},getIdentifierInExport:function(){return c},getIdentifierInImport:function(){return u},getIdentifierInPattern:function(){return s},isES5:function(){return f},isES6:function(){return h},isSameSemantics:function(){return function e(t,r){if(t.type!==r.type)return!1;switch(t.type){case"CallExpression":return t.arguments.length===r.arguments.length&&!!t.optional==!!r.optional&&e(t.callee,r.callee)&&t.arguments.every((t,n)=>e(t,r.arguments[n]));case"MemberExpression":return t.computed===r.computed&&!!t.optional==!!r.optional&&e(t.object,r.object)&&e(t.property,r.property);case"Identifier":return t.name===r.name;case"Literal":if(o.asserts.isSimpleLiteral(t)&&o.asserts.isSimpleLiteral(r))return t.value===r.value;return t.raw===r.raw;case"ObjectExpression":return t.properties.length===r.properties.length&&t.properties.every((t,n)=>e(t,r.properties[n]));case"Property":return t.computed===r.computed&&t.kind===r.kind&&t.method===r.method&&e(t.key,r.key)&&e(t.value,r.value);default:throw Error(`Unknown node type: ${t.type}`)}}}});var n=r("625020"),i=r("289196"),o=r("993925");function a(e){return e.body.filter(e=>{if("ImportDeclaration"!==e.type)return!1;let t=e?.specifiers?.[0];return t?.type==="ImportDefaultSpecifier"||!1})}function s(e,t){if(o.asserts.isIdentifier(t)&&t.name===e)return t;if(o.asserts.isObjectPattern(t))for(let r of t.properties){if(o.asserts.isAssignmentProperty(r))return s(e,r.value);if(o.asserts.isRestElement(r))return s(e,r)}if(o.asserts.isArrayPattern(t)){for(let r of t.elements)if(r){let t=s(e,r);if(t)return t}}return o.asserts.isRestElement(t)?s(e,t.argument):o.asserts.isAssignmentPattern(t)?s(e,t.left):void 0}function l(e,t){function r(t){return o.asserts.isIdentifier(t.id)&&t.id.name===e?t.id:void 0}return o.asserts.isFunctionDeclaration(t)||o.asserts.isClassDeclaration(t)?r(t):o.asserts.isVariableDeclaration(t)?t.declarations.find(t=>s(e,t.id))?.id:void 0}function u(e,t){if(o.asserts.isImportDeclaration(t)){for(let r of t.specifiers??[])if(r.local.name===e)return r.local}}function c(e,t){if(o.asserts.isExportNamedDeclaration(t)){if(t.declaration)return l(e,t.declaration);for(let r of t.specifiers??[])if(r.exported.name===e)return r.exported}if(o.asserts.isExportAllDeclaration(t)&&t.exported&&t.exported.name===e)return t.exported}function d(e,t){try{return(0,n.parse)(e,{ecmaVersion:t,sourceType:"number"==typeof t&&t<=5?"script":"module"}),!0}catch(e){return!1}}function f(e){return d(e,5)}function h(e){return d(e,6)}function p(e){if(h(e))return f(e)?i.ECMAVersion.ES5:i.ECMAVersion.ES6;return i.ECMAVersion.ES7P}},521964:function(e,t,r){"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik01IDI0TDQzIDI0IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTI4IDRIMjBDMTguODk1NCA0IDE4IDQuODk1NDMgMTggNlYxNEMxOCAxNS4xMDQ2IDE4Ljg5NTQgMTYgMjAgMTZIMjhDMjkuMTA0NiAxNiAzMCAxNS4xMDQ2IDMwIDE0VjZDMzAgNC44OTU0MyAyOS4xMDQ2IDQgMjggNFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzMyIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTE2IDMySDhDNi44OTU0MyAzMiA2IDMyLjg5NTQgNiAzNFY0MkM2IDQzLjEwNDYgNi44OTU0MyA0NCA4IDQ0SDE2QzE3LjEwNDYgNDQgMTggNDMuMTA0NiAxOCA0MlYzNEMxOCAzMi44OTU0IDE3LjEwNDYgMzIgMTYgMzJaIiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik00MCAzMkgzMkMzMC44OTU0IDMyIDMwIDMyLjg5NTQgMzAgMzRWNDJDMzAgNDMuMTA0NiAzMC44OTU0IDQ0IDMyIDQ0SDQwQzQxLjEwNDYgNDQgNDIgNDMuMTA0NiA0MiA0MlYzNEM0MiAzMi44OTU0IDQxLjEwNDYgMzIgNDAgMzJaIiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0yNCAyNFYxNiIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0zNiAzMlYyNCIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0xMiAzMlYyNCIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg=="},131988:function(e,t,r){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTIwMCAxMjAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im02MDAgMCA1MzAuMyAzMDB2NjAwbC01MzAuMyAzMDAtNTMwLjMtMzAwdi02MDB6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0ibTEwMzUuNiA4NzkuMy00MTguMSAyMzYuNXYtMTg0LjJsMjYwLjUtMTQzLjN6bTI4LjYtMjUuOXYtNDk0LjZsLTE1MyA4OC4zdjMxNy45em0tOTAxLjUgMjUuOSA0MTguMSAyMzYuNXYtMTg0LjJsLTI2MC41LTE0My4zem0tMjguNi0yNS45di00OTQuNmwxNTMgODguM3YzMTcuOXptMTcuOS01MjYuNiA0MjguOC0yNDIuNnYxNzguMWwtMjc0LjcgMTUxLjEtMi4xIDEuMnptODk0LjMgMC00MjguOC0yNDIuNnYxNzguMWwyNzQuNyAxNTEuMSAyLjEgMS4yeiIgZmlsbD0iIzhlZDZmYiIvPjxwYXRoIGQ9Im01ODAuOCA4ODkuNy0yNTctMTQxLjN2LTI4MGwyNTcgMTQ4LjR6bTM2LjcgMCAyNTctMTQxLjN2LTI4MGwtMjU3IDE0OC40em0tMjc2LjMtNDUzLjcgMjU4LTE0MS45IDI1OCAxNDEuOS0yNTggMTQ5eiIgZmlsbD0iIzFjNzhjMCIvPjwvc3ZnPg=="},72095:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return g}});var n=r("766791"),i=r("435067"),o=r("136795"),a=r("415191"),s=r("373262"),l=r("875814"),u=r("911100"),c=r("578392"),d=r("127272"),f=r("221342");let{PageState:h,Theme:p}=i.Constants;var g=()=>{let e=(0,s.useDetectIfCloudIdeEnv)(),[t,r]=(0,u.useState)(h.Success),[g,m]=(0,u.useState)({...o.defaultConfig.viewMode}),[y,x]=(0,u.useState)(),[v,j]=(0,u.useState)(o.defaultConfig.theme);if(t===i.Constants.PageState.Fail){let e=(0,s.getDemoUrl)();return(0,n.jsxs)(l.Space,{direction:"vertical",style:{padding:14},children:[(0,n.jsx)(l.Typography.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,n.jsxs)(l.Typography.Text,{children:["try to use ",(0,n.jsx)(l.Typography.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,n.jsx)(l.Divider,{}),(0,n.jsx)(l.Space,{direction:"vertical",style:{width:"100%"},children:(0,n.jsxs)(l.Typography.Text,{style:{fontSize:16},children:["you can",(0,n.jsxs)(l.Typography.Text,{strong:!0,style:{fontSize:"inherit"},children:[" ","upload a file"," "]}),"in the area below to analyze your project."]})}),(0,n.jsx)(l.Divider,{}),e?(0,n.jsxs)(l.Typography.Text,{style:{fontSize:16},children:["or you can open the"," ",(0,n.jsx)(l.Typography.Text,{strong:!0,style:{fontSize:"inherit"},children:(0,n.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"demo"})})," ","to get started with the Rsdoctor."]}):null]})}return(0,n.jsx)(d.HashRouter,{children:(0,n.jsx)(o.ConfigContext.Provider,{value:{...o.defaultConfig,theme:v,setTheme:e=>{j(e),(0,s.setThemeToStorage)(e)},pageState:t,json:y,viewMode:g,setManifest:x,setPageState:r,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r={...g,...e};m(r),t&&(0,s.setViewModeToStorage)(r)}},children:(0,n.jsx)(o.ConfigContext.Consumer,{children:r=>(0,n.jsx)(l.ConfigProvider,{locale:(0,s.getLocale)(r.locale),theme:{algorithm:v===p.Dark?l.theme.darkAlgorithm:l.theme.defaultAlgorithm},children:(0,n.jsx)(a.Layout,{children:(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(l.Alert,{message:"Warning",description:(0,n.jsx)("a",{href:window.location.href.replace(/https/,"http"),children:`Please jump to\u{FF1A}${window.location.href.replace(/https/,"http")}`}),type:"warning",showIcon:!0,closable:!0}),(0,n.jsx)(c.ErrorBoundary,{FallbackComponent:e=>{let{error:r,resetErrorBoundary:i}=e;return(0,n.jsx)(l.Result,{status:"error",title:"Sorry, something went wrong.",extra:(0,n.jsx)(l.Button,{type:"primary",onClick:i,loading:t===h.Pending,children:"Reload"}),children:(0,n.jsxs)(l.Typography.Paragraph,{children:[(0,n.jsx)(l.Typography.Title,{level:3,children:"Error Stack"}),(0,n.jsx)("pre",{children:r.stack||r.message})]})})},onReset:()=>{window.location.reload()},children:(0,n.jsx)(f.default,{})})]})})})})})})}},712303:function(e,t,r){"use strict";r.r(t);var n=r("766791");r("926791");var i=r("72095"),o=r("741596");r("249912");let a=document.getElementById("root");o.createRoot(a).render((0,n.jsx)(i.default,{}));let s=document.createElement("link");s.setAttribute("type","image/x-icon"),s.setAttribute("rel","icon"),s.setAttribute("href","https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor.png"),document.head.appendChild(s)},221342:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}}),r("561670"),r("633017"),r("547294"),r("634887"),r("623070");var n=r("766791");r("911100");var i=r("127272"),o=r("350802");function a(){let e=[{path:o.BundleSize.route,element:(0,n.jsx)(o.BundleSize.Page,{})},{path:o.LoaderFiles.route,element:(0,n.jsx)(o.LoaderFiles.Page,{})},{path:o.LoaderFiles.route,element:(0,n.jsx)(o.LoaderFiles.Page,{})},{path:o.PluginsAnalyze.route,element:(0,n.jsx)(o.PluginsAnalyze.Page,{})},{path:o.ModuleResolve.route,element:(0,n.jsx)(o.ModuleResolve.Page,{})},{path:o.LoaderTimeline.route,element:(0,n.jsx)(o.LoaderTimeline.Page,{})},{path:o.RuleIndex.route,element:(0,n.jsx)(o.RuleIndex.Page,{})}].filter(e=>!!e);return(0,n.jsxs)(i.Routes,{children:[(0,n.jsx)(i.Route,{path:"/",element:(0,n.jsx)(o.Overall.Page,{})}),(0,n.jsx)(i.Route,{path:o.Overall.route,element:(0,n.jsx)(o.Overall.Page,{})}),e.map(e=>(0,n.jsx)(i.Route,{path:e.path,element:e.element},e.path))]})}},586755:function(e,t,r){},353628:function(e,t,r){},746689:function(e,t,r){},820238:function(e,t,r){},971704:function(e,t,r){},853938:function(e,t,r){},404183:function(e,t,r){},563296:function(e,t,r){},629247:function(e,t,r){},192828:function(e,t,r){},77044:function(e,t,r){},561227:function(e,t,r){},844381:function(e,t,r){},249912:function(e,t,r){},39948:function(e,t,r){},361602:function(e,t,r){}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return i[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=i,a.es=function(e,t){return Object.keys(e).forEach(function(r){"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e},a.p="/",a.u=function(e){return({258:"resource/js/async/258.e0f8722a.js",952:"resource/js/async/952.34ca0751.js"})[e]},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e=[],a.O=function(t,r,n,i){if(r){i=i||0;for(var o=e.length;o>0&&e[o-1][2]>i;o--)e[o]=e[o-1];e[o]=[r,n,i];return}for(var s=1/0,o=0;o<e.length;o++){for(var r=e[o][0],n=e[o][1],i=e[o][2],l=!0,u=0;u<r.length;u++)s>=i&&Object.keys(a.O).every(function(e){return a.O[e](r[u])})?r.splice(u--,1):(l=!1,i<s&&(s=i));if(l){e.splice(o--,1);var c=n();void 0!==c&&(t=c)}}return t},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},a.b=document.baseURI||self.location.href,t={980:0},a.O.j=function(e){return 0===t[e]},r=function(e,r){var n=r[0],i=r[1],o=r[2],s,l,u=0;if(n.some(function(e){return 0!==t[e]})){for(s in i)a.o(i,s)&&(a.m[s]=i[s]);if(o)var c=o(a)}for(e&&e(r);u<n.length;u++)l=n[u],a.o(t,l)&&t[l]&&t[l][0](),t[l]=0;return a.O(c)},(n=self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n));var s=a.O(void 0,["402","222","927"],function(){return a("712303")});a.O(s)}();
150
+ `}},429896:function(e,t,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorRuleClientConstant=t.RuleErrorMap=void 0;let l=a(r("104229")),u=a(r("627827")),c=a(r("81221")),d=a(r("739111"));t.RuleErrorMap={[l.code]:l.message,[u.code]:u.message,[c.code]:c.message,[d.code]:d.message},(n||(t.RsdoctorRuleClientConstant=n={})).UrlQueryForErrorCode="code",s(r("761223"),t)},761223:function(e,t,r){"use strict";var n,i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.RuleMessageCategory=t.RuleMessageCodeEnumerated=void 0,(o=n||(t.RuleMessageCodeEnumerated=n={})).Extend="EXTEND",o.Overlay="OVERLAY",(a=i||(t.RuleMessageCategory=i={})).Compile="compile",a.Bundle="bundle",a.EMO="emo"},525435:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},169344:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("429896"),t),i(r("525435"),t)},262779:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},303237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},227697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},534009:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},841450:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},761095:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("288665"),t),i(r("192568"),t),i(r("25404"),t),i(r("492416"),t),i(r("262779"),t),i(r("805920"),t),i(r("481556"),t),i(r("640656"),t),i(r("227697"),t),i(r("303237"),t),i(r("607130"),t),i(r("118422"),t),i(r("664501"),t),i(r("534009"),t),i(r("61478"),t),i(r("841450"),t)},61478:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},288665:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},492416:function(e,t,r){"use strict";var n,i,o,a,s,l;Object.defineProperty(t,"__esModule",{value:!0}),t.ToDataType=t.ModuleKind=t.DependencyKind=void 0,(a=n||(t.DependencyKind=n={}))[a.Unknown=0]="Unknown",a[a.ImportStatement=1]="ImportStatement",a[a.DynamicImport=2]="DynamicImport",a[a.RequireCall=3]="RequireCall",a[a.AMDRequire=4]="AMDRequire",(s=i||(t.ModuleKind=i={}))[s.Normal=0]="Normal",s[s.Concatenation=1]="Concatenation",(l=o||(t.ToDataType=o={}))[l.Normal=0]="Normal",l[l.Lite=1]="Lite",l[l.LiteAndNoAsset=2]="LiteAndNoAsset",l[l.All=3]="All"},640656:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},25404:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},192568:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},805920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},936329:function(e,t,r){"use strict";var n,i,o,a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.APIExtends=t.API=void 0,s(r("61531"),t),(n=i||(t.API=i={})).ApplyErrorFix="/api/apply/error/fix",n.Env="/api/env",n.EntryHtml="/index.html",n.Manifest="/api/manifest.json",n.LoadDataByKey="/api/data/key",n.SendAPIDataToClient="/api/socket/send",n.GetProjectInfo="/api/project/info",n.GetClientRoutes="/api/routes",n.ReportLoader="/api/loader/report",n.GetLoaderNames="/api/loader/names",n.GetLoaderChartData="/api/loader/chart/data",n.GetLoaderFileTree="/api/loader/filetree",n.GetLoaderFileDetails="/api/loader/file",n.GetLoaderFolderStatistics="/api/loader/folder/statics",n.GetLoaderFileFirstInput="/api/loader/input",n.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",n.ReportSourceMap="/api/sourcemap/report",n.GetResolverFileTree="/api/resolver/filetree",n.GetResolverFileDetails="/api/resolver/file",n.GetPluginSummary="/api/plugins/summary",n.GetPluginData="/api/plugins/data",n.GetAssetsSummary="/api/graph/assets/summary",n.GetAssetDetails="/api/graph/asset/details",n.GetChunksByModuleId="/api/graph/chunk/module",n.GetModuleDetails="/api/graph/module/details",n.GetModulesByModuleIds="/api/graph/modules/ids",n.GetEntryPoints="/api/graph/entrypoints",n.GetModuleCodeByModuleId="/api/graph/module/code",n.GetModuleCodeByModuleIds="/api/graph/module/codes",n.GetAllModuleGraph="/api/graph/module/all",n.GetAllChunkGraph="/api/graph/chunk/all",n.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",n.GetOverlayAlerts="/api/alerts/overlay",n.BundleDiffManifest="/api/bundle_diff/manifest.json",n.GetBundleDiffSummary="/api/bundle_diff/summary",n.GetTileReportHtml="/api/tile/report",(o||(t.APIExtends=o={})).GetCompileProgess="/api/progress"},61531:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},607130:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ServerAPI=void 0,t.ServerAPI=o(r("936329"))},118422:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.StatementKind=void 0,(i=n||(t.StatementKind=n={}))[i.ImportDefault=100]="ImportDefault",i[i.ImportNamed=101]="ImportNamed",i[i.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",i[i.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",i[i.ImportNamespace=104]="ImportNamespace",i[i.ImportSideEffect=105]="ImportSideEffect",i[i.ImportDynamic=106]="ImportDynamic",i[i.ExportDeclaration=200]="ExportDeclaration",i[i.ExportList=201]="ExportList",i[i.ExportDefault=202]="ExportDefault",i[i.ExportAggregating=203]="ExportAggregating",i[i.ExportNamespace=204]="ExportNamespace",i[i.RequireCall=300]="RequireCall",i[i.RequireName=301]="RequireName",i[i.RequireExports=302]="RequireExports",i[i.RequireExportAggregating=303]="RequireExportAggregating",i[i.RequireExportName=304]="RequireExportName",i[i.Unknown=999]="Unknown"},481556:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},664501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3118:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},100122:function(e,t,r){"use strict";r.r(t),r.d(t,{getPackageRelationAlertDetails:function(){return i}});var n=r("918300");function i(e,t,r,i,o){return i.slice().reverse().map(i=>{let a=t.find(e=>e.id===i.dependencyId);if(!a)return null;let s=e.find(e=>e.id===a.module);return s?{group:i.group,module:s,dependency:a,relativePath:(0,n.relative)(r,s.path),moduleCode:o?.[s.id]}:null}).filter(Boolean)}},288599:function(e,t,r){"use strict";r.r(t),r.d(t,{decompressText:function(){return a},mergeIntervals:function(){return o}});var n=r("459116"),i=r("139528");function o(e){let t,r;e.sort((e,t)=>e[0]-t[0]);let n=[];for(let i=0;i<e.length;i++)r=e[i],!t||r[0]>t[1]?(t=r,n.push(r)):t[1]=Math.max(t[1],r[1]);return n}function a(e){return(0,n.inflateSync)(i.Buffer.from(e,"base64")).toString()}},822598:function(e,t,r){"use strict";r.r(t),r("889702")},66843:function(e,t,r){"use strict";r.r(t),r.d(t,{APIDataLoader:function(){return u}});var n=r("889702"),i=r("261768"),o=r("775773"),a=r("529599"),s=r("188854"),l=r("100122");class u{constructor(e){this.loader=e,this.loadAPI=this.loadAPI.bind(this)}log(...e){console.log(`[${this.constructor.name}]`,...e)}loadAPI(...e){let[t,r]=e;switch(t){case n.SDK.ServerAPI.API.LoadDataByKey:return this.loader.loadData(r.key);case n.SDK.ServerAPI.API.GetProjectInfo:return Promise.all([this.loader.loadData("root"),this.loader.loadData("pid"),this.loader.loadData("hash"),this.loader.loadData("summary"),this.loader.loadData("configs"),this.loader.loadData("envinfo"),this.loader.loadData("errors")]).then(([e,t,r,n,i,o,a])=>({root:e,pid:t,hash:r,summary:n,configs:i,envinfo:o,errors:a}));case n.SDK.ServerAPI.API.GetClientRoutes:return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t});case n.SDK.ServerAPI.API.GetLoaderNames:return this.loader.loadData("loader").then(e=>i.getLoaderNames(e||[]));case n.SDK.ServerAPI.API.GetLoaderChartData:return this.loader.loadData("loader").then(e=>i.getLoaderChartData(e||[]));case n.SDK.ServerAPI.API.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>i.getLoaderFileTree(e||[]));case n.SDK.ServerAPI.API.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>i.getLoaderFileDetails(r.path,e||[]));case n.SDK.ServerAPI.API.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>i.getLoaderFolderStatistics(r.folder,e||[]));case n.SDK.ServerAPI.API.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>i.getLoaderFileFirstInput(r.file,e||[]));case n.SDK.ServerAPI.API.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>i.getLoaderFileFirstInput(r.file,e||[]));case n.SDK.ServerAPI.API.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>o.getResolverFileTree(e||[]));case n.SDK.ServerAPI.API.GetResolverFileDetails:return Promise.all([this.loader.loadData("resolver"),this.loader.loadData("moduleGraph.modules"),this.loader.loadData("moduleCodeMap")]).then(e=>{let t=e[0],n=e[1],i=e[2];return o.getResolverFileDetails(r.filepath,t||[],n||[],i||{})});case n.SDK.ServerAPI.API.GetPluginSummary:return this.loader.loadData("plugin").then(e=>a.getPluginSummary(e||{}));case n.SDK.ServerAPI.API.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:n}=r;return a.getPluginData(e||{},t,n)});case n.SDK.ServerAPI.API.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=r,{assets:n=[],chunks:i=[]}=e||{};return s.getAssetsSummary(n,i,{withFileContent:t})});case n.SDK.ServerAPI.API.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{assetPath:t}=r,{assets:n=[],chunks:i=[]}=e[0]||{},{modules:o=[]}=e[1]||{};return s.getAssetDetails(t,n,i,o)});case n.SDK.ServerAPI.API.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=r,{chunks:n=[]}=e[0]||{},{modules:i=[]}=e[1]||{};return s.getChunksByModuleId(t,i,n)});case n.SDK.ServerAPI.API.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=r,{modules:n=[],dependencies:i=[]}=e[1]||{};return s.getModuleDetails(t,n,i)});case n.SDK.ServerAPI.API.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=r,{modules:n=[]}=e||{};return s.getModuleIdsByModulesIds(t,n)});case n.SDK.ServerAPI.API.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:r=[]}=t||{};return s.getEntryPoints(r)});case n.SDK.ServerAPI.API.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=r;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case n.SDK.ServerAPI.API.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=r,n={};return e?(t.forEach(t=>{n[t]=e[t]}),n):[]});case n.SDK.ServerAPI.API.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>e?.modules);case n.SDK.ServerAPI.API.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>e?.chunks);case n.SDK.ServerAPI.API.GetPackageRelationAlertDetails:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("errors"),this.loader.loadData("root"),this.loader.loadData("moduleCodeMap")]).then(e=>{let{id:t,target:n}=r,[i,o=[],a="",s]=e,{modules:u=[],dependencies:c=[]}=i||{},{packages:d=[]}=o.find(e=>e.id===t)||{},{dependencies:f=[]}=d.find(e=>e.target.name===n.name&&e.target.root===n.root&&e.target.version===n.version)||{};return l.getPackageRelationAlertDetails(u,c,a,f,s||{})});case n.SDK.ServerAPI.API.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===n.Rule.RuleMessageCodeEnumerated.Overlay));case n.SDK.ServerAPI.API.BundleDiffManifest:return this.loader.loadManifest();case n.SDK.ServerAPI.API.GetBundleDiffSummary:return Promise.all([this.loader.loadManifest(),this.loader.loadData("root"),this.loader.loadData("hash"),this.loader.loadData("errors"),this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("moduleCodeMap"),this.loader.loadData("packageGraph"),this.loader.loadData("configs")]).then(([e,t="",r="",n={},i={},o={},a={},s={},l=[]])=>{let u="";return"string"==typeof l[0].config?.output?.chunkFilename&&(u=l[0].config.output.chunkFilename),{root:t,hash:r,errors:n,chunkGraph:i,moduleGraph:o,packageGraph:s,outputFilename:u,moduleCodeMap:a}});case n.SDK.ServerAPI.API.GetTileReportHtml:return this.loader.loadData("otherReports").then(e=>e?.tileReportHtml);default:throw Error(`API not implement: "${t}"`)}}}},346393:function(e,t,r){"use strict";r.r(t),r.d(t,{getAssetDetails:function(){return h},getAssetsSummary:function(){return f}});var n=r("889702"),i=r("972922"),o=r("116580");function a(e,t){return e.path.slice(-t.length)===t}function s(e,t){return!!t.length&&t.some(t=>a(e,t))}RegExp(`(.*)${/[-|.]/.source}${/[a-z|A-Z|0-9]{4,32}/.source}(${/(?:\.[a-z|A-Z|0-9]{2,}){1,}/.source})$`);function l(e,t){if(t){if("function"==typeof t)e=e.filter(t);else{var r,n;r=e,e="string"==typeof(n=t)?r.filter(e=>a(e,n)):Array.isArray(n)?r.filter(e=>s(e,n)):[]}}return e}function u(e,t,r={}){let{withFileContent:i=!0,filterOrExtensions:o}=r;return(e=e.filter(e=>!s(e,n.Constants.MapExtensions)),o&&(e=l(e,o)),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,initial:c(e,t),content:i?e.content:void 0}))}:{count:0,size:0,files:[]}}function c(e,t){return(0,i.getChunksByAsset)(e,t).some(e=>!!e.initial)}function d(e,t,r={}){return r.filterOrExtensions&&(e=l(e,r.filterOrExtensions)),u(e,t,{...r,filterOrExtensions:e=>c(e,t)})}function f(e,t,r={}){let i={...r,filterOrExtensions:n.Constants.JSExtension},o={...r,filterOrExtensions:n.Constants.CSSExtension},a={...r,filterOrExtensions:n.Constants.ImgExtensions},l={...r,filterOrExtensions:n.Constants.HtmlExtension},c={...r,filterOrExtensions:n.Constants.MediaExtensions},f={...r,filterOrExtensions:n.Constants.FontExtensions},h={...r,filterOrExtensions:e=>!s(e,[n.Constants.JSExtension,n.Constants.CSSExtension,n.Constants.HtmlExtension].concat(n.Constants.ImgExtensions,n.Constants.MediaExtensions,n.Constants.FontExtensions,n.Constants.MapExtensions))};return{all:{total:u(e,t,r)},js:{total:u(e,t,i),initial:d(e,t,i)},css:{total:u(e,t,o),initial:d(e,t,o)},imgs:{total:u(e,t,a)},html:{total:u(e,t,l)},media:{total:u(e,t,c)},fonts:{total:u(e,t,f)},others:{total:u(e,t,h)}}}function h(e,t,r,n){let a=t.find(t=>t.path===e);return{asset:a,chunks:(0,i.getChunksByAsset)(a,r),modules:(0,o.getModulesByAsset)(a,r,n)}}},972922:function(e,t,r){"use strict";function n(e){return e.chunks?e.chunks:[]}r.r(t),r.d(t,{getChunkIdsByAsset:function(){return n},getChunksByAsset:function(){return o},getChunksByChunkIds:function(){return i},getChunksByModuleId:function(){return a}});function i(e,t){return e.length?e.map(e=>{var r;return r=e,t.find(e=>e.id===r)}).filter(Boolean):[]}function o(e,t){return i(n(e),t)}function a(e,t,r){var n,o;let a=t.find(t=>t.id===e);if(!a)return[];return n=a,o=r,n.chunks.length?i(n.chunks,o):[]}},498289:function(e,t,r){"use strict";function n(e,t){return e.dependencies.map(e=>t.find(t=>t.id===e)).filter(Boolean)}r.r(t),r.d(t,{getDependenciesByModule:function(){return n}})},236009:function(e,t,r){"use strict";function n(e){return e}r.r(t),r.d(t,{getEntryPoints:function(){return n}})},188854:function(e,t,r){"use strict";r.r(t);var n=r("346393");r.es(n,t);var i=r("972922");r.es(i,t);var o=r("116580");r.es(o,t);var a=r("498289");r.es(a,t);var s=r("236009");r.es(s,t)},116580:function(e,t,r){"use strict";r.r(t),r.d(t,{getModuleDetails:function(){return s},getModuleIdsByModulesIds:function(){return a},getModulesByAsset:function(){return o}});var n=r("972922"),i=r("498289");function o(e,t,r){let i=(0,n.getChunkIdsByAsset)(e);return function(e,t){let r=[];return e.forEach(e=>{var n,i;(n=e,i=t,(function(e){let{modules:t=[]}=e;return t})(n).map(e=>i.find(t=>t.id===e)).filter(Boolean)).forEach(e=>{!r.filter(t=>t.id===e.id).length&&r.push(e)})}),r}((0,n.getChunksByChunkIds)(i,t),r)}function a(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function s(e,t,r){let n=t.find(t=>t.id===e);return{module:n,dependencies:(0,i.getDependenciesByModule)(n,r)}}},534851:function(e,t,r){"use strict";r.r(t),r.d(t,{Data:function(){return u},Loader:function(){return o},Manifest:function(){return i},Resolver:function(){return s},Summary:function(){return n},Time:function(){return a},Url:function(){return l}});var n=r("393243"),i=r("311521"),o=r("261768"),a=r("287982");r("288599");var s=r("775773");r("188854"),r("822598");var l=r("209917");r("529599");var u=r("66843");r("100122"),r("912311"),r("357798")},261768:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderInternalPropertyName:function(){return g},findLoaderTotalTiming:function(){return i},getLoaderChartData:function(){return u},getLoaderCosts:function(){return a},getLoaderFileDetails:function(){return d},getLoaderFileFirstInput:function(){return h},getLoaderFileInputAndOutput:function(){return p},getLoaderFileTree:function(){return c},getLoaderFolderStatistics:function(){return f},getLoaderNames:function(){return s},getLoadersCosts:function(){return o},getLoadersTransformData:function(){return l}});var n=r("288599");function i(e){let t=1/0,r=-1/0;for(let n=0;n<e.length;n++){let i=e[n];i.startAt<=t&&(t=i.startAt),i.endAt>=r&&(r=i.endAt)}return{start:t,end:r}}function o(e,t){let r={},i={};t.forEach(t=>{e(t)?(!r[t.pid]&&(r[t.pid]=[]),r[t.pid].push([t.startAt,t.endAt])):(!i[t.pid]&&(i[t.pid]=[]),i[t.pid].push([t.startAt,t.endAt]))});let o=0,a=Object.keys(r);for(let e=0;e<a.length;e++){let t=a[e],s=(0,n.mergeIntervals)(r[t]),l=(0,n.mergeIntervals)(i[t]||[]).filter(([e,t])=>s.some(r=>e>=r[0]&&t<=r[1])),u=s.length?s.reduce((e,t)=>e+=t[1]-t[0],0):0;o+=u-(l.length?l.reduce((e,t)=>e+=t[1]-t[0],0):0)}return o}function a(e,t){let r=t.filter(t=>t!==e&&t.pid===e.pid&&!!(t.startAt>=e.startAt)&&!!(t.endAt<=e.endAt)||!1),i=e.endAt-e.startAt;if(r.length){let t=r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)]);(0,n.mergeIntervals)(t).forEach(e=>{let t=e[1]-e[0];i-=t})}return i}function s(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(e.loader))),[...t]}function l(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(let e=0;e<n.loaders.length;e++){let r=n.loaders[e];t.push(r)}}return t}function u(e){let t=[],r=l(e);return e.forEach(e=>{e.loaders.forEach(n=>{t.push({loader:n.loader,isPitch:n.isPitch,startAt:n.startAt,endAt:n.endAt,pid:n.pid,sync:n.sync,resource:e.resource.path,costs:a(n,r)})})}),t}function c(e){let t=l(e);return e.map(e=>{let{loaders:r,resource:n}=e;return{path:n.path,loaders:r.map(e=>({loader:e.loader,path:e.path,errors:e.errors,costs:a(e,t)}))}})}function d(e,t){let r=t.find(t=>t.resource.path===e);if(!r)throw Error(`"${e}" not match any loader data`);let n=l(t);return{...r,loaders:r.loaders.map(e=>({...e,costs:a(e,n)}))}}function f(e,t){let r=t.filter(t=>{let{path:r}=t.resource;return r.startsWith(e)}),n=l(t);return r.reduce((e,t)=>{let{loaders:r}=t;return r.forEach(t=>{let r=e.find(e=>e.loader===t.loader),i=a(t,n);r?(r.files++,r.costs+=i):e.push({loader:t.loader,path:t.path,files:1,costs:i})}),e},[])}function h(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.resource.path===e){let e=n.loaders.filter(e=>!e.isPitch);if(!e.length)return"";return e[0].input||""}}return""}function p(e,t,r,n){for(let i=0;i<n.length;i++){let o=n[i];if(o.resource.path===e)for(let e=0;e<o.loaders.length;e++){let n=o.loaders[e];if(n.loader===t&&n.loaderIndex===r)return{input:n.input||"",output:n.result||""};return{input:"",output:""}}}return{input:"",output:""}}let g="__l__"},311521:function(e,t,r){"use strict";r.r(t),r.d(t,{fetchShardingData:function(){return a},isShardingData:function(){return o}});var n=r("288599"),i=r("209917");function o(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>(0,i.isRemoteUrl)(e)))||!1}async function a(e,t){let r=await Promise.all(e.map(e=>t(e))),i=0===r.length?[]:r.reduce((e,t)=>e+t);return"object"==typeof i?i:JSON.parse((0,n.decompressText)(i))}},357798:function(e,t,r){"use strict";r.r(t),r("13275");let n=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/;RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${n.source}[/|+])?(?:${n.source}\\+)*(?:${n.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${n.source}[/|+])?(?:${n.source})(?:@${n.source})?)*/`,"g")},529599:function(e,t,r){"use strict";function n(e){return Object.keys(e)}function i(e){let t=n(e),r=new Set;return t.forEach(t=>{e[t].forEach(e=>{r.add(e.tapName)})}),[...r]}function o(e){return{hooks:n(e),tapNames:i(e)}}function a(e,t=[],r=[]){let o=n(e).filter(e=>(!t.length||-1!==t.indexOf(e))&&!0);return o.length?i(e).reduce((t,n)=>r.length&&-1===r.indexOf(n)?t:(o.forEach(r=>{let i=e[r].filter(e=>e.tapName===n);0!==i.length&&t.push({tapName:n,hook:r,data:i.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}r.r(t),r.d(t,{getPluginData:function(){return a},getPluginSummary:function(){return o}})},775773:function(e,t,r){"use strict";r.r(t),r.d(t,{getResolverFileDetails:function(){return a},getResolverFileTree:function(){return o},isResolveSuccessData:function(){return i}});var n=r("288599");function i(e){return!!e.result}function o(e){return e.map(e=>({issuerPath:e.issuerPath}))}function a(e,t,r,o){let a=r.find(t=>t.path===e),s=t.filter(t=>t.issuerPath===e),l=a&&o&&o[a.id]?o[a.id].source:"",u=s.reduce((e,t)=>t.request&&i(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,l);return{filepath:e,before:l,after:u,resolvers:s.map(e=>({...e,costs:function(e,t){let r=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),i=e.endAt-e.startAt;if(r.length){let t=r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)]);(0,n.mergeIntervals)(t).forEach(e=>{let t=e[1]-e[0];i-=t})}return i}(e,t)}))}}},912311:function(e,t,r){"use strict";r.r(t);var n,i=((n=i||{}).Bootstrap="bootstrap->rspack:beforeCompile",n.Compile="rspack:beforeCompile->afterCompile",n.Done="rspack:afterCompile->done",n.Minify="rspack:minify(rspack:optimizeChunkAssets)",n)},393243:function(e,t,r){"use strict";r.r(t),r.d(t,{SummaryCostsDataName:function(){return i}});var n,i=((n=i||{}).Bootstrap="bootstrap->beforeCompile",n.Compile="beforeCompile->afterCompile",n.Done="afterCompile->done",n.Minify="minify(webpack4:optimizeChunkAssets|webpack5:processAssets|rspack:processAssets)",n)},287982:function(e,t,r){"use strict";r.r(t),r.d(t,{formatCosts:function(){return s},getCurrentTimestamp:function(){return l},getUnit:function(){return a},toFixedDigits:function(){return o}});var n=r("980389"),i=r("980389");function o(e,t=2){return 0===t?Math.floor(e):+e.toFixed(t)}function a(e,t){let r;return r="m"===t?e>1?"mins":"min":e>1?"hours":"hour"}function s(e){if((e=Number(e))>=1e3){let t=e/1e3;if(t>=60){let e=t/60;if(e>=60){let t=o(e/60,0),r=o(e%60,1),n=a(t,"h");return r>0?`${t}${n} ${r}${a(r,"m")}`:`${t}${n}`}let r=a(e=o(e,0),"m"),n=o(t%60,0);return n>0?`${e}${r} ${n}s`:`${e}${r}`}return`${o(t,1)}s`}if(e>=10)return`${+o(e,0)}ms`;if(e>=1)return`${+o(e,1)}ms`;let t=+o(e,2);return 0===t&&(t=+o(e,3)),`${t}ms`}function l(e,t){let r=(0,n.hrtime)(t);return e+1e3*r[0]+(i.env.VITEST?Math.round(r[1]/1e6):r[1]/1e6)}},209917:function(e,t,r){"use strict";r.r(t),r.d(t,{isRemoteUrl:function(){return o},isUrl:function(){return i}});var n=r("918300");function i(e){return/^https?:\/\//.test(e)}function o(e){if("string"==typeof e){var t;if(i(e)||(t=e,(0,n.isAbsolute)(t)))return!0}return!1}},696480:function(e,t,r){"use strict";r.r(t),r("755993"),r("13275")},361515:function(e,t,r){"use strict";r.r(t);var n=r("696480");r.es(n,t);var i=r("852900");r.es(i,t)},852900:function(e,t,r){"use strict";r.r(t),r("696480")},226035:function(e,t,r){"use strict";r.r(t);var n=r("361515");r.es(n,t);var i=r("835040");r.es(i,t)},993925:function(e,t,r){"use strict";r.r(t),r.d(t,{asserts:function(){return a}});var n=r("13275");function i(e){return(0,n.isObject)(e)&&"type"in e}function o(e){return t=>i(t)&&t.type===e}let a={isProgram:o("Program"),isEmptyStatement:o("EmptyStatement"),isBlockStatement:o("BlockStatement"),isStaticBlock:o("StaticBlock"),isExpressionStatement:o("ExpressionStatement"),isIfStatement:o("IfStatement"),isLabeledStatement:o("LabeledStatement"),isBreakStatement:o("BreakStatement"),isContinueStatement:o("ContinueStatement"),isWithStatement:o("WithStatement"),isSwitchStatement:o("SwitchStatement"),isReturnStatement:o("ReturnStatement"),isThrowStatement:o("ThrowStatement"),isTryStatement:o("TryStatement"),isWhileStatement:o("WhileStatement"),isDoWhileStatement:o("DoWhileStatement"),isForStatement:o("ForStatement"),isForInStatement:o("ForInStatement"),isForOfStatement:o("ForOfStatement"),isDebuggerStatement:o("DebuggerStatement"),isFunctionDeclaration:o("FunctionDeclaration"),isVariableDeclaration:o("VariableDeclaration"),isVariableDeclarator:o("VariableDeclarator"),isChainExpression:o("ChainExpression"),isThisExpression:o("ThisExpression"),isArrayExpression:o("ArrayExpression"),isObjectExpression:o("ObjectExpression"),isPrivateIdentifier:o("PrivateIdentifier"),isProperty:o("Property"),isPropertyDefinition:o("PropertyDefinition"),isFunctionExpression:o("FunctionExpression"),isSequenceExpression:o("SequenceExpression"),isUnaryExpression:o("UnaryExpression"),isBinaryExpression:o("BinaryExpression"),isAssignmentExpression:o("AssignmentExpression"),isUpdateExpression:o("UpdateExpression"),isLogicalExpression:o("LogicalExpression"),isConditionalExpression:o("ConditionalExpression"),isNewExpression:o("NewExpression"),isSwitchCase:o("SwitchCase"),isCatchClause:o("CatchClause"),isIdentifier:o("Identifier"),isLiteral:o("Literal"),isSuper:o("Super"),isSpreadElement:o("SpreadElement"),isArrowFunctionExpression:o("ArrowFunctionExpression"),isYieldExpression:o("YieldExpression"),isTemplateLiteral:o("TemplateLiteral"),isTaggedTemplateExpression:o("TaggedTemplateExpression"),isTemplateElement:o("TemplateElement"),isObjectPattern:o("ObjectPattern"),isArrayPattern:o("ArrayPattern"),isRestElement:o("RestElement"),isAssignmentPattern:o("AssignmentPattern"),isClassBody:o("ClassBody"),isClassDeclaration:o("ClassDeclaration"),isClassExpression:o("ClassExpression"),isMetaProperty:o("MetaProperty"),isImportDeclaration:o("ImportDeclaration"),isImportSpecifier:o("ImportSpecifier"),isImportExpression:o("ImportExpression"),isImportDefaultSpecifier:o("ImportDefaultSpecifier"),isImportNamespaceSpecifier:o("ImportNamespaceSpecifier"),isExportNamedDeclaration:o("ExportNamedDeclaration"),isExportSpecifier:o("ExportSpecifier"),isExportDefaultDeclaration:o("ExportDefaultDeclaration"),isExportAllDeclaration:o("ExportAllDeclaration"),isAwaitExpression:o("AwaitExpression"),isMethodDefinition:o("MethodDefinition"),isMemberExpression:o("MemberExpression"),isComment:e=>i(e)&&("Line"===e.type||"Block"===e.type),isDirective:e=>a.isExpressionStatement(e)&&"directive"in e,isSimpleCallExpression:e=>i(e)&&"CallExpression"===e.type,isAssignmentProperty:e=>a.isProperty(e)&&"init"===e.kind,isSimpleLiteral:e=>a.isLiteral(e)&&!a.isRegExpLiteral(e)&&!a.isBigIntLiteral(e),isRegExpLiteral:e=>a.isLiteral(e)&&"regex"in e,isBigIntLiteral:e=>a.isLiteral(e)&&"bigint"in e,isExportStatement:e=>a.isExportAllDeclaration(e)||a.isExportDefaultDeclaration(e)||a.isExportNamedDeclaration(e)}},835040:function(e,t,r){"use strict";r.r(t);var n=r("993925");r.es(n,t);var i=r("416578");r.es(i,t);var o=r("48478");r.es(o,t);var a=r("289196");r.es(a,t)},416578:function(e,t,r){"use strict";r.r(t);var n=r("625020"),i=r("837208");r("908035");var o=r("993925");r("48478"),n.Parser.extend(i.importAssertions);let a=n.Parser.extend(i.importAssertions);(e,t)=>a.parse(e,t),o.asserts},289196:function(e,t,r){"use strict";r.r(t),r.d(t,{ECMAVersion:function(){return i}});var n,i=((n=i||{}).ES5="ES5",n.ES6="ES6",n.ES7P="ES7+",n)},48478:function(e,t,r){"use strict";r.r(t),r.d(t,{canParse:function(){return d},detectECMAVersion:function(){return p},getDefaultImports:function(){return a},getIdentifierInDeclaration:function(){return l},getIdentifierInExport:function(){return c},getIdentifierInImport:function(){return u},getIdentifierInPattern:function(){return s},isES5:function(){return f},isES6:function(){return h},isSameSemantics:function(){return function e(t,r){if(t.type!==r.type)return!1;switch(t.type){case"CallExpression":return t.arguments.length===r.arguments.length&&!!t.optional==!!r.optional&&e(t.callee,r.callee)&&t.arguments.every((t,n)=>e(t,r.arguments[n]));case"MemberExpression":return t.computed===r.computed&&!!t.optional==!!r.optional&&e(t.object,r.object)&&e(t.property,r.property);case"Identifier":return t.name===r.name;case"Literal":if(o.asserts.isSimpleLiteral(t)&&o.asserts.isSimpleLiteral(r))return t.value===r.value;return t.raw===r.raw;case"ObjectExpression":return t.properties.length===r.properties.length&&t.properties.every((t,n)=>e(t,r.properties[n]));case"Property":return t.computed===r.computed&&t.kind===r.kind&&t.method===r.method&&e(t.key,r.key)&&e(t.value,r.value);default:throw Error(`Unknown node type: ${t.type}`)}}}});var n=r("625020"),i=r("289196"),o=r("993925");function a(e){return e.body.filter(e=>{if("ImportDeclaration"!==e.type)return!1;let t=e?.specifiers?.[0];return t?.type==="ImportDefaultSpecifier"||!1})}function s(e,t){if(o.asserts.isIdentifier(t)&&t.name===e)return t;if(o.asserts.isObjectPattern(t))for(let r of t.properties){if(o.asserts.isAssignmentProperty(r))return s(e,r.value);if(o.asserts.isRestElement(r))return s(e,r)}if(o.asserts.isArrayPattern(t)){for(let r of t.elements)if(r){let t=s(e,r);if(t)return t}}return o.asserts.isRestElement(t)?s(e,t.argument):o.asserts.isAssignmentPattern(t)?s(e,t.left):void 0}function l(e,t){function r(t){return o.asserts.isIdentifier(t.id)&&t.id.name===e?t.id:void 0}return o.asserts.isFunctionDeclaration(t)||o.asserts.isClassDeclaration(t)?r(t):o.asserts.isVariableDeclaration(t)?t.declarations.find(t=>s(e,t.id))?.id:void 0}function u(e,t){if(o.asserts.isImportDeclaration(t)){for(let r of t.specifiers??[])if(r.local.name===e)return r.local}}function c(e,t){if(o.asserts.isExportNamedDeclaration(t)){if(t.declaration)return l(e,t.declaration);for(let r of t.specifiers??[])if(r.exported.name===e)return r.exported}if(o.asserts.isExportAllDeclaration(t)&&t.exported&&t.exported.name===e)return t.exported}function d(e,t){try{return(0,n.parse)(e,{ecmaVersion:t,sourceType:"number"==typeof t&&t<=5?"script":"module"}),!0}catch(e){return!1}}function f(e){return d(e,5)}function h(e){return d(e,6)}function p(e){if(h(e))return f(e)?i.ECMAVersion.ES5:i.ECMAVersion.ES6;return i.ECMAVersion.ES7P}},521964:function(e,t,r){"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik01IDI0TDQzIDI0IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTI4IDRIMjBDMTguODk1NCA0IDE4IDQuODk1NDMgMTggNlYxNEMxOCAxNS4xMDQ2IDE4Ljg5NTQgMTYgMjAgMTZIMjhDMjkuMTA0NiAxNiAzMCAxNS4xMDQ2IDMwIDE0VjZDMzAgNC44OTU0MyAyOS4xMDQ2IDQgMjggNFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzMyIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTE2IDMySDhDNi44OTU0MyAzMiA2IDMyLjg5NTQgNiAzNFY0MkM2IDQzLjEwNDYgNi44OTU0MyA0NCA4IDQ0SDE2QzE3LjEwNDYgNDQgMTggNDMuMTA0NiAxOCA0MlYzNEMxOCAzMi44OTU0IDE3LjEwNDYgMzIgMTYgMzJaIiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik00MCAzMkgzMkMzMC44OTU0IDMyIDMwIDMyLjg5NTQgMzAgMzRWNDJDMzAgNDMuMTA0NiAzMC44OTU0IDQ0IDMyIDQ0SDQwQzQxLjEwNDYgNDQgNDIgNDMuMTA0NiA0MiA0MlYzNEM0MiAzMi44OTU0IDQxLjEwNDYgMzIgNDAgMzJaIiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0yNCAyNFYxNiIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0zNiAzMlYyNCIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0xMiAzMlYyNCIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg=="},131988:function(e,t,r){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTIwMCAxMjAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im02MDAgMCA1MzAuMyAzMDB2NjAwbC01MzAuMyAzMDAtNTMwLjMtMzAwdi02MDB6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0ibTEwMzUuNiA4NzkuMy00MTguMSAyMzYuNXYtMTg0LjJsMjYwLjUtMTQzLjN6bTI4LjYtMjUuOXYtNDk0LjZsLTE1MyA4OC4zdjMxNy45em0tOTAxLjUgMjUuOSA0MTguMSAyMzYuNXYtMTg0LjJsLTI2MC41LTE0My4zem0tMjguNi0yNS45di00OTQuNmwxNTMgODguM3YzMTcuOXptMTcuOS01MjYuNiA0MjguOC0yNDIuNnYxNzguMWwtMjc0LjcgMTUxLjEtMi4xIDEuMnptODk0LjMgMC00MjguOC0yNDIuNnYxNzguMWwyNzQuNyAxNTEuMSAyLjEgMS4yeiIgZmlsbD0iIzhlZDZmYiIvPjxwYXRoIGQ9Im01ODAuOCA4ODkuNy0yNTctMTQxLjN2LTI4MGwyNTcgMTQ4LjR6bTM2LjcgMCAyNTctMTQxLjN2LTI4MGwtMjU3IDE0OC40em0tMjc2LjMtNDUzLjcgMjU4LTE0MS45IDI1OCAxNDEuOS0yNTggMTQ5eiIgZmlsbD0iIzFjNzhjMCIvPjwvc3ZnPg=="},72095:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return g}});var n=r("766791"),i=r("435067"),o=r("136795"),a=r("415191"),s=r("373262"),l=r("875814"),u=r("911100"),c=r("578392"),d=r("127272"),f=r("221342");let{PageState:h,Theme:p}=i.Constants;var g=()=>{let e=(0,s.useDetectIfCloudIdeEnv)(),[t,r]=(0,u.useState)(h.Success),[g,m]=(0,u.useState)({...o.defaultConfig.viewMode}),[y,x]=(0,u.useState)(),[v,j]=(0,u.useState)(o.defaultConfig.theme);if(t===i.Constants.PageState.Fail){let e=(0,s.getDemoUrl)();return(0,n.jsxs)(l.Space,{direction:"vertical",style:{padding:14},children:[(0,n.jsx)(l.Typography.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,n.jsxs)(l.Typography.Text,{children:["try to use ",(0,n.jsx)(l.Typography.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,n.jsx)(l.Divider,{}),(0,n.jsx)(l.Space,{direction:"vertical",style:{width:"100%"},children:(0,n.jsxs)(l.Typography.Text,{style:{fontSize:16},children:["you can",(0,n.jsxs)(l.Typography.Text,{strong:!0,style:{fontSize:"inherit"},children:[" ","upload a file"," "]}),"in the area below to analyze your project."]})}),(0,n.jsx)(l.Divider,{}),e?(0,n.jsxs)(l.Typography.Text,{style:{fontSize:16},children:["or you can open the"," ",(0,n.jsx)(l.Typography.Text,{strong:!0,style:{fontSize:"inherit"},children:(0,n.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"demo"})})," ","to get started with the Rsdoctor."]}):null]})}return(0,n.jsx)(d.HashRouter,{children:(0,n.jsx)(o.ConfigContext.Provider,{value:{...o.defaultConfig,theme:v,setTheme:e=>{j(e),(0,s.setThemeToStorage)(e)},pageState:t,json:y,viewMode:g,setManifest:x,setPageState:r,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r={...g,...e};m(r),t&&(0,s.setViewModeToStorage)(r)}},children:(0,n.jsx)(o.ConfigContext.Consumer,{children:r=>(0,n.jsx)(l.ConfigProvider,{locale:(0,s.getLocale)(r.locale),theme:{algorithm:v===p.Dark?l.theme.darkAlgorithm:l.theme.defaultAlgorithm},children:(0,n.jsx)(a.Layout,{children:(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(l.Alert,{message:"Warning",description:(0,n.jsx)("a",{href:window.location.href.replace(/https/,"http"),children:`Please jump to\u{FF1A}${window.location.href.replace(/https/,"http")}`}),type:"warning",showIcon:!0,closable:!0}),(0,n.jsx)(c.ErrorBoundary,{FallbackComponent:e=>{let{error:r,resetErrorBoundary:i}=e;return(0,n.jsx)(l.Result,{status:"error",title:"Sorry, something went wrong.",extra:(0,n.jsx)(l.Button,{type:"primary",onClick:i,loading:t===h.Pending,children:"Reload"}),children:(0,n.jsxs)(l.Typography.Paragraph,{children:[(0,n.jsx)(l.Typography.Title,{level:3,children:"Error Stack"}),(0,n.jsx)("pre",{children:r.stack||r.message})]})})},onReset:()=>{window.location.reload()},children:(0,n.jsx)(f.default,{})})]})})})})})})}},712303:function(e,t,r){"use strict";r.r(t);var n=r("766791");r("926791");var i=r("72095"),o=r("741596");r("249912");let a=document.getElementById("root");o.createRoot(a).render((0,n.jsx)(i.default,{}));let s=document.createElement("link");s.setAttribute("type","image/x-icon"),s.setAttribute("rel","icon"),s.setAttribute("href","https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor.png"),document.head.appendChild(s)},221342:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}}),r("561670"),r("633017"),r("547294"),r("634887"),r("623070");var n=r("766791");r("911100");var i=r("127272"),o=r("350802");function a(){let e=[{path:o.BundleSize.route,element:(0,n.jsx)(o.BundleSize.Page,{})},{path:o.LoaderFiles.route,element:(0,n.jsx)(o.LoaderFiles.Page,{})},{path:o.LoaderFiles.route,element:(0,n.jsx)(o.LoaderFiles.Page,{})},{path:o.PluginsAnalyze.route,element:(0,n.jsx)(o.PluginsAnalyze.Page,{})},{path:o.ModuleResolve.route,element:(0,n.jsx)(o.ModuleResolve.Page,{})},{path:o.LoaderTimeline.route,element:(0,n.jsx)(o.LoaderTimeline.Page,{})},{path:o.RuleIndex.route,element:(0,n.jsx)(o.RuleIndex.Page,{})}].filter(e=>!!e);return(0,n.jsxs)(i.Routes,{children:[(0,n.jsx)(i.Route,{path:"/",element:(0,n.jsx)(o.Overall.Page,{})}),(0,n.jsx)(i.Route,{path:o.Overall.route,element:(0,n.jsx)(o.Overall.Page,{})}),e.map(e=>(0,n.jsx)(i.Route,{path:e.path,element:e.element},e.path))]})}},586755:function(e,t,r){},353628:function(e,t,r){},746689:function(e,t,r){},820238:function(e,t,r){},971704:function(e,t,r){},853938:function(e,t,r){},404183:function(e,t,r){},563296:function(e,t,r){},629247:function(e,t,r){},192828:function(e,t,r){},77044:function(e,t,r){},561227:function(e,t,r){},844381:function(e,t,r){},249912:function(e,t,r){},39948:function(e,t,r){},361602:function(e,t,r){}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return i[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=i,a.es=function(e,t){return Object.keys(e).forEach(function(r){"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e},a.p="/",a.u=function(e){return({258:"resource/js/async/258.e0f8722a.js",952:"resource/js/async/952.34ca0751.js"})[e]},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e=[],a.O=function(t,r,n,i){if(r){i=i||0;for(var o=e.length;o>0&&e[o-1][2]>i;o--)e[o]=e[o-1];e[o]=[r,n,i];return}for(var s=1/0,o=0;o<e.length;o++){for(var r=e[o][0],n=e[o][1],i=e[o][2],l=!0,u=0;u<r.length;u++)s>=i&&Object.keys(a.O).every(function(e){return a.O[e](r[u])})?r.splice(u--,1):(l=!1,i<s&&(s=i));if(l){e.splice(o--,1);var c=n();void 0!==c&&(t=c)}}return t},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},a.b=document.baseURI||self.location.href,t={980:0},a.O.j=function(e){return 0===t[e]},r=function(e,r){var n=r[0],i=r[1],o=r[2],s,l,u=0;if(n.some(function(e){return 0!==t[e]})){for(s in i)a.o(i,s)&&(a.m[s]=i[s]);if(o)var c=o(a)}for(e&&e(r);u<n.length;u++)l=n[u],a.o(t,l)&&t[l]&&t[l][0](),t[l]=0;return a.O(c)},(n=self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n));var s=a.O(void 0,["402","222","973"],function(){return a("712303")});a.O(s)}();