!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 m=function(t,e){return(m=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 u(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}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function v(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}var w=new function(){this.browser=new v,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?(w.wxa=!0,w.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?w.worker=!0:"undefined"==typeof navigator?(w.node=!0,w.svgSupported=!0):(J=navigator.userAgent,re=(Vt=w).browser,rt=J.match(/Firefox\/([\d.]+)/),U=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),rt&&(re.firefox=!0,re.version=rt[1]),U&&(re.ie=!0,re.version=U[1]),Q&&(re.edge=!0,re.version=Q[1],re.newEdge=18<+Q[1].split(".")[0]),J&&(re.weChat=!0),Vt.svgSupported="undefined"!=typeof SVGRect,Vt.touchEventsSupported="ontouchstart"in window&&!re.ie&&!re.edge,Vt.pointerEventsSupported="onpointerdown"in window&&(re.edge||re.ie&&11<=+re.version),Vt.domSupported="undefined"!=typeof document,rt=document.documentElement.style,Vt.transform3dSupported=(re.ie&&"transition"in rt||re.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in rt)&&!("OTransition"in rt),Vt.transformSupported=Vt.transform3dSupported||re.ie&&9<=+re.version);var j="12px sans-serif";var _,x,b=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",o[l]+":0",i[1-s]+":auto",o[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function ye(t){return"CANVAS"===t.nodeName.toUpperCase()}var me=/([&<>"'])/g,ve={"&":"&","<":"<",">":">",'"':""","'":"'"};function _e(t){return null==t?"":(t+"").replace(me,function(t,e){return ve[e]})}var xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,be=[],we=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Se(t,e,n,i){return n=n||{},i?Me(t,e,n):we&&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):Me(t,e,n),n}function Me(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(ye(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,n.zrY=e-i.top;if(ge(be,t,o,e))return n.zrX=be[0],n.zrY=be[1]}n.zrX=n.zrY=0}function Te(t){return t||window.event}function Ie(t,e,n){var i;return null==(e=Te(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Se(t,i,e,n):(Se(t,e,e,n),t=(t=(i=e).wheelDelta)||(n=i.deltaX,i=i.deltaY,null==n||null==i?t:3*(0!==i?Math.abs(i):Math.abs(n))*(0=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},$e.prototype.clone=function(){return new $e(this.x,this.y,this.width,this.height)},$e.prototype.copy=function(t){$e.copy(this,t)},$e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},$e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},$e.prototype.isZero=function(){return 0===this.width||0===this.height},$e.create=function(t){return new $e(t.x,t.y,t.width,t.height)},$e.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},$e.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){sn.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=cn(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).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<$t(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var pn=32,dn=7;function fn(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o>>1])<0?l=r:s=1+r;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);r(t,e[n+h])<0?l=h:a=h+1}return l}function vn(t,e,n,i){var f,g,r,a,y,s,m,o=(i=i||t.length)-(n=n||0);if(!(o<2)){var l=0;if(oa[t+1])break;p(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(o);do{}while((l=fn(t,n,i,e))=this._maxSize&&0>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),gi(t,e),e):void ci(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(ci(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),gi(t,e),e):void ci(e,0,0,0,1):void 0;var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?ci(e,+a[0],+a[1],+a[2],1):ci(e,0,0,0,1);s=li(a.pop());case"rgb":return 3<=a.length?(ci(e,si(a[0]),si(a[1]),si(a[2]),3===a.length?s:li(a[3])),gi(t,e),e):void ci(e,0,0,0,1);case"hsla":return 4!==a.length?void ci(e,0,0,0,1):(a[3]=li(a[3]),mi(a,e),gi(t,e),e);case"hsl":return 3!==a.length?void ci(e,0,0,0,1):(mi(a,e),gi(t,e),e);default:return}}ci(e,0,0,0,1)}}function mi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=li(t[1]),o=li(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return ci(e=e||[],ri(255*ui(o,i,n+1/3)),ri(255*ui(o,i,n)),ri(255*ui(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function vi(t,e){var n=yi(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);n++);n=g(n-1,c-2)}o=h[n+1],i=h[n]}i&&o&&(this._lastFr=n,this._lastFrP=e,f=o.percent-i.percent,r=0==f?1:g((e-i.percent)/f,1),o.easingFunc&&(r=o.easingFunc(r)),g=s?this._additiveValue:d?Ni:t[p],(Oi(u)||d)&&(g=g||(this._additiveValue=[])),this.discrete?t[p]=(r<1?i:o).rawValue:Oi(u)?(1===u?Ci:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},qo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},qo.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},qo.prototype.refreshHover=function(){this._needsRefreshHover=!0},qo.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},qo.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},qo.prototype.clearAnimation=function(){this.animation.clear()},qo.prototype.getWidth=function(){return this.painter.getWidth()},qo.prototype.getHeight=function(){return this.painter.getHeight()},qo.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},qo.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},qo.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},qo.prototype.off=function(t,e){this.handler.off(t,e)},qo.prototype.trigger=function(t,e){this.handler.trigger(t,e)},qo.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;el&&(l=s[h],u=h);++r[u],s[u]=0,++a}return F(r,function(t){return t/i})}function ar(t){var e=2*Math.PI;return(t%e+e)%e}function sr(t){return-1e-4=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var o=0,r=0,a=t.length;rr){0i.width&&(r=e.split("\n"),c=!0),i.accumWidth=t):(t=fa(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;pthis._ux||i>this._uy;return this.addData(Na.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},o.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Na.C,t,e,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,r),this._xi=o,this._yi=r,this},o.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Na.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},o.prototype.arc=function(t,e,n,i,o,r){this._drawPendingPt(),ja[0]=i,ja[1]=o,s=r,(l=Ka((a=ja)[0]))<0&&(l+=Za),h=l-a[0],u=a[1],u+=h,!s&&Za<=u-l?u=l+Za:s&&Za<=l-u?u=l-Za:!s&&uu.length&&(this._expandData(),u=this.data);for(var h=0;hn||Ya(y)>i||c===e-1)&&(f=Math.sqrt(C*C+y*y),o=g,r=_);break;case Na.C:var m=t[c++],v=t[c++],_=(g=t[c++],t[c++]),x=t[c++],b=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Bn(t,n,o,a,f),f=Bn(e,i,r,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(o,r,m,v,g,_,x,b,10),o=x,r=b;break;case Na.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=Xn(t,n,o,p),p=Xn(e,i,r,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),o=g,r=_;break;case Na.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],T=t[c++],I=T+M;c+=1,t[c++],d&&(a=Wa(M)*w+x,s=Xa(M)*S+b),f=Ha(w,S)*Ga(Za,Math.abs(T)),o=Wa(I)*w+x,r=Xa(I)*S+b;break;case Na.R:a=o=t[c++],s=r=t[c++],f=2*t[c++]+2*t[c++];break;case Na.Z:var C=a-o,y=s-r;f=Math.sqrt(C*C+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},o.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,E=this._ux,z=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;gs){var w=(s-p)/y;t.lineTo(o*(1-w)+v*w,r*(1-w)+_*w);break t}p+=y}t.lineTo(v,_),o=v,r=_,f=0}else{x=x*x+b*b;fs){Hn(o,S,T,b,w=(s-p)/y,Ra),Hn(r,M,I,x,w,Ea),t.bezierCurveTo(Ra[1],Ea[1],Ra[2],Ea[2],Ra[3],Ea[3]);break t}p+=y}t.bezierCurveTo(S,M,T,I,b,x),o=b,r=x;break;case Na.Q:if(S=h[g++],M=h[g++],T=h[g++],I=h[g++],c){if(p+(y=a[d++])>s){Zn(o,S,T,w=(s-p)/y,Ra),Zn(r,M,I,w,Ea),t.quadraticCurveTo(Ra[1],Ea[1],Ra[2],Ea[2]);break t}p+=y}t.quadraticCurveTo(S,M,T,I),o=T,r=I;break;case Na.A:var C=h[g++],D=h[g++],k=h[g++],A=h[g++],L=h[g++],P=h[g++],O=h[g++],V=!h[g++],G=As&&(R=L+P*(s-p)/y,H=!0),p+=y),N&&t.ellipse?t.ellipse(C,D,k,A,O,L,R,V):t.arc(C,D,G,L,R,V),H)break t;F&&(n=Wa(L)*k+C,i=Xa(L)*A+D),o=Wa(R)*k+C,r=Xa(R)*A+D;break;case Na.R:n=o=h[g],i=r=h[g+1],v=h[g++],_=h[g++];P=h[g++],N=h[g++];if(c){if(p+(y=a[d++])>s){O=s-p;t.moveTo(v,_),t.lineTo(v+Ga(O,P),_),0<(O-=P)&&t.lineTo(v+P,_+Ga(O,N)),0<(O-=N)&&t.lineTo(v+Ha(P-O,0),_+N),0<(O-=P)&&t.lineTo(v,_+Ha(N-O,0));break t}p+=y}t.rect(v,_,P,N);break;case Na.Z:if(c){if(p+(y=a[d++])>s){t.lineTo(o*(1-(w=(s-p)/y))+n*w,r*(1-w)+i*w);break t}p+=y}t.closePath(),o=n,r=i}}},o.prototype.clone=function(){var t=new o,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},o.CMD=Na,o.initDefaultProps=((gu=o.prototype)._saveData=!0,gu._ux=0,gu._uy=0,gu._pendingPtDist=0,void(gu._version=0));var $a=o;function o(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function Qa(t,e,n,i,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)n||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(as[0]=-e,as[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(os-1e-4<=n)return o=os,h=r?1:-1,a>=as[i=0]+t&&a<=as[1]+t?h:0;oMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,T,o);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case is.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],M=p+a[d++],n){if(Qa(c,p,S,p,e,i,o)||Qa(S,p,S,M,e,i,o)||Qa(S,M,c,M,e,i,o)||Qa(c,M,c,p,e,i,o))return!0}else l=(l+=ns(S,p,S,M,i,o))+ns(c,M,c,p,i,o);break;case is.Z:if(n){if(Qa(u,h,c,p,e,i,o))return!0}else l+=ns(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)i.len()&&(uMath.abs(i[1])?0':'':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Lp(t,e){return e=e||"transparent",G(t)?t:O(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Pp(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Op=E,Np=["left","right","top","bottom","width","height"],Rp=[["width","left","right"],["height","top","bottom"]];function Ep(a,s,l,u,h){var c=0,p=0,d=(null==u&&(u=1/0),null==h&&(h=1/0),0);s.eachChild(function(t,e){var n,i,o,r=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(o=r.width+(e?-e.x+r.x:0),(n=c+o)>u||t.newline?(c=0,n=o,p+=d+l,r.height):Math.max(d,r.height)):(o=r.height+(e?-e.y+r.y:0),(i=p+o)>h||t.newline?(c+=d+l,p=0,i=o,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=i+l)})}var zp=Ep;function Bp(t,e,n){n=Tp(n||0);var i=e.width,o=e.height,r=X(t.left,i),a=X(t.top,o),e=X(t.right,i),s=X(t.bottom,o),l=X(t.width,i),u=X(t.height,o),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(u)&&(u=o-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/oe)return t[i];return t[n-1]}(o,n):i)||i)&&o.length?(n=o[r],t&&(e[t]=n),a.paletteIdx=(r+1)%o.length,n):void 0},gd.prototype.clearColorPalette=function(){var t,e;(e=dd)(t=this).paletteIdx=0,e(t).paletteNameMap={}},gd);function gd(){}var yd,md,vd,_d,xd="\0_ec_inner",bd=(u(r,_d=Bc),r.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Bc(i),this._locale=new Bc(o),this._optionManager=r},r.prototype.setOption=function(t,e,n){e=Md(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},r.prototype.resetOption=function(t,e){return this._resetOption(t,Md(e))},r.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):vd(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&E(n,function(t){i=!0,this._mergeOption(t,e)},this),i},r.prototype.mergeOption=function(t){this._mergeOption(t,null)},r.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=R(),p=t&&t.replaceMergeMainTypeMap;ad(this).datasetMap=R(),E(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?y(t):d(o[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(r){t=this,n=xr(i[e=r]);var t=(e=(e=pd.get(e))&&e(t))?n.concat(e):n,e=h.get(r),n=Mr(e,t,e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll");Ar(n,r,g),o[r]=null,h.set(r,null),c.set(r,0);var a,s=[],l=[],u=0;E(n,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=g.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;if("tooltip"===r){if(a)return;a=!0}n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=P({componentIndex:e},t.keyInfo),P(n=new o(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),o[r]=s,h.set(r,l),c.set(r,u),"series"===r&&yd(this)},this),this._seriesIndices||yd(this)},r.prototype.getOption=function(){var a=y(this.option);return E(a,function(t,e){if(g.hasClass(e)){for(var n=xr(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!kr(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[xd],a},r.prototype.getTheme=function(){return this._theme},r.prototype.getLocaleModel=function(){return this._locale},r.prototype.setUpdatePayload=function(t){this._payload=t},r.prototype.getUpdatePayload=function(){return this._payload},r.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}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=F(r,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=[]},l.prototype.count=function(){return this._count},l.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 r;o=r-1}}}return-1},l.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l=u&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f=u&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;ft[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return sy[1]&&(y[1]=g)}}},l.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(pg(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;hx&&(x=n,b=M)}0h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+_e(u)+""+h,t))}function Ag(t,e,n,i){var o,r,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return F(t=V(t)?t:[t],function(t,e){return Ip(t,V(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":Ip(p,"ordinal",d),r=e.valueType,f=h?[]:f(e.value),e=!c||!u,a=!c&&u,i=Sg(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":Og(t,p,s))+(h?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,o)}(t,f,e,a,i)):Pg((c?"":o)+(u?"":''+_e(p)+"")+(h?"":function(t,e,n,i){e=e?"float:right;margin-left:"+(n?"10px":"20px"):"";return t=V(t)?t:[t],''+F(t,_e).join("  ")+""}(f,e,a,i)),n)}function Lg(t,e,n,i,o,r){if(t)return Dg(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Pg(t,e){return'
'+t+'
'}function Og(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ng(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Eg.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Eg.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=Ap({color:e,type:t,renderMode:n,markerId:i});return G(e)?e:(this.richTextStyles[i]=e.style,e.content)},Eg.prototype.wrapRichTextStyle=function(t,e){var n={},e=(V(e)?E(e,function(t){return P(n,t)}):P(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var Rg=Eg;function Eg(){this.richTextStyles={},this._nextStyleNameId=gr()}function zg(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=V(m),_=(_=d,Lp((b=p).getData().getItemVisual(_,"style")[b.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Ig("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1this.getShallow("animationThreshold")?!1:t)},s.prototype.restoreData=function(){this.dataTask.dirty()},s.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return fd.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},s.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},s.prototype.getProgressive=function(){return this.get("progressive")},s.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},s.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},s.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;re.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ug(e,n){E(Nt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,M(Zg,n))})}function Zg(t,e){t=qg(t);return t&&t.setOutputEnd((e||this).count()),e}function qg(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}st(Gg,Rc),st(Gg,fd),Yr(Gg,g);Kg.prototype.init=function(t,e){},Kg.prototype.render=function(t,e,n,i){},Kg.prototype.dispose=function(t,e){},Kg.prototype.updateView=function(t,e,n,i){},Kg.prototype.updateLayout=function(t,e,n,i){},Kg.prototype.updateVisual=function(t,e,n,i){},Kg.prototype.toggleBlurSeries=function(t,e,n){},Kg.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var jg=Kg;function Kg(){this.group=new Wo,this.uid=Gc("viewComponent")}function $g(){var r=Pr();return function(t){var e=r(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==o&&i==e)&&"reset"}}Xr(jg),jr(jg);var Qg=Pr(),Jg=$g(),ty=(ey.prototype.init=function(t,e){},ey.prototype.render=function(t,e,n,i){},ey.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&iy(t,i,"emphasis")},ey.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&iy(t,i,"normal")},ey.prototype.remove=function(t,e){this.group.removeAll()},ey.prototype.dispose=function(t,e){},ey.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},ey.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},ey.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},ey.prototype.eachRendered=function(t){cc(this.group,t)},ey.markUpdateMethod=function(t,e){Qg(t).updateMethod=e},ey.protoInitialize=void(ey.prototype.type="chart"),ey);function ey(){this.group=new Wo,this.uid=Gc("viewChart"),this.renderTask=Af({plan:oy,reset:ry}),this.renderTask.context={view:this}}function ny(t,e,n){t&&Yl(t)&&("emphasis"===e?Cl:Dl)(t,n)}function iy(e,t,n){var i,o=Lr(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Ks[t])&&js<=32?Ks[t]=js++:i):null;null!=o?E(xr(o),function(t){ny(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){ny(t,n,r)})}function oy(t){return Jg(t.model)}function ry(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Qg(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),ay[r]}Xr(ty),jr(ty);var ay={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)}}},sy="\0__throttleOriginMethod",ly="\0__throttleRate",uy="\0__throttleType";function hy(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||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}},by.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},by.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},by.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=R();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.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)})},by.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;E(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Mt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},by.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},by.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},by.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},by.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))}E(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.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},by.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},by.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())})},by.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},by.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=R(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Af({plan:Iy,reset:Cy,count:Ay}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,o).each(l)},by.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||Af({reset:wy}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=R(),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,Af({reset:Sy,onDirty:Ty})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Mt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,E(n.getSeries(),c)),h&&r.dirty()},by.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},by.wrapStageHandler=function(t,e){return(t=T(t)?{overallReset:t,seriesType:function(t){Ly=null;try{t(Py,Oy)}catch(t){}return Ly}(t)}:t).uid=Gc("stageHandler"),e&&(t.visualType=e),t};var xy=by;function by(t,e,n,i){this._stageTaskMap=R(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function wy(t){t.overallReset(t.ecModel,t.api,t.payload)}function Sy(t){return t.overallProgress&&My}function My(){this.agent.dirty(),this.getDownstream().dirty()}function Ty(){this.agent&&this.agent.dirty()}function Iy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Cy(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=xr(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 Ps({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),E(p,function(t){t=new Ss({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},h.prototype.convertToPixel=function(t,e){return $m(this,"convertToPixel",t,e)},h.prototype.convertFromPixel=function(t,e){return $m(this,"convertFromPixel",t,e)},h.prototype.containPixel=function(t,i){var o;if(!this._disposed)return E(Nr(this._model,t),function(t,n){0<=n.indexOf("Models")&&E(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;this.id},h.prototype.getVisual=function(t,e){var t=Nr(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)return Hy(n,e);var i=n,o=t,r=e;switch(r){case"color":return i.getItemVisual(o,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(o,r)}},h.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},h.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},h.prototype._initEvents=function(){var t,n,i,s=this;E(b0,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&Yy(r,function(t){var e,t=D(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,r)||{},1):t.eventData&&(n=P({},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&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),E(S0,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),E(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(Xy("map","selectchanged",n,e,t),Xy("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Xy("map","selected",n,e,t),Xy("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Xy("map","unselected",n,e,t),Xy("pie","unselected",n,e,t))})},h.prototype.isDisposed=function(){return this._disposed},h.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},h.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Br(this.getDom(),O0,""),e=(t=this)._api,n=t._model,E(t._componentsViews,function(t){t.dispose(n,e)}),E(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 k0[t.id])},h.prototype.resize=function(t){if(!this[Fm])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[Vm]&&(null==n&&(n=this[Vm].silent),e=!0,this[Vm]=null),this[Fm]=!0;try{e&&Zm(this),Km.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[Fm]=!1,t}this[Fm]=!1,t0.call(this,n),e0.call(this,n)}}},h.prototype.showLoading=function(t,e){this._disposed?this.id:(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),D0[t]&&(t=D0[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},h.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},h.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=S0[t.type],e},h.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(O(e)||(e={silent:!!e}),w0[t.type]&&this._model&&(this[Fm]?this._pendingActions.push(t):(n=e.silent,Jm.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),t0.call(this,n),e0.call(this,n))))},h.prototype.updateLabelLayout=function(){zm.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},h.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())},h.internalField=(Zm=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),qm(t,!0),qm(t,!1),e.plan()},qm=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;es.get("hoverLayerThreshold")&&!w.node&&!w.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)})}),zm.trigger("series:afterupdate",t,e,n)},u0=function(t){t[Gm]=!0,t.getZr().wakeUp()},h0=function(t){t[Gm]&&(t.getZr().storage.traverse(function(t){Rh(t)||m0(t)}),t[Gm]=!1)},s0=function(n){return u(t,e=Td),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){Cl(t,e),u0(n)},t.prototype.leaveEmphasis=function(t,e){Dl(t,e),u0(n)},t.prototype.enterBlur=function(t){kl(t),u0(n)},t.prototype.leaveBlur=function(t){Al(t),u0(n)},t.prototype.enterSelect=function(t){Ll(t),u0(n)},t.prototype.leaveSelect=function(t){Pl(t),u0(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)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(l0=function(i){function o(t,e){for(var n=0;ne[1]&&(e[1]=t[1])},Rv.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Rv.prototype.getExtent=function(){return this._extent.slice()},Rv.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Rv.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Rv.prototype.isBlank=function(){return this._isBlank},Rv.prototype.setBlank=function(t){this._isBlank=t};var Nv=Rv;function Rv(t){this._setting=t||{},this._extent=[1/0,-1/0]}jr(Nv);var Ev=0,zv=(Bv.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&F(e,Fv);return new Bv({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Bv.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Bv.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return G(t)||i?(i&&!this._deduplication?(e=this.categories.length,this.categories[e]=t):null==(e=(n=this._getOrCreateMap()).get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e):t},Bv.prototype._getOrCreateMap=function(){return this._map||(this._map=R(this.categories))},Bv);function Bv(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Ev}function Fv(t){return O(t)&&null!=t.value?t.value:t+""}function Vv(t){return"interval"===t.type||"log"===t.type}function Gv(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=pr(r/e,!0),e=(null!=n&&rn[1]&&(n[0]=n[1]),o}function Hv(t){var e=Math.pow(10,cr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,tr(t*e)}function Wv(t){return nr(t)+2}function Xv(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Yv(t,e){return t>=e[0]&&t<=e[1]}function Uv(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Zv(t,e){return t*(e[1]-e[0])+e[0]}u(Kv,qv=Nv),Kv.prototype.parse=function(t){return null==t?NaN:G(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},Kv.prototype.contain=function(t){return Yv(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},Kv.prototype.normalize=function(t){return Uv(t=this._getTickNumber(this.parse(t)),this._extent)},Kv.prototype.scale=function(t){return t=Math.round(Zv(t,this._extent)),this.getRawOrdinalNumber(t)},Kv.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},Kv.prototype.getMinorTicks=function(t){},Kv.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o=t},Kv.prototype.getOrdinalMeta=function(){return this._ordinalMeta},Kv.prototype.calcNiceTicks=function(){},Kv.prototype.calcNiceExtent=function(){},Kv.type="ordinal";var qv,jv=Kv;function Kv(t){var t=qv.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new zv({}))&&(e=new zv({categories:F(e,function(t){return O(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Nv.registerClass(jv);var $v,Qv=tr,Jv=(u(t_,$v=Nv),t_.prototype.parse=function(t){return t},t_.prototype.contain=function(t){return Yv(t,this._extent)},t_.prototype.normalize=function(t){return Uv(t,this._extent)},t_.prototype.scale=function(t){return Zv(t,this._extent)},t_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},t_.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},t_.prototype.getInterval=function(){return this._interval},t_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Wv(t)},t_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]s&&r.push(t?{value:Qv(s+e,o)}:{value:n[1]})}return r},t_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&h=M[0]&&p<=M[1]&&a++)}u=(M[1]-M[0])/w;if(1.5*u=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),h_.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[o][1]>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l),o=s+=o,r=l+=r;i.push([s/n,l/n])}return i}function o1(t,r){return F(ht((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),E(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,o);break;case"Polygon":case"MultiLineString":n1(i,n,o);break;case"MultiPolygon":E(i,function(t,e){return n1(t,n[e],o)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0r[1],h(l[0].coord,r[0])&&(t?l[0].coord=r[0]:l.shift()),t&&h(r[0],l[0].coord)&&l.unshift({coord:r[0]}),h(r[1],e.coord)&&(t?e.coord=r[1]:l.pop()),t)&&h(e.coord,r[1])&&l.push({coord:r[1]}),a},g1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),F(this.scale.getMinorTicks(t=0=u}}for(var a,s=this.__startIndex;so[0]){for(l=0;lt);l++);s=i[o[l]]}o.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=this}},p.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,o=[],r=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:xi((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;si)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},E(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function jx(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;nl?x:_,(g=Math.abs(d.label.y-l))>=f.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)t.unconstrainedWidth)?null:s,i.setStyle("width",l)),u=i.getBoundingRect(),o.width=u.width,e=(i.style.margin||0)+2.1,o.height=u.height+e,o.y-=(o.height-a)/2)}function pb(t){return"center"===t.position}function db(t){var S,M,T=t.getData(),I=[],C=!1,D=(t.get("minShowLabelAngle")||0)*ub,e=T.getLayout("viewRect"),k=T.getLayout("r"),A=e.width,L=e.x,n=e.y,e=e.height;function P(t){t.ignore=!0}if(T.each(function(t){var e,n,i,o,r,a,s,l,u,h,c,p=T.getItemGraphicEl(t),d=p.shape,f=p.getTextContent(),g=p.getTextGuideLine(),t=T.getItemModel(t),y=t.getModel("label"),m=y.get("position")||t.get(["emphasis","label","position"]),v=y.get("distanceToLabelLine"),_=y.get("alignTo"),x=X(y.get("edgeDistance"),A),b=y.get("bleedMargin"),t=t.getModel("labelLine"),w=X(t.get("length"),A);e=X(t.get("length2"),A),Math.abs(d.endAngle-d.startAngle)=e.r0},_b.type="pie",_b);function _b(){var t=null!==gb&&gb.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function xb(t,e,n){var i=yb.call(this)||this,o=(i.z2=2,new zs);return i.setTextContent(o),i.updateData(t,e,n,!0),i}wb.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},wb.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},wb.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},wb.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var bb=wb;function wb(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var Sb,Mb=Pr(),Tb=(u(Ib,Sb=Gg),Ib.prototype.init=function(t){Sb.prototype.init.apply(this,arguments),this.legendVisualProvider=new bb(S(this.getData,this),S(this.getRawData,this)),this._defaultLabelLine(t)},Ib.prototype.mergeOption=function(){Sb.prototype.mergeOption.apply(this,arguments)},Ib.prototype.getInitialData=function(){return e=V(e={coordDimensions:["value"],encodeDefaulter:M(ld,t=this)})?{coordDimensions:e}:P({encodeDefine:t.getEncode()},e),i=t.getSource(),e=Iv(i,e).dimensions,(e=new Tv(e,t)).initData(i,n),e;var t,e,n,i},Ib.prototype.getDataParams=function(t){var e,n=this.getData(),i=Mb(n),o=i.seats,i=(o||(e=[],n.each(n.mapDimension("value"),function(t){e.push(t)}),o=i.seats=rr(e,n.hostModel.get("percentPrecision"))),Sb.prototype.getDataParams.call(this,t));return i.percent=o[t]||0,i.$vars.push("percent"),i},Ib.prototype._defaultLabelLine=function(t){br(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},Ib.type="series.pie",Ib.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},Ib);function Ib(){return null!==Sb&&Sb.apply(this,arguments)||this}function Cb(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){for(var r=t.children,a=r.length,s=0,l=0;0<=--a;){var u=r[a];u.hierNode.prelim+=s,u.hierNode.modifier+=s,l+=u.hierNode.change,s+=u.hierNode.shift+l}n=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-n):t.hierNode.prelim=n}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var o=t,r=t,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=Lb(s),r=Pb(r),s&&r;){o=Lb(o),a=Pb(a),o.hierNode.ancestor=t;var p=s.hierNode.prelim+c-r.hierNode.prelim-u+i(s,r);0t.x)||(g-=Math.PI)),d=y?"left":"right",t=(f=(l=s.getModel("label")).get("rotate"))*(Math.PI/180),y=r.getTextContent())&&(r.setTextConfig({position:l.get("position")||d,rotation:null==f?-g:t,origin:"center"}),y.setStyle("verticalAlign","middle")),s.get(["emphasis","focus"])),l="relative"===r?Nt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,d=(l&&(D(i).focus=l),o),f=a,g=u,t=i,y=c,s=h,r=p,l=e,o=f.getModel(),u=d.get("edgeShape"),c=d.get("layout"),h=d.getOrient(),p=d.get(["lineStyle","curveness"]),e=d.get("edgeForkPosition"),m=o.getModel("lineStyle").getLineStyle(),v=t.__edge;if("curve"===u)f.parentNode&&f.parentNode!==g&&Oh(v=v||(t.__edge=new ah({shape:aw(c,h,p,y,y)})),{shape:aw(c,h,p,s,r)},d);else if("polyline"===u&&"orthogonal"===c&&f!==g&&f.children&&0!==f.children.length&&!0===f.isExpand){for(var _=f.children,x=[],b=0;b<_.length;b++){var w=_[b].getLayout();x.push([w.x,w.y])}Oh(v=v||(t.__edge=new $b({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:e}})),{shape:{parentPoint:[r.x,r.y],childPoints:x}},d)}v&&("polyline"!==u||f.isExpand)&&(v.useStyle(B({strokeNoScale:!0,fill:null},m)),Wl(v,o,"lineStyle"),Ml(v),l.add(v)),i.__edge&&(i.onHoverStateChange=function(t){var e;"blur"===t||(e=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex))&&e.hoverState===tl||bl(i.__edge,t)})}function iw(t,e,n,i,o){var r,a,s=ow(e.tree.root,t),l=s.source,s=s.sourceLayout,t=e.getItemGraphicEl(t.dataIndex);t&&(e=e.getItemGraphicEl(l.dataIndex).__edge,r=t.__edge||(!1===l.isExpand||1===l.children.length?e:void 0),t=i.get("edgeShape"),l=i.get("layout"),e=i.get("orient"),a=i.get(["lineStyle","curveness"]),r)&&("curve"===t?Eh(r,{shape:aw(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&Eh(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}))}function ow(t,e){for(var n,i=e.parentNode!==t&&e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode!==t&&i.parentNode||i;return{source:i,sourceLayout:n}}function rw(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=ow(e.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};Eh(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),r.children.forEach(function(t){iw(t,e,i,o,s)}),iw(r,e,i,o,s)}function aw(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g;return"radial"===t?(u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY,t=Ab(u,h),d=Ab(u,h+(p-h)*n),f=Ab(c,p+(h-p)*n),g=Ab(c,p),{x1:t.x||0,y1:t.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:f.x||0,cpy2:f.y||0}):(u=i.x,h=i.y,c=o.x,p=o.y,"LR"!==e&&"RL"!==e||(r=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),"TB"!==e&&"BT"!==e||(r=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}var sw=Pr();function lw(t,e){var n;return sw(n=this).mainData===n?dw((n=P({},sw(this).datas))[this.dataType]=e,n,t):fw(e,this.dataType,sw(this).mainData,t),e}function uw(t,e){return t.struct&&t.struct.update(),e}function hw(n,i){return E(sw(i).datas,function(t,e){t!==i&&fw(t.cloneShallow(),e,i,n)}),i}function cw(t){var e=sw(this).mainData;return null==t||null==e?e:sw(e).datas[t]}function pw(){var e=sw(this).mainData;return null==e?[{data:e}]:F(ct(sw(e).datas),function(t){return{type:t,data:sw(e).datas[t]}})}function dw(n,t,i){sw(n).datas={},E(t,function(t,e){fw(t,e,n,i)})}function fw(t,e,n,i){sw(n).datas[e]=t,sw(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=cw,t.getLinkedDataAll=pw}yw.prototype.isRemoved=function(){return this.dataIndex<0},yw.prototype.eachNode=function(t,e,n){T(t)&&(n=e,e=t,t=null);var i,o=(t=G(t=t||{})?{order:t}:t).order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},yw.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;er&&(r=t.depth)}),t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:r);return o.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),o.data},bw.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},bw.prototype.setZoom=function(t){this.option.zoom=t},bw.prototype.setCenter=function(t){this.option.center=t},bw.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),i=r.getValue(),a=r.name;r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return Ig("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},bw.prototype.getDataParams=function(t){var e=_w.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}(t,this),e.collapsed=!t.isExpand,e},bw.type="series.tree",bw.layoutMode="box",bw.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500};var _w,xw=bw;function bw(){var t=null!==_w&&_w.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function ww(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;0<=r;r--)i.push(o[r])}}function Sw(t,k){t.eachSeriesByType("tree",function(t){var e=function(t,e){return Bp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e=k),n=(t.layoutInfo=e,t.get("layout")),i=0,o=0,r=null;r="radial"===n?(i=2*Math.PI,o=Math.min(e.height,e.width)/2,kb(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,kb());var a,s,l,u,h,c,p,d,f,g=(e=t.getData().tree.root).children[0];if(g){var y=e;y.hierNode={defaultAncestor:null,ancestor:y,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var m,v,_=[y];m=_.pop();)if(v=m.children,m.isExpand&&v.length)for(var x=v.length-1;0<=x;x--){var b=v[x];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:x,thread:null},_.push(b)}for(var w,S=Cb,M=r,T=[g],I=[];w=T.pop();)if(I.push(w),w.isExpand){var C=w.children;if(C.length)for(var D=0;Ds.getLayout().x&&(s=t),t.depth>l.depth&&(l=t)}),e=a===s?1:r(a,s)/2,u=e-a.getLayout().x,d=p=c=h=0,"radial"===n?(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),ww(g,function(t){p=(t.getLayout().x+u)*h,d=(t.depth-1)*c;var e=Ab(p,d);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:d},!0)})):"RL"===(f=t.getOrient())||"LR"===f?(c=o/(s.getLayout().x+e+u),h=i/(l.depth-1||1),ww(g,function(t){d=(t.getLayout().x+u)*c,p="LR"===f?(t.depth-1)*h:i-(t.depth-1)*h,t.setLayout({x:p,y:d},!0)})):"TB"!==f&&"BT"!==f||(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),ww(g,function(t){p=(t.getLayout().x+u)*h,d="TB"===f?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:p,y:d},!0)}))}})}function Mw(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();P(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}function Tw(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Iw(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=n.dataIndex,t=t.getData().tree.getNodeByDataIndex(e);t.isExpand=!t.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(u,t,h){t.eachComponent({mainType:"series",subType:"tree",query:u},function(t){var e,n,i,o,r,a,s=t.coordinateSystem,l=(l=u,e=void 0,n=h,o=(s=s).getZoom(),r=s.getCenter(),a=l.zoom,r=s.projectedToPoint?s.projectedToPoint(r):s.dataToPoint(r),null!=l.dx&&null!=l.dy&&(r[0]-=l.dx,r[1]-=l.dy,s.setCenter(Tw(s,r),n)),null!=a&&(e&&(i=e.min||0,e=e.max||1/0,a=Math.max(Math.min(o*a,e),i)/o),s.scaleX*=a,s.scaleY*=a,e=(l.originX-s.x)*(a-1),i=(l.originY-s.y)*(a-1),s.x-=e,s.y-=i,s.updateTransform(),s.setCenter(Tw(s,r),n),s.setZoom(a*o)),{center:s.getCenter(),zoom:s.getZoom()});t.setCenter&&t.setCenter(l.center),t.setZoom&&t.setZoom(l.zoom)})})}G_(function(t){t.registerChartView(Qb),t.registerSeriesModel(xw),t.registerLayout(Sw),t.registerVisual(Mw),Iw(t)});u(kw,Cw=g),kw.type="grid",kw.dependencies=["xAxis","yAxis"],kw.layoutMode="box",kw.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var Cw,Dw=kw;function kw(){return null!==Cw&&Cw.apply(this,arguments)||this}u(Pw,Aw=g),Pw.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Er).models[0]},Pw.type="cartesian2dAxis";var Aw,Lw=Pw;function Pw(){return null!==Aw&&Aw.apply(this,arguments)||this}st(Lw,z_);var kc={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Ur=d({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},kc),qy=d({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},kc),Ow={category:Ur,value:qy,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},qy),log:B({logBase:10},qy)},Nw={value:1,category:1,time:1,log:1};function Rw(r,a,s,l){E(Nw,function(t,o){var e,n=d(d({},Ow[o],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Fp(this),i=n?Gp(t):{};d(t,e.getTheme().get(o+"Axis")),d(t,this.getDefaultOption()),t.type=Ew(t),n&&Vp(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=zv.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=a+"Axis."+o,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+o,t}r.registerComponentModel(n)}),r.registerSubTypeDefaulter(a+"Axis",Ew)}function Ew(t){return t.type||(t.data?"category":"value")}function zw(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}zw.prototype.getAxis=function(t){return this._axes[t]},zw.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},zw.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ht(this.getAxes(),function(t){return t.scale.type===e})},zw.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var Bw=["x","y"];function Fw(t){return"interval"===t.type||"time"===t.type}u(Hw,Vw=zw),Hw.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;Fw(o)&&Fw(r)&&(o=o.getExtent(),r=r.getExtent(),i=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],n=r[1]-r[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-o[0]*t,o=i[1]-r[0]*e,i=this._transform=[t,0,0,e,n,o],this._invTransform=Ve([],i))},Hw.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Hw.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},Hw.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Hw.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new W(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},Hw.prototype.dataToPoint=function(t,e,n){n=n||[];var i,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?ee(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(o,e)),n[1]=i.toGlobalCoord(i.dataToCoord(r,e)),n)},Hw.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e},Hw.prototype.pointToData=function(t,e){var n,i,o=[];return this._invTransform?ee(o,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),o[0]=n.coordToData(n.toLocalCoord(t[0]),e),o[1]=i.coordToData(i.toLocalCoord(t[1]),e),o)},Hw.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Hw.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new W(n,i,t,e)};var Vw,Gw=Hw;function Hw(){var t=null!==Vw&&Vw.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Bw,t}u(Yw,Ww=Oc),Yw.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Yw.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},Yw.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Yw.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var Ww,Xw=Yw;function Yw(t,e,n,i,o){t=Ww.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function Uw(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(r&&(h=r.toGlobalCoord(r.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),o.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),xt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}function Zw(t){return"cartesian2d"===t.get("coordinateSystem")}function qw(i){var o={xAxisModel:null,yAxisModel:null};return E(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,Er).models[0];o[e]=n}),o}var jw=Math.log;$w.prototype.getRect=function(){return this._rect},$w.prototype.update=function(t,e){var n=this._axesMap;function i(t){var d,e=ct(t),n=e.length;if(n){for(var i=[],o=n-1;0<=o;o--){var r=t[+e[o]],a=r.model,s=r.scale;Vv(s)&&a.get("alignTicks")&&null==a.get("interval")?i.push(r):(A_(s,a),Vv(s)&&(d=r))}i.length&&(d||A_((d=i.pop()).scale,d.model),E(i,function(t){var e=t.scale,t=t.model,n=d.scale,i=Jv.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,n=i.getInterval.call(n),s=(t=k_(e,t)).extent,l=t.fixMin,t=t.fixMax,u=("log"===e.type&&(u=jw(e.base),s=[jw(s[0])/u,jw(s[1])/u]),e.setExtent(s[0],s[1]),e.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:t}),i.getExtent.call(e)),h=(l&&(s[0]=u[0]),t&&(s[1]=u[1]),i.getInterval.call(e)),c=s[0],p=s[1];if(l&&t)h=(p-c)/a;else if(l)for(p=s[0]+h*a;ps[0]&&isFinite(c)&&isFinite(s[0]);)h=Hv(h),c=s[1]-h*a;else{u=(h=e.getTicks().length-1>a?Hv(h):h)*a;(c=tr((p=Math.ceil(s[1]/h)*h)-u))<0&&0<=s[0]?(c=0,p=tr(u)):0h[1]?-1:1,a=["start"===l?h[0]-a*u:"end"===l?h[1]+a*u:(h[0]+h[1])/2,sS(l)?t.labelOffset+s*u:0],null!=(u=e.get("nameRotate"))&&(u=u*eS/180),sS(l)?o=nS.innerTextLayout(t.rotation,null!=u?u:t.rotation,s):(s=t.rotation,l=l,h=h,u=ar((u=u||0)-s),s=h[0]>h[1],h="start"===l&&!s||"start"!==l&&s,l=sr(u-eS/2)?(c=h?"bottom":"top","center"):sr(u-1.5*eS)?(c=h?"top":"bottom","center"):(c="middle",u<1.5*eS&&eS/2u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)n[o],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=N(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+g),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[o],d?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-g,0),e[r]=f[r],u.setClipPath(new Ps({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&Oh(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},cM.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},cM.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(E(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=n.get("pageFormatter"),r=i.pageIndex,r=null!=r?r+1:0,a=i.pageCount;t&&e&&t.setStyle("text",G(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},cM.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=lM[t],r=uM[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,d=p=n,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i=e&&t.s<=e+i}},cM.prototype._findTargetItemIndex=function(n){return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===n&&(i=e)}),null!=i?i:o):0;var i,o},cM.type="legend.scroll",cM);function cM(){var t=null!==aM&&aM.apply(this,arguments)||this;return t.type=cM.type,t.newlineDisabled=!0,t._currentIndex=0,t}G_(function(t){G_(eM),t.registerComponentModel(iM),t.registerComponentView(hM),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var pM=Pr(),dM=y,fM=S;function gM(){this._dragging=!1,this.animationThreshold=15}function yM(t,e,n,i){!function n(i,t){{var o;if(O(i)&&O(t))return o=!0,E(t,function(t,e){o=o&&n(i[e],t)}),!!o}return i===t}(pM(n).lastProp,i)&&(pM(n).lastProp=i,e?Oh(n,i,t):(n.stopAnimation(),n.attr(i)))}function mM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function vM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function _M(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}function xM(t,e,n,i,o){var r=bM(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=Tp(n.get("padding")||0),s=n.getFont(),l=To(r,s),u=o.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),o.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),o=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,i)-c,o[1]=Math.min(o[1]+h,l)-h,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:vc(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function bM(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:O_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},E(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),G(o)?a=o.replace("{value}",a):T(o)&&(a=o(r))),a}function wM(t,e,n){var i=Oe();return Be(i,i,n.rotation),ze(i,i,n.position),nc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}gM.prototype.render=function(t,e,n,i){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=M(yM,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new Wo,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),_M(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},gM.prototype.remove=function(t){this.clear(t)},gM.prototype.dispose=function(t){this.clear(t)},gM.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=cS(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},gM.prototype.makeElOption=function(t,e,n,i,o){},gM.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=pM(t).pointerEl=new pc[o.type](dM(e.pointer)),t.add(o))},gM.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=pM(t).labelEl=new zs(dM(e.label)),t.add(e),mM(e,i))},gM.prototype.updatePointerEl=function(t,e,n){t=pM(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},gM.prototype.updateLabelEl=function(t,e,n,i){t=pM(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),mM(t,i))},gM.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(e=!0,o=this._handle=sc(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ce(t.event)},onmousedown:fM(this._onHandleDragMove,this,0,0),drift:fM(this._onHandleDragMove,this),ondragend:fM(this._onHandleDragEnd,this)}),i.add(o)),_M(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=r.get("size"))||(a=[a,a]),o.scaleX=a[0]/2,o.scaleY=a[1]/2,cy(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)):(o&&i.remove(o),this._handle=null))},gM.prototype._moveHandleToValue=function(t,e){yM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,vM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},gM.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(vM(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(vM(t)),pM(n).lastProp=null,this._doDispatchAxisPointer())},gM.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},gM.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},gM.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),py(this,"_doDispatchAxisPointer")},gM.prototype.doClear=function(){},gM.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};u(TM,SM=gM),TM.prototype.makeElOption=function(t,e,n,i,o){var r,a,s=n.axis,l=s.grid,u=i.get("type"),h=IM(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(r=(a=i).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=CM[u](s,c,h)).style=r,t.graphicKey=a.type,t.pointer=a),Uw(l.model,n));u=e,s=t,c=p,h=n,r=i,a=o,l=nS.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),xM(s,h,r,a,{position:wM(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},TM.prototype.getHandleTransform=function(t,e,n){var i=Uw(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),wM(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},TM.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=IM(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),(o[1]+o[0])/2),r=[e,e];return r[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var SM,MM=TM;function TM(){return null!==SM&&SM.apply(this,arguments)||this}function IM(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var CM={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:(i=[e,n[0]],e=[e,n[1]],n=DM(t),{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]})};var i},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,o],i=DM(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function DM(t){return"x"===t.dim?0:1}u(LM,kM=g),LM.type="axisPointer",LM.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var kM,AM=LM;function LM(){var t=null!==kM&&kM.apply(this,arguments)||this;return t.type=LM.type,t}var PM=Pr(),OM=E;function NM(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){n=p;var n,i,t,o,r,a,s,l={dispatchAction:u,pendings:i={showTip:[],hideTip:[]}};function u(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=u,n.dispatchAction(t))}OM(PM(c).records,function(t){t&&h(t,e,l.dispatchAction)}),o=p,a=(t=l.pendings).showTip.length,s=t.hideTip.length,a?r=t.showTip[a-1]:s&&(r=t.hideTip[s-1]),r&&(r.dispatchAction=null,o.dispatchAction(r))})}w.node||(i=e.getZr(),PM(i).records||(PM(i).records={}),p=e,PM(c=i).initialized||(PM(c).initialized=!0,o("click",M(EM,"click")),o("mousemove",M(EM,"mousemove")),o("globalout",RM)),(PM(i).records[t]||(PM(i).records[t]={})).handler=n)}function RM(t,e,n){t.handler("leave",null,n)}function EM(t,e,n,i){e.handler(t,n,i)}function zM(t,e){w.node||(e=e.getZr(),(PM(e).records||{})[t]&&(PM(e).records[t]=null))}u(VM,BM=jg),VM.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";NM("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},VM.prototype.remove=function(t,e){zM("axisPointer",e)},VM.prototype.dispose=function(t,e){zM("axisPointer",e)},VM.type="axisPointer";var BM,FM=VM;function VM(){var t=null!==BM&&BM.apply(this,arguments)||this;return t.type=VM.type,t}function GM(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Lr(n=e.getData(),t))||s<0||V(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(F(o.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var HM=Pr();function WM(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||S(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return qM(v)&&(v=GM({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=qM(v),a=_.axesInfo,i=b.axesInfo,s="leave"===m||qM(v),l={},e={list:[],map:{}},u={showPointer:M(YM,o={}),showTooltip:M(UM,e)},E(b.coordSysMap,function(t,e){var o=r||t.containPoint(v);E(b.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!o||a&&!i||null!=(i=null!=(i=i&&i.value)||r?i:n.pointToData(v))&&XM(t,i,u,!1,l)})}),h={},E(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&E(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,ZM(t),ZM(n)))),h[n.key]=e)})}),E(h,function(t,e){XM(i[e],t,u,!0,l)}),g=o,_=i,y=l.axesInfo=[],E(_,function(t,e){var n=t.axisPointerModel.option,e=g[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&y.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,!qM(t=v)&&m.list.length?(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})):e({type:"hideTip"}),t=i,x=(_=n).getZr(),m="axisPointerLastHighlights",c=HM(x)[m]||{},p=HM(x)[m]={},E(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&E(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;p[e]=t})}),d=[],f=[],E(c,function(t,e){p[e]||f.push(t)}),E(p,function(t,e){c[e]||d.push(t)}),f.length&&_.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:f}),d.length&&_.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:d}),l}function XM(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,f=-1,E(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(h);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,l,u),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],l,"category"===u.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=l-o,(n=Math.abs(i))<=d)&&((n'):""),G(t))h.innerHTML=t+c;else if(t){h.innerHTML="",V(t)||(t=[t]);for(var p,d=0;d"),r=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,o,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,r,p,Math.random()+"",n[0],n[1],o,null,g)})},_T.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=D(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=xT([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new Rg,i.marker=o.makeTooltipMarker("item",Lp(i.color),f),g=kf(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=g.frag,a=r?Lg(e?P({valueFormatter:e},r):r,o,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},_T.prototype._showComponentItemTooltip=function(e,n,t){var i=D(n),o=i.tooltipConfig.option||{},r=[o=G(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&r.push(i),r.push({formatter:o.content}),e.positionDefault),a=xT(r,this._tooltipModel,i?{position:i}:null),s=a.get("content"),l=Math.random()+"",u=new Rg;this._showOrMove(a,function(){var t=y(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},_T.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&((u=this._tooltipContent).setEnterable(n.get("enterable")),h=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,h&&(t=G(h)?(p=n.ecModel.get("useUTC"),t=h,kp(t=(d=V(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?sp(d.axisValue,t,p):t,i,!0)):T(h)?(d=S(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(t,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},_T.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||V(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:V(e)?void 0:{color:i||e.color||e.borderColor}},_T.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l,u,h,c=this._api.getWidth(),p=this._api.getHeight(),d=(e=e||t.get("position"),o.getSize()),f=t.get("align"),g=t.get("verticalAlign"),y=a&&a.getBoundingRect().clone();a&&y.applyTransform(a.transform),V(e=T(e)?e([n,i],r,o.el,y,{viewSize:[c,p],contentSize:d.slice()}):e)?(n=X(e[0],c),i=X(e[1],p)):O(e)?((r=e).width=d[0],r.height=d[1],n=(r=Bp(r,{width:c,height:p})).x,i=r.y,g=f=null):i=(n=(s=G(e)&&a?function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,y,d,t.get("borderWidth")):(r=n,a=i,e=c,y=p,l=f?null:20,u=g?null:20,h=(h=o).getSize(),s=h[0],h=h[1],null!=l&&(eh[0]?s:o)[0]:r[0]=(a[0]>h[0]?o:s)[0],"y0"===n[1]?r[1]=(a[1]>h[1]?s:o)[1]:r[1]=(a[1]>h[1]?o:s)[1],i.getMarkerPosition(r,n,!0)):(a=[l=t.get(n[0],e),u=t.get(n[1],e)],c.clampData&&c.clampData(a,a),c.dataToPoint(a,!0)),Gx(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),PI(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):PI(u)&&(h[1]=s.toGlobalCoord(s.getExtent()["y0"===n[1]?0:1]))),isNaN(d)||(h[0]=d),isNaN(p)||(h[1]=p)):h=[d,p],h}var EI,zI=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],BI=(u(FI,EI=gu),FI.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=CT.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=F(zI,function(t){return RI(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},FI.prototype.renderSeries=function(a,o,t,s){var l=a.coordinateSystem,e=a.id,u=a.getData(),n=this.markerGroupMap,i=n.get(e)||n.set(e,{group:new Wo}),h=(this.group.add(i.group),this.markKeep(i),function(t,n,e){var i,o;{var r;i=t?(r=F(t&&t.dimensions,function(t){var e=n.getData();return P(P({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=F(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new Tv(o,e)):new Tv(o=[{name:"value",type:"float"}],e)}e=F(e.get("data"),M(AI,n,t,e)),t&&(e=ht(e,M(NI,t))),t=t?function(t,e,n,i){return Hf(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return Hf(t.value,o[i])};return i.initData(e,null,t),i.hasItemOption=!0,i}(l,a,o));o.setData(h),h.each(function(e){var t=F(zI,function(t){return RI(h,e,t,a,s)}),n=l.getAxis("x").scale,i=l.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=[n.parse(h.get("x0",e)),n.parse(h.get("x1",e))],i=[i.parse(h.get("y0",e)),i.parse(h.get("y1",e))],o=(er(n),er(i),!!(o[0]>n[1]||o[1]i[1]||r[1]=this._data.count()-1},GI.prototype.setPlayState=function(t){this.option.autoPlay=!!t},GI.prototype.getPlayState=function(){return!!this.option.autoPlay},GI.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],E(e,function(t,e){var n,i=Cr(Sr(t),"");O(t)?(n=y(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new Tv([{name:"value",type:e}],this)).initData(o,r)},GI.prototype.getData=function(){return this._data},GI.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},GI.type="timeline",GI.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]};var VI,dh=GI;function GI(){var t=null!==VI&&VI.apply(this,arguments)||this;return t.type=GI.type,t.layoutMode="box",t}u(XI,HI=dh),XI.type="timeline.slider",XI.defaultOption=Hc(dh.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]});var HI,WI=XI;function XI(){var t=null!==HI&&HI.apply(this,arguments)||this;return t.type=XI.type,t}st(WI,Rc.prototype);u(UI,YI=jg),UI.type="timeline";var YI,_u=UI;function UI(){var t=null!==YI&&YI.apply(this,arguments)||this;return t.type=UI.type,t}u(jI,ZI=Oc),jI.prototype.getLabelModel=function(){return this.model.getModel("label")},jI.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var ZI,qI=jI;function jI(t,e,n,i){t=ZI.call(this,t,e,n)||this;return t.type=i||"value",t}var KI,$I=Math.PI,QI=Pr(),JI=(u(t2,KI=_u),t2.prototype.init=function(t,e){this.api=e},t2.prototype.render=function(e,t,n){var i,o,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(i=this._layout(e,n),o=this._createGroup("_mainGroup"),t=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return Ig("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},E(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,t,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},t2.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t2.prototype.dispose=function(){this._clearTimer()},t2.prototype._layout=function(t,e){var n,i,o,r,a=t.get(["label","position"]),s=t.get("orient"),l=(l=e,Bp((r=t).getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()},r.get("padding"))),e={horizontal:"center",vertical:0<=(r=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2n[1]?n[1]:t)":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},s2=(v2.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):!!H(e)&&this._condVal.test(t+"")},v2),l2=(m2.prototype.evaluate=function(){return this.value},m2),u2=(y2.prototype.evaluate=function(){for(var t=this.children,e=0;e