!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 a=function(t,e){return(a=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}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}var w=new function(){this.browser=new s,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):(tt=navigator.userAgent,le=(Gt=w).browser,st=tt.match(/Firefox\/([\d.]+)/),_=tt.match(/MSIE\s([\d.]+)/)||tt.match(/Trident\/.+?rv:(([\d.]+))/),k=tt.match(/Edge?\/([\d.]+)/),tt=/micromessenger/i.test(tt),st&&(le.firefox=!0,le.version=st[1]),_&&(le.ie=!0,le.version=_[1]),k&&(le.edge=!0,le.version=k[1],le.newEdge=18<+k[1].split(".")[0]),tt&&(le.weChat=!0),Gt.svgSupported="undefined"!=typeof SVGRect,Gt.touchEventsSupported="ontouchstart"in window&&!le.ie&&!le.edge,Gt.pointerEventsSupported="onpointerdown"in window&&(le.edge||le.ie&&11<=+le.version),Gt.domSupported="undefined"!=typeof document,st=document.documentElement.style,Gt.transform3dSupported=(le.ie&&"transition"in st||le.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in st)&&!("OTransition"in st),Gt.transformSupported=Gt.transform3dSupported||le.ie&&9<=+le.version);var l=12,f="sans-serif",J=l+"px "+f;var h,c,p=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 xe(t){return"CANVAS"===t.nodeName.toUpperCase()}var _e=/([&<>"'])/g,be={"&":"&","<":"<",">":">",'"':""","'":"'"};function we(t){return null==t?"":(t+"").replace(_e,function(t,e){return be[e]})}var Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=[],Ie=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Te(t,e,n,i){return n=n||{},i?Ce(t,e,n):Ie&&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):Ce(t,e,n),n}function Ce(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(xe(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,n.zrY=e-i.top;if(ve(Me,t,o,e))return n.zrX=Me[0],n.zrY=Me[1]}n.zrX=n.zrY=0}function De(t){return t||window.event}function Ae(t,e,n){var i;return null==(e=De(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),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},nn.prototype.clone=function(){return new nn(this.x,this.y,this.width,this.height)},nn.prototype.copy=function(t){nn.copy(this,t)},nn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},nn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},nn.prototype.isZero=function(){return 0===this.width||0===this.height},nn.create=function(t){return new nn(t.x,t.y,t.width,t.height)},nn.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},nn.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}et(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){pn.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=yn(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>>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 Sn(t,e,n,i){var g,f,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=xn(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),bi(t,e),e):void mi(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(mi(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),bi(t,e),e):void mi(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?mi(e,+a[0],+a[1],+a[2],1):mi(e,0,0,0,1);s=gi(a.pop());case"rgb":return 3<=a.length?(mi(e,di(a[0]),di(a[1]),di(a[2]),3===a.length?s:gi(a[3])),bi(t,e),e):void mi(e,0,0,0,1);case"hsla":return 4!==a.length?void mi(e,0,0,0,1):(a[3]=gi(a[3]),Si(a,e),bi(t,e),e);case"hsl":return 3!==a.length?void mi(e,0,0,0,1):(Si(a,e),bi(t,e),e);default:return}}mi(e,0,0,0,1)}}function Si(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=gi(t[1]),o=gi(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return mi(e=e||[],ci(255*fi(o,i,n+1/3)),ci(255*fi(o,i,n)),ci(255*fi(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Mi(t,e){var n=wi(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=f(n-1,c-2)}o=h[n+1],i=h[n]}i&&o&&(this._lastFr=n,this._lastFrP=e,g=o.percent-i.percent,r=0==g?1:f((e-i.percent)/g,1),o.easingFunc&&(r=o.easingFunc(r)),f=s?this._additiveValue:d?no:t[p],(eo(u)||d)&&(f=f||(this._additiveValue=[])),this.discrete?t[p]=(r<1?i:o).rawValue:eo(u)?(1===u?qi:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},yr.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},yr.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},yr.prototype.refreshHover=function(){this._needsRefreshHover=!0},yr.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},yr.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},yr.prototype.clearAnimation=function(){this.animation.clear()},yr.prototype.getWidth=function(){return this.painter.getWidth()},yr.prototype.getHeight=function(){return this.painter.getHeight()},yr.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},yr.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},yr.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},yr.prototype.off=function(t,e){this.handler.off(t,e)},yr.prototype.trigger=function(t,e){this.handler.trigger(t,e)},yr.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;el&&(l=s[h],u=h);++r[u],s[u]=0,++a}return B(r,function(t){return t/i})}var Dr=9007199254740991;function Ar(t){var e=2*Math.PI;return(t%e+e)%e}function kr(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=Ga(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(hs.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},As.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(hs.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},As.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(hs.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},As.prototype.arc=function(t,e,n,i,o,r){this._drawPendingPt(),Is[0]=i,Is[1]=o,Cs(Is,r);var a=(o=Is[1])-(i=Is[0]);return this.addData(hs.A,t,e,n,n,i,a,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=xs(o)*n+t,this._yi=_s(o)*n+e,this},As.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},As.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(hs.R,t,e,n,i),this},As.prototype.closePath=function(){this._drawPendingPt(),this.addData(hs.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},As.prototype.fill=function(t){t&&t.fill(),this.toStatic()},As.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},As.prototype.len=function(){return this._len},As.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ms||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;hn||bs(y)>i||c===e-1)&&(g=Math.sqrt(C*C+y*y),o=f,r=x);break;case hs.C:var m=t[c++],v=t[c++],x=(f=t[c++],t[c++]),_=t[c++],b=t[c++],g=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 g=d*p,f=Yn(t,n,o,a,g),g=Yn(e,i,r,s,g),y=f-u,m=g-h;c+=Math.sqrt(y*y+m*m),u=f,h=g}return c}(o,r,m,v,f,x,_,b,10),o=_,r=b;break;case hs.Q:g=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=Kn(t,n,o,p),p=Kn(e,i,r,p),g=d-s,f=p-l;u+=Math.sqrt(g*g+f*f),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],f=t[c++],x=t[c++],10),o=f,r=x;break;case hs.A:var _=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=I+M;c+=1,t[c++],d&&(a=xs(M)*w+_,s=_s(M)*S+b),g=vs(w,S)*ms(Ss,Math.abs(I)),o=xs(T)*w+_,r=_s(T)*S+b;break;case hs.R:a=o=t[c++],s=r=t[c++],g=2*t[c++]+2*t[c++];break;case hs.Z:var C=a-o,y=s-r;g=Math.sqrt(C*C+y*y),o=a,r=s}0<=g&&(u+=l[h++]=g)}return this._pathLen=u},As.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,E=this._ux,z=this._uy,V=this._len,c=e<1,p=0,d=0,g=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var f=0;fs){var w=(s-p)/y;t.lineTo(o*(1-w)+v*w,r*(1-w)+x*w);break t}p+=y}t.lineTo(v,x),o=v,r=x,g=0}else{_=_*_+b*b;g<_&&(l=v,u=x,g=_)}break;case hs.C:var S=h[f++],M=h[f++],I=h[f++],T=h[f++],b=h[f++],_=h[f++];if(c){if(p+(y=a[d++])>s){jn(o,S,I,b,w=(s-p)/y,cs),jn(r,M,T,_,w,ps),t.bezierCurveTo(cs[1],ps[1],cs[2],ps[2],cs[3],ps[3]);break t}p+=y}t.bezierCurveTo(S,M,I,T,b,_),o=b,r=_;break;case hs.Q:if(S=h[f++],M=h[f++],I=h[f++],T=h[f++],c){if(p+(y=a[d++])>s){Qn(o,S,I,w=(s-p)/y,cs),Qn(r,M,T,w,ps),t.quadraticCurveTo(cs[1],ps[1],cs[2],ps[2]);break t}p+=y}t.quadraticCurveTo(S,M,I,T),o=I,r=T;break;case hs.A:var C=h[f++],D=h[f++],A=h[f++],k=h[f++],L=h[f++],P=h[f++],O=h[f++],F=!h[f++],G=ks&&(N=L+P*(s-p)/y,W=!0),p+=y),R&&t.ellipse?t.ellipse(C,D,A,k,O,L,N,F):t.arc(C,D,G,L,N,F),W)break t;B&&(n=xs(L)*A+C,i=_s(L)*k+D),o=xs(N)*A+C,r=_s(N)*k+D;break;case hs.R:n=o=h[f],i=r=h[f+1],v=h[f++],x=h[f++];P=h[f++],R=h[f++];if(c){if(p+(y=a[d++])>s){O=s-p;t.moveTo(v,x),t.lineTo(v+ms(O,P),x),0<(O-=P)&&t.lineTo(v+P,x+ms(O,R)),0<(O-=R)&&t.lineTo(v+vs(P-O,0),x+R),0<(O-=P)&&t.lineTo(v,x+vs(R-O,0));break t}p+=y}t.rect(v,x,P,R);break;case hs.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}}},As.prototype.clone=function(){var t=new As,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},As.CMD=hs,As.initDefaultProps=((e=As.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0));var Ds=As;function As(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 ks(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(Bs[0]=-e,Bs[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(zs-1e-4<=n)return o=zs,h=r?1:-1,a>=Bs[i=0]+t&&a<=Bs[1]+t?h:0;oMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,x,_,_+b,w,I,o);u=Math.cos(_+b)*v+y,h=Math.sin(_+b)*x+m;break;case Es.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],M=p+a[d++],n){if(ks(c,p,S,p,e,i,o)||ks(S,p,S,M,e,i,o)||ks(S,M,c,M,e,i,o)||ks(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 Es.Z:if(n){if(ks(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 _d(t,e){return e=e||"transparent",Y(t)?t:O(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function bd(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var wd=et,Sd=["left","right","top","bottom","width","height"],Md=[["width","left","right"],["height","top","bottom"]];function Id(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 Td=Id;function Cd(t,e,n){n=gd(n||0);var i=e.width,o=e.height,r=j(t.left,i),a=j(t.top,o),e=j(t.right,i),s=j(t.bottom,o),l=j(t.width,i),u=j(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]}(i,a):n)||n)&&i.length?(a=i[t],o&&(r[o]=a),e.paletteIdx=(t+1)%i.length,a):void 0}var ug,hg,cg,pg,dg="\0_ec_inner",gg=(u(fg,pg=Tp),fg.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Tp(i),this._locale=new Tp(o),this._optionManager=r},fg.prototype.setOption=function(t,e,n){e=vg(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},fg.prototype.resetOption=function(t,e){return this._resetOption(t,vg(e))},fg.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)):cg(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&&et(n,function(t){i=!0,this._mergeOption(t,e)},this),i},fg.prototype.mergeOption=function(t){this._mergeOption(t,null)},fg.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=N(),p=t&&t.replaceMergeMainTypeMap;$d(this).datasetMap=N(),et(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?S(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=Ur(i[e=r]);var t=(e=(e=ig.get(e))&&e(t))?n.concat(e):n,e=h.get(r),n=Kr(e,t,e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll");na(n,r,g),o[r]=null,h.set(r,null),c.set(r,0);var a,s=[],l=[],u=0;et(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=H({componentIndex:e},t.keyInfo),H(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&&ug(this)},this),this._seriesIndices||ug(this)},fg.prototype.getOption=function(){var a=S(this.option);return et(a,function(t,e){if(g.hasClass(e)){for(var n=Ur(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!ea(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[dg],a},fg.prototype.getTheme=function(){return this._theme},fg.prototype.getLocaleModel=function(){return this._locale},fg.prototype.setUpdatePayload=function(t){this._payload=t},fg.prototype.getUpdatePayload=function(){return this._payload},fg.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;if[1]&&(f[1]=g)}return{start:a,end:this._rawCount=this._count=s}},hy.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=B(r,function(t){return t.property}),u=0;ug[1]&&(g[1]=f)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},hy.prototype.count=function(){return this._count},hy.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},hy.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]],f=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],g=0;g=u&&v<=h||isNaN(v))&&(a[s++]=_)}else for(g=0;gt[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=f)}}},hy.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(ay(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;h_&&(_=n,b=M)}0h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},hy.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o'+we(u)+""+h,t))}function Iy(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,g=e.valueFormatter||t.valueFormatter||function(t){return B(t=W(t)?t:[t],function(t,e){return fd(t,W(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":fd(p,"ordinal",d),r=e.valueType,g=h?[]:g(e.value),e=!c||!u,a=!c&&u,i=vy(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":Dy(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(W(e)?e.join(" "):e,o)}(t,g,e,a,i)):Cy((c?"":o)+(u?"":''+we(p)+"")+(h?"":function(t,e,n,i){e=e?"float:right;margin-left:"+(n?"10px":"20px"):"";return t=W(t)?t:[t],''+B(t,we).join("  ")+""}(g,e,a,i)),n)}function Ty(t,e,n,i,o,r){if(t)return Sy(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Cy(t,e){return'
'+t+'
'}function Dy(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ay(t,e){return _d(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function ky(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Py.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Py.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=xd({color:e,type:t,renderMode:n,markerId:i});return Y(e)?e:(this.richTextStyles[i]=e.style,e.content)},Py.prototype.wrapRichTextStyle=function(t,e){var n={},e=(W(e)?et(e,function(t){return H(n,t)}):H(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var Ly=Py;function Py(){this.richTextStyles={},this._nextStyleNameId=Fr()}function Oy(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,g=p.getData(),f=g.mapDimensionsAll("defaultedTooltip"),y=f.length,m=p.getRawValue(d),v=W(m),x=Ay(p,d);function _(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(by("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)},Vy.prototype.restoreData=function(){this.dataTask.dirty()},Vy.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return ag.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},Vy.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Vy.prototype.getProgressive=function(){return this.get("progressive")},Vy.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Vy.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Vy.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 Hy(e,n){et(Et(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,P(Yy,n))})}function Yy(t,e){t=Xy(t);return t&&t.setOutputEnd((e||this).count()),e}function Xy(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}ut(zy,Sp),ut(zy,ag),va(zy,g);Zy.prototype.init=function(t,e){},Zy.prototype.render=function(t,e,n,i){},Zy.prototype.dispose=function(t,e){},Zy.prototype.updateView=function(t,e,n,i){},Zy.prototype.updateLayout=function(t,e,n,i){},Zy.prototype.updateVisual=function(t,e,n,i){},Zy.prototype.toggleBlurSeries=function(t,e,n){},Zy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Uy=Zy;function Zy(){this.group=new Z,this.uid=Ap("viewComponent")}function jy(){var r=i();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"}}ma(Uy),wa(Uy);var qy=i(),Ky=jy(),$y=(Jy.prototype.init=function(t,e){},Jy.prototype.render=function(t,e,n,i){},Jy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&tm(t,i,"emphasis")},Jy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&tm(t,i,"normal")},Jy.prototype.remove=function(t,e){this.group.removeAll()},Jy.prototype.dispose=function(t,e){},Jy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Jy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Jy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Jy.prototype.eachRendered=function(t){qc(this.group,t)},Jy.markUpdateMethod=function(t,e){qy(t).updateMethod=e},Jy.protoInitialize=void(Jy.prototype.type="chart"),Jy);function Jy(){this.group=new Z,this.uid=Ap("viewChart"),this.renderTask=Mf({plan:em,reset:nm}),this.renderTask.context={view:this}}function Qy(t,e,n){t&&Tu(t)&&("emphasis"===e?su:lu)(t,n)}function tm(e,t,n){var i,o=ia(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=kl[t])&&Al<=32?kl[t]=Al++:i):null;null!=o?et(Ur(o),function(t){Qy(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){Qy(t,n,r)})}function em(t){return Ky(t.model)}function nm(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&qy(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),im[r]}ma($y),wa($y);var im={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)}}},om="\0__throttleOriginMethod",rm="\0__throttleRate",am="\0__throttleType";function sm(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function g(){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}},vm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},vm.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}},vm.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=N();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)})},vm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;et(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Tt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},vm.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)},vm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},vm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},vm.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))}et(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},vm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},vm.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())})},vm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},vm.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=N(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Mf({plan:Sm,reset:Mm,count:Cm}));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)},vm.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||Mf({reset:xm}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=N(),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,Mf({reset:_m,onDirty:wm})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Tt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,et(n.getSeries(),c)),h&&r.dirty()},vm.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},vm.wrapStageHandler=function(t,e){return(t=D(t)?{overallReset:t,seriesType:function(t){Dm=null;try{t(Am,km)}catch(t){}return Dm}(t)}:t).uid=Ap("stageHandler"),e&&(t.visualType=e),t};var mm=vm;function vm(t,e,n,i){this._stageTaskMap=N(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function xm(t){t.overallReset(t.ecModel,t.api,t.payload)}function _m(t){return t.overallProgress&&bm}function bm(){this.agent.dirty(),this.getDownstream().dirty()}function wm(){this.agent&&this.agent.dirty()}function Sm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Mm(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Ur(t.reset(t.model,t.ecModel,t.api,t.payload));return 1'+t.dom+""}),g.painter.getSvgRoot().innerHTML=f,i.connectedBackgroundColor&&g.painter.setBackgroundColor(i.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(i.connectedBackgroundColor&&g.add(new L({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),et(p,function(t){t=new nl({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});g.add(t)}),g.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},fv.prototype.convertToPixel=function(t,e){return K0(this,"convertToPixel",t,e)},fv.prototype.convertFromPixel=function(t,e){return K0(this,"convertFromPixel",t,e)},fv.prototype.containPixel=function(t,i){var o;if(!this._disposed)return et(ra(this._model,t),function(t,n){0<=n.indexOf("Models")&&et(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},fv.prototype.getVisual=function(t,e){var t=ra(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?Bm(n,t,e):Fm(n,e)},fv.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},fv.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},fv.prototype._initEvents=function(){var t,n,i,s=this;et(bv,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&Ym(r,function(t){var e,t=$(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=H({},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)}),et(Sv,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),et(["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?(Hm("map","selectchanged",n,e,t),Hm("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Hm("map","selected",n,e,t),Hm("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Hm("map","unselected",n,e,t),Hm("pie","unselected",n,e,t))})},fv.prototype.isDisposed=function(){return this._disposed},fv.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},fv.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ha(this.getDom(),Ov,""),e=(t=this)._api,n=t._model,et(t._componentsViews,function(t){t.dispose(n,e)}),et(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 Av[t.id])},fv.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[B0]&&(null==n&&(n=this[B0].silent),e=!0,this[B0]=null),this[V0]=!0;try{e&&U0(this),q0.update.call(this,{type:"resize",animation:H({duration:0},t&&t.animation)})}catch(t){throw this[V0]=!1,t}this[V0]=!1,Q0.call(this,n),tv.call(this,n)}}},fv.prototype.showLoading=function(t,e){this._disposed?this.id:(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Dv[t]&&(t=Dv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},fv.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},fv.prototype.makeActionFromEvent=function(t){var e=H({},t);return e.type=Sv[t.type],e},fv.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(O(e)||(e={silent:!!e}),wv[t.type]&&this._model&&(this[V0]?this._pendingActions.push(t):(n=e.silent,J0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),Q0.call(this,n),tv.call(this,n))))},fv.prototype.updateLabelLayout=function(){E0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},fv.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())},fv.internalField=(U0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Z0(t,!0),Z0(t,!1),e.plan()},Z0=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)})}),E0.trigger("series:afterupdate",t,e,n)},lv=function(t){t[F0]=!0,t.getZr().wakeUp()},uv=function(t){t[F0]&&(t.getZr().storage.traverse(function(t){mc(t)||mv(t)}),t[F0]=!1)},av=function(n){return u(t,e=xg),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){su(t,e),lv(n)},t.prototype.leaveEmphasis=function(t,e){lu(t,e),lv(n)},t.prototype.enterBlur=function(t){uu(t),lv(n)},t.prototype.leaveBlur=function(t){hu(t),lv(n)},t.prototype.enterSelect=function(t){cu(t),lv(n)},t.prototype.leaveSelect=function(t){pu(t),lv(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(sv=function(i){function o(t,e){for(var n=0;ne[1]&&(e[1]=t[1])},E1.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},E1.prototype.getExtent=function(){return this._extent.slice()},E1.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},E1.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},E1.prototype.isBlank=function(){return this._isBlank},E1.prototype.setBlank=function(t){this._isBlank=t};var N1=E1;function E1(t){this._setting=t||{},this._extent=[1/0,-1/0]}wa(N1);var z1=0,V1=(B1.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,F1);return new B1({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},B1.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},B1.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return Y(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},B1.prototype._getOrCreateMap=function(){return this._map||(this._map=N(this.categories))},B1);function B1(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++z1}function F1(t){return O(t)&&null!=t.value?t.value:t+""}function G1(t){return"interval"===t.type||"log"===t.type}function W1(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=Nr(r/e,!0),e=(null!=n&&rn[1]&&(n[0]=n[1]),o}function H1(t){var e=Math.pow(10,Rr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,wr(t*e)}function Y1(t){return Mr(t)+2}function X1(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function U1(t,e){return t>=e[0]&&t<=e[1]}function Z1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function j1(t,e){return t*(e[1]-e[0])+e[0]}u($1,q1=N1),$1.prototype.parse=function(t){return null==t?NaN:Y(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},$1.prototype.contain=function(t){return U1(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},$1.prototype.normalize=function(t){return Z1(t=this._getTickNumber(this.parse(t)),this._extent)},$1.prototype.scale=function(t){return t=Math.round(j1(t,this._extent)),this.getRawOrdinalNumber(t)},$1.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},$1.prototype.getMinorTicks=function(t){},$1.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},$1.prototype.getOrdinalMeta=function(){return this._ordinalMeta},$1.prototype.calcNiceTicks=function(){},$1.prototype.calcNiceExtent=function(){},$1.type="ordinal";var q1,K1=$1;function $1(t){var t=q1.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return W(e=e||new V1({}))&&(e=new V1({categories:B(e,function(t){return O(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}N1.registerClass(K1);var J1,Q1=wr,tx=(u(ex,J1=N1),ex.prototype.parse=function(t){return t},ex.prototype.contain=function(t){return U1(t,this._extent)},ex.prototype.normalize=function(t){return Z1(t,this._extent)},ex.prototype.scale=function(t){return j1(t,this._extent)},ex.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},ex.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},ex.prototype.getInterval=function(){return this._interval},ex.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Y1(t)},ex.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:Q1(s+e,o)}:{value:n[1]})}return r},ex.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),mx.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 g_(t,r){return B(pt((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),et(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=d_(i,n,o);break;case"Polygon":case"MultiLineString":p_(i,n,o);break;case"MultiPolygon":et(i,function(t,e){return p_(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},I_.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),B(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}},gb.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;ie&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?0<=o.height?"bottom":"top":0<=o.width?"right":"left"),h=ep(i),l=(tp(t,h,{labelFetcher:r,labelDataIndex:n,defaultText:Vb(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),t.getTextContent()),u=(s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(X(i))t.setTextConfig({rotation:i});else if(W(e))t.setTextConfig({rotation:0});else{var o,i=t.shape,r=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(r+a)/2,i=n(e);switch(i){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=s;break;case"startAngle":case"insideStartAngle":o=r;break;case"endAngle":case"insideEndAngle":o=a;break;default:return t.setTextConfig({rotation:0})}n=1.5*Math.PI-o;"middle"===i&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===s?u:s,nw(a),i.get(["label","rotate"]))),hp(l,h,r.getRawValue(n),function(t){return Bb(e,t)}),i.getModel(["emphasis"]));_u(t,u.get("focus"),u.get("blurScope"),u.get("disabled")),Mu(t,i),null!=(s=o).startAngle&&null!=s.endAngle&&s.startAngle===s.endAngle&&(t.style.fill="none",t.style.stroke="none",et(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}function ow(){}u(sw,rw=q),sw.prototype.getDefaultShape=function(){return new ow},sw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;le[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:Ti((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={},et(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Uw(t){for(var e,n,i=t.length/2;0l?_:x,(f=Math.abs(d.label.y-l))>=g.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 uS(t){return"center"===t.position}function hS(t){var S,M,I=t.getData(),T=[],C=!1,D=(t.get("minShowLabelAngle")||0)*aS,e=I.getLayout("viewRect"),A=I.getLayout("r"),k=e.width,L=e.x,n=e.y,e=e.height;function P(t){t.ignore=!0}if(I.each(function(t){var e,n,i,o,r,a,s,l,u,h,c,p=I.getItemGraphicEl(t),d=p.shape,g=p.getTextContent(),f=p.getTextGuideLine(),t=I.getItemModel(t),y=t.getModel("label"),m=y.get("position")||t.get(["emphasis","label","position"]),v=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=j(y.get("edgeDistance"),k),b=y.get("bleedMargin"),t=t.getModel("labelLine"),w=j(t.get("length"),k);e=j(t.get("length2"),k),Math.abs(d.endAngle-d.startAngle)=e.r0},fS.type="pie",fS);function fS(){var t=null!==cS&&cS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function yS(t,e,n){var i=pS.call(this)||this,o=(i.z2=2,new K);return i.setTextContent(o),i.updateData(t,e,n,!0),i}function mS(t,e,n){e=W(e)?{coordDimensions:e}:H({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=C1(i,e).dimensions,e=new T1(e,t);return e.initData(i,n),e}xS.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},xS.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},xS.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},xS.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var vS=xS;function xS(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var _S,bS=i(),wS=(u(SS,_S=zy),SS.prototype.init=function(t){_S.prototype.init.apply(this,arguments),this.legendVisualProvider=new vS(T(this.getData,this),T(this.getRawData,this)),this._defaultLabelLine(t)},SS.prototype.mergeOption=function(){_S.prototype.mergeOption.apply(this,arguments)},SS.prototype.getInitialData=function(){return mS(this,{coordDimensions:["value"],encodeDefaulter:P(Qd,this)})},SS.prototype.getDataParams=function(t){var e,n=this.getData(),i=bS(n),o=i.seats,i=(o||(e=[],n.each(n.mapDimension("value"),function(t){e.push(t)}),o=i.seats=Cr(e,n.hostModel.get("percentPrecision"))),_S.prototype.getDataParams.call(this,t));return i.percent=o[t]||0,i.$vars.push("percent"),i},SS.prototype._defaultLabelLine=function(t){Zr(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},SS.type="series.pie",SS.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"},SS);function SS(){return null!==_S&&_S.apply(this,arguments)||this}r(function(t){t.registerChartView(gS),t.registerSeriesModel(wS),Wm("pie",t.registerAction),t.registerLayout(P(oS,"pie")),t.registerProcessor(rS("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),e=n.get(e,t);return!(X(e)&&!isNaN(e)&&e<0)})}})});u(TS,MS=zy),TS.prototype.getInitialData=function(t,e){return R1(null,this,{useEncodeDefaulter:!0})},TS.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},TS.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},TS.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},TS.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},TS.type="series.scatter",TS.dependencies=["grid","polar","geo","singleAxis","calendar"],TS.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}};var MS,IS=TS;function TS(){var t=null!==MS&&MS.apply(this,arguments)||this;return t.type=TS.type,t.hasSymbolVisual=!0,t}function CS(){}u(PS,DS=q),PS.prototype.getDefaultShape=function(){return new CS},PS.prototype.reset=function(){this.notClear=!1,this._off=0},PS.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,e=t.getContext?t.getContext():t,s=e&&o[0]<4,l=this.softClipShape;if(s)this._ctx=e;else{for(this._ctx=null,n=this._off;ne[1]&&e.reverse(),e},tM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},tM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var JS,QS=tM;function tM(t,e,n,i,o){t=JS.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function eM(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),wt(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 nM(t){return"cartesian2d"===t.get("coordinateSystem")}function iM(i){var o={xAxisModel:null,yAxisModel:null};return et(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,sa).models[0];o[e]=n}),o}var oM=Math.log;function rM(t,e,n){var i=tx.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,n=i.getInterval.call(n),e=Vx(t,e),s=e.extent,l=e.fixMin,e=e.fixMax,u=("log"===t.type&&(u=oM(t.base),s=[oM(s[0])/u,oM(s[1])/u]),t.setExtent(s[0],s[1]),t.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:e}),i.getExtent.call(t)),h=(l&&(s[0]=u[0]),e&&(s[1]=u[1]),i.getInterval.call(t)),c=s[0],p=s[1];if(l&&e)h=(p-c)/a;else if(l)for(p=s[0]+h*a;ps[0]&&isFinite(c)&&isFinite(s[0]);)h=H1(h),c=s[1]-h*a;else{u=(h=t.getTicks().length-1>a?H1(h):h)*a;(c=wr((p=Math.ceil(s[1]/h)*h)-u))<0&&0<=s[0]?(c=0,p=wr(u)):0h[1]?-1:1,a=["start"===l?h[0]-a*u:"end"===l?h[1]+a*u:(h[0]+h[1])/2,mM(l)?t.labelOffset+s*u:0],null!=(u=e.get("nameRotate"))&&(u=u*cM/180),mM(l)?o=pM.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=kr(u-cM/2)?(c=h?"bottom":"top","center"):kr(u-1.5*cM)?(c=h?"top":"bottom","center"):(c="middle",u<1.5*cM&&cM/2u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)l[1]||Du[1])continue;var C=h.dataToPoint([C,D]),I=new L({shape:{x:C[0]-a/2,y:C[1]-s/2,width:a,height:s},style:T})}else{if(isNaN(d.get(S[1],M)))continue;I=new L({z2:1,shape:h.dataToRect([d.get(S[0],M)]).contentShape,style:T})}d.hasItemOption&&(g=(C=(D=d.getItemModel(M)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),f=D.getModel(["blur","itemStyle"]).getItemStyle(),y=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),_=C.get("focus"),b=C.get("blurScope"),w=C.get("disabled"),v=ep(D)),I.shape.r=m;var A=t.getRawValue(M),k="-";A&&null!=A[2]&&(k=A[2]+""),tp(I,v,{labelFetcher:t,labelDataIndex:M,defaultOpacity:T.opacity,defaultText:k}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=f,I.ensureState("select").style=y,_u(I,_,b,w),(I.incremental=o)&&(I.states.emphasis.hoverLayer=!0),p.add(I),d.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},l2.prototype._renderOnGeo=function(i,t,e,n){var o,r,a,s,l,u,h,c=e.targetVisuals.inRange,p=e.targetVisuals.outOfRange,d=t.getData(),g=this._hmLayer||this._hmLayer||new i2,t=(g.blurSize=t.get("blurSize"),g.pointSize=t.get("pointSize"),g.minOpacity=t.get("minOpacity"),g.maxOpacity=t.get("maxOpacity"),i.getViewRect().clone()),f=i.getRoamTransform(),y=(t.applyTransform(f),Math.max(t.x,0)),m=Math.max(t.y,0),f=Math.min(t.width+t.x,n.getWidth()),t=Math.min(t.height+t.y,n.getHeight()),n=f-y,f=t-m,t=[d.mapDimension("lng"),d.mapDimension("lat"),d.mapDimension("value")],d=d.mapArray(t,function(t,e,n){t=i.dataToPoint([t,e]);return t[0]-=y,t[1]-=m,t.push(n),t}),t=e.getExtent(),v="visualMap.continuous"===e.type?(h=e.option.range,v=t[1]-t[0],h=[(h[0]-t[0])/v,(h[1]-t[0])/v],function(t){return t>=h[0]&&t<=h[1]}):(o=t,r=e.getPieceList(),a=e.option.selected,s=o[1]-o[0],l=(r=B(r,function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}})).length,u=0,function(t){for(var e,n=u;nt.x)||(f-=Math.PI)),d=y?"left":"right",t=(g=(l=s.getModel("label")).get("rotate"))*(Math.PI/180),y=r.getTextContent())&&(r.setTextConfig({position:l.get("position")||d,rotation:null==g?-f:t,origin:"center"}),y.setStyle("verticalAlign","middle")),s.get(["emphasis","focus"])),l="relative"===r?Et(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,d=(l&&($(i).focus=l),o),g=a,f=u,t=i,y=c,s=h,r=p,l=e,o=g.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)g.parentNode&&g.parentNode!==f&&C(v=v||(t.__edge=new Wh({shape:q2(c,h,p,y,y)})),{shape:q2(c,h,p,s,r)},d);else if("polyline"===u&&"orthogonal"===c&&g!==f&&g.children&&0!==g.children.length&&!0===g.isExpand){for(var x=g.children,_=[],b=0;be&&(e=i.height)}this.height=e+1},aT.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},fT.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},fT.prototype.setZoom=function(t){this.option.zoom=t},fT.prototype.setCenter=function(t){this.option.center=t},fT.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 by("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},fT.prototype.getDataParams=function(t){var e=dT.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=pT(t,this),e.collapsed=!t.isExpand,e},fT.type="series.tree",fT.layoutMode="box",fT.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 dT,gT=fT;function fT(){var t=null!==dT&&dT.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function yT(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 mT(t,A){t.eachSeriesByType("tree",function(t){var e=function(t,e){return Cd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e=A),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,g2(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,g2());var a,s,l,u,h,c,p,d,g,f=(e=t.getData().tree.root).children[0];if(f){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,x=[y];m=x.pop();)if(v=m.children,m.isExpand&&v.length)for(var _=v.length-1;0<=_;_--){var b=v[_];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:_,thread:null},x.push(b)}for(var w,S=p2,M=r,I=[f],T=[];w=I.pop();)if(T.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),yT(f,function(t){p=(t.getLayout().x+u)*h,d=(t.depth-1)*c;var e=f2(p,d);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:d},!0)})):"RL"===(g=t.getOrient())||"LR"===g?(c=o/(s.getLayout().x+e+u),h=i/(l.depth-1||1),yT(f,function(t){d=(t.getLayout().x+u)*c,p="LR"===g?(t.depth-1)*h:i-(t.depth-1)*h,t.setLayout({x:p,y:d},!0)})):"TB"!==g&&"BT"!==g||(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),yT(f,function(t){p=(t.getLayout().x+u)*h,d="TB"===g?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:p,y:d},!0)}))}})}function vT(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();H(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}function xT(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function _T(t,e,n,i){var o,r=t.getZoom(),a=t.getCenter(),s=e.zoom,a=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);return null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(xT(t,a),i)),null!=s&&(n&&(o=n.min||0,n=n.max||1/0,s=Math.max(Math.min(r*s,n),o)/r),t.scaleX*=s,t.scaleY*=s,n=(e.originX-t.x)*(s-1),o=(e.originY-t.y)*(s-1),t.x-=n,t.y-=o,t.updateTransform(),t.setCenter(xT(t,a),i),t.setZoom(s*r)),{center:t.getCenter(),zoom:t.getZoom()}}r(function(t){t.registerChartView(G2),t.registerSeriesModel(gT),t.registerLayout(mT),t.registerVisual(vT),(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(n,t,i){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=_T(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});var bT=["treemapZoomToNode","treemapRender","treemapMove"];function wT(s){var t=s.getData().tree,l={};t.eachNode(function(t){for(var e=t;e&&1=i.length||t===i[t.depth])&&n(t,fC(r,h,t,e,p,o),i,o)})):(l=hC(h),e.fill=l))}}(e,{},t.getViewRoot().getAncestors(),t)}};function uC(n,i,t){var o=H({},i),r=t.designatedVisualItemStyle;return et(["color","colorAlpha","colorSaturation"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}function hC(t){var e,n=pC(t,"color");if(n)return e=pC(t,"colorAlpha"),(t=pC(t,"colorSaturation"))&&(n=Ci(n,null,null,t)),e?Di(n,e):n}function cC(t,e){return null!=e?Ci(e,null,null,t):null}function pC(t,e){t=t[e];if(null!=t&&"none"!==t)return t}function dC(t,e,n,i,o,r){if(r&&r.length){var a,r=gC(e,"color")||null!=o.color&&"none"!==o.color&&(gC(e,"colorAlpha")||gC(e,"colorSaturation"));if(r)return o=e.get("visualMin"),a=e.get("visualMax"),n=n.dataExtent.slice(),null!=o&&on[1]&&(n[1]=a),o=e.get("colorMappingBy"),"color"!==(a={type:r.name,dataExtent:n,visual:r.range}).type||"index"!==o&&"id"!==o?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0),e=new ZT(a),sC(e).drColorMappingBy=o,e}}function gC(t,e){t=t.get(e);return W(t)&&t.length?{name:e,range:t}:null}function fC(t,e,n,i,o,r){var a,s,e=H({},e);return o&&(i="index"===(s="color"===(a=o.type)&&sC(o).drColorMappingBy)?i:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[a]=o.mapValueToVisual(i)),e}var yC=Math.max,mC=Math.min,vC=wt,xC=et,_C=["itemStyle","borderWidth"],bC=["itemStyle","gapWidth"],wC=["upperLabel","show"],SC=["upperLabel","height"],MC={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,n=Cd(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=s.size||[],u=j(vC(n.width,l[0]),r),l=j(vC(n.height,l[1]),a),h=i&&i.type,c=uT(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===h||"treemapMove"===h?i.rootRect:null,p=t.getViewRoot(),d=hT(p),u=("treemapMove"!==h&&(h="treemapZoomToNode"===h?function(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;for(var e=i*o,l=e*t.option.zoomToNodeRatio;r=a.parentNode;){for(var u=0,h=r.children,c=0,p=h.length;cDr&&(l=Dr),a=r}la[1]&&(a[1]=t)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,s,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,o){if(i){for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;0<=l;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*en[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;cMath.PI/2?"right":"left"):t&&"center"!==t?"left"===t?(r=u.r0+n,c>Math.PI/2&&(t="right")):"right"===t&&(r=u.r-n,c>Math.PI/2)&&(t="left"):(r=h==2*Math.PI&&0===u.r0?0:(u.r+u.r0)/2,t="center"),i.style.align=t,i.style.verticalAlign=m(e,"verticalAlign")||"middle",i.x=r*p+u.cx,i.y=r*d+u.cy,m(e,"rotate")),n=0;"radial"===o?(n=Os(-c))>Math.PI/2&&n<1.5*Math.PI&&(n+=Math.PI):"tangential"===o?(n=Math.PI/2-c)>Math.PI/2?n-=Math.PI:n<-Math.PI/2&&(n+=Math.PI):X(o)&&(n=o*Math.PI/180),i.rotation=Os(n)}),f.dirtyStyle()};var AC,kC=LC;function LC(t,e,n,i){var o=AC.call(this)||this,r=(o.z2=2,o.textConfig={inside:!0},$(o).seriesIndex=e.seriesIndex,new K({z2:4,silent:t.getModel().get(["label","silent"])}));return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}var PC="sunburstRootToNode",OC="sunburstHighlight",RC="sunburstUnhighlight";u(zC,NC=$y),zC.prototype.render=function(n,i,o,t){var e,r,a,s=this,l=(this.seriesModel=n,this.api=o,this.ecModel=i,n.getData()),u=l.tree.root,h=n.getViewRoot(),c=this.group,p=n.get("renderLabelForZeroData"),d=[],g=(h.eachNode(function(t){d.push(t)}),this._oldChildren||[]);function f(t){return t.getId()}function y(t,e){t=null==t?null:r[t],e=null==e?null:a[e],(t=p||!t||t.getValue()?t:null)!==u&&e!==u&&(e&&e.piece?t?(e.piece.updateData(!1,t,n,i,o),l.setItemGraphicEl(t.dataIndex,e.piece)):(e=e)&&e.piece&&(c.remove(e.piece),e.piece=null):t&&(e=new kC(t,n,i,o),c.add(e),l.setItemGraphicEl(t.dataIndex,e)))}a=g,0===(r=d).length&&0===a.length||new Qv(a,r,f,f).add(y).update(y).remove(P(y,null)).execute(),g=u,0<(e=h).depth?(s.virtualPiece?s.virtualPiece.updateData(!1,g,n,i,o):(s.virtualPiece=new kC(g,n,i,o),c.add(s.virtualPiece)),e.piece.off("click"),s.virtualPiece.on("click",function(t){s._rootToNode(e.parentNode)})):s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null),this._initEvents(),this._oldChildren=d},zC.prototype._initEvents=function(){var o=this;this.group.off("click"),this.group.on("click",function(n){var i=!1;o.seriesModel.getViewRoot().eachNode(function(t){var e;!i&&t.piece&&t.piece===n.target&&("rootToNode"===(e=t.getModel().get("nodeClick"))?o._rootToNode(t):"link"===e&&(t=(e=t.getModel()).get("link"))&&bd(t,e.get("target",!0)||"_blank"),i=!0)})})},zC.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:PC,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},zC.prototype.containPoint=function(t,e){var n,e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0},zC.type="sunburst";var NC,EC=zC;function zC(){var t=null!==NC&&NC.apply(this,arguments)||this;return t.type=zC.type,t}u(FC,VC=zy),FC.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(!function e(t){var n=0;et(t.children,function(t){e(t);t=t.value;W(t)&&(t=t[0]),n+=t});var i=t.value;W(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),W(t.value)?t.value[0]=i:t.value=i}(n),this._levelModels=B(t.levels||[],function(t){return new Tp(t,this,e)},this)),o=sT.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=o.getNodeByDataIndex(e),e=i[e.depth];return e&&(t.parentModel=e),t})});return o.data},FC.prototype.optionUpdated=function(){this.resetViewRoot()},FC.prototype.getDataParams=function(t){var e=VC.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=pT(t,this),e},FC.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},FC.prototype.getViewRoot=function(){return this._viewRoot},FC.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},FC.prototype.enableAriaDecal=function(){wT(this)},FC.type="series.sunburst",FC.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"};var VC,BC=FC;function FC(){var t=null!==VC&&VC.apply(this,arguments)||this;return t.type=FC.type,t.ignoreStyleOnData=!0,t}var GC=Math.PI/180;function WC(t,e,r){e.eachSeriesByType(t,function(h){var t=h.get("center"),e=h.get("radius"),n=(W(e)||(e=[0,e]),W(t)||(t=[t,t]),r.getWidth()),i=r.getHeight(),c=Math.min(n,i),p=j(t[0],n),d=j(t[1],i),g=j(e[0],c/2),n=j(e[1],c/2),t=-h.get("startAngle")*GC,f=h.get("minAngle")*GC,y=h.getData().tree.root,i=h.getViewRoot(),m=i.depth,e=h.get("sort"),o=(null!=e&&function e(t,n){var i=t.children||[];t.children=HC(i,n),i.length&&et(t.children,function(t){e(t,n)})}(i,e),0),v=(et(i.children,function(t){isNaN(t.getValue())||o++}),i.getValue()),x=Math.PI/(v||o)*2,_=0e);r++);r=Math.min(r-1,o-2)}var a=(e-i[r])/(i[r+1]-i[r]),s=n[r],n=n[r+1],a=(t.x=s[0]*(1-a)+a*n[0],t.y=s[1]*(1-a)+a*n[1],t.__t<1?n[0]-s[0]:s[0]-n[0]),s=t.__t<1?n[1]-s[1]:s[1]-n[1];t.rotation=-Math.atan2(s,a)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}};var FA,GA=WA;function WA(){var t=null!==FA&&FA.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}function HA(){this.polyline=!1,this.curveness=0,this.segs=[]}u(jA,YA=q),jA.prototype.reset=function(){this.notClear=!1,this._off=0},jA.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jA.prototype.getDefaultShape=function(){return new HA},jA.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n ")}))},ok.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},ok.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},ok.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},ok.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&0 "+p)),u++)}var d,i=n.get("coordinateSystem"),i=("cartesian2d"===i||"polar"===i?d=R1(t,n):(F(i=(i=wg.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=C1(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new T1(i,n)).initData(t)),new T1(["value"],n));return i.initData(l,s),o&&o(d,i),$2({mainData:d,struct:r,structAttr:"graph",datas:{node:d,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}ut(jk,Qk("hostGraph","data")),ut(qk,Qk("hostGraph","edgeData"));u(iL,eL=zy),iL.prototype.init=function(t){eL.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new vS(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},iL.prototype.mergeOption=function(t){eL.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},iL.prototype.mergeDefaultAndTheme=function(t){eL.prototype.mergeDefaultAndTheme.apply(this,arguments),Zr(t,"edgeLabel",["show"])},iL.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],t=t.data||t.nodes||[],r=this;if(t&&i)return pk(n=this)&&(n.__curvenessList=[],n.__edgeMap={},dk(n)),et((n=tL(t,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=Tp.prototype.getModel;function i(t,e){t=n.call(this,t,e);return t.resolveParentPath=o,t}function o(t){var e;return!t||"label"!==t[0]&&"label"!==t[1]?t:(e=t.slice(),"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e)}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=o,t.getModel=i,t})})).edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,pk(i)&&(e=gk(e,n,i),i=(n=i.__edgeMap)[fk(e)],n[e]&&!i?n[e].isForward=!0:i&&n[e]&&(i.isForward=!0,n[e].isForward=!1),n[e]=n[e]||[],n[e].push(t))},this),n.data},iL.prototype.getGraph=function(){return this.getData().graph},iL.prototype.getEdgeData=function(){return this.getGraph().edgeData},iL.prototype.getCategoriesData=function(){return this._categoriesData},iL.prototype.formatTooltip=function(t,e,n){var i,o,r;return"edge"===n?(o=this.getData(),n=this.getDataParams(t,n),r=o.graph.getEdgeByIndex(t),i=o.getName(r.node1.dataIndex),o=o.getName(r.node2.dataIndex),r=[],null!=i&&r.push(i),null!=o&&r.push(o),by("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):Oy({series:this,dataIndex:t,multipleSeries:e})},iL.prototype._updateCategoriesData=function(){var t=B(this.option.categories||[],function(t){return null!=t.value?t:H({value:0},t)}),e=new T1(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},iL.prototype.setZoom=function(t){this.option.zoom=t},iL.prototype.setCenter=function(t){this.option.center=t},iL.prototype.isAnimationEnabled=function(){return eL.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},iL.type="series.graph",iL.dependencies=["grid","polar","geo","singleAxis","calendar"],iL.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}};var eL,nL=iL;function iL(){var t=null!==eL&&eL.apply(this,arguments)||this;return t.type=iL.type,t.hasSymbolVisual=!0,t}var oL={type:"graphRoam",event:"graphRoam",update:"none"};r(function(t){t.registerChartView(Yk),t.registerSeriesModel(nL),t.registerProcessor(sk),t.registerVisual(lk),t.registerVisual(hk),t.registerLayout(wk),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,kk),t.registerLayout(Pk),t.registerCoordinateSystem("graphView",{dimensions:b2.dimensions,create:Ok}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Bt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Bt),t.registerAction(oL,function(n,t,i){t.eachComponent({mainType:"series",query:n},function(t){var e=_T(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});u(sL,rL=zy),sL.type="series.boxplot",sL.dependencies=["xAxis","yAxis","grid"],sL.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800};var rL,aL=sL;function sL(){var t=null!==rL&&rL.apply(this,arguments)||this;return t.type=sL.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}ut(aL,xa,!0);function lL(){}u(gL,hL=$y),gL.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,r=this._data,a=(this._data||o.removeAll(),"horizontal"===t.get("layout")?1:0);i.diff(r).add(function(t){var e;i.hasValue(t)&&(e=fL(i.getItemLayout(t),i,t,a,!0),i.setItemGraphicEl(t,e),o.add(e))}).update(function(t,e){var n,e=r.getItemGraphicEl(e);i.hasValue(t)?(n=i.getItemLayout(t),e?(bc(e),yL(n,e,i,t)):e=fL(n,i,t,a),o.add(e),i.setItemGraphicEl(t,e)):o.remove(e)}).remove(function(t){t=r.getItemGraphicEl(t);t&&o.remove(t)}).execute(),this._data=i},gL.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},gL.type="boxplot";var uL,hL,cL=gL,pL=(u(dL,uL=q),dL.prototype.getDefaultShape=function(){return new lL},dL.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ir&&(e[1-i]=e[i]+n.sign*r),e}function UL(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0l*(1-i[0])?(a="jump",e=t-l*(1-i[2])):0<=(e=t-l*i[1])&&(e=t-l*(1-i[1]))<=0&&(e=0),(e*=r.axisExpandWidth/n)?XL(e,s,u,"all"):a="none"):(o=s[1]-s[0],(s=[KL(0,u[1]*t/o-o/2)])[1]=qL(u[1],s[0]+o),s[0]=s[1]-o),{axisExpandWindow:s,behavior:a}):{behavior:"none",axisExpandWindow:s}},nP);function nP(t,e,n){this.type="parallel",this._axesMap=N(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}function iP(t,e){return qL(KL(t,e[0]),e[1])}var oP,rP={create:function(i,o){var r=[];return i.eachComponent("parallel",function(t,e){var n=new eP(t,i,o);n.name="parallel_"+e,n.resize(t,o),(t.coordinateSystem=n).model=t,r.push(n)}),i.eachSeries(function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=t.getReferringComponents("parallel",sa).models[0],t.coordinateSystem=e.coordinateSystem)}),r}},aP=(u(sP,oP=g),sP.prototype.getAreaSelectStyle=function(){return Sa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},sP.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=S(t);if(e)for(var n=e.length-1;0<=n;n--)Sr(e[n])},sP.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null!=t&&!isNaN(+t))if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;it.getWidth()||n<0||n>t.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=AP(t,e,n);if(!t._dragging)for(var a=0;agP}(t)||a?(s&&!a&&("single"===l.brushMode&&LP(t),(r=S(l)).brushType=qP(r.brushType,s),r.panelId=s===uP?null:s.panelId,a=t._creatingCover=SP(t,r),t._covers.push(a)),a&&(r=JP[qP(t._brushType,s)],a.__brushOption.range=r.getCreatingRange(YP(t,a,t._track)),i&&(MP(t,a),r.updateCommon(t,a)),IP(t,a),o={isEnd:i})):i&&"single"===l.brushMode&&l.removeOnClick&&AP(t,e,n)&&LP(t)&&(o={isEnd:i,removeOnClick:!0}),o}function qP(t,e){return"auto"===t?e.defaultBrushType:t}var KP={mousedown:function(t){var e;this._dragging?$P(this,t):t.target&&t.target.draggable||(UP(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=AP(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=t.offsetX,n=t.offsetY,e=this.group.transformCoordToLocal(e,n);XP(this,t,e),this._dragging&&(UP(t),n=jP(this,t,e,!1))&&PP(this,n)},mouseup:function(t){$P(this,t)}};function $P(t,e){var n,i;t._dragging&&(UP(e),n=e.offsetX,i=e.offsetY,n=t.group.transformCoordToLocal(n,i),i=jP(t,e,n,!0),t._dragging=!1,t._track=[],t._creatingCover=null,i)&&PP(t,i)}var JP={lineX:QP(0),lineY:QP(1),rect:{createCover:function(t,e){function n(t){return t}return RP({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){t=OP(t);return BP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){NP(t,e,n,i)},updateCommon:EP,contain:ZP},polygon:{createCover:function(t,e){var n=new Z;return n.add(new Lh({name:"main",style:VP(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ch({name:"main",draggable:!0,drift:P(WP,t,e),ondragend:P(PP,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:YP(t,e,n)})},updateCommon:EP,contain:ZP}};function QP(r){return{createCover:function(t,e){return RP({toRectRange:function(t){t=[t,[0,100]];return r&&t.reverse(),t},fromRectRange:function(t){return t[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){t=OP(t);return[hP(t[0][r],t[1][r]),cP(t[0][r],t[1][r])]},updateCoverShape:function(t,e,n,i){var o=kP(t,e),o=[n,o!==uP&&o.getLinearBrushOtherExtent?o.getLinearBrushOtherExtent(r):[0,[(n=t._zr).getWidth(),n.getHeight()][1-r]]];r&&o.reverse(),NP(t,e,o,i)},updateCommon:EP,contain:ZP}}function tO(e){return e=iO(e),function(t){return Wc(t,e)}}function eO(n,i){return n=iO(n),function(t){var t=null!=i?i:t,e=t?n.width:n.height,t=t?n.x:n.y;return[t,t+(e||0)]}}function nO(t,n,i){var o=iO(t);return function(t,e){return o.contain(e[0],e[1])&&!E2(t,n,i)}}function iO(t){return z.create(t)}var oO,rO=["axisLine","axisTickLabel","axisName"],aO=(u(sO,oO=Uy),sO.prototype.init=function(t,e){oO.prototype.init.apply(this,arguments),(this._brushController=new bP(e.getZr())).on("brush",T(this._onBrush,this))},sO.prototype.render=function(t,e,n,i){var o,r,a,s;a=t,s=e,(i=i)&&"axisAreaSelect"===i.type&&s.findComponents({mainType:"parallelAxis",query:i})[0]===a||(this.axisModel=t,this.api=n,this.group.removeAll(),s=this._axisGroup,this._axisGroup=new Z,this.group.add(this._axisGroup),t.get("show")&&(a=(i=e.getComponent("parallel",t.get("parallelIndex"))).coordinateSystem,o=(e=t.getAreaSelectStyle()).width,r=t.axis.dim,a=H({strokeContainThreshold:o},a.getAxisLayout(r)),r=new pM(t,a),et(rO,r.add,r),this._axisGroup.add(r.getGroup()),this._refreshBrushController(a,e,t,i,o,n),Gc(s,this._axisGroup,t)))},sO.prototype._refreshBrushController=function(t,e,n,i,o,r){var a,s=n.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,.1*Math.abs(l)),s=z.create({x:s[0],y:-o/2,width:l,height:o});s.x-=u,s.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:tO(s),isTargetByCursor:nO(s,r,i),getLinearBrushOtherExtent:eO(s,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers((a=n.axis,B(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[a.dataToCoord(t[0],!0),a.dataToCoord(t[1],!0)]}})))},sO.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,e=B(e,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});!n.option.realtime!==t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:e})},sO.prototype.dispose=function(){this._brushController.dispose()},sO.type="parallelAxis",sO);function sO(){var t=null!==oO&&oO.apply(this,arguments)||this;return t.type=sO.type,t}var lO={type:"axisAreaSelect",event:"axisAreaSelected"};var uO={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function hO(t){t.registerComponentView(NL),t.registerComponentModel(FL),t.registerCoordinateSystem("parallel",rP),t.registerPreprocessor(OL),t.registerComponentModel(aP),t.registerComponentView(aO),YS(t,"parallel",aP,uO),(t=t).registerAction(lO,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})}r(function(t){r(hO),t.registerChartView(bL),t.registerSeriesModel(DL),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,PL)});function cO(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}u(gO,pO=q),gO.prototype.getDefaultShape=function(){return new cO},gO.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3<=r?1:2),l=e.y-i(a)*r*(o/3<=r?1:2),a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)};var pO,dO=gO;function gO(t){t=pO.call(this,t)||this;return t.type="pointer",t}function fO(t,e){var n=null==t?"":t+"";return e&&(Y(e)?n=e.replace("{value}",n):D(e)&&(n=e(t))),n}u(vO,yO=$y),vO.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get(["axisLine","lineStyle","color"]),l=(o=n,r=(i=t).get("center"),a=o.getWidth(),l=o.getHeight(),a=Math.min(a,l),{cx:j(r[0],o.getWidth()),cy:j(r[1],o.getHeight()),r:j(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},vO.prototype.dispose=function(){},vO.prototype._renderMain=function(t,e,n,i,o){var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?Nb:vh,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),u=[s,l];Cs(u,!a);for(var g=(l=u[1])-(s=u[0]),f=s,y=[],m=0;c&&m=t&&(0===e?0:i[e-1][0])Math.PI/2&&(L+=Math.PI):"tangential"===k?L=-v-Math.PI/2:X(k)&&(L=k*Math.PI/180),0===L?a.add(new K({style:np(d,{text:T,x:D,y:A,verticalAlign:O<-.8?"top":.8m&&(m=_.depth),x.setLayout({depth:B?_.depth:f},!0),"vertical"===h?x.setLayout({dy:u},!0):x.setLayout({dx:u},!0);for(var b=0;bt[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:function(t){var e=o.dataToRadius(t[0]),t=r.dataToAngle(t[1]),n=i.coordToPoint([e,t]);return n.push(e,t*Math.PI/180),n},size:T(YR,i)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}};function SN(t){return t instanceof q}function MN(t){return t instanceof ja}u(CN,IN=$y),CN.prototype.render=function(n,t,i,o){this._progressiveEls=null;var r=this._data,a=n.getData(),s=this.group,l=PN(n,a,t,i),t=(r||s.removeAll(),a.diff(r).add(function(t){ON(i,null,t,l(t,o),n,s,a)}).remove(function(t){t=r.getItemGraphicEl(t);t&&iN(t,VR(t).option,n)}).update(function(t,e){e=r.getItemGraphicEl(e);ON(i,e,t,l(t,o),n,s,a)}).execute(),n.get("clip",!0)?Pb(n.coordinateSystem,!1,n):null);t?s.setClipPath(t):s.removeClipPath(),this._data=a},CN.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},CN.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=PN(e,r,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;un||!!e&&(r=bM(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},UN.prototype.makeElOption=function(t,e,n,i,o){},UN.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=HN(t).pointerEl=new Kc[o.type](YN(e.pointer)),t.add(o))},UN.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=HN(t).labelEl=new K(YN(e.label)),t.add(e),jN(e,i))},UN.prototype.updatePointerEl=function(t,e,n){t=HN(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},UN.prototype.updateLabelEl=function(t,e,n,i){t=HN(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),jN(t,i))},UN.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=Yc(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Le(t.event)},onmousedown:XN(this._onHandleDragMove,this,0,0),drift:XN(this._onHandleDragMove,this),ondragend:XN(this._onHandleDragEnd,this)}),i.add(o)),KN(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),W(a=r.get("size"))||(a=[a,a]),o.scaleX=a[0]/2,o.scaleY=a[1]/2,lm(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)):(o&&i.remove(o),this._handle=null))},UN.prototype._moveHandleToValue=function(t,e){ZN(this._axisPointerModel,!e&&this._moveAnimation,this._handle,qN(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},UN.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(qN(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(qN(t)),HN(n).lastProp=null,this._doDispatchAxisPointer())},UN.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}]}))},UN.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},UN.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),um(this,"_doDispatchAxisPointer")},UN.prototype.doClear=function(){},UN.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},UN);function UN(){this._dragging=!1,this.animationThreshold=15}function ZN(t,e,n,i){!function n(i,t){{var o;if(O(i)&&O(t))return o=!0,et(t,function(t,e){o=o&&n(i[e],t)}),!!o}return i===t}(HN(n).lastProp,i)&&(HN(n).lastProp=i,e?C(n,i,t):(n.stopAnimation(),n.attr(i)))}function jN(t,e){t[e.get(["label","show"])?"show":"hide"]()}function qN(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function KN(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 $N(t){var e,n=t.get("type"),t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e}function JN(t,e,n,i,o){var r=QN(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=gd(n.get("padding")||0),s=n.getFont(),l=jo(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:np(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function QN(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:Wx(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},et(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),Y(o)?a=o.replace("{value}",a):D(o)&&(a=o(r))),a}function t5(t,e,n){var i=ze();return We(i,i,n.rotation),Ge(i,i,n.position),Vc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function e5(t,e,n,i,o,r){var a=pM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),JN(e,i,o,r,{position:t5(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function n5(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function i5(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function o5(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}u(s5,r5=Jm),s5.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=("angle"===a.dim&&(this.animationThreshold=Math.PI/18),a.polar),l=s.getOtherAxis(a).getExtent(),u=a.dataToCoord(e),h=i.get("type"),a=(h&&"none"!==h&&(r=$N(i),(h=u5[h](a,s,u,l)).style=r,t.graphicKey=h.type,t.pointer=h),i.get(["label","margin"]));JN(t,n,i,o,function(t,e,n,i){var o=e.axis,t=o.dataToCoord(t);l=(l=n.getAngleAxis().getExtent()[0])/180*Math.PI;var r,a,s=n.getRadiusAxis().getExtent();{var l;s="radius"===o.dim?(o=ze(),We(o,o,l),Ge(o,o,[n.cx,n.cy]),r=Vc([t,-i],o),o=e.getModel("axisLabel").get("rotate")||0,e=pM.innerTextLayout(l,o*Math.PI/180,-1),a=e.textAlign,e.textVerticalAlign):(l=s[1],r=n.coordToPoint([l+i,t]),o=n.cx,e=n.cy,a=Math.abs(r[0]-o)/l<.3?"center":r[0]>o?"left":"right",Math.abs(r[1]-e)/l<.3?"middle":r[1]>e?"top":"bottom")}return{position:r,align:a,verticalAlign:s}}(e,n,s,a))};var r5,a5=s5;function s5(){return null!==r5&&r5.apply(this,arguments)||this}var l5,u5={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:n5(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:o5(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:o5(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},h5=(u(c5,l5=Jm),c5.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=p5(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0)),a=(l&&"none"!==l&&(r=$N(i),(l=d5[l](a,h,u)).style=r,t.graphicKey=l.type,t.pointer=l),eM(s.model,n));e5(e,t,a,n,i,o)},c5.prototype.getHandleTransform=function(t,e,n){var i=eM(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),t5(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},c5.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=p5(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]}},c5);function c5(){return null!==l5&&l5.apply(this,arguments)||this}function p5(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var d5={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:n5([e,n[0]],[e,n[1]],g5(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:i5([e-i/2,n[0]],[i,o],g5(t))}}};function g5(t){return"x"===t.dim?0:1}u(m5,f5=g),m5.type="axisPointer",m5.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 f5,y5=m5;function m5(){var t=null!==f5&&f5.apply(this,arguments)||this;return t.type=m5.type,t}var v5=i(),x5=et;function _5(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))}x5(v5(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(),v5(i).records||(v5(i).records={}),p=e,v5(c=i).initialized||(v5(c).initialized=!0,o("click",P(w5,"click")),o("mousemove",P(w5,"mousemove")),o("globalout",b5)),(v5(i).records[t]||(v5(i).records[t]={})).handler=n)}function b5(t,e,n){t.handler("leave",null,n)}function w5(t,e,n,i){e.handler(t,n,i)}function S5(t,e){w.node||(e=e.getZr(),(v5(e).records||{})[t]&&(v5(e).records[t]=null))}u(T5,M5=Uy),T5.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";_5("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})})},T5.prototype.remove=function(t,e){S5("axisPointer",e)},T5.prototype.dispose=function(t,e){S5("axisPointer",e)},T5.type="axisPointer";var M5,I5=T5;function T5(){var t=null!==M5&&M5.apply(this,arguments)||this;return t.type=T5.type,t}function C5(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=ia(n=e.getData(),t))||s<0||W(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(B(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 D5=i();function A5(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,g,f,y,m=t.currTrigger,v=[t.x,t.y],x=t,_=t.dispatchAction||T(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return R5(v)&&(v=C5({seriesIndex:x.seriesIndex,dataIndex:x.dataIndex},e).point),r=R5(v),a=x.axesInfo,i=b.axesInfo,s="leave"===m||R5(v),l={},e={list:[],map:{}},u={showPointer:P(L5,o={}),showTooltip:P(P5,e)},et(b.coordSysMap,function(t,e){var o=r||t.containPoint(v);et(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))&&k5(t,i,u,!1,l)})}),h={},et(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&et(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,O5(t),O5(n)))),h[n.key]=e)})}),et(h,function(t,e){k5(i[e],t,u,!0,l)}),f=o,x=i,y=l.axesInfo=[],et(x,function(t,e){var n=t.axisPointerModel.option,e=f[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,x=t,e=_,!R5(t=v)&&m.list.length?(_=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:_.dataIndexInside,dataIndex:_.dataIndex,seriesIndex:_.seriesIndex,dataByCoordSys:m.list})):e({type:"hideTip"}),t=i,_=(x=n).getZr(),m="axisPointerLastHighlights",c=D5(_)[m]||{},p=D5(_)[m]={},et(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&et(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;p[e]=t})}),d=[],g=[],et(c,function(t,e){p[e]||g.push(t)}),et(p,function(t,e){c[e]||d.push(t)}),g.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:g}),d.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:d}),l}function k5(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,g,f=t.axis;!f.scale.isBlank()&&f.containData(e)&&(t.involveSeries?(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,g=-1,et(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)&&((ne[1]&&e.reverse(),t.getExtent()),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var t=t-this.cx,e=e-this.cy,t=t*t+e*e-1e-4,e=this.r,n=this.r0;return t<=e*e&&n*n<=t}}},nE.prototype.convertToPixel=function(t,e,n){return iE(e)===this?this.dataToPoint(n):null},nE.prototype.convertFromPixel=function(t,e,n){return iE(e)===this?this.pointToData(n):null},nE);function nE(t){this.dimensions=tE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new j5,this._angleAxis=new J5,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function iE(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function oE(t,e){var n,i=this,o=i.getAngleAxis(),r=i.getRadiusAxis();o.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===i&&(et(Ux(e=t.getData(),"radius"),function(t){r.scale.unionExtentFromData(e,t)}),et(Ux(e,"angle"),function(t){o.scale.unionExtentFromData(e,t)}))}),Bx(o.scale,o.model),Bx(r.scale,r.model),"category"!==o.type||o.onBand||(t=o.getExtent(),n=360/o.scale.count(),o.inverse?t[1]+=n:t[1]-=n,o.setExtent(t[0],t[1]))}function rE(t,e){var n;t.type=e.get("type"),t.scale=Fx(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var aE={dimensions:tE,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n,e=new eE(e+""),i=(e.update=oE,e.getRadiusAxis()),o=e.getAngleAxis(),r=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");rE(i,r),rE(o,a),i=e,r=s,a=(o=t).get("center"),n=r.getWidth(),r=r.getHeight(),i.cx=j(a[0],n),i.cy=j(a[1],r),a=i.getRadiusAxis(),i=Math.min(n,r)/2,null==(n=o.get("radius"))?n=[0,"100%"]:W(n)||(n=[0,n]),r=[j(n[0],i),j(n[1],i)],a.inverse?a.setExtent(r[1],r[0]):a.setExtent(r[0],r[1]),l.push(e),(t.coordinateSystem=e).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",sa).models[0],t.coordinateSystem=e.coordinateSystem)}),l}},sE=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lE(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function uE(t){return t.getRadiusAxis().inverse?0:1}function hE(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}u(gE,cE=TM),gE.prototype.render=function(e,t){var n,i,o,r,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),hE(s=B(n.getViewLabels(),function(t){t=S(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),hE(r),et(sE,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||dE[t](this.group,e,i,r,a,o,s)},this))},gE.type="angleAxis";var cE,pE=gE,dE={axisLine:function(t,e,n,i,o,r){var e=e.getModel(["axisLine","lineStyle"]),a=uE(n),s=a?0:1;(n=0===r[s]?new $u({shape:{cx:n.cx,cy:n.cy,r:r[a]},style:e.getLineStyle(),z2:1,silent:!0}):new wh({shape:{cx:n.cx,cy:n.cy,r:r[a],r0:r[s]},style:e.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(n)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[uE(n)],r=B(i,function(t){return new Eh({shape:lE(n,[l,l+s],t.coord)})});t.add(Oc(r,{style:V(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[uE(n)],h=[],c=0;ca?"left":"right",o=Math.abs(r[1]-s)/o<.3?"middle":r[1]>s?"top":"bottom",i=(p&&p[i]&&O(s=p[i])&&s.textStyle&&(n=new Tp(s.textStyle,d,d.ecModel)),new K({silent:pM.isLabelSilent(u),style:np(n,{x:r[0],y:r[1],fill:n.getTextColor()||u.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:o})}));l.add(i),f&&((s=pM.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,$(i).eventData=s)},this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},YE.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},YE.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i},YE.prototype.convertToPixel=function(t,e,n){return XE(e)===this?this.dataToPoint(n):null},YE.prototype.convertFromPixel=function(t,e,n){return XE(e)===this?this.pointToData(n):null},YE);function YE(t,e,n){this.type="single",this.dimension="single",this.dimensions=WE,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function XE(t){var e=t.seriesModel,t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var UE,ZE={create:function(i,o){var r=[];return i.eachComponent("singleAxis",function(t,e){var n=new HE(t,i,o);n.name="single_"+e,n.resize(t,o),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",sa).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),r},dimensions:WE},jE=["x","y"],qE=["width","height"],KE=(u(JE,UE=Jm),JE.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=tz(s,1-QE(a)),s=s.dataToPoint(e)[0],u=i.get("type"),a=(u&&"none"!==u&&(r=$N(i),(u=$E[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),AE(n));e5(e,t,a,n,i,o)},JE.prototype.getHandleTransform=function(t,e,n){var i=AE(e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),t5(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},JE.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.coordinateSystem,n=QE(n),r=tz(o,n),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]),tz(o,1-n)),r=(e[1]+e[0])/2,o=[r,r];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:{verticalAlign:"middle"}}},JE),$E={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:n5([e,n[0]],[e,n[1]],QE(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:i5([e-i/2,n[0]],[i,o],QE(t))}}};function JE(){return null!==UE&&UE.apply(this,arguments)||this}function QE(t){return t.isHorizontal()?0:1}function tz(t,e){t=t.getRect();return[t[jE[e]],t[jE[e]]+t[qE[e]]]}u(iz,ez=Uy),iz.type="single";var ez,nz=iz;function iz(){var t=null!==ez&&ez.apply(this,arguments)||this;return t.type=iz.type,t}r(function(t){r(N5),TM.registerAxisPointerClass("SingleAxisPointer",KE),t.registerComponentView(nz),t.registerComponentView(OE),t.registerComponentModel(zE),YS(t,"single",zE,zE.defaultOption),t.registerCoordinateSystem("single",ZE)});u(az,oz=g),az.prototype.init=function(t,e,n){var i=Ld(t);oz.prototype.init.apply(this,arguments),sz(t,i)},az.prototype.mergeOption=function(t){oz.prototype.mergeOption.apply(this,arguments),sz(this.option,t)},az.prototype.getCellSize=function(){return this.option.cellSize},az.type="calendar",az.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}};var oz,rz=az;function az(){var t=null!==oz&&oz.apply(this,arguments)||this;return t.type=az.type,t}function sz(t,i){var o,e=t.cellSize,e=(1===(o=W(e)?e:t.cellSize=[e,e]).length&&(o[1]=o[0]),B([0,1],function(t){return(null!=(e=i)[Md[n=t][0]]||null!=e[Md[n][1]]&&null!=e[Md[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t];var e,n}));kd(t,i,{type:"box",ignoreSize:e})}u(hz,lz=Uy),hz.prototype.render=function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),r=o.getRangeInfo(),o=o.getOrient(),e=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,e,o,i),this._renderWeekText(t,e,r,o,i)},hz.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new L({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},hz.prototype._renderLines=function(e,t,n,i){var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,h=0;u.time<=t.end.time;h++){p(u.formatedDate);var c=(u=0===h?r.getDateInfo(t.start.y+"-"+t.start.m):u).date;c.setMonth(c.getMonth()+1),u=r.getDateInfo(c)}function p(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,a,i)}p(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},hz.prototype._getEdgesPoints=function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},hz.prototype._drawSplitline=function(t,e,n){t=new Lh({z2:20,shape:{points:t},style:e});n.add(t)},hz.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},hz.prototype._formatterLabel=function(t,e){return Y(t)&&t?(n=t,et(e,function(t,e){n=n.replace("{"+e+"}",i?we(t):t)}),n):D(t)?t(e):e.nameMap;var n,i},hz.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],e=e[1],a=["center","bottom"],o=("bottom"===i?(e+=o,a=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,a=["center","top"]):e-=o,0);return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,x:r,y:e,style:{align:a[0],verticalAlign:a[1]}}},hz.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u,t=t.getModel("yearLabel");t.get("show")&&(o=t.get("margin"),r=(r=t.get("position"))||("horizontal"!==n?"top":"left"),a=((u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+u[1][0])/2,l=(u[0][1]+u[1][1])/2,a={top:[a,u[s="horizontal"===n?0:1][1]],bottom:[a,u[1-s][1]],left:[u[1-s][0],l],right:[u[s][0],l]},u=e.start.y,+e.end.y>+e.start.y&&(u=u+"-"+e.end.y),s=t.get("formatter"),l={start:e.start.y,end:e.end.y,nameMap:u},e=this._formatterLabel(s,l),(u=new K({z2:30,style:np(t,{text:e})})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},hz.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0],t=t[1];return"horizontal"===n?(t+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:t,align:r,verticalAlign:a}},hz.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show"))for(var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),t=o.get("align"),l=[this._tlpoints,this._blpoints],u=(r&&!Y(r)||(r=(e=r?Vp(r)||e:e).get(["time","monthAbbr"])||[]),"start"===s?0:1),h="horizontal"===n?0:1,a="start"===s?-a:a,c="center"===t,p=0;p=n.start.time&&t.timei.end.time&&n.reverse(),n):o},pz.prototype._getRangeInfo=function(t){var e,n,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],o=(i[0].time>i[1].time&&(e=!0,i.reverse()),Math.floor(i[1].time/864e5)-Math.floor(i[0].time/864e5)+1),r=new Date(i[0].time),t=r.getDate(),a=i[1].date.getDate();if(r.setDate(t+o-1),r.getDate()!==a)for(var s=0n.weeks||0===t&&en.lweek?null:(t=7*(t-1)-n.fweek+e,(e=new Date(n.start.time)).setDate(+n.start.d+t),this.getDateInfo(e))},pz.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new pz(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},pz.dimensions=["time","value"];var cz=pz;function pz(t,e,n){this.type="calendar",this.dimensions=pz.dimensions,this.getDimensionsInfo=pz.getDimensionsInfo,this._model=t}function dz(t){var e=t.calendarModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}r(function(t){t.registerComponentModel(rz),t.registerComponentView(uz),t.registerCoordinateSystem("calendar",cz)});u(xz,fz=g),xz.type="title",xz.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var gz,fz,yz=xz,mz=(u(vz,gz=Uy),vz.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),c=R(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new K({style:np(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new K({style:np(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!r&&!s,o.silent=!a&&!s,r&&u.on("click",function(){bd(r,"_"+t.get("target"))}),a&&o.on("click",function(){bd(a,"_"+t.get("subtarget"))}),$(u).eventData=$(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(o),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=Cd(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),o.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new L({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},vz.type="title",vz);function vz(){var t=null!==gz&&gz.apply(this,arguments)||this;return t.type=vz.type,t}function xz(){var t=null!==fz&&fz.apply(this,arguments)||this;return t.type=xz.type,t.layoutMode={type:"box",ignoreSize:!0},t}r(function(t){t.registerComponentModel(yz),t.registerComponentView(mz)});u(wz,_z=g),wz.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},wz.prototype.mergeOption=function(t,e){_z.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},wz.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;W(n=!0===n?t.selector=["all","inverse"]:n)&&et(n,function(t,e){Y(t)&&(t={type:t}),n[e]=d(t,(e=i,"all"===(t=t.type)?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},wz.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;nn[o],g=[-c.x,-c.y],e=(e||(g[i]=l[s]),[0,0]),s=[-p.x,-p.y],f=R(t.get("pageButtonGap",!0),t.get("itemGap",!0)),g=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+f),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(g),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(g[o]=(d?n:c)[o],g[r]=Math.max(c[r],p[r]),g[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]-f,0),e[r]=g[r],u.setClipPath(new L({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&C(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),g},Uz.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Uz.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(et(["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",Y(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},Uz.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=Hz[t],r=Yz[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=f(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,g=null;c<=l;++c)(!(g=f(a[c]))&&d.e>p.s+i||g&&!y(g,p.s))&&(p=d.i>p.i?d:g)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=g;for(c=e-1,d=p=n,g=null;-1<=c;--c)(g=f(a[c]))&&y(d,g.s)||!(p.i=e&&t.s<=e+i}},Uz.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},Uz.type="legend.scroll",Uz);function Uz(){var t=null!==Gz&&Gz.apply(this,arguments)||this;return t.type=Uz.type,t.newlineDisabled=!0,t._currentIndex=0,t}r(function(t){r(Ez),t.registerComponentModel(Vz),t.registerComponentView(Xz),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)})})});u(qz,Zz=g),qz.type="tooltip",qz.dependencies=["axisPointer"],qz.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}};var Zz,jz=qz;function qz(){var t=null!==Zz&&Zz.apply(this,arguments)||this;return t.type=qz.type,t}function Kz(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function $z(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n'):""),Y(t))h.innerHTML=t+c;else if(t){h.innerHTML="",W(t)||(t=[t]);for(var p,d=0;d"),r=g.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,f)})},yV.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=$(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),g=this._renderMode,f=t.positionDefault,y=mV([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new Ly,i.marker=o.makeTooltipMarker("item",_d(i.color),g),f=Sf(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=f.frag,a=r?Ty(e?H({valueFormatter:e},r):r,o,g,h,l.get("useUTC"),y.get("textStyle")):f.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}))},yV.prototype._showComponentItemTooltip=function(e,n,t){var i=$(n),o=i.tooltipConfig.option||{},r=[o=Y(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=mV(r,this._tooltipModel,i?{position:i}:null),s=a.get("content"),l=Math.random()+"",u=new Ly;this._showOrMove(a,function(){var t=S(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},yV.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=Y(h)?(p=n.ecModel.get("useUTC"),t=h,vd(t=(d=W(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Kp(d.axisValue,t,p):t,i,!0)):D(h)?(d=T(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))},yV.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||W(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:W(e)?void 0:{color:i||e.color||e.borderColor}},yV.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()),g=t.get("align"),f=t.get("verticalAlign"),y=a&&a.getBoundingRect().clone();a&&y.applyTransform(a.transform),W(e=D(e)?e([n,i],r,o.el,y,{viewSize:[c,p],contentSize:d.slice()}):e)?(n=j(e[0],c),i=j(e[1],p)):O(e)?((r=e).width=d[0],r.height=d[1],n=(r=Cd(r,{width:c,height:p})).x,i=r.y,f=g=null):i=(n=(s=Y(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=g?null:20,u=f?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)),zb(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),sB(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):sB(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 cB,pB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],dB=(u(gB,cB=mp),gB.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=MV.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=B(pB,function(t){return hB(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},gB.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 Z}),h=(this.group.add(i.group),this.markKeep(i),function(t,n,e){var i,o;{var r;i=t?(r=B(t&&t.dimensions,function(t){var e=n.getData();return H(H({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=B(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new T1(o,e)):new T1(o=[{name:"value",type:"float"}],e)}e=B(e.get("data"),P(rB,n,t,e)),t&&(e=pt(e,P(uB,t))),t=t?function(t,e,n,i){return Ef(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return Ef(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=B(pB,function(t){return hB(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=(Sr(n),Sr(i),!!(o[0]>n[1]||o[1]i[1]||r[1]=this._data.count()-1},yB.prototype.setPlayState=function(t){this.option.autoPlay=!!t},yB.prototype.getPlayState=function(){return!!this.option.autoPlay},yB.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],et(e,function(t,e){var n,i=Qr(qr(t),"");O(t)?(n=S(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new T1([{name:"value",type:e}],this)).initData(o,r)},yB.prototype.getData=function(){return this._data},yB.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},yB.type="timeline",yB.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 fB,e=yB;function yB(){var t=null!==fB&&fB.apply(this,arguments)||this;return t.type=yB.type,t.layoutMode="box",t}u(xB,mB=e),xB.type="timeline.slider",xB.defaultOption=kp(e.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 mB,vB=xB;function xB(){var t=null!==mB&&mB.apply(this,arguments)||this;return t.type=xB.type,t}ut(vB,Sp.prototype);u(bB,_B=Uy),bB.type="timeline";var _B,Zm=bB;function bB(){var t=null!==_B&&_B.apply(this,arguments)||this;return t.type=bB.type,t}u(MB,wB=bp),MB.prototype.getLabelModel=function(){return this.model.getModel("label")},MB.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var wB,SB=MB;function MB(t,e,n,i){t=wB.call(this,t,e,n)||this;return t.type=i||"value",t}var IB,TB=Math.PI,CB=i(),DB=(u(AB,IB=Zm),AB.prototype.init=function(t,e){this.api=e},AB.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 by("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},et(["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()},AB.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},AB.prototype.dispose=function(){this._clearTimer()},AB.prototype._layout=function(t,e){var n,i,o,r,a=t.get(["label","position"]),s=t.get("orient"),l=(l=e,Cd((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)e[1]&&(e[1]=t[1])})}),[(e=Ex((n=e.getAxisModel()).axis.scale,n,o).calculate()).min,e.max]),this._updateMinMaxSpan(),n=this.calculateDataWindow(t.settledOption),this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel())},h3.prototype.filterData=function(t,e){var o,n,r,c;t===this._dataZoomModel&&(o=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),c=this._valueWindow,"none"!==r)&&s3(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=B(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,o=0;oc[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):s3(h,function(t){var e;"empty"===r?n.setData(i=i.map(t,function(t){return t>=c[0]&&t<=c[1]?t:NaN})):((e={})[t]=c,i.selectRange(e))}),s3(h,function(t){i.setApproximateExtent(c,t)}))})},h3.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;s3(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=br(r[0]+n,r,[0,100],!0):null!=e&&(n=br(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},h3.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=Tr(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())},h3);function h3(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var c3={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(zB(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new u3(t,e,i,r),o.push(n.__dzAxisProxy))}),N());return et(o,function(t){et(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),t.eachComponent("dataZoom",function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))})}};var p3=!1;function d3(t){p3||(p3=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,c3),t.registerAction("dataZoom",function(e,t){et(VB(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function g3(t){d3(t),t.registerComponentModel(UB),t.registerComponentView(n3),t3(t)}u(m3,f3=xa),m3.type="dataZoom.slider",m3.layoutMode="box",m3.defaultOption=kp(xa.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}});var f3,y3=m3;function m3(){var t=null!==f3&&f3.apply(this,arguments)||this;return t.type=m3.type,t}var v3,x3=L,_3="horizontal",b3="vertical",w3=["line","bar","candlestick","scatter"],S3={easing:"cubicOut",duration:100,delay:0},M3=(u(I3,v3=Jm),I3.prototype.init=function(t,e){this.api=e,this._onBrush=T(this._onBrush,this),this._onBrushEnd=T(this._onBrushEnd,this)},I3.prototype.render=function(t,e,n,i){v3.prototype.render.apply(this,arguments),lm(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")?t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},I3.prototype.dispose=function(){this._clear(),v3.prototype.dispose.apply(this,arguments)},I3.prototype._clear=function(){um(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},I3.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new Z);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},I3.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===_3?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},r=Ld(t.option),n=(et(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])}),Cd(r,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===b3&&this._size.reverse()},I3.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse,n=(o.attr(n!==_3||i?n===_3&&i?{scaleY:r?1:-1,scaleX:-1}:n!==b3||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1}),t.getBoundingRect([o]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},I3.prototype._getViewExtent=function(){return[0,this._size[0]]},I3.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new x3({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new x3({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:T(this._onClickPanel,this)})),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},I3.prototype._renderDataShadow=function(){var t,e,n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],n){var i=this._size,o=this._shadowSize||[],r=n.series,a=r.getRawData(),s=r.getShadowDim&&r.getShadowDim(),s=s&&a.getDimensionInfo(s)?r.getShadowDim():n.otherDim;if(null!=s){var l,u,h,c,p,d,g,f,y=this._shadowPolygonPts,m=this._shadowPolylinePts;a===this._shadowData&&s===this._shadowDim&&i[0]===o[0]&&i[1]===o[1]||(r=.3*((l=a.getDataExtent(s))[1]-l[0]),l=[l[0]-r,l[1]+r],h=[0,i[1]],n=[0,i[0]],c=[[i[0],0],[0,0]],p=[],d=n[1]/(a.count()-1),g=0,f=Math.round(a.count()/i[0]),a.each([s],function(t,e){var n;0e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},I3.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new E(e,t),this._brushing=!0,this._brushStartTime=+new Date},I3.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e)&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=Sr([br(e.x,n,i=[0,100],!0),br(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},I3.prototype._onBrush=function(t){this._brushing&&(Le(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},I3.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new x3({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),this._brushStart),n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},I3.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?S3:null,start:e[0],end:e[1]})},I3.prototype._findCoordRect=function(){var t,e,n=BB(this.dataZoomModel).infoList;return t=(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},I3.type="dataZoom.slider",I3);function I3(){var t=null!==v3&&v3.apply(this,arguments)||this;return t.type=I3.type,t._displayables={},t}function T3(t){return"vertical"===t?"ns-resize":"ew-resize"}function C3(t){t.registerComponentModel(y3),t.registerComponentView(M3),d3(t)}r(function(t){r(g3),r(C3)});var D3=["rect","polygon","keep","clear"];function A3(t,e){var n,i,o,r=Ur(t?t.brush:[]);r.length&&(n=[],et(r,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),(r=W(r=t&&t.toolbox)?r[0]:r)||(t.toolbox=[r={feature:{}}]),r=(t=r.feature||(r.feature={})).brush||(t.brush={}),(t=r.type||(r.type=[])).push.apply(t,n),o={},et(i=t,function(t){o[t]=1}),i.length=0,et(o,function(t,e){i.push(e)}),e)&&!t.length&&t.push.apply(t,D3)}var k3=et;function L3(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function P3(e,t,o){var r={};return k3(t,function(n){var t,i=r[n]=((t=function(){}).prototype.__hidden=t.prototype,new t);k3(e[n],function(t,e){ZT.isValidType(e)&&(t={type:e,visual:t},o&&o(t,n),i[e]=new ZT(t),"opacity"===e)&&((t=S(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new ZT(t))})}),r}function O3(e,n,t){var i;et(t,function(t){n.hasOwnProperty(t)&&L3(n[t])&&(i=!0)}),i&&et(t,function(t){n.hasOwnProperty(t)&&L3(n[t])?e[t]=S(n[t]):delete e[t]})}var R3={lineX:N3(0),lineY:N3(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Qx(n.range,t[0],t[1])},rect:function(t,e,n){var i,o,r,a,s,n=n.range;return!(!t||n.length<=1)&&(i=t.x,o=t.y,r=t.width,a=t.height,s=n[0],!!(Qx(n,i,o)||Qx(n,i+r,o)||Qx(n,i,o+a)||Qx(n,i+r,o+a)||z.create(t).contain(s[0],s[1])||Xc(i,o,i+r,o,n)||Xc(i,o,i,o+a,n)||Xc(i+r,o,i+r,o+a,n)||Xc(i,o+a,i+r,o+a,n))||void 0)}}};function N3(i){var o=["x","y"],r=["width","height"];return{point:function(t,e,n){if(t)return n=n.range,E3(t[i],n)},rect:function(t,e,n){if(t)return n=n.range,(t=[t[o[i]],t[o[i]]+t[r[i]]])[1]t[1]&&t.reverse(),t}function G3(t,e){return ra(t,e,{includeMainTypes:z3})}var W3={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=N(),a={},s={};(o||r||t)&&(et(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),et(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),et(t,function(t){e.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),e.each(function(t){var e=t.coordinateSystem,n=[];et(e.getCartesians(),function(t,e){(0<=F(o,t.getAxis("x").model)||0<=F(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:Y3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){et(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:Y3.geo})})}},H3=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,t=t.gridModel;return(t=!(t=!t&&n?n.axis.grid.model:t)&&i?i.axis.grid.model:t)&&t===e.gridModel},function(t,e){t=t.geoModel;return t&&t===e.geoModel}],Y3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(zc(t)),e}},X3={lineX:P(U3,0),lineY:P(U3,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),t=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),e=[F3([o[0],t[0]]),F3([o[1],t[1]])];return{values:e,xyMinMax:e}},polygon:function(e,n,t,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:B(t,function(t){t=e?n.pointToData(t,i):n.dataToPoint(t,i);return o[0][0]=Math.min(o[0][0],t[0]),o[1][0]=Math.min(o[1][0],t[1]),o[0][1]=Math.max(o[0][1],t[0]),o[1][1]=Math.max(o[1][1],t[1]),t}),xyMinMax:o}}};function U3(t,e,n,i){var o=n.getAxis(["x","y"][t]),n=F3(B([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))})),r=[];return r[t]=n,r[1-t]=[NaN,NaN],{values:n,xyMinMax:r}}var Z3={lineX:P(j3,0),lineY:P(j3,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,n,i){return B(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function j3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function q3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var K3=["inBrush","outOfBrush"],$3="__ecBrushSelect",J3="__ecInBrushSelectEvent";function Q3(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new V3(t.option,e)).setInputRanges(t.areas,e)})}function t4(c,t,e){var o,r,n,i,a,s,l=[];c.eachComponent({mainType:"brush"},function(t){e&&"takeGlobalCursor"===e.type&&t.setBrushOption("brush"===e.key?e.brushOption:{brushType:!1})}),Q3(c),c.eachComponent({mainType:"brush"},function(u,t){var y={brushId:u.id,brushIndex:t,brushName:u.name,areas:S(u.areas),selected:[]},e=(l.push(y),u.option),n=e.brushLink,i=[],m=[],v=[],x=!1,h=(t||(o=e.throttleType,r=e.throttleDelay),B(u.areas,function(t){var e,n,i,o=i4[t.brushType],o=V({boundingRect:o?o(t):void 0},t);return o.selectors=(n=(e=o).brushType,i={point:function(t){return R3[n].point(t,i,e)},rect:function(t){return R3[n].rect(t,i,e)}}),o})),_=P3(u.option,K3,function(t){t.mappingMethod="fixed"});function b(t){return"all"===n||i[t]}function w(t){return!!t.length}W(n)&&et(n,function(t){i[t]=1}),c.eachSeries(function(t,e){var n,i,o,r,a,s,l=v[e]=[];"parallel"===t.subType?(a=e,s=(r=t).coordinateSystem,x=x||s.hasAxisBrushed(),b(a)&&s.eachActiveState(r.getData(),function(t,e){"active"===t&&(m[e]=1)})):(a=e,i=l,(n=t).brushSelector&&!function(t,e){t=t.option.seriesIndex;return null!=t&&"all"!==t&&(W(t)?F(t,e)<0:e!==t)}(u,a)&&(et(h,function(t){u.brushTargetManager.controlSeries(t,n,c)&&i.push(t),x=x||w(i)}),b(a))&&w(i)&&(o=n.getData()).each(function(t){n4(n,i,o,t)&&(m[t]=1)}))}),c.eachSeries(function(e,t){var s,l,u,h,c,p,d,n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]},i=(y.selected.push(n),v[t]),o=e.getData(),r=b(t)?function(t){return m[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return n4(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};function g(t){return Bm(l,p,t)}function f(t,e){Gm(l,p,t,e)}function a(t,e){p=null==c?t:e;e=l.getRawDataItem(p);if(!e||!1!==e.visualMap)for(var e=u.call(h,t),n=s[e],i=d[e],o=0,r=i.length;oo[0][1]&&(o[0][1]=r[0]),r[1]o[1][1]&&(o[1][1]=r[1])}return o&&o4(o)}};function o4(t){return new z(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}u(s4,r4=Uy),s4.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new bP(e.getZr())).on("brush",T(this._onBrush,this)).mount()},s4.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},s4.prototype.updateTransform=function(t,e,n,i){Q3(e),this._updateController(t,e,n,i)},s4.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},s4.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},s4.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},s4.prototype.dispose=function(){this._brushController.dispose()},s4.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:e,areas:S(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:S(n),$from:e})},s4.type="brush";var r4,a4=s4;function s4(){var t=null!==r4&&r4.apply(this,arguments)||this;return t.type=s4.type,t}u(h4,l4=g),h4.prototype.optionUpdated=function(t,e){var n=this.option,e=(e||O3(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{});n.outOfBrush=n.outOfBrush||{color:"#ddd"},e.hasOwnProperty("liftZ")||(e.liftZ=5)},h4.prototype.setAreas=function(t){t&&(this.areas=B(t,function(t){return c4(this.option,t)},this))},h4.prototype.setBrushOption=function(t){this.brushOption=c4(this.option,t),this.brushType=this.brushOption.brushType},h4.type="brush",h4.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],h4.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4};var l4,u4=h4;function h4(){var t=null!==l4&&l4.apply(this,arguments)||this;return t.type=h4.type,t.areas=[],t.brushOption={},t}function c4(t,e){return d({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Tp(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function p4(){}var d4={};function g4(t,e){d4[t]=e}function f4(t){return d4[t]}var y4,m4=["rect","polygon","lineX","lineY","keep","clear"],v4=(u(x4,y4=p4),x4.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length}),this._brushType=i,this._brushMode=o,et(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},x4.prototype.updateView=function(t,e,n){this.render(t,e,n)},x4.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return et(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},x4.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},x4.getDefaultOption=function(t){return{show:!0,type:m4.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},x4);function x4(){return null!==y4&&y4.apply(this,arguments)||this}r(function(t){t.registerComponentView(a4),t.registerComponentModel(u4),t.registerPreprocessor(A3),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,t4),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Bt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Bt),g4("brush",v4)});var _4,b4=function(t,e,n){t=S((w4[t]||{})[e]);return n&&W(t)?t[t.length-1]:t},w4={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},S4=ZT.mapVisual,M4=ZT.eachVisual,I4=W,T4=et,C4=Sr,D4=br,mp=(u(A4,_4=g),A4.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},A4.prototype.optionUpdated=function(t,e){var n=this.option;e||O3(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},A4.prototype.resetVisual=function(t){var e=this.stateList;t=T(t,this),this.controllerVisuals=P3(this.option.controller,e,t),this.targetVisuals=P3(this.option.target,e,t)},A4.prototype.getItemSymbol=function(){return null},A4.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=Ur(t),n},A4.prototype.eachTargetSeries=function(e,n){et(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},A4.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},A4.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter,e=(n=n||["<",">"],W(t)&&(t=t.slice(),i=!0),e?t:i?[s(t[0]),s(t[1])]:s(t));return Y(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):D(o)?i?o(t[0],t[1]):o(t):i?t[0]===a[0]?n[0]+" "+e[1]:t[1]===a[1]?n[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},A4.prototype.resetExtent=function(){var t=this.option,t=C4([t.min,t.max]);this._dataExtent=t},A4.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0<=i;i--){var o=n[i],o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},A4.prototype.getExtent=function(){return this._dataExtent.slice()},A4.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,t={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={}),u=(d(i,t),d(o,t),this.isCategory());function r(t){I4(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")}}r.call(this,i),r.call(this,o),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},T4(e,function(t,e){var n;ZT.isValidType(e)&&null!=(n=b4(e,"inactive",u))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(o){var r=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,a=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,s=this.get("inactiveColor"),l=this.getItemSymbol()||"roundRect";T4(this.stateList,function(t){var e,n=this.itemSize,i=o[t],t=(null==(i=i||(o[t]={color:u?s:[s]})).symbol&&(i.symbol=r&&S(r)||(u?l:[l])),null==i.symbolSize&&(i.symbolSize=a&&S(a)||(u?n[0]:[n[0],n[0]])),i.symbol=S4(i.symbol,function(t){return"none"===t?l:t}),i.symbolSize);null!=t&&(e=-1/0,M4(t,function(t){ee[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},O4.prototype.completeVisualOption=function(){k4.prototype.completeVisualOption.apply(this,arguments),et(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},O4.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},O4.prototype.getSelected=function(){var t=this.getExtent(),e=Sr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},O4.prototype.findTargetDataIndices=function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},O4.prototype.getVisualMeta=function(n){var t=R4(0,0,this.getExtent()),e=R4(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(t,e)})}for(var r=0,a=0,s=e.length,l=t.length;at[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},U4.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},U4.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Z("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},U4.prototype._updateHandle=function(i,o){var r,a,s,l,u,h;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),W4([0,1],function(t){var e=s[t],n=(e.setStyle("fill",o.handlesColor[t]),e.y=i[t],G4(i[t],[0,u[1]],h,!0)),n=this.getControllerVisual(n,"symbolSize"),n=(e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2,Vc(r.handleLabelPoints[t],zc(e,this.group)));l[t].setStyle({x:n[0],y:n[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},U4.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),t=G4(t,r,s,!0),r=a[0]-c/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,Vc(l.indicatorLabelPoint,zc(u,this.group))),c=l.indicatorLabel,l=(c.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),p="horizontal"===this._orient,n=(c.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:p?l:"middle",align:p?"center":l}),{x:r,y:t,style:{fill:h}}),e={style:{x:a[0],y:a[1]}},d=(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(p={duration:100,easing:"cubicInOut",additive:!0},u.x=s.x,u.y=s.y,u.animateTo(n,p),c.animateTo(e,p)):(u.attr(n),c.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(d)for(var g=0;g ",i):this._showIndicator(r,r,"≈ ",i)),t=this._hoverLinkDataIndices,n=[],(e||j4(s))&&(n=this._hoverLinkDataIndices=s.findTargetDataIndices(a)),l=n,o={},u(t||[],r={}),u(l||[],o,r),i=[h(r),h(o)],this._dispatchHighDown("downplay",B4(i[0],s)),this._dispatchHighDown("highlight",B4(i[1],s)))},U4.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;Ym(t.target,function(t){t=$(t);return null!=t.dataIndex&&(e=t,1)},!0),e&&(t=this.ecModel.getSeriesByIndex(e.seriesIndex),(n=this.visualMapModel).isTargetSeries(t))&&(n=(t=t.getData(e.dataType)).getStore().get(n.getDataDimensionIndex(t),e.dataIndex),isNaN(n)||this._showIndicator(n,n))},U4.prototype._hideIndicator=function(){var t=this._shapes,e=(t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0),this._shapes.handleLabels);if(e)for(var n=0;nn&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:o,outerColors:r};function s(t,e){var n=a.getRepresentValue({interval:t}),n=(e=e||a.getValueState(n),i(n,e));t[0]===-1/0?r[0]=n:t[1]===1/0?r[1]=n:o.push({value:t[0],color:n},{value:t[1],color:n})}},uF.type="visualMap.piecewise",uF.defaultOption=kp(mp.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0});var aF,sF=uF,lF={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber,o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)},this)}};function uF(){var t=null!==aF&&aF.apply(this,arguments)||this;return t.type=uF.type,t._pieceList=[],t}function hF(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}u(dF,cF=e),dF.prototype.doRender=function(){var i=this.group,o=(i.removeAll(),this.visualMapModel),r=o.get("textGap"),t=o.textStyleModel,a=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),u=o.itemSize,t=this._getViewData(),e=t.endsText,h=wt(o.get("showLabel",!0),!e);e&&this._renderEndsText(i,e[0],u,h,l),et(t.viewPieceList,function(t){var e=t.piece,n=new Z,t=(n.onclick=T(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList),o.getRepresentValue(e));this._createItemSymbol(n,t,[0,0,u[0],u[1]]),h&&(t=this.visualMapModel.getValueState(t),n.add(new K({style:{x:"right"===l?-r:u[0]+r,y:u[1]/2,text:e.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:"outOfRange"===t?.5:1}}))),i.add(n)},this),e&&this._renderEndsText(i,e[1],u,h,l),Td(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},dF.prototype._enableHoverLink=function(t,n){var i=this,e=(t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")}),function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:B4(e.findTargetDataIndices(n),e)})})},dF.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?V4(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},dF.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Z,a=this.visualMapModel.textStyleModel,r.add(new K({style:np(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(r))},dF.prototype._getViewData=function(){var t=this.visualMapModel,e=B(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},dF.prototype._createItemSymbol=function(t,e,n){t.add(i0(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},dF.prototype._onItemClick=function(t){var n,i,e=this.visualMapModel,o=e.option,r=o.selectedMode;r&&(n=S(o.selected),i=e.getSelectedMapKey(t),"single"===r||!0===r?(n[i]=!0,et(n,function(t,e){n[e]=e===i})):n[i]=!n[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n}))},dF.type="visualMap.piecewise";var cF,pF=dF;function dF(){var t=null!==cF&&cF.apply(this,arguments)||this;return t.type=dF.type,t}function gF(t){t.registerComponentModel(sF),t.registerComponentView(pF),oF(t)}r(function(t){r(rF),r(gF)});u(mF,fF=xa),mF.type="dataZoom.select";var fF,yF=mF;function mF(){var t=null!==fF&&fF.apply(this,arguments)||this;return t.type=mF.type,t}u(_F,vF=Jm),_F.type="dataZoom.select";var vF,xF=_F;function _F(){var t=null!==vF&&vF.apply(this,arguments)||this;return t.type=_F.type,t}function bF(t){t.registerComponentModel(yF),t.registerComponentView(xF),d3(t)}u(MF,wF=g),MF.prototype.optionUpdated=function(){wF.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;et(this.option.feature,function(t,e){e=f4(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),d(t,e.defaultOption))})},MF.type="toolbox",MF.layoutMode={type:"box",ignoreSize:!0},MF.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}};var wF,SF=MF;function MF(){var t=null!==wF&&wF.apply(this,arguments)||this;return t.type=MF.type,t}u(CF,IF=Uy),CF.prototype.render=function(d,g,f,y){var m,v,x,_,b,t,e,n,i,o,r,w=this.group;function a(t,e){var n,t=b[t],e=b[e],i=x[t],o=new Tp(i,d,d.ecModel);if(y&&null!=y.newTitle&&y.featureName===t&&(i.title=y.newTitle),t&&!e){if(0===t.indexOf("my"))n={onclick:o.option.onclick,featureName:t};else{i=f4(t);if(!i)return;n=new i}_[t]=n}else if(!(n=_[e]))return;n.uid=Ap("toolbox-feature"),n.model=o,n.ecModel=g,n.api=f;var r,a,s,l,u,h,c,p,i=n instanceof p4;t||!e?!o.get("show")||i&&n.unusable?i&&n.remove&&n.remove(g,f):(a=n,e=t,u=(r=o).getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),t=a instanceof p4&&a.getIcons?a.getIcons():r.get("icon"),c=r.get("title")||{},Y(t)?(s={})[e]=t:s=t,Y(c)?(l={})[e]=c:l=c,p=r.iconPaths={},et(s,function(t,e){var n=Yc(t,{},{x:-m/2,y:-m/2,width:m,height:m}),i=(n.setStyle(u.getItemStyle()),n.ensureState("emphasis").style=h.getItemStyle(),new K({style:{text:l[e],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0}));n.setTextContent(i),Zc({el:n,componentModel:d,itemName:e,formatterParamsExtra:{title:l[e]}}),n.__title=l[e],n.on("mouseover",function(){var t=h.getItemStyle(),e=v?null==d.get("right")&&"right"!==d.get("left")?"right":"left":null==d.get("bottom")&&"bottom"!==d.get("top")?"bottom":"top";i.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),n.setTextConfig({position:h.get("textPosition")||e}),i.ignore=!d.get("showTitle"),f.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",e])&&f.leaveEmphasis(this),i.hide()}),("emphasis"===r.get(["iconStatus",e])?su:lu)(n),w.add(n),n.on("click",T(a.onclick,a,g,f,e)),p[e]=n}),o.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?su:lu)(i[t])},n instanceof p4&&n.render&&n.render(o,g,f,y)):i&&n.dispose&&n.dispose(g,f)}w.removeAll(),d.get("show")&&(m=+d.get("itemSize"),v="vertical"===d.get("orient"),x=d.get("feature")||{},_=this._features||(this._features={}),b=[],et(x,function(t,e){b.push(e)}),new Qv(this._featureNames||[],b).add(a).update(a).remove(P(a,null)).execute(),this._featureNames=b,t=w,n=f,i=(e=d).getBoxLayoutParams(),o=e.get("padding"),n={width:n.getWidth(),height:n.getHeight()},r=Cd(i,n,o),Td(e.get("orient"),t,e.get("itemGap"),r.width,r.height),Dd(t,i,n,o),w.add(Sz(w.getBoundingRect(),d)),v||w.eachChild(function(t){var e,n,i=t.__title,o=t.ensureState("emphasis"),o=o.textConfig||(o.textConfig={}),r=t.getTextContent(),r=r&&r.ensureState("emphasis");r&&!D(r)&&i&&(r=r.style||(r.style={}),i=jo(i,K.makeFont(r)),e=t.x+w.x,n=!1,t.y+w.y+m+i.height>f.getHeight()&&(o.position="top",n=!0),t=n?-5-i.height:m+10,e+i.width/2>f.getWidth()?(o.position=["100%",t],r.align="right"):e-i.width/2<0&&(o.position=[0,t],r.align="left"))}))},CF.prototype.updateView=function(t,e,n,i){et(this._features,function(t){t instanceof p4&&t.updateView&&t.updateView(t.model,e,n,i)})},CF.prototype.remove=function(e,n){et(this._features,function(t){t instanceof p4&&t.remove&&t.remove(e,n)}),this.group.removeAll()},CF.prototype.dispose=function(e,n){et(this._features,function(t){t instanceof p4&&t.dispose&&t.dispose(e,n)})},CF.type="toolbox";var IF,TF=CF;function CF(){return null!==IF&&IF.apply(this,arguments)||this}u(kF,DF=p4),kF.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png",e=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),t=w.browser;if(D(MouseEvent)&&(t.newEdge||!t.ie&&!t.edge)){var t=document.createElement("a"),a=(t.download=i+"."+r,t.target="_blank",t.href=e,new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}));t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob||o){var t=e.split(","),a=-1',o=window.open();o.document.write(t),o.document.title=i}},kF.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}};var DF,AF=kF;function kF(){return null!==DF&&DF.apply(this,arguments)||this}var LF,PF="__ec_magicType_stack__",OF=[["line","bar"],["stack"]],RF=(u(EF,LF=p4),EF.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return et(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},EF.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},EF.prototype.onclick=function(t,e,a){var n,s,l=this.model,i=l.get(["seriesIndex",a]);NF[a]&&(s={series:[]},et(OF,function(t){0<=F(t,a)&&et(t,function(t){l.setIconStatus(t,"normal")})}),l.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(t){var e=t.subType,n=t.id,e=NF[a](e,n,t,l),n=(e&&(V(e,t.option),s.series.push(e)),t.coordinateSystem);if(n&&"cartesian2d"===n.type&&("line"===a||"bar"===a)){e=n.getAxesByScale("ordinal")[0];if(e){var i=e.dim+"Axis",o=t.getReferringComponents(i,sa).models[0].componentIndex;s[i]=s[i]||[];for(var r=0;r<=o;r++)s[i][o]=s[i][o]||{};s[i][o].boundaryGap="bar"===a}}}),"stack"===(t=a)&&(n=d({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title),"emphasis"!==l.get(["iconStatus",a]))&&(t="tiled"),e.dispatchAction({type:"changeMagicType",currentType:t,newOption:s,newTitle:n,featureName:"magicType"}))},EF),NF={line:function(t,e,n,i){if("bar"===t)return d({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return d({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){n=n.get("stack")===PF;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),d({id:e,stack:n?"":PF},i.get(["option","stack"])||{},!0)}};function EF(){return null!==LF&&LF.apply(this,arguments)||this}Wv({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var zF=new Array(60).join("-"),VF="\t";function BF(t){o={},r=[],a=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;(i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(e=i.getBaseAxis()).type?(n=e.dim+"_"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},a.push({axisDim:e.dim,axisIndex:e.index})),o[n].series):r).push(t)});var o,r,a,h,t={seriesGroupByCategoryAxis:o,other:r,meta:a};return{value:pt([(h=[],et(t.seriesGroupByCategoryAxis,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(B(t.series,function(t){return t.name})),r=[n.model.getCategories()];et(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var a=[o.join(VF)],s=0;s":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wG=(OG.prototype.evaluate=function(t){var e=typeof t;return Y(e)?this._condVal.test(t):!!X(e)&&this._condVal.test(t+"")},OG),SG=(PG.prototype.evaluate=function(){return this.value},PG),MG=(LG.prototype.evaluate=function(){for(var t=this.children,e=0;e"}(i,o)+("style"!==i?we(e):e||"")+(n?r+B(n,t).join(r)+r:"")+""}(t)}function aW(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function sW(t,e,n,i){return oW("svg","root",{width:t,height:e,xmlns:QG,"xmlns:xlink":tW,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var lW={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"},uW="transform-origin";var hW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function cW(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function pW(t){return Y(t)?lW[t]?"cubic-bezier("+lW[t]+")":ni(t)?t:"":""}function dW(A,k,L,P){var t=A.animators,e=t.length,n=[];if(A instanceof qh){if(o=function(t,e,u){var h,c,t=t.shape.paths,p={};if(et(t,function(t){var e=aW(u.zrId),t=(e.animation=!0,dW(t,{},e,!0),e.cssAnims),n=e.cssNodes,e=G(t),i=e.length;if(i){var o,r,a=t[c=e[i-1]];for(o in a){var s=a[o];p[o]=p[o]||{d:""},p[o].d+=s.d||""}for(r in n){var l=n[r].animation;0<=l.indexOf(c)&&(h=l)}}}),h)return e.d=!1,t=cW(p,u),h.replace(c,t)}(A,k,L))n.push(o);else if(!e)return}else if(!e)return;for(var i,o,r,a={},s=0;s"].join(r):"")&&(e=oW("style","stl",{},[],c),h.push(e)),sW(i,l,h,t.useViewBox)},jW.prototype.renderToString=function(t){return rW(this.renderToVNode({animation:R((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:R(t.useViewBox,!0)}),{newline:!0})},jW.prototype.setBackgroundColor=function(t){this._backgroundColor=t},jW.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},jW.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0,d=0,g=0;g