g&&(g=w,p=c+_)}var x=this.getRawIndex(f),T=this.getRawIndex(p);fc-g&&(l=c-g,s.length=l);for(var y=0;yf[1]&&(f[1]=S),v[p++]=w}return i._count=p,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();ip&&(p=_))}return l[c]=[v,p]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,n,a,i){return Kl(t[i],this._dimensions[i])}MA={arrayRows:e,objectRows:function(t,n,a,i){return Kl(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return Kl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}})(),r})(),I7=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(f_(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vn(s)?Xl:Ta,i=[];var f=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},p=xe(f.seriesLayoutBy,v.seriesLayoutBy)||null,g=xe(f.sourceHeader,v.sourceHeader),y=xe(f.dimensions,v.dimensions),_=p!==v.seriesLayoutBy||!!g!=!!v.sourceHeader||y;a=_?[FE(s,{seriesLayoutBy:p,sourceHeader:g,dimensions:y},l)]:[]}else{var S=e;if(n){var w=this._applyTransform(t);a=w.sourceList,i=w.upstreamSignList}else{var x=S.get("source",!0);a=[FE(x,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return k(e,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&jV(f),s.push(c),l.push(u._getVersionSign())}),n?o=$ge(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[Age(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return k(r.blocks,function(a){var i=B7(a);i>=e&&(e=i+ +(n&&(!i||$E(a)&&!a.noHeader)))}),e}return 0}function Jge(r,e,t,n){var a=e.noHeader,i=tme(B7(e)),o=[],s=e.blocks||[];vn(!s||le(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(we(u,l)){var c=new D7(u[l],null);s.sort(function(y,_){return c.evaluate(y.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(y,_){var S=e.valueFormatter,w=N7(y)(S?ne(ne({},r),{valueFormatter:S}):r,y,_>0?i.html:0,n);w!=null&&o.push(w)});var f=r.renderMode==="richText"?o.join(i.richText):YE(n,o.join(""),a?t:i.html);if(a)return f;var v=HE(e.header,"ordinal",r.useUTC),p=P7(n,r.renderMode).nameStyle,g=k7(n);return r.renderMode==="richText"?z7(r,v,p)+i.richText+f:YE(n,''+xn(v)+"
"+f,t)}function eme(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(T){return T=le(T)?T:[T],ce(T,function(C,D){return HE(C,le(p)?p[D]:p,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||te.color.secondary,a),v=i?"":HE(l,"ordinal",u),p=e.valueType,g=o?[]:c(e.value,e.rawDataIndex),y=!s||!i,_=!s&&i,S=P7(n,a),w=S.nameStyle,x=S.valueStyle;return a==="richText"?(s?"":f)+(i?"":z7(r,v,w))+(o?"":ame(r,g,y,_,x)):YE(n,(s?"":f)+(i?"":rme(v,!s,w))+(o?"":nme(g,y,_,x)),t)}}function $V(r,e,t,n,a,i){if(r){var o=N7(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function tme(r){return{html:Kge[r],richText:Qge[r]}}function YE(r,e,t){var n='',a="margin: "+t+"px 0 0",i=k7(r);return''+e+n+"
"}function rme(r,e,t){var n=e?"margin-left:2px":"";return''+xn(r)+""}function nme(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=le(r)?r:[r],''+ce(r,function(o){return xn(o)}).join(" ")+""}function z7(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function ame(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(le(e)?e.join(" "):e,i)}function V7(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return tf(n)}function H7(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var EA=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=bR()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=KW({color:t,type:e,renderMode:n,markerId:a});return pe(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};le(t)?k(t,function(i){return ne(n,i)}):ne(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r})();function U7(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=le(s),u=V7(e,t),c,f,v,p;if(o>1||l&&!o){var g=ime(s,e,t,i,u);c=g.inlineValues,f=g.inlineValueTypes,v=g.blocks,p=g.inlineValues[0]}else if(o){var y=a.getDimensionInfo(i[0]);p=c=Ov(a,t,i[0]),f=y.type}else p=c=l?s[0]:s;var _=wR(e),S=_&&e.name||"",w=a.getName(t),x=n?S:w;return Dr("section",{header:S,noHeader:n||!_,sortParam:p,blocks:[Dr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!ga(x),value:c,valueType:f,rawDataIndex:a.getRawIndex(t)})].concat(v||[])})}function ime(r,e,t,n,a){var i=e.getData(),o=Ja(r,function(f,v,p){var g=i.getDimensionInfo(p);return f=f||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];n.length?k(n,function(f){c(Ov(i,t,f),f)}):k(r,c);function c(f,v){var p=i.getDimensionInfo(v);!p||p.otherDims.tooltip===!1||(o?u.push(Dr("nameValue",{markerType:"subItem",markerColor:a,name:p.displayName,value:f,valueType:p.type})):(s.push(f),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Cl=Fe();function h_(r,e){return r.getName(e)||r.getId(e)}var PS="__universalTransitionEnabled",Et=(function(r){K(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Ng({count:sme,reset:lme}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Cl(this).sourceManager=new I7(this);i.prepareSource();var o=this.getInitialData(t,a);WV(o,this),this.dataTask.context.data=o,Cl(this).dataBeforeProcessed=o,YV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=lm(this),i=a?Df(t):{},o=this.subType;Ke.hasClass(o)&&(o+="Series"),Ge(t,n.getTheme().get(this.subType)),Ge(t,this.getDefaultOption()),qc(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Eo(t,i,a)},e.prototype.mergeOption=function(t,n){t=Ge(this.option,t,!0),this.fillDataTextStyle(t.data);var a=lm(this);a&&Eo(this.option,t,a);var i=Cl(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);WV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Cl(this).dataBeforeProcessed=o,YV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vn(t))for(var n=["show"],a=0;a=0&&v<0)&&(f=C,v=T,p=0),T===v&&(c[p++]=_))}return c.length=p,c},e.prototype.formatTooltip=function(t,n,a){return U7({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(nt.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=sO.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[h_(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[PS])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ie(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,n)}},e.registerClass=function(t){return Ke.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(Ke);br(Et,gw);br(Et,sO);jY(Et,Ke);function YV(r){var e=r.name;wR(r)||(r.name=ome(r)||e)}function ome(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return k(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function sme(r){return r.model.getRawData().count()}function lme(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),ume}function ume(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function WV(r,e){k(Cv(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Ye(cme,e))})}function cme(r,e){var t=WE(r);return t&&t.setOutputEnd((e||this).count()),e}function WE(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Pt=(function(){function r(){this.group=new Ee,this.uid=Af("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();CR(Pt);rw(Pt);function Mf(){var r=Fe();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var G7=Fe(),fme=Mf(),Dt=(function(){function r(){this.group=new Ee,this.uid=Af("viewChart"),this.renderTask=Ng({plan:hme,reset:vme}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&XV(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&XV(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){vu(this.group,e)},r.markUpdateMethod=function(e,t){G7(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function qV(r,e,t){r&&im(r)&&(e==="emphasis"?Vs:Hs)(r,t)}function XV(r,e,t){var n=Xc(r,e),a=e&&e.highlightKey!=null?zde(e.highlightKey):null;n!=null?k(kt(n),function(i){qV(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){qV(i,t,a)})}CR(Dt);rw(Dt);function hme(r){return fme(r.model)}function vme(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&G7(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),dme[l]}var dme={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},M1="\0__throttleOriginMethod",ZV="\0__throttleRate",KV="\0__throttleType";function mw(r,e,t){var n,a=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var p=[],g=0;g=0?f():o=setTimeout(f,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(p){c=p},v}function cd(r,e,t,n){var a=r[e];if(a){var i=a[M1]||a,o=a[KV],s=a[ZV];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=mw(i,t,n==="debounce"),a[M1]=i,a[KV]=n,a[ZV]=t}return a}}function cm(r,e){var t=r[e];t&&t[M1]&&(t.clear&&t.clear(),r[e]=t[M1])}var QV=Fe(),JV={itemStyle:Kc(HW,!0),lineStyle:Kc(VW,!0)},pme={lineStyle:"stroke",itemStyle:"fill"};function F7(r,e){var t=r.visualStyleMapper||JV[e];return t||(console.warn("Unknown style type '"+e+"'."),JV.itemStyle)}function j7(r,e){var t=r.visualDrawType||pme[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var gme={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=F7(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=j7(r,n),u=o[l],c=Ae(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ae(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Ae(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(p,g){var y=r.getDataParams(g),_=ne({},o);_[l]=c(y),p.setItemVisual(g,"style",_)}}}},Ep=new Qe,mme={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=F7(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ep.option=l[n];var u=a(Ep),c=o.ensureUniqueItemVisual(s,"style");ne(c,u),Ep.option.decal&&(o.setItemVisual(s,"decal",Ep.option.decal),Ep.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},yme={performRawSeries:!0,overallReset:function(r){var e=be();r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();QV(t).scope=e.get(n)||e.set(n,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.getRawData(),a={},i=t.getData(),o=QV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=j7(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var v=i.ensureUniqueItemVisual(c,"style"),p=n.getName(u)||u+"",g=n.count();v[l]=t.getColorFromPalette(p,o,g)}})}})}},v_=Math.PI;function _me(r,e){e=e||{},Oe(e,{text:"loading",textColor:te.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:te.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Ee,n=new qe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new it({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new qe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new ty({shape:{startAngle:-v_/2,endAngle:-v_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:v_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:v_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var $7=(function(){function r(e,t,n,a){this._stageTaskMap=be(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(t,n):GY(e,t,n);e.pipelineContext=n.context=a},r.prototype.restorePipelines=function(e,t){var n=this,a=n._pipelineMap=be();t.eachSeries(function(i){var o=e.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;k(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";vn(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;k(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,v=c.overallTask;if(v){var p,g=v.agentStubMap;g.each(function(_){s(a,_)&&(_.dirty(),p=!0)}),p&&v.dirty(),o.updatePayload(v,n);var y=o.getPerformArgs(v,a.block);g.each(function(_){_.perform(y)}),v.perform(y)&&(i=!0)}else f&&f.each(function(_,S){s(a,_)&&_.dirty();var w=o.getPerformArgs(_,a.block);w.skip=!l.performRawSeries&&t.isSeriesFiltered(_.context.model),o.updatePayload(_,n),_.perform(w)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=be(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var v=f.uid,p=s.set(v,o&&o.get(v)||Ng({plan:Tme,reset:Cme,count:Dme}));p.context={model:f,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,p)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Ng({reset:Sme});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=be(),u=e.seriesType,c=e.getTargetSeries,f=e.dirtyOnOverallProgress,v=!1,p="";vn(!e.createOnAllSeries,p),u?n.eachRawSeriesByType(u,g):c?c(n,a).each(g):k(n.getSeries(),g);function g(y){var _=y.uid,S=l.set(_,s&&s.get(_)||(v=!0,Ng({reset:bme,onDirty:xme})));S.context={model:y,dirtyOnOverallProgress:f},S.agent=o,S.__block=f,i._pipe(y,S)}v&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return Ae(e)&&(e={overallReset:e,seriesType:Mme(e)}),e.uid=Af("stageHandler"),t&&(e.visualType=t),e},r})();function Sme(r){r.overallReset(r.ecModel,r.api,r.payload)}function bme(r){return r.dirtyOnOverallProgress&&wme}function wme(){this.agent.dirty(),this.getDownstream().dirty()}function xme(){this.agent&&this.agent.dirty()}function Tme(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Cme(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=kt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?ce(e,function(t,n){return Y7(n)}):Ame}var Ame=Y7(0);function Y7(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i0&&p===u.length-v.length){var g=u.slice(0,p);g!=="data"&&(t.mainType=g,t[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(f,v,p,g){return f[p]==null||v[g||p]===f[p]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),qE=["symbol","symbolSize","symbolRotate","symbolOffset"],rH=qE.concat(["symbolKeepAspect"]),Lme={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o=0&&Ec(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function XE(r,e,t){for(var n=e.type==="radial"?Xme(r,e,t):qme(r,e,t),a=e.colorStops,i=0;i0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:lt(r)?[r]:le(r)?r:null}function dO(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&Kme(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=ce(t,function(i){return i/a}),n/=a)}return[t,n]}var Qme=new Do(!0);function R1(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function nH(r){return typeof r=="string"&&r!=="none"}function O1(r){var e=r.fill;return e!=null&&e!=="none"}function aH(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function iH(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function ZE(r,e,t){var n=AR(e.image,e.__image,t);if(nw(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Cg),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function Jme(r,e,t,n,a){var i,o=R1(t),s=O1(t),l=t.strokePercent,u=l<1,c=!e.path;(!e.silent||u)&&c&&e.createPathProxy();var f=e.path||Qme,v=e.__dirty;if(!n){var p=t.fill,g=t.stroke,y=s&&!!p.colorStops,_=o&&!!g.colorStops,S=s&&!!p.image,w=o&&!!g.image,x=void 0,T=void 0,C=void 0,D=void 0,M=void 0;(y||_)&&(M=e.getBoundingRect()),y&&(x=v?XE(r,p,M):e.__canvasFillGradient,e.__canvasFillGradient=x),_&&(T=v?XE(r,g,M):e.__canvasStrokeGradient,e.__canvasStrokeGradient=T),S&&(C=v||!e.__canvasFillPattern?ZE(r,p,e):e.__canvasFillPattern,e.__canvasFillPattern=C),w&&(D=v||!e.__canvasStrokePattern?ZE(r,g,e):e.__canvasStrokePattern,e.__canvasStrokePattern=D),y?r.fillStyle=x:S&&(C?r.fillStyle=C:s=!1),_?r.strokeStyle=T:w&&(D?r.strokeStyle=D:o=!1)}var R=e.getGlobalScale();f.setScale(R[0],R[1],e.segmentIgnoreThreshold);var L,O;r.setLineDash&&t.lineDash&&(i=dO(e),L=i[0],O=i[1]);var I=!0;(c||v&qh)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),I=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),I&&f.rebuildPath(r,u?l:1),L&&(r.setLineDash(L),r.lineDashOffset=O),n?(a.batchFill=s,a.batchStroke=o):t.strokeFirst?(o&&iH(r,t),s&&aH(r,t)):(s&&aH(r,t),o&&iH(r,t)),L&&r.setLineDash([])}function eye(r,e,t){var n=e.__image=AR(t.image,e.__image,e,e.onload);if(!(!n||!nw(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(n,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,f=o-u,v=s-c;r.drawImage(n,u,c,f,v,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function tye(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Ps,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=dO(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(R1(t)&&r.strokeText(a,t.x,t.y),O1(t)&&r.fillText(a,t.x,t.y)):(O1(t)&&r.fillText(a,t.x,t.y),R1(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var oH=["shadowBlur","shadowOffsetX","shadowOffsetY"],sH=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n9(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){Bn(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Ic.opacity:o}(n||e.blend!==t.blend)&&(i||(Bn(r,a),i=!0),r.globalCompositeOperation=e.blend||Ic.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,a){if(!this[Or]){if(this._disposed){this.id;return}var i,o,s;if(Ie(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Or]=!0,Ph(this),!this._model||n){var l=new fge(this._api),u=this._theme,c=this._model=new lO;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},e2);var f={seriesTransition:s,optionChanged:!0};if(a)this[Xr]={silent:i,updateParams:f},this[Or]=!1,this.getZr().wakeUp();else{try{nc(this),is.update.call(this,null,f)}catch(v){throw this[Xr]=null,this[Or]=!1,v}this._ssr||this._zr.flush(),this[Xr]=null,this[Or]=!1,Ih.call(this,i),kh.call(this,i)}}},e.prototype.setTheme=function(t,n){if(!this[Or]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Xr]&&(i==null&&(i=this[Xr].silent),o=this[Xr].updateParams,this[Xr]=null),this[Or]=!0,Ph(this);try{this._updateTheme(t),a.setTheme(this._theme),nc(this),is.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Or]=!1,s}this[Or]=!1,Ih.call(this,i),kh.call(this,i)}}},e.prototype._updateTheme=function(t){pe(t)&&(t=y9[t]),t&&(t=Ce(t),t&&y7(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return k(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;k(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(N1[a]){var l=s,u=s,c=-s,f=-s,v=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();k(Bc,function(x,T){if(x.group===a){var C=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Ce(t)),D=x.getDom().getBoundingClientRect();l=i(D.left,l),u=i(D.top,u),c=o(D.right,c),f=o(D.bottom,f),v.push({dom:C,left:D.left,top:D.top})}}),l*=p,u*=p,c*=p,f*=p;var g=c-l,y=f-u,_=Fr.createCanvas(),S=yE(_,{renderer:n?"svg":"canvas"});if(S.resize({width:g,height:y}),n){var w="";return k(v,function(x){var T=x.left-l,C=x.top-u;w+=''+x.dom+""}),S.painter.getSvgRoot().innerHTML=w,t.connectedBackgroundColor&&S.painter.setBackgroundColor(t.connectedBackgroundColor),S.refreshImmediately(),S.painter.toDataURL()}else return t.connectedBackgroundColor&&S.add(new qe({shape:{x:0,y:0,width:g,height:y},style:{fill:t.connectedBackgroundColor}})),k(v,function(x){var T=new Yr({style:{x:x.left*p-l,y:x.top*p-u,image:x.dom}});S.add(T)}),S.refreshImmediately(),_.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return m_(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return m_(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return m_(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=hv(a,t);return k(o,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=hv(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?vO(s,l,n):oy(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;k(Aye,function(a){var i=function(o){var s=t.getModel(),l=o.target,u,c=a==="globalout";if(c?u={}:l&&Mc(l,function(y){var _=Ne(y);if(_&&_.dataIndex!=null){var S=_.dataModel||s.getSeriesByIndex(_.seriesIndex);return u=S&&S.getDataParams(_.dataIndex,_.dataType,l)||{},!0}else if(_.eventData)return u=ne({},_.eventData),!0},!0),u){var f=u.componentType,v=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",v=u.seriesIndex);var p=f&&v!=null&&s.getComponent(f,v),g=p&&t[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:p,view:g},t.trigger(a,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;k(QE,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),Ome(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&zY(this.getDom(),yO,"");var n=this,a=n._api,i=n._model;k(n._componentsViews,function(o){o.dispose(i,a)}),k(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Bc[n.id]},e.prototype.resize=function(t){if(!this[Or]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[Xr]&&(i==null&&(i=this[Xr].silent),a=!0,this[Xr]=null),this[Or]=!0,Ph(this);try{a&&nc(this),is.update.call(this,{type:"resize",animation:ne({duration:0},t&&t.animation)})}catch(o){throw this[Or]=!1,o}this[Or]=!1,Ih.call(this,i),kh.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(Ie(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!t2[t]){var a=t2[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=ne({},t);return n.type=KE[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(Ie(n)||(n={silent:!!n}),!!k1[t.type]&&this._model){if(this[Or]){this._pendingActions.push(t);return}var a=n.silent;PA.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&nt.browser.weChat&&this._throttledZrFlush(),Ih.call(this,a),kh.call(this,a)}},e.prototype.updateLabelLayout=function(){Ua.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){nc=function(f){Pme(f._model);var v=f._scheduler;v.restorePipelines(f._zr,f._model),v.prepareStageTasks(),IA(f,!0),IA(f,!1),v.plan()},IA=function(f,v){for(var p=f._model,g=f._scheduler,y=v?f._componentsViews:f._chartsViews,_=v?f._componentsMap:f._chartsMap,S=f._zr,w=f._api,x=0;xxe(v.get("hoverLayerThreshold"),f7.hoverLayerThreshold)&&!nt.node&&!nt.worker;(f._usingTHL||_)&&(v.eachSeries(function(S){if(!S.preventUsingHoverLayer){var w=f._chartsMap[S.__viewId];w.__alive&&w.eachRendered(function(x){var T=x.states.emphasis;T&&T.hoverLayer!==id&&(T.hoverLayer=_?MW:DW)})}}),f._usingTHL=_)}}function s(f,v){var p=f.get("blendMode")||null;v.eachRendered(function(g){g.isGroup||(g.style.blend=p)})}function l(f,v){if(!f.preventAutoZ){var p=ef(f);v.eachRendered(function(g){return fw(g,p.z,p.zlevel),!0})}}function u(f,v){v.eachRendered(function(p){if(!vv(p)){var g=p.getTextContent(),y=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(f,v){var p=f.getModel("stateAnimation"),g=f.isAnimationEnabled(),y=p.get("duration"),_=y>0?{duration:y,delay:p.get("delay"),easing:p.get("easing")}:null;v.eachRendered(function(S){if(S.states&&S.states.emphasis){if(vv(S))return;if(S instanceof Je&&Vde(S),S.__dirty){var w=S.prevStates;w&&S.useStates(w)}if(g){S.stateTransition=_;var x=S.getTextContent(),T=S.getTextGuideLine();x&&(x.stateTransition=_),T&&(T.stateTransition=_)}S.__dirty&&i(S)}})}bH=function(f){return new((function(v){K(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(g){for(;g;){var y=g.__ecComponentInfo;if(y!=null)return f._model.getComponent(y.mainType,y.index);g=g.parent}},p.prototype.enterEmphasis=function(g,y){Vs(g,y),Ba(f)},p.prototype.leaveEmphasis=function(g,y){Hs(g,y),Ba(f)},p.prototype.enterBlur=function(g){cW(g),Ba(f)},p.prototype.leaveBlur=function(g){OR(g),Ba(f)},p.prototype.enterSelect=function(g){fW(g),Ba(f)},p.prototype.leaveSelect=function(g){hW(g),Ba(f)},p.prototype.getModel=function(){return f.getModel()},p.prototype.getViewOfComponentModel=function(g){return f.getViewOfComponentModel(g)},p.prototype.getViewOfSeriesModel=function(g){return f.getViewOfSeriesModel(g)},p.prototype.getECUpdateCycleVersion=function(){return f[p_]},p.prototype.usingTHL=function(){return f._usingTHL},p})(aW))(f)},m9=function(f){function v(p,g){for(var y=0;y