import{d as JO,as as dM,y as $O,e as ph,r as fM,w as QO,z as eR,b as tR,a as An,h as nR,l as iR,o as rR,c as oR,ad as aR,aH as sR,ae as lR,aI as gM,_ as uR,__tla as hR}from"./index-286756b9.js";let yM,ug,cR=Promise.all([(()=>{try{return hR}catch{}})()]).then(async()=>{var dh=function(n,t){return dh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},dh(n,t)};function V(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}dh(n,t),n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var vM=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Gi=new function(){this.browser=new vM,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=typeof window<"u"};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Gi.wxa=!0,Gi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Gi.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Gi.node=!0,Gi.svgSupported=!0):function(n,t){var e=t.browser,i=n.match(/Firefox\/([\d.]+)/),r=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),o=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(e.firefox=!0,e.version=i[1]),r&&(e.ie=!0,e.version=r[1]),o&&(e.edge=!0,e.version=o[1],e.newEdge=+o[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}(navigator.userAgent,Gi);const we=Gi;var Hi="12px sans-serif",Fo,hg,mM=function(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)o=r*n.length;else for(var a=0;a>1)%2;f.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",c[g]+":0",p[y]+":0",c[1-g]+":auto",p[1-y]+":auto",""].join("!important;"),l.appendChild(f),h.push(f)}return h}(t,o),s=function(l,u,h){for(var c=h?"invTrans":"trans",p=u[c],d=u.srcCoords,f=[],g=[],y=!0,v=0;v<4;v++){var m=l[v].getBoundingClientRect(),x=2*v,_=m.left,b=m.top;f.push(_,b),y=y&&d&&_===d[x]&&b===d[x+1],g.push(l[v].offsetLeft,l[v].offsetTop)}return y&&p?p:(u.srcCoords=f,u[c]=h?Ag(g,f):Ag(f,g))}(a,o,r);if(s)return s(n,e,i),!0}return!1}function kg(n){return n.nodeName.toUpperCase()==="CANVAS"}var OM=/([&<>"'])/g,RM={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bt(n){return n==null?"":(n+"").replace(OM,function(t,e){return RM[e]})}var EM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ah=[],NM=we.browser.firefox&&+we.browser.version.split(".")[0]<39;function Dh(n,t,e,i){return e=e||{},i?Lg(n,t,e):NM&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Lg(n,t,e),e}function Lg(n,t,e){if(we.domSupported&&n.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(kg(n)){var o=n.getBoundingClientRect();return e.zrX=i-o.left,void(e.zrY=r-o.top)}if(Ch(Ah,n,i,r))return e.zrX=Ah[0],void(e.zrY=Ah[1])}e.zrX=e.zrY=0}function kh(n){return n||window.event}function jt(n,t,e){if((t=kh(t)).zrX!=null)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];r&&Dh(n,r,t,e)}else{Dh(n,t,t,e);var o=function(s){var l=s.wheelDelta;if(l)return l;var u=s.deltaX,h=s.deltaY;return u==null||h==null?l:3*Math.abs(h!==0?h:u)*(h>0?-1:h<0?1:u>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return t.which==null&&a!==void 0&&EM.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function Lh(n,t,e,i){n.addEventListener(t,e,i)}var Jn=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function Pg(n){return n.which===2||n.which===3}var zM=function(){function n(){this._track=[]}return n.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(t,e,i){var r=t.touches;if(r){for(var o={points:[],touches:[],target:e,event:t},a=0,s=r.length;a1&&r&&r.length>1){var a=Og(r)/Og(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:n[0].target,event:t}}}}};function BM(){return[1,0,0,1,0,0]}function Xo(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Ds(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function Dn(n,t,e){var i=t[0]*e[0]+t[2]*e[1],r=t[1]*e[0]+t[3]*e[1],o=t[0]*e[2]+t[2]*e[3],a=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=s,n[5]=l,n}function Ui(n,t,e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+e[0],n[5]=t[5]+e[1],n}function Zi(n,t,e,i){i===void 0&&(i=[0,0]);var r=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],h=Math.sin(e),c=Math.cos(e);return n[0]=r*c+s*h,n[1]=-r*h+s*c,n[2]=o*c+l*h,n[3]=-o*h+c*l,n[4]=c*(a-i[0])+h*(u-i[1])+i[0],n[5]=c*(u-i[1])-h*(a-i[0])+i[1],n}function Oh(n,t,e){var i=e[0],r=e[1];return n[0]=t[0]*i,n[1]=t[1]*r,n[2]=t[2]*i,n[3]=t[3]*r,n[4]=t[4]*i,n[5]=t[5]*r,n}function ji(n,t){var e=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=e*a-o*i;return l?(l=1/l,n[0]=a*l,n[1]=-o*l,n[2]=-i*l,n[3]=e*l,n[4]=(i*s-a*r)*l,n[5]=(o*r-e*s)*l,n):null}const VM=Object.freeze(Object.defineProperty({__proto__:null,clone:function(n){var t=[1,0,0,1,0,0];return Ds(t,n),t},copy:Ds,create:BM,identity:Xo,invert:ji,mul:Dn,rotate:Zi,scale:Oh,translate:Ui},Symbol.toStringTag,{value:"Module"}));var FM=function(){function n(t,e){this.x=t||0,this.y=e||0}return n.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(t,e){return this.x=t,this.y=e,this},n.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},n.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},n.prototype.scale=function(t){this.x*=t,this.y*=t},n.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},n.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},n.prototype.dot=function(t){return this.x*t.x+this.y*t.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},n.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},n.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},n.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},n.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},n.set=function(t,e,i){t.x=e,t.y=i},n.copy=function(t,e){t.x=e.x,t.y=e.y},n.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},n.lenSquare=function(t){return t.x*t.x+t.y*t.y},n.dot=function(t,e){return t.x*e.x+t.y*e.y},n.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},n.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},n.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},n.scaleAndAdd=function(t,e,i,r){t.x=e.x+i.x*r,t.y=e.y+i.y*r},n.lerp=function(t,e,i,r){var o=1-r;t.x=o*e.x+r*i.x,t.y=o*e.y+r*i.y},n}();const de=FM;var ks=Math.min,Ls=Math.max,qi=new de,Ki=new de,Ji=new de,$i=new de,Uo=new de,Zo=new de,GM=function(){function n(t,e,i,r){i<0&&(t+=i,i=-i),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=i,this.height=r}return n.prototype.union=function(t){var e=ks(t.x,this.x),i=ks(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ls(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ls(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},n.prototype.applyTransform=function(t){n.applyTransform(this,this,t)},n.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,r=t.height/e.height,o=[1,0,0,1,0,0];return Ui(o,o,[-e.x,-e.y]),Oh(o,o,[i,r]),Ui(o,o,[t.x,t.y]),o},n.prototype.intersect=function(t,e){if(!t)return!1;t instanceof n||(t=n.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,h=t.y,c=t.y+t.height,p=!(of&&(f=x,gf&&(f=_,v=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},n.applyTransform=function(t,e,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=e.x*r+a,t.y=e.y*o+s,t.width=e.width*r,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}qi.x=Ji.x=e.x,qi.y=$i.y=e.y,Ki.x=$i.x=e.x+e.width,Ki.y=Ji.y=e.y+e.height,qi.transform(i),$i.transform(i),Ki.transform(i),Ji.transform(i),t.x=ks(qi.x,Ki.x,Ji.x,$i.x),t.y=ks(qi.y,Ki.y,Ji.y,$i.y);var l=Ls(qi.x,Ki.x,Ji.x,$i.x),u=Ls(qi.y,Ki.y,Ji.y,$i.y);t.width=l-t.x,t.height=u-t.y}else t!==e&&n.copy(t,e)},n}();const me=GM;var Rg="silent";function HM(){Jn(this.event)}var WM=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.handler=null,e}return V(t,n),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zt),jo=function(n,t){this.x=n,this.y=t},YM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rh=new me(0,0,0,0),Eg=function(n){function t(e,i,r,o,a){var s=n.call(this)||this;return s._hovered=new jo(0,0),s.storage=e,s.painter=i,s.painterRoot=o,s._pointerSize=a,r=r||new WM,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new kM(s),s}return V(t,n),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(YM,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,r=e.zrY,o=zg(this,i,r),a=this._hovered,s=a.target;s&&!s.__zr&&(s=(a=this.findHover(a.x,a.y)).target);var l=this._hovered=o?new jo(i,r):this.findHover(i,r),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new jo(0,0)},t.prototype.dispatch=function(e,i){var r=this[e];r&&r.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,r){var o=(e=e||{}).target;if(!o||!o.silent){for(var a="on"+i,s=function(l,u,h){return{type:l,event:h,target:u.target,topTarget:u.topTarget,cancelBubble:!1,offsetX:h.zrX,offsetY:h.zrY,gestureEvent:h.gestureEvent,pinchX:h.pinchX,pinchY:h.pinchY,pinchScale:h.pinchScale,wheelDelta:h.zrDelta,zrByTouch:h.zrByTouch,which:h.which,stop:HM}}(i,e,r);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(i,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,r){var o=this.storage.getDisplayList(),a=new jo(e,i);if(Ng(o,a,e,i,r),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,h=new me(e-u,i-u,l,l),c=o.length-1;c>=0;c--){var p=o[c];p===r||p.ignore||p.ignoreCoarsePointer||p.parent&&p.parent.ignoreCoarsePointer||(Rh.copy(p.getBoundingRect()),p.transform&&Rh.applyTransform(p.transform),Rh.intersect(h)&&s.push(p))}if(s.length){for(var d=Math.PI/12,f=2*Math.PI,g=0;g=0;o--){var a=n[o],s=void 0;if(a!==r&&!a.ignore&&(s=XM(a,e,i))&&(!t.topTarget&&(t.topTarget=a),s!==Rg)){t.target=a;break}}}function zg(n,t,e){var i=n.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){Eg.prototype[n]=function(t){var e,i,r=t.zrX,o=t.zrY,a=zg(this,r,o);if(n==="mouseup"&&a||(i=(e=this.findHover(r,o)).target),n==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(n==="mouseup")this._upEl=i;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Cs(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(e,n,t)}});const UM=Eg;var Bg=32,qo=7;function Vg(n,t,e,i){var r=t+1;if(r===e)return 1;if(i(n[r++],n[t])<0){for(;r=0;)r++;return r-t}function Fg(n,t,e,i,r){for(i===t&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:n[s+3]=n[s+2];case 2:n[s+2]=n[s+1];case 1:n[s+1]=n[s];break;default:for(;u>0;)n[s+u]=n[s+u-1],u--}n[s]=a}}function Eh(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(n,t[e+h])>0?a=h+1:l=h}return l}function Nh(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(n,t[e+h])<0?l=h:a=h+1}return l}function ZM(n,t){var e,i,r=qo,o=0,a=[];function s(l){var u=e[l],h=i[l],c=e[l+1],p=i[l+1];i[l]=h+p,l===o-3&&(e[l+1]=e[l+2],i[l+1]=i[l+2]),o--;var d=Nh(n[c],n,u,h,0,t);u+=d,(h-=d)!==0&&(p=Eh(n[u+h-1],n,c,p,p-1,t))!==0&&(h<=p?function(f,g,y,v){var m=0;for(m=0;m=qo||S>=qo);if(M)break;T<0&&(T=0),T+=2}if((r=T)<1&&(r=1),g===1){for(m=0;m=0;m--)n[S+m]=n[w+m];return void(n[b]=a[_])}for(var M=r;;){var T=0,I=0,C=!1;do if(t(a[_],n[x])<0){if(n[b--]=n[x--],T++,I=0,--g==0){C=!0;break}}else if(n[b--]=a[_--],I++,T=0,--v==1){C=!0;break}while((T|I)=0;m--)n[S+m]=n[w+m];if(g===0){C=!0;break}}if(n[b--]=a[_--],--v==1){C=!0;break}if((I=v-Eh(n[x],a,0,v,v-1,t))!==0){for(v-=I,S=(b-=I)+1,w=(_-=I)+1,m=0;m=qo||I>=qo);if(C)break;M<0&&(M=0),M+=2}if((r=M)<1&&(r=1),v===1){for(S=(b-=g)+1,w=(x-=g)+1,m=g-1;m>=0;m--)n[S+m]=n[w+m];n[b]=a[_]}else{if(v===0)throw new Error;for(w=b-(v-1),m=0;m1;){var l=o-2;if(l>=1&&i[l-1]<=i[l]+i[l+1]||l>=2&&i[l-2]<=i[l]+i[l-1])i[l-1]i[l+1])break;s(l)}},forceMergeRuns:function(){for(;o>1;){var l=o-2;l>0&&i[l-1]=Bg;)h|=1&u,u>>=1;return u+h}(r);do{if((o=Vg(n,e,i,t))s&&(l=s),Fg(n,e,e+l,e+o,t),o=l}a.pushRun(e,o),a.mergeRuns(),r-=o,e+=o}while(r!==0);a.forceMergeRuns()}}}var Vt=1,Yr=4,Gg=!1;function zh(){Gg||(Gg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Hg(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var jM=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Hg}return n.prototype.traverse=function(t,e){for(var i=0;i0&&(h.__clipPaths=[]),isNaN(h.z)&&(zh(),h.z=0),isNaN(h.z2)&&(zh(),h.z2=0),isNaN(h.zlevel)&&(zh(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e=0&&this._roots.splice(r,1)}},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const qM=jM,Bh=we.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};var Os={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(2-Math.pow(2,-10*(n-1)))},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var t,e=.1;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=.4*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/.4))},elasticOut:function(n){var t,e=.1;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=.4*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*n)*Math.sin((n-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(n){var t,e=.1,i=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=i*Math.asin(1/e)/(2*Math.PI),(n*=2)<1?e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},backInOut:function(n){var t=2.5949095;return(n*=2)<1?n*n*((t+1)*n-t)*.5:.5*((n-=2)*n*((t+1)*n+t)+2)},bounceIn:function(n){return 1-Os.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?.5*Os.bounceIn(2*n):.5*Os.bounceOut(2*n-1)+.5}};const Wg=Os;var Rs=Math.pow,xi=Math.sqrt,Es=1e-8,Yg=1e-4,Xg=xi(3),Ns=1/3,kn=Yi(),qt=Yi(),Xr=Yi();function _i(n){return n>-Es&&nEs||n<-Es}function tt(n,t,e,i,r){var o=1-r;return o*o*(o*n+3*r*t)+r*r*(r*i+3*o*e)}function Zg(n,t,e,i,r){var o=1-r;return 3*(((t-n)*o+2*(e-t)*r)*o+(i-e)*r*r)}function zs(n,t,e,i,r,o){var a=i+3*(t-e)-n,s=3*(e-2*t+n),l=3*(t-n),u=n-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(_i(h)&&_i(c))_i(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[d++]=M);else{var f=c*c-4*h*p;if(_i(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=xi(f),m=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-Rs(-m,Ns):Rs(m,Ns))+(x=x<0?-Rs(-x,Ns):Rs(x,Ns))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*h*s-3*a*c)/(2*xi(h*h*h)),b=Math.acos(_)/3,w=xi(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),T=(y=(-s+w*(S+Xg*Math.sin(b)))/(3*a),(-s+w*(S-Xg*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),T>=0&&T<=1&&(o[d++]=T)}}return d}function jg(n,t,e,i,r){var o=6*e-12*t+6*n,a=9*t+3*i-3*n-9*e,s=3*t-3*n,l=0;if(_i(a))Ug(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(_i(u))r[0]=-o/(2*a);else if(u>0){var h,c=xi(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function Bs(n,t,e,i,r,o){var a=(t-n)*r+n,s=(e-t)*r+t,l=(i-e)*r+e,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=n,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function qg(n,t,e,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;kn[0]=l,kn[1]=u;for(var m=0;m<1;m+=.05)qt[0]=tt(n,e,r,a,m),qt[1]=tt(t,i,o,s,m),(f=Xi(kn,qt))=0&&f=0&&y=1?1:zs(0,i,o,1,l,s)&&tt(0,r,a,1,s[0])}}}const QM=function(){function n(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||st,this.ondestroy=t.ondestroy||st,this.onrestart=t.onrestart||st,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,r=t-this._startTime-this._pausedTime,o=r/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1){if(!this.loop)return!0;var l=r%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ae(t)?t:Wg[t]||Qg(t)},n}();var ey=function(n){this.value=n},eT=function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new ey(t);return this.insertEntry(e),e},n.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),tT=function(){function n(t){this._list=new eT,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var i=this._list,r=this._map,o=null;if(r[t]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new ey(e),s.key=t,i.insertEntry(s),r[t]=s}return o},n.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const Ko=tT;var ty={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function yn(n){return(n=Math.round(n))<0?0:n>255?255:n}function Jo(n){return n<0?0:n>1?1:n}function Vh(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?yn(parseFloat(t)/100*255):yn(parseInt(t,10))}function Qi(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?Jo(parseFloat(t)/100):Jo(parseFloat(t))}function Fh(n,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?n+(t-n)*e*6:2*e<1?t:3*e<2?n+(t-n)*(2/3-e)*6:n}function wi(n,t,e){return n+(t-n)*e}function Kt(n,t,e,i,r){return n[0]=t,n[1]=e,n[2]=i,n[3]=r,n}function Gh(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var ny=new Ko(20),Fs=null;function Ur(n,t){Fs&&Gh(Fs,t),Fs=ny.put(n,Fs||t.slice())}function At(n,t){if(n){t=t||[];var e=ny.get(n);if(e)return Gh(t,e);var i=(n+="").replace(/ /g,"").toLowerCase();if(i in ty)return Gh(t,ty[i]),Ur(n,t),t;var r,o=i.length;if(i.charAt(0)==="#")return o===4||o===5?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Kt(t,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,o===5?parseInt(i.slice(4),16)/15:1),Ur(n,t),t):void Kt(t,0,0,0,1):o===7||o===9?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Kt(t,(16711680&r)>>16,(65280&r)>>8,255&r,o===9?parseInt(i.slice(7),16)/255:1),Ur(n,t),t):void Kt(t,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Kt(t,+u[0],+u[1],+u[2],1):Kt(t,0,0,0,1);h=Qi(u.pop());case"rgb":return u.length>=3?(Kt(t,Vh(u[0]),Vh(u[1]),Vh(u[2]),u.length===3?h:Qi(u[3])),Ur(n,t),t):void Kt(t,0,0,0,1);case"hsla":return u.length!==4?void Kt(t,0,0,0,1):(u[3]=Qi(u[3]),Hh(u,t),Ur(n,t),t);case"hsl":return u.length!==3?void Kt(t,0,0,0,1):(Hh(u,t),Ur(n,t),t);default:return}}Kt(t,0,0,0,1)}}function Hh(n,t){var e=(parseFloat(n[0])%360+360)%360/360,i=Qi(n[1]),r=Qi(n[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Kt(t=t||[],yn(255*Fh(a,o,e+1/3)),yn(255*Fh(a,o,e)),yn(255*Fh(a,o,e-1/3)),1),n.length===4&&(t[3]=n[3]),t}function Wh(n,t){var e=At(n);if(e){for(var i=0;i<3;i++)e[i]=t<0?e[i]*(1-t)|0:(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return vn(e,e.length===4?"rgba":"rgb")}}function $o(n,t,e){if(t&&t.length&&n>=0&&n<=1){e=e||[];var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return e[0]=yn(wi(a[0],s[0],l)),e[1]=yn(wi(a[1],s[1],l)),e[2]=yn(wi(a[2],s[2],l)),e[3]=Jo(wi(a[3],s[3],l)),e}}var nT=$o;function Yh(n,t,e){if(t&&t.length&&n>=0&&n<=1){var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=At(t[r]),s=At(t[o]),l=i-r,u=vn([yn(wi(a[0],s[0],l)),yn(wi(a[1],s[1],l)),yn(wi(a[2],s[2],l)),Jo(wi(a[3],s[3],l))],"rgba");return e?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var iT=Yh;function Gs(n,t,e,i){var r=At(n);if(n)return r=function(o){if(o){var a,s,l=o[0]/255,u=o[1]/255,h=o[2]/255,c=Math.min(l,u,h),p=Math.max(l,u,h),d=p-c,f=(p+c)/2;if(d===0)a=0,s=0;else{s=f<.5?d/(p+c):d/(2-p-c);var g=((p-l)/6+d/2)/d,y=((p-u)/6+d/2)/d,v=((p-h)/6+d/2)/d;l===p?a=v-y:u===p?a=1/3+g-v:h===p&&(a=2/3+y-g),a<0&&(a+=1),a>1&&(a-=1)}var m=[360*a,s,f];return o[3]!=null&&m.push(o[3]),m}}(r),t!=null&&(r[0]=function(o){return(o=Math.round(o))<0?0:o>360?360:o}(t)),e!=null&&(r[1]=Qi(e)),i!=null&&(r[2]=Qi(i)),vn(Hh(r),"rgba")}function iy(n,t){var e=At(n);if(e&&t!=null)return e[3]=Jo(t),vn(e,"rgba")}function vn(n,t){if(n&&n.length){var e=n[0]+","+n[1]+","+n[2];return t!=="rgba"&&t!=="hsva"&&t!=="hsla"||(e+=","+n[3]),t+"("+e+")"}}function Qo(n,t){var e=At(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var ry=new Ko(100);function Xh(n){if(j(n)){var t=ry.get(n);return t||(t=Wh(n,-.1),ry.put(n,t)),t}if(Ho(n)){var e=G({},n);return e.colorStops=X(n.colorStops,function(i){return{offset:i.offset,color:Wh(i.color,-.1)}}),e}return n}const rT=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:$o,fastMapToColor:nT,lerp:Yh,lift:Wh,liftColor:Xh,lum:Qo,mapToColor:iT,modifyAlpha:iy,modifyHSL:Gs,parse:At,random:function(){return vn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:vn,toHex:function(n){var t=At(n);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));we.hasGlobalWindow&&ae(window.btoa);var Uh=Array.prototype.slice;function $n(n,t,e){return(t-n)*e+n}function Zh(n,t,e,i){for(var r=t.length,o=0;oi?t:n,o=Math.min(e,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var r=this.keyframes,o=r.length,a=!1,s=6,l=e;if(mt(e)){var u=function(d){return mt(d&&d[0])?2:1}(e);s=u,(u===1&&!Re(e[0])||u===2&&!Re(e[0][0]))&&(a=!0)}else if(Re(e)&&!Gr(e))s=0;else if(j(e))if(isNaN(+e)){var h=At(e);h&&(l=h,s=3)}else s=0;else if(Ho(e)){var c=G({},l);c.colorStops=X(e.colorStops,function(d){return{offset:d.offset,color:At(d.color)}}),e.type==="linear"?s=4:function(d){return d.type==="radial"}(e)&&(s=5),l=c}o===0?this.valType=s:s===this.valType&&s!==6||(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=ae(i)?i:Wg[i]||Qg(i)),r.push(p),p},n.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,y){return g.time-y.time});for(var r=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Xs(r),u=ay(r),h=0;h=0&&!(u[i].percent<=e);i--);i=f(i,h-2)}else{for(i=d;ie);i++);i=f(i-1,h-2)}o=u[i+1],r=u[i]}if(r&&o){this._lastFr=i,this._lastFrP=e;var g=o.percent-r.percent,y=g===0?1:f((e-r.percent)/g,1);o.easingFunc&&(y=o.easingFunc(y));var v=a?this._additiveValue:p?ea:t[c];if(!Xs(l)&&!p||v||(v=this._additiveValue=[]),this.discrete)t[c]=y<1?r.rawValue:o.rawValue;else if(Xs(l))l===1?Zh(v,r[s],o[s],y):function(w,S,M,T){for(var I=S.length,C=I&&S[0].length,D=0;D0&&l.addKeyframe(0,Ws(u),r),this._trackKeys.push(s)}l.addKeyframe(t,Ws(e[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],r=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},n}();const jh=lT;function Zr(){return new Date().getTime()}var uT=function(n){function t(e){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return V(t,n),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,r=e.next;i?i.next=r:this._head=r,r?r.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Zr()-this._pausedTime,r=i-this._time,o=this._head;o;){var a=o.next;o.step(i,r)&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=i,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Bh(function i(){e._running&&(Bh(i),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Zr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Zr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Zr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var r=new jh(e,i.loop);return this.addAnimator(r),r},t}(Zt);const hT=uT;var sy,ly,qh=we.domSupported,Kh=(ly={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:sy=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:X(sy,function(n){var t=n.replace("mouse","pointer");return ly.hasOwnProperty(t)?t:n})}),cT=["mousemove","mouseup"],pT=["pointermove","pointerup"],uy=!1;function Jh(n){var t=n.pointerType;return t==="pen"||t==="touch"}function $h(n){n&&(n.zrByTouch=!0)}function hy(n,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return i}var dT=function(n,t){this.stopPropagation=st,this.stopImmediatePropagation=st,this.preventDefault=st,this.type=t.type,this.target=this.currentTarget=n.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},mn={mousedown:function(n){n=jt(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=jt(this.dom,n);var t=this.__mayPointerCapture;!t||n.zrX===t[0]&&n.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=jt(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){hy(this,(n=jt(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){uy=!0,n=jt(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){uy||(n=jt(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){$h(n=jt(this.dom,n)),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),mn.mousemove.call(this,n),mn.mousedown.call(this,n)},touchmove:function(n){$h(n=jt(this.dom,n)),this.handler.processGesture(n,"change"),mn.mousemove.call(this,n)},touchend:function(n){$h(n=jt(this.dom,n)),this.handler.processGesture(n,"end"),mn.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<300&&mn.click.call(this,n)},pointerdown:function(n){mn.mousedown.call(this,n)},pointermove:function(n){Jh(n)||mn.mousemove.call(this,n)},pointerup:function(n){mn.mouseup.call(this,n)},pointerout:function(n){Jh(n)||mn.mouseout.call(this,n)}};A(["click","dblclick","contextmenu"],function(n){mn[n]=function(t){t=jt(this.dom,t),this.trigger(n,t)}});var Qh={pointermove:function(n){Jh(n)||Qh.mousemove.call(this,n)},pointerup:function(n){Qh.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function fT(n,t){var e=t.domHandlers;we.pointerEventsSupported?A(Kh.pointer,function(i){Us(t,i,function(r){e[i].call(n,r)})}):(we.touchEventsSupported&&A(Kh.touch,function(i){Us(t,i,function(r){e[i].call(n,r),function(o){o.touching=!0,o.touchTimer!=null&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}(t)})}),A(Kh.mouse,function(i){Us(t,i,function(r){r=kh(r),t.touching||e[i].call(n,r)})}))}function gT(n,t){function e(i){Us(t,i,function(r){r=kh(r),hy(n,r.target)||(r=function(o,a){return jt(o.dom,new dT(o,a),!0)}(n,r),t.domHandlers[i].call(n,r))},{capture:!0})}we.pointerEventsSupported?A(pT,e):we.touchEventsSupported||A(cT,e)}function Us(n,t,e,i){n.mounted[t]=e,n.listenerOpts[t]=i,Lh(n.domTarget,t,e,i)}function ec(n){var t,e,i,r,o=n.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=n.domTarget,e=a,i=o[a],r=n.listenerOpts[a],t.removeEventListener(e,i,r));n.mounted={}}var cy=function(n,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=n,this.domHandlers=t};const yT=function(n){function t(e,i){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=i,r._localHandlerScope=new cy(e,mn),qh&&(r._globalHandlerScope=new cy(document,Qh)),fT(r,r._localHandlerScope),r}return V(t,n),t.prototype.dispose=function(){ec(this._localHandlerScope),qh&&ec(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,qh&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?gT(this,i):ec(i)}},t}(Zt);var py=1;we.hasGlobalWindow&&(py=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Zs=py,tc="#333",nc="#ccc",dy=Xo,vT=5e-5;function er(n){return n>vT||n<-5e-5}var tr=[],jr=[],ic=[1,0,0,1,0,0],rc=Math.abs,mT=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.prototype.needLocalTransform=function(){return er(this.rotation)||er(this.x)||er(this.y)||er(this.scaleX-1)||er(this.scaleY-1)||er(this.skewX)||er(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||[1,0,0,1,0,0],e?this.getLocalTransform(i):dy(i),t&&(e?Dn(i,t,i):Ds(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(dy(i),this.invTransform=null)},n.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(tr);var i=tr[0]<0?-1:1,r=tr[1]<0?-1:1,o=((tr[0]-i)*e+i)/tr[0]||0,a=((tr[1]-r)*e+r)/tr[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],ji(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},n.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),o=Math.PI/2+r-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Dn(jr,t.invTransform,e),e=jr);var i=this.originX,r=this.originY;(i||r)&&(ic[4]=i,ic[5]=r,Dn(jr,e,ic),jr[4]-=i,jr[5]-=r,e=jr),this.setLocalTransform(e)}},n.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},n.prototype.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&ot(i,i,r),i},n.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],r=this.transform;return r&&ot(i,i,r),i},n.prototype.getLineScale=function(){var t=this.transform;return t&&rc(t[0]-1)>1e-10&&rc(t[3]-1)>1e-10?Math.sqrt(rc(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){(function(e,i){for(var r=0;r=0?parseFloat(n)/100*t:parseFloat(n):n}function js(n,t,e){var i=t.position||"inside",r=t.distance!=null?t.distance:5,o=e.height,a=e.width,s=o/2,l=e.x,u=e.y,h="left",c="top";if(i instanceof Array)l+=Ln(i[0],e.width),u+=Ln(i[1],e.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(n=n||{}).x=l,n.y=u,n.align=h,n.verticalAlign=c,n}var ac="__zr_normal__",sc=ta.concat(["ignore"]),xT=gn(ta,function(n,t){return n[t]=!0,n},{ignore:!1}),Kr={},_T=new me(0,0,0,0),lc=function(){function n(t){this.id=yh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,o=e.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=r?this:null;var u=!1;if(o.copyTransform(e),i.position!=null){var h=_T;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),r||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Kr,i,h):js(Kr,i,h),o.x=Kr.x,o.y=Kr.y,a=Kr.align,s=Kr.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var p=void 0,d=void 0;c==="center"?(p=.5*h.width,d=.5*h.height):(p=Ln(c[0],h.width),d=Ln(c[1],h.height)),u=!0,o.originX=-o.x+p+(r?0:h.x),o.originY=-o.y+d+(r?0:h.y)}}i.rotation!=null&&(o.rotation=i.rotation);var f=i.offset;f&&(o.x+=f[0],o.y+=f[1],u||(o.originX=-f[0],o.originY=-f[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,x=void 0;g&&this.canBeInsideText()?(v=i.insideFill,m=i.insideStroke,v!=null&&v!=="auto"||(v=this.getInsideTextFill()),m!=null&&m!=="auto"||(m=this.getInsideTextStroke(v),x=!0)):(v=i.outsideFill,m=i.outsideStroke,v!=null&&v!=="auto"||(v=this.getOutsideFill()),m!=null&&m!=="auto"||(m=this.getOutsideStroke(v),x=!0)),(v=v||"#000")===y.fill&&m===y.stroke&&x===y.autoStroke&&a===y.align&&s===y.verticalAlign||(l=!0,y.fill=v,y.stroke=m,y.autoStroke=x,y.align=a,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=Vt,l&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?nc:tc},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&At(e);i||(i=[255,255,255,1]);for(var r=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(o?0:255)*(1-r);return i[3]=1,vn(i,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},G(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(ee(t))for(var i=Oe(t),r=0;r0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(ac,!1,t)},n.prototype.useState=function(t,e,i,r){var o=t===ac;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(Me(a,t)>=0)||!e&&a.length!==1){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||o){o||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,u),c&&c.useState(t,e,i,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt),l}Wi("State "+t+" not exists.")}}},n.prototype.useStates=function(t,e,i){if(t.length){var r=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l0,f);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,e,p),y&&y.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt)}else this.clearStates()},n.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},n.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},n.prototype.replaceState=function(t,e,i){var r=this.currentStates.slice(),o=Me(r,t),a=Me(r,e)>=0;o>=0?a?r.splice(o,1):r[o]=e:i&&!a&&r.push(e),this.useStates(r)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,i={},r=0;r=0&&o.splice(a,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var i=this.animators,r=i.length,o=[],a=0;a0&&e.during&&o[0].during(function(f,g){e.during(g)});for(var p=0;p0||r.force&&!a.length){var w,S=void 0,M=void 0,T=void 0;if(s)for(M={},p&&(S={}),_=0;_=0&&(r.splice(o,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var r=Me(this._children,e);return r>=0&&this.replaceAt(i,r),this},t.prototype.replaceAt=function(e,i){var r=this._children,o=r[i];if(e&&e!==this&&e.parent!==this&&e!==o){r[i]=e,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,r=this._children,o=Me(r,e);return o<0||(r.splice(o,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},n.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},n.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},n.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},n.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(n<=r)return a;if(n>=o)return s}else{if(n>=r)return a;if(n<=o)return s}else{if(n===r)return a;if(n===o)return s}return(n-r)/l*u+a}function ne(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return j(n)?(e=n,e.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):n==null?NaN:+n;var e}function Xe(n,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),by),n=(+n).toFixed(t),e?n:+n}function Qn(n){return n.sort(function(t,e){return t-e}),n}function Pn(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(n*t)/t===n)return e}return qs(n)}function qs(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,r=e>0?e:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function dc(n,t){var e=Math.log,i=Math.LN10,r=Math.floor(e(n[1]-n[0])/i),o=Math.round(e(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Sy(n,t){var e=gn(n,function(d,f){return d+(isNaN(f)?0:f)},0);if(e===0)return[];for(var i=Math.pow(10,t),r=X(n,function(d){return(isNaN(d)?0:d)/e*i*100}),o=100*i,a=X(r,function(d){return Math.floor(d)}),s=gn(a,function(d,f){return d+f},0),l=X(r,function(d,f){return d-a[f]});su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return X(a,function(d){return d/i})}function MT(n,t){var e=Math.max(Pn(n),Pn(t)),i=n+t;return e>by?i:Xe(i,e)}function fc(n){var t=2*Math.PI;return(n%t+t)%t}function oa(n){return n>-wy&&n=10&&t++,t}function gc(n,t){var e=aa(n),i=Math.pow(10,e),r=n/i;return n=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,e>=-20?+n.toFixed(e<0?-e:0):n}function yc(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i"u"||!JSON.stringify)return"?";try{return JSON.stringify(i,function(o,a){var s=e(a);return s??a})}catch{return"?"}}).join(" ")}function Dt(n){throw new Error(n)}function Dy(n,t,e){return(t-n)*e+n}var ky="series\0",Ly="\0_ec_\0";function Qe(n){return n instanceof Array?n:n==null?[]:[n]}function Qs(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var i=0,r=e.length;i=0||o&&Me(o,l)<0)){var u=i.getShallow(l,t);u!=null&&(a[n[s][0]]=u)}}return a}}var NT=$r([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),zT=function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return NT(this,t,e)},n}(),_c=new Ko(50);function BT(n){if(typeof n=="string"){var t=_c.get(n);return t&&t.image}return n}function Fy(n,t,e,i,r){if(n){if(typeof n=="string"){if(t&&t.__zrImageSrc===n||!e)return t;var o=_c.get(n),a={hostEl:e,cb:i,cbPayload:r};return o?!tl(t=o.image)&&o.pending.push(a):((t=jn.loadImage(n,Gy,Gy)).__zrImageSrc=n,_c.put(n,t.__cachedImgObj={image:t,pending:[a]})),t}return n}return t}function Gy(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;l++)s-=a;var u=Ft(e,t);return u>s&&(e="",u=0),s=n-u,r.ellipsis=e,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=n,r}function Yy(n,t){var e=t.containerWidth,i=t.font,r=t.contentWidth;if(!e)return"";var o=Ft(n,i);if(o<=e)return n;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){n+=t.ellipsis;break}var s=a===0?VT(n,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(n.length*r/o):0;o=Ft(n=n.substr(0,s),i)}return n===""&&(n=t.placeholder),n}function VT(n,t,e,i){for(var r=0,o=0,a=n.length;o0&&f+i.accumWidth>i.width&&(o=t.split(` `),c=!0),i.accumWidth=f}else{var g=Uy(t,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=t.split(` `);for(var y=0;y=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(n)||!!HT[n]}function Uy(n,t,e,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;ce:r+h+d>e)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,s="",h=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=n,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),o.length===1&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var Sc="__zr_style_"+Math.round(10*Math.random()),or={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};or[Sc]=!0;var Zy=["z","z2","invisible"],YT=["invisible"],XT=function(n){function t(i){return n.call(this,i)||this}var e;return V(t,n),t.prototype._init=function(i){for(var r=Oe(i),o=0;o1e-4)return s[0]=n-e,s[1]=t-i,l[0]=n+e,void(l[1]=t+i);if(il[0]=Cc(r)*e+n,il[1]=Ic(r)*i+t,rl[0]=Cc(o)*e+n,rl[1]=Ic(o)*i+t,u(s,il,rl),h(l,il,rl),(r%=sr)<0&&(r+=sr),(o%=sr)<0&&(o+=sr),r>o&&!a?o+=sr:rr&&(ol[0]=Cc(d)*e+n,ol[1]=Ic(d)*i+t,u(s,ol,s),h(l,ol,l))}var Ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},lr=[],ur=[],Rn=[],Si=[],En=[],Nn=[],Ac=Math.min,Dc=Math.max,hr=Math.cos,cr=Math.sin,ei=Math.abs,kc=Math.PI,Mi=2*kc,Lc=typeof Float32Array<"u",pa=[];function Pc(n){return Math.round(n/kc*1e8)/1e8%2*kc}function Oc(n,t){var e=Pc(n[0]);e<0&&(e+=Mi);var i=e-n[0],r=n[1];r+=i,!t&&r-e>=Mi?r=e+Mi:t&&e-r>=Mi?r=e-Mi:!t&&e>r?r=e+(Mi-Pc(e-r)):t&&e0&&(this._ux=ei(i/Zs/t)||0,this._uy=ei(i/Zs/e)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ee.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},n.prototype.lineTo=function(t,e){var i=ei(t-this._xi),r=ei(e-this._yi),o=i>this._ux||r>this._uy;if(this.addData(Ee.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=i*i+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(t,e,i,r,o,a){return this._drawPendingPt(),this.addData(Ee.C,t,e,i,r,o,a),this._ctx&&this._ctx.bezierCurveTo(t,e,i,r,o,a),this._xi=o,this._yi=a,this},n.prototype.quadraticCurveTo=function(t,e,i,r){return this._drawPendingPt(),this.addData(Ee.Q,t,e,i,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,r),this._xi=i,this._yi=r,this},n.prototype.arc=function(t,e,i,r,o,a){this._drawPendingPt(),pa[0]=r,pa[1]=o,Oc(pa,a),r=pa[0];var s=(o=pa[1])-r;return this.addData(Ee.A,t,e,i,i,r,s,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,r,o,a),this._xi=hr(o)*i+t,this._yi=cr(o)*i+e,this},n.prototype.arcTo=function(t,e,i,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,r,o),this},n.prototype.rect=function(t,e,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,r),this.addData(Ee.R,t,e,i,r),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ee.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},n.prototype.fill=function(t){t&&t.fill(),this.toStatic()},n.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Lc||(this.data=new Float32Array(e));for(var i=0;ih.length&&(this._expandData(),h=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},n.prototype.getBoundingRect=function(){Rn[0]=Rn[1]=En[0]=En[1]=Number.MAX_VALUE,Si[0]=Si[1]=Nn[0]=Nn[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,r=0,o=0,a=0;for(t=0;ti||ei(v)>r||p===e-1)&&(g=Math.sqrt(R*R+v*v),o=y,a=_);break;case Ee.C:var m=t[p++],x=t[p++],_=(y=t[p++],t[p++]),b=t[p++],w=t[p++];g=KM(o,a,m,x,y,_,b,w,10),o=b,a=w;break;case Ee.Q:g=JM(o,a,m=t[p++],x=t[p++],y=t[p++],_=t[p++],10),o=y,a=_;break;case Ee.A:var S=t[p++],M=t[p++],T=t[p++],I=t[p++],C=t[p++],D=t[p++],L=D+C;p+=1,f&&(s=hr(C)*T+S,l=cr(C)*I+M),g=Dc(T,I)*Ac(Mi,Math.abs(D)),o=hr(L)*T+S,a=cr(L)*I+M;break;case Ee.R:s=o=t[p++],l=a=t[p++],g=2*t[p++]+2*t[p++];break;case Ee.Z:var R=s-o;v=l-a,g=Math.sqrt(R*R+v*v),o=s,a=l}g>=0&&(u[c++]=g,h+=g)}return this._pathLen=h,h},n.prototype.rebuildPath=function(t,e){var i,r,o,a,s,l,u,h,c,p,d=this.data,f=this._ux,g=this._uy,y=this._len,v=e<1,m=0,x=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),u=this._pathSegLen,h=e*this._pathLen))e:for(var b=0;b0&&(t.lineTo(c,p),_=0),w){case Ee.M:i=o=d[b++],r=a=d[b++],t.moveTo(o,a);break;case Ee.L:s=d[b++],l=d[b++];var M=ei(s-o),T=ei(l-a);if(M>f||T>g){if(v){if(m+($=u[x++])>h){var I=(h-m)/$;t.lineTo(o*(1-I)+s*I,a*(1-I)+l*I);break e}m+=$}t.lineTo(s,l),o=s,a=l,_=0}else{var C=M*M+T*T;C>_&&(c=s,p=l,_=C)}break;case Ee.C:var D=d[b++],L=d[b++],R=d[b++],P=d[b++],E=d[b++],k=d[b++];if(v){if(m+($=u[x++])>h){Bs(o,D,R,E,I=(h-m)/$,lr),Bs(a,L,P,k,I,ur),t.bezierCurveTo(lr[1],ur[1],lr[2],ur[2],lr[3],ur[3]);break e}m+=$}t.bezierCurveTo(D,L,R,P,E,k),o=E,a=k;break;case Ee.Q:if(D=d[b++],L=d[b++],R=d[b++],P=d[b++],v){if(m+($=u[x++])>h){Vs(o,D,R,I=(h-m)/$,lr),Vs(a,L,P,I,ur),t.quadraticCurveTo(lr[1],ur[1],lr[2],ur[2]);break e}m+=$}t.quadraticCurveTo(D,L,R,P),o=R,a=P;break;case Ee.A:var O=d[b++],N=d[b++],B=d[b++],z=d[b++],U=d[b++],Z=d[b++],F=d[b++],W=!d[b++],K=B>z?B:z,se=ei(B-z)>.001,he=U+Z,ie=!1;if(v&&(m+($=u[x++])>h&&(he=U+Z*(h-m)/$,ie=!0),m+=$),se&&t.ellipse?t.ellipse(O,N,B,z,F,U,he,W):t.arc(O,N,K,U,he,W),ie)break e;S&&(i=hr(U)*B+O,r=cr(U)*z+N),o=hr(he)*B+O,a=cr(he)*z+N;break;case Ee.R:i=o=d[b],r=a=d[b+1],s=d[b++],l=d[b++];var q=d[b++],J=d[b++];if(v){if(m+($=u[x++])>h){var H=h-m;t.moveTo(s,l),t.lineTo(s+Ac(H,q),l),(H-=q)>0&&t.lineTo(s+q,l+Ac(H,J)),(H-=J)>0&&t.lineTo(s+Dc(q-H,0),l+J),(H-=q)>0&&t.lineTo(s,l+Dc(J-H,0));break e}m+=$}t.rect(s,l,q,J);break;case Ee.Z:if(v){var $;if(m+($=u[x++])>h){I=(h-m)/$,t.lineTo(o*(1-I)+i*I,a*(1-I)+r*I);break e}m+=$}t.closePath(),o=i,a=r}}},n.prototype.clone=function(){var t=new n,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},n.CMD=Ee,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),n}();const Ti=qT;function Qr(n,t,e,i,r,o,a){if(r===0)return!1;var s=r,l=0;if(a>t+s&&a>i+s||an+s&&o>e+s||ot+c&&h>i+c&&h>o+c&&h>s+c||hn+c&&u>e+c&&u>r+c&&u>a+c||ut+u&&l>i+u&&l>o+u||ln+u&&s>e+u&&s>r+u||se||h+ur&&(r+=da);var p=Math.atan2(l,s);return p<0&&(p+=da),p>=i&&p<=r||p+da>=i&&p+da<=r}function ni(n,t,e,i,r,o){if(o>t&&o>i||or?s:0}var Ii=Ti.CMD,pr=2*Math.PI,QT=1e-4,_t=[-1,-1,-1],en=[-1,-1];function eI(n,t,e,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u1&&(h=void 0,h=en[0],en[0]=en[1],en[1]=h),f=tt(t,i,o,s,en[0]),d>1&&(g=tt(t,i,o,s,en[1]))),d===2?vt&&s>i&&s>o||s=0&&M<=1&&(m[w++]=M);else{var S=_*_-4*x*b;if(_i(S))(M=-_/(2*x))>=0&&M<=1&&(m[w++]=M);else if(S>0){var M,T=xi(S),I=(-_-T)/(2*x);(M=(-_+T)/(2*x))>=0&&M<=1&&(m[w++]=M),I>=0&&I<=1&&(m[w++]=I)}}return w}(t,i,o,s,_t);if(l===0)return 0;var u=Jg(t,i,o);if(u>=0&&u<=1){for(var h=0,c=dt(t,i,o,u),p=0;pe||s<-e)return 0;var l=Math.sqrt(e*e-s*s);_t[0]=-l,_t[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=pr-1e-4){i=0,r=pr;var h=o?1:-1;return a>=_t[0]+n&&a<=_t[1]+n?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=pr,r+=pr);for(var p=0,d=0;d<2;d++){var f=_t[d];if(f+n>a){var g=Math.atan2(s,f);h=o?1:-1,g<0&&(g=pr+g),(g>=i&&g<=r||g+pr>=i&&g+pr<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function $y(n,t,e,i,r){for(var o,a,s,l,u=n.data,h=n.len(),c=0,p=0,d=0,f=0,g=0,y=0;y1&&(e||(c+=ni(p,d,f,g,i,r))),m&&(f=p=u[y],g=d=u[y+1]),v){case Ii.M:p=f=u[y++],d=g=u[y++];break;case Ii.L:if(e){if(Qr(p,d,u[y],u[y+1],t,i,r))return!0}else c+=ni(p,d,u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ii.C:if(e){if(KT(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],t,i,r))return!0}else c+=eI(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ii.Q:if(e){if(JT(p,d,u[y++],u[y++],u[y],u[y+1],t,i,r))return!0}else c+=tI(p,d,u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ii.A:var x=u[y++],_=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var T=!!(1-u[y++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):c+=ni(p,d,o,a,i,r);var I=(i-x)*w/b+x;if(e){if($T(x,_,w,S,S+M,T,t,I,r))return!0}else c+=nI(x,_,w,S,S+M,T,I,r);p=Math.cos(S+M)*b+x,d=Math.sin(S+M)*w+_;break;case Ii.R:if(f=p=u[y++],g=d=u[y++],o=f+u[y++],a=g+u[y++],e){if(Qr(f,g,o,g,t,i,r)||Qr(o,g,o,a,t,i,r)||Qr(o,a,f,a,t,i,r)||Qr(f,a,f,g,t,i,r))return!0}else c+=ni(o,g,o,a,i,r),c+=ni(f,a,f,g,i,r);break;case Ii.Z:if(e){if(Qr(p,d,f,g,t,i,r))return!0}else c+=ni(p,d,f,g,i,r);p=f,d=g}}return e||(s=d,l=g,Math.abs(s-l).5?tc:r>.2?"#eee":nc}if(i)return nc}return tc},t.prototype.getInsideTextStroke=function(i){var r=this.style.fill;if(j(r)){var o=this.__zr;if(!(!o||!o.isDarkMode())==Qo(i,0)<.4)return r}},t.prototype.buildPath=function(i,r,o){},t.prototype.pathUpdated=function(){this.__dirty&=~Yr},t.prototype.getUpdatedPathProxy=function(i){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,i),this.path},t.prototype.createPathProxy=function(){this.path=new Ti(!1)},t.prototype.hasStroke=function(){var i=this.style,r=i.stroke;return!(r==null||r==="none"||!(i.lineWidth>0))},t.prototype.hasFill=function(){var i=this.style.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var i=this._rect,r=this.style,o=!i;if(o){var a=!1;this.path||(a=!0,this.createPathProxy());var s=this.path;(a||this.__dirty&Yr)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),i=s.getBoundingRect()}if(this._rect=i,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=i.clone());if(this.__dirty||o){l.copy(i);var u=r.strokeNoScale?this.getLineScale():1,h=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;h=Math.max(h,c??4)}u>1e-10&&(l.width+=h/u,l.height+=h/u,l.x-=h/u/2,l.y-=h/u/2)}return l}return i},t.prototype.contain=function(i,r){var o=this.transformCoordToLocal(i,r),a=this.getBoundingRect(),s=this.style;if(i=o[0],r=o[1],a.contain(i,r)){var l=this.path;if(this.hasStroke()){var u=s.lineWidth,h=s.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),function(c,p,d,f){return $y(c,p,!0,d,f)}(l,u/h,i,r)))return!0}if(this.hasFill())return function(c,p,d){return $y(c,0,!1,p,d)}(l,i,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Yr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(i){return this.animate("shape",i)},t.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():i==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(i,r){i==="shape"?this.setShape(r):n.prototype.attrKV.call(this,i,r)},t.prototype.setShape=function(i,r){var o=this.shape;return o||(o=this.shape={}),typeof i=="string"?o[i]=r:G(o,i),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Yr)},t.prototype.createStyle=function(i){return Yo(Qy,i)},t.prototype._innerSaveToNormal=function(i){n.prototype._innerSaveToNormal.call(this,i);var r=this._normalState;i.shape&&!r.shape&&(r.shape=G({},this.shape))},t.prototype._applyStateObj=function(i,r,o,a,s,l){n.prototype._applyStateObj.call(this,i,r,o,a,s,l);var u,h=!(r&&a);if(r&&r.shape?s?a?u=r.shape:(u=G({},o.shape),G(u,r.shape)):(u=G({},a?this.shape:o.shape),G(u,r.shape)):h&&(u=o.shape),u)if(s){this.shape=G({},this.shape);for(var c={},p=Oe(u),d=0;d0},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!=="none"},t.prototype.createStyle=function(e){return Yo(oI,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var r=na(i,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var o=e.lineWidth;r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o}this._rect=r}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(ar);ev.prototype.type="tspan";const al=ev;var aI=le({x:0,y:0},or),sI={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nl.style)},tv=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.createStyle=function(e){return Yo(aI,e)},t.prototype._getSize=function(e){var i=this.style,r=i[e];if(r!=null)return r;var o,a=(o=i.image)&&typeof o!="string"&&o.width&&o.height?i.image:this.__image;if(!a)return 0;var s=e==="width"?"height":"width",l=i[s];return l==null?a[e]:a[e]/a[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return sI},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new me(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ar);tv.prototype.type="image";const Gt=tv;var eo=Math.round;function nv(n,t,e){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;n.x1=i,n.x2=r,n.y1=o,n.y2=a;var s=e&&e.lineWidth;return s&&(eo(2*i)===eo(2*r)&&(n.x1=n.x2=dr(i,s,!0)),eo(2*o)===eo(2*a)&&(n.y1=n.y2=dr(o,s,!0))),n}}function iv(n,t,e){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;n.x=i,n.y=r,n.width=o,n.height=a;var s=e&&e.lineWidth;return s&&(n.x=dr(i,s,!0),n.y=dr(r,s,!0),n.width=Math.max(dr(i+o,s,!1)-n.x,o===0?0:1),n.height=Math.max(dr(r+a,s,!1)-n.y,a===0?0:1)),n}}function dr(n,t,e){if(!t)return n;var i=eo(2*n);return(i+eo(t))%2==0?i/2:(i+(e?1:-1))/2}var lI=function(){this.x=0,this.y=0,this.width=0,this.height=0},uI={},rv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new lI},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=iv(uI,i,this.style);r=l.x,o=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else r=i.x,o=i.y,a=i.width,s=i.height;i.r?function(u,h){var c,p,d,f,g,y=h.x,v=h.y,m=h.width,x=h.height,_=h.r;m<0&&(y+=m,m=-m),x<0&&(v+=x,x=-x),typeof _=="number"?c=p=d=f=_:_ instanceof Array?_.length===1?c=p=d=f=_[0]:_.length===2?(c=d=_[0],p=f=_[1]):_.length===3?(c=_[0],p=f=_[1],d=_[2]):(c=_[0],p=_[1],d=_[2],f=_[3]):c=p=d=f=0,c+p>m&&(c*=m/(g=c+p),p*=m/g),d+f>m&&(d*=m/(g=d+f),f*=m/g),p+d>x&&(p*=x/(g=p+d),d*=x/g),c+f>x&&(c*=x/(g=c+f),f*=x/g),u.moveTo(y+c,v),u.lineTo(y+m-p,v),p!==0&&u.arc(y+m-p,v+p,p,-Math.PI/2,0),u.lineTo(y+m,v+x-d),d!==0&&u.arc(y+m-d,v+x-d,d,0,Math.PI/2),u.lineTo(y+f,v+x),f!==0&&u.arc(y+f,v+x-f,f,Math.PI/2,Math.PI),u.lineTo(y,v+c),c!==0&&u.arc(y+c,v+c,c,Math.PI,1.5*Math.PI)}(e,i):e.rect(r,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(De);rv.prototype.type="rect";const Ie=rv;var ov={fill:"#000"},hI={style:le({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},nl.style)},av=function(n){function t(e){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=ov,i.attr(e),i}return V(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;eie&&K){var q=Math.floor(ie/F);O=O.slice(0,q)}if(E&&U&&se!=null)for(var J=Wy(se,z,k.ellipsis,{minChar:k.truncateMinChar,placeholder:k.placeholder}),H=0;H0,C=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),D=o.calculatedLineHeight,L=0;LU&&bc(E,R.substring(U,Z),P,z),bc(E,k[2],P,z,k[1]),U=wc.lastIndex}UN){Ce>0?(H.tokens=H.tokens.slice(0,Ce),q(H,re,$),E.lines=E.lines.slice(0,J+1)):E.lines=E.lines.slice(0,J);break e}var Pe=ve.width,Ve=Pe==null||Pe==="auto";if(typeof Pe=="string"&&Pe.charAt(Pe.length-1)==="%")ce.percentWidth=Pe,F.push(ce),ce.contentWidth=Ft(ce.text,Le);else{if(Ve){var qe=ve.backgroundColor,Fe=qe&&qe.image;Fe&&tl(Fe=BT(Fe))&&(ce.width=Math.max(ce.width,Fe.width*Se/Fe.height))}var Ge=he&&O!=null?O-re:null;Ge!=null&&Ge=0&&(L=b[D]).align==="right";)this._placeToken(L,e,S,y,C,"right",m),M-=L.width,C-=L.width,D--;for(I+=(r-(I-g)-(v-C)-M)/2;T<=D;)L=b[T],this._placeToken(L,e,S,y,I+L.width/2,"center",m),I+=L.width,T++;y+=S}},t.prototype._placeToken=function(e,i,r,o,a,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var h=e.verticalAlign,c=o+r/2;h==="top"?c=o+e.height/2:h==="bottom"&&(c=o+r-e.height/2),!e.isLineHolder&&Ec(u)&&this._renderBackground(u,i,s==="right"?a-e.width:s==="center"?a-e.width/2:a,c-e.height/2,e.width,e.height);var p=!!u.backgroundColor,d=e.textPadding;d&&(a=pv(a,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(al),g=f.createStyle();f.useStyle(g);var y=this._defaultStyle,v=!1,m=0,x=cv("fill"in u?u.fill:"fill"in i?i.fill:(v=!0,y.fill)),_=hv("stroke"in u?u.stroke:"stroke"in i?i.stroke:p||l||y.autoStroke&&!v?null:(m=2,y.stroke)),b=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=a,g.y=c,b&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Hi,g.opacity=mi(u.opacity,i.opacity,1),lv(g,u),_&&(g.lineWidth=mi(u.lineWidth,i.lineWidth,m),g.lineDash=fe(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=_),x&&(g.fill=x);var w=e.contentWidth,S=e.contentHeight;f.setBoundingRect(new me(ia(g.x,w,g.textAlign),qr(g.y,S,g.textBaseline),w,S))},t.prototype._renderBackground=function(e,i,r,o,a,s){var l,u,h,c=e.backgroundColor,p=e.borderWidth,d=e.borderColor,f=c&&c.image,g=c&&!f,y=e.borderRadius,v=this;if(g||e.lineHeight||p&&d){(l=this._getOrCreateChild(Ie)).useStyle(l.createStyle()),l.style.fill=null;var m=l.shape;m.x=r,m.y=o,m.width=a,m.height=s,m.r=y,l.dirtyShape()}if(g)(h=l.style).fill=c||null,h.fillOpacity=fe(e.fillOpacity,1);else if(f){(u=this._getOrCreateChild(Gt)).onload=function(){v.dirtyStyle()};var x=u.style;x.image=c.image,x.x=r,x.y=o,x.width=a,x.height=s}p&&d&&((h=l.style).lineWidth=p,h.stroke=d,h.strokeOpacity=fe(e.strokeOpacity,1),h.lineDash=e.borderDash,h.lineDashOffset=e.borderDashOffset||0,l.strokeContainThreshold=0,l.hasFill()&&l.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var _=(l||u).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=mi(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return function(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}(e)&&(i=[e.fontStyle,e.fontWeight,dI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Xt(i)||e.textFont||e.font},t}(ar),cI={left:!0,right:1,center:1},pI={top:1,bottom:1,middle:1},sv=["fontStyle","fontWeight","fontSize","fontFamily"];function dI(n){return typeof n!="string"||n.indexOf("px")===-1&&n.indexOf("rem")===-1&&n.indexOf("em")===-1?isNaN(+n)?"12px":n+"px":n}function lv(n,t){for(var e=0;e=0,l=!1;if(i instanceof De){var u=yv(i),h=s&&u.selectFill||u.normalFill,c=s&&u.selectStroke||u.normalStroke;if(to(h)||to(c)){var p=(a=a||{}).style||{};p.fill==="inherit"?(l=!0,a=G({},a),(p=G({},p)).fill=h):!to(p.fill)&&to(h)?(l=!0,a=G({},a),(p=G({},p)).fill=Xh(h)):!to(p.stroke)&&to(c)&&(l||(a=G({},a),p=G({},p)),p.stroke=Xh(c)),a.style=p}}if(a&&a.z2==null){l||(a=G({},a));var d=i.z2EmphasisLift;a.z2=i.z2+(d??vv)}return a}(this,0,t,e);if(n==="blur")return function(i,r,o){var a=Me(i.currentStates,r)>=0,s=i.style.opacity,l=a?null:function(h,c,p,d){for(var f=h.style,g={},y=0;y0){var a={dataIndex:o,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function ro(n,t,e){Yc(n,!0),ii(n,dl),function(i,r,o){var a=ye(i);r!=null?(a.focus=r,a.blurScope=o):a.focus&&(a.focus=null)}(n,t,e)}function zn(n,t,e,i){i?function(r){Yc(r,!1)}(n):ro(n,t,e)}var kv=["emphasis","blur","select"],mI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ri(n,t,e,i){e=e||"itemStyle";for(var r=0;r1&&(a*=Uc(f),s*=Uc(f));var g=(r===o?-1:1)*Uc((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=g*-s*p/a,m=(n+e)/2+gl(c)*y-fl(c)*v,x=(t+i)/2+fl(c)*y+gl(c)*v,_=Rv([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=Rv(b,w);if(Zc(b,w)<=-1&&(S=va),Zc(b,w)>=1&&(S=0),S<0){var M=Math.round(S/va*1e6)/1e6;S=2*va+M%2*va}h.addData(u,m,x,a,s,_,S,c,o)}var wI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,bI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Nv=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.applyTransform=function(e){},t}(De);function zv(n){return n.setData!=null}function Bv(n,t){var e=function(r){var o=new Ti;if(!r)return o;var a,s=0,l=0,u=s,h=l,c=Ti.CMD,p=r.match(wI);if(!p)return o;for(var d=0;dR*R+P*P&&(M=I,T=C),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/b-1),y1:T*(r/b-1)}}function II(n,t){var e,i=xa(t.r,0),r=xa(t.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,h=t.cy,c=!!t.clockwise,p=Wv(l-s),d=p>jc&&p%jc;if(d>xn&&(p=d),i>xn)if(p>jc-xn)n.moveTo(u+i*so(s),h+i*gr(s)),n.arc(u,h,i,s,l,!c),r>xn&&(n.moveTo(u+r*so(l),h+r*gr(l)),n.arc(u,h,r,l,s,c));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,I=void 0,C=void 0,D=void 0,L=void 0,R=i*so(s),P=i*gr(s),E=r*so(l),k=r*gr(l),O=p>xn;if(O){var N=t.cornerRadius;N&&(e=function(H){var $;if(Y(H)){var re=H.length;if(!re)return H;$=re===1?[H[0],H[0],0,0]:re===2?[H[0],H[0],H[1],H[1]]:re===3?H.concat(H[2]):H}else $=[H,H,H,H];return $}(N),f=e[0],g=e[1],y=e[2],v=e[3]);var B=Wv(i-r)/2;if(m=Bn(B,y),x=Bn(B,v),_=Bn(B,f),b=Bn(B,g),M=w=xa(m,x),T=S=xa(_,b),(w>xn||S>xn)&&(I=i*so(l),C=i*gr(l),D=r*so(s),L=r*gr(s),pxn){var he=Bn(y,M),ie=Bn(v,M),q=vl(D,L,R,P,i,he,c),J=vl(I,C,E,k,i,ie,c);n.moveTo(u+q.cx+q.x0,h+q.cy+q.y0),M0&&n.arc(u+q.cx,h+q.cy,he,ft(q.y0,q.x0),ft(q.y1,q.x1),!c),n.arc(u,h,i,ft(q.cy+q.y1,q.cx+q.x1),ft(J.cy+J.y1,J.cx+J.x1),!c),ie>0&&n.arc(u+J.cx,h+J.cy,ie,ft(J.y1,J.x1),ft(J.y0,J.x0),!c))}else n.moveTo(u+R,h+P),n.arc(u,h,i,s,l,!c);else n.moveTo(u+R,h+P);r>xn&&O?T>xn?(he=Bn(f,T),q=vl(E,k,I,C,r,-(ie=Bn(g,T)),c),J=vl(R,P,D,L,r,-he,c),n.lineTo(u+q.cx+q.x0,h+q.cy+q.y0),T0&&n.arc(u+q.cx,h+q.cy,ie,ft(q.y0,q.x0),ft(q.y1,q.x1),!c),n.arc(u,h,r,ft(q.cy+q.y1,q.cx+q.x1),ft(J.cy+J.y1,J.cx+J.x1),c),he>0&&n.arc(u+J.cx,h+J.cy,he,ft(J.y1,J.x1),ft(J.y0,J.x0),!c))):(n.lineTo(u+E,h+k),n.arc(u,h,r,l,s,c)):n.lineTo(u+E,h+k)}else n.moveTo(u,h);n.closePath()}}}var CI=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Yv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new CI},t.prototype.buildPath=function(e,i){II(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(De);Yv.prototype.type="sector";const nn=Yv;var AI=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Xv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new AI},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=2*Math.PI;e.moveTo(r+i.r,o),e.arc(r,o,i.r,0,a,!1),e.moveTo(r+i.r0,o),e.arc(r,o,i.r0,0,a,!0)},t}(De);Xv.prototype.type="ring";const _a=Xv;function Uv(n,t,e){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=function(p,d,f,g){var y,v,m,x,_=[],b=[],w=[],S=[];if(g){m=[1/0,1/0],x=[-1/0,-1/0];for(var M=0,T=p.length;Mvr[1]){if(s=!1,o)return s;var h=Math.abs(vr[0]-yr[1]),c=Math.abs(yr[0]-vr[1]);Math.min(h,c)>r.len()&&(h0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:n,during:a};l?t.animateFrom(e,c):t.animateTo(e,c)}else t.stopAnimation(),!l&&t.attr(e),a&&a(1),o&&o()}function ze(n,t,e,i,r,o){Jc("update",n,t,e,i,r,o)}function et(n,t,e,i,r,o){Jc("enter",n,t,e,i,r,o)}function lo(n){if(!n.__zr)return!0;for(var t=0;tMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function am(n){return!n.isGroup}function Al(n,t,e){if(n&&t){var i,r=(i={},n.traverse(function(a){am(a)&&a.anid&&(i[a.anid]=a)}),i);t.traverse(function(a){if(am(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),ze(a,l,e,ye(a).dataIndex)}}})}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return function(l){return l.shape!=null}(a)&&(s.shape=G({},a.shape)),s}}function tp(n,t){return X(n,function(e){var i=e[0];i=Ml(i,t.x),i=Tl(i,t.x+t.width);var r=e[1];return r=Ml(r,t.y),[i,r=Tl(r,t.y+t.height)]})}function sm(n,t){var e=Ml(n.x,t.x),i=Tl(n.x+n.width,t.x+t.width),r=Ml(n.y,t.y),o=Tl(n.y+n.height,t.y+t.height);if(i>=e&&o>=r)return{x:e,y:r,width:i-e,height:o-r}}function Ma(n,t,e){var i=G({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(r.image=n.slice(8),le(r,e),new Gt(i)):Il(n.replace("path://",""),i,e,"center")}function lm(n,t,e,i,r,o,a,s){var l,u=e-n,h=i-t,c=a-r,p=s-o,d=np(c,p,u,h);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=n-r,g=t-o,y=np(f,g,u,h)/d;if(y<0||y>1)return!1;var v=np(f,g,c,p)/d;return!(v<0||v>1)}function np(n,t,e,i){return n*i-e*t}function Ta(n){var t=n.itemTooltipOption,e=n.componentModel,i=n.itemName,r=j(t)?{formatter:t}:t,o=e.mainType,a=e.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=n.formatterParamsExtra;l&&A(Oe(l),function(h){Ut(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=ye(n.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:le({content:i,formatterParams:s},r)}}function um(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function Dl(n,t){if(n)if(Y(n))for(var e=0;e-1?Pl:Ia;function up(n,t){n=n.toUpperCase(),lp[n]=new He(t),Ol[n]=t}up(sp,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),up(Pl,{time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}});var hp=1e3,cp=60*hp,Ca=60*cp,an=24*Ca,bm=365*an,Aa={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Rl="{yyyy}-{MM}-{dd}",Sm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Rl,hour:Rl+" "+Aa.hour,minute:Rl+" "+Aa.minute,second:Rl+" "+Aa.second,millisecond:Aa.none},pp=["year","month","day","hour","minute","second","millisecond"],Mm=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function bt(n,t){return"0000".substr(0,t-(n+="").length)+n}function po(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function JI(n){return n===po(n)}function Da(n,t,e,i){var r=Jt(n),o=r[dp(e)](),a=r[fo(e)]()+1,s=Math.floor((a-1)/3)+1,l=r[El(e)](),u=r["get"+(e?"UTC":"")+"Day"](),h=r[ka(e)](),c=(h-1)%12+1,p=r[Nl(e)](),d=r[zl(e)](),f=r[Bl(e)](),g=i instanceof He?i:function(b){return lp[b]}(i||wm)||lp[Ia],y=g.getModel("time"),v=y.get("month"),m=y.get("monthAbbr"),x=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,bt(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,bt(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,bt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bt(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,bt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,bt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,bt(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,bt(f,3)).replace(/{S}/g,f+"")}function Tm(n,t){var e=Jt(n),i=e[fo(t)]()+1,r=e[El(t)](),o=e[ka(t)](),a=e[Nl(t)](),s=e[zl(t)](),l=e[Bl(t)]()===0,u=l&&s===0,h=u&&a===0,c=h&&o===0,p=c&&r===1;return p&&i===1?"year":p?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function Im(n,t,e){var i=Re(n)?Jt(n):n;switch(t=t||Tm(n,e)){case"year":return i[dp(e)]();case"half-year":return i[fo(e)]()>=6?1:0;case"quarter":return Math.floor((i[fo(e)]()+1)/4);case"month":return i[fo(e)]();case"day":return i[El(e)]();case"half-day":return i[ka(e)]()/24;case"hour":return i[ka(e)]();case"minute":return i[Nl(e)]();case"second":return i[zl(e)]();case"millisecond":return i[Bl(e)]()}}function dp(n){return n?"getUTCFullYear":"getFullYear"}function fo(n){return n?"getUTCMonth":"getMonth"}function El(n){return n?"getUTCDate":"getDate"}function ka(n){return n?"getUTCHours":"getHours"}function Nl(n){return n?"getUTCMinutes":"getMinutes"}function zl(n){return n?"getUTCSeconds":"getSeconds"}function Bl(n){return n?"getUTCMilliseconds":"getMilliseconds"}function $I(n){return n?"setUTCFullYear":"setFullYear"}function Cm(n){return n?"setUTCMonth":"setMonth"}function Am(n){return n?"setUTCDate":"setDate"}function Dm(n){return n?"setUTCHours":"setHours"}function km(n){return n?"setUTCMinutes":"setMinutes"}function Lm(n){return n?"setUTCSeconds":"setSeconds"}function Pm(n){return n?"setUTCMilliseconds":"setMilliseconds"}function fp(n){if(!Ks(n))return j(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function gp(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var go=xh;function yp(n,t,e){function i(u){return u&&Xt(u)?u:"-"}function r(u){return!(u==null||isNaN(u)||!isFinite(u))}var o=t==="time",a=n instanceof Date;if(o||a){var s=o?Jt(n):n;if(!isNaN(+s))return Da(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(a)return"-"}if(t==="ordinal")return Go(n)?i(n):Re(n)&&r(n)?n+"":"-";var l=sa(n);return r(l)?fp(l):Go(n)?i(n):typeof n=="boolean"?n+"":"-"}var Om=["a","b","c","d","e","f","g"],vp=function(n,t){return"{"+n+(t??"")+"}"};function mp(n,t,e){Y(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(e.markerId||"markerX")+"|} ",style:r==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Em(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function _r(n,t){return t=t||"transparent",j(n)?n:ee(n)&&n.colorStops&&(n.colorStops[0]||{}).color||t}function Nm(n,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=n}else window.open(n,t)}var Vl=A,QI=["left","right","top","bottom","width","height"],Fl=[["width","left","right"],["height","top","bottom"]];function xp(n,t,e,i,r){var o=0,a=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;t.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=t.childAt(u+1),f=d&&d.getBoundingRect();if(n==="horizontal"){var g=p.width+(f?-f.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+e,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+e,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),n==="horizontal"?o=h+e:a=c+e)})}var wr=xp;function St(n,t,e){e=go(e||0);var i=t.width,r=t.height,o=ne(n.left,i),a=ne(n.top,r),s=ne(n.right,i),l=ne(n.bottom,r),u=ne(n.width,i),h=ne(n.height,r),c=e[2]+e[0],p=e[1]+e[3],d=n.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),d!=null&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),n.left||n.right){case"center":o=i/2-u/2-e[3];break;case"right":o=i-u-p}switch(n.top||n.bottom){case"middle":case"center":a=r/2-h/2-e[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new me(o+e[3],a+e[0],u,h);return f.margin=e,f}function zm(n,t,e,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||n).x=n.x,o.y=n.y,!s&&!l)return!1;if(u==="raw")a=n.type==="group"?new me(0,0,+t.width||0,+t.height||0):n.getBoundingRect();else if(a=n.getBoundingRect(),n.needLocalTransform()){var h=n.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=St(le({width:a.width,height:a.height},t),e,i),p=s?c.x-a.x:0,d=l?c.y-a.y:0;return u==="raw"?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===n&&n.markRedraw(),!0}function La(n){var t=n.layoutMode||n.constructor.layoutMode;return ee(t)?t:t?{type:t}:null}function yo(n,t,e){var i=e&&e.ignoreSize;!Y(i)&&(i=[i,i]);var r=a(Fl[0],0),o=a(Fl[1],1);function a(h,c){var p={},d=0,f={},g=0;if(Vl(h,function(m){f[m]=n[m]}),Vl(h,function(m){s(t,m)&&(p[m]=f[m]=t[m]),l(p,m)&&d++,l(f,m)&&g++}),i[c])return l(t,h[1])?f[h[2]]=null:l(t,h[2])&&(f[h[1]]=null),f;if(g!==2&&d){if(d>=2)return p;for(var y=0;y=0;l--)s=pe(s,r[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var r=e+"Index",o=e+"Id";return ca(this.ecModel,e,{index:this.get(r,!0),id:this.get(o,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(He);Vy(vo,He),el(vo),function(n){var t={};n.registerSubTypeDefaulter=function(e,i){var r=On(e);t[r.main]=i},n.determineSubType=function(e,i){var r=i.type;if(!r){var o=On(e).main;n.hasSubTypes(e)&&t[o]&&(r=t[o](i))}return r}}(vo),function(n,t){function e(i,r){return i[r]||(i[r]={predecessor:[],successor:[]}),i[r]}n.topologicalTravel=function(i,r,o,a){if(i.length){var s=function(y){var v={},m=[];return A(y,function(x){var _=e(v,x),b=function(w,S){var M=[];return A(w,function(T){Me(S,T)>=0&&M.push(T)}),M}(_.originalDeps=t(x),y);_.entryCount=b.length,_.entryCount===0&&m.push(x),A(b,function(w){Me(_.predecessor,w)<0&&_.predecessor.push(w);var S=e(v,w);Me(S.successor,w)<0&&S.successor.push(x)})}),{graph:v,noEntryList:m}}(r),l=s.graph,u=s.noEntryList,h={};for(A(i,function(y){h[y]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(o.call(a,c,p.originalDeps.slice()),delete h[c]),A(p.successor,d?g:f)}A(h,function(){var y;throw y=$s("Circular dependency may exists: ",h,i,r),new Error(y)})}function f(y){l[y].entryCount--,l[y].entryCount===0&&u.push(y)}function g(y){h[y]=!0,f(y)}}}(vo,function(n){var t=[];return A(vo.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return On(e).main}),n!=="dataset"&&Me(t,"dataset")<=0&&t.unshift("dataset"),t});const Te=vo;var Bm="";typeof navigator<"u"&&(Bm=navigator.platform||"");var mo="rgba(0, 0, 0, 0.2)";const tC={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Bm.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var _p=te(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sn="original",Ot="arrayRows",wn="objectRows",Gn="keyedColumns",li="typedArray",Vm="unknown",Hn="column",xo="row",lt={Must:1,Might:2,Not:3},Fm=Ne();function nC(n,t,e){var i={},r=wp(t);if(!r||!n)return i;var o,a,s=[],l=[],u=t.ecModel,h=Fm(u).datasetMap,c=r.uid+"_"+e.seriesLayoutBy;A(n=n.slice(),function(g,y){var v=ee(g)?g:n[y]={name:g};v.type==="ordinal"&&o==null&&(o=y,a=f(v)),i[v.name]=[]});var p=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function d(g,y,v){for(var m=0;md)return p[g];return p[f-1]}(i,a):e;if((h=h||e)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var Mp="\0_ec_inner",rC={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},oC={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Hl={},jm=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.init=function(e,i,r,o,a,s){o=o||{},this.option=null,this._theme=new He(o),this._locale=new He(a),this._optionManager=s},t.prototype.setOption=function(e,i,r){ue(e!=null,"option is null/undefined"),ue(e[Mp]!==1,"please use chart.getOption()");var o=Jm(i);this._optionManager.setOption(e,r,o),this._resetOption(null,o)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Jm(i))},t.prototype._resetOption=function(e,i){var r=!1,o=this._optionManager;if(!e||e==="recreate"){var a=o.mountOption(e==="recreate");A(a,function(u,h){if(!Te.hasClass(h)){var c=rC[h];c&&!Hl[c]&&(xt("Component "+h+` is used but not imported. import { `+c+` } from 'echarts/components'; echarts.use([`+c+"]);"),Hl[c]=!0)}}),this.option&&e!=="recreate"?(this.restoreData(),this._mergeOption(a,i)):Ym(this,a),r=!0}if(e!=="timeline"&&e!=="media"||this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=o.getTimelineOption(this);s&&(r=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=o.getMediaOption(this);l.length&&A(l,function(u){r=!0,this._mergeOption(u,i)},this)}return r},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var r=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=te(),u=i&&i.replaceMergeMainTypeMap;Fm(this).datasetMap=te(),A(e,function(h,c){h!=null&&(Te.hasClass(c)?c&&(s.push(c),l.set(c,!0)):r[c]=r[c]==null?oe(h):pe(r[c],h,!0))}),u&&u.each(function(h,c){Te.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),Te.topologicalTravel(s,Te.getAllClassMainTypes(),function(h){var c=function(_,b,w){var S=bp.get(b);if(!S)return w;var M=S(_);if(!M)return w;for(var T=0;T=0;l--)o[l]&&!Jr(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,e[r]=o}}),delete e[Mp],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var r=this._componentsMap.get(e);if(r){var o=r[i||0];if(o)return o;if(i==null){for(var a=0;a=c:p==="max"?h<=c:h===c})(i[u],o,l)||(r=!1)}}),r}const cC=uC;var ln=A,Ra=ee,e0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ip(n){var t=n&&n.itemStyle;if(t)for(var e=0,i=e0.length;e=0;y--){var v=n[y];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,p)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&f>=0&&m>0||l==="samesign"&&f<=0&&m<0){f=MT(f,m),g=m;break}}}return i[0]=f,i[1]=g,i})})}var _o,wo,bo,s0,l0,Yl=function(n){this.data=n.data||(n.sourceFormat===Gn?{}:[]),this.sourceFormat=n.sourceFormat||Vm,this.seriesLayoutBy=n.seriesLayoutBy||Hn,this.startIndex=n.startIndex||0,this.dimensionsDetectedCount=n.dimensionsDetectedCount,this.metaRawOption=n.metaRawOption;var t=this.dimensionsDefine=n.dimensionsDefine;if(t)for(var e=0;eg&&(g=x)}d[0]=f,d[1]=g}},r=function(){return this._data?this._data.length/this._dimSize:0};function o(a){for(var s=0;s=0&&(d=a.interpolatedValue[f])}return d!=null?d+"":""}):void 0},n.prototype.getRawValue=function(t,e){return So(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,i){},n}();function x0(n){var t,e;return ee(n)?n.type?e=n:console.warn("The return type of `formatTooltip` is not supported: "+$s(n)):t=n,{text:t,frag:e}}function za(n){return new wC(n)}var wC=function(){function n(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var e,i=this._upstream,r=t&&t.skip;if(this._dirty&&i){var o=this.context;o.data=o.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var a,s=c(this._modBy),l=this._modDataCount||0,u=c(t&&t.modBy),h=t&&t.modDataCount||0;function c(m){return!(m>=1)&&(m=1),m}s===u&&l===h||(e="reset"),(this._dirty||e==="reset")&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=h;var p=t&&t.step;if(i?(ue(i._outputDueEnd!=null),this._dueEnd=i._outputDueEnd):(ue(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,f=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(a||d=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(t,e,i,r,o){_0.reset(e,i,r,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:_0.next},this.context)},n.prototype._doReset=function(t){var e,i;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),Y(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex1&&i>0?s:a}};return o;function a(){return t=n?null:lr?-this._resultLT:0},n}(),SC=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(t){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(t){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(t,e){},n.prototype.retrieveValueFromItem=function(t,e){},n.prototype.convertValue=function(t,e){return Xl(t,e)},n}();function MC(n){var t=n.sourceFormat;return Op(t)||Dt("`getRawData` is not supported in source format "+t),n.data}function TC(n){var t=n.sourceFormat,e=n.data;if(Op(t)||Dt("`cloneRawData` is not supported in source format "+t),t===Ot){for(var i=[],r=0,o=e.length;r65535?DC:kC}function T0(n,t,e,i,r){var o=M0[e||"float"];if(r){var a=n[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;uy[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(t,e,i){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=X(a,function(m){return m.property}),h=0;hv[1]&&(v[1]=y)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&it))return a;o=a-1}}return-1},n.prototype.indicesOfNearest=function(t,e,i){var r=this._chunks[t],o=[];if(!r)return o;i==null&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();u=0&&s<0)&&(a=p,s=c,l=0),c===s&&(o[l++]=u))}return o.length=l,o},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,r=this._count;if(i===Array){t=new i(r);for(var o=0;o=h&&_<=c||isNaN(_))&&(s[l++]=f),f++;d=!0}else if(o===2){g=p[r[0]];var v=p[r[1]],m=t[r[1]][0],x=t[r[1]][1];for(y=0;y=h&&_<=c||isNaN(_))&&(b>=m&&b<=x||isNaN(b))&&(s[l++]=f),f++}d=!0}}if(!d)if(o===1)for(y=0;y=h&&_<=c||isNaN(_))&&(s[l++]=w)}else for(y=0;yt[T][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(y))}return lv[1]&&(v[1]=y)}}},n.prototype.lttbDownSample=function(t,e){var i,r,o,a=this.clone([t],!0),s=a._chunks[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Ba(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var d=1;di&&(i=r,o=I)}T>0&&Th-f&&(l=h-f,s.length=l);for(var g=0;gc[1]&&(c[1]=v),p[d++]=m}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},n.prototype.each=function(t,e){if(this._count)for(var i=t.length,r=this._chunks,o=0,a=this.count();os&&(s=u)}return r=[a,s],this._extent[t]=r,r},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],r=this._chunks,o=0;o=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function t(e,i,r,o){return Xl(e[o],this._dimensions[o])}Rp={arrayRows:t,objectRows:function(e,i,r,o){return Xl(e[i],this._dimensions[o])},keyedColumns:t,original:function(e,i,r,o){var a=e&&(e.value==null?e:e.value);return Xl(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(e,i,r,o){return e[o]}}}(),n}();const Ep=LC;var I0=function(){function n(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,r=this._getUpstreamSourceManagers(),o=!!r.length;if(Va(i)){var a=i,s=void 0,l=void 0,u=void 0;if(o){var h=r[0];h.prepareSource(),s=(u=h.getSource()).data,l=u.sourceFormat,e=[h._getVersionSign()]}else l=pt(s=a.get("data",!0))?li:sn,e=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=fe(c.seriesLayoutBy,p.seriesLayoutBy)||null,f=fe(c.sourceHeader,p.sourceHeader),g=fe(c.dimensions,p.dimensions);t=d!==p.seriesLayoutBy||!!f!=!!p.sourceHeader||g?[Dp(s,{seriesLayoutBy:d,sourceHeader:f,dimensions:g},l)]:[]}else{var y=i;if(o){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else t=[Dp(y.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}ue(t&&e),this._setLocalSource(t,e)},n.prototype._applyTransform=function(t){var e,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);ue(o!=null||r!=null),o!=null&&t.length!==1&&A0("When using `fromTransformResult`, there should be only one upstream dataset");var a,s=[],l=[];return A(t,function(u){u.prepareSource();var h=u.getSource(o||0);o==null||h||A0("Can not retrieve result by `fromTransformResult`: "+o),s.push(h),l.push(u._getVersionSign())}),r?e=function(u,h,c){var p=Qe(u),d=p.length;d||Dt("If `transform` declared, it should at least contain one transform.");for(var f=0,g=d;f1||e>0&&!n.noHeader;return A(n.blocks,function(r){var o=P0(r);o>=t&&(t=o+ +(i&&(!o||Np(r)&&!r.noHeader)))}),t}return 0}function RC(n,t,e,i){var r,o=t.noHeader,a=(r=P0(t),{html:PC[r],richText:OC[r]}),s=[],l=t.blocks||[];ue(!l||Y(l)),l=l||[];var u=n.orderMode;if(t.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Ut(h,u)){var c=new bC(h[u],null);l.sort(function(g,y){return c.evaluate(g.sortParam,y.sortParam)})}else u==="seriesDesc"&&l.reverse()}A(l,function(g,y){var v=t.valueFormatter,m=L0(g)(v?G(G({},n),{valueFormatter:v}):n,g,y>0?a.html:0,i);m!=null&&s.push(m)});var p=n.renderMode==="richText"?s.join(a.richText):zp(s.join(""),o?e:a.html);if(o)return p;var d=yp(t.header,"ordinal",n.useUTC),f=k0(i,n.renderMode).nameStyle;return n.renderMode==="richText"?R0(n,d,f)+a.richText+p:zp('
'+Bt(d)+"
"+p,e)}function EC(n,t,e,i){var r=n.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=n.useUTC,h=t.valueFormatter||n.valueFormatter||function(_){return X(_=Y(_)?_:[_],function(b,w){return yp(b,Y(d)?d[w]:d,u)})};if(!o||!a){var c=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),p=o?"":yp(l,"ordinal",u),d=t.valueType,f=a?[]:h(t.value,t.dataIndex),g=!s||!o,y=!s&&o,v=k0(i,r),m=v.nameStyle,x=v.valueStyle;return r==="richText"?(s?"":c)+(o?"":R0(n,p,m))+(a?"":function(_,b,w,S,M){var T=[M],I=S?10:20;return w&&T.push({padding:[0,0,0,I],align:"right"}),_.markupStyleCreator.wrapRichTextStyle(Y(b)?b.join(" "):b,T)}(n,f,g,y,x)):zp((s?"":c)+(o?"":function(_,b,w){return''+Bt(_)+""}(p,!s,m))+(a?"":function(_,b,w,S){var M=w?"10px":"20px",T=b?"float:right;margin-left:"+M:"";return _=Y(_)?_:[_],''+X(_,function(I){return Bt(I)}).join("  ")+""}(f,g,y,x)),e)}}function O0(n,t,e,i,r,o){if(n)return L0(n)({useUTC:r,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:n.valueFormatter},n,0,o)}function zp(n,t){return'
'+n+'
'}function R0(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function E0(n,t){return _r(n.getData().getItemVisual(t,"style")[n.visualDrawType])}function N0(n,t){var e=n.get("padding");return e??(t==="richText"?[8,10]:10)}var Bp=function(){function n(){this.richTextStyles={},this._nextStyleNameId=Ty()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,i){var r=i==="richText"?this._generateStyleName():null,o=Rm({color:e,type:t,renderMode:i,markerId:r});return j(o)?o:(ue(r),this.richTextStyles[r]=o.style,o.content)},n.prototype.wrapRichTextStyle=function(t,e){var i={};Y(e)?A(e,function(o){return G(i,o)}):G(i,e);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+t+"}"},n}();function NC(n){var t,e,i,r,o=n.series,a=n.dataIndex,s=n.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=Y(c),d=E0(o,a);if(h>1||p&&!h){var f=function(_,b,w,S,M){var T=b.getData(),I=gn(_,function(P,E,k){var O=T.getDimensionInfo(k);return P||O&&O.tooltip!==!1&&O.displayName!=null},!1),C=[],D=[],L=[];function R(P,E){var k=T.getDimensionInfo(E);k&&k.otherDims.tooltip!==!1&&(I?L.push(Wn("nameValue",{markerType:"subItem",markerColor:M,name:k.displayName,value:P,valueType:k.type})):(C.push(P),D.push(k.type)))}return S.length?A(S,function(P){R(So(T,w,P),P)}):A(_,R),{inlineValues:C,inlineValueTypes:D,blocks:L}}(c,o,a,u,d);t=f.inlineValues,e=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=t=So(l,a,u[0]),e=g.type}else r=t=p?c[0]:c;var y=vc(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return Wn("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[Wn("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Xt(x),value:t,valueType:e,dataIndex:a})].concat(i||[])})}var Di=Ne();function Zl(n,t){return n.getName(t)||n.getId(t)}var jl=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return V(t,n),t.prototype.init=function(e,i,r){this.seriesIndex=this.componentIndex,this.dataTask=za({count:zC,reset:BC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r),(Di(this).sourceManager=new I0(this)).prepareSource();var o=this.getInitialData(e,r);B0(o,this),this.dataTask.context.data=o,ue(o,"getInitialData returned invalid data."),Di(this).dataBeforeProcessed=o,z0(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var r=La(this),o=r?Pa(e):{},a=this.subType;Te.hasClass(a)&&(a+="Series"),pe(e,i.getTheme().get(this.subType)),pe(e,this.getDefaultOption()),Qs(e,"label",["show"]),this.fillDataTextStyle(e.data),r&&yo(e,o,r)},t.prototype.mergeOption=function(e,i){e=pe(this.option,e,!0),this.fillDataTextStyle(e.data);var r=La(this);r&&yo(this.option,e,r);var o=Di(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(e,i);B0(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Di(this).dataBeforeProcessed=a,z0(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!pt(e))for(var i=["show"],r=0;rthis.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,r){var o=this.ecModel,a=Sp.prototype.getColorFromPalette.call(this,e,i,r);return a||(a=o.getColorFromPalette(e,i,r)),a},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var r=this.option.selectedMap;if(r){var o=this.option.selectedMode,a=this.getData(i);if(o==="series"||r==="all")return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s=0&&r.push(a)}return r},t.prototype.isSelected=function(e,i){var r=this.option.selectedMap;if(!r)return!1;var o=this.getData(i);return(r==="all"||r[Zl(o,e)])&&!o.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(e===!0||e&&e.enabled)},t.prototype._innerSelect=function(e,i){var r,o,a=this.option,s=a.selectedMode,l=i.length;if(s&&l){if(s==="series")a.selectedMap="all";else if(s==="multiple"){ee(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,h=0;h0&&this._innerSelect(e,i)}},t.registerClass=function(e){return Te.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Te);function z0(n){var t=n.name;vc(n)||(n.name=function(e){var i=e.getRawData(),r=i.mapDimensionsAll("seriesName"),o=[];return A(r,function(a){var s=i.getDimensionInfo(a);s.displayName&&o.push(s.displayName)}),o.join(" ")}(n)||t)}function zC(n){return n.model.getRawData().count()}function BC(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),VC}function VC(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function B0(n,t){A(_h(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(e){n.wrapMethod(e,xe(FC,t))})}function FC(n,t){var e=Vp(n);return e&&e.setOutputEnd((t||this).count()),t}function Vp(n){var t=(n.ecModel||{}).scheduler,e=t&&t.getPipeline(n.uid);if(e){var i=e.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(n.uid))}return i}}ct(jl,_C),ct(jl,Sp),Vy(jl,Te);const Mt=jl;var Fp=function(){function n(){this.group=new ge,this.uid=co("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){},n.prototype.updateLayout=function(t,e,i,r){},n.prototype.updateVisual=function(t,e,i,r){},n.prototype.toggleBlurSeries=function(t,e,i){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n}();xc(Fp),el(Fp);const je=Fp;function Gp(){var n=Ne();return function(t){var e=n(t),i=t.pipelineContext,r=!!e.large,o=!!e.progressiveRender,a=e.large=!(!i||!i.large),s=e.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var V0=Ne(),GC=Gp(),Hp=function(){function n(){this.group=new ge,this.uid=co("viewChart"),this.renderTask=za({plan:HC,reset:WC}),this.renderTask.context={view:this}}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){throw new Error("render method must been implemented")},n.prototype.highlight=function(t,e,i,r){var o=t.getData(r&&r.dataType);o?G0(o,r,"emphasis"):xt("Unknown dataType "+r.dataType)},n.prototype.downplay=function(t,e,i,r){var o=t.getData(r&&r.dataType);o?G0(o,r,"normal"):xt("Unknown dataType "+r.dataType)},n.prototype.remove=function(t,e){this.group.removeAll()},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateLayout=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateVisual=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.eachRendered=function(t){Dl(this.group,t)},n.markUpdateMethod=function(t,e){V0(t).updateMethod=e},n.protoInitialize=void(n.prototype.type="chart"),n}();function F0(n,t,e){n&&oo(n)&&(t==="emphasis"?no:io)(n,e)}function G0(n,t,e){var i=ir(n,t),r=t&&t.highlightKey!=null?function(o){var a=gv[o];return a==null&&fv<=32&&(a=gv[o]=fv++),a}(t.highlightKey):null;i!=null?A(Qe(i),function(o){F0(n.getItemGraphicEl(o),e,r)}):n.eachItemGraphicEl(function(o){F0(o,e,r)})}function HC(n){return GC(n.model)}function WC(n){var t=n.model,e=n.ecModel,i=n.api,r=n.payload,o=t.pipelineContext.progressiveRender,a=n.view,s=r&&V0(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,e,i,r),YC[l]}xc(Hp,["dispose"]),el(Hp);var YC={incrementalPrepareRender:{progress:function(n,t){t.view.incrementalRender(n,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(n,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const at=Hp;var ql="\0__throttleOriginMethod",H0="\0__throttleRate",W0="\0__throttleType";function Kl(n,t,e){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,n.apply(o,a||[])}t=t||0;var p=function(){for(var d=[],f=0;f=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(d){s=d},p}function Fa(n,t,e,i){var r=n[t];if(r){var o=r[ql]||r,a=r[W0];if(r[H0]!==e||a!==i){if(e==null||!i)return n[t]=o;(r=n[t]=Kl(o,e,i==="debounce"))[ql]=o,r[W0]=i,r[H0]=e}return r}}function Ga(n,t){var e=n[t];e&&e[ql]&&(e.clear&&e.clear(),n[t]=e[ql])}var Y0=Ne(),X0={itemStyle:$r(_m,!0),lineStyle:$r(xm,!0)},XC={lineStyle:"stroke",itemStyle:"fill"};function U0(n,t){var e=n.visualStyleMapper||X0[t];return e||(console.warn("Unknown style type '"+t+"'."),X0.itemStyle)}function Z0(n,t){var e=n.visualDrawType||XC[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var UC={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=n.getModel(i),o=U0(n,i)(r),a=r.getShallow("decal");a&&(e.setVisual("decal",a),a.dirty=!0);var s=Z0(n,i),l=o[s],u=ae(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[s]||u||h){var c=n.getColorFromPalette(n.name,null,t.getSeriesCount());o[s]||(o[s]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ae(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||ae(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",s),!t.isSeriesFiltered(n)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(p,d){var f=n.getDataParams(d),g=G({},o);g[s]=u(f),p.setItemVisual(d,"style",g)}}}},Ha=new He,ZC={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.ignoreStyleOnData&&!t.isSeriesFiltered(n)){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=U0(n,i),o=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Ha.option=l[i];var u=r(Ha);G(a.ensureUniqueItemVisual(s,"style"),u),Ha.option.decal&&(a.setItemVisual(s,"decal",Ha.option.decal),Ha.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},jC={performRawSeries:!0,overallReset:function(n){var t=te();n.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+i,o=t.get(r);o||(o={},t.set(r,o)),Y0(e).scope=o}}),n.eachSeries(function(e){if(!e.isColorBySeries()&&!n.isSeriesFiltered(e)){var i=e.getRawData(),r={},o=e.getData(),a=Y0(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Z0(e,s);o.each(function(u){var h=o.getRawIndex(u);r[h]=u}),i.each(function(u){var h=r[u];if(o.getItemVisual(h,"colorFromPalette")){var c=o.ensureUniqueItemVisual(h,"style"),p=i.getName(u)||u+"",d=i.count();c[l]=e.getColorFromPalette(p,a,d)}})}})}},Jl=Math.PI,qC=function(){function n(t,e,i,r){this._stageTaskMap=te(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),r=i.context,o=!e&&i.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,a=r&&r.modDataCount;return{step:o,modBy:a!=null?Math.ceil(a/o):null,modDataCount:a}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),r=t.getData().count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},n.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=te();t.eachSeries(function(r){var o=r.getProgressive(),a=r.uid;i.set(a,{id:a,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:o&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),e._pipe(r,r.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;A(this._allHandlers,function(r){var o=t.get(r.uid)||t.set(r.uid,{});ue(!(r.reset&&r.overallReset),'"reset" and "overallReset" must not be both specified.'),r.reset&&this._createSeriesStageTask(r,o,e,i),r.overallReset&&this._createOverallStageTask(r,o,e,i)},this)},n.prototype.prepareView=function(t,e,i,r){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=i,a.api=r,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},n.prototype._performStageTasks=function(t,e,i,r){r=r||{};var o=!1,a=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}A(t,function(l,u){if(!r.visualType||r.visualType===l.visualType){var h=a._stageTaskMap.get(l.uid),c=h.seriesTaskMap,p=h.overallTask;if(p){var d,f=p.agentStubMap;f.each(function(y){s(r,y)&&(y.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,i);var g=a.getPerformArgs(p,r.block);f.each(function(y){y.perform(g)}),p.perform(g)&&(o=!0)}else c&&c.each(function(y,v){s(r,y)&&y.dirty();var m=a.getPerformArgs(y,r.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(y.context.model),a.updatePayload(y,i),y.perform(m)&&(o=!0)})}}),this.unfinished=o||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},n.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,i,r){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=te(),l=t.seriesType,u=t.getTargetSeries;function h(c){var p=c.uid,d=s.set(p,a&&a.get(p)||za({plan:e2,reset:t2,count:i2}));d.context={model:c,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(c,d)}t.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,r).each(h)},n.prototype._createOverallStageTask=function(t,e,i,r){var o=this,a=e.overallTask=e.overallTask||za({reset:KC});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=te(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1;function d(f){var g=f.uid,y=l.set(g,s&&s.get(g)||(p=!0,za({reset:JC,onDirty:QC})));y.context={model:f,overallProgress:c},y.agent=a,y.__block=c,o._pipe(f,y)}ue(!t.createOnAllSeries,'"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),u?i.eachRawSeriesByType(u,d):h?h(i,r).each(d):(c=!1,A(i.getSeries(),d)),p&&a.dirty()},n.prototype._pipe=function(t,e){var i=t.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},n.wrapStageHandler=function(t,e){return ae(t)&&(t={overallReset:t,seriesType:r2(t)}),t.uid=co("stageHandler"),e&&(t.visualType=e),t},n}();function KC(n){n.overallReset(n.ecModel,n.api,n.payload)}function JC(n){return n.overallProgress&&$C}function $C(){this.agent.dirty(),this.getDownstream().dirty()}function QC(){this.agent&&this.agent.dirty()}function e2(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function t2(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=Qe(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?X(t,function(e,i){return j0(i)}):n2}var n2=j0(0);function j0(n){return function(t,e){var i=e.data,r=e.resetDefines[n];if(r&&r.dataEach)for(var o=t.start;o0&&d===u.length-p.length){var f=u.slice(0,d);f!=="data"&&(e.mainType=f,e[p.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(i[u]=l,h=!0),h||(r[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:r}},n.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,o,"name")&&h(u,o,"dataIndex")&&h(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function h(c,p,d,f){return c[d]==null||p[f||d]===c[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),Wp=["symbol","symbolSize","symbolRotate","symbolOffset"],nx=Wp.concat(["symbolKeepAspect"]),l2={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&Sr(f)?f:.5,a.createRadialGradient(p,d,0,p,d,f)}(n,t,e):function(a,s,l){var u=s.x==null?0:s.x,h=s.x2==null?1:s.x2,c=s.y==null?0:s.y,p=s.y2==null?0:s.y2;return s.global||(u=u*l.width+l.x,h=h*l.width+l.x,c=c*l.height+l.y,p=p*l.height+l.y),u=Sr(u)?u:0,h=Sr(h)?h:1,c=Sr(c)?c:0,p=Sr(p)?p:0,a.createLinearGradient(u,c,h,p)}(n,t,e),r=t.colorStops,o=0;o0&&(t=i.lineDash,e=i.lineWidth,t&&t!=="solid"&&e>0?t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Re(t)?[t]:Y(t)?t:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(r=X(r,function(s){return s/a}),o/=a)}return[r,o]}var w2=new Ti(!0);function iu(n){var t=n.stroke;return!(t==null||t==="none"||!(n.lineWidth>0))}function lx(n){return typeof n=="string"&&n!=="none"}function ru(n){var t=n.fill;return t!=null&&t!=="none"}function ux(n,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function hx(n,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function Up(n,t,e){var i=Fy(t.image,t.__image,e);if(tl(i)){var r=n.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*bg),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}var cx=["shadowBlur","shadowOffsetX","shadowOffsetY"],px=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dx(n,t,e,i,r){var o=!1;if(!i&&t===(e=e||{}))return!1;if(i||t.opacity!==e.opacity){Rt(n,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(a)?or.opacity:a}(i||t.blend!==e.blend)&&(o||(Rt(n,r),o=!0),n.globalCompositeOperation=t.blend||or.blend);for(var s=0;sa.maxTileWidth&&R("maxTileWidth"),L>a.maxTileHeight&&R("maxTileHeight"),{width:Math.max(1,Math.min(T,a.maxTileWidth)),height:Math.max(1,Math.min(L,a.maxTileHeight))}}(),M;b&&(b.width=S.width*e,b.height=S.height*e,g=b.getContext("2d")),function(){g&&(g.clearRect(0,0,b.width,b.height),a.backgroundColor&&(g.fillStyle=a.backgroundColor,g.fillRect(0,0,b.width,b.height)));for(var T=0,I=0;I0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,r){if(this[yt])xt("`setOption` should not be called during main process.");else if(this._disposed)Ht(this.id);else{var o,a,s;if(ee(i)&&(r=i.lazyUpdate,o=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[yt]=!0,!this._model||i){var l=new cC(this._api),u=this._theme,h=this._model=new $m;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:a},od);var c={seriesTransition:s,optionChanged:!0};if(r)this[Et]={silent:o,updateParams:c},this[yt]=!1,this.getZr().wakeUp();else{try{To(this),ki.update.call(this,null,c)}catch(p){throw this[Et]=null,this[yt]=!1,p}this._ssr||this._zr.flush(),this[Et]=null,this[yt]=!1,Xa.call(this,o),Ua.call(this,o)}}},t.prototype.setTheme=function(){$t("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||we.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return $e("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;if(i.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;if(i.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(we.svgSupported){var e=this._zr;return A(e.storage.getDisplayList(),function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var i=(e=e||{}).excludeComponents,r=this._model,o=[],a=this;A(i,function(l){r.eachComponent({mainType:l},function(u){var h=a._componentsMap[u.__viewId];h.group.ignore||(o.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(o,function(l){l.group.ignore=!1}),s}Ht(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var i=e.type==="svg",r=this.group,o=Math.min,a=Math.max,s=1/0;if(du[r]){var l=s,u=s,h=-1/0,c=-1/0,p=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();A(Tr,function(x,_){if(x.group===r){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(oe(e)),w=x.getDom().getBoundingClientRect();l=o(w.left,l),u=o(w.top,u),h=a(w.right,h),c=a(w.bottom,c),p.push({dom:b,left:w.left,top:w.top})}});var f=(h*=d)-(l*=d),g=(c*=d)-(u*=d),y=jn.createCanvas(),v=pc(y,{renderer:i?"svg":"canvas"});if(v.resize({width:f,height:g}),i){var m="";return A(p,function(x){var _=x.left-l,b=x.top-u;m+=''+x.dom+""}),v.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new Ie({shape:{x:0,y:0,width:f,height:g},style:{fill:e.connectedBackgroundColor}})),A(p,function(x){var _=new Gt({style:{x:x.left*d-l,y:x.top*d-u,image:x.dom}});v.add(_)}),v.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Ht(this.id)},t.prototype.convertToPixel=function(e,i){return Qp(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Qp(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){var r;if(!this._disposed)return A(ha(this._model,e),function(o,a){a.indexOf("Models")>=0&&A(o,function(s){var l=s.coordinateSystem;if(l&&l.containPoint)r=r||!!l.containPoint(i);else if(a==="seriesModels"){var u=this._chartsMap[s.__viewId];u&&u.containPoint?r=r||u.containPoint(i,s):Je(a+": "+(u?"The found component do not support containPoint.":"No view mapping to the found component."))}else Je(a+": containPoint is not supported")},this)},this),!!r;Ht(this.id)},t.prototype.getVisual=function(e,i){var r=ha(this._model,e,{defaultMainType:"series"}),o=r.seriesModel;o||Je("There is no specified series model");var a=o.getData(),s=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return s!=null?ix(a,s,i):rx(a,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,i,r,o=this;A(b2,function(a){var s=function(l){var u,h=o.getModel(),c=l.target,p=a==="globalout";if(p?u={}:c&&br(c,function(v){var m=ye(v);if(m&&m.dataIndex!=null){var x=m.dataModel||h.getSeriesByIndex(m.seriesIndex);return u=x&&x.getDataParams(m.dataIndex,m.dataType,c)||{},!0}if(m.eventData)return u=G({},m.eventData),!0},!0),u){var d=u.componentType,f=u.componentIndex;d!=="markLine"&&d!=="markPoint"&&d!=="markArea"||(d="series",f=u.seriesIndex);var g=d&&f!=null&&h.getComponent(d,f),y=g&&o[g.mainType==="series"?"_chartsMap":"_componentsMap"][g.__viewId];p||g&&y||Je("model or view can not be found by params"),u.event=l,u.type=a,o._$eventProcessor.eventInfo={targetEl:c,packedEvent:u,model:g,view:y},o.trigger(a,u)}};s.zrEventfulCallAtLast=!0,o._zr.on(a,s,o)}),A(Za,function(a,s){o._messageCenter.on(s,function(l){this.trigger(s,l)},o)}),A(["selectchanged"],function(a){o._messageCenter.on(a,function(s){this.trigger(a,s)},o)}),e=this._messageCenter,i=this,r=this._api,e.on("selectchanged",function(a){var s=r.getModel();a.isFromClick?(Mo("map","selectchanged",i,s,a),Mo("pie","selectchanged",i,s,a)):a.fromAction==="select"?(Mo("map","selected",i,s,a),Mo("pie","selected",i,s,a)):a.fromAction==="unselect"&&(Mo("map","unselected",i,s,a),Mo("pie","unselected",i,s,a))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Ht(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Ht(this.id);else{this._disposed=!0,this.getDom()&&Ny(this.getDom(),sd,"");var e=this,i=e._api,r=e._model;A(e._componentsViews,function(o){o.dispose(r,i)}),A(e._chartsViews,function(o){o.dispose(r,i)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Tr[e.id]}},t.prototype.resize=function(e){if(this[yt])xt("`resize` should not be called during main process.");else if(this._disposed)Ht(this.id);else{this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),i){var r=i.resetOption("media"),o=e&&e.silent;this[Et]&&(o==null&&(o=this[Et].silent),r=!0,this[Et]=null),this[yt]=!0;try{r&&To(this),ki.update.call(this,{type:"resize",animation:G({duration:0},e&&e.animation)})}catch(a){throw this[yt]=!1,a}this[yt]=!1,Xa.call(this,o),Ua.call(this,o)}}},t.prototype.showLoading=function(e,i){if(this._disposed)Ht(this.id);else if(ee(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),ad[e]){var r=ad[e](this._api,i),o=this._zr;this._loadingFX=r,o.add(r)}else Je("Loading effects "+e+" not exists.")},t.prototype.hideLoading=function(){this._disposed?Ht(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var i=G({},e);return i.type=Za[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed)Ht(this.id);else if(ee(i)||(i={silent:!!i}),cu[e.type]&&this._model)if(this[yt])this._pendingActions.push(e);else{var r=i.silent;td.call(this,e,r);var o=i.flush;o?this._zr.flush():o!==!1&&we.browser.weChat&&this._throttledZrFlush(),Xa.call(this,r),Ua.call(this,r)}},t.prototype.updateLabelLayout=function(){bn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Ht(this.id);else{var i=e.seriesIndex,r=this.getModel().getSeriesByIndex(i);ue(e.data&&r),r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(l){l.clearColorPalette(),l.eachSeries(function(u){u.clearColorPalette()})}function i(l){for(var u=[],h=l.currentStates,c=0;c0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;u.eachRendered(function(f){if(f.states&&f.states.emphasis){if(lo(f))return;if(f instanceof De&&function(m){var x=yv(m);x.normalFill=m.style.fill,x.normalStroke=m.style.stroke;var _=m.states.select||{};x.selectFill=_.style&&_.style.fill||null,x.selectStroke=_.style&&_.style.stroke||null}(f),f.__dirty){var g=f.prevStates;g&&f.useStates(g)}if(c){f.stateTransition=d;var y=f.getTextContent(),v=f.getTextGuideLine();y&&(y.stateTransition=d),v&&(v.stateTransition=d)}f.__dirty&&i(f)}})}To=function(l){var u=l._scheduler;u.restorePipelines(l._model),u.prepareStageTasks(),$p(l,!0),$p(l,!1),u.plan()},$p=function(l,u){for(var h=l._model,c=l._scheduler,p=u?l._componentsViews:l._chartsViews,d=u?l._componentsMap:l._chartsMap,f=l._zr,g=l._api,y=0;yv.get("hoverLayerThreshold")&&!we.node&&!we.worker&&v.eachSeries(function(b){if(!b.preventUsingHoverLayer){var w=y._chartsMap[b.__viewId];w.__alive&&w.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}(l,u),bn.trigger("series:afterupdate",u,h,p)},hn=function(l){l[Kp]=!0,l.getZr().wakeUp()},zx=function(l){l[Kp]&&(l.getZr().storage.traverse(function(u){lo(u)||i(u)}),l[Kp]=!1)},Ex=function(l){return new(function(u){function h(){return u!==null&&u.apply(this,arguments)||this}return V(h,u),h.prototype.getCoordinateSystems=function(){return l._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(c){for(;c;){var p=c.__ecComponentInfo;if(p!=null)return l._model.getComponent(p.mainType,p.index);c=c.parent}},h.prototype.enterEmphasis=function(c,p){no(c,p),hn(l)},h.prototype.leaveEmphasis=function(c,p){io(c,p),hn(l)},h.prototype.enterBlur=function(c){(function(p){ii(p,Vc)})(c),hn(l)},h.prototype.leaveBlur=function(c){Mv(c),hn(l)},h.prototype.enterSelect=function(c){Tv(c),hn(l)},h.prototype.leaveSelect=function(c){Iv(c),hn(l)},h.prototype.getModel=function(){return l.getModel()},h.prototype.getViewOfComponentModel=function(c){return l.getViewOfComponentModel(c)},h.prototype.getViewOfSeriesModel=function(c){return l.getViewOfSeriesModel(c)},h}(Qm))(l)},Nx=function(l){function u(h,c){for(var p=0;p=0)){Xx.push(e);var o=J0.wrapStageHandler(e,r);o.__prio=t,o.__raw=e,n.push(o)}}function dd(n,t){ad[n]=t}function Ux(n,t,e){var i=Ix("registerMap");i&&i(n,t,e)}var Zx=function(n){var t=(n=oe(n)).type;t||Dt("Must have a `type` when `registerTransform`.");var e=t.split(":");e.length!==2&&Dt('Name must include namespace like "ns:regression".');var i=!1;e[0]==="echarts"&&(t=e[1],i=!0),n.__isBuiltIn=i,w0.set(t,n)};Li(qp,UC),Li(su,ZC),Li(su,jC),Li(qp,l2),Li(su,u2),Li(7e3,function(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var a=i.getItemVisual(o,"decal");a&&(i.ensureUniqueItemVisual(o,"style").decal=ou(a,t))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=ou(r,t))}})}),fu(a0),hd(900,function(n){var t=te();n.eachSeries(function(e){var i=e.get("stack");if(i){var r=t.get(i)||t.set(i,[]),o=e.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(gC)}),dd("default",function(n,t){le(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ge,i=new Ie({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var r,o=new ke({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ie({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(a),t.showSpinner&&((r=new xl({shape:{startAngle:-Jl/2,endAngle:-Jl/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Jl/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Jl/2}).delay(300).start("circularInOut"),e.add(r)),e.resize=function(){var s=o.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(n.getWidth()-2*l-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),h=n.getHeight()/2;t.showSpinner&&r.setShape({cx:u,cy:h}),a.setShape({x:u-l,y:h-l,width:2*l,height:2*l}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}),Sn({type:fr,event:fr,update:fr},st),Sn({type:ul,event:ul,update:ul},st),Sn({type:ga,event:ga,update:ga},st),Sn({type:hl,event:hl,update:hl},st),Sn({type:ya,event:ya,update:ya},st),ud("light",o2),ud("dark",a2);function ja(n){return n==null?0:n.length||1}function jx(n){return n}var I2=function(){function n(t,e,i,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=i||jx,this._newKeyGetter=r||jx,this.context=o,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(t){return this._add=t,this},n.prototype.update=function(t){return this._update=t,this},n.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},n.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},n.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},n.prototype.remove=function(t){return this._remove=t,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},r=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1){var h=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(h,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,i)},n.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},r={},o=[],a=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s1&&p===1)this._updateManyToOne&&this._updateManyToOne(h,u),r[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(h,u),r[l]=null;else if(c===1&&p===1)this._update&&this._update(h,u),r[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(h,u),r[l]=null;else if(c>1)for(var d=0;d1)for(var s=0;s30}var e1,vu,qa,Io,yd,mu,vd,Ka=ee,Pi=X,k2=typeof Int32Array>"u"?Array:Int32Array,L2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],P2=["_approximateExtent"],O2=function(){function n(t,e){var i;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Kx(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,i=t),i=i||["x","y"];for(var o={},a=[],s={},l=!1,u={},h=0;h=0),r&&(p.storeDimIndex=h)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=te();A(a,function(y){g.set(o[y].storeDimIndex,y)})}}return n.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},n.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},n.prototype._recognizeDimIndex=function(t){if(Re(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},n.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(e==null)throw new Error("Unknown dimension "+t);return e},n.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},n.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var r=i.encode[t];return r?r[e]:null},n.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(t,e,i){var r,o=this;if(t instanceof Ep&&(r=t),!r){var a=this.dimensions,s=Ap(t)||mt(t)?new d0(t,a.length):t;r=new Ep;var l=Pi(a,function(u){return{type:o._dimInfos[u].type,property:u}});r.initData(s,l,i)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(u,h){var c={},p=c.encode={},d=te(),f=[],g=[],y={};A(u.dimensions,function(b){var w,S=u.getDimensionInfo(b),M=S.coordDim;if(M){ue(_p.get(M)==null);var T=S.coordDimIndex;gd(p,M)[T]=b,S.isExtraCoord||(d.set(M,1),(w=S.type)!=="ordinal"&&w!=="time"&&(f[0]=b),gd(y,M)[T]=u.getDimensionIndex(S.name)),S.defaultTooltip&&g.push(b)}_p.each(function(I,C){var D=gd(p,C),L=S.otherDims[C];L!=null&&L!==!1&&(D[L]=S.name)})});var v=[],m={};d.each(function(b,w){var S=p[w];m[w]=S[0],v=v.concat(S)}),c.dataDimsOnCoord=v,c.dataDimIndicesOnCoord=X(v,function(b){return u.getDimensionInfo(b).storeDimIndex}),c.encodeFirstDimNotExtra=m;var x=p.label;x&&x.length&&(f=x.slice());var _=p.tooltip;return _&&_.length?g=_.slice():g.length||(g=f.slice()),p.defaultedLabel=f,p.defaultedTooltip=g,c.userOutput=new C2(y,h),c}(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},n.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),r=i.start,o=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=r;s=e)){var i=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(i.getSource().sourceFormat===sn&&!i.pure)for(var a=[],s=t;s0},n.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,r=i[t];r||(r=i[t]={});var o=r[e];return o==null&&(Y(o=this.getVisual(e))?o=o.slice():Ka(o)&&(o=G({},o)),r[e]=o),o},n.prototype.setItemVisual=function(t,e,i){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Ka(e)?G(r,e):r[e]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){Ka(t)?G(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?G(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Nc(i,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(i,r){i&&t&&t.call(e,i,r)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:Pi(this.dimensions,this._getDimInfo,this),this.hostModel)),yd(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var i=this[t];ae(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=i.apply(this,arguments);return e.apply(this,[r].concat(Ms(arguments)))})},n.internalField=(e1=function(t){var e=t._invertedIndicesMap;A(e,function(i,r){var o=t._dimInfos[r],a=o.ordinalMeta,s=t._store;if(a){i=e[r]=new k2(a.categories.length);for(var l=0;l1&&(l+="__ec__"+h),r[e]=l}})),n}();const Ja=O2;function t1(n,t){return xu(n,t).dimensions}function xu(n,t){Ap(n)||(n=kp(n));var e=(t=t||{}).coordDimensions||[],i=t.dimensionsDefine||n.dimensionsDefine||[],r=te(),o=[],a=function(M,T,I,C){var D=Math.max(M.dimensionsDetectedCount||1,T.length,I.length,C||0);return A(T,function(L){var R;ee(L)&&(R=L.dimsDef)&&(D=Math.max(D,R.length))}),D}(n,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Qx(a),l=i===n.dimensionsDefine,u=l?$x(n):Jx(i),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(n,a));for(var c=te(h),p=new b0(a),d=0;d0&&(C.name=D+(L-1)),L++,T.set(D,L)}}(o),new qx({source:n,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function R2(n,t,e){if(e||t.hasKey(n)){for(var i=0;t.hasKey(n+i);)i++;n+=i}return t.set(n,!0),n}var E2=function(n){this.coordSysDims=[],this.axisMap=te(),this.categoryAxisMap=te(),this.coordSysName=n},N2={cartesian2d:function(n,t,e,i){var r=n.getReferringComponents("xAxis",nt).models[0],o=n.getReferringComponents("yAxis",nt).models[0];if(!r)throw new Error('xAxis "'+Yt(n.get("xAxisIndex"),n.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Yt(n.get("xAxisIndex"),n.get("yAxisId"),0)+'" not found');t.coordSysDims=["x","y"],e.set("x",r),e.set("y",o),Co(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),Co(o)&&(i.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,i){var r=n.getReferringComponents("singleAxis",nt).models[0];if(!r)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",r),Co(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(n,t,e,i){var r=n.getReferringComponents("polar",nt).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found");t.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",a),Co(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),Co(a)&&(i.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,i){var r=n.ecModel,o=r.getComponent("parallel",n.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();A(o.parallelAxisIndex,function(s,l){var u=r.getComponent("parallelAxis",s),h=a[l];e.set(h,u),Co(u)&&(i.set(h,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Co(n){return n.get("type")==="category"}function n1(n,t,e){var i,r,o,a=(e=e||{}).byIndex,s=e.stackedCoordDimension;(function(m){return!Kx(m.schema)})(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,h,c,p=!(!n||!n.get("stack"));if(A(i,function(m,x){j(m)&&(i[x]=m={name:m}),p&&!m.isExtraCoord&&(a||l||!m.ordinalMeta||(l=m),u||m.type==="ordinal"||m.type==="time"||s&&s!==m.coordDim||(u=m))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+n.id,c="__\0ecstackedover_"+n.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;A(i,function(m){m.coordDim===d&&g++});var y={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,f),v.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Oi(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}function i1(n,t){return Oi(n,t)?n.getCalculationInfo("stackResultDimension"):t}function _u(n,t,e){e=e||{};var i,r=t.getSourceManager(),o=!1;n?(o=!0,i=kp(n)):o=(i=r.getSource()).sourceFormat===sn;var a=function(y){var v=y.get("coordinateSystem"),m=new E2(v),x=N2[v];if(x)return x(y,m,m.axisMap,m.categoryAxisMap),m}(t),s=function(y,v){var m,x=y.get("coordinateSystem"),_=Wl.get(x);return v&&v.coordSysDims&&(m=X(v.coordSysDims,function(b){var w={name:b},S=v.axisMap.get(b);if(S){var M=S.get("type");w.type=function(T){return T==="category"?"ordinal":T==="time"?"time":"float"}(M)}return w})),m||(m=_&&(_.getDimensionsInfo?_.getDimensionsInfo():_.dimensions.slice())||["x","y"]),m}(t,a),l=e.useEncodeDefaulter,u=ae(l)?l:l?xe(nC,s,t):null,h=xu(i,{coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(y,v,m){var x,_;return m&&A(y,function(b,w){var S=b.coordDim,M=m.categoryAxisMap.get(S);M&&(x==null&&(x=w),b.ordinalMeta=M.getOrdinalMeta(),v&&(b.createInvertedIndices=!0)),b.otherDims.itemName!=null&&(_=!0)}),_||x==null||(y[x].otherDims.itemName=0),x}(h.dimensions,e.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),d=n1(t,{schema:h,store:p}),f=new Ja(h,t);f.setCalculationInfo(d);var g=c!=null&&function(y){if(y.sourceFormat===sn){var v=function(m){for(var x=0;xe[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n}();el(r1);const hi=r1;var z2=0,B2=function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++z2}return n.createByAxisModel=function(t){var e=t.option,i=e.data,r=i&&X(i,V2);return new n({categories:r,needCollect:!r,deduplication:e.dedplication!==!1})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!j(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return(e=r.get(t))==null&&(i?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=te(this.categories))},n}();function V2(n){return ee(n)&&n.value!=null?n.value:n+""}const md=B2;function xd(n){return n.type==="interval"||n.type==="log"}function F2(n,t,e,i){var r={},o=n[1]-n[0],a=r.interval=gc(o/t,!0);e!=null&&ai&&(a=r.interval=i);var s=r.intervalPrecision=o1(a);return function(l,u){!isFinite(l[0])&&(l[0]=u[0]),!isFinite(l[1])&&(l[1]=u[1]),a1(l,0,u),a1(l,1,u),l[0]>l[1]&&(l[0]=l[1])}(r.niceTickExtent=[Xe(Math.ceil(n[0]/a)*a,s),Xe(Math.floor(n[1]/a)*a,s)],n),r}function _d(n){var t=Math.pow(10,aa(n)),e=n/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Xe(e*t)}function o1(n){return Pn(n)+2}function a1(n,t,e){n[t]=Math.max(Math.min(n[t],e[1]),e[0])}function wu(n,t){return n>=t[0]&&n<=t[1]}function bu(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function Su(n,t){return n*(t[1]-t[0])+t[0]}var s1=function(n){function t(e){var i=n.call(this,e)||this;i.type="ordinal";var r=i.getSetting("ordinalMeta");return r||(r=new md({})),Y(r)&&(r=new md({categories:X(r,function(o){return ee(o)?o.value:o})})),i._ordinalMeta=r,i._extent=i.getSetting("extent")||[0,r.categories.length-1],i}return V(t,n),t.prototype.parse=function(e){return e==null?NaN:j(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return wu(e=this.parse(e),this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return bu(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Su(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,r=i[0];r<=i[1];)e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e!=null){for(var i=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hi);hi.registerClass(s1);const l1=s1;var Ir=Xe,u1=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return V(t,n),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return wu(e,this._extent)},t.prototype.normalize=function(e){return bu(e,this._extent)},t.prototype.scale=function(e){return Su(e,this._extent)},t.prototype.setExtent=function(e,i){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(i)||(r[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=o1(e)},t.prototype.getTicks=function(e){var i=this._interval,r=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;r[0]1e4)return[];var u=s.length?s[s.length-1].value:o[1];return r[1]>u&&(e?s.push({value:Ir(u+i,a)}):s.push({value:r[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),r=[],o=this.getExtent(),a=1;ao[0]&&p0&&(l=l===null?h:Math.min(l,h))}o[a]=l}}return o}(n),e=[];return A(n,function(i){var r,o=i.coordinateSystem.getBaseAxis(),a=o.getExtent();if(o.type==="category")r=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);r=l?u/c*l:u}else{var p=i.getData();r=Math.abs(a[1]-a[0])/p.count()}var d=ne(i.get("barWidth"),r),f=ne(i.get("barMaxWidth"),r),g=ne(i.get("barMinWidth")||(y1(i)?.5:1),r),y=i.get("barGap"),v=i.get("barCategoryGap");e.push({bandWidth:r,barWidth:d,barMaxWidth:f,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:bd(o),stackId:wd(i)})}),function(i){var r={};A(i,function(a,s){var l=a.axisKey,u=a.bandWidth,h=r[l]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=h.stacks;r[l]=h;var p=a.stackId;c[p]||h.autoWidthCount++,c[p]=c[p]||{width:0,maxWidth:0};var d=a.barWidth;d&&!c[p].width&&(c[p].width=d,d=Math.min(h.remainedWidth,d),h.remainedWidth-=d);var f=a.barMaxWidth;f&&(c[p].maxWidth=f);var g=a.barMinWidth;g&&(c[p].minWidth=g);var y=a.barGap;y!=null&&(h.gap=y);var v=a.barCategoryGap;v!=null&&(h.categoryGap=v)});var o={};return A(r,function(a,s){o[s]={};var l=a.stacks,u=a.bandWidth,h=a.categoryGap;if(h==null){var c=Oe(l).length;h=Math.max(35-4*c,15)+"%"}var p=ne(h,u),d=ne(a.gap,1),f=a.remainedWidth,g=a.autoWidthCount,y=(f-p)/(g+(g-1)*d);y=Math.max(y,0),A(l,function(_){var b=_.maxWidth,w=_.minWidth;if(_.width)S=_.width,b&&(S=Math.min(S,b)),w&&(S=Math.max(S,w)),_.width=S,f-=S+d*S,g--;else{var S=y;b&&bS&&(S=w),S!==y&&(_.width=S,f-=S+d*S,g--)}}),y=(f-p)/(g+(g-1)*d),y=Math.max(y,0);var v,m=0;A(l,function(_,b){_.width||(_.width=y),v=_,m+=_.width*(1+d)}),v&&(m-=v.width*d);var x=-m/2;A(l,function(_,b){o[s][b]=o[s][b]||{bandWidth:u,offset:x,width:_.width},x+=_.width*(1+d)})}),o}(e)}function d1(n,t){var e=c1(n,t),i=p1(e);A(e,function(r){var o=r.getData(),a=r.coordinateSystem.getBaseAxis(),s=wd(r),l=i[bd(a)][s],u=l.offset,h=l.width;o.setLayout({bandWidth:l.bandWidth,offset:u,size:h})})}function f1(n){return{seriesType:n,plan:Gp(),reset:function(t){if(g1(t)){var e=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=i.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(o.dim)),s=e.getDimensionIndex(e.mapDimension(r.dim)),l=t.get("showBackground",!0),u=e.mapDimension(o.dim),h=e.getCalculationInfo("stackResultDimension"),c=Oi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),d=function(x,_){return _.toGlobalCoord(_.dataToCoord(_.type==="log"?1:0))}(0,o),f=y1(t),g=t.get("barMinHeight")||0,y=h&&e.getDimensionIndex(h),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(x,_){for(var b,w=x.count,S=f&&ci(3*w),M=f&&l&&ci(3*w),T=f&&ci(w),I=i.master.getRect(),C=p?I.width:I.height,D=_.getStore(),L=0;(b=x.next())!=null;){var R=D.get(c?y:a,b),P=D.get(s,b),E=d,k=void 0;c&&(k=+R-D.get(a,b));var O=void 0,N=void 0,B=void 0,z=void 0;if(p){var U=i.dataToPoint([R,P]);c&&(E=i.dataToPoint([k,P])[0]),O=E,N=U[1]+m,B=U[0]-E,z=v,Math.abs(B)0)for(var d=0;d=0;--d)if(f[g]){c=f[g];break}c=c||p.none}if(Y(c)){var y=a.level==null?0:a.level>=0?a.level:c.length+a.level;c=c[y=Math.min(y,c.length-1)]}}return Da(new Date(a.value),c,h,u)}(e,i,r,this.getSetting("locale"),o)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,r=[];if(!e)return r;r.push({value:i[0],level:0});var o=this.getSetting("useUTC"),a=function(s,l,u,h){var c=1e4,p=Mm,d=0;function f(E,k,O,N,B,z,U){for(var Z=new Date(k),F=k,W=Z[N]();F1&&z===0&&O.unshift({value:O[0].value-F})}}for(z=0;z=h[0]&&M<=h[1]&&m++)}var T=(h[1]-h[0])/l;if(m>1.5*T&&x>T/1.5||(y.push(w),m>T||s===p[_]))break}v=[]}}d>=c&&Je("Exceed safe limit.");var I=We(X(y,function(E){return We(E,function(k){return k.value>=h[0]&&k.value<=h[1]&&!k.notAdd})}),function(E){return E.length>0}),C=[],D=I.length-1;for(_=0;_r&&(this._approxInterval=r);var s=Mu.length,l=Math.min(function(u,h,c,p){for(;c>>1;u[d][1]16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function Y2(n){return(n/=30*an)>6?6:n>3?3:n>2?2:1}function X2(n){return(n/=Ca)>12?12:n>6?6:n>3.5?4:n>2?2:1}function m1(n,t){return(n/=t?cp:hp)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function U2(n){return gc(n,!0)}function Z2(n,t,e){var i=new Date(n);switch(po(t)){case"year":case"month":i[Cm(e)](0);case"day":i[Am(e)](1);case"hour":i[Dm(e)](0);case"minute":i[km(e)](0);case"second":i[Lm(e)](0),i[Pm(e)](0)}return i.getTime()}hi.registerClass(v1);const j2=v1;var x1=hi.prototype,$a=Cr.prototype,q2=Xe,K2=Math.floor,J2=Math.ceil,Tu=Math.pow,Mn=Math.log,Sd=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Cr,e._interval=0,e}return V(t,n),t.prototype.getTicks=function(e){var i=this._originalScale,r=this._extent,o=i.getExtent();return X($a.getTicks.call(this,e),function(a){var s=a.value,l=Xe(Tu(this.base,s));return l=s===r[0]&&this._fixMin?Iu(l,o[0]):l,{value:l=s===r[1]&&this._fixMax?Iu(l,o[1]):l}},this)},t.prototype.setExtent=function(e,i){var r=Mn(this.base);e=Mn(Math.max(0,e))/r,i=Mn(Math.max(0,i))/r,$a.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=x1.getExtent.call(this);i[0]=Tu(e,i[0]),i[1]=Tu(e,i[1]);var r=this._originalScale.getExtent();return this._fixMin&&(i[0]=Iu(i[0],r[0])),this._fixMax&&(i[1]=Iu(i[1],r[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=Mn(e[0])/Mn(i),e[1]=Mn(e[1])/Mn(i),x1.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,r=i[1]-i[0];if(!(r===1/0||r<=0)){var o=My(r);for(e/r*o<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var a=[Xe(J2(i[0]/o)*o),Xe(K2(i[1]/o)*o)];this._interval=o,this._niceExtent=a}},t.prototype.calcNiceExtent=function(e){$a.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return wu(e=Mn(e)/Mn(this.base),this._extent)},t.prototype.normalize=function(e){return bu(e=Mn(e)/Mn(this.base),this._extent)},t.prototype.scale=function(e){return e=Su(e,this._extent),Tu(this.base,e)},t.type="log",t}(hi),_1=Sd.prototype;function Iu(n,t){return q2(n,Pn(t))}_1.getMinorTicks=$a.getMinorTicks,_1.getLabel=$a.getLabel,hi.registerClass(Sd);const $2=Sd;var Q2=function(){function n(t,e,i){this._prepareParams(t,e,i)}return n.prototype._prepareParams=function(t,e,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:c}},n.prototype.modifyDataMinMax=function(t,e){ue(!this.frozen),this[tA[t]]=e},n.prototype.setDeterminedMinMax=function(t,e){var i=eA[t];ue(!this.frozen&&this[i]==null),this[i]=e},n.prototype.freeze=function(){this.frozen=!0},n}(),eA={min:"_determinedMin",max:"_determinedMax"},tA={min:"_dataMin",max:"_dataMax"};function w1(n,t,e){var i=n.rawExtentInfo;return i||(i=new Q2(n,t,e),n.rawExtentInfo=i,i)}function Cu(n,t){return t==null?null:Gr(t)?NaN:n.parse(t)}function b1(n,t){var e=n.type,i=w1(n,t,n.getExtent()).calculate();n.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&e==="time"){var s=c1("bar",a),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=p1(s),h=function(c,p,d,f){var g=d.axis.getExtent(),y=g[1]-g[0],v=function(S,M,T){if(S&&M){var I=S[bd(M)];return I!=null&&T!=null?I[wd(T)]:I}}(f,d.axis);if(v===void 0)return{min:c,max:p};var m=1/0;A(v,function(S){m=Math.min(S.offset,m)});var x=-1/0;A(v,function(S){x=Math.max(S.offset+S.width,x)}),m=Math.abs(m),x=Math.abs(x);var _=m+x,b=p-c,w=b/(1-(m+x)/y)-b;return p+=w*(x/_),c-=w*(m/_),{min:c,max:p}}(r,o,t,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Ao(n,t){var e=t,i=b1(n,e),r=i.extent,o=e.get("splitNumber");n instanceof $2&&(n.base=e.get("logBase"));var a=n.type,s=e.get("interval"),l=a==="interval"||a==="time";n.setExtent(r[0],r[1]),n.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Au(n,t){if(t=t||n.get("type"))switch(t){case"category":return new l1({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new j2({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hi.getClass(t)||Cr)}}function Qa(n){var t,e,i=n.getLabelModel().get("formatter"),r=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?(e=i,function(o,a){return n.scale.getFormattedLabel(o,a,e)}):j(i)?function(o){return function(a){var s=n.scale.getLabel(a);return o.replace("{value}",s??"")}}(i):ae(i)?(t=i,function(o,a){return r!=null&&(a=o.value-r),t(Md(n,o),a,o.level!=null?{level:o.level}:null)}):function(o){return n.scale.getLabel(o)}}function Md(n,t){return n.type==="category"?n.scale.getLabel(t):t.value}function nA(n,t){var e=t*Math.PI/180,i=n.width,r=n.height,o=i*Math.abs(Math.cos(e))+Math.abs(r*Math.sin(e)),a=i*Math.abs(Math.sin(e))+Math.abs(r*Math.cos(e));return new me(n.x,n.y,o,a)}function Td(n){var t=n.get("interval");return t??"auto"}function S1(n){return n.type==="category"&&Td(n.getLabelModel())===0}function Du(n,t){var e={};return A(n.mapDimensionsAll(t),function(i){e[i1(n,i)]=!0}),Oe(e)}var es=function(){function n(){}return n.prototype.getNeedCrossZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n}(),iA={isDimensionStacked:Oi,enableDataStack:n1,getStackedDimension:i1};function ku(n,t){return it(n,null,null,(t=t||{}).state!=="normal")}const rA=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:t1,createList:function(n){return _u(null,n)},createScale:function(n,t){var e=t;t instanceof He||(e=new He(t));var i=Au(e);return i.setExtent(n[0],n[1]),Ao(i,e),i},createSymbol:ut,createTextStyle:ku,dataStack:iA,enableHoverEmphasis:ro,getECData:ye,getLayoutRect:St,mixinAxisModelCommonMethods:function(n){ct(n,es)}},Symbol.toStringTag,{value:"Module"}));var M1=[],oA={registerPreprocessor:fu,registerProcessor:hd,registerPostInit:Hx,registerPostUpdate:Wx,registerUpdateLifecycle:gu,registerAction:Sn,registerCoordinateSystem:Yx,registerLayout:cd,registerVisual:Li,registerTransform:Zx,registerLoading:dd,registerMap:Ux,registerImpl:function(n,t){au[n]&&xt("Already has an implementation of "+n+"."),au[n]=t},PRIORITY:Cx,ComponentModel:Te,ComponentView:je,SeriesModel:Mt,ChartView:at,registerComponentModel:function(n){Te.registerClass(n)},registerComponentView:function(n){je.registerClass(n)},registerSeriesModel:function(n){Mt.registerClass(n)},registerChartView:function(n){at.registerClass(n)},registerSubTypeDefaulter:function(n,t){Te.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){xy(n,t)}};function rt(n){Y(n)?A(n,function(t){rt(t)}):Me(M1,n)>=0||(M1.push(n),ae(n)&&(n={install:n}),n.install(oA))}var aA=1e-8;function T1(n,t){return Math.abs(n-t)r&&(e=a,r=l)}if(e)return function(h){for(var c=0,p=0,d=0,f=h.length,g=h[f-1][0],y=h[f-1][1],v=0;v>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/e,l/e])}return i}function Cd(n,t){return X(We((n=function(e){if(!e.UTF8Encoding)return e;var i=e,r=i.UTF8Scale;return r==null&&(r=1024),A(i.features,function(o){var a=o.geometry,s=a.encodeOffsets,l=a.coordinates;if(s)switch(a.type){case"LineString":a.coordinates=O1(l,s,r);break;case"Polygon":case"MultiLineString":P1(l,s,r);break;case"MultiPolygon":A(l,function(u,h){return P1(u,s[h],r)})}}),i.UTF8Encoding=!1,i}(n)).features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,r=e.geometry,o=[];switch(r.type){case"Polygon":var a=r.coordinates;o.push(new D1(a[0],a.slice(1)));break;case"MultiPolygon":A(r.coordinates,function(l){l[0]&&o.push(new D1(l[0],l.slice(1)))});break;case"LineString":o.push(new k1([r.coordinates]));break;case"MultiLineString":o.push(new k1(r.coordinates))}var s=new L1(i[t||"name"],o,i.cp);return s.properties=i,s})}const uA=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:Qn,getPercentWithPrecision:function(n,t,e){return n[t]&&Sy(n,e)[t]||0},getPixelPrecision:dc,getPrecision:Pn,getPrecisionSafe:qs,isNumeric:Ks,isRadianAroundZero:oa,linearMap:Ae,nice:gc,numericToNumber:sa,parseDate:Jt,quantile:function(n,t){var e=(n.length-1)*t+1,i=Math.floor(e),r=+n[i-1],o=e-i;return o?r+o*(n[i]-r):r},quantity:My,quantityExponent:aa,reformIntervals:yc,remRadian:fc,round:Xe},Symbol.toStringTag,{value:"Module"})),hA=Object.freeze(Object.defineProperty({__proto__:null,format:Da,parse:Jt},Symbol.toStringTag,{value:"Module"})),cA=Object.freeze(Object.defineProperty({__proto__:null,Arc:xl,BezierCurve:ml,BoundingRect:me,Circle:oi,CompoundPath:qc,Ellipse:yl,Group:ge,Image:Gt,IncrementalDisplayable:em,Line:wt,LinearGradient:wa,Polygon:Vn,Polyline:_n,RadialGradient:Kc,Rect:Ie,Ring:_a,Sector:nn,Text:ke,clipPointsByRect:tp,clipRectByRect:sm,createIcon:Ma,extendPath:im,extendShape:nm,getShapeClass:rm,getTransform:Ai,initProps:et,makeImage:Qc,makePath:Il,mergePath:on,registerShape:rn,resizePath:ep,updateProps:ze},Symbol.toStringTag,{value:"Module"})),pA=Object.freeze(Object.defineProperty({__proto__:null,addCommas:fp,capitalFirst:Em,encodeHTML:Bt,formatTime:function(n,t,e){$e("echarts.format.formatTime","echarts.time.format"),n!=="week"&&n!=="month"&&n!=="quarter"&&n!=="half-year"&&n!=="year"||(n=`MM-dd yyyy`);var i=Jt(t),r=e?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return n=n.replace("MM",bt(a,2)).replace("M",a).replace("yyyy",o).replace("yy",bt(o%100+"",2)).replace("dd",bt(s,2)).replace("d",s).replace("hh",bt(l,2)).replace("h",l).replace("mm",bt(u,2)).replace("m",u).replace("ss",bt(h,2)).replace("s",h).replace("SSS",bt(c,3))},formatTpl:mp,getTextRect:function(n,t,e,i,r,o,a,s){return new ke({style:{text:n,font:t,align:e,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Rm,normalizeCssArray:go,toCamelCase:gp,truncateText:Hy},Symbol.toStringTag,{value:"Module"})),dA=Object.freeze(Object.defineProperty({__proto__:null,bind:Q,clone:oe,curry:xe,defaults:le,each:A,extend:G,filter:We,indexOf:Me,inherits:vh,isArray:Y,isFunction:ae,isObject:ee,isString:j,map:X,merge:pe,reduce:gn},Symbol.toStringTag,{value:"Module"}));var ts=Ne();function fA(n){return n.type==="category"?function(t){var e=t.getLabelModel(),i=R1(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(n):function(t){var e=t.scale.getTicks(),i=Qa(t);return{labels:X(e,function(r,o){return{level:r.level,formattedLabel:i(r,o),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}(n)}function gA(n,t){return n.type==="category"?function(e,i){var r,o,a=E1(e,"ticks"),s=Td(i),l=N1(a,s);if(l)return l;if(i.get("show")&&!e.scale.isBlank()||(r=[]),ae(s))r=V1(e,s,!0);else if(s==="auto"){var u=R1(e,e.getLabelModel());o=u.labelCategoryInterval,r=X(u.labels,function(h){return h.tickValue})}else r=B1(e,o=s,!0);return z1(a,s,{ticks:r,tickCategoryInterval:o})}(n,t):{ticks:X(n.scale.getTicks(),function(e){return e.value})}}function R1(n,t){var e,i,r=E1(n,"labels"),o=Td(t),a=N1(r,o);return a||(ae(o)?e=V1(n,o):(i=o==="auto"?function(s){var l=ts(s).autoInterval;return l??(ts(s).autoInterval=s.calculateCategoryInterval())}(n):o,e=B1(n,i)),z1(r,o,{labels:e,labelCategoryInterval:i}))}function E1(n,t){return ts(n)[t]||(ts(n)[t]=[])}function N1(n,t){for(var e=0;e1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=S1(n),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(y){var v={value:y};s.push(e?y:{formattedLabel:i(v),rawLabel:r.getLabel(v),tickValue:y})}return d&&f-l!==o[1]&&g(o[1]),s}function V1(n,t,e){var i=n.scale,r=Qa(n),o=[];return A(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;t(a.value,s)&&o.push(e?l:{formattedLabel:r(a),rawLabel:s,tickValue:l})}),o}var F1=[0,1],yA=function(){function n(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return n.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=i&&t<=r},n.prototype.containData=function(t){return this.scale.contain(t)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(t){return dc(t||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},n.prototype.dataToCoord=function(t,e){var i=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&r.type==="ordinal"&&G1(i=i.slice(),r.count()),Ae(t,F1,i,e)},n.prototype.coordToData=function(t,e){var i=this._extent,r=this.scale;this.onBand&&r.type==="ordinal"&&G1(i=i.slice(),r.count());var o=Ae(t,i,F1,e);return this.scale.scale(o)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=X(gA(this,e).ticks,function(r){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(r):r),tickValue:r}},this);return function(r,o,a,s){var l=o.length;if(!r.onBand||a||!l)return;var u,h,c=r.getExtent();if(l===1)o[0].coord=c[0],u=o[1]={coord:c[1]};else{var p=o[l-1].tickValue-o[0].tickValue,d=(o[l-1].coord-o[0].coord)/p;A(o,function(y){y.coord-=d/2}),h=1+r.scale.getExtent()[1]-o[l-1].tickValue,u={coord:o[l-1].coord+d*h},o.push(u)}var f=c[0]>c[1];g(o[0].coord,c[0])&&(s?o[0].coord=c[0]:o.shift()),s&&g(c[0],o[0].coord)&&o.unshift({coord:c[0]}),g(c[1],u.coord)&&(s?u.coord=c[1]:o.pop()),s&&g(u.coord,c[1])&&o.push({coord:c[1]});function g(y,v){return y=Xe(y),v=Xe(v),f?y>v:y0&&t<100||(t=5),X(this.scale.getMinorTicks(t),function(e){return X(e,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this)},n.prototype.getViewLabels=function(){return fA(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/i},n.prototype.calculateCategoryInterval=function(){return function(t){var e=function(T){var I=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:I.get("rotate")||0,font:I.getFont()}}(t),i=Qa(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,a=o.getExtent(),s=o.count();if(a[1]-a[0]<1)return 0;var l=1;s>40&&(l=Math.max(1,Math.floor(s/40)));for(var u=a[0],h=t.dataToCoord(u+1)-t.dataToCoord(u),c=Math.abs(h*Math.cos(r)),p=Math.abs(h*Math.sin(r)),d=0,f=0;u<=a[1];u+=l){var g,y,v=na(i({value:u}),e.font,"center","top");g=1.3*v.width,y=1.3*v.height,d=Math.max(d,g,7),f=Math.max(f,y,7)}var m=d/c,x=f/p;isNaN(m)&&(m=1/0),isNaN(x)&&(x=1/0);var _=Math.max(0,Math.floor(Math.min(m,x))),b=ts(t.model),w=t.getExtent(),S=b.lastAutoInterval,M=b.lastTickCount;return S!=null&&M!=null&&Math.abs(S-_)<=1&&Math.abs(M-s)<=1&&S>_&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?_=S:(b.lastTickCount=s,b.lastAutoInterval=_,b.axisExtent0=w[0],b.axisExtent1=w[1]),_}(this)},n}();function G1(n,t){var e=(n[1]-n[0])/t/2;n[0]+=e,n[1]-=e}const Yn=yA;function H1(n){var t=Mt.extend(n);return Mt.registerClass(t),t}function W1(n){var t=at.extend(n);return at.registerClass(t),t}var ns=2*Math.PI,Ar=Ti.CMD,vA=["top","right","bottom","left"];function mA(n,t,e,i,r){var o=e.width,a=e.height;switch(n){case"top":i.set(e.x+o/2,e.y-t),r.set(0,-1);break;case"bottom":i.set(e.x+o/2,e.y+a+t),r.set(0,1);break;case"left":i.set(e.x-t,e.y+a/2),r.set(-1,0);break;case"right":i.set(e.x+o+t,e.y+a/2),r.set(1,0)}}function xA(n,t,e,i,r,o,a,s,l){a-=n,s-=t;var u=Math.sqrt(a*a+s*s),h=(a/=u)*e+n,c=(s/=u)*e+t;if(Math.abs(i-r)%ns<1e-4)return l[0]=h,l[1]=c,u-e;if(o){var p=i;i=ti(r),r=ti(p)}else i=ti(i),r=ti(r);i>r&&(r+=ns);var d=Math.atan2(s,a);if(d<0&&(d+=ns),d>=i&&d<=r||d+ns>=i&&d+ns<=r)return l[0]=h,l[1]=c,u-e;var f=e*Math.cos(i)+n,g=e*Math.sin(i)+t,y=e*Math.cos(r)+n,v=e*Math.sin(r)+t,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m0){t=t/180*Math.PI,In.fromArray(n[0]),Be.fromArray(n[1]),Ue.fromArray(n[2]),de.sub(Xn,In,Be),de.sub(Un,Ue,Be);var e=Xn.len(),i=Un.len();if(!(e<.001||i<.001)){Xn.scale(1/e),Un.scale(1/i);var r=Xn.dot(Un);if(Math.cos(t)1&&de.copy(It,Ue),It.toArray(n[1])}}}}function bA(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,In.fromArray(n[0]),Be.fromArray(n[1]),Ue.fromArray(n[2]),de.sub(Xn,Be,In),de.sub(Un,Ue,Be);var i=Xn.len(),r=Un.len();if(!(i<.001||r<.001)&&(Xn.scale(1/i),Un.scale(1/r),Xn.dot(t)=a)de.copy(It,Ue);else{It.scaleAndAdd(Un,o/Math.tan(Math.PI/2-s));var l=Ue.x!==Be.x?(It.x-Be.x)/(Ue.x-Be.x):(It.y-Be.y)/(Ue.y-Be.y);if(isNaN(l))return;l<0?de.copy(It,Be):l>1&&de.copy(It,Ue)}It.toArray(n[1])}}}function Ad(n,t,e,i){var r=e==="normal",o=r?n:n.ensureState(e);o.ignore=t;var a=i.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?n.useStyle(s):o.style=s}function SA(n,t){var e=t.smooth,i=t.points;if(i)if(n.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var r=Cs(i[0],i[1]),o=Cs(i[1],i[2]);if(!r||!o)return n.lineTo(i[1][0],i[1][1]),void n.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*e,s=As([],i[1],i[0],a/r),l=As([],i[1],i[2],a/o),u=As([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h0&&o&&_(-h/a,0,a);var f,g,y=n[0],v=n[a-1];return m(),f<0&&b(-f,.8),g<0&&b(g,.8),m(),x(f,g,1),x(g,f,-1),m(),f<0&&w(-f),g<0&&w(g),u}function m(){f=y.rect[t]-i,g=r-v.rect[t]-v.rect[e]}function x(S,M,T){if(S<0){var I=Math.min(M,-S);if(I>0){_(I*T,0,a);var C=I+S;C<0&&b(-C*T,1)}else b(-S*T,1)}}function _(S,M,T){S!==0&&(u=!0);for(var I=M;I0)for(C=0;C0;C--)_(-(T[C-1]*R),C,a)}}function w(S){var M=S<0?-1:1;S=Math.abs(S);for(var T=Math.ceil(S/(a-1)),I=0;I0?_(T,0,I+1):_(-T,a-I-1,a),(S-=T)<=0)return}}function J1(n,t,e,i){return K1(n,"y","height",t,e,i)}function $1(n){var t=[];n.sort(function(g,y){return y.priority-g.priority});var e=new me(0,0,0,0);function i(g){if(!g.ignore){var y=g.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}g.ignore=!0}for(var r=0;r=0&&i.attr(f.oldLayoutSelect),Me(h,"emphasis")>=0&&i.attr(f.oldLayoutEmphasis)),ze(i,l,e,s)}else if(i.attr(l),!ho(i).valueAnimation){var c=fe(i.style.opacity,1);i.style.opacity=0,et(i,{style:{opacity:c}},e,s)}if(f.oldLayout=l,i.states.select){var p=f.oldLayoutSelect={};Ou(p,l,Ru),Ou(p,i.states.select,Ru)}if(i.states.emphasis){var d=f.oldLayoutEmphasis={};Ou(d,l,Ru),Ou(d,i.states.emphasis,Ru)}mm(i,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){o=(f=IA(r)).oldLayout;var f,g={points:r.shape.points};o?(r.attr({shape:o}),ze(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,et(r,{style:{strokePercent:1}},e)),f.oldLayout=g}},n}();const AA=CA;var kd=Ne();ug=Object.freeze(Object.defineProperty({__proto__:null,Axis:Yn,ChartView:at,ComponentModel:Te,ComponentView:je,List:Ja,Model:He,PRIORITY:Cx,SeriesModel:Mt,color:rT,connect:function(n){if(Y(n)){var t=n;n=null,A(t,function(e){e.group!=null&&(n=e.group)}),n=n||"g_"+M2++,A(t,function(e){e.group=n})}return du[n]=!0,n},dataTool:{},dependencies:{zrender:"5.5.0"},disConnect:T2,disconnect:Gx,dispose:function(n){j(n)?n=Tr[n]:n instanceof hu||(n=ld(n)),n instanceof hu&&!n.isDisposed()&&n.dispose()},env:we,extendChartView:W1,extendComponentModel:function(n){var t=Te.extend(n);return Te.registerClass(t),t},extendComponentView:function(n){var t=je.extend(n);return je.registerClass(t),t},extendSeriesModel:H1,format:pA,getCoordinateSystemDimensions:function(n){var t=Wl.get(n);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},getInstanceByDom:ld,getInstanceById:function(n){return Tr[n]},getMap:function(n){var t=Ix("getMap");return t&&t(n)},graphic:cA,helper:rA,init:function(n,t,e){var i=!(e&&e.ssr);if(i){if(!n)throw new Error("Initialize failed: invalid dom.");var r=ld(n);if(r)return Je("There is a chart instance already initialized on the dom."),r;!vi(n)||n.nodeName.toUpperCase()==="CANVAS"||(n.clientWidth||e&&e.width!=null)&&(n.clientHeight||e&&e.height!=null)||Je("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new hu(n,t,e);return o.id="ec_"+S2++,Tr[o.id]=o,i&&Ny(n,sd,o.id),Nx(o),bn.trigger("afterinit",o),o},innerDrawElementOnCanvas:Zp,matrix:VM,number:uA,parseGeoJSON:Cd,parseGeoJson:Cd,registerAction:Sn,registerCoordinateSystem:Yx,registerLayout:cd,registerLoading:dd,registerLocale:up,registerMap:Ux,registerPostInit:Hx,registerPostUpdate:Wx,registerPreprocessor:fu,registerProcessor:hd,registerTheme:ud,registerTransform:Zx,registerUpdateLifecycle:gu,registerVisual:Li,setCanvasCreator:function(n){$t("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),cg({createCanvas:n})},setPlatformAPI:cg,throttle:Kl,time:hA,use:rt,util:dA,vector:AM,version:"5.5.0",zrUtil:TM,zrender:ST},Symbol.toStringTag,{value:"Module"}));const DA=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return V(t,n),t.prototype.getInitialData=function(e){var i=e.coordinateSystem;if(i!=="polar"&&i!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar");return _u(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new ge,r=ut("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(r),r.setStyle(e.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=.8*e.itemHeight,u=ut(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var h=e.iconRotate==="inherit"?a:e.iconRotate||0;return u.rotation=h*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Mt);function Eu(n,t){var e=n.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var r=So(n,t,e[0]);return r!=null?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(t[o])}return i.join(" ")}var kA=function(n){function t(e,i,r,o){var a=n.call(this)||this;return a.updateData(e,i,r,o),a}return V(t,n),t.prototype._createSymbol=function(e,i,r,o,a){this.removeAll();var s=ut(e,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=LA,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){no(this.childAt(0))},t.prototype.downplay=function(){io(this.childAt(0))},t.prototype.setZ=function(e,i){var r=this.childAt(0);r.zlevel=e,r.z=i},t.prototype.setDraggable=function(e,i){var r=this.childAt(0);r.draggable=e,r.cursor=!i&&e?"move":r.cursor},t.prototype.updateData=function(e,i,r,o){this.silent=!1;var a=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=a!==this._symbolType,h=o&&o.disableAnimation;if(u){var c=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,e,i,l,c)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};h?d.attr(p):ze(d,p,s,i),ba(d)}if(this._updateCommon(e,i,l,r,o),u){var d=this.childAt(0);h||(p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}},d.scaleX=d.scaleY=0,d.style.opacity=0,et(d,p,s,i))}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,r,o,a){var s,l,u,h,c,p,d,f,g,y=this.childAt(0),v=e.hostModel;if(o&&(s=o.emphasisItemStyle,l=o.blurItemStyle,u=o.selectItemStyle,h=o.focus,c=o.blurScope,d=o.labelStatesModels,f=o.hoverScale,g=o.cursorStyle,p=o.emphasisDisabled),!o||e.hasItemOption){var m=o&&o.itemModel?o.itemModel:e.getItemModel(i),x=m.getModel("emphasis");s=x.getModel("itemStyle").getItemStyle(),u=m.getModel(["select","itemStyle"]).getItemStyle(),l=m.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),c=x.get("blurScope"),p=x.get("disabled"),d=si(m),f=x.getShallow("scale"),g=m.getShallow("cursor")}var _=e.getItemVisual(i,"symbolRotate");y.attr("rotation",(_||0)*Math.PI/180||0);var b=Yp(e.getItemVisual(i,"symbolOffset"),r);b&&(y.x=b[0],y.y=b[1]),g&&y.attr("cursor",g);var w=e.getItemVisual(i,"style"),S=w.fill;if(y instanceof Gt){var M=y.style;y.useStyle(G({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},w))}else y.__isEmptyBrush?y.useStyle(G({},w)):y.useStyle(w),y.style.decal=null,y.setColor(S,a&&a.symbolInnerColor),y.style.strokeNoScale=!0;var T=e.getItemVisual(i,"liftZ"),I=this._z2;T!=null?I==null&&(this._z2=y.z2,y.z2+=T):I!=null&&(y.z2=I,this._z2=null);var C=a&&a.useNameLabel;ai(y,d,{labelFetcher:v,labelDataIndex:i,defaultText:function(R){return C?e.getName(R):Eu(e,R)},inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=r[0]/2,this._sizeY=r[1]/2;var D=y.ensureState("emphasis");D.style=s,y.ensureState("select").style=u,y.ensureState("blur").style=l;var L=f==null||f===!0?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),zn(this,h,c,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,r){var o=this.childAt(0),a=ye(this).dataIndex,s=r&&r.animation;if(this.silent=o.silent=!0,r&&r.fadeLabel){var l=o.getTextContent();l&&Ci(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Ci(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return ax(e.getItemVisual(i,"symbolSize"))},t}(ge);function LA(n,t){this.parent.drift(n,t)}const Nu=kA;function Ld(n,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&n.getItemVisual(e,"symbol")!=="none"}function t_(n){return n==null||ee(n)||(n={isIgnore:n}),n||{}}function n_(n){var t=n.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:si(t),cursorStyle:t.get("cursor")}}var PA=function(){function n(t){this.group=new ge,this._SymbolCtor=t||Nu}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=t_(e);var i=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=n_(t),u={disableAnimation:s},h=e.getSymbolPoint||function(c){return t.getItemLayout(c)};o||i.removeAll(),t.diff(o).add(function(c){var p=h(c);if(Ld(t,p,c,e)){var d=new a(t,c,l,u);d.setPosition(p),t.setItemGraphicEl(c,d),i.add(d)}}).update(function(c,p){var d=o.getItemGraphicEl(p),f=h(c);if(Ld(t,f,c,e)){var g=t.getItemVisual(c,"symbol")||"circle",y=d&&d.getSymbolType&&d.getSymbolType();if(!d||y&&y!==g)i.remove(d),(d=new a(t,c,l,u)).setPosition(f);else{d.updateData(t,c,l,u);var v={x:f[0],y:f[1]};s?d.attr(v):ze(d,v,r)}i.add(d),t.setItemGraphicEl(c,d)}else i.remove(d)}).remove(function(c){var p=o.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},r)}).execute(),this._getSymbolPoint=h,this._data=t},n.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,r){var o=t._getSymbolPoint(r);i.setPosition(o),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=n_(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,i){function r(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=t_(i);for(var o=t.start;o0?y=v[0]:v[1]<0&&(y=v[1]),y}(r,e),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),h=s==="x"||s==="radius"?1:0,c=X(n.dimensions,function(f){return t.mapDimension(f)}),p=!1,d=t.getCalculationInfo("stackResultDimension");return Oi(t,c[0])&&(p=!0,c[0]=d),Oi(t,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function r_(n,t,e,i){var r=NaN;n.stacked&&(r=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=n.valueStart);var o=n.baseDataOffset,a=[];return a[o]=e.get(n.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var Ri=Math.min,Ei=Math.max;function Dr(n,t){return isNaN(n)||isNaN(t)}function Pd(n,t,e,i,r,o,a,s,l){for(var u,h,c,p,d,f,g=e,y=0;y=r||g<0)break;if(Dr(v,m)){if(l){g+=o;continue}break}if(g===e)n[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[2*b],S=t[2*b+1];w===v&&S===m&&y=i||Dr(w,S))d=v,f=m;else{I=w-u,C=S-h;var R=v-u,P=w-v,E=m-h,k=S-m,O=void 0,N=void 0;if(s==="x"){var B=I>0?1:-1;d=v-B*(O=Math.abs(R))*a,f=m,D=v+B*(N=Math.abs(P))*a,L=m}else if(s==="y"){var z=C>0?1:-1;d=v,f=m-z*(O=Math.abs(E))*a,D=v,L=m+z*(N=Math.abs(k))*a}else O=Math.sqrt(R*R+E*E),d=v-I*a*(1-(T=(N=Math.sqrt(P*P+k*k))/(N+O))),f=m-C*a*(1-T),L=m+C*a*T,D=Ri(D=v+I*a*T,Ei(w,v)),L=Ri(L,Ei(S,m)),D=Ei(D,Ri(w,v)),f=m-(C=(L=Ei(L,Ri(S,m)))-m)*O/N,d=Ri(d=v-(I=D-v)*O/N,Ei(u,v)),f=Ri(f,Ei(h,m)),D=v+(I=v-(d=Ei(d,Ri(u,v))))*N/O,L=m+(C=m-(f=Ei(f,Ri(h,m))))*N/O}n.bezierCurveTo(c,p,d,f,v,m),c=D,p=L}else n.lineTo(v,m)}u=v,h=m,g+=o}return y}var o_=function(){this.smooth=0,this.smoothConstraint=!0},RA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-polyline",i}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o_},t.prototype.buildPath=function(e,i){var r=i.points,o=0,a=r.length/2;if(i.connectNulls){for(;a>0&&Dr(r[2*a-2],r[2*a-1]);a--);for(;o=0){var m=l?(p-o)*v+o:(c-r)*v+r;return l?[e,m]:[m,e]}r=c,o=p;break;case s.C:c=a[h++],p=a[h++],d=a[h++],f=a[h++],g=a[h++],y=a[h++];var x=l?zs(r,c,d,g,e,u):zs(o,p,f,y,e,u);if(x>0)for(var _=0;_=0)return m=l?tt(o,p,f,y,b):tt(r,c,d,g,b),l?[e,m]:[m,e]}r=g,o=y}}},t}(De),EA=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t}(o_),NA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-polygon",i}return V(t,n),t.prototype.getDefaultShape=function(){return new EA},t.prototype.buildPath=function(e,i){var r=i.points,o=i.stackedOnPoints,a=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Dr(r[2*s-2],r[2*s-1]);s--);for(;a=0;a--){var s=n.getDimensionInfo(i[a].dimension);if((r=s&&s.coordDim)==="x"||r==="y"){o=i[a];break}}if(o){var l=t.getAxis(r),u=X(o.stops,function(m){return{coord:l.toGlobalCoord(l.dataToCoord(m.value)),color:m.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(m,x){var _,b,w=[],S=m.length;function M(D,L,R){var P=D.coord;return{coord:R,color:Yh((R-P)/(L.coord-P),[D.color,L.color])}}for(var T=0;Tx){b?w.push(M(b,I,x)):_&&w.push(M(_,I,0),M(_,I,x));break}_&&(w.push(M(_,I,0)),_=null),w.push(I),b=I}}return w}(u,r==="x"?e.getWidth():e.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";A(p,function(m){m.offset=(m.coord-f)/y}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var v=new wa(0,0,0,0,p,!0);return v[r]=f,v[r+"2"]=g,v}console.warn("Visual map on line style only support x or y dimension.")}else console.warn("Visual map on line style is only supported on cartesian2d.")}function BA(n,t,e){var i=n.get("showAllSymbol"),r=i==="auto";if(!i||r){var o=e.getAxesByScale("ordinal")[0];if(o&&(!r||!function(l,u){var h=l.getExtent(),c=Math.abs(h[1]-h[0])/l.scale.count();isNaN(c)&&(c=0);for(var p=u.count(),d=Math.max(1,Math.round(p/5)),f=0;fc)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return A(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function d_(n,t){return[n[2*t],n[2*t+1]]}function f_(n){if(n.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),ye(g).seriesIndex=e.seriesIndex,zn(g,E,k,O);var N=p_(e.get("smooth")),B=e.get("smoothMonotone");if(g.setShape({smooth:N,smoothMonotone:B,connectNulls:M}),y){var z=l.getCalculationInfo("stackedOnSeries"),U=0;y.useStyle(le(h.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),z&&(U=p_(z.get("smooth"))),y.setShape({smooth:N,stackedOnSmooth:U,smoothMonotone:B,connectNulls:M}),ri(y,e,"areaStyle"),ye(y).seriesIndex=e.seriesIndex,zn(y,E,k,O)}var Z=function(F){o._changePolyState(F)};l.eachItemGraphicEl(function(F){F&&(F.onHoverStateChange=Z)}),this._polyline.onHoverStateChange=Z,this._data=l,this._coordSys=a,this._stackedOnPoints=w,this._points=c,this._step=D,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,g),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,i){ye(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,r,o){var a=e.getData(),s=ir(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var h=l[2*s],c=l[2*s+1];if(isNaN(h)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,c))return;var p=e.get("zlevel")||0,d=e.get("z")||0;(u=new Nu(a,s)).x=h,u.y=c,u.setZ(p,d);var f=u.getSymbolPath().getTextContent();f&&(f.zlevel=p,f.z=d,f.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else at.prototype.highlight.call(this,e,i,r,o)},t.prototype.downplay=function(e,i,r,o){var a=e.getData(),s=ir(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else at.prototype.downplay.call(this,e,i,r,o)},t.prototype._changePolyState=function(e){var i=this._polygon;pl(this._polyline,e),i&&pl(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new RA({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new NA({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,i,r){var o,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):i.type==="polar"&&(o=s.dim==="angle",a=!0);var u=e.hostModel,h=u.get("animationDuration");ae(h)&&(h=h(null));var c=u.get("animationDelay")||0,p=ae(c)?c(null):c;e.eachItemGraphicEl(function(d,f){var g=d;if(g){var y=[d.x,d.y],v=void 0,m=void 0,x=void 0;if(r)if(a){var _=r,b=i.pointToCoord(y);o?(v=_.startAngle,m=_.endAngle,x=-b[1]/180*Math.PI):(v=_.r0,m=_.r,x=b[0])}else{var w=r;o?(v=w.x,m=w.x+w.width,x=d.x):(v=w.y+w.height,m=w.y,x=d.y)}var S=m===v?0:(x-v)/(m-v);l&&(S=1-S);var M=ae(c)?c(f):h*S+p,T=g.getSymbolPath(),I=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:M}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,r){var o=e.getModel("endLabel");if(f_(e)){var a=e.getData(),s=this._polyline,l=a.getLayout("points");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new ke({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=function(c){for(var p,d,f=c.length/2;f>0&&(p=c[2*f-2],d=c[2*f-1],isNaN(p)||isNaN(d));f--);return f-1}(l);h>=0&&(ai(s,si(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:h,defaultText:function(c,p,d){return d!=null?e_(a,d):Eu(a,c)},enableTextSetter:!0},function(c,p){var d=p.getBaseAxis(),f=d.isHorizontal(),g=d.inverse,y=f?g?"right":"left":"center",v=f?"middle":g?"top":"bottom";return{normal:{align:c.get("align")||y,verticalAlign:c.get("verticalAlign")||v}}}(o,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,r,o,a,s,l){var u=this._endLabel,h=this._polyline;if(u){e<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var c=r.getLayout("points"),p=r.hostModel,d=p.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),v=y.isHorizontal(),m=y.inverse,x=i.shape,_=m?v?x.x:x.y+x.height:v?x.x+x.width:x.y,b=(v?g:0)*(m?-1:1),w=(v?0:-g)*(m?-1:1),S=v?"x":"y",M=function(k,O,N){for(var B,z,U=k.length/2,Z=N==="x"?0:1,F=0,W=-1,K=0;K=O||B>=O&&z<=O){W=K;break}F=K,B=z}else B=z;return{range:[F,W],t:(O-B)/(z-B)}}(c,_,S),T=M.range,I=T[1]-T[0],C=void 0;if(I>=1){if(I>1&&!d){var D=d_(c,T[0]);u.attr({x:D[0]+b,y:D[1]+w}),a&&(C=p.getRawValue(T[0]))}else{(D=h.getPointOn(_,S))&&u.attr({x:D[0]+b,y:D[1]+w});var L=p.getRawValue(T[0]),R=p.getRawValue(T[1]);a&&(C=zy(r,f,L,R,M.t))}o.lastFrameIndex=T[0]}else{var P=e===1||o.lastFrameIndex>0?T[0]:0;D=d_(c,P),a&&(C=p.getRawValue(P)),u.attr({x:D[0]+b,y:D[1]+w})}if(a){var E=ho(u);typeof E.setLabelText=="function"&&E.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,i,r,o,a,s,l){var u=this._polyline,h=this._polygon,c=e.hostModel,p=function(w,S,M,T,I,C,D,L){for(var R=function(vt,Ke){var ht=[];return Ke.diff(vt).add(function(Ye){ht.push({cmd:"+",idx:Ye})}).update(function(Ye,zt){ht.push({cmd:"=",idx:zt,idx1:Ye})}).remove(function(Ye){ht.push({cmd:"-",idx:Ye})}).execute(),ht}(w,S),P=[],E=[],k=[],O=[],N=[],B=[],z=[],U=i_(I,S,D),Z=w.getLayout("points")||[],F=S.getLayout("points")||[],W=0;W3e3||h&&c_(f,y)>3e3)return u.stopAnimation(),u.setShape({points:g}),void(h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:y})));u.shape.__points=p.current,u.shape.points=d;var v={shape:{points:g}};p.current!==d&&(v.shape.__points=p.next),u.stopAnimation(),ze(u,v,c),h&&(h.setShape({points:d,stackedOnPoints:f}),h.stopAnimation(),ze(h,{shape:{stackedOnPoints:y}},c),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var m=[],x=p.status,_=0;_t&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;et&&(t=o,e=r)}return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},HA=function(n){return Math.round(n.length/2)};function g_(n){return{seriesType:n,reset:function(t,e,i){var r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),h=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(h[1]-h[0])*(c||1),d=Math.round(s/p);if(isFinite(d)&&d>1){o==="lttb"&&t.setData(r.lttbDownSample(r.mapDimension(u.dim),1/d));var f=void 0;j(o)?f=GA[o]:ae(o)&&(f=o),f&&t.setData(r.downSample(r.mapDimension(u.dim),1/d,f,HA))}}}}}var y_=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.getInitialData=function(e,i){return _u(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,r){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(e),s=o.dataToPoint(a);if(r)A(o.getAxes(),function(p,d){if(p.type==="category"&&i!=null){var f=p.getTicksCoords(),g=p.getTickModel().get("alignWithLabel"),y=a[d],v=i[d]==="x1"||i[d]==="y1";if(v&&!g&&(y+=1),f.length<2)return;if(f.length===2)return void(s[d]=p.toGlobalCoord(p.getExtent()[v?1:0]));for(var m=void 0,x=void 0,_=1,b=0;by){x=(w+m)/2;break}b===1&&(_=S-f[0].tickValue)}x==null&&(m?m&&(x=f[f.length-1].coord):x=f[0].coord),s[d]=p.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),c=o.getBaseAxis().isHorizontal()?0:1;s[c]+=u+h/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Mt);Mt.registerClass(y_);const zu=y_,WA=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.getInitialData=function(){return _u(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,r){return r.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=xr(zu.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(zu);var YA=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},XA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="sausage",i}return V(t,n),t.prototype.getDefaultShape=function(){return new YA},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=.5*(s-a),u=a+l,h=i.startAngle,c=i.endAngle,p=i.clockwise,d=2*Math.PI,f=p?c-hs)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var r=i.scale,o=r.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],r.getOrdinalMeta().categories.length-1);a<=s;++a)if(e.ordinalNumbers[a]!==r.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,i,r,o){if(this._isOrderChangedWithinSameData(e,i,r)){var a=this._dataSort(e,r,i);this._isOrderDifferentInView(a,r)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,i,r){var o=i.baseAxis,a=this._dataSort(e,o,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,r=this._data;e&&e.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(o){Sl(o,e,ye(o).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(at),v_={cartesian2d:function(n,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=n.x+n.width,o=n.y+n.height,a=Ed(t.x,n.x),s=Nd(t.x+t.width,r),l=Ed(t.y,n.y),u=Nd(t.y+t.height,o),h=sr?s:a,t.y=c&&l>o?u:l,t.width=h?0:s-a,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),h||c},polar:function(n,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var r=Nd(t.r,n.r),o=Ed(t.r0,n.r0);t.r=r,t.r0=o;var a=r-o<0;return e<0&&(i=t.r,t.r=t.r0,t.r0=i),a}},m_={cartesian2d:function(n,t,e,i,r,o,a,s,l){var u=new Ie({shape:G({},i),z2:1});return u.__dataIndex=e,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(n,t,e,i,r,o,a,s,l){var u=!r&&l?Bu:nn,h=new u({shape:i,z2:1});h.name="item";var c,p,d=b_(r);if(h.calculateTextPosition=(c=d,p=u===Bu,function(y,v,m){var x=v.position;if(!x||x instanceof Array)return js(y,v,m);var _=c(x),b=v.distance!=null?v.distance:5,w=this.shape,S=w.cx,M=w.cy,T=w.r,I=w.r0,C=(T+I)/2,D=w.startAngle,L=w.endAngle,R=(D+L)/2,P=p?Math.abs(T-I)/2:0,E=Math.cos,k=Math.sin,O=S+T*E(D),N=M+T*k(D),B="left",z="top";switch(_){case"startArc":O=S+(I-b)*E(R),N=M+(I-b)*k(R),B="center",z="top";break;case"insideStartArc":O=S+(I+b)*E(R),N=M+(I+b)*k(R),B="center",z="bottom";break;case"startAngle":O=S+C*E(D)+Vu(D,b+P,!1),N=M+C*k(D)+Fu(D,b+P,!1),B="right",z="middle";break;case"insideStartAngle":O=S+C*E(D)+Vu(D,-b+P,!1),N=M+C*k(D)+Fu(D,-b+P,!1),B="left",z="middle";break;case"middle":O=S+C*E(R),N=M+C*k(R),B="center",z="middle";break;case"endArc":O=S+(T+b)*E(R),N=M+(T+b)*k(R),B="center",z="bottom";break;case"insideEndArc":O=S+(T-b)*E(R),N=M+(T-b)*k(R),B="center",z="top";break;case"endAngle":O=S+C*E(L)+Vu(L,b+P,!0),N=M+C*k(L)+Fu(L,b+P,!0),B="left",z="middle";break;case"insideEndAngle":O=S+C*E(L)+Vu(L,-b+P,!0),N=M+C*k(L)+Fu(L,-b+P,!0),B="right",z="middle";break;default:return js(y,v,m)}return(y=y||{}).x=O,y.y=N,y.align=B,y.verticalAlign=z,y}),o){var f=r?"r":"endAngle",g={};h.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?ze:et)(h,{shape:g},o)}return h}};function x_(n,t,e,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?ze:et)(e,{shape:l},t,r,null),(a?ze:et)(e,{shape:u},t?n.baseAxis.model:null,r)}function __(n,t){for(var e=0;e0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(n,t,e){var i=n.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function b_(n){return function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}}(n)}function S_(n,t,e,i,r,o,a,s){var l=t.getItemVisual(e,"style");if(s){if(!o.get("roundCap")){var u=n.shape;G(u,is(i.getModel("itemStyle"),u,!0)),n.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",h)}n.useStyle(l);var c=i.getShallow("cursor");c&&n.attr("cursor",c);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",d=si(i);ai(n,d,{labelFetcher:o,labelDataIndex:e,defaultText:Eu(o.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=n.getTextContent();if(s&&f){var g=i.get(["label","position"]);n.textConfig.inside=g==="middle"||null,function(v,m,x,_){if(Re(_))v.setTextConfig({rotation:_});else if(Y(m))v.setTextConfig({rotation:0});else{var b,w=v.shape,S=w.clockwise?w.startAngle:w.endAngle,M=w.clockwise?w.endAngle:w.startAngle,T=(S+M)/2,I=x(m);switch(I){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":b=T;break;case"startAngle":case"insideStartAngle":b=S;break;case"endAngle":case"insideEndAngle":b=M;break;default:return void v.setTextConfig({rotation:0})}var C=1.5*Math.PI-b;I==="middle"&&C>Math.PI/2&&C<1.5*Math.PI&&(C-=Math.PI),v.setTextConfig({rotation:C})}}(n,g==="outside"?p:g,b_(a),i.get(["label","rotate"]))}vm(f,d,o.getRawValue(e),function(v){return e_(t,v)});var y=i.getModel(["emphasis"]);zn(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),ri(n,i),function(v){return v.startAngle!=null&&v.endAngle!=null&&v.startAngle===v.endAngle}(r)&&(n.style.fill="none",n.style.stroke="none",A(n.states,function(v){v.style&&(v.style.fill=v.style.stroke="none")}))}var qA=function(){},M_=function(n){function t(e){var i=n.call(this,e)||this;return i.type="largeBar",i}return V(t,n),t.prototype.getDefaultShape=function(){return new qA},t.prototype.buildPath=function(e,i){for(var r=i.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h=u[0]&&i<=u[0]+h[0]&&r>=u[1]&&r<=u[1]+h[1])return l[p]}return-1}(this,n.offsetX,n.offsetY);ye(this).dataIndex=t>=0?t:null},30,!1);function C_(n,t,e){if(Od(e,"cartesian2d")){var i=t,r=e.getArea();return{x:n?i.x:r.x,y:n?r.y:i.y,width:n?i.width:r.width,height:n?r.height:i.height}}var o=t;return{cx:(r=e.getArea()).cx,cy:r.cy,r0:n?r.r0:o.r0,r:n?r.r:o.r,startAngle:n?o.startAngle:0,endAngle:n?o.endAngle:2*Math.PI}}const KA=UA;var A_=2*Math.PI,Hu=Math.PI/180;function D_(n,t){return St(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function k_(n,t){var e=D_(n,t),i=n.get("center"),r=n.get("radius");Y(r)||(r=[0,r]);var o,a,s=ne(e.width,t.getWidth()),l=ne(e.height,t.getHeight()),u=Math.min(s,l),h=ne(r[0],u/2),c=ne(r[1],u/2),p=n.coordinateSystem;if(p){var d=p.dataToPoint(i);o=d[0]||0,a=d[1]||0}else Y(i)||(i=[i,i]),o=ne(i[0],s)+e.x,a=ne(i[1],l)+e.y;return{cx:o,cy:a,r0:h,r:c}}function JA(n,t,e){t.eachSeriesByType(n,function(i){var r=i.getData(),o=r.mapDimension("value"),a=D_(i,e),s=k_(i,e),l=s.cx,u=s.cy,h=s.r,c=s.r0,p=-i.get("startAngle")*Hu,d=i.get("endAngle"),f=i.get("padAngle")*Hu;d=d==="auto"?p-A_:-d*Hu;var g=i.get("minAngle")*Hu+f,y=0;r.each(o,function(P){!isNaN(P)&&y++});var v=r.getSum(o),m=Math.PI/(v||y)*2,x=i.get("clockwise"),_=i.get("roseType"),b=i.get("stillShowZeroSum"),w=r.getDataExtent(o);w[0]=0;var S=x?1:-1,M=[p,d],T=S*f/2;Oc(M,!x),p=M[0],d=M[1];var I=Math.abs(d-p),C=I,D=0,L=p;if(r.setLayout({viewRect:a,r:h}),r.each(o,function(P,E){var k;if(isNaN(P))r.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:c,r:_?NaN:h});else{(k=_!=="area"?v===0&&b?m:P*m:I/y)k?B=N=L+S*k/2:(N=L+T,B=O-T),r.setItemLayout(E,{angle:k,startAngle:N,endAngle:B,clockwise:x,cx:l,cy:u,r0:c,r:_?Ae(P,w,[c,h]):h}),L=O}}),Ce?y:g,_=Math.abs(m.label.y-e);if(_>=x.maxY){var b=m.label.x-t-m.len2*r,w=i+m.len,S=Math.abs(b)n.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function zd(n){return n.position==="center"}function QA(n){var t,e,i=n.getData(),r=[],o=!1,a=(n.get("minShowLabelAngle")||0)*$A,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,c=s.y,p=s.height;function d(b){b.ignore=!0}i.each(function(b){var w=i.getItemGraphicEl(b),S=w.shape,M=w.getTextContent(),T=w.getTextGuideLine(),I=i.getItemModel(b),C=I.getModel("label"),D=C.get("position")||I.get(["emphasis","label","position"]),L=C.get("distanceToLabelLine"),R=C.get("alignTo"),P=ne(C.get("edgeDistance"),u),E=C.get("bleedMargin"),k=I.getModel("labelLine"),O=k.get("length");O=ne(O,u);var N=k.get("length2");if(N=ne(N,u),Math.abs(S.endAngle-S.startAngle)0?"right":"left":W>0?"left":"right"}var $=Math.PI,re=0,Ce=C.get("rotate");if(Re(Ce))re=Ce*($/180);else if(D==="center")re=0;else if(Ce==="radial"||Ce===!0)re=W<0?-F+$:-F;else if(Ce==="tangential"&&D!=="outside"&&D!=="outer"){var ve=Math.atan2(W,K);ve<0&&(ve=2*$+ve),K>0&&(ve=$+ve),re=ve-$}if(o=!!re,M.x=B,M.y=z,M.rotation=re,M.setStyle({verticalAlign:"middle"}),se){M.setStyle({align:Z});var _e=M.states.select;_e&&(_e.x+=M.x,_e.y+=M.y)}else{var be=M.getBoundingRect().clone();be.applyTransform(M.getComputedTransform());var Le=(M.style.margin||0)+2.1;be.y-=Le/2,be.height+=Le,r.push({label:M,labelLine:T,position:D,len:O,len2:N,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new de(W,K),linePoints:U,textAlign:Z,labelDistance:L,labelAlignTo:R,edgeDistance:P,bleedMargin:E,rect:be,unconstrainedWidth:be.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:se})}}),!o&&n.get("avoidLabelOverlap")&&function(b,w,S,M,T,I,C,D){for(var L=[],R=[],P=Number.MAX_VALUE,E=-Number.MAX_VALUE,k=0;k0){for(var h=s.getItemLayout(0),c=1;isNaN(h&&h.startAngle)&&c=r.r0}},t.type="pie",t}(at);function Wu(n,t,e){t=Y(t)&&{coordDimensions:t}||G({encodeDefine:n.getEncode()},t);var i=n.getSource(),r=xu(i,t).dimensions,o=new Ja(r,n);return o.initData(i,e),o}var nD=function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},n.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},n.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},n}();const R_=nD;var iD=Ne();const rD=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new R_(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Wu(this,{coordDimensions:["value"],encodeDefaulter:xe(Gm,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),r=iD(i),o=r.seats;if(!o){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),o=r.seats=Sy(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=o[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Qs(e,"labelLine",["show"]);var i=e.labelLine,r=e.emphasis.labelLine;i.show=i.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Mt),oD=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Te);var Bd=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",nt).models[0]},t.type="cartesian2dAxis",t}(Te);ct(Bd,es);var E_={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},aD=pe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E_),Vd=pe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},E_);const N_={category:aD,value:Vd,time:pe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vd),log:le({logBase:10},Vd)};var sD={value:1,category:1,time:1,log:1};function rs(n,t,e,i){A(sD,function(r,o){var a=pe(pe({},N_[o],!0),i,!0),s=function(l){function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=t+"Axis."+o,h}return V(u,l),u.prototype.mergeDefaultAndTheme=function(h,c){var p=La(this),d=p?Pa(h):{};pe(h,c.getTheme().get(o+"Axis")),pe(h,this.getDefaultOption()),h.type=z_(h),p&&yo(h,d,p)},u.prototype.optionUpdated=function(){this.option.type==="category"&&(this.__ordinalMeta=md.createByAxisModel(this))},u.prototype.getCategories=function(h){var c=this.option;if(c.type==="category")return h?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=a,u}(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",z_)}function z_(n){return n.type||(n.data?"category":"value")}var lD=function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),We(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n}(),Fd=["x","y"];function B_(n){return n.type==="interval"||n.type==="time"}var uD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Fd,e}return V(t,n),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(B_(e)&&B_(i)){var r=e.getExtent(),o=i.getExtent(),a=this.dataToPoint([r[0],o[0]]),s=this.dataToPoint([r[1],o[1]]),l=r[1]-r[0],u=o[1]-o[0];if(l&&u){var h=(s[0]-a[0])/l,c=(s[1]-a[1])/u,p=a[0]-r[0]*h,d=a[1]-o[0]*c,f=this._transform=[h,0,0,c,p,d];this._invTransform=ji([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),r=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&r.contain(r.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var r=this.dataToPoint(e),o=this.dataToPoint(i),a=this.getArea(),s=new me(r[0],r[1],o[0]-r[0],o[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,i,r){r=r||[];var o=e[0],a=e[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return ot(r,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(o,i)),r[1]=l.toGlobalCoord(l.dataToCoord(a,i)),r},t.prototype.clampData=function(e,i){var r=this.getAxis("x").scale,o=this.getAxis("y").scale,a=r.getExtent(),s=o.getExtent(),l=r.parse(e[0]),u=o.parse(e[1]);return(i=i||[])[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var r=[];if(this._invTransform)return ot(r,e,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return r[0]=o.coordToData(o.toLocalCoord(e[0]),i),r[1]=a.coordToData(a.toLocalCoord(e[1]),i),r},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-e,a=Math.min(r[0],r[1])-e,s=Math.max(i[0],i[1])-o+e,l=Math.max(r[0],r[1])-a+e;return new me(o,a,s,l)},t}(lD),hD=function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return V(t,n),t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Yn);const cD=hD;function Gd(n,t,e){e=e||{};var i=n.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,f=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=[u==="y"?f[p[l]]:c[0],u==="x"?f[p[l]]:c[3]],o.rotation=Math.PI/2*(u==="x"?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Yt(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function V_(n){return n.get("coordinateSystem")==="cartesian2d"}function F_(n){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,i){var r=i.replace(/Model$/,""),o=n.getReferringComponents(r,nt).models[0];if(!o)throw new Error(r+' "'+mi(n.get(r+"Index"),n.get(r+"Id"),0)+'" not found');t[i]=o}),t}var Hd=Math.log;function G_(n,t,e){var i=Cr.prototype,r=i.getTicks.call(e),o=i.getTicks.call(e,!0),a=r.length-1,s=i.getInterval.call(e),l=b1(n,t),u=l.extent,h=l.fixMin,c=l.fixMax;if(n.type==="log"){var p=Hd(n.base);u=[Hd(u[0])/p,Hd(u[1])/p]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(n);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(n),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=_d(f),g=u[1]-f*a;else{n.getTicks().length-1>a&&(f=_d(f));var v=f*a;(g=Xe((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=Xe(v)):y>0&&u[1]<=0&&(y=0,g=-Xe(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(n,g+f*m,y+f*x),i.setInterval.call(n,f),(m||x)&&i.setNiceExtent.call(n,g+f,y-f);var _,b,w,S=i.getTicks.call(n);S[1]&&(_=f,b=Math.pow(10,aa(Math.abs(_))),(w=Math.abs(_/b))!==0&&w!==1&&w!==2&&w!==3&&w!==5||qs(S[1].value)>qs(f))&&Je("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}var pD=function(){function n(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Fd,this._initCartesian(t,e,i),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var i=this._axesMap;function r(a){var s,l=Oe(a),u=l.length;if(u){for(var h=[],c=u-1;c>=0;c--){var p=a[+l[c]],d=p.model,f=p.scale;xd(f)&&d.get("alignTicks")&&d.get("interval")==null?h.push(p):(Ao(f,d),xd(f)&&(s=p))}h.length&&(s||Ao((s=h.pop()).scale,s.model),A(h,function(g){G_(g.scale,g.model,s.scale)}))}}this._updateScale(t,this.model),r(i.x),r(i.y);var o={};A(i.x,function(a){H_(i,"y",a,o)}),A(i.y,function(a){H_(i,"x",a,o)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,i){var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=St(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;function l(){A(s,function(u){var h=u.isHorizontal(),c=h?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(c[p],c[1-p]),function(d,f){var g=d.getExtent(),y=g[0]+g[1];d.toGlobalCoord=d.dim==="x"?function(v){return v+f}:function(v){return y-v+f},d.toLocalCoord=d.dim==="x"?function(v){return v-f}:function(v){return y-v+f}}(u,h?a.x:a.y)})}l(),o&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=function(d){var f=d.model,g=d.scale;if(f.get(["axisLabel","show"])&&!g.isBlank()){var y,v,m=g.getExtent();v=g instanceof l1?g.count():(y=g.getTicks()).length;var x,_=d.getLabelModel(),b=Qa(d),w=1;v>40&&(w=Math.ceil(v/40));for(var S=0;S0&&r>0||i<0&&r<0)}(n)}const dD=pD;var zi=Math.PI,kr=function(){function n(t,e){this.group=new ge,this.opt=e,this.axisModel=t,le(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new ge({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(t){return!!Y_[t]},n.prototype.add=function(t){Y_[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,e,i){var r,o,a=fc(e-t);return oa(a)?(o=i>0?"top":"bottom",r="center"):oa(a-zi)?(o=i>0?"bottom":"top",r="center"):(o="middle",r=a>0&&a0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:o}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n}(),Y_={axisLine:function(n,t,e,i){var r=t.get(["axisLine","show"]);if(r==="auto"&&n.handleAutoShown&&(r=n.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ot(s,s,a),ot(l,l,a));var h=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new wt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Sa(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var p=t.get(["axisLine","symbol"]);if(p!=null){var d=t.get(["axisLine","symbolSize"]);j(p)&&(p=[p,p]),(j(d)||Re(d))&&(d=[d,d]);var f=Yp(t.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];A([{rotate:n.rotation+Math.PI/2,offset:f[0],r:0},{rotate:n.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,m){if(p[m]!=="none"&&p[m]!=null){var x=ut(p[m],-g/2,-y/2,g,y,h.stroke,!0),_=v.r+v.offset,b=u?l:s;x.attr({rotation:v.rotate,x:b[0]+_*Math.cos(n.rotation),y:b[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),e.add(x)}})}}},axisTickLabel:function(n,t,e,i){var r=function(a,s,l,u){var h=l.axis,c=l.getModel("axisTick"),p=c.get("show");if(p==="auto"&&u.handleAutoShown&&(p=u.handleAutoShown("axisTick")),!(!p||h.scale.isBlank())){for(var d=c.getModel("lineStyle"),f=u.tickDirection*c.get("length"),g=Z_(h.getTicksCoords(),s.transform,f,le(d.getLineStyle(),{stroke:l.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;yc[1]?-1:1,d=[s==="start"?c[0]-p*h:s==="end"?c[1]+p*h:(c[0]+c[1])/2,U_(s)?n.labelOffset+l*h:0],f=t.get("nameRotate");f!=null&&(f=f*zi/180),U_(s)?o=kr.innerTextLayout(n.rotation,f??n.rotation,l):(o=function(b,w,S,M){var T,I,C=fc(S-b),D=M[0]>M[1],L=w==="start"&&!D||w!=="start"&&D;return oa(C-zi/2)?(I=L?"bottom":"top",T="center"):oa(C-1.5*zi)?(I=L?"top":"bottom",T="center"):(I="middle",T=C<1.5*zi&&C>zi/2?L?"left":"right":L?"right":"left"),{rotation:C,textAlign:T,textVerticalAlign:I}}(n.rotation,s,f||0,c),(a=n.axisNameAvailableWidth)!=null&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=t.get("nameTruncate",!0)||{},v=y.ellipsis,m=Yt(n.nameTruncateMaxWidth,y.maxWidth,a),x=new ke({x:d[0],y:d[1],rotation:o.rotation,silent:kr.isLabelSilent(t),style:it(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ta({el:x,componentModel:t,itemName:r}),x.__fullText=r,x.anid="name",t.get("triggerEvent")){var _=kr.makeAxisEventDataBase(t);_.targetType="axisName",_.name=r,ye(x).eventData=_}i.add(x),x.updateTransform(),e.add(x),x.decomposeTransform()}}};function cn(n){n&&(n.ignore=!0)}function X_(n,t){var e=n&&n.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(e&&i){var r=Xo([]);return Zi(r,r,-n.rotation),e.applyTransform(Dn([],r,n.getLocalTransform())),i.applyTransform(Dn([],r,t.getLocalTransform())),e.intersect(i)}}function U_(n){return n==="middle"||n==="center"}function Z_(n,t,e,i,r){for(var o=[],a=[],s=[],l=0;l=0||n===t}function Xd(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[os(n)]}function Ud(n){return!!n.get(["handle","show"])}function os(n){return n.type+"||"+n.id}var Zd={},gD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r,o){this.axisPointerClass&&function(a){var s=Xd(a);if(s){var l=s.axisPointerModel,u=s.axis.scale,h=l.option,c=l.get("status"),p=l.get("value");p!=null&&(p=u.parse(p));var d=Ud(l);c==null&&(h.status=d?"show":"hide");var f=u.getExtent().slice();f[0]>f[1]&&f.reverse(),(p==null||p>f[1])&&(p=f[1]),p0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var g=l;f.color!=null&&(g=le({color:f.color},l));var y=pe(oe(f),{boundaryGap:e,splitNumber:i,scale:r,axisLine:o,axisTick:a,axisLabel:s,name:f.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:p},!1);if(j(h)){var v=y.name;y.name=h.replace("{value}",v??"")}else ae(h)&&(y.name=h(y.name,y));var m=new He(y,null,this.ecModel);return ct(m,es.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:pe({lineStyle:{color:"#bbb"}},ss.axisLine),axisLabel:Yu(ss.axisLabel,!1),axisTick:Yu(ss.axisTick,!1),splitLine:Yu(ss.splitLine,!0),splitArea:Yu(ss.splitArea,!0),indicator:[]},t}(Te);const DD=AD;var kD=["axisLine","axisTickLabel","axisName"],LD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var i=e.coordinateSystem;A(X(i.getIndicatorAxes(),function(r){var o=r.model.get("showName")?r.name:"";return new Bi(r.model,{axisName:o,position:[i.cx,i.cy],rotation:r.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(r){A(kD,r.add,r),this.group.add(r.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var i=e.coordinateSystem,r=i.getIndicatorAxes();if(r.length){var o=e.get("shape"),a=e.getModel("splitLine"),s=e.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),p=l.get("color"),d=u.get("color"),f=Y(p)?p:[p],g=Y(d)?d:[d],y=[],v=[];if(o==="circle")for(var m=r[0].getTicksCoords(),x=i.cx,_=i.cy,b=0;b3?1.4:a>1?1.2:1.1;Kd(this,"zoom","zoomOnMouseWheel",e,{scale:o>0?u:1/u,originX:s,originY:l,isAvailableBehavior:null})}if(r){var h=Math.abs(o);Kd(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(o>0?1:-1)*(h>3?.4:h>1?.15:.05),originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){ew(this._zr,"globalPan")||Kd(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(Zt);function Kd(n,t,e,i,r){n.pointerChecker&&n.pointerChecker(i,r.originX,r.originY)&&(Jn(i.event),tw(n,t,e,i,r))}function tw(n,t,e,i,r){r.isAvailableBehavior=Q(Xu,null,e,i),n.trigger(t,r)}function Xu(n,t,e){var i=e[n];return!n||i&&(!j(i)||t.event[i+"Key"])}const Jd=BD;function nw(n,t,e){var i=n.target;i.x+=t,i.y+=e,i.dirty()}function iw(n,t,e,i){var r=n.target,o=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,r.x-=(e-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var $d,VD={axisPointer:1,tooltip:1,brush:1};function Qd(n,t,e){var i=t.getComponentByElement(n.topTarget),r=i&&i.coordinateSystem;return i&&i!==e&&!VD.hasOwnProperty(i.mainType)&&r&&r.model!==e}function rw(n){j(n)&&(n=new DOMParser().parseFromString(n,"text/xml"));var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Uu={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ow=Oe(Uu),Zu={"alignment-baseline":"textBaseline","stop-color":"stopColor"},aw=Oe(Zu),FD=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(t,e){e=e||{};var i=rw(t);if(!i)throw new Error("Illegal svg");this._defsUsePending=[];var r=new ge;this._root=r;var o=[],a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Wt(i,r,null,!0,!1);for(var u,h,c=i.firstChild;c;)this._parseNode(c,r,o,null,!1,!1),c=c.nextSibling;if(function(f,g){for(var y=0;y=4&&(u={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(u&&s!=null&&l!=null&&(h=fw(u,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var d=r;(r=new ge).add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return e.ignoreRootClip||s==null||l==null||r.setClipPath(new Ie({shape:{x:0,y:0,width:s,height:l}})),{root:r,width:s,height:l,viewBoxRect:u,viewBoxTransform:h,named:o}},n.prototype._parseNode=function(t,e,i,r,o,a){var s,l=t.nodeName.toLowerCase(),u=r;if(l==="defs"&&(o=!0),l==="text"&&(a=!0),l==="defs"||l==="switch")s=e;else{if(!o){var h=$d[l];if(h&&Ut($d,l)){s=h.call(this,t,e);var c=t.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:l,el:s};i.push(p),l==="g"&&(u=p)}else r&&i.push({name:r.name,namedFrom:r,svgNodeTagLower:l,el:s});e.add(s)}}var d=sw[l];if(d&&Ut(sw,l)){var f=d.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=f)}}if(s&&s.isGroup)for(var y=t.firstChild;y;)y.nodeType===1?this._parseNode(y,s,i,u,o,a):y.nodeType===3&&a&&this._parseText(y,s),y=y.nextSibling},n.prototype._parseText=function(t,e){var i=new al({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),function(l,u){var h=u.__selfStyle;if(h){var c=h.textBaseline,p=c;c&&c!=="auto"?c==="baseline"?p="alphabetic":c==="before-edge"||c==="text-before-edge"?p="top":c==="after-edge"||c==="text-after-edge"?p="bottom":c!=="central"&&c!=="mathematical"||(p="middle"):p="alphabetic",l.style.textBaseline=p}var d=u.__inheritedStyle;if(d){var f=d.textAlign,g=f;f&&(f==="middle"&&(g="center"),l.style.textAlign=g)}}(i,e);var r=i.style,o=r.fontSize;o&&o<9&&(r.fontSize=9,i.scaleX*=o/9,i.scaleY*=o/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var s=i.getBoundingRect();return this._textX+=s.width,e.add(i),i},n.internalField=void($d={g:function(t,e){var i=new ge;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new Ie;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(t,e){var i=new oi;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new wt;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(t,e){var i=new yl;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(t,e){var i,r=t.getAttribute("points");r&&(i=hw(r));var o=new Vn({shape:{points:i||[]},silent:!0});return pn(e,o),Wt(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,e){var i,r=t.getAttribute("points");r&&(i=hw(r));var o=new _n({shape:{points:i||[]},silent:!0});return pn(e,o),Wt(t,o,this._defsUsePending,!1,!1),o},image:function(t,e){var i=new Gt;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new ge;return pn(e,s),Wt(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var i=t.getAttribute("x"),r=t.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),r!=null&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new ge;return pn(e,s),Wt(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,e){var i=Vv(t.getAttribute("d")||"");return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),n}(),sw={lineargradient:function(n){var t=parseInt(n.getAttribute("x1")||"0",10),e=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),r=parseInt(n.getAttribute("y2")||"0",10),o=new wa(t,e,i,r);return lw(n,o),uw(n,o),o},radialgradient:function(n){var t=parseInt(n.getAttribute("cx")||"0",10),e=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),r=new Kc(t,e,i);return lw(n,r),uw(n,r),r}};function lw(n,t){n.getAttribute("gradientUnits")==="userSpaceOnUse"&&(t.global=!0)}function uw(n,t){for(var e=n.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var i=e.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};dw(e,o,o);var a=o.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}e=e.nextSibling}}function pn(n,t){n&&n.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),le(t.__inheritedStyle,n.__inheritedStyle))}function hw(n){for(var t=ju(n),e=[],i=0;i0;d-=2){var f=c[d],g=c[d-1],y=ju(f);switch(p=p||[1,0,0,1,0,0],g){case"translate":Ui(p,p,[parseFloat(y[0]),parseFloat(y[1]||"0")]);break;case"scale":Oh(p,p,[parseFloat(y[0]),parseFloat(y[1]||y[0])]);break;case"rotate":Zi(p,p,-parseFloat(y[0])*ef,[parseFloat(y[1]||"0"),parseFloat(y[2]||"0")]);break;case"skewX":Dn(p,[1,0,Math.tan(parseFloat(y[0])*ef),1,0,0],p);break;case"skewY":Dn(p,[1,Math.tan(parseFloat(y[0])*ef),0,1,0,0],p);break;case"matrix":p[0]=parseFloat(y[0]),p[1]=parseFloat(y[1]),p[2]=parseFloat(y[2]),p[3]=parseFloat(y[3]),p[4]=parseFloat(y[4]),p[5]=parseFloat(y[5])}}u.setLocalTransform(p)}}(n,t),dw(n,a,s),i||function(l,u,h){for(var c=0;c0,g={api:i,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:f,isGeo:a,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,i),this._updateMapSelectHandler(t,u,i,r)},n.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=te(),i=te(),r=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function h(d,f){return f&&(d=f(d)),d&&[d[0]*o.scaleX+o.x,d[1]*o.scaleY+o.y]}function c(d){for(var f=[],g=!u&&l&&l.project,y=0;y=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;ai(t,si(i),{labelFetcher:p,labelDataIndex:c,defaultText:e},d);var f=t.getTextContent();if(f&&(yw(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function _w(n,t,e,i,r,o){n.data?n.data.setItemGraphicEl(o,t):ye(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:e,region:i&&i.option||{}}}function ww(n,t,e,i,r){n.data||Ta({el:t,componentModel:r,itemName:e,itemTooltipOption:i.get("tooltip")})}function bw(n,t,e,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return zn(t,a,o.get("blurScope"),o.get("disabled")),n.isGeo&&function(s,l,u){var h=ye(s);h.componentMainType=l.mainType,h.componentIndex=l.componentIndex,h.componentHighDownName=u}(t,r,e),a}function Sw(n,t,e){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(n,function(l){s.lineStart();for(var u=0;u-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Mt);const ik=nk;function rk(n){var t={};n.eachSeriesByType("map",function(e){var i=e.getHostGeoModel(),r=i?"o"+i.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)}),A(t,function(e,i){for(var r,o,a,s=(r=X(e,function(u){return u.getData()}),o=e[0].get("mapValueCalculation"),a={},A(r,function(u){u.each(u.mapDimension("value"),function(h,c){var p="ec-"+u.getName(c);a[p]=a[p]||[],isNaN(h)||a[p].push(h)})}),r[0].map(r[0].mapDimension("value"),function(u,h){for(var c="ec-"+r[0].getName(h),p=0,d=1/0,f=-1/0,g=a[c].length,y=0;y1?(d.width=p,d.height=p/x):(d.height=p,d.width=p*x),d.y=c[1]-d.height/2,d.x=c[0]-d.width/2;else{var b=n.getBoxLayoutParams();b.aspect=x,d=St(b,{width:v,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(n.get("center"),t),this.setZoom(n.get("zoom"))}var lk=function(){function n(){this.dimensions=Cw}return n.prototype.create=function(t,e){var i=[];function r(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}t.eachComponent("geo",function(a,s){var l=a.get("map"),u=new kw(l+s,l,G({nameMap:a.get("nameMap")},r(a)));u.zoomLimit=a.get("scaleLimit"),i.push(u),a.coordinateSystem=u,u.model=a,u.resize=Lw,u.resize(a,e)}),t.eachSeries(function(a){if(a.get("coordinateSystem")==="geo"){var s=a.get("geoIndex")||0;a.coordinateSystem=i[s]}});var o={};return t.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),A(o,function(a,s){var l=X(a,function(h){return h.get("nameMap")}),u=new kw(s,s,G({nameMap:gg(l)},r(a[0])));u.zoomLimit=Yt.apply(null,X(a,function(h){return h.get("scaleLimit")})),i.push(u),u.resize=Lw,u.resize(a[0],e),A(a,function(h){h.coordinateSystem=u,function(c,p){A(p.get("geoCoord"),function(d,f){c.addGeoCoord(f,d)})}(u,h)})}),i},n.prototype.getFilledRegions=function(t,e,i,r){for(var o=(t||[]).slice(),a=te(),s=0;s=0;){var c=s[l];c.hierNode.prelim+=u,c.hierNode.modifier+=u,h+=c.hierNode.change,u+=c.hierNode.shift+h}})(n);var o=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;r?(n.hierNode.prelim=r.hierNode.prelim+t(n,r),n.hierNode.modifier=n.hierNode.prelim-o):n.hierNode.prelim=o}else r&&(n.hierNode.prelim=r.hierNode.prelim+t(n,r));n.parentNode.hierNode.defaultAncestor=function(a,s,l,u){if(s){for(var h=a,c=a,p=c.parentNode.children[0],d=s,f=h.hierNode.modifier,g=c.hierNode.modifier,y=p.hierNode.modifier,v=d.hierNode.modifier;d=of(d),c=af(c),d&&c;){h=of(h),p=af(p),h.hierNode.ancestor=a;var m=d.hierNode.prelim+v-c.hierNode.prelim-g+u(d,c);m>0&&(mk(vk(d,a,l),a,m),g+=m,f+=m),v+=d.hierNode.modifier,g+=c.hierNode.modifier,f+=h.hierNode.modifier,y+=p.hierNode.modifier}d&&!of(h)&&(h.hierNode.thread=d,h.hierNode.modifier+=v-f),c&&!af(p)&&(p.hierNode.thread=c,p.hierNode.modifier+=g-y,l=a)}return l}(n,r,n.parentNode.hierNode.defaultAncestor||i[0],t)}function yk(n){var t=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:t},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Ew(n){return arguments.length?n:xk}function us(n,t){return n-=Math.PI/2,{x:t*Math.cos(n),y:t*Math.sin(n)}}function of(n){var t=n.children;return t.length&&n.isExpand?t[t.length-1]:n.hierNode.thread}function af(n){var t=n.children;return t.length&&n.isExpand?t[0]:n.hierNode.thread}function vk(n,t,e){return n.hierNode.ancestor.parentNode===t.parentNode?n.hierNode.ancestor:e}function mk(n,t,e){var i=e/(t.hierNode.i-n.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,n.hierNode.change+=i}function xk(n,t){return n.parentNode===t.parentNode?1:2}var _k=function(){this.parentPoint=[],this.childPoints=[]},wk=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _k},t.prototype.buildPath=function(e,i){var r=i.childPoints,o=r.length,a=i.parentPoint,s=r[0],l=r[o-1];if(o===1)return e.moveTo(a[0],a[1]),void e.lineTo(s[0],s[1]);var u=i.orient,h=u==="TB"||u==="BT"?0:1,c=1-h,p=ne(i.forkPosition,1),d=[];d[h]=a[h],d[c]=a[c]+(l[c]-a[c])*p,e.moveTo(a[0],a[1]),e.lineTo(d[0],d[1]),e.moveTo(s[0],s[1]),d[h]=s[h],e.lineTo(d[0],d[1]),d[h]=l[h],e.lineTo(d[0],d[1]),e.lineTo(l[0],l[1]);for(var f=1;fm.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),T=M.get("rotate"),I=T*(Math.PI/180),C=y.getTextContent();C&&(y.setTextConfig({position:M.get("position")||S,rotation:T==null?-_:I,origin:"center"}),C.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),L=D==="relative"?_h(a.getAncestorsIndices(),a.getDescendantIndices()):D==="ancestor"?a.getAncestorsIndices():D==="descendant"?a.getDescendantIndices():null;L&&(ye(e).focus=L),function(R,P,E,k,O,N,B,z){var U=P.getModel(),Z=R.get("edgeShape"),F=R.get("layout"),W=R.getOrient(),K=R.get(["lineStyle","curveness"]),se=R.get("edgeForkPosition"),he=U.getModel("lineStyle").getLineStyle(),ie=k.__edge;if(Z==="curve")P.parentNode&&P.parentNode!==E&&(ie||(ie=k.__edge=new ml({shape:sf(F,W,K,O,O)})),ze(ie,{shape:sf(F,W,K,N,B)},R));else if(Z==="polyline"){if(F!=="orthogonal")throw new Error("The polyline edgeShape can only be used in orthogonal layout");if(P!==E&&P.children&&P.children.length!==0&&P.isExpand===!0){for(var q=P.children,J=[],H=0;He&&(e=r.height)}this.height=e+1},n.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,r=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},n.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;es&&(s=u.depth)});var l=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return a.root.eachNode("preorder",function(u){var h=u.hostTree.data.getRawDataItem(u.dataIndex);u.isExpand=h&&h.collapsed!=null?!h.collapsed:u.depth<=l}),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,i,r){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return Wn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=function(o,a){for(var s=[];o;){var l=o.dataIndex;s.push({name:o.name,dataIndex:l,value:a.getRawValue(l)}),o=o.parentNode}return s.reverse(),s}(r,this),i.collapsed=!r.isExpand,i},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Mt);const Ok=Pk;function hs(n,t){for(var e,i=[n];e=i.pop();)if(t(e),e.isExpand){var r=e.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function Rk(n,t){n.eachSeriesByType("tree",function(e){(function(i,r){var o=function(w,S){return St(w.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()})}(i,r);i.layoutInfo=o;var a=i.get("layout"),s=0,l=0,u=null;a==="radial"?(s=2*Math.PI,l=Math.min(o.height,o.width)/2,u=Ew(function(w,S){return(w.parentNode===S.parentNode?1:2)/w.depth})):(s=o.width,l=o.height,u=Ew());var h=i.getData().tree.root,c=h.children[0];if(c){(function(w){var S=w;S.hierNode={defaultAncestor:null,ancestor:S,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var M,T,I=[S];M=I.pop();)if(T=M.children,M.isExpand&&T.length)for(var C=T.length-1;C>=0;C--){var D=T[C];D.hierNode={defaultAncestor:null,ancestor:D,prelim:0,modifier:0,change:0,shift:0,i:C,thread:null},I.push(D)}})(h),function(w,S,M){for(var T,I=[w],C=[];T=I.pop();)if(C.push(T),T.isExpand){var D=T.children;if(D.length)for(var L=0;Ld.getLayout().x&&(d=w),w.depth>f.depth&&(f=w)});var g=p===d?1:u(p,d)/2,y=g-p.getLayout().x,v=0,m=0,x=0,_=0;if(a==="radial")v=s/(d.getLayout().x+g+y),m=l/(f.depth-1||1),hs(c,function(w){x=(w.getLayout().x+y)*v,_=(w.depth-1)*m;var S=us(x,_);w.setLayout({x:S.x,y:S.y,rawX:x,rawY:_},!0)});else{var b=i.getOrient();b==="RL"||b==="LR"?(m=l/(d.getLayout().x+g+y),v=s/(f.depth-1||1),hs(c,function(w){_=(w.getLayout().x+y)*m,x=b==="LR"?(w.depth-1)*v:s-(w.depth-1)*v,w.setLayout({x,y:_},!0)})):b!=="TB"&&b!=="BT"||(v=s/(d.getLayout().x+g+y),m=l/(f.depth-1||1),hs(c,function(w){x=(w.getLayout().x+y)*v,_=b==="TB"?(w.depth-1)*m:l-(w.depth-1)*m,w.setLayout({x,y:_},!0)}))}}})(e,t)})}function Ek(n){n.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(i){var r=i.getModel().getModel("itemStyle").getItemStyle();G(e.ensureUniqueItemVisual(i.dataIndex,"style"),r)})})}var cs=A,Nk=ee,Ku=-1,uf=function(){function n(t){var e=t.mappingMethod,i=t.type,r=this.option=oe(t);this.type=i,this.mappingMethod=e,this._normalizeData=zk[e];var o=n.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[e],e==="piecewise"?(hf(r),function(a){var s=a.pieceList;a.hasSpecialVisual=!1,A(s,function(l,u){l.originIndex=u,l.visual!=null&&(a.hasSpecialVisual=!0)})}(r)):e==="category"?r.categories?function(a){var s=a.categories,l=a.categoryMap={},u=a.visual;if(cs(s,function(p,d){l[p]=d}),!Y(u)){var h=[];ee(u)?cs(u,function(p,d){var f=l[d];h[f??Ku]=p}):h[Ku]=u,u=Ww(a,h)}for(var c=s.length-1;c>=0;c--)u[c]==null&&(delete l[s[c]],s.pop())}(r):hf(r,!0):(ue(e!=="linear"||r.dataExtent),hf(r))}return n.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},n.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},n.listVisualTypes=function(){return Oe(n.visualHandlers)},n.isValidType=function(t){return n.visualHandlers.hasOwnProperty(t)},n.eachVisual=function(t,e,i){ee(t)?A(t,e,i):e.call(i,t)},n.mapVisual=function(t,e,i){var r,o=Y(t)?[]:ee(t)?{}:(r=!0,null);return n.eachVisual(t,function(a,s){var l=e.call(i,a,s);r?o=l:o[s]=l}),o},n.retrieveVisuals=function(t){var e,i={};return t&&cs(n.visualHandlers,function(r,o){t.hasOwnProperty(o)&&(i[o]=t[o],e=!0)}),e?i:null},n.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else{if(!Nk(t))return[];var e=[];cs(t,function(i,r){e.push(r)}),t=e}return t.sort(function(i,r){return r==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),t},n.dependsOn=function(t,e){return e==="color"?!(!t||t.indexOf(e)!==0):t===e},n.findPieceIndex=function(t,e,i){for(var r,o=1/0,a=0,s=e.length;a=a/3?1:2),h=i.y-o(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,e.moveTo(u,h),e.lineTo(i.x+r(l)*s,i.y+o(l)*s),e.lineTo(i.x+r(i.angle)*a,i.y+o(i.angle)*a),e.lineTo(i.x-r(l)*s,i.y-o(l)*s),e.lineTo(u,h)},t}(De);const Fk=Vk;function Qu(n,t){var e=n==null?"":n+"";return t&&(j(t)?e=t.replace("{value}",e):ae(t)&&(e=t(n))),e}var Gk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this.group.removeAll();var o=e.get(["axisLine","lineStyle","color"]),a=function(s,l){var u=s.get("center"),h=l.getWidth(),c=l.getHeight(),p=Math.min(h,c);return{cx:ne(u[0],l.getWidth()),cy:ne(u[1],l.getHeight()),r:ne(s.get("radius"),p/2)}}(e,r);this._renderMain(e,i,r,o,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,i,r,o,a){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,h=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),p=c.get("roundCap")?Bu:nn,d=c.get("show"),f=c.getModel("lineStyle"),g=f.get("width"),y=[u,h];Oc(y,!l);for(var v=(h=y[1])-(u=y[0]),m=u,x=[],_=0;d&&_=S&&(M===0?0:o[M-1][0])Math.PI/2&&(F+=Math.PI):Z==="tangential"?F=-I-Math.PI/2:Re(Z)&&(F=Z*Math.PI/180),F===0?d.add(new ke({style:it(b,{text:N,x:z,y:U,verticalAlign:p<-.8?"top":p>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:B}),silent:!0})):d.add(new ke({style:it(b,{text:N,x:z,y:U,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:z,originY:U,rotation:F}))}if(_.get("show")&&E!==w){O=(O=_.get("distance"))?O+h:h;for(var W=0;W<=S;W++){c=Math.cos(I),p=Math.sin(I);var K=new wt({shape:{x1:c*(y-O)+f,y1:p*(y-O)+g,x2:c*(y-T-O)+f,y2:p*(y-T-O)+g},silent:!0,style:R});R.stroke==="auto"&&K.setStyle({stroke:o((E+W/S)/w)}),d.add(K),I+=D}I-=D}else I+=C}},t.prototype._renderPointer=function(e,i,r,o,a,s,l,u,h){var c=this.group,p=this._data,d=this._progressEls,f=[],g=e.get(["pointer","show"]),y=e.getModel("progress"),v=y.get("show"),m=e.getData(),x=m.mapDimension("value"),_=+e.get("min"),b=+e.get("max"),w=[_,b],S=[s,l];function M(I,C){var D,L=m.getItemModel(I).getModel("pointer"),R=ne(L.get("width"),a.r),P=ne(L.get("length"),a.r),E=e.get(["pointer","icon"]),k=L.get("offsetCenter"),O=ne(k[0],a.r),N=ne(k[1],a.r),B=L.get("keepAspect");return(D=E?ut(E,O-R/2,N-P,R,P,null,B):new Fk({shape:{angle:-Math.PI/2,width:R,r:P,x:O,y:N}})).rotation=-(C+Math.PI/2),D.x=a.cx,D.y=a.cy,D}function T(I,C){var D=y.get("roundCap")?Bu:nn,L=y.get("overlap"),R=L?y.get("width"):h/m.count(),P=L?a.r-R:a.r-(I+1)*R,E=L?a.r:a.r-I*R,k=new D({shape:{startAngle:s,endAngle:C,cx:a.cx,cy:a.cy,clockwise:u,r0:P,r:E}});return L&&(k.z2=b-m.get(x,I)%b),k}(v||g)&&(m.diff(p).add(function(I){var C=m.get(x,I);if(g){var D=M(I,s);et(D,{rotation:-((isNaN(+C)?S[0]:Ae(C,w,S,!0))+Math.PI/2)},e),c.add(D),m.setItemGraphicEl(I,D)}if(v){var L=T(I,s),R=y.get("clip");et(L,{shape:{endAngle:Ae(C,w,S,R)}},e),c.add(L),Nc(e.seriesIndex,m.dataType,I,L),f[I]=L}}).update(function(I,C){var D=m.get(x,I);if(g){var L=p.getItemGraphicEl(C),R=L?L.rotation:s,P=M(I,R);P.rotation=R,ze(P,{rotation:-((isNaN(+D)?S[0]:Ae(D,w,S,!0))+Math.PI/2)},e),c.add(P),m.setItemGraphicEl(I,P)}if(v){var E=d[C],k=T(I,E?E.shape.endAngle:s),O=y.get("clip");ze(k,{shape:{endAngle:Ae(D,w,S,O)}},e),c.add(k),Nc(e.seriesIndex,m.dataType,I,k),f[I]=k}}).execute(),m.each(function(I){var C=m.getItemModel(I),D=C.getModel("emphasis"),L=D.get("focus"),R=D.get("blurScope"),P=D.get("disabled");if(g){var E=m.getItemGraphicEl(I),k=m.getItemVisual(I,"style"),O=k.fill;if(E instanceof Gt){var N=E.style;E.useStyle(G({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},k))}else E.useStyle(k),E.type!=="pointer"&&E.setColor(O);E.setStyle(C.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",o(Ae(m.get(x,I),w,[0,1],!0))),E.z2EmphasisLift=0,ri(E,C),zn(E,L,R,P)}if(v){var B=f[I];B.useStyle(m.getItemVisual(I,"style")),B.setStyle(C.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,ri(B,C),zn(B,L,R,P)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,i){var r=e.getModel("anchor");if(r.get("show")){var o=r.get("size"),a=r.get("icon"),s=r.get("offsetCenter"),l=r.get("keepAspect"),u=ut(a,i.cx-o/2+ne(s[0],i.r),i.cy-o/2+ne(s[1],i.r),o,o,null,l);u.z2=r.get("showAbove")?1:0,u.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,i,r,o,a){var s=this,l=e.getData(),u=l.mapDimension("value"),h=+e.get("min"),c=+e.get("max"),p=new ge,d=[],f=[],g=e.isAnimationEnabled(),y=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(v){d[v]=new ke({silent:!0}),f[v]=new ke({silent:!0})}).update(function(v,m){d[v]=s._titleEls[m],f[v]=s._detailEls[m]}).execute(),l.each(function(v){var m=l.getItemModel(v),x=l.get(u,v),_=new ge,b=o(Ae(x,[h,c],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var S=w.get("offsetCenter"),M=a.cx+ne(S[0],a.r),T=a.cy+ne(S[1],a.r);(k=d[v]).attr({z2:y?0:2,style:it(w,{x:M,y:T,text:l.getName(v),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(k)}var I=m.getModel("detail");if(I.get("show")){var C=I.get("offsetCenter"),D=a.cx+ne(C[0],a.r),L=a.cy+ne(C[1],a.r),R=ne(I.get("width"),a.r),P=ne(I.get("height"),a.r),E=e.get(["progress","show"])?l.getItemVisual(v,"style").fill:b,k=f[v],O=I.get("formatter");k.attr({z2:y?0:2,style:it(I,{x:D,y:L,text:Qu(x,O),width:isNaN(R)?null:R,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:E})}),vm(k,{normal:I},x,function(N){return Qu(N,O)}),g&&mm(k,v,l,e,{getFormattedLabel:function(N,B,z,U,Z,F){return Qu(F?F.interpolatedValue:x,O)}}),_.add(k)}p.add(_)}),this.group.add(p),this._titleEls=d,this._detailEls=f},t.type="gauge",t}(at);const Hk=Gk,Wk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return V(t,n),t.prototype.getInitialData=function(e,i){return Wu(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Mt);function Yk(n){(function(t){if(!t.parallel){var e=!1;A(t.series,function(i){i&&i.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}})(n),function(t){var e=Qe(t.parallelAxis);A(e,function(i){if(ee(i)){var r=i.parallelIndex||0,o=Qe(t.parallel)[r];o&&o.parallelAxisDefault&&pe(i,o.parallelAxisDefault,!1)}})}(n)}var Xk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this._model=e,this._api=r,this._handlers||(this._handlers={},A(Uk,function(o,a){r.getZr().on(a,this._handlers[a]=Q(o,this))},this)),Fa(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,i){Ga(this,"_throttledDispatchExpand"),A(this._handlers,function(r,o){i.getZr().off(o,r)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(G({type:"parallelAxisExpand"},e))},t.type="parallel",t}(je),Uk={mousedown:function(n){df(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var t=this._mouseDownPoint;if(df(this,"click")&&t){var e=[n.offsetX,n.offsetY];if(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!this._mouseDownPoint&&df(this,"mousemove")){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=e.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function df(n,t){var e=n._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const Zk=Xk,jk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var i=this.option;e&&pe(i,e,!0),this._initDimensions()},t.prototype.contains=function(e,i){var r=e.get("parallelIndex");return r!=null&&i.getComponent("parallel",r)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){e.hasOwnProperty(i)&&(this.option[i]=e[i])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],i=this.parallelAxisIndex=[];A(We(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this),function(r){e.push("dim"+r.get("dim")),i.push(r.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Te);var qk=function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.type=o||"value",s.axisIndex=a,s}return V(t,n),t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Yn);const Kk=qk;function Rr(n,t,e,i,r,o){n=n||0;var a=e[1]-e[0];if(r!=null&&(r=ko(r,[0,a])),o!=null&&(o=Math.max(o,r??0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=ko(s,[0,a]),r=o=ko(s,[r,o]),i=0}t[0]=ko(t[0],e),t[1]=ko(t[1],e);var l=ff(t,i);t[i]+=n;var u,h=r||0,c=e.slice();return l.sign<0?c[0]+=h:c[1]-=h,t[i]=ko(t[i],c),u=ff(t,i),r!=null&&(u.sign!==l.sign||u.spano&&(t[1-i]=t[i]+u.sign*o),t}function ff(n,t){var e=n[t]-n[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ko(n,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,n))}var gf=A,Yw=Math.min,Xw=Math.max,Uw=Math.floor,Jk=Math.ceil,Zw=Xe,$k=Math.PI,Qk=function(){function n(t,e,i){this.type="parallel",this._axesMap=te(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,i)}return n.prototype._init=function(t,e,i){var r=t.dimensions,o=t.parallelAxisIndex;gf(r,function(a,s){var l=o[s],u=e.getComponent("parallelAxis",l),h=this._axesMap.set(a,new Kk(a,Au(u),[0,0],u.get("type"),l)),c=h.type==="category";h.onBand=c&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},n.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),i=e.axisBase,r=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],s=t[o];return a>=i&&a<=i+e.axisLength&&s>=r&&s<=r+e.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var r=i.getData();gf(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(r,r.mapDimension(o)),Ao(a.scale,a.model)},this)}},this)},n.prototype.resize=function(t,e){this._rect=St(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var t,e=this._model,i=this._rect,r=["x","y"],o=["width","height"],a=e.get("layout"),s=a==="horizontal"?0:1,l=i[o[s]],u=[0,l],h=this.dimensions.length,c=eh(e.get("axisExpandWidth"),u),p=eh(e.get("axisExpandCount")||0,[0,h]),d=e.get("axisExpandable")&&h>3&&h>p&&p>1&&c>0&&l>0,f=e.get("axisExpandWindow");f?(t=eh(f[1]-f[0],u),f[1]=f[0]+t):(t=eh(c*(p-1),u),(f=[c*(e.get("axisExpandCenter")||Uw(h/2))-t/2])[1]=f[0]+t);var g=(l-t)/(h-p);g<3&&(g=0);var y=[Uw(Zw(f[0]/c,1))+1,Jk(Zw(f[1]/c,1))-1],v=g/c*f[0];return{layout:a,pixelDimIndex:s,layoutBase:i[r[s]],layoutLength:l,axisBase:i[r[1-s]],axisLength:i[o[1-s]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:f,axisCount:h,winInnerIndices:y,axisExpandWindow0Pos:v}},n.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,i=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;e.each(function(a){var s=[0,r.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),gf(i,function(a,s){var l=(r.axisExpandable?tL:eL)(s,r),u={horizontal:{x:l.position,y:r.axisLength},vertical:{x:0,y:l.position}},h={horizontal:$k/2,vertical:0},c=[u[o].x+t.x,u[o].y+t.y],p=h[o],d=[1,0,0,1,0,0];Zi(d,d,p),Ui(d,d,c),this._axesLayout[a]={position:c,rotation:p,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(t){return this._axesMap.get(t)},n.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},n.prototype.eachActiveState=function(t,e,i,r){i==null&&(i=0),r==null&&(r=t.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];A(a,function(g){s.push(t.mapDimension(g)),l.push(o.get(g).model)});for(var u=this.hasAxisBrushed(),h=i;ho*(1-c[0])?(u="jump",s=l-o*(1-c[2])):(s=l-o*c[1])>=0&&(s=l-o*(1-c[1]))<=0&&(s=0),(s*=e.axisExpandWidth/h)?Rr(s,r,a,"all"):u="none";else{var d=r[1]-r[0];(r=[Xw(0,a[1]*l/d-d/2)])[1]=Yw(a[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:u}},n}();function eh(n,t){return Yw(Xw(n,t[0]),t[1])}function eL(n,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*n,axisNameAvailableWidth:e,axisLabelShow:!0}}function tL(n,t){var e,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,h=!1;return n=0;r--)Qn(i[r])},t.prototype.getActiveState=function(e){var i=this.activeIntervals;if(!i.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(i.length===1){var r=i[0];if(r[0]<=e&&e<=r[1])return"active"}else for(var o=0,a=i.length;oaL}(n)||o){if(a&&!o){s.brushMode==="single"&&xf(n);var l=oe(s);l.brushType=hb(l.brushType,a),l.panelId=a===Er?null:a.panelId,o=n._creatingCover=$w(n,l),n._covers.push(o)}if(o){var u=th[hb(n._brushType,a)];o.__brushOption.range=u.getCreatingRange(Sf(n,o,n._track)),i&&(Qw(n,o),u.updateCommon(n,o)),eb(n,o),r={isEnd:i}}}else i&&s.brushMode==="single"&&s.removeOnClick&&mf(n,t,e)&&xf(n)&&(r={isEnd:i,removeOnClick:!0});return r}function hb(n,t){return n==="auto"?(ue(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):n}var dL={mousedown:function(n){if(this._dragging)cb(this,n);else if(!n.target||!n.target.draggable){Mf(n);var t=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null,(this._creatingPanel=mf(this,n,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(n){var t=n.offsetX,e=n.offsetY,i=this.group.transformCoordToLocal(t,e);if(function(o,a,s){if(o._brushType&&!function(d,f,g){var y=d._zr;return f<0||f>y.getWidth()||g<0||g>y.getHeight()}(o,a.offsetX,a.offsetY)){var l=o._zr,u=o._covers,h=mf(o,a,s);if(!o._dragging)for(var c=0;c0?1:-1})(e,o,r,i,c),function(f,g,y,v,m,x,_,b,w,S){var M,T=w.valueDim,I=w.categoryDim,C=Math.abs(y[I.wh]),D=f.getItemVisual(g,"symbolSize");M=Y(D)?D.slice():D==null?["100%","100%"]:[D,D],M[I.index]=ne(M[I.index],C),M[T.index]=ne(M[T.index],v?C:Math.abs(x)),S.symbolSize=M;var L=S.symbolScale=[M[0]/b,M[1]/b];L[T.index]*=(w.isHorizontal?-1:1)*_}(n,t,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(f,g,y,v,m){var x=f.get(xL)||0;x&&(Cf.attr({scaleX:g[0],scaleY:g[1],rotation:y}),Cf.updateTransform(),x/=Cf.getLineScale(),x*=g[v.valueDim.index]),m.valueLineWidth=x||0}(e,c.symbolScale,l,i,c);var p=c.symbolSize,d=Yp(e.get("symbolOffset"),p);return function(f,g,y,v,m,x,_,b,w,S,M,T){var I=M.categoryDim,C=M.valueDim,D=T.pxSign,L=Math.max(g[C.index]+b,0),R=L;if(v){var P=Math.abs(w),E=Yt(f.get("symbolMargin"),"15%")+"",k=!1;E.lastIndexOf("!")===E.length-1&&(k=!0,E=E.slice(0,E.length-1));var O=ne(E,g[C.index]),N=Math.max(L+2*O,0),B=k?0:2*O,z=Ks(v),U=z?v:Db((P+B)/N);N=L+2*(O=(P-U*L)/2/(k?U:Math.max(U-1,1))),B=k?0:2*O,z||v==="fixed"||(U=S?Db((Math.abs(S)+B)/N):0),R=U*N-B,T.repeatTimes=U,T.symbolMargin=O}var Z=D*(R/2),F=T.pathPosition=[];F[I.index]=y[I.wh]/2,F[C.index]=_==="start"?Z:_==="end"?w-Z:w/2,x&&(F[0]+=x[0],F[1]+=x[1]);var W=T.bundlePosition=[];W[I.index]=y[I.xy],W[C.index]=y[C.xy];var K=T.barRectShape=G({},y);K[C.wh]=D*Math.max(Math.abs(y[C.wh]),Math.abs(F[C.index]+Z)),K[I.wh]=y[I.wh];var se=T.clipShape={};se[I.xy]=-y[I.xy],se[I.wh]=M.ecSize[I.wh],se[C.xy]=0,se[C.wh]=y[C.wh]}(e,p,r,o,0,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function Af(n,t){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(t)))}function xb(n){var t=n.symbolPatternSize,e=ut(n.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function _b(n,t,e,i){var r=n.__pictorialBundle,o=e.symbolSize,a=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,h=0,c=o[t.valueDim.index]+a+2*e.symbolMargin;for(Df(n,function(g){g.__pictorialAnimationIndex=h,g.__pictorialRepeatTimes=u,h0:v<0)&&(m=u-1-g),y[l.index]=c*(m-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function wb(n,t,e,i){var r=n.__pictorialBundle,o=n.__pictorialMainPath;o?Po(o,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,i):(o=n.__pictorialMainPath=xb(e),r.add(o),Po(o,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,i))}function bb(n,t,e){var i=G({},t.barRectShape),r=n.__pictorialBarRect;r?Po(r,null,{shape:i},t,e):((r=n.__pictorialBarRect=new Ie({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,n.add(r))}function Sb(n,t,e,i){if(e.symbolClip){var r=n.__pictorialClipPath,o=G({},e.clipShape),a=t.valueDim,s=e.animationModel,l=e.dataIndex;if(r)ze(r,{shape:o},s,l);else{o[a.wh]=0,r=new Ie({shape:o}),n.__pictorialBundle.setClipPath(r),n.__pictorialClipPath=r;var u={};u[a.wh]=e.clipShape[a.wh],uo[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function Mb(n,t){var e=n.getItemModel(t);return e.getAnimationDelayParams=_L,e.isAnimationEnabled=wL,e}function _L(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function wL(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Tb(n,t,e,i){var r=new ge,o=new ge;return r.add(o),r.__pictorialBundle=o,o.x=e.bundlePosition[0],o.y=e.bundlePosition[1],e.symbolRepeat?_b(r,t,e):wb(r,0,e),bb(r,e,i),Sb(r,t,e,i),r.__pictorialShapeStr=Cb(n,e),r.__pictorialSymbolMeta=e,r}function Ib(n,t,e,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Df(i,function(a){o.push(a)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(e=null),A(o,function(a){Ci(a,{scaleX:0,scaleY:0},e,t,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(t,null)}function Cb(n,t){return[n.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Df(n,t,e){A(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&t.call(e,i)})}function Po(n,t,e,i,r,o){t&&n.attr(t),i.symbolClip&&!r?e&&n.attr(e):e&&uo[r?"updateProps":"initProps"](n,e,i.animationModel,i.dataIndex,o)}function Ab(n,t,e){var i=e.dataIndex,r=e.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),p=o.get("scale");Df(n,function(g){if(g instanceof Gt){var y=g.style;g.useStyle(G({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},e.style))}else g.useStyle(e.style);var v=g.ensureState("emphasis");v.style=a,p&&(v.scaleX=1.1*g.scaleX,v.scaleY=1.1*g.scaleY),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=e.z2});var d=t.valueDim.posDesc[+(e.boundingLength>0)],f=n.__pictorialBarRect;f.ignoreClip=!0,ai(f,si(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Eu(t.seriesModel.getData(),i),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:d}),zn(n,h,c,o.get("disabled"))}function Db(n){var t=Math.round(n);return Math.abs(n-t)<1e-4?t:Math.ceil(n)}const bL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){var o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis().isHorizontal(),h=l.master.getRect(),c={ecSize:{width:r.getWidth(),height:r.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:u,valueDim:vb[+u],categoryDim:vb[1-+u]};a.diff(s).add(function(d){if(a.hasValue(d)){var f=Mb(a,d),g=mb(a,d,f,c),y=Tb(a,c,g);a.setItemGraphicEl(d,y),o.add(y),Ab(y,c,g)}}).update(function(d,f){var g=s.getItemGraphicEl(f);if(a.hasValue(d)){var y=Mb(a,d),v=mb(a,d,y,c),m=Cb(a,v);g&&m!==g.__pictorialShapeStr&&(o.remove(g),a.setItemGraphicEl(d,null),g=null),g?function(x,_,b){var w=b.animationModel,S=b.dataIndex,M=x.__pictorialBundle;ze(M,{x:b.bundlePosition[0],y:b.bundlePosition[1]},w,S),b.symbolRepeat?_b(x,_,b,!0):wb(x,_,b,!0),bb(x,b,!0),Sb(x,_,b,!0)}(g,c,v):g=Tb(a,c,v,!0),a.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=v,o.add(g),Ab(g,c,v)}else o.remove(g)}).remove(function(d){var f=s.getItemGraphicEl(d);f&&Ib(s,d,f.__pictorialSymbolMeta.animationModel,f)}).execute();var p=e.get("clip",!0)?l_(e.coordinateSystem,!1,e):null;return p?o.setClipPath(p):o.removeClipPath(),this._data=a,this.group},t.prototype.remove=function(e,i){var r=this.group,o=this._data;e.get("animation")?o&&o.eachItemGraphicEl(function(a){Ib(o,ye(a).dataIndex,e,a)}):r.removeAll()},t.type="pictorialBar",t}(at),SL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return V(t,n),t.prototype.getInitialData=function(e){return e.stack=null,n.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=xr(zu.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(zu);var zr=Ne(),kb=oe,kf=Q,ML=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,i,r){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,r||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide")return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,e,i);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var c=this._moveAnimation=this.determineAnimation(t,e);if(s){var p=xe(Lb,e,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,e)}else s=this._group=new ge,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);Rb(s,e,!0),this._renderHandle(o)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var i=e.get("animation"),r=t.axis,o=r.type==="category",a=e.get("snap");if(!a&&!o)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(o&&r.getBandWidth()>s)return!0;if(a){var l=Xd(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(t,e,i,r,o){},n.prototype.createPointerEl=function(t,e,i,r){var o=e.pointer;if(o){var a=zr(t).pointerEl=new uo[o.type](kb(e.pointer));t.add(a)}},n.prototype.createLabelEl=function(t,e,i,r){if(e.label){var o=zr(t).labelEl=new ke(kb(e.label));t.add(o),Ob(o,r)}},n.prototype.updatePointerEl=function(t,e,i){var r=zr(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),i(r,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,i,r){var o=zr(t).labelEl;o&&(o.setStyle(e.label.style),i(o,{x:e.label.x,y:e.label.y}),Ob(o,r))},n.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,r=this._api.getZr(),o=this._handle,a=i.getModel("handle"),s=i.get("status");if(!a.get("show")||!s||s==="hide")return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Ma(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Jn(u.event)},onmousedown:kf(this._onHandleDragMove,this,0,0),drift:kf(this._onHandleDragMove,this),ondragend:kf(this._onHandleDragEnd,this)}),r.add(o)),Rb(o,i,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,Fa(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},n.prototype._moveHandleToValue=function(t,e){Lb(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Lf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var r=this.updateHandleTransform(Lf(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,i.stopAnimation(),i.attr(Lf(r)),zr(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var 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}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,r=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Ga(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},n}();function Lb(n,t,e,i){Pb(zr(e).lastProp,i)||(zr(e).lastProp=i,t?ze(e,i,n):(e.stopAnimation(),e.attr(i)))}function Pb(n,t){if(ee(n)&&ee(t)){var e=!0;return A(t,function(i,r){e=e&&Pb(n[r],i)}),!!e}return n===t}function Ob(n,t){n[t.get(["label","show"])?"show":"hide"]()}function Lf(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function Rb(n,t,e){var i=t.get("z"),r=t.get("zlevel");n&&n.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),r!=null&&(o.zlevel=r),o.silent=e)})}const Eb=ML;function Nb(n){var t,e=n.get("type"),i=n.getModel(e+"Style");return e==="line"?(t=i.getLineStyle()).fill=null:e==="shadow"&&((t=i.getAreaStyle()).stroke=null),t}function zb(n,t,e,i,r){var o=Bb(e.get("value"),t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),a=e.getModel("label"),s=go(a.get("padding")||0),l=a.getFont(),u=na(o,l),h=r.position,c=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var f=r.verticalAlign;f==="bottom"&&(h[1]-=p),f==="middle"&&(h[1]-=p/2),function(y,v,m,x){var _=x.getWidth(),b=x.getHeight();y[0]=Math.min(y[0]+v,_)-v,y[1]=Math.min(y[1]+m,b)-m,y[0]=Math.max(y[0],0),y[1]=Math.max(y[1],0)}(h,c,p,i);var g=a.get("backgroundColor");g&&g!=="auto"||(g=t.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:it(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function Bb(n,t,e,i,r){n=t.scale.parse(n);var o=t.scale.getLabel({value:n},{precision:r.precision}),a=r.formatter;if(a){var s={value:Md(t,{value:n}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,c=u&&u.getDataParams(h);c&&s.seriesData.push(c)}),j(a)?o=a.replace("{value}",o):ae(a)&&(o=a(s))}return o}function Vb(n,t,e){var i=[1,0,0,1,0,0];return Zi(i,i,e.rotation),Ui(i,i,e.position),Fn([n.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function Fb(n,t,e){return{x1:n[e=e||0],y1:n[1-e],x2:t[e],y2:t[1-e]}}function Gb(n,t,e,i,r,o){return{cx:n,cy:t,r0:e,r:i,startAngle:r,endAngle:o,clockwise:!0}}var TL=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis,l=s.grid,u=o.get("type"),h=Hb(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=Nb(o),d=IL[u](s,c,h);d.style=p,e.graphicKey=d.type,e.pointer=d}(function(f,g,y,v,m,x){var _=Bi.innerTextLayout(y.rotation,0,y.labelDirection);y.labelMargin=m.get(["label","margin"]),zb(g,v,m,x,{position:Vb(v.axis,f,y),align:_.textAlign,verticalAlign:_.textVerticalAlign})})(i,e,Gd(l.model,r),r,o,a)},t.prototype.getHandleTransform=function(e,i,r){var o=Gd(i.axis.grid.model,i,{labelInside:!1});o.labelMargin=r.get(["handle","margin"]);var a=Vb(i.axis,e,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,r,o){var a=r.axis,s=a.grid,l=a.getGlobalExtent(!0),u=Hb(s,a).getOtherAxis(a).getGlobalExtent(),h=a.dim==="x"?0:1,c=[e.x,e.y];c[h]+=i[h],c[h]=Math.min(l[1],c[h]),c[h]=Math.max(l[0],c[h]);var p=(u[1]+u[0])/2,d=[p,p];return d[h]=c[h],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][h]}},t}(Eb);function Hb(n,t){var e={};return e[t.dim+"AxisIndex"]=t.index,n.getCartesian(e)}var IL={line:function(n,t,e){return{type:"Line",subPixelOptimize:!0,shape:Fb([t,e[0]],[t,e[1]],Wb(n))}},shadow:function(n,t,e){var i,r,o,a=Math.max(1,n.getBandWidth()),s=e[1]-e[0];return{type:"Rect",shape:(i=[t-a/2,e[0]],r=[a,s],o=Wb(n),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function Wb(n){return n.dim==="x"?0:1}const CL=TL,AL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Te);var fi=Ne(),DL=A;function Yb(n,t,e){if(!we.node){var i=t.getZr();fi(i).records||(fi(i).records={}),function(r,o){if(fi(r).initialized)return;function a(s,l){r.on(s,function(u){var h=function(c){var p={showTip:[],hideTip:[]},d=function(f){var g=p[f.type];g?g.push(f):(f.dispatchAction=d,c.dispatchAction(f))};return{dispatchAction:d,pendings:p}}(o);DL(fi(r).records,function(c){c&&l(c,u,h.dispatchAction)}),function(c,p){var d,f=c.showTip.length,g=c.hideTip.length;f?d=c.showTip[f-1]:g&&(d=c.hideTip[g-1]),d&&(d.dispatchAction=null,p.dispatchAction(d))}(h.pendings,o)})}fi(r).initialized=!0,a("click",xe(Xb,"click")),a("mousemove",xe(Xb,"mousemove")),a("globalout",kL)}(i,t),(fi(i).records[n]||(fi(i).records[n]={})).handler=e}}function kL(n,t,e){n.handler("leave",null,e)}function Xb(n,t,e,i){t.handler(n,e,i)}function Pf(n,t){if(!we.node){var e=t.getZr();(fi(e).records||{})[n]&&(fi(e).records[n]=null)}}var LL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){var o=i.getComponent("tooltip"),a=e.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";Yb("axisPointer",r,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){Pf("axisPointer",i)},t.prototype.dispose=function(e,i){Pf("axisPointer",i)},t.type="axisPointer",t}(je);const PL=LL;function Ub(n,t){var e,i=[],r=n.seriesIndex;if(r==null||!(e=t.getSeriesByIndex(r)))return{point:[]};var o=e.getData(),a=ir(o,n);if(a==null||a<0||Y(a))return{point:[]};var s=o.getItemGraphicEl(a),l=e.coordinateSystem;if(e.getTooltipPosition)i=e.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p=h==="x"||h==="radius"?1:0,d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(X(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Zb=Ne();function OL(n,t,e){var i=n.currTrigger,r=[n.x,n.y],o=n,a=n.dispatchAction||Q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){nh(r)&&(r=Ub({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=nh(r),u=o.axesInfo,h=s.axesInfo,c=i==="leave"||nh(r),p={},d={},f={list:[],map:{}},g={showPointer:xe(RL,d),showTooltip:xe(EL,f)};A(s.coordSysMap,function(v,m){var x=l||v.containPoint(r);A(s.coordSysAxesInfo[m],function(_,b){var w=_.axis,S=function(T,I){for(var C=0;C<(T||[]).length;C++){var D=T[C];if(I.axis.dim===D.axisDim&&I.axis.model.componentIndex===D.axisIndex)return D}}(u,_);if(!c&&x&&(!u||S)){var M=S&&S.value;M!=null||l||(M=w.pointToData(r)),M!=null&&jb(_,M,g,!1,p)}})});var y={};return A(h,function(v,m){var x=v.linkGroup;x&&!d[m]&&A(x.axesInfo,function(_,b){var w=d[b];if(_!==v&&w){var S=w.value;x.mapper&&(S=v.axis.scale.parse(x.mapper(S,qb(_),qb(v)))),y[v.key]=S}})}),A(y,function(v,m){jb(h[m],v,g,!0,p)}),function(v,m,x){var _=x.axesInfo=[];A(m,function(b,w){var S=b.axisPointerModel.option,M=v[w];M?(!b.useHandle&&(S.status="show"),S.value=M.value,S.seriesDataIndices=(M.payloadBatch||[]).slice()):!b.useHandle&&(S.status="hide"),S.status==="show"&&_.push({axisDim:b.axis.dim,axisIndex:b.axis.model.componentIndex,value:S.value})})}(d,h,p),function(v,m,x,_){if(nh(m)||!v.list.length)return void _({type:"hideTip"});var b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};_({type:"showTip",escapeConnect:!0,x:m[0],y:m[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})}(f,r,n,a),function(v,m,x){var _=x.getZr(),b="axisPointerLastHighlights",w=Zb(_)[b]||{},S=Zb(_)[b]={};A(v,function(I,C){var D=I.axisPointerModel.option;D.status==="show"&&I.triggerEmphasis&&A(D.seriesDataIndices,function(L){var R=L.seriesIndex+" | "+L.dataIndex;S[R]=L})});var M=[],T=[];A(w,function(I,C){!S[C]&&T.push(I)}),A(S,function(I,C){!w[C]&&M.push(I)}),T.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:T}),M.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:M})}(h,0,e),p}}function jb(n,t,e,i,r){var o=n.axis;if(!o.scale.isBlank()&&o.containData(t))if(n.involveSeries){var a=function(u,h){var c=h.axis,p=c.dim,d=u,f=[],g=Number.MAX_VALUE,y=-1;return A(h.seriesModels,function(v,m){var x,_,b=v.getData().mapDimensionsAll(p);if(v.getAxisTooltipData){var w=v.getAxisTooltipData(b,u,c);_=w.dataIndices,x=w.nestestValue}else{if(!(_=v.getData().indicesOfNearest(b[0],u,c.type==="category"?.5:null)).length)return;x=v.getData().get(b[0],_[0])}if(x!=null&&isFinite(x)){var S=u-x,M=Math.abs(S);M<=g&&((M=0&&y<0)&&(g=M,y=S,d=x,f.length=0),A(_,function(T){f.push({seriesIndex:v.seriesIndex,dataIndexInside:T,dataIndex:v.getData().getRawIndex(T)})}))}}),{payloadBatch:f,snapToValue:d}}(t,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&r.seriesIndex==null&&G(r,s[0]),!i&&n.snap&&o.containData(l)&&l!=null&&(t=l),e.showPointer(n,t,s),e.showTooltip(n,a,l)}else e.showPointer(n,t)}function RL(n,t,e,i){n[t.key]={value:e,payloadBatch:i}}function EL(n,t,e,i){var r=e.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=os(l),h=n.map[u];h||(h=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function qb(n){var t=n.axis.model,e={},i=e.axisDim=n.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function nh(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function Of(n){as.registerAxisPointerClass("CartesianAxisPointer",CL),n.registerComponentModel(AL),n.registerComponentView(PL),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=fD(t,e)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},OL)}var NL=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s).getExtent(),h=s.dataToCoord(i),c=o.get("type");if(c&&c!=="none"){var p=Nb(o),d=zL[c](s,l,h,u);d.style=p,e.graphicKey=d.type,e.pointer=d}var f=function(g,y,v,m,x){var _=y.axis,b=_.dataToCoord(g),w=m.getAngleAxis().getExtent()[0];w=w/180*Math.PI;var S,M,T,I=m.getRadiusAxis().getExtent();if(_.dim==="radius"){var C=[1,0,0,1,0,0];Zi(C,C,w),Ui(C,C,[m.cx,m.cy]),S=Fn([b,-x],C);var D=y.getModel("axisLabel").get("rotate")||0,L=Bi.innerTextLayout(w,D*Math.PI/180,-1);M=L.textAlign,T=L.textVerticalAlign}else{var R=I[1];S=m.coordToPoint([R+x,b]);var P=m.cx,E=m.cy;M=Math.abs(S[0]-P)/R<.3?"center":S[0]>P?"left":"right",T=Math.abs(S[1]-E)/R<.3?"middle":S[1]>E?"top":"bottom"}return{position:S,align:M,verticalAlign:T}}(i,r,0,l,o.get(["label","margin"]));zb(e,r,o,a,f)},t}(Eb),zL={line:function(n,t,e,i){return n.dim==="angle"?{type:"Line",shape:Fb(t.coordToPoint([i[0],e]),t.coordToPoint([i[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(n,t,e,i){var r=Math.max(1,n.getBandWidth()),o=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:Gb(t.cx,t.cy,i[0],i[1],(-e-r/2)*o,(r/2-e)*o)}:{type:"Sector",shape:Gb(t.cx,t.cy,e-r/2,e+r/2,0,2*Math.PI)}}};const BL=NL,VL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.findAxisModel=function(e){var i;return this.ecModel.eachComponent(e,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Te);var Rf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",nt).models[0]},t.type="polarAxis",t}(Te);ct(Rf,es);var FL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="angleAxis",t}(Rf),GL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="radiusAxis",t}(Rf),Ef=function(n){function t(e,i){return n.call(this,"radius",e,i)||this}return V(t,n),t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t}(Yn);Ef.prototype.dataToRadius=Yn.prototype.dataToCoord,Ef.prototype.radiusToData=Yn.prototype.coordToData;const HL=Ef;var WL=Ne(),Nf=function(n){function t(e,i){return n.call(this,"angle",e,i||[0,360])||this}return V(t,n),t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,i=e.getLabelModel(),r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),h=na(s==null?"":s+"",i.getFont(),"center","top"),c=Math.max(h.height,7)/u;isNaN(c)&&(c=1/0);var p=Math.max(0,Math.floor(c)),d=WL(e.model),f=d.lastAutoInterval,g=d.lastTickCount;return f!=null&&g!=null&&Math.abs(f-p)<=1&&Math.abs(g-a)<=1&&f>p?p=f:(d.lastTickCount=a,d.lastAutoInterval=p),p},t}(Yn);Nf.prototype.dataToAngle=Yn.prototype.dataToCoord,Nf.prototype.angleToData=Yn.prototype.coordToData;const YL=Nf;var Kb=["radius","angle"],XL=function(){function n(t){this.dimensions=Kb,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new HL,this._angleAxis=new YL,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},n.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},n.prototype.getAxis=function(t){return this["_"+t+"Axis"]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(t){var e=[],i=this._angleAxis,r=this._radiusAxis;return i.scale.type===t&&e.push(i),r.scale.type===t&&e.push(r),e},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},n.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},n.prototype.pointToData=function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},n.prototype.pointToCoord=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,r=this.getAngleAxis(),o=r.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);r.inverse?a=s-360:s=a+360;var l=Math.sqrt(e*e+i*i);e/=l,i/=l;for(var u=Math.atan2(-i,e)/Math.PI*180,h=us;)u+=360*h;return[l,u]},n.prototype.coordToPoint=function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]},n.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(o,a){var s=o-this.cx,l=a-this.cy,u=s*s+l*l-1e-4,h=this.r,c=this.r0;return u<=h*h&&u>=c*c}}},n.prototype.convertToPixel=function(t,e,i){return Jb(e)===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(t,e,i){return Jb(e)===this?this.pointToData(i):null},n}();function Jb(n){var t=n.seriesModel,e=n.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const UL=XL;function ZL(n,t){var e=this,i=e.getAngleAxis(),r=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(Du(l,"radius"),function(u){r.scale.unionExtentFromData(l,u)}),A(Du(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Ao(i.scale,i.model),Ao(r.scale,r.model),i.type==="category"&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function $b(n,t){var e;if(n.type=t.get("type"),n.scale=Au(t),n.onBand=t.get("boundaryGap")&&n.type==="category",n.inverse=t.get("inverse"),function(o){return o.mainType==="angleAxis"}(t)){n.inverse=n.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=(e=t.get("endAngle"))!==null&&e!==void 0?e:i+(n.inverse?-360:360);n.setExtent(i,r)}t.axis=n,n.model=t}var jL={dimensions:Kb,create:function(n,t){var e=[];return n.eachComponent("polar",function(i,r){var o=new UL(r+"");o.update=ZL;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");$b(a,l),$b(s,u),function(h,c,p){var d=c.get("center"),f=p.getWidth(),g=p.getHeight();h.cx=ne(d[0],f),h.cy=ne(d[1],g);var y=h.getRadiusAxis(),v=Math.min(f,g)/2,m=c.get("radius");m==null?m=[0,"100%"]:Y(m)||(m=[0,m]);var x=[ne(m[0],v),ne(m[1],v)];y.inverse?y.setExtent(x[1],x[0]):y.setExtent(x[0],x[1])}(o,i,t),e.push(o),i.coordinateSystem=o,o.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var r=i.getReferringComponents("polar",nt).models[0];if(!r)throw new Error('Polar "'+Yt(i.get("polarIndex"),i.get("polarId"),0)+'" not found');i.coordinateSystem=r.coordinateSystem}}),e}};const qL=jL;var KL=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ih(n,t,e){t[1]>t[0]&&(t=t.slice().reverse());var i=n.coordToPoint([t[0],e]),r=n.coordToPoint([t[1],e]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function rh(n){return n.getRadiusAxis().inverse?0:1}function Qb(n){var t=n[0],e=n[n.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&n.pop()}var JL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return V(t,n),t.prototype.render=function(e,i){if(this.group.removeAll(),e.get("show")){var r=e.axis,o=r.polar,a=o.getRadiusAxis().getExtent(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=X(r.getViewLabels(),function(h){h=oe(h);var c=r.scale,p=c.type==="ordinal"?c.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=r.dataToCoord(p),h});Qb(u),Qb(s),A(KL,function(h){!e.get([h,"show"])||r.scale.isBlank()&&h!=="axisLine"||$L[h](this.group,e,o,s,l,a,u)},this)}},t.type="angleAxis",t}(as),$L={axisLine:function(n,t,e,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=e.getAngleAxis(),u=Math.PI/180,h=l.getExtent(),c=rh(e),p=c?0:1,d=Math.abs(h[1]-h[0])===360?"Circle":"Arc";(a=o[p]===0?new uo[d]({shape:{cx:e.cx,cy:e.cy,r:o[c],startAngle:-h[0]*u,endAngle:-h[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new _a({shape:{cx:e.cx,cy:e.cy,r:o[c],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,n.add(a)},axisTick:function(n,t,e,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[rh(e)],u=X(i,function(h){return new wt({shape:ih(e,[l,l+s],h.coord)})});n.add(on(u,{style:le(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,t,e,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[rh(e)],h=[],c=0;cv?"left":"right",_=Math.abs(y[1]-m)/g<.3?"middle":y[1]>m?"top":"bottom";if(s&&s[f]){var b=s[f];ee(b)&&b.textStyle&&(d=new He(b.textStyle,l,l.ecModel))}var w=new ke({silent:Bi.isLabelSilent(t),style:it(d,{x:y[0],y:y[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:x,verticalAlign:_})});if(n.add(w),h){var S=Bi.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=c.rawLabel,ye(w).eventData=S}},this)},splitLine:function(n,t,e,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h=0?"p":"n",L=S;b&&(i[h][C]||(i[h][C]={p:S,n:S}),L=i[h][C][D]);var R=void 0,P=void 0,E=void 0,k=void 0;if(f.dim==="radius"){var O=f.dataToCoord(I)-S,N=l.dataToCoord(C);Math.abs(O)=k})}}})}var aP={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},sP={splitNumber:5},lP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="polar",t}(je),nS=["x","y","radius","angle","single"],uP=["cartesian2d","polar","singleAxis"];function Vi(n){return ue(n),n+"Axis"}function hP(n,t){var e,i=te(),r=[],o=te();n.eachComponent({mainType:"dataZoom",query:t},function(l){o.get(l.uid)||s(l)});do e=!1,n.eachComponent("dataZoom",a);while(e);function a(l){!o.get(l.uid)&&function(u){var h=!1;return u.eachTargetAxis(function(c,p){var d=i.get(c);d&&d[p]&&(h=!0)}),h}(l)&&(s(l),e=!0)}function s(l){o.set(l.uid,!0),r.push(l),l.eachTargetAxis(function(u,h){(i.get(u)||i.set(u,[]))[h]=!0})}return r}function iS(n){var t=n.ecModel,e={infoList:[],infoMap:te()};return n.eachTargetAxis(function(i,r){var o=t.getComponent(Vi(i),r);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=e.infoMap.get(s);l||(l={model:a,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(o)}}}),e}var zf=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},n}(),cP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return V(t,n),t.prototype.init=function(e,i,r){var o=rS(e);this.settledOption=o,this.mergeDefaultAndTheme(e,r),this._doInit(o)},t.prototype.mergeOption=function(e){var i=rS(e);pe(this.option,e,!0),pe(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var r=this.settledOption;A([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(i[o[0]]=r[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=te();this._fillSpecifiedTargetAxis(i)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return A(nS,function(r){var o=this.getReferringComponents(Vi(r),LT);if(o.specified){i=!0;var a=new zf;A(o.models,function(s){a.add(s.componentIndex)}),e.set(r,a)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var r=this.ecModel,o=!0;if(o){var a=i==="vertical"?"y":"x";s(r.findComponents({mainType:a+"Axis"}),a)}o&&s(r.findComponents({mainType:"singleAxis",filter:function(l){return l.get("orient",!0)===i}}),"single");function s(l,u){var h=l[0];if(h){var c=new zf;if(c.add(h.componentIndex),e.set(u,c),o=!1,u==="x"||u==="y"){var p=h.getReferringComponents("grid",nt).models[0];p&&A(l,function(d){h.componentIndex!==d.componentIndex&&p===d.getReferringComponents("grid",nt).models[0]&&c.add(d.componentIndex)})}}}o&&A(nS,function(l){if(o){var u=r.findComponents({mainType:Vi(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var h=new zf;h.add(u[0].componentIndex),e.set(l,h),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,r=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(o,a){var s=e[o[0]]!=null,l=e[o[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":r?i[a]=r[a]:s&&(i[a]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,r){e==null&&(e=this.ecModel.getComponent(Vi(i),r))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(r,o){A(r.indexList,function(a){e.call(i,o,a)})})},t.prototype.getAxisProxy=function(e,i){var r=this.getAxisModel(e,i);if(r)return r.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){ue(e&&i!=null);var r=this._targetAxisInfoMap.get(e);if(r&&r.indexMap[i])return this.ecModel.getComponent(Vi(e),i)},t.prototype.setRawRange=function(e){var i=this.option,r=this.settledOption;A([["start","startValue"],["end","endValue"]],function(o){e[o[0]]==null&&e[o[1]]==null||(i[o[0]]=r[o[0]]=e[o[0]],i[o[1]]=r[o[1]]=e[o[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;A(["start","startValue","end","endValue"],function(r){i[r]=e[r]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e!=null||i!=null)return this.getAxisProxy(e,i).getDataValueWindow();var r=this.findRepresentativeAxisProxy();return r?r.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,r=this._targetAxisInfoMap.keys(),o=0;o=0}(e)){var i=Vi(this._dimName),r=e.getReferringComponents(i,nt).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}},this),t},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return oe(this._minMaxSpan)},n.prototype.calculateDataWindow=function(t){var e,i=this._dataExtent,r=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];Oo(["start","end"],function(c,p){var d=t[c],f=t[c+"Value"];o[p]==="percent"?(d==null&&(d=a[p]),f=r.parse(Ae(d,a,i))):(e=!0,d=Ae(f=f==null?i[p]:r.parse(f),i,a)),l[p]=f==null||isNaN(f)?i[p]:f,s[p]=d==null||isNaN(d)?a[p]:d}),oS(l),oS(s);var u=this._minMaxSpan;function h(c,p,d,f,g){var y=g?"Span":"ValueSpan";Rr(0,c,d,"all",u["min"+y],u["max"+y]);for(var v=0;v<2;v++)p[v]=Ae(c[v],d,f,!0),g&&(p[v]=r.parse(p[v]))}return e?h(l,s,i,a,!1):h(s,l,a,i,!0),{valueWindow:l,percentWindow:s}},n.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(r,o,a){var s=[1/0,-1/0];Oo(a,function(h){(function(c,p,d){p&&A(Du(p,d),function(f){var g=p.getApproximateExtent(f);g[0]c[1]&&(c[1]=g[1])})})(s,h.getData(),o)});var l=r.getAxisModel(),u=w1(l.axis.scale,l,s).calculate();return[u.min,u.max]}(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var i=this._dimName,r=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;o!=="none"&&Oo(r,function(s){var l=s.getData(),u=l.mapDimensionsAll(i);if(u.length){if(o==="weakFilter"){var h=l.getStore(),c=X(u,function(p){return l.getDimensionIndex(p)},l);l.filterSelf(function(p){for(var d,f,g,y=0;ya[1];if(m&&!x&&!_)return!0;m&&(g=!0),x&&(d=!0),_&&(f=!0)}return g&&d&&f})}else Oo(u,function(p){if(o==="empty")s.setData(l=l.map(p,function(f){return function(g){return g>=a[0]&&g<=a[1]}(f)?f:NaN}));else{var d={};d[p]=a,l.selectRange(d)}});Oo(u,function(p){l.setApproximateExtent(a,p)})}})}},n.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;Oo(["min","max"],function(r){var o=e.get(r+"Span"),a=e.get(r+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=Ae(i[0]+a,i,[0,100],!0):o!=null&&(a=Ae(o,[0,100],i,!0)-i[0]),t[r+"Span"]=o,t[r+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var r=dc(i,[0,500]);r=Math.min(r,20);var o=t.axis.scale.rawExtentInfo;e[0]!==0&&o.setDeterminedMinMax("min",+i[0].toFixed(r)),e[1]!==100&&o.setDeterminedMinMax("max",+i[1].toFixed(r)),o.freeze()}},n}();const gP=fP,yP={getTargetSeries:function(n){function t(r){n.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=n.getComponent(Vi(a),s);r(a,s,l,o)})})}t(function(r,o,a,s){a.__dzAxisProxy=null});var e=[];t(function(r,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new gP(r,o,s,n),e.push(a.__dzAxisProxy))});var i=te();return A(e,function(r){A(r.getTargetSeriesModels(),function(o){i.set(o.uid,o)})}),i},overallReset:function(n,t){n.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,r){e.getAxisProxy(i,r).reset(e)}),e.eachTargetAxis(function(i,r){e.getAxisProxy(i,r).filterData(e,t)})}),n.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var r=i.getDataPercentWindow(),o=i.getDataValueWindow();e.setCalculatedRange({start:r[0],end:r[1],startValue:o[0],endValue:o[1]})}})}};var aS=!1;function Vf(n){aS||(aS=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,yP),function(t){t.registerAction("dataZoom",function(e,i){A(hP(i,e),function(r){r.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function vP(n){n.registerComponentModel(pP),n.registerComponentView(dP),Vf(n)}var Cn=function(){},sS={};function ys(n,t){sS[n]=t}function lS(n){return sS[n]}const mP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(i,r){var o=lS(r);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(e)),pe(i,o.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Te);function uS(n,t){var e=go(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),n=new Ie({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}var xP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.render=function(e,i,r,o){var a=this.group;if(a.removeAll(),e.get("show")){var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},h=this._features||(this._features={}),c=[];A(u,function(d,f){c.push(f)}),new fd(this._featureNames||[],c).add(p).update(p).remove(xe(p,null)).execute(),this._featureNames=c,function(d,f,g){var y=f.getBoxLayoutParams(),v=f.get("padding"),m={width:g.getWidth(),height:g.getHeight()},x=St(y,m,v);wr(f.get("orient"),d,f.get("itemGap"),x.width,x.height),zm(d,y,m,v)}(a,e,r),a.add(uS(a.getBoundingRect(),e)),l||a.eachChild(function(d){var f=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),v=d.getTextContent(),m=v&&v.ensureState("emphasis");if(m&&!ae(m)&&f){var x=m.style||(m.style={}),_=na(f,ke.makeFont(x)),b=d.x+a.x,w=!1;d.y+a.y+s+_.height>r.getHeight()&&(y.position="top",w=!0);var S=w?-5-_.height:s+10;b+_.width/2>r.getWidth()?(y.position=["100%",S],x.align="right"):b-_.width/2<0&&(y.position=[0,S],x.align="left")}})}function p(d,f){var g,y=c[d],v=c[f],m=u[y],x=new He(m,e,e.ecModel);if(o&&o.newTitle!=null&&o.featureName===y&&(m.title=o.newTitle),y&&!v){if(function(w){return w.indexOf("my")===0}(y))g={onclick:x.option.onclick,featureName:y};else{var _=lS(y);if(!_)return;g=new _}h[y]=g}else if(!(g=h[v]))return;g.uid=co("toolbox-feature"),g.model=x,g.ecModel=i,g.api=r;var b=g instanceof Cn;y||!v?!x.get("show")||b&&g.unusable?b&&g.remove&&g.remove(i,r):(function(w,S,M){var T,I,C=w.getModel("iconStyle"),D=w.getModel(["emphasis","iconStyle"]),L=S instanceof Cn&&S.getIcons?S.getIcons():w.get("icon"),R=w.get("title")||{};j(L)?(T={})[M]=L:T=L,j(R)?(I={})[M]=R:I=R;var P=w.iconPaths={};A(T,function(E,k){var O=Ma(E,{},{x:-s/2,y:-s/2,width:s,height:s});O.setStyle(C.getItemStyle()),O.ensureState("emphasis").style=D.getItemStyle();var N=new ke({style:{text:I[k],align:D.get("textAlign"),borderRadius:D.get("textBorderRadius"),padding:D.get("textPadding"),fill:null,font:ym({fontStyle:D.get("textFontStyle"),fontFamily:D.get("textFontFamily"),fontSize:D.get("textFontSize"),fontWeight:D.get("textFontWeight")},i)},ignore:!0});O.setTextContent(N),Ta({el:O,componentModel:e,itemName:k,formatterParamsExtra:{title:I[k]}}),O.__title=I[k],O.on("mouseover",function(){var B=D.getItemStyle(),z=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";N.setStyle({fill:D.get("textFill")||B.fill||B.stroke||"#000",backgroundColor:D.get("textBackgroundColor")}),O.setTextConfig({position:D.get("textPosition")||z}),N.ignore=!e.get("showTitle"),r.enterEmphasis(this)}).on("mouseout",function(){w.get(["iconStatus",k])!=="emphasis"&&r.leaveEmphasis(this),N.hide()}),(w.get(["iconStatus",k])==="emphasis"?no:io)(O),a.add(O),O.on("click",Q(S.onclick,S,i,r,k)),P[k]=O})}(x,g,y),x.setIconStatus=function(w,S){var M=this.option,T=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[w]=S,T[w]&&(S==="emphasis"?no:io)(T[w])},g instanceof Cn&&g.render&&g.render(x,i,r,o)):b&&g.dispose&&g.dispose(i,r)}},t.prototype.updateView=function(e,i,r,o){A(this._features,function(a){a instanceof Cn&&a.updateView&&a.updateView(a.model,i,r,o)})},t.prototype.remove=function(e,i){A(this._features,function(r){r instanceof Cn&&r.remove&&r.remove(e,i)}),this.group.removeAll()},t.prototype.dispose=function(e,i){A(this._features,function(r){r instanceof Cn&&r.dispose&&r.dispose(e,i)})},t.type="toolbox",t}(je);const _P=xP,wP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.onclick=function(e,i){var r=this.model,o=r.get("name")||e.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":r.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),u=we.browser;if(ae(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var h=document.createElement("a");h.download=o+"."+s,h.target="_blank",h.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||a){var p=l.split(","),d=p[0].indexOf("base64")>-1,f=a?decodeURIComponent(p[1]):p[1];d&&(f=window.atob(f));var g=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=f.length,v=new Uint8Array(y);y--;)v[y]=f.charCodeAt(y);var m=new Blob([v]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(f),b.close(),_.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var w=r.get("lang"),S='',M=window.open();M.document.write(S),M.document.title=o}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(Cn);var hS="__ec_magicType_stack__",bP=[["line","bar"],["stack"]],SP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getIcons=function(){var e=this.model,i=e.get("icon"),r={};return A(e.get("type"),function(o){i[o]&&(r[o]=i[o])}),r},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,i,r){var o=this.model,a=o.get(["seriesIndex",r]);if(cS[r]){var s,l={series:[]};A(bP,function(h){Me(h,r)>=0&&A(h,function(c){o.setIconStatus(c,"normal")})}),o.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},function(h){var c=h.subType,p=h.id,d=cS[r](c,p,h,o);d&&(le(d,h.option),l.series.push(d));var f=h.coordinateSystem;if(f&&f.type==="cartesian2d"&&(r==="line"||r==="bar")){var g=f.getAxesByScale("ordinal")[0];if(g){var y=g.dim+"Axis",v=h.getReferringComponents(y,nt).models[0].componentIndex;l[y]=l[y]||[];for(var m=0;m<=v;m++)l[y][v]=l[y][v]||{};l[y][v].boundaryGap=r==="bar"}}});var u=r;r==="stack"&&(s=pe({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",r])!=="emphasis"&&(u="tiled")),i.dispatchAction({type:"changeMagicType",currentType:u,newOption:l,newTitle:s,featureName:"magicType"})}},t}(Cn),cS={line:function(n,t,e,i){if(n==="bar")return pe({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,t,e,i){if(n==="line")return pe({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,t,e,i){var r=e.get("stack")===hS;if(n==="line"||n==="bar")return i.setIconStatus("stack",r?"normal":"emphasis"),pe({id:t,stack:r?"":hS},i.get(["option","stack"])||{},!0)}};Sn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,t){t.mergeOption(n.newOption)});const MP=SP;var oh=new Array(60).join("-"),Ro=" ";function ah(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Ff=new RegExp("["+Ro+"]+","g");function TP(n,t){var e=n.split(new RegExp(` *`+oh+` *`,"g")),i={series:[]};return A(e,function(r,o){if(function(u){if(u.slice(0,u.indexOf(` `)).indexOf(Ro)>=0)return!0}(r)){var a=function(u){for(var h=u.split(/\n+/g),c=[],p=X(ah(h.shift()).split(Ff),function(y){return{name:y,data:[]}}),d=0;d=0)&&a(o,r._targetInfoList)})}return n.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(i,r,o){if((i.coordRanges||(i.coordRanges=[])).push(r),!i.coordRange){i.coordRange=r;var a=Wf[i.brushType](0,o,r);i.__rangeOffset={offset:mS[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},n.prototype.matchOutputRanges=function(t,e,i){A(t,function(r){var o=this.findTargetInfo(r,e);o&&o!==!0&&A(o.coordSyses,function(a){var s=Wf[r.brushType](1,a,r.range,!0);i(r,s.values,a,e)})},this)},n.prototype.setInputRanges=function(t,e){A(t,function(i){var r,o,a,s,l,u=this.findTargetInfo(i,e);if(ue(!u||u===!0||i.coordRange,"coordRange must be specified when coord index specified."),ue(!u||u!==!0||i.range,"range must be specified in global brush."),i.range=i.range||[],u&&u!==!0){i.panelId=u.panelId;var h=Wf[i.brushType](0,u.coordSys,i.coordRange),c=i.__rangeOffset;i.range=c?mS[i.brushType](h.values,c.offset,(r=h.xyMinMax,o=c.xyMinMax,a=_S(r),s=_S(o),l=[a[0]/s[0],a[1]/s[1]],isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l)):h.values}},this)},n.prototype.makePanelOpts=function(t,e){return X(this._targetInfoList,function(i){var r=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:fb(r),isTargetByCursor:yb(r,t,i.coordSysModel),getLinearBrushOtherExtent:gb(r)}})},n.prototype.controlSeries=function(t,e,i){var r=this.findTargetInfo(t,i);return r===!0||r&&Me(r.coordSyses,e.coordinateSystem)>=0},n.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,r=fS(e,t),o=0;on[1]&&n.reverse(),n}function fS(n,t){return ha(n,t,{includeMainTypes:LP})}var OP={grid:function(n,t){var e=n.xAxisModels,i=n.yAxisModels,r=n.gridModels,o=te(),a={},s={};(e||i||r)&&(A(e,function(l){var u=l.axis.grid.model;o.set(u.id,u),a[u.id]=!0}),A(i,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),A(r,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,h=[];A(u.getCartesians(),function(c,p){(Me(e,c.getAxis("x").model)>=0||Me(i,c.getAxis("y").model)>=0)&&h.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:yS.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,t){A(n.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:yS.geo})})}},gS=[function(n,t){var e=n.xAxisModel,i=n.yAxisModel,r=n.gridModel;return!r&&e&&(r=e.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(n,t){var e=n.geoModel;return e&&e===t.geoModel}],yS={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,t=n.getBoundingRect().clone();return t.applyTransform(Ai(n)),t}},Wf={lineX:xe(vS,0),lineY:xe(vS,1),rect:function(n,t,e,i){var r=n?t.pointToData([e[0][0],e[1][0]],i):t.dataToPoint([e[0][0],e[1][0]],i),o=n?t.pointToData([e[0][1],e[1][1]],i):t.dataToPoint([e[0][1],e[1][1]],i),a=[Hf([r[0],o[0]]),Hf([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(n,t,e,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:X(e,function(o){var a=n?t.pointToData(o,i):t.dataToPoint(o,i);return r[0][0]=Math.min(r[0][0],a[0]),r[1][0]=Math.min(r[1][0],a[1]),r[0][1]=Math.max(r[0][1],a[0]),r[1][1]=Math.max(r[1][1],a[1]),a}),xyMinMax:r}}};function vS(n,t,e,i){ue(e.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var r=e.getAxis(["x","y"][n]),o=Hf(X([0,1],function(s){return t?r.coordToData(r.toLocalCoord(i[s]),!0):r.toGlobalCoord(r.dataToCoord(i[s]))})),a=[];return a[n]=o,a[1-n]=[NaN,NaN],{values:o,xyMinMax:a}}var mS={lineX:xe(xS,0),lineY:xe(xS,1),rect:function(n,t,e){return[[n[0][0]-e[0]*t[0][0],n[0][1]-e[0]*t[0][1]],[n[1][0]-e[1]*t[1][0],n[1][1]-e[1]*t[1][1]]]},polygon:function(n,t,e){return X(n,function(i,r){return[i[0]-e[0]*t[r][0],i[1]-e[1]*t[r][1]]})}};function xS(n,t,e,i){return[t[0]-i[n]*e[0],t[1]-i[n]*e[1]]}function _S(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const wS=PP;var Yf,Xf,Uf=A,RP=Ly+"toolbox-dataZoom_",EP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.render=function(e,i,r,o){this._brushController||(this._brushController=new db(r.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),function(a,s,l,u,h){var c=l._isZoomActive;u&&u.type==="takeGlobalCursor"&&(c=u.key==="dataZoomSelect"&&u.dataZoomSelectActive),l._isZoomActive=c,a.setIconStatus("zoom",c?"emphasis":"normal");var p=new wS(Zf(a),s,{include:["grid"]}),d=p.makePanelOpts(h,function(f){return f.xAxisDeclared&&!f.yAxisDeclared?"lineX":!f.xAxisDeclared&&f.yAxisDeclared?"lineY":"rect"});l._brushController.setPanels(d).enableBrush(!(!c||!d.length)&&{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()})}(e,i,this,o,r),function(a,s){a.setIconStatus("back",function(l){return Gf(l).length}(s)>1?"emphasis":"normal")}(e,i)},t.prototype.onclick=function(e,i,r){NP[r].call(this)},t.prototype.remove=function(e,i){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,i){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var i=e.areas;if(e.isEnd&&i.length){var r={},o=this.ecModel;this._brushController.updateCovers([]),new wS(Zf(this.model),o,{include:["grid"]}).matchOutputRanges(i,o,function(s,l,u){if(u.type==="cartesian2d"){var h=s.brushType;h==="rect"?(a("x",u,l[0]),a("y",u,l[1])):a({lineX:"x",lineY:"y"}[h],u,l)}}),function(s,l){var u=Gf(s);pS(l,function(h,c){for(var p=u.length-1;p>=0&&!u[p][c];p--);if(p<0){var d=s.queryComponents({mainType:"dataZoom",subType:"select",id:c})[0];if(d){var f=d.getPercentRange();u[0][c]={dataZoomId:c,start:f[0],end:f[1]}}}}),u.push(l)}(o,r),this._dispatchZoomAction(r)}function a(s,l,u){var h=l.getAxis(s),c=h.model,p=function(f,g,y){var v;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(m){m.getAxisModel(f,g.componentIndex)&&(v=m)}),v}(s,c,o),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();d.minValueSpan==null&&d.maxValueSpan==null||(u=Rr(0,u.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(r[p.id]={dataZoomId:p.id,startValue:u[0],endValue:u[1]})}},t.prototype._dispatchZoomAction=function(e){var i=[];Uf(e,function(r,o){i.push(oe(r))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(Cn),NP={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(function(n){var t=Gf(n),e=t[t.length-1];t.length>1&&t.pop();var i={};return pS(e,function(r,o){for(var a=t.length-1;a>=0;a--)if(r=t[a][o]){i[o]=r;break}}),i}(this.ecModel))}};function Zf(n){var t={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}Yf="dataZoom",Xf=function(n){var t=n.getComponent("toolbox",0),e=["feature","dataZoom"];if(t&&t.get(e)!=null){var i=t.getModel(e),r=[],o=ha(n,Zf(i));return Uf(o.xAxisModels,function(s){return a(s,"xAxis","xAxisIndex")}),Uf(o.yAxisModels,function(s){return a(s,"yAxis","yAxisIndex")}),r}function a(s,l,u){var h=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:RP+l+h};c[u]=h,r.push(c)}},ue(bp.get(Yf)==null&&Xf),bp.set(Yf,Xf);const zP=EP,BP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Te);function bS(n){var t=n.get("confine");return t!=null?!!t:n.get("renderMode")==="richText"}function SS(n){if(we.domSupported){for(var t=document.documentElement.style,e=0,i=n.length;e-1?(x+="top:50%",_+="translateY(-50%) rotate("+(y=v==="left"?-225:-45)+"deg)"):(x+="left:50%",_+="translateX(-50%) rotate("+(y=v==="top"?225:45)+"deg)");var b=y*Math.PI/180,w=m+f,S=w*Math.abs(Math.cos(b))+w*Math.abs(Math.sin(b)),M=c+" solid "+f+"px;";return'
'}(i,r,o)),j(t))a.innerHTML=t+s;else if(t){a.innerHTML="",Y(t)||(t=[t]);for(var l=0;l=0?this._tryShow(r,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,r=this._api,o=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(e,i,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,r,o){if(o.from!==this.uid&&!we.node&&r.getDom()){var a=kS(o,r);this._ticket="";var s=o.dataByCoordSys,l=function(f,g,y){var v=mc(f).queryOptionMap,m=v.keys()[0];if(!(!m||m==="series")){var x=ca(g,m,v.get(m),{useDefault:!1,enableAll:!1,enableNone:!1}),_=x.models[0];if(_){var b,w=y.getViewOfComponentModel(_);if(w.group.traverse(function(S){var M=ye(S).tooltipConfig;if(M&&M.name===f.name)return b=S,!0}),b)return{componentMainType:m,componentIndex:_.componentIndex,el:b}}}}(o,i,r);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var h=UP;h.x=o.x,h.y=o.y,h.update(),ye(h).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:h},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,r,o))return;var c=Ub(o,i),p=c.point[0],d=c.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:c.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(r.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:r.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(e,i,r,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(kS(o,r))},t.prototype._manuallyAxisShowTip=function(e,i,r,o){var a=o.seriesIndex,s=o.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(a!=null&&s!=null&&l!=null){var u=i.getSeriesByIndex(a);if(u&&vs([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger")==="axis")return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}},t.prototype._tryShow=function(e,i){var r=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(r){var a,s;if(ye(r).ssrType==="legend")return;this._lastDataByCoordSys=null,br(r,function(l){return ye(l).dataIndex!=null?(a=l,!0):ye(l).tooltipConfig!=null?(s=l,!0):void 0},!0),a?this._showSeriesItemTooltip(e,a,i):s?this._showComponentItemTooltip(e,s,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var r=e.get("showDelay");i=Q(i,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(i,r):i()},t.prototype._showAxisTooltip=function(e,i){var r=this._ecModel,o=this._tooltipModel,a=[i.offsetX,i.offsetY],s=vs([i.tooltipOption],o),l=this._renderMode,u=[],h=Wn("section",{blocks:[],noHeader:!0}),c=[],p=new Bp;A(e,function(m){A(m.dataByAxis,function(x){var _=r.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(_&&b!=null){var w=Bb(b,_.axis,r,x.seriesDataIndices,x.valueLabelOpt),S=Wn("section",{header:w,noHeader:!Xt(w),sortBlocks:!0,blocks:[]});h.blocks.push(S),A(x.seriesDataIndices,function(M){var T=r.getSeriesByIndex(M.seriesIndex),I=M.dataIndexInside,C=T.getDataParams(I);if(!(C.dataIndex<0)){C.axisDim=x.axisDim,C.axisIndex=x.axisIndex,C.axisType=x.axisType,C.axisId=x.axisId,C.axisValue=Md(_.axis,{value:b}),C.axisValueLabel=w,C.marker=p.makeTooltipMarker("item",_r(C.color),l);var D=x0(T.formatTooltip(I,!0,null)),L=D.frag;if(L){var R=vs([T],o).get("valueFormatter");S.blocks.push(R?G({valueFormatter:R},L):L)}D.text&&c.push(D.text),u.push(C)}})}})}),h.blocks.reverse(),c.reverse();var d=i.position,f=s.get("order"),g=O0(h,p,l,f,r.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var y=l==="richText"?` `:"
",v=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",a[0],a[1],d,null,p)})},t.prototype._showSeriesItemTooltip=function(e,i,r){var o=this._ecModel,a=ye(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,h=a.dataIndex,c=a.dataType,p=u.getData(c),d=this._renderMode,f=e.positionDefault,g=vs([p.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),y=g.get("trigger");if(y==null||y==="item"){var v=u.getDataParams(h,c),m=new Bp;v.marker=m.makeTooltipMarker("item",_r(v.color),d);var x=x0(u.formatTooltip(h,!1,c)),_=g.get("order"),b=g.get("valueFormatter"),w=x.frag,S=w?O0(b?G({valueFormatter:b},w):w,m,d,_,o.get("useUTC"),g.get("textStyle")):x.text,M="item_"+u.name+"_"+h;this._showOrMove(g,function(){this._showTooltipContent(g,S,v,M,e.offsetX,e.offsetY,e.position,e.target,m)}),r({type:"showTip",dataIndexInside:h,dataIndex:p.getRawIndex(h),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,r){var o=ye(i),a=o.tooltipConfig.option||{};j(a)&&(a={content:a,formatter:a});var s=[a],l=this._ecModel.getComponent(o.componentMainType,o.componentIndex);l&&s.push(l),s.push({formatter:a.content});var u=e.positionDefault,h=vs(s,this._tooltipModel,u?{position:u}:null),c=h.get("content"),p=Math.random()+"",d=new Bp;this._showOrMove(h,function(){var f=oe(h.get("formatterParams")||{});this._showTooltipContent(h,c,f,p,e.offsetX,e.offsetY,e.position,i,d)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,r,o,a,s,l,u,h){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var p=e.get("formatter");l=l||e.get("position");var d=i,f=this._getNearestPoint([a,s],r,e.get("trigger"),e.get("borderColor")).color;if(p)if(j(p)){var g=e.ecModel.get("useUTC"),y=Y(r)?r[0]:r;d=p,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(d=Da(y.axisValue,d,g)),d=mp(d,r,!0)}else if(ae(p)){var v=Q(function(m,x){m===this._ticket&&(c.setContent(x,h,e,f,l),this._updatePosition(e,l,a,s,c,r,u))},this);this._ticket=o,d=p(r,o,v)}else d=p;c.setContent(d,h,e,f,l),c.show(e,f),this._updatePosition(e,l,a,s,c,r,u)}},t.prototype._getNearestPoint=function(e,i,r,o){return r==="axis"||Y(i)?{color:o||(this._renderMode==="html"?"#fff":"none")}:Y(i)?void 0:{color:o||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,r,o,a,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||e.get("position");var c=a.getSize(),p=e.get("align"),d=e.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),ae(i)&&(i=i([r,o],s,a.el,f,{viewSize:[u,h],contentSize:c.slice()})),Y(i))r=ne(i[0],u),o=ne(i[1],h);else if(ee(i)){var g=i;g.width=c[0],g.height=c[1];var y=St(g,{width:u,height:h});r=y.x,o=y.y,p=null,d=null}else if(j(i)&&l){var v=function(m,x,_,b){var w=_[0],S=_[1],M=Math.ceil(Math.SQRT2*b)+8,T=0,I=0,C=x.width,D=x.height;switch(m){case"inside":T=x.x+C/2-w/2,I=x.y+D/2-S/2;break;case"top":T=x.x+C/2-w/2,I=x.y-S-M;break;case"bottom":T=x.x+C/2-w/2,I=x.y+D+M;break;case"left":T=x.x-w-M,I=x.y+D/2-S/2;break;case"right":T=x.x+C+M,I=x.y+D/2-S/2}return[T,I]}(i,f,c,e.get("borderWidth"));r=v[0],o=v[1]}else v=function(m,x,_,b,w,S,M){var T=_.getSize(),I=T[0],C=T[1];return S!=null&&(m+I+S+2>b?m-=I+S:m+=S),M!=null&&(x+C+M>w?x-=C+M:x+=M),[m,x]}(r,o,a,u,h,p?null:20,d?null:20),r=v[0],o=v[1];p&&(r-=LS(p)?c[0]/2:p==="right"?c[0]:0),d&&(o-=LS(d)?c[1]/2:d==="bottom"?c[1]:0),bS(e)&&(v=function(m,x,_,b,w){var S=_.getSize(),M=S[0],T=S[1];return m=Math.min(m+M,b)-M,x=Math.min(x+T,w)-T,m=Math.max(m,0),x=Math.max(x,0),[m,x]}(r,o,a,u,h),r=v[0],o=v[1]),a.moveTo(r,o)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var r=this._lastDataByCoordSys,o=this._cbParamsList,a=!!r&&r.length===e.length;return a&&A(r,function(s,l){var u=s.dataByAxis||[],h=(e[l]||{}).dataByAxis||[];(a=a&&u.length===h.length)&&A(u,function(c,p){var d=h[p]||{},f=c.seriesDataIndices||[],g=d.seriesDataIndices||[];(a=a&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&f.length===g.length)&&A(f,function(y,v){var m=g[v];a=a&&y.seriesIndex===m.seriesIndex&&y.dataIndex===m.dataIndex}),o&&A(c.seriesDataIndices,function(y){var v=y.seriesIndex,m=i[v],x=o[v];m&&x&&x.data!==m.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){!we.node&&i.getDom()&&(Ga(this,"_updatePosition"),this._tooltipContent.dispose(),Pf("itemTooltip",i))},t.type="tooltip",t}(je);function vs(n,t,e){var i,r=t.ecModel;e?(i=new He(e,r,r),i=new He(t.option,i,r)):i=t;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof He&&(a=a.get("tooltip",!0)),j(a)&&(a={formatter:a}),a&&(i=new He(a,i,r)))}return i}function kS(n,t){return n.dispatchAction||Q(t.dispatchAction,t)}function LS(n){return n==="center"||n==="middle"}const jP=ZP;var PS=A;function OS(n){if(n){for(var t in n)if(n.hasOwnProperty(t))return!0}}function RS(n,t,e){var i={};return PS(t,function(r){var o,a=i[r]=((o=function(){}).prototype.__hidden=o.prototype,new o);PS(n[r],function(s,l){if(Nt.isValidType(l)){var u={type:l,visual:s};e&&e(u,r),a[l]=new Nt(u),l==="opacity"&&((u=oe(u)).type="colorAlpha",a.__hidden.__alphaForOpacity=new Nt(u))}})}),i}function qP(n,t,e,i){var r={};return A(n,function(o){var a=Nt.prepareVisualTypes(t[o]);r[o]=a}),{progress:function(o,a){var s,l;function u(_){return ix(a,l,_)}function h(_,b){(function(w,S,M,T){switch(M){case"color":w.ensureUniqueItemVisual(S,"style")[w.getVisual("drawType")]=T,w.setItemVisual(S,"colorFromPalette",!1);break;case"opacity":w.ensureUniqueItemVisual(S,"style").opacity=T;break;case"symbol":case"symbolSize":case"liftZ":w.setItemVisual(S,M,T);break;default:console.warn("Unknown visual type "+M)}})(a,l,_,b)}i!=null&&(s=a.getDimensionIndex(i));for(var c=a.getStore();(l=o.next())!=null;){var p=a.getRawDataItem(l);if(!p||p.visualMap!==!1)for(var d=i!=null?c.get(s,l):l,f=e(d),g=t[f],y=r[f],v=0,m=y.length;v=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Te);const qf=$P;var Eo=xe,Kf=A,sh=ge,QP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return V(t,n),t.prototype.init=function(){this.group.add(this._contentGroup=new sh),this.group.add(this._selectorGroup=new sh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,r){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),s=e.get("orient");a&&a!=="auto"||(a=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);!l||u&&u!=="auto"||(u=s==="horizontal"?"end":"start"),this.renderInner(a,e,i,r,l,s,u);var h=e.getBoxLayoutParams(),c={width:r.getWidth(),height:r.getHeight()},p=e.get("padding"),d=St(h,c,p),f=this.layoutInner(e,a,d,o,l,u),g=St(le({width:f.width,height:f.height},h),c,p);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=uS(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,r,o,a,s,l){var u=this.getContentGroup(),h=te(),c=i.get("selectedMode"),p=[];r.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),Kf(i.getData(),function(d,f){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===` `)){var y=new sh;return y.newline=!0,void u.add(y)}var v=r.getSeriesByName(g)[0];if(!h.get(g)){if(v){var m=v.getData(),x=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),b=m.getVisual("style"),w=this._createItem(v,g,f,d,i,e,x,b,_,c,o);w.on("click",Eo(ES,g,null,o,p)).on("mouseover",Eo(Jf,v.name,null,o,p)).on("mouseout",Eo($f,v.name,null,o,p)),r.ssr&&w.eachChild(function(S){var M=ye(S);M.seriesIndex=v.seriesIndex,M.dataIndex=f,M.ssrType="legend"}),h.set(g,!0)}else r.eachRawSeries(function(S){if(!h.get(g)&&S.legendVisualProvider){var M=S.legendVisualProvider;if(!M.containName(g))return;var T=M.indexOfName(g),I=M.getItemVisual(T,"style"),C=M.getItemVisual(T,"legendIcon"),D=At(I.fill);D&&D[3]===0&&(D[3]=.2,I=G(G({},I),{fill:vn(D,"rgba")}));var L=this._createItem(S,g,f,d,i,e,{},I,C,c,o);L.on("click",Eo(ES,null,g,o,p)).on("mouseover",Eo(Jf,null,g,o,p)).on("mouseout",Eo($f,null,g,o,p)),r.ssr&&L.eachChild(function(R){var P=ye(R);P.seriesIndex=S.seriesIndex,P.dataIndex=f,P.ssrType="legend"}),h.set(g,!0)}},this);h.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name.")}},this),a&&this._createSelector(a,i,o,s,l)},t.prototype._createSelector=function(e,i,r,o,a){var s=this.getSelectorGroup();Kf(e,function(l){var u=l.type,h=new ke({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h),ai(h,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:l.title}),ro(h)})},t.prototype._createItem=function(e,i,r,o,a,s,l,u,h,c,p){var d=e.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),y=a.isSelected(i),v=o.get("symbolRotate"),m=o.get("symbolKeepAspect"),x=o.get("icon"),_=function(P,E,k,O,N,B,z){function U(J,H){J.lineWidth==="auto"&&(J.lineWidth=H.lineWidth>0?2:0),Kf(J,function($,re){J[re]==="inherit"&&(J[re]=H[re])})}var Z=E.getModel("itemStyle"),F=Z.getItemStyle(),W=P.lastIndexOf("empty",0)===0?"fill":"stroke",K=Z.getShallow("decal");F.decal=K&&K!=="inherit"?ou(K,z):O.decal,F.fill==="inherit"&&(F.fill=O[N]),F.stroke==="inherit"&&(F.stroke=O[W]),F.opacity==="inherit"&&(F.opacity=(N==="fill"?O:k).opacity),U(F,O);var se=E.getModel("lineStyle"),he=se.getLineStyle();if(U(he,k),F.fill==="auto"&&(F.fill=O.fill),F.stroke==="auto"&&(F.stroke=O.fill),he.stroke==="auto"&&(he.stroke=O.fill),!B){var ie=E.get("inactiveBorderWidth"),q=F[W];F.lineWidth=ie==="auto"?O.lineWidth>0&&q?2:0:F.lineWidth,F.fill=E.get("inactiveColor"),F.stroke=E.get("inactiveBorderColor"),he.stroke=se.get("inactiveColor"),he.lineWidth=se.get("inactiveWidth")}return{itemStyle:F,lineStyle:he}}(h=x||h||"roundRect",o,l,u,d,y,p),b=new sh,w=o.getModel("textStyle");if(!ae(e.getLegendIcon)||x&&x!=="inherit"){var S=x==="inherit"&&e.getData().getVisual("symbol")?v==="inherit"?e.getData().getVisual("symbolRotate"):v:0;b.add(function(P){var E=P.icon||"roundRect",k=ut(E,0,0,P.itemWidth,P.itemHeight,P.itemStyle.fill,P.symbolKeepAspect);return k.setStyle(P.itemStyle),k.rotation=(P.iconRotate||0)*Math.PI/180,k.setOrigin([P.itemWidth/2,P.itemHeight/2]),E.indexOf("empty")>-1&&(k.style.stroke=k.style.fill,k.style.fill="#fff",k.style.lineWidth=2),k}({itemWidth:f,itemHeight:g,icon:h,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}else b.add(e.getLegendIcon({itemWidth:f,itemHeight:g,icon:h,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));var M=s==="left"?f+5:-5,T=s,I=a.get("formatter"),C=i;j(I)&&I?C=I.replace("{name}",i??""):ae(I)&&(C=I(i));var D=y?w.getTextColor():o.get("inactiveColor");b.add(new ke({style:it(w,{text:C,x:M,y:g/2,fill:D,align:T,verticalAlign:"middle"},{inheritColor:D})}));var L=new Ie({shape:b.getBoundingRect(),style:{fill:"transparent"}}),R=o.getModel("tooltip");return R.get("show")&&Ta({el:L,componentModel:a,itemName:i,itemTooltipOption:R.option}),b.add(L),b.eachChild(function(P){P.silent=!0}),L.silent=!c,this.getContentGroup().add(b),ro(b),b.__legendDataIndex=r,b},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wr(e.get("orient"),l,e.get("itemGap"),r.width,r.height);var h=l.getBoundingRect(),c=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),a){wr("horizontal",u,e.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],f=e.get("selectorButtonGap",!0),g=e.getOrient().index,y=g===0?"width":"height",v=g===0?"height":"width",m=g===0?"y":"x";s==="end"?d[g]+=h[y]+f:c[g]+=p[y]+f,d[1-g]+=h[v]/2-p[v]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[y]=h[y]+f+p[y],x[v]=Math.max(h[v],p[v]),x[m]=Math.min(0,p[m]+d[1-g]),x}return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(je);function ES(n,t,e,i){$f(n,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:n??t}),Jf(n,t,e,i)}function NS(n){for(var t,e=n.getZr().storage.getDisplayList(),i=0,r=e.length;ir[a],y=[-d.x,-d.y];i||(y[o]=h[u]);var v=[0,0],m=[-f.x,-f.y],x=fe(e.get("pageButtonGap",!0),e.get("itemGap",!0));g&&(e.get("pageButtonPosition",!0)==="end"?m[o]+=r[a]-f[a]:v[o]+=f[a]+x),m[1-o]+=d[s]/2-f[s]/2,h.setPosition(y),c.setPosition(v),p.setPosition(m);var _={x:0,y:0};if(_[a]=g?r[a]:d[a],_[s]=Math.max(d[s],f[s]),_[l]=Math.min(0,f[l]+m[1-o]),c.__rectSize=r[a],g){var b={x:0,y:0};b[a]=Math.max(r[a]-f[a]-x,0),b[s]=_[s],c.setClipPath(new Ie({shape:b})),c.__rectSize=b[a]}else p.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&ze(h,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),_},t.prototype._pageGo=function(e,i,r){var o=this._getPageInfo(i)[e];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var r=this._controllerGroup;A(["pagePrev","pageNext"],function(h){var c=i[h+"DataIndex"]!=null,p=r.childOfName(h);p&&(p.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),p.cursor=c?"pointer":"default")});var o=r.childOfName("pageText"),a=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;o&&a&&o.setStyle("text",j(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=Qf[a],l=eg[a],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],p=h.length,d=p?1:0,f={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,x=null;y<=p;++y)(!(x=_(h[y]))&&m.e>v.s+o||x&&!b(x,v.s))&&(v=m.i>v.i?m:x)&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=v.i),++f.pageCount),m=x;for(y=u-1,v=g,m=g,x=null;y>=-1;--y)(x=_(h[y]))&&b(m,x.s)||!(v.i=S&&w.s<=S+o}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(o,a){var s=o.__legendDataIndex;r==null&&s!=null&&(r=a),s===e&&(i=a)}),i??r):0;var i,r},t.type="legend.scroll",t}(zS);const iO=nO;function rO(n){rt(BS),n.registerComponentModel(tO),n.registerComponentView(iO),function(t){t.registerAction("legendScroll","legendscroll",function(e,i){var r=e.scrollDataIndex;r!=null&&i.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(r)})})}(n)}const oO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.inside",t.defaultOption=xr(gs.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(gs);var tg=Ne();function GS(n,t){if(t){n.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function aO(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function sO(n,t,e,i){return n.coordinateSystem.containPoint([e,i])}function lO(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=tg(e),r=i.coordSysRecordMap||(i.coordSysRecordMap=te());r.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){A(iS(o).infoList,function(a){var s=a.model.uid,l=r.get(s)||r.set(s,function(u,h){var c={model:h,containsPoint:xe(sO,h),dispatchAction:xe(aO,u),dataZoomInfoMap:null,controller:null},p=c.controller=new Jd(u.getZr());return A(["pan","zoom","scrollMove"],function(d){p.on(d,function(f){var g=[];c.dataZoomInfoMap.each(function(y){if(f.isAvailableBehavior(y.model.option)){var v=(y.getRange||{})[d],m=v&&v(y.dzReferCoordSysInfo,c.model.mainType,c.controller,f);!y.model.get("disabled",!0)&&m&&g.push({dataZoomId:y.model.id,start:m[0],end:m[1]})}}),g.length&&c.dispatchAction(g)})}),c}(e,a.model));(l.dataZoomInfoMap||(l.dataZoomInfoMap=te())).set(o.uid,{dzReferCoordSysInfo:a,model:o,getRange:null})})}),r.each(function(o){var a,s=o.controller,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(a=l.get(u))}if(a){var h=function(c){var p,d="type_",f={type_true:2,type_move:1,type_false:0,type_undefined:-1},g=!0;return c.each(function(y){var v=y.model,m=!v.get("disabled",!0)&&(!v.get("zoomLock",!0)||"move");f[d+m]>f[d+p]&&(p=m),g=g&&v.get("preventDefaultMouseMove",!0)}),{controlType:p,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!g}}}(l);s.enable(h.controlType,h.opt),s.setPointerChecker(o.containsPoint),Fa(o,"dispatchAction",a.model.get("throttle",!0),"fixRate")}else GS(r,o)})})}var uO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return V(t,n),t.prototype.render=function(e,i,r){n.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(o,a,s){tg(o).coordSysRecordMap.each(function(l){var u=l.dataZoomInfoMap.get(a.uid);u&&(u.getRange=s)})}(r,e,{pan:Q(ng.pan,this),zoom:Q(ng.zoom,this),scrollMove:Q(ng.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function(e,i){for(var r=tg(e).coordSysRecordMap,o=r.keys(),a=0;a0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Rr(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:HS(function(n,t,e,i,r,o){var a=ig[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,e);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:HS(function(n,t,e,i,r,o){return ig[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,e).signal*(n[1]-n[0])*o.scrollDelta})};function HS(n){return function(t,e,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return Rr(n(a,s,t,e,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var ig={grid:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem.getRect();return n=n||[0,0],o.dim==="x"?(a.pixel=t[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(a.pixel=t[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(n,t,e,i,r){var o=e.axis,a=r.model.coordinateSystem.getRect(),s={};return n=n||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const hO=uO;function cO(n){Vf(n),n.registerComponentModel(oO),n.registerComponentView(hO),lO(n)}const pO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=xr(gs.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"}}}),t}(gs);var xs=Ie,_s="horizontal",WS="vertical",dO=["line","bar","candlestick","scatter"],fO={easing:"cubicOut",duration:100,delay:0},gO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return V(t,n),t.prototype.init=function(e,i){this.api=i,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(e,i,r,o){if(n.prototype.render.apply(this,arguments),Fa(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")!==!1){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&o.type==="dataZoom"&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ga(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ge;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,r=e.get("brushSelect")?7:0,o=this._findCoordRect(),a={width:i.getWidth(),height:i.getHeight()},s=this._orient===_s?{right:a.width-o.x-o.width,top:a.height-30-7-r,width:o.width,height:30}:{right:7,top:o.y,width:30,height:o.height},l=Pa(e.option);A(["right","top","width","height"],function(h){l[h]==="ph"&&(l[h]=s[h])});var u=St(l,a);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===WS&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,r=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(r!==_s||a?r===_s&&a?{scaleY:l?1:-1,scaleX:-1}:r!==WS||a?{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?1:-1,scaleX:1});var u=e.getBoundingRect([s]);e.x=i.x-u.x,e.y=i.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,r=this._displayables.sliderGroup,o=e.get("brushSelect");r.add(new xs({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new xs({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),r.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var i=this._size,r=this._shadowSize||[],o=e.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():e.otherDim;if(l!=null){var u=this._shadowPolygonPts,h=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==r[0]||i[1]!==r[1]){var c=a.getDataExtent(l),p=.3*(c[1]-c[0]);c=[c[0]-p,c[1]+p];var d,f=[0,i[1]],g=[0,i[0]],y=[[i[0],0],[0,0]],v=[],m=g[1]/(a.count()-1),x=0,_=Math.round(a.count()/i[0]);a.each([l],function(T,I){if(_>0&&I%_)x+=m;else{var C=T==null||isNaN(T)||T==="",D=C?0:Ae(T,c,f,!0);C&&!d&&I?(y.push([y[y.length-1][0],0]),v.push([v[v.length-1][0],0])):!C&&d&&(y.push([x,0]),v.push([x,0])),y.push([x,D]),v.push([x,D]),x+=m,d=C}}),u=this._shadowPolygonPts=y,h=this._shadowPolylinePts=v}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];for(var b=this.dataZoomModel,w=0;w<3;w++){var S=M(w===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}}function M(T){var I=b.getModel(T?"selectedDataBackground":"dataBackground"),C=new ge,D=new Vn({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new _n({shape:{points:h},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return C.add(D),C.add(L),C}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var r,o=this.ecModel;return e.eachTargetAxis(function(a,s){A(e.getAxisProxy(a,s).getTargetSeriesModels(),function(l){if(!(r||i!==!0&&Me(dO,l.get("type"))<0)){var u,h=o.getComponent(Vi(a),s).axis,c=function(d){var f={x:"y",y:"x",radius:"angle",angle:"radius"};return f[d]}(a),p=l.coordinateSystem;c!=null&&p.getOtherAxis&&(u=p.getOtherAxis(h).inverse),c=l.getData().mapDimension(c),r={thisAxis:h,series:l,thisDim:a,otherDim:c,otherAxisInverse:u}}},this)},this),r}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,r=i.handles=[null,null],o=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=i.filler=new xs({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new xs({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),A([0,1],function(x){var _=l.get("handleIcon");!eu[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_,$t("handleIcon now needs 'path://' prefix when using a path string"));var b=ut(_,-1,0,2,2,null,!0);b.attr({cursor:YS(this._orient),draggable:!0,drift:Q(this._onDragMove,this,x),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var w=b.getBoundingRect(),S=l.get("handleSize");this._handleHeight=ne(S,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ro(b);var M=l.get("handleColor");M!=null&&(b.style.fill=M),a.add(r[x]=b);var T=l.getModel("textStyle");e.add(o[x]=new ke({silent:!0,invisible:!0,style:it(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var d=p;if(c){var f=ne(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new Ie({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),y=.8*f,v=i.moveHandleIcon=ut(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);v.silent=!0,v.y=s[1]+f/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(f,10));(d=i.moveZone=new Ie({invisible:!0,shape:{y:s[1]-m,height:f+m}})).on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(v),a.add(d)}d.attr({draggable:!0,cursor:YS(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ae(e[0],[0,100],i,!0),Ae(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var r=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=r.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Rr(i,o,a,r.get("zoomLock")?"all":e,s.minSpan!=null?Ae(s.minSpan,l,a,!0):null,s.maxSpan!=null?Ae(s.maxSpan,l,a,!0):null);var u=this._range,h=this._range=Qn([Ae(o[0],a,l,!0),Ae(o[1],a,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},t.prototype._updateView=function(e){var i=this._displayables,r=this._handleEnds,o=Qn(r.slice()),a=this._size;A([0,1],function(d){var f=i.handles[d],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:r[d]+(d?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,o[0],o[1],a[0]],h=0;hi[0]||r[1]<0||r[1]>i[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",r[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,r=e.offsetY;this._brushStart=new de(i,r),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,i){i.attr("ignore",!0);var r=i.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(r.width)<5)){var o=this._getViewExtent(),a=[0,100];this._range=Qn([Ae(r.x,o,a,!0),Ae(r.x+r.width,o,a,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Jn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var r=this._displayables,o=this.dataZoomModel,a=r.brushRect;a||(a=r.brushRect=new xs({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),h=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),a.setShape({x:h[0],y:0,width:u[0]-h[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?fO:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=iS(this.dataZoomModel).infoList;if(!e&&i.length){var r=i[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var o=this.api.getWidth(),a=this.api.getHeight();e={x:.2*o,y:.2*a,width:.6*o,height:.6*a}}return e},t.type="dataZoom.slider",t}(Bf);function YS(n){return n==="vertical"?"ns-resize":"ew-resize"}const yO=gO;function vO(n){n.registerComponentModel(pO),n.registerComponentView(yO),Vf(n)}var mO={get:function(n,t,e){var i=oe((xO[n]||{})[t]);return e&&Y(i)?i[i.length-1]:i}},xO={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const XS=mO;var US=Nt.mapVisual,_O=Nt.eachVisual,wO=Y,ZS=A,bO=Qn,SO=Ae,MO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return V(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r)},t.prototype.optionUpdated=function(e,i){var r=this.option;!i&&function(o,a,s){var l;A(s,function(u){a.hasOwnProperty(u)&&OS(a[u])&&(l=!0)}),l&&A(s,function(u){a.hasOwnProperty(u)&&OS(a[u])?o[u]=oe(a[u]):delete o[u]})}(r,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var i=this.stateList;e=Q(e,this),this.controllerVisuals=RS(this.option.controller,i,e),this.targetVisuals=RS(this.option.target,i,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,i=[];return e==null||e==="all"?this.ecModel.eachSeries(function(r,o){i.push(o)}):i=Qe(e),i},t.prototype.eachTargetSeries=function(e,i){A(this.getTargetSeriesIndices(),function(r){var o=this.ecModel.getSeriesByIndex(r);o&&e.call(i,o)},this)},t.prototype.isTargetSeries=function(e){var i=!1;return this.eachTargetSeries(function(r){r===e&&(i=!0)}),i},t.prototype.formatValueText=function(e,i,r){var o,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;r=r||["<",">"],Y(e)&&(e=e.slice(),o=!0);var h=i?e:o?[c(e[0]),c(e[1])]:c(e);return j(u)?u.replace("{value}",o?h[0]:h).replace("{value2}",o?h[1]:h):ae(u)?o?u(e[0],e[1]):u(e):o?e[0]===l[0]?r[0]+" "+h[1]:e[1]===l[1]?r[1]+" "+h[0]:h[0]+" - "+h[1]:h;function c(p){return p===l[0]?"min":p===l[1]?"max":(+p).toFixed(Math.min(s,20))}},t.prototype.resetExtent=function(){var e=this.option,i=bO([e.min,e.max]);this._dataExtent=i},t.prototype.getDataDimensionIndex=function(e){var i=this.option.dimension;if(i!=null)return e.getDimensionIndex(i);for(var r=e.dimensions,o=r.length-1;o>=0;o--){var a=r[o],s=e.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,i=this.option,r={inRange:i.inRange,outOfRange:i.outOfRange},o=i.target||(i.target={}),a=i.controller||(i.controller={});pe(o,r),pe(a,r);var s=this.isCategory();function l(u){wO(i.color)&&!u.inRange&&(u.inRange={color:i.color.slice().reverse()}),u.inRange=u.inRange||{color:e.get("gradientColor")}}l.call(this,o),l.call(this,a),(function(u,h,c){var p=u[h],d=u[c];p&&!d&&(d=u[c]={},ZS(p,function(f,g){if(Nt.isValidType(g)){var y=XS.get(g,"inactive",s);y!=null&&(d[g]=y,g!=="color"||d.hasOwnProperty("opacity")||d.hasOwnProperty("colorAlpha")||(d.opacity=[0,0]))}}))}).call(this,o,"inRange","outOfRange"),(function(u){var h=(u.inRange||{}).symbol||(u.outOfRange||{}).symbol,c=(u.inRange||{}).symbolSize||(u.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol()||"roundRect";ZS(this.stateList,function(f){var g=this.itemSize,y=u[f];y||(y=u[f]={color:s?p:[p]}),y.symbol==null&&(y.symbol=h&&oe(h)||(s?d:[d])),y.symbolSize==null&&(y.symbolSize=c&&oe(c)||(s?g[0]:[g[0],g[0]])),y.symbol=US(y.symbol,function(x){return x==="none"?d:x});var v=y.symbolSize;if(v!=null){var m=-1/0;_O(v,function(x){x>m&&(m=x)}),y.symbolSize=US(v,function(x){return SO(x,[0,m],[0,g[0]],!0)})}},this)}).call(this,a)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Te);const lh=MO;var jS=[20,140],TO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.optionUpdated=function(e,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=jS[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=jS[1])},t.prototype._resetRange=function(){var e=this.getExtent(),i=this.option.range;!i||i.auto?(e.auto=1,this.option.range=e):Y(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],e[0]),i[1]=Math.min(i[1],e[1]))},t.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var i=this.option.controller[e].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),i=Qn((this.get("range")||[]).slice());return i[0]>e[1]&&(i[0]=e[1]),i[1]>e[1]&&(i[1]=e[1]),i[0]=r[1]||e<=i[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[];return this.eachTargetSeries(function(r){var o=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(s,l){e[0]<=s&&s<=e[1]&&o.push(l)},this),i.push({seriesId:r.id,dataIndex:o})},this),i},t.prototype.getVisualMeta=function(e){var i=qS(this,"outOfRange",this.getExtent()),r=qS(this,"inRange",this.option.range.slice()),o=[];function a(d,f){o.push({value:d,color:e(d,f)})}for(var s=0,l=0,u=r.length,h=i.length;le[1])break;r.push({color:this.getControllerVisual(s,"color",i),offset:a/100})}return r.push({color:this.getControllerVisual(e[1],"color",i),offset:1}),r},t.prototype._createBarPoints=function(e,i){var r=this.visualMapModel.itemSize;return[[r[0]-i[0],e[0]],[r[0],e[0]],[r[0],e[1]],[r[0]-i[1],e[1]]]},t.prototype._createBarGroup=function(e){var i=this._orient,r=this.visualMapModel.get("inverse");return new ge(i!=="horizontal"||r?i==="horizontal"&&r?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:i!=="vertical"||r?{scaleX:e==="left"?1:-1}:{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,i){if(this._useHandle){var r=this._shapes,o=this.visualMapModel,a=r.handleThumbs,s=r.handleLabels,l=o.itemSize,u=o.getExtent();CO([0,1],function(h){var c=a[h];c.setStyle("fill",i.handlesColor[h]),c.y=e[h];var p=Zn(e[h],[0,l[1]],u,!0),d=this.getControllerVisual(p,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var f=Fn(r.handleLabelPoints[h],Ai(c,this.group));s[h].setStyle({x:f[0],y:f[1],text:o.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",r.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,i,r,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],h=this._shapes,c=h.indicator;if(c){c.attr("invisible",!1);var p=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,"symbolSize"),f=Zn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=f,c.x=g;var v=Fn(h.indicatorLabelPoint,Ai(c,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var x=this._applyTransform("left",h.mainGroup),_=this._orient==="horizontal";m.setStyle({text:(r||"")+a.formatValueText(i),verticalAlign:_?x:"middle",align:_?"center":x});var b={x:g,y:f,style:{fill:p}},w={style:{x:v[0],y:v[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(b,S),m.animateTo(w,S)}else c.attr(b),m.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var T=0;Ta[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(h,c[1],"< ",l):c[1]===1/0?this._showIndicator(h,c[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var p=this._hoverLinkDataIndices,d=[];(i||tM(r))&&(d=this._hoverLinkDataIndices=r.findTargetDataIndices(c));var f=function(g,y){var v={},m={};return x(g||[],v),x(y||[],m,v),[_(v),_(m)];function x(b,w,S){for(var M=0,T=b.length;M=0&&(o.dimension=a,i.push(o))}}),n.getData().setVisual("visualMeta",i)}}];function OO(n,t,e,i){for(var r=t.targetVisuals[i],o=Nt.prepareVisualTypes(r),a={color:rx(n.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),n.registerAction(kO,LO),A(PO,function(t){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,t)}),n.registerPreprocessor(RO))}function EO(n){n.registerComponentModel(IO),n.registerComponentView(DO),oM(n)}var NO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return V(t,n),t.prototype.optionUpdated=function(e,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],zO[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var o=this.option.categories;this.resetVisual(function(a,s){r==="categories"?(a.mappingMethod="category",a.categories=oe(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=X(this._pieceList,function(l){return l=oe(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,i={},r=Nt.listVisualTypes(),o=this.isCategory();function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}A(e.pieces,function(s){A(r,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),A(i,function(s,l){var u=!1;A(this.stateList,function(h){u=u||a(e,h,l)||a(e.target,h,l)},this),!u&&A(this.stateList,function(h){(e[h]||(e[h]={}))[l]=XS.get(l,h==="inRange"?"active":"inactive",o)})},this),n.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,i){var r=this.option,o=this._pieceList,a=(i?r:e).selected||{};if(r.selected=a,A(o,function(l,u){var h=this.getSelectedMapKey(l);a.hasOwnProperty(h)||(a[h]=!0)},this),r.selectedMode==="single"){var s=!1;A(o,function(l,u){var h=this.getSelectedMapKey(l);a[h]&&(s?a[h]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=oe(e)},t.prototype.getValueState=function(e){var i=Nt.findPieceIndex(e,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[],r=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){Nt.findPieceIndex(l,r)===e&&a.push(u)},this),i.push({seriesId:o.id,dataIndex:a})},this),i},t.prototype.getRepresentValue=function(e){var i;if(this.isCategory())i=e.value;else if(e.value!=null)i=e.value;else{var r=e.interval||[];i=r[0]===-1/0&&r[1]===1/0?0:(r[0]+r[1])/2}return i},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var i=[],r=["",""],o=this,a=this._pieceList.slice();if(a.length){var s=a[0].interval[0];s!==-1/0&&a.unshift({interval:[-1/0,s]}),(s=a[a.length-1].interval[1])!==1/0&&a.push({interval:[s,1/0]})}else a.push({interval:[-1/0,1/0]});var l=-1/0;return A(a,function(h){var c=h.interval;c&&(c[0]>l&&u([l,c[0]],"outOfRange"),u(c.slice()),l=c[1])},this),{stops:i,outerColors:r}}function u(h,c){var p=o.getRepresentValue({interval:h});c||(c=o.getValueState(p));var d=e(p,c);h[0]===-1/0?r[0]=d:h[1]===1/0?r[1]=d:i.push({value:h[0],color:d},{value:h[1],color:d})}},t.type="visualMap.piecewise",t.defaultOption=xr(lh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(lh),zO={splitNumber:function(n){var t=this.option,e=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(e)!==o&&e<5;)e++;t.precision=e,o=+o.toFixed(e),t.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];aa[1]&&console.warn("Piece "+i+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&s[0]&&s[1]&&(r.value=a[0])}r.visual=Nt.retrieveVisuals(e),n.push(r)},this),aM(t,n),yc(n),A(n,function(e){var i=e.close,r=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,r)},this)}};function aM(n,t){var e=n.inverse;(n.orient==="vertical"?!e:e)&&t.reverse()}const BO=NO,VO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.doRender=function(){var e=this.group;e.removeAll();var i=this.visualMapModel,r=i.get("textGap"),o=i.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),u=i.itemSize,h=this._getViewData(),c=h.endsText,p=Yt(i.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],u,p,l),A(h.viewPieceList,function(d){var f=d.piece,g=new ge;g.onclick=Q(this._onItemClick,this,f),this._enableHoverLink(g,d.indexInModelPieceList);var y=i.getRepresentValue(f);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]]),p){var v=this.visualMapModel.getValueState(y);g.add(new ke({style:{x:l==="right"?-r:u[0]+r,y:u[1]/2,text:f.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:v==="outOfRange"?.5:1}}))}e.add(g)},this),c&&this._renderEndsText(e,c[1],u,p,l),wr(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,i){var r=this;e.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=r.visualMapModel;s.option.hoverLink&&r.api.dispatchAction({type:a,batch:uh(s.findTargetDataIndices(i),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,i=e.option;if(i.orient==="vertical")return $S(e,this.api,e.itemSize);var r=i.align;return r&&r!=="auto"||(r="left"),r},t.prototype._renderEndsText=function(e,i,r,o,a){if(i){var s=new ge,l=this.visualMapModel.textStyleModel;s.add(new ke({style:it(l,{x:o?a==="right"?r[0]:0:r[0]/2,y:r[1]/2,verticalAlign:"middle",align:o?a:"center",text:i})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,i=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),r=e.get("text"),o=e.get("orient"),a=e.get("inverse");return(o==="horizontal"?a:!a)?i.reverse():r&&(r=r.slice().reverse()),{viewPieceList:i,endsText:r}},t.prototype._createItemSymbol=function(e,i,r){e.add(ut(this.getControllerVisual(i,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(i,"color")))},t.prototype._onItemClick=function(e){var i=this.visualMapModel,r=i.option,o=r.selectedMode;if(o){var a=oe(r.selected),s=i.getSelectedMapKey(e);o==="single"||o===!0?(a[s]=!0,A(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(KS);function FO(n){n.registerComponentModel(BO),n.registerComponentView(VO),oM(n)}var GO={label:{enabled:!0},decal:{show:!1}},sM=Ne(),HO={};function WO(n,t){var e=n.getModel("aria");if(e.get("enabled")){var i=oe(GO);pe(i.label,n.getLocaleModel().get("aria"),!1),pe(e.option,i,!1),function(){if(e.getModel("decal").get("show")){var o=te();n.eachSeries(function(a){if(!a.isColorBySeries()){var s=o.get(a.type);s||(s={},o.set(a.type,s)),sM(a).scope=s}}),n.eachRawSeries(function(a){if(!n.isSeriesFiltered(a))if(ae(a.enableAriaDecal))a.enableAriaDecal();else{var s=a.getData();if(a.isColorBySeries()){var l=Um(a.ecModel,a.name,HO,n.getSeriesCount()),u=s.getVisual("decal");s.setVisual("decal",f(u,l))}else{var h=a.getRawData(),c={},p=sM(a).scope;s.each(function(g){var y=s.getRawIndex(g);c[y]=g});var d=h.count();h.each(function(g){var y=c[g],v=h.getName(g)||g+"",m=Um(a.ecModel,v,p,d),x=s.getItemVisual(y,"decal");s.setItemVisual(y,"decal",f(x,m))})}}function f(g,y){var v=g?G(G({},y),g):y;return v.dirty=!0,v}})}}(),function(){var o=n.getLocaleModel().get("aria"),a=e.getModel("label");if(a.option=le(a.option,o),!!a.get("enabled")){var s=t.getZr().dom;if(a.get("description"))return void s.setAttribute("aria-label",a.get("description"));var l,u=n.getSeriesCount(),h=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,p=Math.min(u,c);if(!(u<1)){var d=function(){var m=n.get("title");return m&&m.length&&(m=m[0]),m&&m.text}();l=d?r(a.get(["general","withTitle"]),{title:d}):a.get(["general","withoutTitle"]);var f=[];l+=r(u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:u}),n.eachSeries(function(m,x){if(x1?a.get(["series","multiple",b]):a.get(["series","single",b]),{seriesId:m.seriesIndex,seriesName:m.get("name"),seriesType:(R=m.subType,P=n.getLocaleModel().get(["series","typeNames"]),P[R]||P.chart)});var w=m.getData();w.count()>h?_+=r(a.get(["data","partialData"]),{displayCnt:h}):_+=a.get(["data","allData"]);for(var S=a.get(["data","separator","middle"]),M=a.get(["data","separator","end"]),T=[],I=0;I=l)}}for(var p=this.__startIndex;p15)break}R.prevElClipPaths&&m.restore()};if(x)if(x.length===0)y=v.__endIndex;else for(var I=d.dpr,C=0;C0&&t>r[0]){for(l=0;lt);l++);s=i[r[l]]}if(r.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(e.dom,u.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.painter||(e.painter=this)}else Wi("Layer of zlevel "+t+" is not valid")},n.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r0?hh:0),this._needsManuallyCompositing),h.__builtin__||Wi("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),a=h),l.__dirty&Vt&&!l.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer(function(c,p){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?pe(i[t],e,!0):i[t]=e;for(var r=0;r=0?1/(Math.cos(2*Math.PI/10-O)+3.07768*Math.sin(2*Math.PI/10-O)):1/(Math.cos(O)+3.07768*Math.sin(O))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var a,s,l,u,h,c,p,d,f=i.gridSize,g=f-i.maskGapWidth,y=Math.abs(i.maxRotation-i.minRotation),v=Math.min(i.maxRotation,i.minRotation),m=i.rotationStep;switch(i.color){case"random-dark":p=function(){return E(10,50)};break;case"random-light":p=function(){return E(50,90)};break;default:typeof i.color=="function"&&(p=i.color)}typeof i.fontWeight=="function"&&(d=i.fontWeight);var x=null;typeof i.classes=="function"&&(x=i.classes);var _,b=!1,w=[],S=function(k){var O,N,B=k.currentTarget,z=B.getBoundingClientRect();k.touches?(O=k.touches[0].clientX,N=k.touches[0].clientY):(O=k.clientX,N=k.clientY);var U=O-z.left,Z=N-z.top,F=Math.floor(U*(B.width/z.width||1)/f),W=Math.floor(Z*(B.height/z.height||1)/f);return w[F]?w[F][W]:null},M=function(k){var O=S(k);_!==O&&(_=O,O?i.hover(O.item,O.dimension,k):i.hover(void 0,void 0,k))},T=function(k){var O=S(k);O&&(i.click(O.item,O.dimension,k),k.preventDefault())},I=[],C=function(k){if(I[k])return I[k];var O=8*k,N=O,B=[];for(k===0&&B.push([u[0],u[1],0]);N--;){var z=1;i.shape!=="circle"&&(z=i.shape(N/O*2*Math.PI)),B.push([u[0]+k*z*Math.cos(-N/O*2*Math.PI),u[1]+k*z*Math.sin(-N/O*2*Math.PI)*i.ellipticity,N/O*2*Math.PI])}return I[k]=B,B},D=function(){return i.abortThreshold>0&&new Date().getTime()-c>i.abortThreshold},L=function(k,O,N,B,z){k>=s||O>=l||k<0||O<0||(a[k][O]=!1,N&&n[0].getContext("2d").fillRect(k*f,O*f,g,g),b&&(w[k][O]={item:z,dimension:B}))},R=function k(O,N){if(N>20)return null;var B,z,U;Array.isArray(O)?(B=O[0],z=O[1]):(B=O.word,z=O.weight,U=O.attributes);var Z=i.rotateRatio===0||Math.random()>i.rotateRatio?0:y===0?v:v+Math.round(Math.random()*y/m)*m,F=function(H){if(Array.isArray(H)){var $=H.slice();return $.splice(0,2),$}return[]}(O),W=function(H,$,re,Ce){var ve=i.weightFactor($);if(ve<=i.minSize)return!1;var _e,be=1;veyi[1]&&(yi[1]=Vr),fnyi[2]&&(yi[2]=fn);break e}}return{mu:be,occupied:pM,bounds:yi,gw:Ye,gh:ht,fillTextOffsetX:vt,fillTextOffsetY:Ke,fillTextWidth:Pe,fillTextHeight:Ve,fontSize:ve}}(B,z,Z,F);if(!W||D())return!1;if(!i.drawOutOfBound&&!i.shrinkToFit){var K=W.bounds;if(K[1]-K[3]+1>s||K[2]-K[0]+1>l)return!1}for(var se=h+1,he=function(H){var $=Math.floor(H[0]-W.gw/2),re=Math.floor(H[1]-W.gh/2);return W.gw,W.gh,!!function(Ce,ve,_e,be,Le){for(var Se=Le.length;Se--;){var Pe=Ce+Le[Se][0],Ve=ve+Le[Se][1];if(Pe>=s||Ve>=l||Pe<0||Ve<0){if(!i.drawOutOfBound)return!1}else if(!a[Pe][Ve])return!1}return!0}($,re,0,0,W.occupied)&&(function(Ce,ve,_e,be,Le,Se,Pe,Ve,qe,Fe){var Ge,ce,vt,Ke=_e.fontSize;Ge=p?p(be,Le,Ke,Se,Pe,Fe):i.color,ce=d?d(be,Le,Ke,Fe):i.fontWeight,vt=x?x(be,Le,Ke,Fe):i.classes,n.forEach(function(ht){if(ht.getContext){var Ye=ht.getContext("2d"),zt=_e.mu;Ye.save(),Ye.scale(1/zt,1/zt),Ye.font=ce+" "+(Ke*zt).toString(10)+"px "+i.fontFamily,Ye.fillStyle=Ge,Ye.translate((Ce+_e.gw/2)*f*zt,(ve+_e.gh/2)*f*zt),Ve!==0&&Ye.rotate(-Ve),Ye.textBaseline="middle",Ye.fillText(be,_e.fillTextOffsetX*zt,(_e.fillTextOffsetY+.5*Ke)*zt),Ye.restore()}else{var gi=document.createElement("span"),Br="";Br="rotate("+-Ve/Math.PI*180+"deg) ",_e.mu!==1&&(Br+="translateX(-"+_e.fillTextWidth/4+"px) scale("+1/_e.mu+")");var fn={position:"absolute",display:"block",font:ce+" "+Ke*_e.mu+"px "+i.fontFamily,left:(Ce+_e.gw/2)*f+_e.fillTextOffsetX+"px",top:(ve+_e.gh/2)*f+_e.fillTextOffsetY+"px",width:_e.fillTextWidth+"px",height:_e.fillTextHeight+"px",lineHeight:Ke+"px",whiteSpace:"nowrap",transform:Br,webkitTransform:Br,msTransform:Br,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var Bo in Ge&&(fn.color=Ge),gi.textContent=be,fn)gi.style[Bo]=fn[Bo];if(qe)for(var Vo in qe)gi.setAttribute(Vo,qe[Vo]);vt&&(gi.className+=vt),ht.appendChild(gi)}})}($,re,W,B,z,h-se,H[2],Z,U,F),function(Ce,ve,_e,be,Le,Se){var Pe,Ve,qe=Le.occupied,Fe=i.drawMask;if(Fe&&((Pe=n[0].getContext("2d")).save(),Pe.fillStyle=i.maskColor),b){var Ge=Le.bounds;Ve={x:(Ce+Ge[3])*f,y:(ve+Ge[0])*f,w:(Ge[1]-Ge[3]+1)*f,h:(Ge[2]-Ge[0]+1)*f}}for(var ce=qe.length;ce--;){var vt=Ce+qe[ce][0],Ke=ve+qe[ce][1];vt>=s||Ke>=l||vt<0||Ke<0||L(vt,Ke,Fe,Ve,Se)}Fe&&Pe.restore()}($,re,0,0,W,O),{gx:$,gy:re,rot:Z,info:W})};se--;){var ie=C(h-se);i.shuffle&&(ie=[].concat(ie),KO(ie));for(var q=0;q=i.list.length)return Z(zo[e]),P("wordcloudstop",!1),q("wordcloudstart",J),void delete zo[e];c=new Date().getTime();var $=R(i.list[z],0),re=!P("wordclouddrawn",!0,{item:i.list[z],drawn:$});if(D()||re)return Z(zo[e]),i.abort(),P("wordcloudabort",!1),P("wordcloudstop",!1),void q("wordcloudstart",J);z++,zo[e]=U(H,i.wait)}},i.wait)}})()}function E(k,O){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(O-k)+k).toFixed()+"%)"}};if(ch.isSupported=ag,ch.minFontSize=sg,!ch.isSupported)throw new Error("Sorry your browser not support wordCloud");cd(function(n,t){n.eachSeriesByType("wordCloud",function(e){var i=St(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),r=e.get("keepAspect"),o=e.get("maskImage"),a=o?o.width/o.height:1;r&&function(y,v){var m=y.width,x=y.height;m>x*v?(y.x+=(m-x*v)/2,y.width=x*v):(y.y+=(x-m/v)/2,y.height=m/v)}(i,a);var s=e.getData(),l=document.createElement("canvas");l.width=i.width,l.height=i.height;var u=l.getContext("2d");if(o)try{u.drawImage(o,0,0,l.width,l.height),function(y){for(var v=y.getContext("2d"),m=v.getImageData(0,0,y.width,y.height),x=v.createImageData(m),_=0,b=0,w=0;w128&&(_+=M=m.data[w]+m.data[w+1]+m.data[w+2],++b);var S=_/b;for(w=0;wS?(x.data[w]=0,x.data[w+1]=0,x.data[w+2]=0,x.data[w+3]=0):(x.data[w]=255,x.data[w+1]=255,x.data[w+2]=255,x.data[w+3]=255)}v.putImageData(x,0,0)}(l)}catch(y){console.error("Invalid mask image"),console.error(y.toString())}var h=e.get("sizeRange"),c=e.get("rotationRange"),p=s.getDataExtent("value"),d=Math.PI/180,f=e.get("gridSize");function g(y){var v=y.detail.item;y.detail.drawn&&e.layoutInstance.ondraw&&(y.detail.drawn.gx+=i.x/f,y.detail.drawn.gy+=i.y/f,e.layoutInstance.ondraw(v[0],v[1],v[2],y.detail.drawn))}ch(l,{list:s.mapArray("value",function(y,v){var m=s.getItemModel(v);return[s.getName(v),m.get("textStyle.fontSize",!0)||Ae(y,p,h),v]}).sort(function(y,v){return v[1]-y[1]}),fontFamily:e.get("textStyle.fontFamily")||e.get("emphasis.textStyle.fontFamily")||n.get("textStyle.fontFamily"),fontWeight:e.get("textStyle.fontWeight")||e.get("emphasis.textStyle.fontWeight")||n.get("textStyle.fontWeight"),gridSize:f,ellipticity:i.height/i.width,minRotation:c[0]*d,maxRotation:c[1]*d,clearCanvas:!o,rotateRatio:1,rotationStep:e.get("rotationStep")*d,drawOutOfBound:e.get("drawOutOfBound"),shrinkToFit:e.get("shrinkToFit"),layoutAnimation:e.get("layoutAnimation"),shuffle:!1,shape:e.get("shape")}),l.addEventListener("wordclouddrawn",g),e.layoutInstance&&e.layoutInstance.dispose(),e.layoutInstance={ondraw:null,dispose:function(){l.removeEventListener("wordclouddrawn",g),l.addEventListener("wordclouddrawn",function(y){y.preventDefault()})}}})}),fu(function(n){var t=(n||{}).series;!Y(t)&&(t=t?[t]:[]);var e=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function i(r){r&&A(e,function(o){r.hasOwnProperty(o)&&(r["text"+Em(o)]=r[o])})}A(t,function(r){if(r&&r.type==="wordCloud"){var o=r.textStyle||{};i(o.normal),i(o.emphasis)}})});let cM;cM=JO({name:"EChart",__name:"Echart",props:{options:{type:Object,required:!0},width:dM.oneOfType([Number,String]).def(""),height:dM.oneOfType([Number,String]).def("500px")},emits:["chart-init"],setup(n,{emit:t}){const{getPrefixCls:e,variables:i}=lR(),r=e("echart"),o=$O(),a=n,s=ph(()=>o.getIsDark),l=ph(()=>!!An(s)||"auto"),u=ph(()=>Object.assign(a.options,{darkMode:An(l)})),h=fM();let c=null;const p=fM(),d=ph(()=>({width:gM(a.width)?a.width:`${a.width}px`,height:gM(a.height)?a.height:`${a.height}px`}));QO(()=>u.value,v=>{c&&(c==null||c.setOption(v))},{deep:!0});const f=eR(()=>{c&&c.resize()},100),g=async v=>{v.propertyName==="width"&&f()},y=t;return tR(()=>{An(h)&&a.options&&(c=ug.init(An(h)),c==null||c.setOption(An(u))),y("chart-init",c),window.addEventListener("resize",f),p.value=document.getElementsByClassName(`${i.namespace}-layout-content`)[0],An(p)&&An(p).addEventListener("transitionend",g)}),nR(()=>{window.removeEventListener("resize",f),An(p)&&An(p).removeEventListener("transitionend",g)}),iR(()=>{c&&c.resize()}),(v,m)=>(rR(),oR("div",{ref_key:"elRef",ref:h,class:aR([v.$attrs.class,An(r)]),style:sR(An(d))},null,6))}}),yM=uR(cM,[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/Echart/src/Echart.vue"]])});export{yM as _,cR as __tla,ug as e};