=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return vf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function SO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function $h(e){return new Yye(e)}var Yye=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},Xye=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=IW[t],this._rvalFloat=po(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(po(t),this._rvalFloat)},e}(),PW=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=nt(t)?t:po(t),i=nt(r)?r:po(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=oe(t),l=oe(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),Zye=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=po(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=po(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Kye(e,t){return e==="eq"||e==="ne"?new Zye(e==="eq",t):ce(IW,e)?new Xye(e,t):null}var Qye=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return xs(t,r)},e}();function Jye(e,t){var r=new Qye,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ia&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?s0e:l0e}function Qu(){return[1/0,-1/0]}function u0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function wO(e,t,r,n,i){var a=RW[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&y<=d||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],x=h[i[1]],S=t[i[1]][0],_=t[i[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(b>=S&&b<=_||isNaN(b))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[T][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Ad(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=S)}M>0&&Mc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return xs(r[a],this._dimensions[a])}Vb={arrayRows:t,objectRows:function(r,n,i,a){return xs(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return xs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),LW=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Ig(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Hn(s)?ys:Ti,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ee(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ee(f.sourceHeader,d.sourceHeader),v=Ee(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[kT(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[kT(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&TO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&TO(f),s.push(c),l.push(u._getVersionSign())}),n?o=a0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[$ye(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=zW(i);a>=t&&(t=a+ +(n&&(!a||RT(i)&&!i.noHeader)))}),t}return 0}function d0e(e,t,r,n){var i=t.noHeader,a=p0e(zW(t)),o=[],s=t.blocks||[];sn(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new PW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=NW(p)(g?Y(Y({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):LT(o.join(""),i?r:a.html);if(i)return f;var d=MT(t.header,"ordinal",e.useUTC),h=OW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?BW(e,d,h)+a.richText+f:LT(''+gn(d)+"
"+f,r)}function h0e(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=q(S)?S:[S],Z(S,function(_,b){return MT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":MT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=OW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":BW(e,d,y))+(o?"":m0e(e,p,v,g,x)):LT((s?"":f)+(a?"":v0e(d,!s,y))+(o?"":g0e(p,v,g,x)),r)}}function AO(e,t,r,n,i,a){if(e){var o=NW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function p0e(e){return{html:c0e[e],richText:f0e[e]}}function LT(e,t){var r='',n="margin: "+t+"px 0 0";return''+e+r+"
"}function v0e(e,t,r){var n=t?"margin-left:2px":"";return''+gn(e)+""}function g0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return gn(o)}).join(" ")+""}function BW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function m0e(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(q(t)?t.join(" "):t,a)}function FW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return mu(n)}function $W(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Gb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=BH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=aye({color:r,type:t,renderMode:n,markerId:i});return oe(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function VW(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=q(s),u=FW(t,r),c,f,d,h;if(o>1||l&&!o){var p=y0e(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=vf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=Y2(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return yr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[yr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!zi(x),value:c,valueType:f})].concat(d||[])})}function y0e(e,t,r,n,i){var a=t.getData(),o=La(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(f){c(vf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(yr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Eo=Je();function Pg(e,t){return e.getName(t)||e.getId(t)}var Wm="__universalTransitionEnabled",Ix=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=$h({count:S0e,reset:b0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Eo(this).sourceManager=new LW(this);a.prepareSource();var o=this.getInitialData(r,i);IO(o,this),this.dataTask.context.data=o,Eo(this).dataBeforeProcessed=o,MO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Dp(this),a=i?jf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),hu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Dp(this);i&&Ds(this.option,r,i);var a=Eo(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);IO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Eo(this).dataBeforeProcessed=o,MO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Hn(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=gI.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Pg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Wm])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return et.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(et);sr(Ix,SI);sr(Ix,gI);YH(Ix,et);function MO(e){var t=e.name;Y2(e)||(e.name=x0e(e)||t)}function x0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function S0e(e){return e.model.getRawData().count()}function b0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_0e}function _0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function IO(e,t){D(Hy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(w0e,t))})}function w0e(e,t){var r=ET(e);return r&&r.setOutputEnd((t||this).count()),t}function ET(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const Nt=Ix;var _I=function(){function e(){this.group=new Ae,this.uid=Wf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();X2(_I);lx(_I);const Ut=_I;function Xf(){var e=Je();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var GW=Je(),C0e=Xf(),wI=function(){function e(){this.group=new Ae,this.uid=Wf("viewChart"),this.renderTask=$h({plan:T0e,reset:A0e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&kO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&kO(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Vs(this.group,t)},e.markUpdateMethod=function(t,r){GW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function PO(e,t,r){e&&Mp(e)&&(t==="emphasis"?vo:go)(e,r)}function kO(e,t,r){var n=pu(e,t),i=t&&t.highlightKey!=null?Qge(t.highlightKey):null;n!=null?D(ht(n),function(a){PO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){PO(a,r,i)})}X2(wI);lx(wI);function T0e(e){return C0e(e.model)}function A0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&GW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),M0e[l]}var M0e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Tt=wI;var o0="\0__throttleOriginMethod",DO="\0__throttleRate",RO="\0__throttleType";function CI(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Zf(e,t,r,n){var i=e[t];if(i){var a=i[o0]||i,o=i[RO],s=i[DO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=CI(a,r,n==="debounce"),i[o0]=a,i[RO]=n,i[DO]=r}return i}}function Lp(e,t){var r=e[t];r&&r[o0]&&(r.clear&&r.clear(),e[t]=r[o0])}var LO=Je(),EO={itemStyle:vu(j6,!0),lineStyle:vu(U6,!0)},I0e={lineStyle:"stroke",itemStyle:"fill"};function HW(e,t){var r=e.visualStyleMapper||EO[t];return r||(console.warn("Unknown style type '"+t+"'."),EO.itemStyle)}function WW(e,t){var r=e.visualDrawType||I0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var P0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=HW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=WW(e,n),u=o[l],c=me(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Md=new wt,k0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=HW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Md.option=l[n];var u=i(Md),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Md.option.decal&&(o.setItemVisual(s,"decal",Md.option.decal),Md.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},D0e={performRawSeries:!0,overallReset:function(e){var t=ve();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),LO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=LO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=WW(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},kg=Math.PI;function R0e(e,t){t=t||{},xe(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ae,n=new Qe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new rt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Qe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new iI({shape:{startAngle:-kg/2,endAngle:-kg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:kg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:kg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var L0e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ve();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";sn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ve(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||$h({plan:B0e,reset:F0e,count:V0e}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||$h({reset:E0e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";sn(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,$h({reset:O0e,onDirty:z0e})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,a._pipe(v,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return me(t)&&(t={overallReset:t,seriesType:G0e(t)}),t.uid=Wf("stageHandler"),r&&(t.visualType=r),t},e}();function E0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function O0e(e){return e.overallProgress&&N0e}function N0e(){this.agent.dirty(),this.getDownstream().dirty()}function z0e(){this.agent&&this.agent.dirty()}function B0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function F0e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ht(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(r,n){return UW(n)}):$0e}var $0e=UW(0);function UW(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),OT=["symbol","symbolSize","symbolRotate","symbolOffset"],BO=OT.concat(["symbolKeepAspect"]),j0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Wl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function NT(e,t,r){for(var n=t.type==="radial"?l1e(e,t,r):s1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function AI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&c1e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var f1e=new za(!0);function u0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function FO(e){return typeof e=="string"&&e!=="none"}function c0(e){var t=e.fill;return t!=null&&t!=="none"}function $O(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function VO(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function zT(e,t,r){var n=Z2(t.image,t.__image,r);if(ux(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*km),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function d1e(e,t,r,n){var i,a=u0(r),o=c0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||f1e,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0;(p||v)&&(b=t.getBoundingRect()),p&&(y=f?NT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?NT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?zT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?zT(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=y:g&&(S?e.fillStyle=S:o=!1),v?e.strokeStyle=x:m&&(_?e.strokeStyle=_:a=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,A;e.setLineDash&&r.lineDash&&(i=AI(t),C=i[0],A=i[1]);var T=!0;(u||f&hc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=A),n||(r.strokeFirst?(a&&VO(e,r),o&&$O(e,r)):(o&&$O(e,r),a&&VO(e,r))),C&&e.setLineDash([])}function h1e(e,t,r){var n=t.__image=Z2(r.image,t.__image,t,t.onload);if(!(!n||!ux(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.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),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function p1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Ms,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=AI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(u0(r)&&e.strokeText(i,r.x,r.y),c0(r)&&e.fillText(i,r.x,r.y)):(c0(r)&&e.fillText(i,r.x,r.y),u0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var GO=["shadowBlur","shadowOffsetX","shadowOffsetY"],HO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function QW(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){xn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ql.opacity:o}(n||t.blend!==r.blend)&&(a||(xn(e,i),a=!0),e.globalCompositeOperation=t.blend||Ql.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Hr]){if(this._disposed){this.id;return}var a,o,s;if(Se(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Hr]=!0,!this._model||n){var l=new kye(this._api),u=this._theme,c=this._model=new mW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},FT);var f={seriesTransition:s,optionChanged:!0};if(i)this[hn]={silent:a,updateParams:f},this[Hr]=!1,this.getZr().wakeUp();else{try{ec(this),Oo.update.call(this,null,f)}catch(d){throw this[hn]=null,this[Hr]=!1,d}this._ssr||this._zr.flush(),this[hn]=null,this[Hr]=!1,Id.call(this,a),Pd.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(tt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(iN[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(Kc,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(r)),b=x.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),d.push({dom:_,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=Is.createCanvas(),m=sE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(d,function(x){var S=x.left-l,_=x.top-u;y+=''+x.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Qe({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),D(d,function(x){var S=new Br({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Yb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Yb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Oh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Oh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?TI(s,l,n):yv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D($1e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Hl(s,function(p){var v=Ie(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=Y({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Vh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),q0e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&WH(this.getDom(),PI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),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 Kc[n.id]},t.prototype.resize=function(r){if(!this[Hr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[hn]&&(a==null&&(a=this[hn].silent),i=!0,this[hn]=null),this[Hr]=!0;try{i&&ec(this),Oo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Hr]=!1,o}this[Hr]=!1,Id.call(this,a),Pd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!$T[r]){var i=$T[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=Y({},r);return n.type=Vh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!d0[r.type]&&this._model){if(this[Hr]){this._pendingActions.push(r);return}var i=n.silent;Xb.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Id.call(this,i),Pd.call(this,i)}},t.prototype.updateLabelLayout=function(){Ri.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ec=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),jb(f,!0),jb(f,!1),d.plan()},jb=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;xd.get("hoverLayerThreshold")&&!tt.node&&!tt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(qc(m))return;if(m instanceof $e&&Jge(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var x=m.getTextContent(),S=m.getTextGuideLine();x&&(x.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}rN=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){vo(p,v),qn(f)},h.prototype.leaveEmphasis=function(p,v){go(p,v),qn(f)},h.prototype.enterBlur=function(p){d6(p),qn(f)},h.prototype.leaveBlur=function(p){eI(p),qn(f)},h.prototype.enterSelect=function(p){h6(p),qn(f)},h.prototype.leaveSelect=function(p){p6(p),qn(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(yW))(f)},hU=function(f){function d(h,p){for(var v=0;v=0)){aN.push(r);var a=qW.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function yU(e,t){$T[e]=t}function q1e(e,t,r){var n=T1e("registerMap");n&&n(e,t,r)}var X1e=i0e;ku(MI,P0e);ku(Px,k0e);ku(Px,D0e);ku(MI,j0e);ku(Px,Y0e);ku(sU,_1e);gU(SW);mU(I1e,Bye);yU("default",R0e);$a({type:Jl,event:Jl,update:Jl},tr);$a({type:Fm,event:Fm,update:Fm},tr);$a({type:Nh,event:Nh,update:Nh},tr);$a({type:$m,event:$m,update:$m},tr);$a({type:zh,event:zh,update:zh},tr);kI("light",H0e);kI("dark",W0e);var oN=[],Z1e={registerPreprocessor:gU,registerProcessor:mU,registerPostInit:W1e,registerPostUpdate:U1e,registerUpdateLifecycle:DI,registerAction:$a,registerCoordinateSystem:j1e,registerLayout:Y1e,registerVisual:ku,registerTransform:X1e,registerLoading:yU,registerMap:q1e,registerImpl:C1e,PRIORITY:z1e,ComponentModel:et,ComponentView:Ut,SeriesModel:Nt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){Ut.registerClass(e)},registerSeriesModel:function(e){Nt.registerClass(e)},registerChartView:function(e){Tt.registerClass(e)},registerSubTypeDefaulter:function(e,t){et.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){yve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(oN,e)>=0||(oN.push(e),me(e)&&(e={install:e}),e.install(Z1e))}function kd(e){return e==null?0:e.length||1}function sN(e){return e}var K1e=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||sN,this._newKeyGetter=i||sN,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var Dd=Se,No=Z,ixe=typeof Int32Array>"u"?Array:Int32Array,axe="e\0\0",lN=-1,oxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sxe=["_approximateExtent"],uN,Og,Rd,Ld,Qb,Ng,Jb,lxe=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;SU(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Ti;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),q(a)?a=a.slice():Dd(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Dd(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Dd(t)?Y(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Y(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;yT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:No(this.dimensions,this._getDimInfo,this),this.hostModel)),Qb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(z2(arguments)))})},e.internalField=function(){uN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new ixe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const on=lxe;function xv(e,t){mI(e)||(e=yI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=cxe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&wU(o),l=n===e.dimensionsDefine,u=l?_U(e):bU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new DW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function cxe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function fxe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var dxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function hxe(e){var t=e.get("coordinateSystem"),r=new dxe(t),n=pxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var pxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",ar).models[0],a=e.getReferringComponents("yAxis",ar).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),tc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),tc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",ar).models[0];t.coordSysDims=["single"],r.set("single",i),tc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",ar).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),tc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),tc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),tc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function tc(e){return e.get("type")==="category"}function vxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;gxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(a,function(y,x){oe(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;D(a,function(y){y.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function gxe(e){return!SU(e.schema)}function Rs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function CU(e,t){return Rs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function mxe(e,t){var r=e.get("coordinateSystem"),n=mv.get(r),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=p0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function yxe(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Co(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=yI(e)):(i=n.getSource(),a=i.sourceFormat===Ti);var o=hxe(t),s=mxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(dW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=xv(i,c),d=yxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=vxe(t,{schema:f,store:h}),v=new on(f,t);v.setCalculationInfo(p);var g=d!=null&&xxe(i)?function(m,y,x,S){return S===d?x:this.defaultDimValueGetter(m,y,x,S)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,g),v}function xxe(e){if(e.sourceFormat===Ti){var t=Sxe(e.data||[]);return!q(Ff(t))}}function Sxe(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();lx(TU);const To=TU;var bxe=0,_xe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++bxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,wxe);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!oe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ve(this.categories))},e}();function wxe(e){return Se(e)&&e.value!=null?e.value:e+""}const VT=_xe;function GT(e){return e.type==="interval"||e.type==="log"}function Cxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=NH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=AU(o),l=i.niceTickExtent=[qt(Math.ceil(e[0]/o)*o,s),qt(Math.floor(e[1]/o)*o,s)];return Txe(l,e),i}function e_(e){var t=Math.pow(10,j2(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,qt(r*t)}function AU(e){return xa(e)+2}function cN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Txe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),cN(e,0,t),cN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function kx(e,t){return e>=t[0]&&e<=t[1]}function Dx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Rx(e,t){return e*(t[1]-t[0])+t[0]}var MU=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new VT({})),q(i)&&(i=new VT({categories:Z(i,function(a){return Se(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:oe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),kx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Dx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Rx(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(To);To.registerClass(MU);const LI=MU;var cl=qt,IU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return kx(r,this._extent)},t.prototype.normalize=function(r){return Dx(r,this._extent)},t.prototype.scale=function(r){return Rx(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=AU(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:cl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function DU(e){var t=Ixe(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ne(n.get("barWidth"),s),v=ne(n.get("barMaxWidth"),s),g=ne(n.get("barMinWidth")||(NU(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:OI(a),stackId:EI(n)})}),RU(r)}function RU(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(a).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),c=ne(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),D(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),x&&(S=Math.max(S,x)),m.width=S,f-=S+c*S,d--}else{var S=h;y&&yS&&(S=x),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;D(a,function(m,y){m.width||(m.width=h),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function Pxe(e,t,r){if(e&&t){var n=e[OI(t)];return n!=null&&r!=null?n[EI(r)]:n}}function LU(e,t){var r=kU(e,t),n=DU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=EI(i),u=n[OI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function EU(e){return{seriesType:e,plan:Xf(),reset:function(t){if(OU(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Rs(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=kxe(i,a),p=NU(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,S){for(var _=x.count,b=p&&ba(_*3),w=p&&l&&ba(_*3),C=p&&ba(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var O=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}O=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=zg.length,l=Math.min(Dxe(zg,this._approxInterval,0,s),s-1);this._interval=zg[l][1],this._minLevelUnit=zg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Na(r)},t.prototype.contain=function(r){return kx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Dx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Rx(r,this._extent)},t.type="time",t}(Ls),zg=[["second",cI],["minute",fI],["hour",Fh],["quarter-day",Fh*6],["half-day",Fh*12],["day",di*1.2],["half-week",di*3.5],["week",di*7],["month",di*31],["quarter",di*95],["half-year",JE/2],["year",JE]];function Rxe(e,t,r,n){var i=Na(t),a=Na(r),o=function(p){return tO(i,p,n)===tO(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function Lxe(e,t){return e/=di,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Exe(e){var t=30*di;return e/=t,e>6?6:e>3?3:e>2?2:1}function Oxe(e){return e/=Fh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function fN(e,t){return e/=t?fI:cI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Nxe(e){return NH(e,!0)}function zxe(e,t,r){var n=new Date(e);switch(Xc(t)){case"year":case"month":n[K6(r)](0);case"day":n[Q6(r)](1);case"hour":n[J6(r)](0);case"minute":n[eW(r)](0);case"second":n[tW(r)](0),n[rW(r)](0)}return n.getTime()}function Bxe(e,t,r,n){var i=1e4,a=X6,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),O=M,V=$[P]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=n[0]&&y<=n[1]&&f++)}var x=(n[1]-n[0])/t;if(f>x*1.5&&d>x/1.5||(u.push(g),f>x||e===a[h]))break}c=[]}}}for(var S=ft(Z(u,function(T){return ft(T,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(T){return T.length>0}),_=[],b=S.length-1,h=0;h0;)a*=10;var s=[qt(Vxe(n[0]/a)*a),qt($xe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Gh.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Pi(r)/Pi(this.base),kx(r,this._extent)},t.prototype.normalize=function(r){return r=Pi(r)/Pi(this.base),Dx(r,this._extent)},t.prototype.scale=function(r){return r=Rx(r,this._extent),Bg(this.base,r)},t.type="log",t}(To),FU=NI.prototype;FU.getMinorTicks=Gh.getMinorTicks;FU.getLabel=Gh.getLabel;function Fg(e,t){return Fxe(e,xa(t))}To.registerClass(NI);const Gxe=NI;var Hxe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]