!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function h(t,e){function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function v(){for(var t=0,e=0,n=arguments.length;e>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[h]+":0",i[1-l]+":auto",o[1-h]+":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 re(t){return"CANVAS"===t.nodeName.toUpperCase()}var ae="undefined"!=typeof window&&!!window.addEventListener,se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,le=[];function he(t,e,n,i){return n=n||{},i||!b.canvasSupported?ue(t,e,n):b.browser.firefox&&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):ue(t,e,n),n}function ue(t,e,n){if(b.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(re(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(oe(le,t,o,e))return n.zrX=le[0],void(n.zrY=le[1])}n.zrX=n.zrY=0}function ce(t){return t||window.event}function pe(t,e,n){var i;return null==(e=ce(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&he(t,i,e,n):(he(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0t.getWidth()||n<0||n>t.getHeight()}function ke(){return[1,0,0,1,0,0]}function De(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Pe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Le(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=n,t}function Oe(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Re(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*l,t[1]=-i*l+a*n,t[2]=o*n+s*l,t[3]=-o*l+n*s,t[4]=n*r+l*e,t[5]=n*e-l*r,t}function Ee(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Be(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=n*a-r*i;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*o)*s,t[5]=(r*o-n*e)*s,t):null}I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){Ce.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=Ie(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=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),pn(t,e),e):void ln(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(ln(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),pn(t,e),e):void ln(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?ln(e,+a[0],+a[1],+a[2],1):ln(e,0,0,0,1);s=rn(a.pop());case"rgb":return 3!==a.length?void ln(e,0,0,0,1):(ln(e,on(a[0]),on(a[1]),on(a[2]),s),pn(t,e),e);case"hsla":return 4!==a.length?void ln(e,0,0,0,1):(a[3]=rn(a[3]),fn(a,e),pn(t,e),e);case"hsl":return 3!==a.length?void ln(e,0,0,0,1):(fn(a,e),pn(t,e),e);default:return}}ln(e,0,0,0,1)}}function fn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=rn(t[1]),o=rn(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return ln(e=e||[],en(255*an(o,i,n+1/3)),en(255*an(o,i,n)),en(255*an(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function gn(t,e){var n=dn(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,255=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(it(e)){var o,r=it((r=e)&&r[0])?2:1;if(0e);h++);h=Math.min(h-1,r-2)}var u,c,p,d,f,g,y,m=o[h+1],v=o[h];v&&m&&(this._lastFrame=h,this._lastFramePercent=e,0!=(u=m.percent-v.percent))&&(u=(e-v.percent)/u,c=n?this._additiveValue:l?Ln:t[a],(0=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},Yn.prototype.clone=function(){return new Yn(this.x,this.y,this.width,this.height)},Yn.prototype.copy=function(t){Yn.copy(this,t)},Yn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Yn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Yn.prototype.isZero=function(){return 0===this.width||0===this.height},Yn.create=function(t){return new Yn(t.x,t.y,t.width,t.height)},Yn.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Yn.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5>>1])<0?l=r:s=1+r;var h=i-s;switch(h){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+u])<0?l=u:a=u+1}return l}function ki(D,P){var L,O,R=Mi,E=0,B=(D.length,[]);function e(t){var e=L[t],n=O[t],i=L[t+1],o=O[t+1],t=(O[t]=n+o,t===E-3&&(L[t+1]=L[t+2],O[t+1]=O[t+2]),E--,Ii(D[i],D,e,n,0,P));if(e+=t,0!=(n-=t)&&0!==(o=Ai(D[e+n-1],D,i,o,o-1,P)))if(n<=o){var r=e,a=n,t=i,s=o,l=0;for(l=0;lO[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(o);do{}while((r=Ti(t,n,i,e))this._sleepAfterStill)&&this.animation.stop()},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(t){},e.prototype.removeHover=function(t){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},e.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},e.prototype.off=function(t,e){this.handler.off(t,e)},e.prototype.trigger=function(t,e){this.handler.trigger(t,e)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/o*r+n[0]}function B(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function mo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function vo(t){return t.sort(function(t,e){return t-e}),t}function _o(t){var t=t.toString(),e=t.indexOf("e");return 0=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=Ir(e,u,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||Ta(e-this._yi)>this._uy||this._len<5;return this.addData(da.L,t,e),this._ctx&&n&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},o.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this.addData(da.C,t,e,n,i,o,r),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,o,r):this._ctx.bezierCurveTo(t,e,n,i,o,r)),this._xi=o,this._yi=r,this},o.prototype.quadraticCurveTo=function(t,e,n,i){return this.addData(da.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},o.prototype.arc=function(t,e,n,i,o,r){return ka[0]=i,ka[1]=o,Pa(ka,r),this.addData(da.A,t,e,n,n,i=ka[0],(o=ka[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=ba(o)*n+t,this._yi=Sa(o)*n+e,this},o.prototype.arcTo=function(t,e,n,i,o){return this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},o.prototype.rect=function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(da.R,t,e,n,i),this},o.prototype.closePath=function(){this.addData(da.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},o.prototype.fill=function(t){t&&t.fill(),this.toStatic()},o.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},o.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;nh.length&&(this._expandData(),h=this.data);for(var u=0;un||Ta(y)>i||c===e-1)&&(f=Math.sqrt(A*A+y*y),o=g,r=_);break;case da.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var h=t,u=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Xr(t,n,o,a,f),f=Xr(e,i,r,s,f),y=g-h,m=f-u;c+=Math.sqrt(y*y+m*m),h=g,u=f}return c}(o,r,m,v,g,_,x,w,10),o=x,r=w;break;case da.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,h=0,u=1/a,c=1;c<=a;c++){var p=c*u,d=$r(t,n,o,p),p=$r(e,i,r,p),f=d-s,g=p-l;h+=Math.sqrt(f*f+g*g),s=d,l=p}return h}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),o=g,r=_;break;case da.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,t[c++],d&&(a=ba(M)*b+x,s=Sa(M)*S+w),f=wa(b,S)*xa(Aa,Math.abs(T)),o=ba(C)*b+x,r=Sa(C)*S+w;break;case da.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case da.Z:var A=a-o,y=s-r;f=Math.sqrt(A*A+y*y),o=a,r=s}0<=f&&(h+=l[u++]=f)}return this._pathLen=h},o.prototype.rebuildPath=function(t,e){var n,i,o,r,a=this.data,s=this._ux,l=this._uy,h=this._len,u=e<1,c=0,p=0;if(!u||(this._pathSegLen||this._calculateLength(),o=this._pathSegLen,r=e*this._pathLen))t:for(var d=0;ds||Ta(E-i)>l||d===h-1){if(u){if(r=Ha[i=0]+t&&a<=Ha[1]+t?u:0;oMath.PI/2&&c<1.5*Math.PI?-u:u)}return l}(y,m,_,x,x+w,b,T,o);h=Math.cos(x+w)*v+y,u=Math.sin(x+w)*_+m;break;case Na.R:c=h=a[d++],p=u=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Oa(c,p,S,p,e,i,o)||Oa(S,p,S,M,e,i,o)||Oa(S,M,c,M,e,i,o)||Oa(c,M,c,p,e,i,o))return!0}else l=(l+=za(S,p,S,M,i,o))+za(c,M,c,p,i,o);break;case Na.Z:if(n){if(Oa(h,u,c,p,e,i,o))return!0}else l+=za(h,u,c,p,i,o);h=c,u=p}}return n||(t=u,r=p,Math.abs(t-r)i.len()&&(hMath.abs(i[1])?0"'])/g,Qc={"&":"&","<":"<",">":">",'"':""","'":"'"};function tp(t){return null==t?"":(t+"").replace(Jc,function(t,e){return Qc[e]})}function ep(t,e,n){function i(t){return t&&bt(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?Mo(t):t;if(!isNaN(+r))return Oc(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?lt(t)?i(t):ht(t)&&o(t)?t+"":"-":o(r=Io(t))?jc(r):lt(t)?i(t):"-"}function np(t,e){return"{"+t+(null==e?"":e)+"}"}var ip=["a","b","c","d","e","f","g"];function op(t,e,n){var i=(e=F(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r':'':{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 ap(t,e){return e=e||"transparent",C(t)?t:D(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var sp=I,lp=["left","right","top","bottom","width","height"],hp=[["width","left","right"],["height","top","bottom"]];function up(a,s,l,h,u){var c=0,p=0,d=(null==h&&(h=1/0),null==u&&(u=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?(i=r.width+(e?-e.x+r.x:0),h<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,r.height):Math.max(d,r.height)):(i=r.height+(e?-e.y+r.y:0),u<(o=p+i)||t.newline?(c+=d+l,p=0,o=i,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=o+l)})}function cp(t,e,n){n=$c(n||0);var i=e.width,o=e.height,r=B(t.left,i),a=B(t.top,o),e=B(t.right,i),s=B(t.bottom,o),l=B(t.width,i),h=B(t.height,o),u=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(h)&&(h=o-s-u-a),null!=p&&(isNaN(l)&&isNaN(h)&&(i/oe)return t[i];return t[n-1]}var Yp,Zp="\0_ec_inner",qp=(h(r,Yp=uc),r.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new uc(i),this._locale=new uc(o),this._optionManager=r},r.prototype.setOption=function(t,e,n){e=$p(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},r.prototype.resetOption=function(t,e){return this._resetOption(t,$p(e))},r.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Hp(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&&I(n,function(t){i=!0,this._mergeOption(t,e)},this),i},r.prototype.mergeOption=function(t){this._mergeOption(t,null)},r.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,u=this._componentsCount,n=[],r=P(),c=t&&t.replaceMergeMainTypeMap;Rp(this).datasetMap=P(),I(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?M(t):p(o[e],t,!0))}),c&&c.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(r){var t=function(t,e,n){return(e=(e=Np.get(e))&&e(t))?n.concat(e):n}(this,r,Oo(i[r])),e=h.get(r),n=e?c&&c.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=zo(e,t,n),a=(Go(e,r,g),o[r]=null,h.set(r,null),u.set(r,0),[]),s=[],l=0;I(e,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;n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=T({componentIndex:e},t.keyInfo),T(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?(a.push(n.option),s.push(n),l++):(a.push(void 0),s.push(void 0))},this),o[r]=a,h.set(r,s),u.set(r,l),"series"===r&&Fp(this)},this),this._seriesIndices||Fp(this)},r.prototype.getOption=function(){var a=M(this.option);return I(a,function(t,e){if(g.hasClass(e)){for(var n=Oo(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!Wo(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[Zp],a},r.prototype.getTheme=function(){return this._theme},r.prototype.getLocaleModel=function(){return this._locale},r.prototype.getLocale=function(t){return this.getLocaleModel().get(t)},r.prototype.setUpdatePayload=function(t){this._payload=t},r.prototype.getUpdatePayload=function(){return this._payload},r.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;i0?h.html:0,o);n!=null&&r.push(n)}),r.length)return"richText"===i.renderMode?r.join(h.richText):qf(r.join(""),e)}(t,e,o?n:r.html,i);return o?a:(o=ep(e.header,"ordinal",t.useUTC),e=Vf(i,t.renderMode).nameStyle,"richText"===t.renderMode?jf(t,o,e)+r.richText+a:qf('
'+tp(o)+"
"+a,n))}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var o,r,a,s,l=t.renderMode,h=e.noName,u=e.noValue,c=!e.markerType,p=e.name,d=e.value,f=t.useUTC;if(!h||!u)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=h?"":ep(p,"ordinal",f),r=e.valueType,e=u?[]:F(d)?q(d,function(t,e){return ep(t,F(r)?r[e]:r,f)}):[ep(d,F(r)?r[0]:r,f)],d=!c||!h,a=!c&&h,i=Vf(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(h?"":jf(t,p,s))+(u?"":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(e.join(" "),o)}(t,e,d,a,i)):qf((c?"":o)+(h?"":''+tp(p)+"")+(u?"":function(t,e,n,i){n=n?"10px":"20px";return''+q(t,tp).join("  ")+""}(e,d,a,i)),n)}}};function Yf(t,e,n,i,o,r){var a;if(t)return(a=Uf(t)).planLayout(t),a.build({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,r)}function Zf(t){t=t.__gapLevelBetweenSubBlocks;return{html:Hf[t],richText:Wf[t]}}function qf(t,e){return'
'+t+'
'}function jf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Kf(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Jf.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Jf.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=rp({color:e,type:t,renderMode:n,markerId:i});return C(e)?e:(this.richTextStyles[i]=e.style,e.content)},Jf.prototype.wrapRichTextStyle=function(t,e){var n={},e=(F(e)?I(e,function(t){return T(n,t)}):T(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var $f=Jf;function Jf(){this.richTextStyles={},this._nextStyleNameId=Do()}function Qf(t){var e,n,i,o,r,a,s,l,h,u,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=F(m),_=(_=d,ap((w=p).getData().getItemVisual(_,"style")[w.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Gf("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(h.push(t),u.push(e.type)))}1this.getShallow("animationThreshold")?!1:t)},s.prototype.restoreData=function(){this.dataTask.dirty()},s.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Gp.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},s.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},s.prototype.getProgressive=function(){return this.get("progressive")},s.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},s.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},s.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),o=0;oe.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function lg(e,n){I(v(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,at(hg,n))})}function hg(t,e){t=ug(t);return t&&t.setOutputEnd((e||this).count()),e}function ug(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}nt(ig,sc),nt(ig,Gp),rr(ig,g);pg.prototype.init=function(t,e){},pg.prototype.render=function(t,e,n,i){},pg.prototype.dispose=function(t,e){},pg.prototype.updateView=function(t,e,n,i){},pg.prototype.updateLayout=function(t,e,n,i){},pg.prototype.updateVisual=function(t,e,n,i){},pg.prototype.blurSeries=function(t,e){};var cg=pg;function pg(){this.group=new so,this.uid=dc("viewComponent")}function dg(){var r=Xo();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"}}or(cg),hr(cg);var fg=Xo(),gg=dg(),yg=(mg.prototype.init=function(t,e){},mg.prototype.render=function(t,e,n,i){},mg.prototype.highlight=function(t,e,n,i){_g(t.getData(),i,"emphasis")},mg.prototype.downplay=function(t,e,n,i){_g(t.getData(),i,"normal")},mg.prototype.remove=function(t,e){this.group.removeAll()},mg.prototype.dispose=function(t,e){},mg.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},mg.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},mg.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},mg.markUpdateMethod=function(t,e){fg(t).updateMethod=e},mg.protoInitialize=void(mg.prototype.type="chart"),mg);function mg(){this.group=new so,this.uid=dc("viewChart"),this.renderTask=nf({plan:xg,reset:wg}),this.renderTask.context={view:this}}function vg(t,e,n){t&&("emphasis"===e?ol:rl)(t,n)}function _g(e,t,n){var i,o=Uo(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Is[t])&&As<=32?Is[t]=As++:i):null;null!=o?I(Oo(o),function(t){vg(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){vg(t,n,r)})}function xg(t){return gg(t.model)}function wg(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&fg(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),bg[r]}or(yg),hr(yg);var bg={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)}}},Sg="\0__throttleOriginMethod",Mg="\0__throttleRate",Tg="\0__throttleType";function Cg(t,o,r){var a,s,l,h,u,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,h||[])}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}},Bg.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Bg.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}},Bg.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=P();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)})},Bg.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;I(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});wt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},Bg.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)},Bg.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Bg.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Bg.prototype._performStageTasks=function(t,s,l,h){h=h||{};var u=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}I(t,function(i,t){var e,n,o,r,a;h.visualType&&h.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(h,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,h.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(u=!0)):e&&e.each(function(t,e){p(h,t)&&t.dirty();var n=c.getPerformArgs(t,h.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(u=!0)}))}),this.unfinished=u||this.unfinished},Bg.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Bg.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())})},Bg.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Bg.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=P(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||nf({plan:Hg,reset:Wg,count:Xg}));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)},Bg.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||nf({reset:zg}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=P(),e=t.seriesType,l=t.getTargetSeries,h=!0,u=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(u=!0,nf({reset:Ng,onDirty:Vg})));e.context={model:t,overallProgress:h},e.agent=r,e.__block=h,o._pipe(t,e)}wt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(h=!1,I(n.getSeries(),c)),u&&r.dirty()},Bg.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},Bg.wrapStageHandler=function(t,e){return(t=st(t)?{overallReset:t,seriesType:function(t){Yg=null;try{t(Zg,qg)}catch(t){}return Yg}(t)}:t).uid=dc("stageHandler"),e&&(t.visualType=e),t};var Eg=Bg;function Bg(t,e,n,i){this._stageTaskMap=P(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function zg(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ng(t){return t.overallProgress&&Fg}function Fg(){this.agent.dirty(),this.getDownstream().dirty()}function Vg(){this.agent&&this.agent.dirty()}function Hg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Wg(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Oo(t.reset(t.model,t.ecModel,t.api,t.payload));return 1>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function $m(t,o){return q(rt((t=function(t){if(t.UTF8Encoding){for(var e=t.UTF8Scale,n=(null==e&&(e=1024),t.features),i=0;i'+t.dom+""}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new ps({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),c0(p,function(t){t=new is({style:{x:t.left*e-l,y:t.top*e-h,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i)},l.prototype.convertToPixel=function(t,e){return P0(this,"convertToPixel",t,e)},l.prototype.convertFromPixel=function(t,e){return P0(this,"convertFromPixel",t,e)},l.prototype.containPixel=function(t,i){var o;if(!this._disposed)return I(Zo(this._model,t),function(t,n){0<=n.indexOf("Models")&&I(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},l.prototype.getVisual=function(t,e){var t=Zo(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,o=t,r=e;switch(r){case"color":return i.getItemVisual(o,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(o,r)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},l.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},l.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},l.prototype._initEvents=function(){var t,n,i,s=this;c0(tv,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&Iy(r,function(t){var e,t=Cs(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(n=T({},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)}),c0(nv,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),c0(["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?(Ay("map","selectchanged",n,e,t),Ay("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Ay("map","selected",n,e,t),Ay("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Ay("map","unselected",n,e,t),Ay("pie","unselected",n,e,t))})},l.prototype.isDisposed=function(){return this._disposed},l.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},l.prototype.dispose=function(){var e,n;this._disposed?this.id:(this._disposed=!0,Jo(this.getDom(),fv,""),e=this._api,n=this._model,c0(this._componentsViews,function(t){t.dispose(n,e)}),c0(this._chartsViews,function(t){t.dispose(n,e)}),this._zr.dispose(),delete uv[this.id])},l.prototype.resize=function(t){var e,n;this._disposed?this.id:(this._zr.resize(t),e=this._model,this._loadingFX&&this._loadingFX.resize(),e&&(e=e.resetOption("media"),n=t&&t.silent,this[y0]=!0,e&&A0(this),D0.update.call(this,{type:"resize",animation:T({duration:0},t&&t.animation)}),this[y0]=!1,R0.call(this,n),E0.call(this,n)))},l.prototype.showLoading=function(t,e){this._disposed?this.id:(d0(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),hv[t]&&(t=hv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},l.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},l.prototype.makeActionFromEvent=function(t){var e=T({},t);return e.type=nv[t.type],e},l.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(d0(e)||(e={silent:!!e}),ev[t.type]&&this._model&&(this[y0]?this._pendingActions.push(t):(n=e.silent,O0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&b.browser.weChat&&this._throttledZrFlush(),R0.call(this,n),E0.call(this,n))))},l.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},l.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())},l.internalField=(A0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),I0(t,!0),I0(t,!1),e.plan()},I0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,h=t._zr,u=t._api,e=0;ee.get("hoverLayerThreshold")&&!b.node&&!b.worker&&e.eachSeries(function(t){t.preventUsingHoverLayer||(t=n._chartsMap[t.__viewId]).__alive&&t.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})})},W0=function(e,n){c0(av,function(t){t(e,n)})},Y0=function(t){t[v0]=!0,t.getZr().wakeUp()},Z0=function(t){t[v0]&&(t.getZr().storage.traverse(function(t){Au(t)||K0(t)}),t[v0]=!1)},G0=function(n){return h(t,e=Jp),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){ol(t,e),Y0(n)},t.prototype.leaveEmphasis=function(t,e){rl(t,e),Y0(n)},t.prototype.enterBlur=function(t){$s(t,Ys),Y0(n)},t.prototype.leaveBlur=function(t){al(t),Y0(n)},t.prototype.enterSelect=function(t){sl(t),Y0(n)},t.prototype.leaveSelect=function(t){ll(t),Y0(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},U0=function(i){function o(t,e){for(var n=0;nm[1]&&(m[1]=y)}e&&(this._nameList[d]=e[f],this._dontMakeIdFromName||Xv(this,d))}this._rawCount=this._count=s,this._extent={},Nv(this)},c.prototype._initDataFromProvider=function(t,e,n){if(!(e<=t)){for(var i=this._rawData,o=this._storage,r=this.dimensions,a=r.length,s=this._dimensionInfos,l=this._nameList,h=this._idList,u=this._rawExtent,c=i.getSource().sourceFormat===Tp,p=0;px[1]&&(x[1]=w)}c&&!i.pure&&y&&(v=y.name,null==l[m]&&null!=v&&(l[m]=Vo(v,null)),v=y.id,null==h[m])&&null!=v&&(h[m]=Vo(v,null)),this._dontMakeIdFromName||Xv(this,m)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent={},Nv(this)}},c.prototype.count=function(){return this._count},c.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o=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},c.prototype.indicesOfNearest=function(t,e,n){var i=this._storage[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,h=this.count();lt[T][1])&&(S=!1)}S&&(s[l++]=this.getRawIndex(y))}return l_[1]&&(_[1]=v)}}}return n},c.prototype.downSample=function(t,e,n,i){for(var o=Zv(this,[t]),r=o._storage,a=[],s=Jv(1/e),l=r[t],h=this.count(),u=o._rawExtent[t],c=new(Fv(this))(h),p=0,d=0;du[1]&&(u[1]=y),c[p++]=m}return o._count=p,o._indices=c,o.getRawIndex=Wv,o},c.prototype.lttbDownSample=function(t,e){var n,i=Zv(this,[]),o=i._storage[t],r=this.count(),a=new(Fv(this))(r),s=0,l=Jv(1/e),h=this.getRawIndex(0);a[s++]=h;for(var u=1;ue[1]&&(e[1]=t[1])},x_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},x_.prototype.getExtent=function(){return this._extent.slice()},x_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},x_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},x_.prototype.isBlank=function(){return this._isBlank},x_.prototype.setBlank=function(t){this._isBlank=t};var __=x_;function x_(t){this._setting=t||{},this._extent=[1/0,-1/0]}hr(__);b_.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&q(e,S_);return new b_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},b_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},b_.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return"string"==typeof t||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},b_.prototype._getOrCreateMap=function(){return this._map||(this._map=P(this.categories))};var w_=b_;function b_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}function S_(t){return D(t)&&null!=t.value?t.value:t+""}var M_=mo;function T_(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=Ao(r/e,!0),e=(null!=n&&ri[1]&&(i[0]=i[1]),o}function C_(t){return _o(t)+2}function A_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function I_(t,e){return t>=e[0]&&t<=e[1]}function k_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function D_(t,e){return t*(e[1]-e[0])+e[0]}h(O_,P_=__),O_.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},O_.prototype.contain=function(t){return I_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},O_.prototype.normalize=function(t){return k_(t=this._getTickNumber(this.parse(t)),this._extent)},O_.prototype.scale=function(t){return t=Math.round(D_(t,this._extent)),this.getRawOrdinalNumber(t)},O_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},O_.prototype.getMinorTicks=function(t){},O_.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{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},O_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},O_.prototype.niceTicks=function(){},O_.prototype.niceExtent=function(){},O_.type="ordinal";var P_,L_=O_;function O_(t){var t=P_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return F(e=e||new w_({}))&&(e=new w_({categories:q(e,function(t){return D(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}__.registerClass(L_);var R_,E_=mo,B_=(h(z_,R_=__),z_.prototype.parse=function(t){return t},z_.prototype.contain=function(t){return I_(t,this._extent)},z_.prototype.normalize=function(t){return k_(t,this._extent)},z_.prototype.scale=function(t){return D_(t,this._extent)},z_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},z_.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},z_.prototype.getInterval=function(){return this._interval},z_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=C_(t)},z_.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:E_(s+e,o)}:{value:n[1]})}return r},z_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&u=M[0]&&d<=M[1]&&a++)}h=(M[1]-M[0])/b;if(1.5*h=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),j_.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[o][1]h&&(h=l[c],u=c);++a[u],l[u]=0,++s}return a[e]/o},getPixelPrecision:xo,getPrecision:function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},getPrecisionSafe:_o,isNumeric:ko,isRadianAroundZero:bo,linearMap:yo,nice:Ao,numericToNumber:Io,parseDate:Mo,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:To,quantityExponent:Co,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]l[1],u(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&u(l[0],n[0].coord)&&n.unshift({coord:l[0]}),u(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&u(i.coord,l[1])&&n.push({coord:l[1]}),h},F1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),q(this.scale.getMinorTicks(t=0=h}}for(var r,a=this.__startIndex;ao[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}else Q("Layer of zlevel "+t+" is not valid")},u.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;ii)return;return 1}(a,e))return o=e.mapDimension(a.dim),r={},I(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Gx(t){for(var e,n,i=t.length/2;0e[l-1].coord&&(e.reverse(),h.reverse()),e[0].coord-10),c=e[l-1].coord+10,p=c-u;if(p<.001)return"transparent";I(e,function(t){t.offset=(t.coord-u)/p}),e.push({offset:l?e[l-1].offset:.5,color:h[1]||"transparent"}),e.unshift({offset:l?e[0].offset:.5,color:h[0]||"transparent"});l=new qh(0,0,0,0,e,!0);return l[r]=u,l[r+"2"]=c,l}}}(l,a)||l.getVisual("style")[l.getVisual("drawType")]),d=(g&&d.type===a.type&&T===this._step?(_&&!y?y=this._newPolygon(c,w):y&&!_&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,ap(C)),m.setClipPath(Xx(this,a,!1,t)),b&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),zx(this._stackedOnPoints,w)&&zx(this._points,c)||(v?this._doUpdateAnimation(l,w,a,n,T,x):(T&&(c=Hx(c,a,T),w=w&&Hx(w,a,T)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:w})))):(b&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),v&&this._initSymbolLabelAnimation(l,a,o),T&&(c=Hx(c,a,T),w=w&&Hx(w,a,T)),g=this._newPolyline(c),_&&(y=this._newPolygon(c,w)),p||this._initOrUpdateEndLabel(t,a,ap(C)),m.setClipPath(Xx(this,a,!0,t))),t.get(["emphasis","focus"])),n=t.get(["emphasis","blurScope"]),b=(g.useStyle(N(h.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),vl(g,t,"lineStyle"),0e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n=t&&(0===e?0:i[e-1][0])c.width?1:0,o=Tw[i],r=Mw[i],a=c[o]/e,s=c[r],l=0;lt[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:S(yw,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)}}}}},ab=(h(sb,Yw=ig),sb.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},sb.prototype.getInitialData=function(t,e){return v_(this.getSource(),this)},sb.prototype.getDataParams=function(t,e,n){t=Yw.prototype.getDataParams.call(this,t,e);return n&&(t.info=Zw(n).info),t},sb.type="series.custom",sb.dependencies=["grid","polar","geo","singleAxis","calendar"],sb.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},sb);function sb(){var t=null!==Yw&&Yw.apply(this,arguments)||this;return t.type=sb.type,t}h(ub,lb=yg),ub.prototype.render=function(o,t,r,a){var s,e,n,i,l,h=this._data,u=o.getData(),c=this.group,p=kb(o,u,t,r),t=o.__transientTransitionOpt,t=(!t||null!=t.from&&null!=t.to?(s=new Gb(o,t),e=t?"multiple":"oneToOne",new Ov(h?h.getIndices():[],u.getIndices(),cb(h,e,t&&t.from),cb(u,e,t&&t.to),null,e).add(function(t){Db(r,null,t,p(t,a),o,c,u,null)}).remove(function(t){Fb(h.getItemGraphicEl(t),o,c)}).update(function(t,e){s.reset("oneToOne");e=h.getItemGraphicEl(e);s.findAndAddFrom(e),s.hasFrom()&&(Wb(e,c),e=null),Db(r,e,t,p(t,a),o,c,u,s),s.applyMorphing()}).updateManyToOne(function(t,e){s.reset("manyToOne");for(var n=0;ne[1]&&e.reverse(),e},uS.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},uS.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var lS,hS=uS;function uS(t,e,n,i,o){t=lS.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function cS(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},h=e.get("offset")||0,h="x"===i?[t[2]-h,t[3]+h]:[t[0]-h,t[1]+h],u=(r&&(u=r.toGlobalCoord(r.dataToCoord(0)),h[l.onZero]=Math.max(Math.min(u,h[1]),h[0])),o.position=["y"===i?h[l[s]]:t[0],"x"===i?h[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?h[l[a]]-h[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),mt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-u:u,o.z2=1,o}function pS(t){return"cartesian2d"===t.get("coordinateSystem")}function dS(i){var o={xAxisModel:null,yAxisModel:null};return I(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,jo).models[0];o[e]=n}),o}gS.prototype.getRect=function(){return this._rect},gS.prototype.update=function(t,e){var n=this._axesMap,i=(this._updateScale(t,this.model),I(n.x,function(t){y1(t.scale,t.model)}),I(n.y,function(t){y1(t.scale,t.model)}),{});I(n.x,function(t){mS(n,"y",t,i)}),I(n.y,function(t){mS(n,"x",t,i)}),this.resize(this.model,e)},gS.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),a=cp(i,{width:e.getWidth(),height:e.getHeight()}),o=(this._rect=a,this._axesList);function r(){I(o,function(t){var e,n,i=t.isHorizontal(),o=i?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),o=t,e=i?a.x:a.y,r=o.getExtent(),n=r[0]+r[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return n-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return n-t+e}})}r(),n&&(I(o,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=x1(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i))}),r()),I(this._coordsList,function(t){t.calcAffineTransform()})},gS.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},gS.prototype.getAxes=function(){return this._axesList.slice()},gS.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];D(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;nu[1]?-1:1,r=["start"===c?u[0]-r*h:"end"===c?u[1]+r*h:(u[0]+u[1])/2,TS(c)?t.labelOffset+l*h:0],null!=(h=e.get("nameRotate"))&&(h=h*_S/180),TS(c)?a=xS.innerTextLayout(t.rotation,null!=h?h:t.rotation,l):(a=function(t,e,n,i){var o,n=wo(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=bo(n-_S/2)?(o=i?"bottom":"top","center"):bo(n-1.5*_S)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*_S&&_S/2h[1]&&h.reverse(),(s=null==s||s>h[1]?h[1]:s)n||!!e&&(r=kS(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},eM.prototype.makeElOption=function(t,e,n,i,o){},eM.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=JS(t).pointerEl=new Nu[o.type](QS(e.pointer)),t.add(o))},eM.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=JS(t).labelEl=new ms(QS(e.label)),t.add(e),iM(e,i))},eM.prototype.updatePointerEl=function(t,e,n){t=JS(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},eM.prototype.updateLabelEl=function(t,e,n,i){t=JS(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),iM(t,i))},eM.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=Eu(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){de(t.event)},onmousedown:tM(this._onHandleDragMove,this,0,0),drift:tM(this._onHandleDragMove,this),ondragend:tM(this._onHandleDragEnd,this)}),n.add(i)),rM(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),F(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,Ag(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},eM.prototype._moveHandleToValue=function(t,e){nM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,oM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},eM.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(oM(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(oM(t)),JS(n).lastProp=null,this._doDispatchAxisPointer())},eM.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}]}))},eM.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},eM.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)},eM.prototype.doClear=function(){},eM.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};h(cM,hM=eM),cM.prototype.makeElOption=function(t,e,n,i,o){var r,a,s=n.axis,l=s.grid,h=i.get("type"),u=pM(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(h&&"none"!==h&&(r=(a=i).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=dM[h](s,c,u)).style=r,t.graphicKey=a.type,t.pointer=a),cS(l.model,n));h=e,s=t,c=p,u=n,r=i,a=o,l=xS.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),aM(s,u,r,a,{position:lM(u.axis,h,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},cM.prototype.getHandleTransform=function(t,e,n){var i=cS(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),lM(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},cM.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=pM(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];r[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var hM,uM=cM;function cM(){return null!==hM&&hM.apply(this,arguments)||this}function pM(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var dM={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=fM(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,o],i=fM(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function fM(t){return"x"===t.dim?0:1}h(mM,gM=g),mM.type="axisPointer",mM.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!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 gM,yM=mM;function mM(){var t=null!==gM&&gM.apply(this,arguments)||this;return t.type=mM.type,t}var vM=Xo(),_M=I;function xM(t,e,n){var i,c,p;function o(t,u){c.on(t,function(e){n=p;var n,i,o={dispatchAction:r,pendings:i={showTip:[],hideTip:[]}};function r(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=r,n.dispatchAction(t))}_M(vM(c).records,function(t){t&&u(t,e,o.dispatchAction)});var t,a=o.pendings,s=p,l=a.showTip.length,h=a.hideTip.length;l?t=a.showTip[l-1]:h&&(t=a.hideTip[h-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}b.node||(i=e.getZr(),vM(i).records||(vM(i).records={}),p=e,vM(c=i).initialized||(vM(c).initialized=!0,o("click",at(bM,"click")),o("mousemove",at(bM,"mousemove")),o("globalout",wM)),(vM(i).records[t]||(vM(i).records[t]={})).handler=n)}function wM(t,e,n){t.handler("leave",null,n)}function bM(t,e,n,i){e.handler(t,n,i)}function SM(t,e){b.node||(e=e.getZr(),(vM(e).records||{})[t]&&(vM(e).records[t]=null))}h(CM,MM=cg),CM.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";xM("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})})},CM.prototype.remove=function(t,e){SM("axisPointer",e)},CM.prototype.dispose=function(t,e){SM("axisPointer",e)},CM.type="axisPointer";var MM,TM=CM;function CM(){var t=null!==MM&&MM.apply(this,arguments)||this;return t.type=CM.type,t}function AM(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Uo(n=e.getData(),t))||s<0||F(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(q(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 IM=Xo();function kM(t,e,n){var r,a,i,s,l,o,h,u,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||S(n.dispatchAction,n),w=e.getComponent("axisPointer").coordSysAxesInfo;if(w)return RM(v)&&(v=AM({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=RM(v),a=_.axesInfo,i=w.axesInfo,s="leave"===m||RM(v),l={},e={list:[],map:{}},h={showPointer:at(PM,o={}),showTooltip:at(LM,e)},I(w.coordSysMap,function(t,e){var o=r||t.containPoint(v);I(w.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))&&DM(t,i,h,!1,l)})}),u={},I(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&I(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,OM(t),OM(n)))),u[n.key]=e)})}),I(u,function(t,e){DM(i[e],t,h,!0,l)}),c=o,_=i,p=l.axesInfo=[],I(_,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,RM(t=v)||!m.list.length?e({type:"hideTip"}):(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})),e=i,_=(t=n).getZr(),x="axisPointerLastHighlights",d=IM(_)[x]||{},f=IM(_)[x]={},I(e,function(t,e){t=t.axisPointerModel.option;"show"===t.status&&I(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],I(d,function(t,e){f[e]||y.push(t)}),I(f,function(t,e){d[e]||g.push(t)}),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),l}function DM(t,e,n,i,o){var r,a,s,l,h,u,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,h=a,u=[],c=Number.MAX_VALUE,p=-1,I(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=c)&&((n'}(n.get("backgroundColor"),i,o)),C(t))r.innerHTML=t;else if(t){r.innerHTML="",F(t)||(t=[t]);for(var a=0;a"),a=p.join(n);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(o,r,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(o,a,u,Math.random()+"",i[0],i[1],r,null,d)})},hT.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s=this._ecModel,e=Cs(e),l=e.seriesIndex,h=s.getSeriesByIndex(l),u=e.dataModel||h,c=e.dataIndex,e=e.dataType,p=u.getData(e),d=this._renderMode,f=t.positionDefault,g=uT([p.getItemModel(c),u,h&&(h.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),h=g.get("trigger");null!=h&&"item"!==h||(i=u.getDataParams(c,e),o=new $f,i.marker=o.makeTooltipMarker("item",ap(i.color),d),f=ef(u.formatTooltip(c,!1,e)),h=g.get("order"),r=f.markupFragment?Yf(f.markupFragment,o,d,h,s.get("useUTC"),g.get("textStyle")):f.markupText,a="item_"+u.name+"_"+c,this._showOrMove(g,function(){this._showTooltipContent(g,r,i,a,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:l,from:this.uid}))},hT.prototype._showComponentItemTooltip=function(e,n,t){var i=Cs(n),o=i.tooltipConfig.option,o=[o=C(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&o.push(i),e.positionDefault),r=uT(o,this._tooltipModel,i?{position:i}:null),a=r.get("content"),s=Math.random()+"",l=new $f;this._showOrMove(r,function(){var t=M(r.get("formatterParams")||{});this._showTooltipContent(r,a,t,s,e.offsetX,e.offsetY,e.position,n,l)}),t({type:"showTip",from:this.uid})},hT.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var h,u,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&(h=this._tooltipContent,u=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,u&&C(u)?(p=n.ecModel.get("useUTC"),t=u,t=op(t=(d=F(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Oc(d.axisValue,t,p):t,i,!0)):st(u)&&(d=oT(function(t,e){t===this._ticket&&(h.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,h,i,s))},this),this._ticket=e,t=u(i,e,d)),h.setContent(t,l,n,c,a),h.show(n,c),this._updatePosition(n,a,o,r,h,i,s))},hT.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||F(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:F(e)?void 0:{color:i||e.color||e.borderColor}},hT.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l=this._api.getWidth(),h=this._api.getHeight(),u=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),F(e=st(e)?e([n,i],r,o.el,d,{viewSize:[l,h],contentSize:u.slice()}):e)?(n=aT(e[0],l),i=aT(e[1],h)):D(e)?((r=e).width=u[0],r.height=u[1],n=(r=cp(r,{width:l,height:h})).x,i=r.y,p=c=null):i=(n=(s=C(e)&&a?function(t,e,n){var i=n[0],o=n[1],r=0,a=0,s=e.width,l=e.height;switch(t){case"inside":r=e.x+s/2-i/2,a=e.y+l/2-o/2;break;case"top":r=e.x+s/2-i/2,a=e.y-o-10;break;case"bottom":r=e.x+s/2-i/2,a=e.y+l+10;break;case"left":r=e.x-i-10-5,a=e.y+l/2-o/2;break;case"right":r=e.x+s+10+5,a=e.y+l/2-o/2}return[r,a]}(e,d,u):function(t,e,n,i,o,r,a){var n=n.getOuterSize(),s=n.width,n=n.height;null!=r&&(ir&&(e[1-i]=e[i]+n.sign*r)}function kT(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0e[1]&&(e[1]=t[1])})}),[(e=d1((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())},QT.prototype.filterData=function(t,e){var i,n,o,u;t===this._dataZoomModel&&(i=this._dimName,n=this.getTargetSeriesModels(),o=t.get("filterMode"),u=this._valueWindow,"none"!==o)&&KT(n,function(n){var l=n.getData(),h=l.mapDimensionsAll(i);h.length&&("weakFilter"===o?l.filterSelf(function(t){for(var e,n,i,o=0;ou[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n}):KT(h,function(t){var e;"empty"===o?n.setData(l=l.map(t,function(t){return(e=t)>=u[0]&&e<=u[1]?t:NaN;var e})):((e={})[t]=u,l.selectRange(e))}),KT(h,function(t){l.setApproximateExtent(u,t)}))})},QT.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;KT(["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=yo(r[0]+n,r,[0,100],!0):null!=e&&(n=yo(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},QT.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=xo(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())},QT);function QT(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var t2={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(gT(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 JT(t,e,i,r),o.push(n.__dzAxisProxy))}),P());return I(o,function(t){I(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 e2=!1;function n2(t){e2||(e2=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,t2),t.registerAction("dataZoom",function(e,t){I(yT(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 i2(t){n2(t),t.registerComponentModel(MT),t.registerComponentView(XT),GT(t)}h(a2,o2=Ey),a2.type="dataZoom.slider",a2.layoutMode="box",a2.defaultOption=fc(Ey.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 o2,r2=a2;function a2(){var t=null!==o2&&o2.apply(this,arguments)||this;return t.type=a2.type,t}var s2,l2=ps,h2="horizontal",u2="vertical",c2=["line","bar","candlestick","scatter"],p2={easing:"cubicOut",duration:100},d2=(h(y,s2=ar),y.prototype.init=function(t,e){this.api=e,this._onBrush=S(this._onBrush,this),this._onBrushEnd=S(this._onBrushEnd,this)},y.prototype.render=function(t,e,n,i){s2.prototype.render.apply(this,arguments),Ag(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView())},y.prototype.dispose=function(){this._clear(),s2.prototype.dispose.apply(this,arguments)},y.prototype._clear=function(){(e=(n=this)[t="_dispatchZoomAction"])&&e[Sg]&&(n[t]=e[Sg]);var t,e,n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},y.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 so);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},y.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===h2?{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=fp(t.option),n=(I(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])}),cp(r,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===u2&&this._size.reverse()},y.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!==h2||i?n===h2&&i?{scaleY:r?1:-1,scaleX:-1}:n!==u2||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()},y.prototype._getViewExtent=function(){return[0,this._size[0]]},y.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new l2({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new l2({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:S(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)},y.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=t.series,i=n.getRawData(),n=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=n)for(var o,r,a,t=.3*((s=i.getDataExtent(n))[1]-s[0]),s=[s[0]-t,s[1]+t],l=[0,e[1]],t=[0,e[0]],h=[[e[0],0],[0,0]],u=[],c=t[1]/(i.count()-1),p=0,d=Math.round(i.count()/e[0]),f=(i.each([n],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))},y.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new R(e,t),this._brushing=!0,this._brushStartTime=+new Date},y.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=vo([yo(e.x,n,i=[0,100],!0),yo(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},y.prototype._onBrush=function(t){this._brushing&&(de(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},y.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new l2({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]})},y.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?p2:null,start:e[0],end:e[1]})},y.prototype._findCoordRect=function(){var t,e,n=mT(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}},y.type="dataZoom.slider",y);function y(){var t=null!==s2&&s2.apply(this,arguments)||this;return t.type=y.type,t._displayables={},t}function f2(t){return"vertical"===t?"ns-resize":"ew-resize"}function g2(t){t.registerComponentModel(r2),t.registerComponentView(d2),n2(t)}I1(function(t){I1(i2),I1(g2)});function y2(t){var e=t.graphic;F(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}var m2,v2=Xo(),_2={path:null,compoundPath:null,group:so,image:is,text:ms},x2=(h(w2,m2=g),w2.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,m2.prototype.mergeOption.call(this,t,e),this.option.elements=n},w2.prototype.optionUpdated=function(t,e){var n=this.option,t=(e?n:t).elements,l=n.elements=e?[]:n.elements,e=[],n=(this._flatten(t,e,null),zo(l,e,"normalMerge")),h=this._elOptionsToUpdate=[];I(n,function(t,e){var n,i,o,r,a,s=t.newOption;s&&(h.push(s),r=s,n=(t=t).existing,r.id=t.keyInfo.id,!r.type&&n&&(r.type=n.type),null==r.parentId&&((t=r.parentOption)?r.parentId=t.id:n&&(r.parentId=n.parentId)),r.parentOption=null,t=l,n=e,a=T({},r=s),i=t[n],"merge"===(o=r.$action||"merge")?i?(p(i,a,!0),dp(i,a,{ignoreSize:!0}),gp(r,i)):t[n]=a:"replace"===o?t[n]=a:"remove"===o&&i&&(t[n]=null),r=l[e],a=s,r)&&(r.hv=a.hv=[A2(a,["left","right"]),A2(a,["top","bottom"])],"group"===r.type)&&(a=a,null==(r=r).width&&(r.width=a.width=0),null==r.height)&&(r.height=a.height=0)},this);for(var i=l.length-1;0<=i;i--)null==l[i]?l.splice(i,1):delete l[i].$action},w2.prototype._flatten=function(t,n,i){I(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),e=t.children,"group"===t.type&&e&&this._flatten(e,n,t),delete t.children)},this)},w2.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},w2.type="graphic",w2.defaultOption={elements:[]},w2);function w2(){var t=null!==m2&&m2.apply(this,arguments)||this;return t.type=w2.type,t.preventAutoZ=!0,t}h(M2,b2=cg),M2.prototype.init=function(){this._elMap=P()},M2.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},M2.prototype._updateElements=function(h){var u,c,t=h.useElOptionsToUpdate();t&&(u=this._elMap,c=this.group,I(t,function(t){var e,n=Vo(t.id,null),i=null!=n?u.get(n):null,o=Vo(t.parentId,null),o=null!=o?u.get(o):c,r=t.type,a=t.style,s=("text"===r&&a&&t.hv&&t.hv[1]&&(a.textVerticalAlign=a.textBaseline=a.verticalAlign=a.align=null),t.textContent),l=t.textConfig,r=(a&&mw(a,r,!!l,!!s)&&(a=vw(a,r,!0),!l&&a.textConfig&&(t.textConfig=a.textConfig),!s)&&a.textContent&&(s=a.textContent),e=T({},e=t),I(["id","parentId","$action","hv","bounding","textContent"].concat(lp),function(t){delete e[t]}),e),l=t.$action||"merge",a=("merge"===l?i?i.attr(r):T2(n,o,r,u):"replace"===l?(C2(i,u),T2(n,o,r,u)):"remove"===l&&C2(i,u),u.get(n));a&&s&&("merge"===l?(o=a.getTextContent())?o.attr(s):a.setTextContent(new ms(s)):"replace"===l&&a.setTextContent(new ms(s))),a&&((r=v2(a)).__ecGraphicWidthOption=t.width,r.__ecGraphicHeightOption=t.height,i=h,n=t,l=Cs(o=a).eventData,(l=o.silent||o.ignore?l:l||(Cs(o).eventData={componentType:"graphic",componentIndex:i.componentIndex,name:o.name}))&&(l.info=n.info),zu({el:a,componentModel:h,itemName:a.name,itemTooltipOption:t.tooltip}))}))},M2.prototype._relocate=function(t,e){for(var n,i,o=t.option.elements,r=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),h=0;h":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},k2=(D2.prototype.evaluate=function(t){var e=typeof t;return"string"==e?this._condVal.test(t):"number"==e&&this._condVal.test(t+"")},D2);function D2(t){null==(this._condVal=C(t)?new RegExp(t):gt(t)?t:null)&&f("")}L2.prototype.evaluate=function(){return this.value};var P2=L2;function L2(){}R2.prototype.evaluate=function(){for(var t=this.children,e=0;e=v&&_<=e+1){for(var n=[],i=0;i=v&&_<=o+1){for(var s=e.components,l=0,h=s.length,u=0,c=0;l\n\r<"))},go("svg",WC),t.Axis=n,t.ChartView=yg,t.ComponentModel=g,t.ComponentView=cg,t.List=s_,t.Model=uc,t.PRIORITY=Ry,t.SeriesModel=ig,t.color=wn,t.connect=function(e){var t;return F(e)&&(t=e,e=null,c0(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+dv++,c0(t,function(t){t.group=e})),cv[e]=!0,e},t.dataTool={},t.dependencies={zrender:"5.1.0"},t.disConnect=gv,t.disconnect=Oy,t.dispose=function(t){"string"==typeof t?t=uv[t]:t instanceof j0||(t=yv(t)),t instanceof j0&&!t.isDisposed()&&t.dispose()},t.env=b,t.extendChartView=function(t){return t=yg.extend(t),yg.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=cg.extend(t),cg.registerClass(t),t},t.extendSeriesModel=function(t){return t=ig.extend(t),ig.registerClass(t),t},t.format=Xh,t.getCoordinateSystemDimensions=function(t){if(t=ed.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=yv,t.getInstanceById=function(t){return uv[t]},t.getMap=function(t){return h0(t)},t.graphic=rc,t.helper=Ac,t.init=function(t,e,n){var i,o=yv(t);return o||((i=new j0(t,e,n)).id="ec_"+pv++,uv[i.id]=i,Jo(t,fv,i.id),U0(i),c0(rv,function(t){t(i)}),i)},t.innerDrawElementOnCanvas=sm,t.matrix=ze,t.number=ic,t.parseGeoJSON=$m,t.parseGeoJson=$m,t.registerAction=bv,t.registerCoordinateSystem=Sv,t.registerLayout=Mv,t.registerLoading=Iv,t.registerLocale=wc,t.registerMap=kv,t.registerPostInit=xv,t.registerPostUpdate=wv,t.registerPreprocessor=vv,t.registerProcessor=_v,t.registerTheme=mv,t.registerTransform=Dv,t.registerVisual=Tv,t.setCanvasCreator=function(t){K("createCanvas",t)},t.throttle=Cg,t.time=pr,t.use=I1,t.util=sc,t.vector=Zt,t.version="5.1.1",t.zrUtil=Dt,t.zrender=li});