!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var x=function(t,e){return(x=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var b=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},p=new function(){this.browser=new b,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(p.wxa=!0,p.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?p.worker=!0:!p.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}e.clearMarkers=function(){R(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})}}return n}(e,o),o,r);if(e)return e(t,n,i),1}}function ve(t){return"CANVAS"===t.nodeName.toUpperCase()}var _e=/([&<>"'])/g,xe={"&":"&","<":"<",">":">",'"':""","'":"'"};function we(t){return null==t?"":(t+"").replace(_e,function(t,e){return xe[e]})}var be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=[],Me=p.browser.firefox&&+p.browser.version.split(".")[0]<39;function Te(t,e,n,i){return n=n||{},i?ke(t,e,n):Me&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ke(t,e,n),n}function ke(t,e,n){if(p.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(ve(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(me(Se,t,r,e))return n.zrX=Se[0],void(n.zrY=Se[1])}n.zrX=n.zrY=0}function Ce(t){return t||window.event}function Ie(t,e,n){var i;return null==(e=Ce(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Te(t,i,e,n):(Te(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},d.prototype.contain=function(t,e){return d.contain(this,t,e)},d.prototype.clone=function(){return new d(this.x,this.y,this.width,this.height)},d.prototype.copy=function(t){d.copy(this,t)},d.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},d.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},d.prototype.isZero=function(){return 0===this.width||0===this.height},d.create=function(t){return new d(t.x,t.y,t.width,t.height)},d.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},d.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){yn.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=_n(this,i,r);if("mouseup"===a&&o||(n=(e=this.findHover(i,r)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4>>1])<0?l=o:s=1+o;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function kn(L,P){var O,A,R=wn,N=0,z=[];function e(t){var e=O[t],n=A[t],i=O[t+1],r=A[t+1],t=(A[t]=n+r,t===N-3&&(O[t+1]=O[t+2],A[t+1]=A[t+2]),N--,Tn(L[i],L,e,n,0,P));if(e+=t,0!=(n-=t)&&0!==(r=Mn(L[e+n-1],L,i,r,r-1,P)))if(n<=r){var o=e,a=n,t=i,s=r,l=0;for(l=0;lA[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(r);do{}while((o=bn(t,n,i,e))=this._maxSize&&0>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),Mi(t,e),e):void xi(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(xi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),Mi(t,e),e):void xi(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?xi(e,+a[0],+a[1],+a[2],1):xi(e,0,0,0,1);s=mi(a.pop());case"rgb":return 3<=a.length?(xi(e,yi(a[0]),yi(a[1]),yi(a[2]),3===a.length?s:mi(a[3])),Mi(t,e),e):void xi(e,0,0,0,1);case"hsla":return 4!==a.length?void xi(e,0,0,0,1):(a[3]=mi(a[3]),ki(a,e),Mi(t,e),e);case"hsl":return 3!==a.length?void xi(e,0,0,0,1):(ki(a,e),Mi(t,e),e);default:return}}xi(e,0,0,0,1)}}function ki(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=mi(t[1]),r=mi(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return xi(e=e||[],fi(255*vi(r,i,n+1/3)),fi(255*vi(r,i,n)),fi(255*vi(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ci(t,e){var n=Ti(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255e);g++);g=f(g-1,h-2)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?ar:t[c],(or(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:or(l)?(1===l?Ji:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},Mo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Mo.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Mo.prototype.refreshHover=function(){this._needsRefreshHover=!0},Mo.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Mo.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Mo.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Mo.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Mo.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Mo.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Mo.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Mo.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Mo.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Mo.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Mo.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e=n.maxIterations){e+=n.ellipsis;break}var s=0===a?function(t,e,n){for(var i=0,r=0,o=t.length;rh){C=o.lines.length;0i.width&&(o=e.split("\n"),c=!0),i.accumWidth=s):(s=Ua(e,t,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,o=s.lines)),o=o||e.split("\n"),jr(t)),d=0;dthis._ux||i>this._uy;return this.addData(Y.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},s.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Y.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},s.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Y.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},s.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Ls[0]=i,Ls[1]=r,s=o,(l=Ps((a=Ls)[0]))<0&&(l+=Is),h=l-a[0],u=a[1],u+=h,!s&&Is<=u-l?u=l+Is:s&&Is<=l-u?u=l-Is:!s&&uu.length&&(this._expandData(),u=this.data);for(var h=0;hn||ks(y)>i||c===e-1)&&(f=Math.sqrt(C*C+y*y),r=g,o=_);break;case Y.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=qn(t,n,r,a,f),f=qn(e,i,o,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(r,o,m,v,g,_,x,w,10),r=x,o=w;break;case Y.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=Jn(t,n,r,p),p=Jn(e,i,o,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case Y.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],M=t[c++],T=t[c++],k=T+M;c+=1,d&&(a=Ms(M)*b+x,s=Ts(M)*S+w),f=Ss(b,S)*bs(Is,Math.abs(T)),r=Ms(k)*b+x,o=Ts(k)*S+w;break;case Y.R:a=r=t[c++],s=o=t[c++];f=2*t[c++]+2*t[c++];break;case Y.Z:var C=a-r,y=s-o;f=Math.sqrt(C*C+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},s.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,z=this._ux,E=this._uy,B=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g=Hs[i=0]+t&&a<=Hs[1]+t?h:0;rMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,r);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case Bs.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(As(c,p,S,p,e,i,r)||As(S,p,S,M,e,i,r)||As(S,M,c,M,e,i,r)||As(c,M,c,p,e,i,r))return!0}else l=(l+=Es(S,p,S,M,i,r))+Es(c,M,c,p,i,r);break;case Bs.Z:if(n){if(As(u,h,c,p,e,i,r))return!0}else l+=Es(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)n,i=(r=r.slice(0,n)).length*c),t&&u&&null!=f)for(var y=za(f,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},v=0;vuc.len()&&(se)return t[i];return t[n-1]}var $d,Qd="\0_ec_inner",Jd=(a(u,$d=pp),u.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new pp(i),this._locale=new pp(r),this._optionManager=o},u.prototype.setOption=function(t,e,n){e=nf(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},u.prototype.resetOption=function(t,e){return this._resetOption(t,nf(e))},u.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Yd(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&R(n,function(t){i=!0,this._mergeOption(t,e)},this),i},u.prototype.mergeOption=function(t){this._mergeOption(t,null)},u.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=H(),p=t&&t.replaceMergeMainTypeMap;Fd(this).datasetMap=H(),R(i,function(t,e){null!=t&&(wd.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?_(t):at(r[e],t,!0))}),p&&p.each(function(t,e){wd.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),wd.topologicalTravel(n,wd.getAllClassMainTypes(),function(o){var a,t=function(t,e,n){return(e=(e=Gd.get(e))&&e(t))?n.concat(e):n}(this,o,Ko(i[o])),e=h.get(o),n=e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll",e=ta(e,t,n),s=(aa(e,o,wd),r[o]=null,h.set(o,null),c.set(o,0),[]),l=[],u=0;R(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=wd.getClass(o,t.keyInfo.subType,!("series"===o));if(!r)return;if("tooltip"===o){if(a)return;a=!0}n&&n.constructor===r?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=A({componentIndex:e},t.keyInfo),A(n=new r(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),r[o]=s,h.set(o,l),c.set(o,u),"series"===o&&Ud(this)},this),this._seriesIndices||Ud(this)},u.prototype.getOption=function(){var a=_(this.option);return R(a,function(t,e){if(wd.hasClass(e)){for(var n=Ko(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!oa(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[Qd],a},u.prototype.setTheme=function(t){this._theme=new pp(t),this._resetOption("recreate",null)},u.prototype.getTheme=function(){return this._theme},u.prototype.getLocaleModel=function(){return this._locale},u.prototype.setUpdatePayload=function(t){this._payload=t},u.prototype.getUpdatePayload=function(){return this._payload},u.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;ig[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},h.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=E(o,function(t){return t.property}),u=0;uf[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},h.prototype.count=function(){return this._count},h.prototype.get=function(t,e){return 0<=e&&e=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}}return-1},h.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;rt[S][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(f))}return sy[1]&&(y[1]=g)}}}},h.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Fg(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;hh[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},h.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();rthis.getShallow("animationThreshold")?!1:t)},c.prototype.restoreData=function(){this.dataTask.dirty()},c.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return jd.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},c.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},c.prototype.getProgressive=function(){return this.get("progressive")},c.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},c.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},c.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;oe.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function oy(e,n){R(Et(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,gt(ay,n))})}function ay(t,e){t=sy(t);return t&&t.setOutputEnd((e||this).count()),e}function sy(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}ht(ty,up),ht(ty,jd),wa(ty,wd);uy.prototype.init=function(t,e){},uy.prototype.render=function(t,e,n,i){},uy.prototype.dispose=function(t,e){},uy.prototype.updateView=function(t,e,n,i){},uy.prototype.updateLayout=function(t,e,n,i){},uy.prototype.updateVisual=function(t,e,n,i){},uy.prototype.toggleBlurSeries=function(t,e,n){},uy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var ly=uy;function uy(){this.group=new vo,this.uid=gp("viewComponent")}function hy(){var o=la();return function(t){var e=o(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,r=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==r&&i==e)&&"reset"}}xa(ly),Ta(ly);var cy=la(),py=hy(),dy=(fy.prototype.init=function(t,e){},fy.prototype.render=function(t,e,n,i){},fy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&yy(t,i,"emphasis")},fy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&yy(t,i,"normal")},fy.prototype.remove=function(t,e){this.group.removeAll()},fy.prototype.dispose=function(t,e){},fy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.eachRendered=function(t){Nc(this.group,t)},fy.markUpdateMethod=function(t,e){cy(t).updateMethod=e},fy.protoInitialize=void(fy.prototype.type="chart"),fy);function fy(){this.group=new vo,this.uid=gp("viewChart"),this.renderTask=ig({plan:my,reset:vy}),this.renderTask.context={view:this}}function gy(t,e,n){t&&Tu(t)&&("emphasis"===e?lu:uu)(t,n)}function yy(e,t,n){var i,r=sa(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Ol[t])&&Pl<=32?Ol[t]=Pl++:i):null;null!=r?R(Ko(r),function(t){gy(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){gy(t,n,o)})}function my(t){return py(t.model)}function vy(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&cy(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),_y[o]}xa(dy),Ta(dy);var _y={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function xy(t,r,o){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}r=r||0;function e(){for(var t=[],e=0;en.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Dy.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Dy.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},Dy.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=H();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;r.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},Dy.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;R(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Ct(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,r),t.overallReset&&this._createOverallStageTask(t,e,i,r)},this)},Dy.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},Dy.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Dy.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Dy.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}R(t,function(i,t){var e,n,r,o,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((o=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),r=!0)}),r&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),o.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},Dy.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Dy.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Dy.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Dy.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=H(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||ig({plan:Ry,reset:Ny,count:By}));e.context={model:t,ecModel:i,api:r,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:o},o._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,r).each(l)},Dy.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||ig({reset:Ly}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=H(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,ig({reset:Py,onDirty:Ay})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,r._pipe(t,e)}Ct(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,R(n.getSeries(),c)),h&&o.dirty()},Dy.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t);t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Dy.wrapStageHandler=function(t,e){return(t=w(t)?{overallReset:t,seriesType:function(t){Fy=null;try{t(Vy,Hy)}catch(t){}return Fy}(t)}:t).uid=gp("stageHandler"),e&&(t.visualType=e),t};var Iy=Dy;function Dy(t,e,n,i){this._stageTaskMap=H(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Ly(t){t.overallReset(t.ecModel,t.api,t.payload)}function Py(t){return t.overallProgress&&Oy}function Oy(){this.agent.dirty(),this.getDownstream().dirty()}function Ay(){this.agent&&this.agent.dirty()}function Ry(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Ny(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Ko(t.reset(t.model,t.ecModel,t.api,t.payload));return 1'+t.dom+""}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new hl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),R(p,function(t){t=new il({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},y.prototype.convertToPixel=function(t,e,n){return nm(this,"convertToPixel",t,e,n)},y.prototype.convertToLayout=function(t,e,n){return nm(this,"convertToLayout",t,e,n)},y.prototype.convertFromPixel=function(t,e,n){return nm(this,"convertFromPixel",t,e,n)},y.prototype.containPixel=function(t,i){var r;if(!this._disposed)return R(ha(this._model,t),function(t,n){0<=n.indexOf("Models")&&R(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?r=r||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(r=r||e.containPoint(i,t))},this)},this),!!r;this.id},y.prototype.getVisual=function(t,e){var t=ha(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},y.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},y.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},y.prototype._initEvents=function(){var n,i,s=this,r=(R(Mm,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&Zy(o,function(t){var e,t=Ll(t);return t&&null!=t.dataIndex?(e=t.dataModel||r.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,o)||{},1):t.eventData&&(n=A({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&r.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),this._messageCenter);R(Cm,function(t,e){r.on(e,function(t){s.trigger(e,t)})}),i=(n=this)._api,r.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(jy("map","selectchanged",n,e,t),jy("pie","selectchanged",n,e,t)):"select"===t.fromAction?(jy("map","selected",n,e,t),jy("pie","selected",n,e,t)):"unselect"===t.fromAction&&(jy("map","unselected",n,e,t),jy("pie","unselected",n,e,t))})},y.prototype.isDisposed=function(){return this._disposed},y.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},y.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&fa(this.getDom(),Em,""),e=(t=this)._api,n=t._model,R(t._componentsViews,function(t){t.dispose(n,e)}),R(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Am[t.id])},y.prototype.resize=function(t){if(!this[V0])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[W0]&&(null==n&&(n=this[W0].silent),e=!0,this[W0]=null),this[V0]=!0,ym(this);try{e&&Q0(this),em.update.call(this,{type:"resize",animation:A({duration:0},t&&t.animation)})}catch(t){throw this[V0]=!1,t}this[V0]=!1,om.call(this,n),am.call(this,n)}}},y.prototype.showLoading=function(t,e){this._disposed?this.id:(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Om[t]&&(t=Om[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},y.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},y.prototype.makeActionFromEvent=function(t){var e=A({},t);return e.type=km[t.type],e},y.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(O(e)||(e={silent:!!e}),Tm[t.type]&&this._model&&(this[V0]?this._pendingActions.push(t):(n=e.silent,rm.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&p.browser.weChat&&this._throttledZrFlush(),om.call(this,n),am.call(this,n))))},y.prototype.updateLabelLayout=function(){B0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},y.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},y.internalField=(Q0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),J0(t,!0),J0(t,!1),e.plan()},J0=function(t,r){for(var o=t._model,a=t._scheduler,s=r?t._componentsViews:t._chartsViews,l=r?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;es.get("hoverLayerThreshold")&&!p.node&&!p.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),B0.trigger("series:afterupdate",t,e,n)},fm=function(t){t[G0]=!0,t.getZr().wakeUp()},ym=function(t){t[H0]=(t[H0]+1)%1e3},gm=function(t){t[G0]&&(t.getZr().storage.traverse(function(t){_c(t)||xm(t)}),t[G0]=!1)},pm=function(n){return a(t,e=rf),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){lu(t,e),fm(n)},t.prototype.leaveEmphasis=function(t,e){uu(t,e),fm(n)},t.prototype.enterBlur=function(t){eu(t,Kl),fm(n)},t.prototype.leaveBlur=function(t){hu(t),fm(n)},t.prototype.enterSelect=function(t){cu(t),fm(n)},t.prototype.leaveSelect=function(t){pu(t),fm(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},t.prototype.getMainProcessVersion=function(){return n[H0]},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(dm=function(i){function r(t,e){for(var n=0;nr[1]&&(r[0]=r[1]),o}function Fv(t){return Eo(t)+2}function Vv(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Hv(t,e){return t>=e[0]&&t<=e[1]}Gv.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=ft(t.normalize,t),this.scale=ft(t.scale,t)):(this.normalize=Uv,this.scale=Xv)};var Wv=Gv;function Gv(){this.normalize=Uv,this.scale=Xv}function Uv(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Xv(t,e){return t*(e[1]-e[0])+e[0]}function Yv(t,e,n){t=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/t,Math.log(n?e[1]:Math.max(0,e[1]))/t]}jv.prototype.getSetting=function(t){return this._setting[t]},jv.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent((t[0]e[1]?t:e)[1])},jv.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},jv.prototype.getExtent=function(){return this._extent.slice()},jv.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},jv.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},jv.prototype.setBreaksFromOption=function(t){},jv.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},jv.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},jv.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},jv.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},jv.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},jv.prototype.isBlank=function(){return this._isBlank},jv.prototype.setBlank=function(t){this._isBlank=t};var qv=jv;function jv(t){this._calculator=new Wv,this._setting=t||{},this._extent=[1/0,-1/0]}Ta(qv);var Zv=0,Kv=($v.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&E(e,Qv);return new $v({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},$v.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},$v.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return F(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n)):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n):t},$v.prototype._getOrCreateMap=function(){return this._map||(this._map=H(this.categories))},$v);function $v(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Zv,this._onCollect=t.onCollect}function Qv(t){return O(t)&&null!=t.value?t.value:t+""}a(e_,Jv=qv),e_.prototype.parse=function(t){return null==t?NaN:F(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e_.prototype.contain=function(t){return Hv(t,this._extent)&&0<=t&&t=t},e_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e_.prototype.calcNiceTicks=function(){},e_.prototype.calcNiceExtent=function(){},e_.type="ordinal";var Jv,t_=e_;function e_(t){var t=Jv.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return B(e=e||new Kv({}))&&(e=new Kv({categories:E(e,function(t){return O(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}qv.registerClass(t_);var n_,i_=zo,r_=(a(o_,n_=qv),o_.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},o_.prototype.contain=function(t){return Hv(t,this._extent)},o_.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},o_.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},o_.prototype.getInterval=function(){return this._interval},o_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Fv(t)},o_.prototype.getTicks=function(t){t=t||{};var n=this._interval,e=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=Sp,a=[];if(n)if("only_break"===t.breakTicks&&o)o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent);else{e[0]h&&(t.expandToNicedExtent?a.push({value:i_(h+n,r)}):a.push({value:e[1]})),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent)}return a},o_.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;ri[0]&&cx));)g[r](g[i]()+t),f=g.getTime(),y&&0<(p=y.calcNiceTickMultiple(f,d))&&(g[r](g[i]()+p*t),f=g.getTime());a.push({value:f,notAdd:!0})}function i(t,e,n){var i,r,o,a,s=[],l=!e.length;if(i=zp(t),r=_[0],o=_[1],a=v,Fp(new Date(r),i,a).getTime()!==Fp(new Date(o),i,a).getTime()){l&&(e=[{value:function(t,e,n){e=Math.max(0,I(Op,e)-1);return Fp(new Date(t),Op[e],n).getTime()}(_[0],t,v)},{value:_[1]}]);for(var u,h,c=0;c=_[0]&&p<=_[1]&&b(f,p,d,g,y,0,s),"year"===t&&1=_[0]&&d<=_[1]&&a++)}u=e/m;if(1.5*u=_[0]&&t.value<=_[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),y_.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function r1(t,o){var e,n,r;return E(dt((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),R(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=i1(i,n,r);break;case"Polygon":case"MultiLineString":n1(i,n,r);break;case"MultiPolygon":R(i,function(t,e){return n1(t,n[e],r)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0l&&(l=s[h],u=h);++o[u],s[u]=0,++a}return E(o,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Fo,getPrecision:Eo,getPrecisionSafe:Bo,isNumeric:Yo,isRadianAroundZero:function(t){return-1e-4':'':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""},normalizeCssArray:ed,toCamelCase:function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t},truncateText:function(t,e,n,i,r){var o={};return Na(o,t,e,n,i,r),o.text}}),ep=Object.freeze({__proto__:null,bind:ft,clone:_,curry:gt,defaults:st,each:R,extend:A,filter:dt,indexOf:I,inherits:ut,isArray:B,isFunction:w,isObject:O,isString:F,map:E,merge:at,reduce:pt}),o1=la(),a1=la(),s1={estimate:1,determine:2};function l1(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function u1(e,t){t=E(t,function(t){return e.scale.parse(t)});return"time"===e.type&&0=e[0]&&t<=e[1]}),function(t){var e={value:t};return{formattedLabel:i(e),rawLabel:n.scale.getLabel(e),tickValue:t,time:void 0,break:void 0}})}):"category"===n.type?(s=t,a=(t=n).getLabelModel(),s=p1(t,a,s),!a.get("show")||t.scale.isBlank()?{labels:[]}:s):(a=(r=n).scale.getTicks(),o=R_(r),{labels:E(a,function(t,e){return{formattedLabel:o(t,e),rawLabel:r.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}function c1(t,e,n){var i,r,o,a,s,l,u=t.getTickModel().get("customValues");return u?(i=t.scale.getExtent(),{ticks:dt(u1(t,u),function(t){return t>=i[0]&&t<=i[1]})}):"category"===t.type?(u=e,a=d1(e=t),s=z_(u),(l=y1(a,s))||(u.get("show")&&!e.scale.isBlank()||(r=[]),r=w(s)?b1(e,s,!0):"auto"===s?(l=p1(e,e.getLabelModel(),l1(s1.determine)),o=l.labelCategoryInterval,E(l.labels,function(t){return t.tickValue})):w1(e,o=s,!0),m1(a,s,{ticks:r,tickCategoryInterval:o}))):{ticks:E(t.scale.getTicks(n),function(t){return t.value})}}function p1(t,e,n){var i,r=f1(t),o=z_(e),e=n.kind===s1.estimate;if(!e){var a=y1(r,o);if(a)return a}var s={labels:w(o)?b1(t,o):w1(t,i="auto"===o?function(t,e){{var n;if(e.kind===s1.estimate)return n=t.calculateCategoryInterval(e),e.out.noPxChangeTryDetermine.push(function(){return a1(t).autoInterval=n,!0}),n}var i=a1(t).autoInterval;return null!=i?i:a1(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):o),labelCategoryInterval:i};return e?n.out.noPxChangeTryDetermine.push(function(){return m1(r,o,s),!0}):m1(r,o,s),s}var d1=g1("axisTick"),f1=g1("axisLabel");function g1(e){return function(t){return a1(t)[e]||(a1(t)[e]={list:[]})}}function y1(t,e){for(var n=0;nl[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0],onBand:!0}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1],onBand:!0}),u},M1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),E(this.scale.getMinorTicks(t=0=u}}for(var o,a=this.__startIndex;ar[0]){for(l=0;lt);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},v.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;ie[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Li((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;si)return;return 1}(a,e))return r=e.mapDimension(a.dim),o={},R(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function aw(t){for(var e,n,i=t.length/2;0e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},yw=(mw.prototype.evaluate=function(t){var e=typeof t;return F(e)?this._condVal.test(t):!!V(e)&&this._condVal.test(t+"")},mw);function mw(t){null==(this._condVal=F(t)?new RegExp(t):bt(t)?t:null)&&f("")}_w.prototype.evaluate=function(){return this.value};var vw=_w;function _w(){}ww.prototype.evaluate=function(){for(var t=this.children,e=0;e"}(i,r)+("style"!==i?we(e):e||"")+(n?o+E(n,t).join(o)+o:"")+""}(t)}function eb(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function nb(t,e,n,i){return Jw("svg","root",{width:t,height:e,xmlns:qw,"xmlns:xlink":jw,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var ib=0;var rb={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ob="transform-origin";var ab={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function sb(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function lb(t){return F(t)?rb[t]?"cubic-bezier("+rb[t]+")":oi(t)?t:"":""}function ub(D,L,P,O){var t=D.animators,e=t.length,n=[];if(D instanceof qh){if(r=function(t,e,u){var h,c,t=t.shape.paths,p={};if(R(t,function(t){var e=eb(u.zrId),t=(e.animation=!0,ub(t,{},e,!0),e.cssAnims),n=e.cssNodes,e=N(t),i=e.length;if(i){var r,o,a=t[c=e[i-1]];for(r in a){var s=a[r];p[r]=p[r]||{d:""},p[r].d+=s.d||""}for(o in n){var l=n[o].animation;0<=l.indexOf(c)&&(h=l)}}}),h)return e.d=!1,t=sb(p,u),h.replace(c,t)}(D,L,P))n.push(r);else if(!e)return}else if(!e)return;for(var i,r,o,a={},s=0;s"].join(o):"")&&(e=Jw("style","stl",{},[],c),h.push(e)),nb(i,l,h,t.useViewBox)},Yb.prototype.renderToString=function(t){return tb(this.renderToVNode({animation:z((t=t||{}).cssAnimation,!0),emphasis:z(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:z(t.useViewBox,!0)}),{newline:!0})},Yb.prototype.setBackgroundColor=function(t){this._backgroundColor=t},Yb.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},Yb.prototype._paintList=function(t,e,n){for(var i,r,o,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f