!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 p=function(t,e){return(p=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}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var y=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new y,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:!w.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}e.clearMarkers=function(){B(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})}}return n}(e,o),o,r);if(e)return e(t,n,i),!0}return!1}function xe(t){return"CANVAS"===t.nodeName.toUpperCase()}var be=/([&<>"'])/g,we={"&":"&","<":"<",">":">",'"':""","'":"'"};function Se(t){return null==t?"":(t+"").replace(be,function(t,e){return we[e]})}var Me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=[],Ie=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Ce(t,e,n,i){return n=n||{},i?De(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):De(t,e,n),n}function De(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(xe(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(_e(Te,t,r,e))return n.zrX=Te[0],void(n.zrY=Te[1])}n.zrX=n.zrY=0}function ke(t){return t||window.event}function Ae(t,e,n){var i;return null==(e=ke(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Ce(t,i,e,n):(Ce(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},sn.prototype.contain=function(t,e){return sn.contain(this,t,e)},sn.prototype.clone=function(){return new sn(this.x,this.y,this.width,this.height)},sn.prototype.copy=function(t){sn.copy(this,t)},sn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},sn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},sn.prototype.isZero=function(){return 0===this.width||0===this.height},sn.create=function(t){return new sn(t.x,t.y,t.width,t.height)},sn.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},sn.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5t.getWidth()||n<0||n>t.getHeight()}B(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){bn.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=Mn(this,i,r);if("mouseup"===a&&o||(n=(e=this.findHover(i,r)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4>>1])<0?l=o:s=1+o;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Ln(A,L){var P,O,R=In,N=0,E=[];function e(t){var e=P[t],n=O[t],i=P[t+1],r=O[t+1],t=(O[t]=n+r,t===N-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),N--,An(A[i],A,e,n,0,L));if(e+=t,0!=(n-=t)&&0!==(r=kn(A[e+n-1],A,i,r,r-1,L)))if(n<=r){var o=e,a=n,t=i,s=r,l=0;for(l=0;lO[t+1])break;e(t)}},forceMergeRuns:function(){for(;1>=1;return t+e}(r);do{}while((o=Cn(t,n,i,e))=this._maxSize&&0>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),ki(t,e),e):void Ti(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(Ti(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),ki(t,e),e):void Ti(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?Ti(e,+a[0],+a[1],+a[2],1):Ti(e,0,0,0,1);s=wi(a.pop());case"rgb":return 3<=a.length?(Ti(e,bi(a[0]),bi(a[1]),bi(a[2]),3===a.length?s:wi(a[3])),ki(t,e),e):void Ti(e,0,0,0,1);case"hsla":return 4!==a.length?void Ti(e,0,0,0,1):(a[3]=wi(a[3]),Li(a,e),ki(t,e),e);case"hsl":return 3!==a.length?void Ti(e,0,0,0,1):(Li(a,e),ki(t,e),e);default:return}}Ti(e,0,0,0,1)}}function Li(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=wi(t[1]),r=wi(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return Ti(e=e||[],_i(255*Si(r,i,n+1/3)),_i(255*Si(r,i,n)),_i(255*Si(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Pi(t,e){var n=Ai(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255e);g++);g=f(g-1,h-2)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?$i:t[c],(Ki(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:Ki(l)?(1===l?Ui:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;athis._sleepAfterStill)&&this.animation.stop()},mo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},mo.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},mo.prototype.refreshHover=function(){this._needsRefreshHover=!0},mo.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},mo.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},mo.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},mo.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},mo.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},mo.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},mo.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},mo.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},mo.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},mo.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},mo.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;el&&(l=s[h],u=h);++o[u],s[u]=0,++a}return V(o,function(t){return t/i})}function Ro(t){var e=2*Math.PI;return(t%e+e)%e}function No(t){return-1e-4=n.maxIterations){e+=n.ellipsis;break}var s=0===a?function(t,e,n){for(var i=0,r=0,o=t.length;rh){C=o.lines.length;0i.width&&(o=e.split("\n"),c=!0),i.accumWidth=s):(s=Ga(e,t,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,o=s.lines)),o=o||e.split("\n"),Fr(t)),d=0;dthis._ux||i>this._uy;return this.addData(fs.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},r.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(fs.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(fs.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,r,o){return this._drawPendingPt(),ks[0]=i,ks[1]=r,Ls(ks,o),this.addData(fs.A,t,e,n,n,i=ks[0],(r=ks[1])-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Ss(r)*n+t,this._yi=Ms(r)*n+e,this},r.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(fs.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(fs.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!Ds||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;hn||Ts(y)>i||c===e-1)&&(f=Math.sqrt(C*C+y*y),r=g,o=_);break;case fs.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],b=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Qn(t,n,r,a,f),f=Qn(e,i,o,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(r,o,m,v,g,_,x,b,10),r=x,o=b;break;case fs.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=ri(t,n,r,p),p=ri(e,i,o,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case fs.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],T=t[c++],I=T+M;c+=1,d&&(a=Ss(M)*w+x,s=Ms(M)*S+b),f=ws(w,S)*bs(Cs,Math.abs(T)),r=Ss(I)*w+x,o=Ms(I)*S+b;break;case fs.R:a=r=t[c++],s=o=t[c++];f=2*t[c++]+2*t[c++];break;case fs.Z:var C=a-r,y=s-o;f=Math.sqrt(C*C+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},r.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,E=this._ux,z=this._uy,B=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g=Gs[i=0]+t&&a<=Gs[1]+t?h:0;rMath.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,T,r);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case Bs.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Os(c,p,S,p,e,i,r)||Os(S,p,S,M,e,i,r)||Os(S,M,c,M,e,i,r)||Os(c,M,c,p,e,i,r))return!0}else l=(l+=zs(S,p,S,M,i,r))+zs(c,M,c,p,i,r);break;case Bs.Z:if(n){if(Os(u,h,c,p,e,i,r))return!0}else l+=zs(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)n,i=(r=r.slice(0,n)).length*c),t&&u&&null!=f)for(var y=Oa(f,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},v=0;vhc.len()&&(sTo(i[1])?0':'':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Ad(t,e){return e=e||"transparent",G(t)?t:E(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ld(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Pd={},Od={},Rd=(Nd.prototype.create=function(i,r){function t(t){var n=[];return B(t,function(t,e){t=t.create(i,r);n=n.concat(t||[])}),n}this._nonSeriesBoxMasterList=t(Pd),this._normalMasterList=t(Od)},Nd.prototype.update=function(e,n){B(this._normalMasterList,function(t){t.update&&t.update(e,n)})},Nd.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},Nd.register=function(t,e){"matrix"===t||"calendar"===t?Pd[t]=e:Od[t]=e},Nd.get=function(t){return Od[t]||Pd[t]},Nd);function Nd(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}var Ed={coord:1,coord2:2};var zd=O();var Bd={none:0,dataCoordSys:1,boxCoordSys:2};function Vd(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Bd.none;return e&&(t="series"===t.mainType,"data"===(n=null==n?t?"data":"box":n)?(i=Bd.dataCoordSys,t||(i=Bd.none)):"box"===n&&(i=Bd.boxCoordSys,t||Pd[e]||(i=Bd.none))),{coordSysType:e,kind:i}}function Fd(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys,t=(t.allowNotFound,Vd(e)),o=t.kind,t=t.coordSysType;r&&o!==Bd.dataCoordSys&&(o=Bd.dataCoordSys,t=n),o!==Bd.none&&t===n&&(r=i(n,e))&&(o===Bd.dataCoordSys?e.coordinateSystem=r:e.boxCoordinateSystem=r)}var Gd=B,Hd=["left","right","top","bottom","width","height"],Wd=[["width","left","right"],["height","top","bottom"]];function Ud(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,r,o=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=o.width+(e?-e.x+o.x:0),u<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,o.height):Math.max(d,o.height)):(i=o.height+(e?-e.y+o.y:0),h<(r=p+i)||t.newline?(c+=d+l,p=0,r=i,o.width):Math.max(d,o.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=r+l)})}var Xd=Ud;function Yd(t,e){r=Kd(o=t,n=e,{enableLayoutOnlyByCenter:!0}),i=o.getBoxLayoutParams(),r.type===qd?(s=r.refPoint,a=Zd(i,{width:n.getWidth(),height:n.getHeight()})):(o=F(n=o.get("center"))?n:[n,n],a=Zd(i,r.refContainer),s=r.boxCoordFrom===Ed.coord2?r.refPoint:[Y(o[0],a.width)+a.x,Y(o[1],a.height)+a.y]);var n={viewRect:a,center:s},i=n.viewRect,r=n.center,o=t.get("radius"),a=(F(o)||(o=[0,o]),Y(i.width,e.getWidth())),s=Y(i.height,e.getHeight()),n=Math.min(a,s),t=Y(o[0],n/2),e=Y(o[1],n/2);return{cx:r[0],cy:r[1],r0:t,r:e,viewRect:i}}function Zd(t,e,n){n=Md(n||0);var i=e.width,r=e.height,o=Y(t.left,i),a=Y(t.top,r),s=Y(t.right,i),l=Y(t.bottom,r),u=Y(t.width,i),h=Y(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(i/re)return t[i];return t[n-1]}var Ef,zf="\0_ec_inner",Bf=(u(Vf,Ef=Rp),Vf.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Rp(i),this._locale=new Rp(r),this._optionManager=o},Vf.prototype.setOption=function(t,e,n){e=Hf(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Vf.prototype.resetOption=function(t,e){return this._resetOption(t,Hf(e))},Vf.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Lf(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&B(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Vf.prototype.mergeOption=function(t){this._mergeOption(t,null)},Vf.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=O(),p=t&&t.replaceMergeMainTypeMap;wf(this).datasetMap=O(),B(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?v(t):d(r[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(o){var a,t=function(t,e,n){return(e=(e=Df.get(e))&&e(t))?n.concat(e):n}(this,o,Zo(i[o])),e=h.get(o),n=e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll",e=$o(e,t,n),s=(ia(e,o,g),r[o]=null,h.set(o,null),c.set(o,0),[]),l=[],u=0;B(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=g.getClass(o,t.keyInfo.subType,!("series"===o));if(!r)return;if("tooltip"===o){if(a)return;a=!0}n&&n.constructor===r?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=P({componentIndex:e},t.keyInfo),P(n=new r(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),r[o]=s,h.set(o,l),c.set(o,u),"series"===o&&kf(this)},this),this._seriesIndices||kf(this)},Vf.prototype.getOption=function(){var a=v(this.option);return B(a,function(t,e){if(g.hasClass(e)){for(var n=Zo(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!na(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[zf],a},Vf.prototype.setTheme=function(t){this._theme=new Rp(t),this._resetOption("recreate",null)},Vf.prototype.getTheme=function(){return this._theme},Vf.prototype.getLocaleModel=function(){return this._locale},Vf.prototype.setUpdatePayload=function(t){this._payload=t},Vf.prototype.getUpdatePayload=function(){return this._payload},Vf.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;ig[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=V(o,function(t){return t.property}),u=0;uf[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.prototype.get=function(t,e){return 0<=e&&e=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}}return-1},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;rt[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return sy[1]&&(y[1]=g)}}}},l.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Iy(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;hh[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r'+Se(u)+""+h,t))}function Xy(t,e,n,i){var r,o,a,s,l,u=t.renderMode,h=e.noName,c=e.noValue,p=!e.markerType,d=e.name,f=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(t){return V(t=F(t)?t:[t],function(t,e){return Td(t,F(o)?o[e]:o,f)})};if(!h||!c)return r=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||_.color.secondary,u),d=h?"":Td(d,"ordinal",f),o=e.valueType,g=c?[]:g(e.value,e.dataIndex),e=!p||!h,a=!p&&h,l=By(i,u),s=l.nameStyle,l=l.valueStyle,"richText"===u?(p?"":r)+(h?"":jy(t,d,s))+(c?"":function(t,e,n,i,r){r=[r],i=i?10:20;return n&&r.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,r)}(t,g,e,a,l)):Zy(i,(p?"":r)+(h?"":''+Se(d)+"")+(c?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=F(t)?t:[t],''+V(t,Se).join("  ")+""}(g,e,a,l)),n)}function Yy(t,e,n,i,r,o){if(t)return Wy(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Zy(t,e,n){return'
'+e+'
'}function jy(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function qy(t,e){return Ad(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Ky(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Qy.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Qy.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=kd({color:e,type:t,renderMode:n,markerId:i});return G(e)?e:(this.richTextStyles[i]=e.style,e.content)},Qy.prototype.wrapRichTextStyle=function(t,e){var n={},e=(F(e)?B(e,function(t){return P(n,t)}):P(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var $y=Qy;function Qy(){this.richTextStyles={},this._nextStyleNameId=Wo()}function Jy(t){var e,n,i,r,o,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=F(m),_=qy(p,d);function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Gy("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)},o.prototype.restoreData=function(){this.dataTask.dirty()},o.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Of.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},o.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},o.prototype.getProgressive=function(){return this.get("progressive")},o.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},o.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},o.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;oe.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function lm(e,n){B(Nt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,S(um,n))})}function um(t,e){t=hm(t);return t&&t.setOutputEnd((e||this).count()),e}function hm(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}st(im,Gg),st(im,Of),va(im,g);pm.prototype.init=function(t,e){},pm.prototype.render=function(t,e,n,i){},pm.prototype.dispose=function(t,e){},pm.prototype.updateView=function(t,e,n,i){},pm.prototype.updateLayout=function(t,e,n,i){},pm.prototype.updateVisual=function(t,e,n,i){},pm.prototype.toggleBlurSeries=function(t,e,n){},pm.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var cm=pm;function pm(){this.group=new ho,this.uid=zp("viewComponent")}function dm(){var o=i();return function(t){var e=o(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,r=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==r&&i==e)&&"reset"}}ma(cm),wa(cm);var fm=i(),gm=dm(),ym=(mm.prototype.init=function(t,e){},mm.prototype.render=function(t,e,n,i){},mm.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&_m(t,i,"emphasis")},mm.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&_m(t,i,"normal")},mm.prototype.remove=function(t,e){this.group.removeAll()},mm.prototype.dispose=function(t,e){},mm.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},mm.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},mm.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},mm.prototype.eachRendered=function(t){Jc(this.group,t)},mm.markUpdateMethod=function(t,e){fm(t).updateMethod=e},mm.protoInitialize=void(mm.prototype.type="chart"),mm);function mm(){this.group=new ho,this.uid=zp("viewChart"),this.renderTask=Ug({plan:xm,reset:bm}),this.renderTask.context={view:this}}function vm(t,e,n){t&&Iu(t)&&("emphasis"===e?lu:uu)(t,n)}function _m(e,t,n){var i,r=ra(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Pl[t])&&Ll<=32?Pl[t]=Ll++:i):null;null!=r?B(Zo(r),function(t){vm(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){vm(t,n,o)})}function xm(t){return gm(t.model)}function bm(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&fm(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),wm[o]}ma(ym),wa(ym);var wm={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)}}},Sm="\0__throttleOriginMethod",Mm="\0__throttleRate",Tm="\0__throttleType";function Im(t,r,o){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}r=r||0;function e(){for(var t=[],e=0;en.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},zm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},zm.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},zm.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=O();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;r.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},zm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;B(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,r),t.overallReset&&this._createOverallStageTask(t,e,i,r)},this)},zm.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},zm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},zm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},zm.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))}B(t,function(i,t){var e,n,r,o,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((o=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),r=!0)}),r&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),o.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},zm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},zm.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())})},zm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},zm.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=O(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Ug({plan:Hm,reset:Wm,count:Ym}));e.context={model:t,ecModel:i,api:r,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:o},o._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,r).each(l)},zm.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Ug({reset:Bm}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=O(),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,Ug({reset:Vm,onDirty:Gm})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,r._pipe(t,e)}Tt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,B(n.getSeries(),c)),h&&o.dirty()},zm.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},zm.wrapStageHandler=function(t,e){return(t=N(t)?{overallReset:t,seriesType:function(t){Zm=null;try{t(jm,qm)}catch(t){}return Zm}(t)}:t).uid=zp("stageHandler"),e&&(t.visualType=e),t};var Em=zm;function zm(t,e,n,i){this._stageTaskMap=O(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Bm(t){t.overallReset(t.ecModel,t.api,t.payload)}function Vm(t){return t.overallProgress&&Fm}function Fm(){this.agent.dirty(),this.getDownstream().dirty()}function Gm(){this.agent&&this.agent.dirty()}function Hm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Wm(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Zo(t.reset(t.model,t.ecModel,t.api,t.payload));return 1'+t.dom+""}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new dl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),B(p,function(t){t=new rl({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},h.prototype.convertToPixel=function(t,e,n){return fv(this,"convertToPixel",t,e,n)},h.prototype.convertToLayout=function(t,e,n){return fv(this,"convertToLayout",t,e,n)},h.prototype.convertFromPixel=function(t,e,n){return fv(this,"convertFromPixel",t,e,n)},h.prototype.containPixel=function(t,i){var r;if(!this._disposed)return B(aa(this._model,t),function(t,n){0<=n.indexOf("Models")&&B(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?r=r||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(r=r||e.containPoint(i,t))},this)},this),!!r;this.id},h.prototype.getVisual=function(t,e){var t=aa(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null==t)return n0(n,e);var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}},h.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},h.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},h.prototype._initEvents=function(){var n,i,s=this,r=(B(Ev,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&o0(o,function(t){var e,t=Z(t);return t&&null!=t.dataIndex?(e=t.dataModel||r.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,o)||{},1):t.eventData&&(n=P({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&r.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),this._messageCenter);B(Vv,function(t,e){r.on(e,function(t){s.trigger(e,t)})}),i=(n=this)._api,r.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(r0("map","selectchanged",n,e,t),r0("pie","selectchanged",n,e,t)):"select"===t.fromAction?(r0("map","selected",n,e,t),r0("pie","selected",n,e,t)):"unselect"===t.fromAction&&(r0("map","unselected",n,e,t),r0("pie","unselected",n,e,t))})},h.prototype.isDisposed=function(){return this._disposed},h.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},h.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ha(this.getDom(),qv,""),e=(t=this)._api,n=t._model,B(t._componentsViews,function(t){t.dispose(n,e)}),B(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 Xv[t.id])},h.prototype.resize=function(t){if(!this[Q0])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[tv]&&(null==n&&(n=this[tv].silent),e=!0,this[tv]=null),this[Q0]=!0,Dv(this);try{e&&hv(this),dv.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[Q0]=!1,t}this[Q0]=!1,mv.call(this,n),vv.call(this,n)}}},h.prototype.showLoading=function(t,e){this._disposed?this.id:(E(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Uv[t]&&(t=Uv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},h.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},h.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=Bv[t.type],e},h.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(E(e)||(e={silent:!!e}),zv[t.type]&&this._model&&(this[Q0]?this._pendingActions.push(t):(n=e.silent,yv.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),mv.call(this,n),vv.call(this,n))))},h.prototype.updateLabelLayout=function(){K0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},h.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},h.internalField=(hv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),cv(t,!0),cv(t,!1),e.plan()},cv=function(t,r){for(var o=t._model,a=t._scheduler,s=r?t._componentsViews:t._chartsViews,l=r?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;es.get("hoverLayerThreshold")&&!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)})}),K0.trigger("series:afterupdate",t,e,n)},Iv=function(t){t[ev]=!0,t.getZr().wakeUp()},Dv=function(t){t[J0]=(t[J0]+1)%1e3},Cv=function(t){t[ev]&&(t.getZr().storage.traverse(function(t){xc(t)||Pv(t)}),t[ev]=!1)},Mv=function(n){return u(t,e=Wf),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){lu(t,e),Iv(n)},t.prototype.leaveEmphasis=function(t,e){uu(t,e),Iv(n)},t.prototype.enterBlur=function(t){hu(t),Iv(n)},t.prototype.leaveBlur=function(t){cu(t),Iv(n)},t.prototype.enterSelect=function(t){pu(t),Iv(n)},t.prototype.leaveSelect=function(t){du(t),Iv(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},t.prototype.getMainProcessVersion=function(){return n[J0]},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(Tv=function(i){function r(t,e){for(var n=0;nr[1]&&(r[0]=r[1]),o}function tx(t){var e=Math.pow(10,Vo(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Do(t*e)}function ex(t){return Ao(t)+2}function nx(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function ix(t,e){return t>=e[0]&&t<=e[1]}ox.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=I(t.normalize,t),this.scale=I(t.scale,t)):(this.normalize=ax,this.scale=sx)};var rx=ox;function ox(){this.normalize=ax,this.scale=sx}function ax(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function sx(t,e){return t*(e[1]-e[0])+e[0]}function lx(t,e,n){t=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/t,Math.log(n?e[1]:Math.max(0,e[1]))/t]}hx.prototype.getSetting=function(t){return this._setting[t]},hx.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent((t[0]e[1]?t:e)[1])},hx.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},hx.prototype.getExtent=function(){return this._extent.slice()},hx.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},hx.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},hx.prototype.setBreaksFromOption=function(t){},hx.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},hx.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},hx.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},hx.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},hx.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},hx.prototype.isBlank=function(){return this._isBlank},hx.prototype.setBlank=function(t){this._isBlank=t};var ux=hx;function hx(t){this._calculator=new rx,this._setting=t||{},this._extent=[1/0,-1/0]}wa(ux);var cx=0,px=(dx.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&V(e,fx);return new dx({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},dx.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},dx.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return G(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n)):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n):t},dx.prototype._getOrCreateMap=function(){return this._map||(this._map=O(this.categories))},dx);function dx(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++cx,this._onCollect=t.onCollect}function fx(t){return E(t)&&null!=t.value?t.value:t+""}u(mx,gx=ux),mx.prototype.parse=function(t){return null==t?NaN:G(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},mx.prototype.contain=function(t){return ix(t,this._extent)&&0<=t&&t=t},mx.prototype.getOrdinalMeta=function(){return this._ordinalMeta},mx.prototype.calcNiceTicks=function(){},mx.prototype.calcNiceExtent=function(){},mx.type="ordinal";var gx,yx=mx;function mx(t){var t=gx.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return F(e=e||new px({}))&&(e=new px({categories:V(e,function(t){return E(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}ux.registerClass(yx);var vx,_x=Do,xx=(u(bx,vx=ux),bx.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},bx.prototype.contain=function(t){return ix(t,this._extent)},bx.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},bx.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},bx.prototype.getInterval=function(){return this._interval},bx.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ex(t)},bx.prototype.getTicks=function(t){t=t||{};var n=this._interval,e=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=Yp,a=[];if(n)if("only_break"===t.breakTicks&&o)o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent);else{e[0]h&&(t.expandToNicedExtent?a.push({value:_x(h+n,r)}):a.push({value:e[1]})),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent)}return a},bx.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;ri[0]&&cx));)g[r](g[i]()+t),f=g.getTime(),y&&0<(p=y.calcNiceTickMultiple(f,d))&&(g[r](g[i]()+p*t),f=g.getTime());a.push({value:f,notAdd:!0})}function i(t,e,n){var i,r,o,a,s=[],l=!e.length;if(i=od(t),r=_[0],o=_[1],a=v,ld(new Date(r),i,a).getTime()!==ld(new Date(o),i,a).getTime()){l&&(e=[{value:function(t,e,n){e=Math.max(0,D(ed,e)-1);return ld(new Date(t),ed[e],n).getTime()}(_[0],t,v)},{value:_[1]}]);for(var u,h,c=0;c=_[0]&&p<=_[1]&&w(f,p,d,g,y,0,s),"year"===t&&1=_[0]&&d<=_[1]&&a++)}u=e/m;if(1.5*u=_[0]&&t.value<=_[1]&&!t.notAdd})}),function(t){return 0n&&(this._approxInterval=n),Bx.length),t=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function P1(t,o){var e,n,r;return V(ht((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),B(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=L1(i,n,r);break;case"Polygon":case"MultiLineString":A1(i,n,r);break;case"MultiPolygon":B(i,function(t,e){return A1(t,n[e],r)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0=e[0]&&t<=e[1]}),function(t){var e={value:t};return{formattedLabel:i(e),rawLabel:n.scale.getLabel(e),tickValue:t,time:void 0,break:void 0}})}):"category"===n.type?(s=t,a=(t=n).getLabelModel(),s=F1(t,a,s),!a.get("show")||t.scale.isBlank()?{labels:[]}:s):(a=(r=n).scale.getTicks(),o=i1(r),{labels:V(a,function(t,e){return{formattedLabel:o(t,e),rawLabel:r.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}function V1(t,e,n){var i,r,o,a,s,l,u=t.getTickModel().get("customValues");return u?(i=t.scale.getExtent(),{ticks:ht(z1(t,u),function(t){return t>=i[0]&&t<=i[1]})}):"category"===t.type?(u=e,a=G1(e=t),s=o1(u),(l=U1(a,s))||(u.get("show")&&!e.scale.isBlank()||(r=[]),r=N(s)?q1(e,s,!0):"auto"===s?(l=F1(e,e.getLabelModel(),E1(N1.determine)),o=l.labelCategoryInterval,V(l.labels,function(t){return t.tickValue})):j1(e,o=s,!0),X1(a,s,{ticks:r,tickCategoryInterval:o}))):{ticks:V(t.scale.getTicks(n),function(t){return t.value})}}function F1(t,e,n){var i,r=H1(t),o=o1(e),e=n.kind===N1.estimate;if(!e){var a=U1(r,o);if(a)return a}var s={labels:N(o)?q1(t,o):j1(t,i="auto"===o?function(t,e){{var n;if(e.kind===N1.estimate)return n=t.calculateCategoryInterval(e),e.out.noPxChangeTryDetermine.push(function(){return R1(t).autoInterval=n,!0}),n}var i=R1(t).autoInterval;return null!=i?i:R1(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):o),labelCategoryInterval:i};return e?n.out.noPxChangeTryDetermine.push(function(){return X1(r,o,s),!0}):X1(r,o,s),s}var G1=W1("axisTick"),H1=W1("axisLabel");function W1(e){return function(t){return R1(t)[e]||(R1(t)[e]={list:[]})}}function U1(t,e){for(var n=0;nl[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0],onBand:!0}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1],onBand:!0}),u},$1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),V(this.scale.getMinorTicks(t=0=u}}for(var o,a=this.__startIndex;ar[0]){for(l=0;lt);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},qb.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=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?0<=r.height?"bottom":"top":0<=r.width?"right":"left"),h=hp(i),l=(up(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:_w(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),t.getTextContent()),h=(s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(H(i))t.setTextConfig({rotation:i});else if(F(e))t.setTextConfig({rotation:0});else{var r,i=t.shape,o=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(o+a)/2,i=n(e);switch(i){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=s;break;case"startAngle":case"insideStartAngle":r=o;break;case"endAngle":case"insideEndAngle":r=a;break;default:return t.setTextConfig({rotation:0})}n=1.5*Math.PI-r;"middle"===i&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===s?u:s,zw(a),i.get(["label","rotate"]))),u=l,s=h,a=o.getRawValue(n),l=function(t){return xw(e,t)},u&&((u=mp(u)).prevValue=u.value,u.value=a,a=s.normal,u.valueAnimation=a.get("valueAnimation"),u.valueAnimation)&&(u.precision=a.get("precision"),u.defaultInterpolatedText=l,u.statesModels=s),i.getModel(["emphasis"]));bu(t,h.get("focus"),h.get("blurScope"),h.get("disabled")),Mu(t,i),null!=(o=r).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",B(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var Vw,Fw=function(){},Gw=(u(Hw,Vw=Ks),Hw.prototype.getDefaultShape=function(){return new Fw},Hw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;le[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Ni((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;si)return;return 1}(a,e))return r=e.mapDimension(a.dim),o={},B(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function CS(t){for(var e,n,i=t.length/2;0l?x:_,(g=Math.abs(d.label.y-l))>=f.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)t.unconstrainedWidth)?null:s,i.setStyle("width",l)),HS(r,i))}function HS(t,e){US.rect=t,Tb(US,e,WS)}var WS={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},US={};function XS(t){return"center"===t.position}function YS(t){var S,M,T=t.getData(),I=[],C=!1,E=(t.get("minShowLabelAngle")||0)*VS,e=T.getLayout("viewRect"),D=T.getLayout("r"),k=e.width,A=e.x,n=e.y,L=e.height;function P(t){t.ignore=!0}if(T.each(function(t){var e,n,i,r,o,a,s,l,u,h,c=T.getItemGraphicEl(t),p=c.shape,d=c.getTextContent(),f=c.getTextGuideLine(),t=T.getItemModel(t),g=t.getModel("label"),y=g.get("position")||t.get(["emphasis","label","position"]),m=g.get("distanceToLabelLine"),v=g.get("alignTo"),_=Y(g.get("edgeDistance"),k),x=g.get("bleedMargin"),t=(null==x&&(x=200=e.r0},QS.type="pie";var KS,$S=QS;function QS(){var t=null!==KS&&KS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function JS(t,e,n){e=F(e)?{coordDimensions:e}:P({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=U_(i,e).dimensions,e=new W_(e,t);return e.initData(i,n),e}eM.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},eM.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},eM.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},eM.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var tM=eM;function eM(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var nM,iM=i(),rM=(u(oM,nM=im),oM.prototype.init=function(t){nM.prototype.init.apply(this,arguments),this.legendVisualProvider=new tM(I(this.getData,this),I(this.getRawData,this)),this._defaultLabelLine(t)},oM.prototype.mergeOption=function(){nM.prototype.mergeOption.apply(this,arguments)},oM.prototype.getInitialData=function(){return JS(this,{coordDimensions:["value"],encodeDefaulter:S(Mf,this)})},oM.prototype.getDataParams=function(t){var e,n=this.getData(),i=iM(n),r=i.seats,i=(r||(e=[],n.each(n.mapDimension("value"),function(t){e.push(t)}),r=i.seats=Oo(e,n.hostModel.get("percentPrecision"))),nM.prototype.getDataParams.call(this,t));return i.percent=r[t]||0,i.$vars.push("percent"),i},oM.prototype._defaultLabelLine=function(t){jo(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},oM.type="series.pie",oM.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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"},oM);function oM(){return null!==nM&&nM.apply(this,arguments)||this}Tp={fullType:rM.type,getCoord2:function(t){return t.getShallow("center")}},zd.set(Tp.fullType,{getCoord2:void 0}).getCoord2=Tp.getCoord2,g1(function(t){t.registerChartView($S),t.registerSeriesModel(rM),i0("pie",t.registerAction),t.registerLayout(S(ES,"pie")),t.registerProcessor(BS("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!(H(e)&&!isNaN(e)&&e<0)})}})});var aM=["itemStyle","borderColor"],sM=["itemStyle","borderColor0"],lM=["itemStyle","borderColorDoji"],uM=["itemStyle","color"],hM=["itemStyle","color0"];function cM(t,e){return e.get(0i[1],i="start"===e&&!t||"start"!==e&&t;e=No(n-eT/2)?(r=i?"bottom":"top","center"):No(n-1.5*eT)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*eT&&eT/2l[0]&&isFinite(c)&&isFinite(l[0]);)h=tx(h),c=l[1]-h*a;else{e=(h=a "+p)),u++)}var d,f,g,i=n.get("coordinateSystem"),i=("cartesian2d"===i||"polar"===i||"matrix"===i?d=$_(t,n):(D(i=(i=Rd.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=U_(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new W_(i,n)).initData(t)),new W_(["value"],n));return i.initData(l,s),r&&r(d,i),g=(f={mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:i},datasAttr:{node:"data",edge:"edgeData"}}).mainData,(n=f.datas)||(n={main:g},f.datasAttr={main:"data"}),f.datas=f.mainData=null,TC(g,n,f),B(n,function(e){B(g.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,S(xC,f))})}),g.wrapMethod("cloneShallow",S(wC,f)),B(g.CHANGABLE_METHODS,function(t){g.wrapMethod(t,S(bC,f))}),Tt(n[g.dataType]===g),o.update(),o}u(AC,DC=im),AC.prototype.init=function(t){DC.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new tM(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},AC.prototype.mergeOption=function(t){DC.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},AC.prototype.mergeDefaultAndTheme=function(t){DC.prototype.mergeDefaultAndTheme.apply(this,arguments),jo(t,"edgeLabel",["show"])},AC.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],t=t.data||t.nodes||[],o=this;if(t&&i)return FT(n=this)&&(n.__curvenessList=[],n.__edgeMap={},GT(n)),B((n=CC(t,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=Rp.prototype.getModel;function i(t,e){t=n.call(this,t,e);return t.resolveParentPath=r,t}function r(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=r,t.getModel=i,t})})).edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,FT(i)&&(e=HT(e,n,i),i=(n=i.__edgeMap)[WT(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},AC.prototype.getGraph=function(){return this.getData().graph},AC.prototype.getEdgeData=function(){return this.getGraph().edgeData},AC.prototype.getCategoriesData=function(){return this._categoriesData},AC.prototype.formatTooltip=function(t,e,n){var i,r,o;return"edge"===n?(r=this.getData(),n=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),i=r.getName(o.node1.dataIndex),r=r.getName(o.node2.dataIndex),o=[],null!=i&&o.push(i),null!=r&&o.push(r),Gy("nameValue",{name:o.join(" > "),value:n.value,noValue:null==n.value})):Jy({series:this,dataIndex:t,multipleSeries:e})},AC.prototype._updateCategoriesData=function(){var t=V(this.option.categories||[],function(t){return null!=t.value?t:P({value:0},t)}),e=new W_(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},AC.prototype.setZoom=function(t){this.option.zoom=t},AC.prototype.setCenter=function(t){this.option.center=t},AC.prototype.isAnimationEnabled=function(){return DC.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},AC.type="series.graph",AC.dependencies=["grid","polar","geo","singleAxis","calendar"],AC.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:_.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:_.color.primary}}};var DC,kC=AC;function AC(){var t=null!==DC&&DC.apply(this,arguments)||this;return t.type=AC.type,t.hasSymbolVisual=!0,t}g1(function(t){t.registerChartView(uC),t.registerSeriesModel(kC),t.registerProcessor(NT),t.registerVisual(ET),t.registerVisual(BT),t.registerLayout(KT),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,rI),t.registerLayout(aI),t.registerCoordinateSystem("graphView",{dimensions:pI.dimensions,create:yI}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Vt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Vt),t.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(s,t,l){t.eachComponent({mainType:"series",query:s},function(t){var e,n,i,r,o=l.getViewOfSeriesModel(t),o=(o&&(null!=s.dx&&null!=s.dy&&o.updateViewOnPan(t,l,s),null!=s.zoom)&&null!=s.originX&&null!=s.originY&&o.updateViewOnZoom(t,l,s),t.coordinateSystem),a=(o=o,e=s,a=t.get("scaleLimit"),n=o.getZoom(),i=o.getCenter(),r=e.zoom,i=o.projectedToPoint?o.projectedToPoint(i):o.dataToPoint(i),null!=e.dx&&null!=e.dy&&(i[0]-=e.dx,i[1]-=e.dy,o.setCenter(sI(o,i))),null!=r&&(r=uI(n*r,a)/n,lI(o,e.originX,e.originY,r),o.updateTransform(),o.setCenter(sI(o,i)),o.setZoom(r*n)),{center:o.getCenter(),zoom:o.getZoom()});t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})});u(OC,LC=ym),OC.prototype.render=function(x,t,e){var b=x.getData(),w=this,S=this.group,M=x.getLayerSeries(),n=b.getLayout("layoutInfo"),i=n.rect,n=n.boundaryGap;function r(t){return t.name}S.x=0,S.y=i.y+n[0];var i=new y_(this._layersSeries||[],M,r,r),T=[];function o(t,e,n){var i=w._layers;if("remove"===t)S.remove(i[e]);else{for(var r,o=[],a=[],s=M[e].indices,l=0;le[1]&&e.reverse(),e},r2.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},r2.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var n2,i2=r2;function r2(t,e,n,i,r){t=n2.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=r||"bottom",t}function o2(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,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=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),bt(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}function a2(i){var r={xAxisModel:null,yAxisModel:null};return B(r,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,la).models[0];r[e]=n}),r}var s2=[[3,1],[0,2]],l2=(u2.prototype.getRect=function(){return this._rect},u2.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=pt(t),i=n.length;if(i){for(var r=[],o=i-1;0<=o;o--){var a=t[+n[o]],s=a.model,l=a.scale;Q_(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(e1(l,s),Q_(l)&&(e=a))}r.length&&(e||e1((e=r.pop()).scale,e.model),B(r,function(t){LT(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};B(n.x,function(t){c2(n,"y",t,r)}),B(n.y,function(t){c2(n,"x",t,r)}),this.resize(this.model,e)},u2.prototype.resize=function(t,e,n){var i,r,o,a,s,l=Kd(t,e),u=this._rect=Zd(t.getBoxLayoutParams(),l.refContainer),h=this._axesMap,c=this._coordsList,p=t.get("containLabel");d2(h,u),n||(i=u,r=c,n=h,o=p,a=e,s=new aT(m2),B(n,function(t){return B(t,function(t){u1(t.model)&&(t.axisBuilder=function(t,e,n,i,r,o){for(var t=o2(t,n),a=!1,s=!1,l=0;lu[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)n||!!e&&(o=x2(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},Z2.prototype.makeElOption=function(t,e,n,i,r){},Z2.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=U2(t).pointerEl=new op[r.type](X2(e.pointer)),t.add(r))},Z2.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=U2(t).labelEl=new _l(X2(e.label)),t.add(e),q2(e,i))},Z2.prototype.updatePointerEl=function(t,e,n){t=U2(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},Z2.prototype.updateLabelEl=function(t,e,n,i){t=U2(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),q2(t,i))},Z2.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,i=this._handle=Yc(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Le(t.event)},onmousedown:Y2(this._onHandleDragMove,this,0,0),drift:Y2(this._onHandleDragMove,this),ondragend:Y2(this._onHandleDragEnd,this)}),n.add(i)),$2(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),F(a=r.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,Cm(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(i&&n.remove(i),this._handle=null))},Z2.prototype._moveHandleToValue=function(t,e){j2(this._axisPointerModel,!e&&this._moveAnimation,this._handle,K2(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Z2.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(K2(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(K2(t)),U2(n).lastProp=null,this._doDispatchAxisPointer())},Z2.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}]}))},Z2.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Z2.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),Dm(this,"_doDispatchAxisPointer")},Z2.prototype.doClear=function(){},Z2.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},Z2);function Z2(){this._dragging=!1,this.animationThreshold=15}function j2(t,e,n,i){!function n(i,t){{var r;return E(i)&&E(t)?(r=!0,B(t,function(t,e){r=r&&n(i[e],t)}),!!r):i===t}}(U2(n).lastProp,i)&&(U2(n).lastProp=i,e?vc(n,i,t):(n.stopAnimation(),n.attr(i)))}function q2(t,e){t[e.get(["label","show"])?"show":"hide"]()}function K2(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function $2(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function Q2(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 J2(t,e,n,i,r){var o=tD(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=Md(n.get("padding")||0),s=n.getFont(),l=Xr(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:cp(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function tD(t,e,n,i,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:r1(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},B(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)}),G(r)?a=r.replace("{value}",a):N(r)&&(a=r(o))),a}function eD(t,e,n){var i=ze();return He(i,i,n.rotation),Ge(i,i,n.position),Gc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function nD(t,e,n,i,r,o){var a=dT.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),J2(e,i,r,o,{position:eD(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function iD(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function rD(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function oD(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}u(lD,aD=Xl),lD.prototype.makeElOption=function(t,e,n,i,r){var o,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&&(o=Q2(i),(h=hD[h](a,s,u,l)).style=o,t.graphicKey=h.type,t.pointer=h),i.get(["label","margin"]));J2(t,n,i,r,function(t,e,n,i){var r,o,a=e.axis,t=a.dataToCoord(t),s=(l=(l=n.getAngleAxis().getExtent()[0])/180*Math.PI,n.getRadiusAxis().getExtent());{var l;s="radius"===a.dim?(a=ze(),He(a,a,l),Ge(a,a,[n.cx,n.cy]),r=Gc([t,-i],a),a=e.getModel("axisLabel").get("rotate")||0,e=dT.innerTextLayout(l,a*Math.PI/180,-1),o=e.textAlign,e.textVerticalAlign):(l=s[1],r=n.coordToPoint([l+i,t]),a=n.cx,e=n.cy,o=Math.abs(r[0]-a)/l<.3?"center":r[0]>a?"left":"right",Math.abs(r[1]-e)/l<.3?"middle":r[1]>e?"top":"bottom")}return{position:r,align:o,verticalAlign:s}}(e,n,s,a))};var aD,sD=lD;function lD(){return null!==aD&&aD.apply(this,arguments)||this}var uD,hD={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:iD(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 r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:oD(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:oD(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},cD=(u(pD,uD=Xl),pD.prototype.makeElOption=function(t,e,n,i,r){var o,a=n.axis,s=a.grid,l=i.get("type"),u=dD(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0)),a=(l&&"none"!==l&&(o=Q2(i),(l=fD[l](a,h,u)).style=o,t.graphicKey=l.type,t.pointer=l),o2(s.getRect(),n));nD(e,t,a,n,i,r)},pD.prototype.getHandleTransform=function(t,e,n){var i=o2(e.axis.grid.getRect(),e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),eD(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},pD.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=dD(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];o[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}},pD);function pD(){return null!==uD&&uD.apply(this,arguments)||this}function dD(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var fD={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:iD([e,n[0]],[e,n[1]],gD(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:rD([e-i/2,n[0]],[i,r],gD(t))}}};function gD(t){return"x"===t.dim?0:1}u(vD,yD=g),vD.type="axisPointer",vD.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:_.color.border,width:1,type:"dashed"},shadowStyle:{color:_.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:_.color.neutral00,padding:[5,7,5,7],backgroundColor:_.color.accent60,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:_.color.accent40,throttle:40}};var yD,mD=vD;function vD(){var t=null!==yD&&yD.apply(this,arguments)||this;return t.type=vD.type,t}var _D=i(),xD=B;function bD(t,e,n){var i,c,p;function r(t,h){c.on(t,function(e){n=p;var n,i,r={dispatchAction:o,pendings:i={showTip:[],hideTip:[]}};function o(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=o,n.dispatchAction(t))}xD(_D(c).records,function(t){t&&h(t,e,r.dispatchAction)});var t,a=r.pendings,s=p,l=a.showTip.length,u=a.hideTip.length;l?t=a.showTip[l-1]:u&&(t=a.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}w.node||(i=e.getZr(),_D(i).records||(_D(i).records={}),p=e,_D(c=i).initialized||(_D(c).initialized=!0,r("click",S(SD,"click")),r("mousemove",S(SD,"mousemove")),r("globalout",wD)),(_D(i).records[t]||(_D(i).records[t]={})).handler=n)}function wD(t,e,n){t.handler("leave",null,n)}function SD(t,e,n,i){e.handler(t,n,i)}function MD(t,e){w.node||(e=e.getZr(),(_D(e).records||{})[t]&&(_D(e).records[t]=null))}u(CD,TD=cm),CD.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";bD("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})})},CD.prototype.remove=function(t,e){MD("axisPointer",e)},CD.prototype.dispose=function(t,e){MD("axisPointer",e)},CD.type="axisPointer";var TD,ID=CD;function CD(){var t=null!==TD&&TD.apply(this,arguments)||this;return t.type=CD.type,t}function DD(t,e){var n,i,r,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=ra(n=e.getData(),t))||s<0||F(s)?{point:[]}:(i=n.getItemGraphicEl(s),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(n.getValues(V(r.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 kD=i();function AD(t,e,n){var o,a,i,s,l,r,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||I(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return ND(v)&&(v=DD({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),o=ND(v),a=_.axesInfo,i=b.axesInfo,s="leave"===m||ND(v),l={},e={list:[],map:{}},u={showPointer:S(PD,r={}),showTooltip:S(OD,e)},B(b.coordSysMap,function(t,e){var r=o||t.containPoint(v);B(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||!r||a&&!i||null!=(i=null!=(i=i&&i.value)||o?i:n.pointToData(v))&&LD(t,i,u,!1,l)})}),h={},B(i,function(n,t){var i=n.linkGroup;i&&!r[t]&&B(i.axesInfo,function(t,e){var e=r[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,RD(t),RD(n)))),h[n.key]=e)})}),B(h,function(t,e){LD(i[e],t,u,!0,l)}),c=r,_=i,p=l.axesInfo=[],B(_,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,ND(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=kD(_)[x]||{},f=kD(_)[x]={},B(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&B(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],B(d,function(t,e){f[e]||y.push(t)}),B(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 LD(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,B(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var r=e.getAxisTooltipData(i,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=e.indicesOfNearest(l,i[0],a,"category"===s.type?.5:null)).length)return;r=e.getData().get(i[0],o[0])}null!=r&&isFinite(r)&&(i=a-r,(n=Math.abs(i))<=c)&&((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,e=this.r,n=this.r0;return e!==n&&t-1e-4<=e*e&&n*n<=1e-4+t},x:this.cx-e[1],y:this.cy-e[1],width:2*e[1],height:2*e[1]}},ik.prototype.convertToPixel=function(t,e,n){return rk(e)===this?this.dataToPoint(n):null},ik.prototype.convertFromPixel=function(t,e,n){return rk(e)===this?this.pointToData(n):null},ik);function ik(t){this.dimensions=ek,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new qD,this._angleAxis=new JD,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function rk(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function ok(t,e){var n,i=this,r=i.getAngleAxis(),o=i.getRadiusAxis();r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===i&&(B(s1(e=t.getData(),"radius"),function(t){o.scale.unionExtentFromData(e,t)}),B(s1(e,"angle"),function(t){r.scale.unionExtentFromData(e,t)}))}),e1(r.scale,r.model),e1(o.scale,o.model),"category"!==r.type||r.onBand||(t=r.getExtent(),n=360/r.scale.count(),r.inverse?t[1]+=n:t[1]-=n,r.setExtent(t[0],t[1]))}function ak(t,e){var n,i;t.type=e.get("type"),t.scale=n1(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"),i=null!=(i=e.get("endAngle"))?i:n+(t.inverse?-360:360),t.setExtent(n,i)),(e.axis=t).model=e}var sk={dimensions:ek,create:function(t,a){var s=[];return t.eachComponent("polar",function(t,e){var e=new nk(e+""),n=(e.update=ok,e.getRadiusAxis()),i=e.getAngleAxis(),r=t.findAxisModel("radiusAxis"),o=t.findAxisModel("angleAxis");ak(n,r),ak(i,o),n=e,r=a,o=(i=t).get("center"),r=Kd(i,r).refContainer,n.cx=Y(o[0],r.width)+r.x,n.cy=Y(o[1],r.height)+r.y,o=n.getRadiusAxis(),n=Math.min(r.width,r.height)/2,null==(r=i.get("radius"))?r=[0,"100%"]:F(r)||(r=[0,r]),i=[Y(r[0],n),Y(r[1],n)],o.inverse?o.setExtent(i[1],i[0]):o.setExtent(i[0],i[1]),s.push(e),(t.coordinateSystem=e).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",la).models[0],t.coordinateSystem=e.coordinateSystem)}),s}},lk=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function uk(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 hk(t){return t.getRadiusAxis().inverse?0:1}function ck(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(fk,pk=T2),fk.prototype.render=function(e,t){var n,i,r,o,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords({breakTicks:"none"}),a=n.getMinorTicksCoords(),ck(s=V(n.getViewLabels(),function(t){t=v(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),ck(o),B(lk,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||yk[t](this.group,e,i,o,a,r,s)},this))},fk.type="angleAxis";var pk,dk=fk;function fk(){var t=null!==pk&&pk.apply(this,arguments)||this;return t.type=fk.type,t.axisPointerClass="PolarAxisPointer",t}var gk,yk={axisLine:function(t,e,n,i,r,o){var e=e.getModel(["axisLine","lineStyle"]),a=n.getAngleAxis(),s=Math.PI/180,l=a.getExtent(),u=hk(n),h=u?0:1,c=360===Math.abs(l[1]-l[0])?"Circle":"Arc",c=0===o[h]?new op[c]({shape:{cx:n.cx,cy:n.cy,r:o[u],startAngle:-l[0]*s,endAngle:-l[1]*s,clockwise:a.inverse},style:e.getLineStyle(),z2:1,silent:!0}):new bh({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[h]},style:e.getLineStyle(),z2:1,silent:!0});c.style.fill=null,t.add(c)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[hk(n)],o=V(i,function(t){return new Nh({shape:uk(n,[l,l+s],t.coord)})});t.add(Ec(o,{style:z(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[hk(n)],h=[],c=0;ca?"left":"right",r=Math.abs(o[1]-s)/r<.3?"middle":o[1]>s?"top":"bottom",l=(d&&d[i]&&E(s=d[i])&&s.textStyle&&(n=new Rp(s.textStyle,f,f.ecModel)),new _l({silent:dT.isLabelSilent(h),style:cp(n,{x:o[0],y:o[1],fill:n.getTextColor()||h.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:r})}));u.add(l),$c({el:l,componentModel:h,itemName:t.formattedLabel,formatterParamsExtra:{isTruncated:function(){return l.isTruncated},value:t.rawLabel,tickIndex:e}}),y&&((i=dT.makeAxisEventDataBase(h)).targetType="axisLabel",i.value=t.rawLabel,Z(l).eventData=i)},this)},splitLine:function(t,e,n,i,r,o){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},Wk.prototype.pointToData=function(t,e,n){n=n||[];var i=this.getAxis();return n[0]=i.coordToData(i.toLocalCoord(t["horizontal"===i.orient?0:1])),n},Wk.prototype.dataToPoint=function(t,e,n){var i=this.getAxis(),r=this.getRect(),o=(n=n||[],"horizontal"===i.orient?0:1);return t instanceof Array&&(t=t[0]),n[o]=i.toGlobalCoord(i.dataToCoord(+t)),n[1-o]=0==o?r.y+r.height/2:r.x+r.width/2,n},Wk.prototype.convertToPixel=function(t,e,n){return Uk(e)===this?this.dataToPoint(n):null},Wk.prototype.convertFromPixel=function(t,e,n){return Uk(e)===this?this.pointToData(n):null},Wk);function Wk(t,e,n){this.type="single",this.dimension="single",this.dimensions=Gk,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function Uk(t){var e=t.seriesModel,t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var Xk,Yk={create:function(i,r){var o=[];return i.eachComponent("singleAxis",function(t,e){var n=new Hk(t,i,r);n.name="single_"+e,n.resize(t,r),t.coordinateSystem=n,o.push(n)}),i.eachSeries(function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",la).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),o},dimensions:Gk},Zk=["x","y"],jk=["width","height"],qk=(u(Kk,Xk=Xl),Kk.prototype.makeElOption=function(t,e,n,i,r){var o,a=n.axis,s=a.coordinateSystem,l=Jk(s,1-Qk(a)),s=s.dataToPoint(e)[0],u=i.get("type"),a=(u&&"none"!==u&&(o=Q2(i),(u=$k[u](a,s,l)).style=o,t.graphicKey=u.type,t.pointer=u),kk(n));nD(e,t,a,n,i,r)},Kk.prototype.getHandleTransform=function(t,e,n){var i=kk(e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),eD(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},Kk.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.coordinateSystem,n=Qk(n),o=Jk(r,n),a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),Jk(r,1-n)),o=(e[1]+e[0])/2,r=[o,o];return r[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:{verticalAlign:"middle"}}},Kk);function Kk(){return null!==Xk&&Xk.apply(this,arguments)||this}var $k={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:iD([e,n[0]],[e,n[1]],Qk(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:rD([e-i/2,n[0]],[i,r],Qk(t))}}};function Qk(t){return t.isHorizontal()?0:1}function Jk(t,e){t=t.getRect();return[t[Zk[e]],t[Zk[e]]+t[jk[e]]]}u(nA,tA=cm),nA.type="single";var tA,eA=nA;function nA(){var t=null!==tA&&tA.apply(this,arguments)||this;return t.type=nA.type,t}g1(function(t){g1(ED),T2.registerAxisPointerClass("SingleAxisPointer",qk),t.registerComponentView(eA),t.registerComponentView(Pk),t.registerComponentModel(Ek),jC(t,"single",Ek,Ek.defaultOption),t.registerCoordinateSystem("single",Yk)});u(oA,iA=g),oA.type="title",oA.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:_.size.m,backgroundColor:_.color.transparent,borderColor:_.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:_.color.primary},subtextStyle:{fontSize:12,color:_.color.quaternary}};var iA,rA=oA;function oA(){var t=null!==iA&&iA.apply(this,arguments)||this;return t.type=oA.type,t.layoutMode={type:"box",ignoreSize:!0},t}u(lA,aA=cm),lA.prototype.render=function(t,e,n){var i,r,o,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),r=t.getModel("subtextStyle"),h=t.get("textAlign"),c=W(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new _l({style:cp(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new _l({style:cp(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!o&&!s,r.silent=!a&&!s,o&&u.on("click",function(){Ld(o,"_"+t.get("target"))}),a&&r.on("click",function(){Ld(a,"_"+t.get("subtarget"))}),Z(u).eventData=Z(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(r),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=Zd(l,Kd(t,n).refContainer,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}),r.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new dl({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))},lA.type="title";var aA,sA=lA;function lA(){var t=null!==aA&&aA.apply(this,arguments)||this;return t.type=lA.type,t}g1(function(t){t.registerComponentModel(rA),t.registerComponentView(sA)});u(cA,uA=g),cA.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},cA.prototype.mergeOption=function(t,e){uA.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},cA.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;F(n=!0===n?t.selector=["all","inverse"]:n)&&B(n,function(t,e){G(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))})},cA.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[r],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=W(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[r]-p[r]:e[i]+=p[r]+g),s[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[r]=(d?n:c)[r],f[o]=Math.max(c[o],p[o]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[r],d?((e={x:0,y:0})[r]=Math.max(n[r]-p[r]-g,0),e[o]=f[o],u.setClipPath(new dl({shape:e})),u.__rectSize=e[r]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&vc(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},NA.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},NA.prototype._updatePageInfoView=function(n,i){var r=this._controllerGroup,t=(B(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=r.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),r.childOfName("pageText")),e=n.get("pageFormatter"),o=i.pageIndex,o=null!=o?o+1:0,a=i.pageCount;t&&e&&t.setStyle("text",G(e)?e.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):e({current:o,total:a}))},NA.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,r=PA[t],o=OA[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,p=n,d=n,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i=e&&t.s<=e+i}},NA.prototype._findTargetItemIndex=function(n){var i,r;return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==r&&null!=t&&(r=e),t===n&&(i=e)}),null!=i?i:r):0},NA.type="legend.scroll",NA);function NA(){var t=null!==AA&&AA.apply(this,arguments)||this;return t.type=NA.type,t.newlineDisabled=!0,t._currentIndex=0,t}g1(function(t){g1(TA),t.registerComponentModel(CA),t.registerComponentView(RA),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(BA,EA=g),BA.type="tooltip",BA.dependencies=["axisPointer"],BA.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:_.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:_.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:_.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:_.color.tertiary,fontSize:14}};var EA,zA=BA;function BA(){var t=null!==EA&&EA.apply(this,arguments)||this;return t.type=BA.type,t}function VA(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function FA(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n'):""),G(t))o.innerHTML=t+c;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var p,d=0;d"),o=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,r,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,o,p,Math.random()+"",n[0],n[1],r,null,g)})},oL.prototype._showSeriesItemTooltip=function(t,e,n){var i,r,o,a,s,l=this._ecModel,e=Z(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=aL([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),r=new $y,i.marker=r.makeTooltipMarker("item",Ad(i.color),f),g=Wg(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),o=g.frag,a=o?Yy(e?P({valueFormatter:e},o):o,r,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,r)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},oL.prototype._showComponentItemTooltip=function(e,n,t){var i="html"===this._renderMode,r=Z(n),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent,a=(G(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=v(o)).content=Se(o.content)),[o]),i=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(i&&a.push(i),a.push({formatter:o.content}),e.positionDefault),s=aL(a,this._tooltipModel,r?{position:r}:null),l=s.get("content"),u=Math.random()+"",h=new $y;this._showOrMove(s,function(){var t=v(s.get("formatterParams")||{});this._showTooltipContent(s,l,t,u,e.offsetX,e.offsetY,e.position,n,h)}),t({type:"showTip",from:this.uid})},oL.prototype._showTooltipContent=function(n,t,i,e,r,o,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([r,o],i,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)).color,h&&(t=G(h)?(p=n.ecModel.get("useUTC"),t=h,Dd(t=(d=F(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?ad(d.axisValue,t,p):t,i,!0)):N(h)?(d=I(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,r,o,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,r,o,u,i,s))},oL.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||F(e)?{color:i||r}:F(e)?void 0:{color:i||e.color||e.borderColor}},oL.prototype._updatePosition=function(t,e,n,i,r,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),F(e=N(e)?e([n,i],o,r.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=Y(e[0],l),i=Y(e[1],u)):E(e)?((o=e).width=h[0],o.height=h[1],n=(o=Zd(o,{width:l,height:u})).x,i=o.y,p=c=null):i=(n=(s=G(e)&&a?function(t,e,n,i){var r=n[0],o=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-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,r,o,a){var n=n.getSize(),s=n[0],n=n[1];null!=o&&(ih[0]?s:r)[0]:o[0]=(a[0]>h[0]?r:s)[0],"y0"===n[1]?o[1]=(a[1]>h[1]?s:r)[1]:o[1]=(a[1]>h[1]?r:s)[1],i.getMarkerPosition(o,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)),vw(c,"cartesian2d")&&(r=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),KL(l)?h[0]=r.toGlobalCoord(r.getExtent()["x0"===n[0]?0:1]):KL(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 tP,eP=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],nP=(u(iP,tP=_a),iP.prototype.updateTransform=function(t,e,r){e.eachSeries(function(n){var i,t=dL.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=V(eP,function(t){return JL(i,e,t,n,r)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},iP.prototype.renderSeries=function(a,r,t,s){var l=a.coordinateSystem,e=a.id,u=a.getData(),n=this.markerGroupMap,o=n.get(e)||n.set(e,{group:new ho}),h=(this.group.add(o.group),this.markKeep(o),function(t,n,e){var i,r;{var o;i=t?(o=V(t&&t.dimensions,function(t){var e=n.getData();return P(P({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),r=V(["x0","y0","x1","y1"],function(t,e){return{name:t,type:o[e%2].type}}),new W_(r,e)):new W_(r=[{name:"value",type:"float"}],e)}e=V(e.get("data"),S(jL,n,t,e));t&&(e=ht(e,S(QL,t)));t=t?function(t,e,n,i){return ny(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return ny(t.value,r[i])};return i.initData(e,null,t),i.hasItemOption=!0,i}(l,a,r));r.setData(h),h.each(function(e){var t=V(eP,function(t){return JL(h,e,t,a,s)}),n=l.getAxis("x").scale,i=l.getAxis("y").scale,r=n.getExtent(),o=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))],r=(ko(n),ko(i),!(r[0]>n[1]||r[1]i[1]||o[1]":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},oP=(aP.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):!!H(e)&&this._condVal.test(t+"")},aP);function aP(t){null==(this._condVal=G(t)?new RegExp(t):_t(t)?t:null)&&f("")}lP.prototype.evaluate=function(){return this.value};var sP=lP;function lP(){}hP.prototype.evaluate=function(){for(var t=this.children,e=0;e