import{x as e_,d as cs,r as ot,y as Np,z as zp,o as ds,e as Jt,g as Cf,w as at,_ as ps,f as te,j as ht,k,A as bt,B as r_,l as $i,i as Pe,s as n_,t as i_,C as kh,D as So,n as Oi,F as wo,h as di,E as a_}from"./index.2854391f.js";import{g as Wn,a as Oo,b as Ia}from"./date.f423aacf.js";var o_="./assets/img1.ae62df66.png",s_="./assets/img2.910a87e9.png",l_="./assets/img3.0af9b1c7.png",u_="./assets/img4.b8ea4725.png",f_="./assets/img5.6d343d4b.png",h_="./assets/img6.4d67ec3f.png";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var gu=function(r,t){return gu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},gu(r,t)};function z(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var v_=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),c_=function(){function r(){this.browser=new v_,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),rn=new c_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(rn.wxa=!0,rn.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?rn.worker=!0:typeof navigator=="undefined"?(rn.node=!0,rn.svgSupported=!0):d_(navigator.userAgent,rn);function d_(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",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!="undefined";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}var j=rn,Tf=12,p_="sans-serif",dn=Tf+"px "+p_,g_=20,m_=100,y_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function __(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function Y_(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?Nh(s,o):Nh(o,s))}function Xp(r){return r.nodeName.toUpperCase()==="CANVAS"}var X_=/([&<>"'])/g,Z_={"&":"&","<":"<",">":">",'"':""","'":"'"};function ye(r){return r==null?"":(r+"").replace(X_,function(t,e){return Z_[e]})}var q_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qs=[],K_=j.browser.firefox&&+j.browser.version.split(".")[0]<39;function bu(r,t,e,n){return e=e||{},n?Gh(r,t,e):K_&&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):Gh(r,t,e),e}function Gh(r,t,e){if(j.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Xp(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(wu(Qs,r,n,i)){e.zrX=Qs[0],e.zrY=Qs[1];return}}e.zrX=e.zrY=0}function Lf(r){return r||window.event}function pe(r,t,e){if(t=Lf(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&bu(r,o,t,e)}else{bu(r,t,t,e);var a=Q_(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&q_.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Q_(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function j_(r,t,e,n){r.addEventListener(t,e,n)}function J_(r,t,e,n){r.removeEventListener(t,e,n)}var Zp=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},t1=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Hh(n)/Hh(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=e1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function sa(){return[1,0,0,1,0,0]}function If(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function r1(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function qn(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=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 r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function xu(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Pf(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*a+u*l,r[5]=f*l-u*a,r}function n1(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Ef(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}var i1=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(!!t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}(),q=i1,Ea=Math.min,Ra=Math.max,kr=new q,Or=new q,Br=new q,Fr=new q,pi=new q,gi=new q,a1=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Ea(t.x,this.x),n=Ea(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ra(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ra(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=sa();return xu(a,a,[-e.x,-e.y]),n1(a,a,[n,i]),xu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,gd&&(d=S,m=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}kr.x=Br.x=e.x,kr.y=Fr.y=e.y,Or.x=Fr.x=e.x+e.width,Or.y=Br.y=e.y+e.height,kr.transform(n),Fr.transform(n),Or.transform(n),Br.transform(n),t.x=Ea(kr.x,Or.x,Br.x,Fr.x),t.y=Ea(kr.y,Or.y,Br.y,Fr.y);var l=Ra(kr.x,Or.x,Br.x,Fr.x),u=Ra(kr.y,Or.y,Br.y,Fr.y);t.width=l-t.x,t.height=u-t.y},r}(),ut=a1,qp="silent";function o1(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:s1}}function s1(){Zp(this.event)}var l1=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ze),mi=function(){function r(t,e){this.x=t,this.y=e}return r}(),u1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Js=new ut(0,0,0,0),Kp=function(r){z(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new mi(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new l1,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new H_(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(u1,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Qp(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new mi(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new mi(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=o1(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new mi(e,n);if(Vh(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ut(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Js.copy(c.getBoundingRect()),c.transform&&Js.applyTransform(c.transform),Js.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function f1(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?qp:!0}return!1}function Vh(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=f1(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==qp)){t.target=o;break}}}function Qp(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var h1=Kp,jp=32,yi=7;function v1(r){for(var t=0;r>=jp;)t|=r&1,r>>=1;return r+t}function Wh(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function c1(r,t,e){for(e--;t>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function tl(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function el(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function d1(r,t){var e=yi,n,i,a=0;r.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]=yi||x>=yi);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(m=0;m=0;m--)r[w+m]=r[b+m];r[S]=o[_];return}for(var x=e;;){var C=0,D=0,A=!1;do if(t(o[_],r[y])<0){if(r[S--]=r[y--],C++,D=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],D++,C=0,--p===1){A=!0;break}while((C|D)=0;m--)r[w+m]=r[b+m];if(d===0){A=!0;break}}if(r[S--]=o[_--],--p===1){A=!0;break}if(D=p-tl(r[y],o,0,p,p-1,t),D!==0){for(S-=D,_-=D,p-=D,w=S+1,b=_+1,m=0;m=yi||D>=yi);if(A)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)r[w+m]=r[b+m];r[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),m=0;ms&&(l=s),Uh(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var ue=1,Bi=2,Hn=4,$h=!1;function rl(){$h||($h=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Yh(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var p1=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Yh}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(rl(),f.z=0),isNaN(f.z2)&&(rl(),f.z2=0),isNaN(f.zlevel)&&(rl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),g1=p1,Jp;Jp=j.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Cu=Jp,xo={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-xo.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?xo.bounceIn(r*2)*.5:xo.bounceOut(r*2-1)*.5+.5}},tg=xo,ka=Math.pow,Ar=Math.sqrt,Fo=1e-8,eg=1e-4,Xh=Ar(3),Oa=1/3,Ge=li(),_e=li(),Kn=li();function xr(r){return r>-Fo&&rFo||r<-Fo}function It(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Zh(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function No(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(xr(f)&&xr(h))if(xr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(xr(g)){var p=h/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(g>0){var y=Ar(g),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-ka(-_,Oa):_=ka(_,Oa),S<0?S=-ka(-S,Oa):S=ka(S,Oa);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*Ar(f*f*f)),w=Math.acos(b)/3,x=Ar(f),C=Math.cos(w),d=(-s-2*x*C)/(3*o),m=(-s+x*(C+Xh*Math.sin(w)))/(3*o),D=(-s+x*(C-Xh*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),D>=0&&D<=1&&(a[v++]=D)}}return v}function ng(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(xr(o)){if(rg(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(xr(f))i[0]=-a/(2*o);else if(f>0){var h=Ar(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function zo(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function m1(r,t,e,n,i,a,o,s,l,u,f){var h,c=.005,v=1/0,d,g,p,m;Ge[0]=l,Ge[1]=u;for(var y=0;y<1;y+=.05)_e[0]=It(r,e,i,o,y),_e[1]=It(t,n,a,s,y),p=Zn(Ge,_e),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(xr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Ar(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function ig(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Go(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function S1(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;Ge[0]=o,Ge[1]=s;for(var c=0;c<1;c+=.05){_e[0]=Nt(r,e,i,c),_e[1]=Nt(t,n,a,c);var v=Zn(Ge,_e);v=0&&v=1?1:No(0,n,a,1,l,s)&&It(0,i,o,1,s[0])}}}var x1=function(){function r(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||ne,this.ondestroy=t.ondestroy||ne,this.onrestart=t.onrestart||ne,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:tg[t]||ag(t)},r}(),C1=x1,og=function(){function r(t){this.value=t}return r}(),T1=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new og(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),D1=function(){function r(t){this._list=new T1,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new og(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),ba=D1,Kh={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 Mr(r){return r=Math.round(r),r<0?0:r>255?255:r}function Tu(r){return r<0?0:r>1?1:r}function nl(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Mr(parseFloat(t)/100*255):Mr(parseInt(t,10))}function Xi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Tu(parseFloat(t)/100):Tu(parseFloat(t))}function il(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ba(r,t,e){return r+(t-r)*e}function de(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Du(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var sg=new ba(20),Fa=null;function An(r,t){Fa&&Du(Fa,t),Fa=sg.put(r,Fa||t.slice())}function nr(r,t){if(!!r){t=t||[];var e=sg.get(r);if(e)return Du(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Kh)return Du(t,Kh[n]),An(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){de(t,0,0,0,1);return}return de(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),An(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){de(t,0,0,0,1);return}return de(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),An(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?de(t,+u[0],+u[1],+u[2],1):de(t,0,0,0,1);f=Xi(u.pop());case"rgb":if(u.length>=3)return de(t,nl(u[0]),nl(u[1]),nl(u[2]),u.length===3?f:Xi(u[3])),An(r,t),t;de(t,0,0,0,1);return;case"hsla":if(u.length!==4){de(t,0,0,0,1);return}return u[3]=Xi(u[3]),Qh(u,t),An(r,t),t;case"hsl":if(u.length!==3){de(t,0,0,0,1);return}return Qh(u,t),An(r,t),t;default:return}}de(t,0,0,0,1)}}function Qh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Xi(r[1]),i=Xi(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],de(t,Mr(il(o,a,e+1/3)*255),Mr(il(o,a,e)*255),Mr(il(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function jh(r,t){var e=nr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return _s(e,e.length===4?"rgba":"rgb")}}function A1(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=nr(t[i]),s=nr(t[a]),l=n-i,u=_s([Mr(Ba(o[0],s[0],l)),Mr(Ba(o[1],s[1],l)),Mr(Ba(o[2],s[2],l)),Tu(Ba(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function _s(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Ho(r,t){var e=nr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function M1(r){return r.type==="linear"}function L1(r){return r.type==="radial"}(function(){return j.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return ln("Base64 isn't natively supported in the current environment."),null}})();var Au=Array.prototype.slice;function Je(r,t,e){return(t-r)*e+r}function al(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=tv,l=e;if(ie(e)){var u=R1(e);s=u,(u===1&&!pt(e[0])||u===2&&!pt(e[0][0]))&&(o=!0)}else if(pt(e)&&!oa(e))s=za;else if(W(e))if(!isNaN(+e))s=za;else{var f=nr(e);f&&(l=f,s=Fi)}else if(ms(e)){var h=B({},l);h.colorStops=Y(e.colorStops,function(v){return{offset:v.offset,color:nr(v.color)}}),M1(e)?s=Mu:L1(e)&&(s=Lu),l=h}a===0?this.valType=s:(s!==this.valType||s===tv)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=K(n)?n:tg[n]||ag(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ga(i),u=ev(i),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;fe);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,m=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?_i:t[l];if((Ga(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:d.rawValue;else if(Ga(a))a===Do?al(y,v[i],d[i],m):I1(y,v[i],d[i],m);else if(ev(a)){var _=v[i],S=d[i],b=a===Mu;t[l]={type:b?"linear":"radial",x:Je(_.x,S.x,m),y:Je(_.y,S.y,m),colorStops:Y(_.colorStops,function(x,C){var D=S.colorStops[C];return{offset:Je(x.offset,D.offset,m),color:To(al([],x.color,D.color,m))}}),global:S.global},b?(t[l].x2=Je(_.x2,S.x2,m),t[l].y2=Je(_.y2,S.y2,m)):t[l].r=Je(_.r,S.r,m)}else if(u)al(y,v[i],d[i],m),n||(t[l]=To(y));else{var w=Je(v[i],d[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===za?t[n]=t[n]+i:e===Fi?(nr(t[n],_i),Na(_i,_i,i,1),t[n]=To(_i)):e===Do?Na(t[n],t[n],i,1):e===lg&&Jh(t[n],t[n],i,1)},r}(),O1=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){ln("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,_t(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Co(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Co(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}(),Rf=O1;function Yn(){return new Date().getTime()}var B1=function(r){z(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return 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 n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(!!e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Yn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Cu(n),!e._paused&&e.update())}Cu(n)},t.prototype.start=function(){this._running||(this._time=Yn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Rf(e,n.loop);return this.addAnimator(i),i},t}(Ze),F1=B1,N1=300,ol=j.domSupported,sl=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Y(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),rv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},nv=!1;function Iu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function z1(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function ll(r){r&&(r.zrByTouch=!0)}function G1(r,t){return pe(r.dom,new H1(r,t),!0)}function ug(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var H1=function(){function r(t,e){this.stopPropagation=ne,this.stopImmediatePropagation=ne,this.preventDefault=ne,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Le={mousedown:function(r){r=pe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pe(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=pe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pe(this.dom,r);var t=r.toElement||r.relatedTarget;ug(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){nv=!0,r=pe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){nv||(r=pe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pe(this.dom,r),ll(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Le.mousemove.call(this,r),Le.mousedown.call(this,r)},touchmove:function(r){r=pe(this.dom,r),ll(r),this.handler.processGesture(r,"change"),Le.mousemove.call(this,r)},touchend:function(r){r=pe(this.dom,r),ll(r),this.handler.processGesture(r,"end"),Le.mouseup.call(this,r),+new Date-+this.__lastTouchMomentov||r<-ov}var zr=[],Mn=[],fl=sa(),hl=Math.abs,kf=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Nr(this.rotation)||Nr(this.x)||Nr(this.y)||Nr(this.scaleX-1)||Nr(this.scaleY-1)||Nr(this.skewX)||Nr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(av(n),this.invTransform=null);return}n=n||sa(),e?this.getLocalTransform(n):av(n),t&&(e?qn(n,t,n):r1(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(zr);var n=zr[0]<0?-1:1,i=zr[1]<0?-1:1,a=((zr[0]-n)*e+n)/zr[0]||0,o=((zr[1]-i)*e+i)/zr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||sa(),Ef(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(qn(Mn,t.invTransform,e),e=Mn);var n=this.originX,i=this.originY;(n||i)&&(fl[4]=n,fl[5]=i,qn(Mn,e,fl),Mn[4]-=n,Mn[5]-=i,e=Mn),this.setLocalTransform(e)}},r.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)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&xe(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&xe(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&hl(t[0]-1)>1e-10&&hl(t[3]-1)>1e-10?Math.sqrt(hl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){X1(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Pf(e,e,u),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),la=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function X1(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Wo(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=Ir(n[0],e.width),u+=Ir(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var vl="__zr_normal__",cl=la.concat(["ignore"]),Z1=Lr(la,function(r,t){return r[t]=!0,r},{ignore:!1}),Ln={},q1=new ut(0,0,0,0),Ff=function(){function r(t){this.id=Vp(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=q1;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ln,n,f):Wo(Ln,n,f),a.x=Ln.x,a.y=Ln.y,o=Ln.align,s=Ln.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Ir(h[0],f.width),v=Ir(h[1],f.height)),u=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ue,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ku:Ru},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&nr(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,_s(n,"rgba")},r.prototype.traverse=function(t,e){},r.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||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if($(t))for(var n=t,i=_t(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(vl,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===vl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ct(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){ln("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=ct(i,t),o=ct(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c0||i.force&&!o.length){var C=void 0,D=void 0,A=void 0;if(s){D={},c&&(C={});for(var S=0;S<_;S++){var m=g[S];D[m]=e[m],c?C[m]=n[m]:e[m]=n[m]}}else if(c){A={};for(var S=0;S<_;S++){var m=g[S];A[m]=Co(e[m]),Q1(e,n,m)}}var b=new Rf(e,!1,!1,h?Zt(d,function(L){return L.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),c&&C&&b.whenWithKeys(0,C,g),A&&b.whenWithKeys(0,A,g),b.whenWithKeys(u==null?500:u,s?D:n,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}var vg=Ff,cg=function(r){z(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=ct(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=ct(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function yt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?iS(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Mt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),pg),r=(+r).toFixed(t),e?r:+r}function tr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Bu(r)}function Bu(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function aS(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function oS(r,t){var e=Lr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=Y(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=Y(i,function(v){return Math.floor(v)}),s=Lr(o,function(v,d){return v+d},0),l=Y(i,function(v,d){return v-o[d]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return Y(o,function(v){return v/n})}function sS(r,t){var e=Math.max(tr(r),tr(t)),n=r+t;return e>pg?n:Mt(n,e)}function gg(r){var t=Math.PI*2;return(r%t+t)%t}function Uo(r){return r>-fv&&r=10&&t++,t}function mg(r,t){var e=Ss(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function $o(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function yg(r){return!isNaN($o(r))}function _g(){return Math.round(Math.random()*9)}function Sg(r,t){return t===0?r:Sg(t,r%t)}function hv(r,t){return r==null?t:t==null?r:r*t/Sg(r,t)}var fS="[ECharts] ",vv={},hS=typeof console!="undefined"&&console.warn&&console.log;function ws(r,t,e){if(hS){if(e){if(vv[t])return;vv[t]=!0}console[r](fS+t)}}function vS(r,t){ws("log",r,t)}function Gt(r,t){ws("warn",r,t)}function Wt(r,t){ws("error",r,t)}function Ye(r){ws("warn","DEPRECATED: "+r,!0)}function Pt(r,t,e){Ye((e?"["+e+"]":"")+(r+" is deprecated, use "+t+" instead."))}function Yo(){for(var r=[],t=0;t=0||a&&ct(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var BS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],FS=ua(BS),NS=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return FS(this,t,e)},r}(),Nu=new ba(50);function zS(r){if(typeof r=="string"){var t=Nu.get(r);return t&&t.image}else return r}function Dg(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Nu.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!xs(t)&&a.pending.push(o)):(t=_n.loadImage(r,mv,mv),t.__zrImageSrc=r,Nu.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function mv(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=fe(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function Mg(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=fe(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?HS(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=fe(r,n)}return r===""&&(r=t.placeholder),r}function HS(r,t,e,n){for(var i=0,a=0,o=r.length;av&&u){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var g=Ag(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&yl(e,r.substring(s,u),t,o),yl(e,l[2],t,o,l[1]),s=ml.lastIndex}si){b>0?(y.tokens=y.tokens.slice(0,b),p(y,S,_),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m);break t}var L=x.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")w.percentWidth=L,f.push(w),w.contentWidth=fe(w.text,A);else{if(I){var P=x.backgroundColor,E=P&&P.image;E&&(E=zS(E),xs(E)&&(w.width=Math.max(w.width,E.width*T/E.height)))}var R=d&&n!=null?n-S:null;R!=null&&R0&&d+n.accumWidth>n.width&&(f=t.split(` `),u=!0),n.accumWidth=d}else{var g=Lg(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(` `);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var XS=Lr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function ZS(r){return YS(r)?!!XS[r]:!0}function Lg(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;he:i+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var zu="__zr_style_"+Math.round(Math.random()*10),fn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Cs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fn[zu]=!0;var _v=["z","z2","invisible"],qS=["invisible"],KS=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=_t(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Ha[0]=bl(i)*e+r,Ha[1]=wl(i)*n+t,Va[0]=bl(a)*e+r,Va[1]=wl(a)*n+t,u(s,Ha,Va),f(l,Ha,Va),i=i%Hr,i<0&&(i=i+Hr),a=a%Hr,a<0&&(a=a+Hr),i>a&&!o?a+=Hr:ii&&(Wa[0]=bl(v)*e+r,Wa[1]=wl(v)*n+t,u(s,Wa,s),f(l,Wa,l))}var st={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Vr=[],Wr=[],Be=[],hr=[],Fe=[],Ne=[],xl=Math.min,Cl=Math.max,Ur=Math.cos,$r=Math.sin,Qe=Math.abs,Gu=Math.PI,Sr=Gu*2,Tl=typeof Float32Array!="undefined",Si=[];function Dl(r){var t=Math.round(r/Gu*1e8)/1e8;return t%2*Gu}function ew(r,t){var e=Dl(r[0]);e<0&&(e+=Sr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Sr?i=e+Sr:t&&e-i>=Sr?i=e-Sr:!t&&e>i?i=e+(Sr-Dl(e-i)):t&&e0&&(this._ux=Qe(n/Vo/t)||0,this._uy=Qe(n/Vo/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(st.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=Qe(t-this._xi),i=Qe(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(st.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(st.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(st.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Si[0]=i,Si[1]=a,ew(Si,o),i=Si[0],a=Si[1];var s=a-i;return this.addData(st.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=Ur(a)*n+t,this._yi=$r(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(st.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(st.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Tl&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Be[0]=Be[1]=Fe[0]=Fe[1]=Number.MAX_VALUE,hr[0]=hr[1]=Ne[0]=Ne[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||Qe(_)>i||c===e-1)&&(g=Math.sqrt(y*y+_*_),a=p,o=m);break}case st.C:{var S=t[c++],b=t[c++],p=t[c++],m=t[c++],w=t[c++],x=t[c++];g=y1(a,o,S,b,p,m,w,x,10),a=w,o=x;break}case st.Q:{var S=t[c++],b=t[c++],p=t[c++],m=t[c++];g=w1(a,o,S,b,p,m,10),a=p,o=m;break}case st.A:var C=t[c++],D=t[c++],A=t[c++],T=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,t[c++],d&&(s=Ur(L)*A+C,l=$r(L)*T+D),g=Cl(A,T)*xl(Sr,Math.abs(I)),a=Ur(P)*A+C,o=$r(P)*T+D;break;case st.R:{s=a=t[c++],l=o=t[c++];var E=t[c++],R=t[c++];g=E*2+R*2;break}case st.Z:{var y=s-a,_=l-o;g=Math.sqrt(y*y+_*_),a=s,o=l;break}}g>=0&&(u[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,g,p=0,m=0,y,_=0,S,b;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=e*g,!y))return;t:for(var w=0;w0&&(t.lineTo(S,b),_=0),x){case st.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case st.L:{h=n[w++],c=n[w++];var D=Qe(h-u),A=Qe(c-f);if(D>i||A>a){if(v){var T=d[m++];if(p+T>y){var L=(y-p)/T;t.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break t}p+=T}t.lineTo(h,c),u=h,f=c,_=0}else{var I=D*D+A*A;I>_&&(S=h,b=c,_=I)}break}case st.C:{var P=n[w++],E=n[w++],R=n[w++],U=n[w++],F=n[w++],O=n[w++];if(v){var T=d[m++];if(p+T>y){var L=(y-p)/T;zo(u,P,R,F,L,Vr),zo(f,E,U,O,L,Wr),t.bezierCurveTo(Vr[1],Wr[1],Vr[2],Wr[2],Vr[3],Wr[3]);break t}p+=T}t.bezierCurveTo(P,E,R,U,F,O),u=F,f=O;break}case st.Q:{var P=n[w++],E=n[w++],R=n[w++],U=n[w++];if(v){var T=d[m++];if(p+T>y){var L=(y-p)/T;Go(u,P,R,L,Vr),Go(f,E,U,L,Wr),t.quadraticCurveTo(Vr[1],Wr[1],Vr[2],Wr[2]);break t}p+=T}t.quadraticCurveTo(P,E,R,U),u=R,f=U;break}case st.A:var N=n[w++],H=n[w++],V=n[w++],X=n[w++],Q=n[w++],St=n[w++],et=n[w++],At=!n[w++],Ut=V>X?V:X,Ct=Qe(V-X)>.001,wt=Q+St,Z=!1;if(v){var T=d[m++];p+T>y&&(wt=Q+St*(y-p)/T,Z=!0),p+=T}if(Ct&&t.ellipse?t.ellipse(N,H,V,X,et,Q,wt,At):t.arc(N,H,Ut,Q,wt,At),Z)break t;C&&(s=Ur(Q)*V+N,l=$r(Q)*X+H),u=Ur(wt)*V+N,f=$r(wt)*X+H;break;case st.R:s=u=n[w],l=f=n[w+1],h=n[w++],c=n[w++];var rt=n[w++],Oe=n[w++];if(v){var T=d[m++];if(p+T>y){var Et=y-p;t.moveTo(h,c),t.lineTo(h+xl(Et,rt),c),Et-=rt,Et>0&&t.lineTo(h+rt,c+xl(Et,Oe)),Et-=Oe,Et>0&&t.lineTo(h+Cl(rt-Et,0),c+Oe),Et-=rt,Et>0&&t.lineTo(h,c+Cl(Oe-Et,0));break t}p+=T}t.rect(h,c,rt,Oe);break;case st.Z:if(v){var T=d[m++];if(p+T>y){var L=(y-p)/T;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}p+=T}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=st,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}(),Pr=rw;function In(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&u>e+h&&u>i+h&&u>o+h||ut+u&&l>n+u&&l>a+u||lr+u&&s>e+u&&s>i+u||se||f+ui&&(i+=wi);var c=Math.atan2(l,s);return c<0&&(c+=wi),c>=n&&c<=i||c+wi>=n&&c+wi<=i}function Yr(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var vr=Pr.CMD,Xr=Math.PI*2,ow=1e-4;function sw(r,t){return Math.abs(r-t)t&&u>n&&u>a&&u>s||u1&&lw(),v=It(t,n,a,s,me[0]),c>1&&(d=It(t,n,a,s,me[1]))),c===2?pt&&s>n&&s>a||s=0&&u<=1){for(var f=0,h=Nt(t,n,a,u),c=0;ce||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Yt[0]=-l,Yt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Xr-1e-4){n=0,i=Xr;var f=a?1:-1;return o>=Yt[0]+r&&o<=Yt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Xr,i+=Xr);for(var c=0,v=0;v<2;v++){var d=Yt[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=Xr+g),(g>=n&&g<=i||g+Xr>=n&&g+Xr<=i)&&(g>Math.PI/2&&g1&&(e||(s+=Yr(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),g){case vr.M:f=a[d++],h=a[d++],l=f,u=h;break;case vr.L:if(e){if(In(l,u,a[d],a[d+1],t,n,i))return!0}else s+=Yr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case vr.C:if(e){if(nw(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=uw(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case vr.Q:if(e){if(iw(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=fw(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case vr.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(b)*_+m,v=Math.sin(b)*S+y,p?(f=c,h=v):s+=Yr(l,u,c,v,n,i);var C=(n-m)*S/_+m;if(e){if(aw(m,y,S,b,b+w,x,t,C,i))return!0}else s+=hw(m,y,S,b,b+w,x,C,i);l=Math.cos(b+w)*_+m,u=Math.sin(b+w)*S+y;break;case vr.R:f=l=a[d++],h=u=a[d++];var D=a[d++],A=a[d++];if(c=f+D,v=h+A,e){if(In(f,h,c,h,t,n,i)||In(c,h,c,v,t,n,i)||In(c,v,f,v,t,n,i)||In(f,v,f,h,t,n,i))return!0}else s+=Yr(c,h,c,v,n,i),s+=Yr(f,v,f,h,n,i);break;case vr.Z:if(e){if(In(l,u,f,h,t,n,i))return!0}else s+=Yr(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!sw(u,h)&&(s+=Yr(l,u,f,h,n,i)||0),s!==0}function vw(r,t,e){return Ig(r,0,!1,t,e)}function cw(r,t,e,n){return Ig(r,t,!0,e,n)}var Pg=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fn),dw={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Cs.style)},Al=la.concat(["invisible","culling","z","z2","zlevel","parent"]),pw=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Ru:n>.2?Y1:ku}else if(e)return ku}return Ru},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(W(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ho(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Hn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),cw(s,l/u,e,n)))return!0}if(this.hasFill())return vw(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Hn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:B(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Hn)},t.prototype.createStyle=function(e){return ys(Pg,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=B({},i.shape),B(u,n.shape)):(u=B({},a?this.shape:i.shape),B(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=_t(u),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return ys(gw,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=Of(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Ta);Eg.prototype.type="tspan";var Hu=Eg,mw=ft({x:0,y:0},fn),yw={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Cs.style)};function _w(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Rg=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ys(mw,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=_w(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return yw},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ut(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ta);Rg.prototype.type="image";var Sn=Rg;function Sw(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var Xn=Math.round;function kg(r,t,e){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Xn(n*2)===Xn(i*2)&&(r.x1=r.x2=an(n,s,!0)),Xn(a*2)===Xn(o*2)&&(r.y1=r.y2=an(a,s,!0))),r}}function Og(r,t,e){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=an(n,s,!0),r.y=an(i,s,!0),r.width=Math.max(an(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(an(i+o,s,!1)-r.y,o===0?0:1)),r}}function an(r,t,e){if(!t)return r;var n=Xn(r*2);return(n+Xn(t))%2===0?n/2:(n+(e?1:-1))/2}var ww=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),bw={},Bg=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ww},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=Og(bw,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Sw(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(vt);Bg.prototype.type="rect";var Rt=Bg,Cv={fill:"#000"},Tv=2,xw={style:ft({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},Cs.style)},Fg=function(r){z(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Cv,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=w[I],P.align==="right");)this._placeToken(P,e,C,m,L,"right",_),D-=P.width,L-=P.width,I--;for(T+=(a-(T-p)-(y-L)-D)/2;A<=I;)P=w[A],this._placeToken(P,e,C,m,T+P.width/2,"center",_),T+=P.width,A++;m+=C}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&Ml(u);c&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=Pv(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Hu),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,S=Iv("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),b=Lv("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(_=Tv,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,w&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||dn,p.opacity=un(u.opacity,n.opacity,1),Av(p,u),b&&(p.lineWidth=un(u.lineWidth,n.lineWidth,_),p.lineDash=nt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=b),S&&(p.fill=S);var x=e.contentWidth,C=e.contentHeight;g.setBoundingRect(new ut(Ni(p.x,x,p.textAlign),Vn(p.y,C,p.textBaseline),x,C))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||u&&f){g=this._getOrCreateChild(Rt),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(c){var y=g.style;y.fill=l||null,y.fillOpacity=nt(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Sn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=nt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=un(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return Aw(e)&&(n=[e.fontStyle,e.fontWeight,Dw(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ve(n)||e.textFont||e.font},t}(Ta),Cw={left:!0,right:1,center:1},Tw={top:1,bottom:1,middle:1},Dv=["fontStyle","fontWeight","fontSize","fontFamily"];function Dw(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Tf+"px":r+"px"}function Av(r,t){for(var e=0;e=0,a=!1;if(r instanceof vt){var o=Ng(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Pn(s)||Pn(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=B({},n),u=B({},u),u.fill=s):!Pn(u.fill)&&Pn(s)?(a=!0,n=B({},n),u=B({},u),u.fill=Bv(s)):!Pn(u.stroke)&&Pn(l)&&(a||(n=B({},n),u=B({},u)),u.stroke=Bv(l)),n.style=u}}if(n&&n.z2==null){a||(n=B({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:Iw)}return n}function Bw(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:Pw)}return e}function Fw(r,t,e){var n=ct(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:kw(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Ll(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Ow(this,r,t,e);if(r==="blur")return Fw(this,r,e);if(r==="select")return Bw(this,r,e)}return e}function Nw(r){r.stateProxy=Ll;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Ll),e&&(e.stateProxy=Ll)}function zv(r,t){!$g(r,t)&&!r.__highByOuter&&lr(r,zg)}function Gv(r,t){!$g(r,t)&&!r.__highByOuter&&lr(r,Gg)}function Zo(r,t){r.__highByOuter|=1<<(t||0),lr(r,zg)}function qo(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&lr(r,Gg)}function zw(r){lr(r,Wf)}function Vg(r){lr(r,Hg)}function Wg(r){lr(r,Ew)}function Ug(r){lr(r,Rw)}function $g(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Yg(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=Hf(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Hg(u)}),s&&e.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Vu(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Uu(r,t,e){Xg(r,!0),lr(r,Nw),Yw(r,t,e)}function $w(r){Xg(r,!1)}function fa(r,t,e,n){n?$w(r):Uu(r,t,e)}function Yw(r,t,e){var n=dt(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Vv=["emphasis","blur","select"],Xw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ko(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=Il(d),s*=Il(d));var g=(i===a?-1:1)*Il((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,m=g*-s*c/o,y=(r+e)/2+Ya(h)*p-$a(h)*m,_=(t+n)/2+$a(h)*p+Ya(h)*m,S=Yv([1,0],[(c-p)/o,(v-m)/s]),b=[(c-p)/o,(v-m)/s],w=[(-1*c-p)/o,(-1*v-m)/s],x=Yv(b,w);if(Yu(b,w)<=-1&&(x=bi),Yu(b,w)>=1&&(x=0),x<0){var C=Math.round(x/bi*1e6)/1e6;x=bi*2+C%2*bi}f.addData(u,y,_,o,s,S,x,h,a)}var Jw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,tb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function eb(r){var t=new Pr;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Pr.CMD,l=r.match(Jw);if(!l)return t;for(var u=0;uP*P+E*E&&(C=A,D=T),{cx:C,cy:D,x0:-f,y0:-h,x1:C*(i/b-1),y1:D*(i/b-1)}}function ub(r){var t;if(G(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function fb(r,t){var e,n=Gi(t.r,0),i=Gi(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Zv(u-l),d=v>Pl&&v%Pl;if(d>Me&&(v=d),!(n>Me))r.moveTo(f,h);else if(v>Pl-Me)r.moveTo(f+n*Rn(l),h+n*Zr(l)),r.arc(f,h,n,l,u,!c),i>Me&&(r.moveTo(f+i*Rn(u),h+i*Zr(u)),r.arc(f,h,i,u,l,c));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,C=void 0,D=void 0,A=void 0,T=void 0,L=void 0,I=void 0,P=void 0,E=n*Rn(l),R=n*Zr(l),U=i*Rn(u),F=i*Zr(u),O=v>Me;if(O){var N=t.cornerRadius;N&&(e=ub(N),g=e[0],p=e[1],m=e[2],y=e[3]);var H=Zv(n-i)/2;if(_=ze(H,m),S=ze(H,y),b=ze(H,g),w=ze(H,p),D=x=Gi(_,S),A=C=Gi(b,w),(x>Me||C>Me)&&(T=n*Rn(u),L=n*Zr(u),I=i*Rn(l),P=i*Zr(l),vMe){var Ct=ze(m,D),wt=ze(y,D),Z=Xa(I,P,E,R,n,Ct,c),rt=Xa(T,L,U,F,n,wt,c);r.moveTo(f+Z.cx+Z.x0,h+Z.cy+Z.y0),D0&&r.arc(f+Z.cx,h+Z.cy,Ct,Bt(Z.y0,Z.x0),Bt(Z.y1,Z.x1),!c),r.arc(f,h,n,Bt(Z.cy+Z.y1,Z.cx+Z.x1),Bt(rt.cy+rt.y1,rt.cx+rt.x1),!c),wt>0&&r.arc(f+rt.cx,h+rt.cy,wt,Bt(rt.y1,rt.x1),Bt(rt.y0,rt.x0),!c))}else r.moveTo(f+E,h+R),r.arc(f,h,n,l,u,!c);if(!(i>Me)||!O)r.lineTo(f+U,h+F);else if(A>Me){var Ct=ze(g,A),wt=ze(p,A),Z=Xa(U,F,T,L,i,-wt,c),rt=Xa(E,R,I,P,i,-Ct,c);r.lineTo(f+Z.cx+Z.x0,h+Z.cy+Z.y0),A0&&r.arc(f+Z.cx,h+Z.cy,wt,Bt(Z.y0,Z.x0),Bt(Z.y1,Z.x1),!c),r.arc(f,h,i,Bt(Z.cy+Z.y1,Z.cx+Z.x1),Bt(rt.cy+rt.y1,rt.cx+rt.x1),c),Ct>0&&r.arc(f+rt.cx,h+rt.cy,Ct,Bt(rt.y1,rt.x1),Bt(rt.y0,rt.x0),!c))}else r.lineTo(f+U,h+F),r.arc(f,h,i,u,l,c)}r.closePath()}}}var hb=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),e0=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new hb},t.prototype.buildPath=function(e,n){fb(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(vt);e0.prototype.type="sector";var wn=e0,vb=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),r0=function(r){z(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new vb},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(vt);r0.prototype.type="ring";var n0=r0;function cb(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(n){var a=cb(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sKr[1]){if(s=!1,a)return s;var f=Math.abs(Kr[0]-qr[1]),h=Math.abs(qr[0]-Kr[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Kt(r,t,e,n,i,a){Xf("update",r,t,e,n,i,a)}function Ce(r,t,e,n,i,a){Xf("enter",r,t,e,n,i,a)}function ji(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Qv(r){return!r.isGroup}function Hb(r){return r.shape!=null}function m0(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Qv(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Hb(o)&&(s.shape=B({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Qv(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Kt(o,l,e,dt(o).dataIndex)}}})}function Vb(r,t){return Y(r,function(e){var n=e[0];n=ts(n,t.x),n=es(n,t.x+t.width);var i=e[1];return i=ts(i,t.y),i=es(i,t.y+t.height),[n,i]})}function Wb(r,t){var e=ts(r.x,t.x),n=es(r.x+r.width,t.x+t.width),i=ts(r.y,t.y),a=es(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function Qf(r,t,e){var n=B({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),ft(i,e),new Sn(n)):qf(r.replace("path://",""),n,e,"center")}function Ub(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=El(v,d,f,h)/c;return!(p<0||p>1)}function El(r,t,e,n){return r*n-e*t}function $b(r){return r<=1e-6&&r>=-1e-6}function jf(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=W(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&M(_t(l),function(f){Jn(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=dt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ft({content:n,formatterParams:s},i)}}function jv(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Ls(r,t){if(r)if(G(r))for(var e=0;e=0&&s.push(l)}),s}}function w0(r,t){return lt(lt({},r,!0),t,!0)}var l2={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"}},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:". "}}}},u2={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"}},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:""}}}},rs="ZH",Jf="EN",va=Jf,Io={},th={},b0=j.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(rs)>-1?rs:va}():va;function x0(r,t){r=r.toUpperCase(),th[r]=new Ht(t),Io[r]=t}function f2(r){if(W(r)){var t=Io[r.toUpperCase()]||{};return r===rs||r===Jf?it(t):lt(it(t),it(Io[va]),!1)}else return lt(it(r),it(Io[va]),!1)}function h2(r){return th[r]}function v2(){return th[va]}x0(Jf,l2);x0(rs,u2);var eh=1e3,rh=eh*60,Ji=rh*60,be=Ji*24,ac=be*365,Hi={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}"},Ka="{yyyy}-{MM}-{dd}",oc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ka,hour:Ka+" "+Hi.hour,minute:Ka+" "+Hi.minute,second:Ka+" "+Hi.second,millisecond:Hi.none},Ol=["year","month","day","hour","minute","second","millisecond"],C0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function cr(r,t){return r+="","0000".substr(0,t-r.length)+r}function Qn(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function c2(r){return r===Qn(r)}function d2(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Rs(r,t,e,n){var i=or(r),a=i[nh(e)](),o=i[jn(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[ks(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[ca(e)](),h=(f-1)%12+1,c=i[Os(e)](),v=i[Bs(e)](),d=i[Fs(e)](),g=n instanceof Ht?n:h2(n||b0)||v2(),p=g.getModel("time"),m=p.get("month"),y=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,cr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,cr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,cr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,cr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,cr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,cr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,cr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,cr(d,3)).replace(/{S}/g,d+"")}function p2(r,t,e,n,i){var a=null;if(W(e))a=e;else if(K(e))a=e(r.value,t,{level:r.level});else{var o=B({},Hi);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(G(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Rs(new Date(r.value),a,i,n)}function T0(r,t){var e=or(r),n=e[jn(t)]()+1,i=e[ks(t)](),a=e[ca(t)](),o=e[Os(t)](),s=e[Bs(t)](),l=e[Fs(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function sc(r,t,e){var n=pt(r)?or(r):r;switch(t=t||T0(r,e),t){case"year":return n[nh(e)]();case"half-year":return n[jn(e)]()>=6?1:0;case"quarter":return Math.floor((n[jn(e)]()+1)/4);case"month":return n[jn(e)]();case"day":return n[ks(e)]();case"half-day":return n[ca(e)]()/24;case"hour":return n[ca(e)]();case"minute":return n[Os(e)]();case"second":return n[Bs(e)]();case"millisecond":return n[Fs(e)]()}}function nh(r){return r?"getUTCFullYear":"getFullYear"}function jn(r){return r?"getUTCMonth":"getMonth"}function ks(r){return r?"getUTCDate":"getDate"}function ca(r){return r?"getUTCHours":"getHours"}function Os(r){return r?"getUTCMinutes":"getMinutes"}function Bs(r){return r?"getUTCSeconds":"getSeconds"}function Fs(r){return r?"getUTCMilliseconds":"getMilliseconds"}function g2(r){return r?"setUTCFullYear":"setFullYear"}function D0(r){return r?"setUTCMonth":"setMonth"}function A0(r){return r?"setUTCDate":"setDate"}function M0(r){return r?"setUTCHours":"setHours"}function L0(r){return r?"setUTCMinutes":"setMinutes"}function I0(r){return r?"setUTCSeconds":"setSeconds"}function P0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function E0(r){if(!yg(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function R0(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ns=Wp;function Zu(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ve(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?or(r):r;if(isNaN(+l)){if(s)return"-"}else return Rs(l,n,e)}if(t==="ordinal")return Bo(r)?i(r):pt(r)&&a(r)?r+"":"-";var u=$o(r);return a(u)?E0(u):Bo(r)?i(r):typeof r=="boolean"?r+"":"-"}var lc=["a","b","c","d","e","f","g"],Bl=function(r,t){return"{"+r+(t==null?"":t)+"}"};function k0(r,t,e){G(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function yn(r,t){return t=t||"transparent",W(r)?r:$(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var Po=M,y2=["left","right","top","bottom","width","height"],Qa=[["width","left","right"],["height","top","bottom"]];function ih(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>n||l.newline?(a=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var ta=ih;Dt(ih,"vertical");Dt(ih,"horizontal");function da(r,t,e){e=Ns(e||0);var n=t.width,i=t.height,a=yt(r.left,n),o=yt(r.top,i),s=yt(r.right,n),l=yt(r.bottom,i),u=yt(r.width,n),f=yt(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new ut(a+e[3],o+e[0],u,f);return d.margin=e,d}function pa(r){var t=r.layoutMode||r.constructor.layoutMode;return $(t)?t:t?{type:t}:null}function ni(r,t,e){var n=e&&e.ignoreSize;!G(n)&&(n=[n,n]);var i=o(Qa[0],0),a=o(Qa[1],1);u(Qa[0],r,i),u(Qa[1],r,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(Po(f,function(_){d[_]=r[_]}),Po(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&g++}),n[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var m=0;m=0;l--)s=lt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Ca(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},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}(Ht);Tg(ui,Ht);bs(ui);o2(ui);s2(ui,w2);function w2(r){var t=[];return M(ui.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return We(e).main}),r!=="dataset"&&ct(t,"dataset")<=0&&t.unshift("dataset"),t}var gt=ui,O0="";typeof navigator!="undefined"&&(O0=navigator.platform||"");var kn="rgba(0, 0, 0, 0.2)",b2={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:kn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:kn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:kn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:kn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:kn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:kn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:O0.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},qu=tt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),De="original",se="arrayRows",ke="objectRows",qe="keyedColumns",ir="typedArray",B0="unknown",ar="column",fi="row",kt={Must:1,Might:2,Not:3},F0=Lt();function x2(r){F0(r).datasetMap=tt()}function C2(r,t,e){var n={},i=ah(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=F0(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(g,p){var m=$(g)?g:r[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,h=d(m)),n[m.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});M(r,function(g,p){var m=g.name,y=d(g);if(f==null){var _=c.valueWayDim;v(n[m],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===p)v(n[m],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(n[m],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(g,p,m){for(var y=0;yt)return r[n];return r[e-1]}function I2(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:L2(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function P2(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var ja,xi,fc,Fl="\0_ec_inner",hc=1,E2={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"},R2={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"},ns={};function k2(r){M(r,function(t,e){if(!gt.hasClass(e)){var n=E2[e];n&&!ns[n]&&(Wt("Component "+e+` is used but not imported. import { `+n+` } from 'echarts/components'; echarts.use([`+n+"]);"),ns[n]=!0)}})}var G0=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ht(a),this._locale=new Ht(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){J(e!=null,"option is null/undefined"),J(e[Fl]!==hc,"please use chart.getOption()");var a=dc(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,dc(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");k2(o),!this.option||e==="recreate"?fc(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&M(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=tt(),u=n&&n.replaceMergeMainTypeMap;x2(this),M(e,function(h,c){h!=null&&(gt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?it(h):lt(i[c],h,!0))}),u&&u.each(function(h,c){gt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),gt.topologicalTravel(s,gt.getAllClassMainTypes(),f,this);function f(h){var c=M2(this,h,qt(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=pS(v,c,d);bS(g,h,gt),i[h]=null,a.set(h,null),o.set(h,0);var p=[],m=[],y=0,_,S;M(g,function(b,w){var x=b.existing,C=b.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var D=h==="series",A=gt.getClass(h,b.keyInfo.subType,!D);if(!A){{var T=b.keyInfo.subType,L=R2[T];ns[T]||(ns[T]=!0,Wt(L?"Series "+T+` is used but not imported. import { `+L+` } from 'echarts/charts'; echarts.use([`+L+"]);":"Unknown series "+T))}return}if(h==="tooltip"){if(_){S||(Gt("Currently only one tooltip component is allowed."),S=!0);return}_=!0}if(x&&x.constructor===A)x.name=b.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var I=B({componentIndex:w},b.keyInfo);x=new A(C,this,this,I),B(x,I),b.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),m.push(x),y++):(p.push(void 0),m.push(void 0))},this),i[h]=p,a.set(h,m),o.set(h,y),h==="series"&&ja(this)}this._seriesIndices||ja(this)},t.prototype.getOption=function(){var e=it(this.option);return M(e,function(n,i){if(gt.hasClass(i)){for(var a=qt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ti(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Fl],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,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function $2(r,t){return r.join(",")===t.join(",")}var Y2=H2,he=M,ga=$,pc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function zl(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=pc.length;e=0;p--){var m=r[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=sS(c,y),g=y;break}}}return n[0]=c,n[1]=g,n})})}var Gs=function(){function r(t){this.data=t.data||(t.sourceFormat===qe?{}:[]),this.sourceFormat=t.sourceFormat||B0,this.seriesLayoutBy=t.seriesLayoutBy||ar,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;ng&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};bc=(t={},t[se+"_"+ar]={pure:!0,appendData:a},t[se+"_"+fi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ke]={pure:!0,appendData:a},t[qe]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[De]={appendData:a},t[ir]={persistent:!1,pure:!0,appendData:function(o){J(ae(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return ii(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Dc(r){var t,e;return $(r)?r.type?e=r:console.warn("The return type of `formatTooltip` is not supported: "+Yo(r)):t=r,{text:t,frag:e}}function ea(r){return new fx(r)}var fx=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?(J(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(J(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){Ac.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Ac.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),G(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex1&&n>0?s:o}};return a;function o(){return t=r?null:li?-this._resultLT:0},r}(),vx=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Eo(t,e)},r}();function cx(r,t){var e=new vx,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==ar&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',ee(o));var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";Jn(l,m)&&(_='dimension name "'+m+'" duplicated.',ee(_)),l[m]=y}});else for(var f=0;f65535?bx:xx}function On(){return[1/0,-1/0]}function Cx(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Lc(r,t,e,n,i){var a=J0[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;up[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.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,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&y<=c||isNaN(y))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],b=t[i[1]][1],m=0;m=h&&y<=c||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m=h&&y<=c||isNaN(y))&&(l[u++]=x)}else for(var m=0;mt[A][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(Ti(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=h,c=S)}T>0&&Tf-d&&(l=f-d,s.length=l);for(var g=0;gh[1]&&(h[1]=m),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return Eo(e[a],this._dimensions[a])}Vl={arrayRows:t,objectRows:function(e,n,i,a){return Eo(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return Eo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),Tx=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(Di(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ae(s)?ir:De,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=nt(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=nt(h.sourceHeader,c.sourceHeader),g=nt(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[Ku(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Ku(_,this._getSourceMetaRawOption(),null)],a=[]}}J(i&&a),this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(J(i!=null||n!=null),i!=null){var a="";t.length!==1&&(a="When using `fromTransformResult`, there should be only one upstream dataset",Ic(a))}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&(h="Can not retrieve result by `fromTransformResult`: "+i,Ic(h)),s.push(f),l.push(u._getVersionSign())}),n?o=_x(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[rx(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return M(r.blocks,function(i){var a=nm(i);a>=t&&(t=a+ +(n&&(!a||ju(i)&&!i.noHeader)))}),t}return 0}function Mx(r,t,e,n){var i=t.noHeader,a=Ix(nm(t)),o=[],s=t.blocks||[];J(!s||G(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Jn(u,l)){var f=new hx(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(d,g){var p=t.valueFormatter,m=rm(d)(p?B(B({},r),{valueFormatter:p}):r,d,g>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Ju(o.join(""),i?e:a.html);if(i)return h;var c=Zu(t.header,"ordinal",r.useUTC),v=em(n,r.renderMode).nameStyle;return r.renderMode==="richText"?im(r,c,v)+a.richText+h:Ju('
'+ye(c)+"
"+h,e)}function Lx(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=G(S)?S:[S],Y(S,function(b,w){return Zu(b,G(v)?v[w]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":Zu(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value),g=!s||!a,p=!s&&a,m=em(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(a?"":im(r,c,y))+(o?"":Rx(r,d,g,p,_)):Ju((s?"":h)+(a?"":Px(c,!s,y))+(o?"":Ex(d,g,p,_)),e)}}function Pc(r,t,e,n,i,a){if(!!r){var o=rm(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Ix(r){return{html:Dx[r],richText:Ax[r]}}function Ju(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function Px(r,t,e){var n=t?"margin-left:2px":"";return''+ye(r)+""}function Ex(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=G(r)?r:[r],''+Y(r,function(o){return ye(o)}).join("  ")+""}function im(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Rx(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(G(t)?t.join(" "):t,a)}function kx(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return yn(n)}function am(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Wl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=_g()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=m2({color:e,type:t,renderMode:n,markerId:i});return W(a)?a:(J(i),this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};G(e)?M(e,function(a){return B(n,a)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function Ox(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=G(s),u=kx(t,e),f,h,c,v;if(o>1||l&&!o){var d=Bx(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=ii(i,e,a[0]),h=g.type}else v=f=l?s[0]:s;var p=Nf(t),m=p&&t.name||"",y=i.getName(e),_=n?m:y;return ma("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[ma("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ve(_),value:f,valueType:h})].concat(c||[])})}function Bx(r,t,e,n,i){var a=t.getData(),o=Lr(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(h){f(ii(a,e,h),h)}):M(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(ma("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var dr=Lt();function Ja(r,t){return r.getName(t)||r.getId(t)}var Fx="__universalTransitionEnabled",Vs=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ea({count:zx,reset:Gx}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=dr(this).sourceManager=new Tx(this);a.prepareSource();var o=this.getInitialData(e,i);Rc(o,this),this.dataTask.context.data=o,J(o,"getInitialData returned invalid data."),dr(this).dataBeforeProcessed=o,Ec(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=pa(this),a=i?zs(e):{},o=this.subType;gt.hasClass(o)&&(o+="Series"),lt(e,n.getTheme().get(this.subType)),lt(e,this.getDefaultOption()),Fu(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&ni(e,a,i)},t.prototype.mergeOption=function(e,n){e=lt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=pa(this);i&&ni(this.option,e,i);var a=dr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);Rc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,dr(this).dataBeforeProcessed=o,Ec(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ae(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=oh.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},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,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ja(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Fx])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){$(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return gt.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}(gt);Xe(Vs,ux);Xe(Vs,oh);Tg(Vs,gt);function Ec(r){var t=r.name;Nf(r)||(r.name=Nx(r)||t)}function Nx(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function zx(r){return r.model.getRawData().count()}function Gx(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Hx}function Hx(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Rc(r,t){M(E_(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Dt(Vx,t))})}function Vx(r,t){var e=tf(r);return e&&e.setOutputEnd((t||this).count()),t}function tf(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var Er=Vs,vh=function(){function r(){this.group=new Vt,this.uid=Es("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Gf(vh);bs(vh);var Rr=vh;function ch(){var r=Lt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var om=Lt(),Wx=ch(),dh=function(){function r(){this.group=new Vt,this.uid=Es("viewChart"),this.renderTask=ea({plan:Ux,reset:$x}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);if(!a){Wt("Unknown dataType "+i.dataType);return}Oc(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);if(!a){Wt("Unknown dataType "+i.dataType);return}Oc(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){Ls(this.group,t)},r.markUpdateMethod=function(t,e){om(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function kc(r,t,e){r&&ei(r)&&(t==="emphasis"?Zo:qo)(r,e)}function Oc(r,t,e){var n=gn(r,t),i=t&&t.highlightKey!=null?Zw(t.highlightKey):null;n!=null?M(qt(n),function(a){kc(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){kc(a,e,i)})}Gf(dh,["dispose"]);bs(dh);function Ux(r){return Wx(r.model)}function $x(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&om(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),Yx[l]}var Yx={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},$e=dh,is="\0__throttleOriginMethod",Bc="\0__throttleRate",Fc="\0__throttleType";function ph(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function sm(r,t,e,n){var i=r[t];if(!!i){var a=i[is]||i,o=i[Fc],s=i[Bc];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=ph(a,e,n==="debounce"),i[is]=a,i[Fc]=n,i[Bc]=e}return i}}function ef(r,t){var e=r[t];e&&e[is]&&(e.clear&&e.clear(),r[t]=e[is])}var Nc=Lt(),zc={itemStyle:ua(S0,!0),lineStyle:ua(_0,!0)},Xx={lineStyle:"stroke",itemStyle:"fill"};function lm(r,t){var e=r.visualStyleMapper||zc[t];return e||(console.warn("Unknown style type '"+t+"'."),zc.itemStyle)}function um(r,t){var e=r.visualDrawType||Xx[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Zx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=lm(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=um(r,n),u=o[l],f=K(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=B({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},Ai=new Ht,qx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=lm(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ai.option=l[n];var u=i(Ai),f=o.ensureUniqueItemVisual(s,"style");B(f,u),Ai.option.decal&&(o.setItemVisual(s,"decal",Ai.option.decal),Ai.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Kx={performRawSeries:!0,overallReset:function(r){var t=tt();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Nc(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Nc(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=um(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},to=Math.PI;function Qx(r,t){t=t||{},ft(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 Vt,n=new Rt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new oe({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 Rt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Yf({shape:{startAngle:-to/2,endAngle:-to/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:to*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:to*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var jx=function(){function r(t,e,n,i){this._stageTaskMap=tt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=tt();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";o='"reset" and "overallReset" must not be both specified.',J(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;M(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=tt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ea({plan:nC,reset:iC,count:oC}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||ea({reset:Jx});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=tt(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',J(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,M(n.getSeries(),d));function d(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(c=!0,ea({reset:tC,onDirty:rC})));m.context={model:g,overallProgress:h},m.agent=o,m.__block=h,a._pipe(g,m)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return K(t)&&(t={overallReset:t,seriesType:sC(t)}),t.uid=Es("stageHandler"),e&&(t.visualType=e),t},r}();function Jx(r){r.overallReset(r.ecModel,r.api,r.payload)}function tC(r){return r.overallProgress&&eC}function eC(){this.agent.dirty(),this.getDownstream().dirty()}function rC(){this.agent&&this.agent.dirty()}function nC(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function iC(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,n){return fm(n)}):aC}var aC=fm(0);function fm(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),rf=["symbol","symbolSize","symbolRotate","symbolOffset"],Wc=rf.concat(["symbolKeepAspect"]),hC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&on(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function af(r,t,e){for(var n=t.type==="radial"?PC(r,t,e):IC(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:pt(r)?[r]:G(r)?r:null}function gm(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&RC(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=Y(e,function(a){return a/i}),n/=i)}return[e,n]}var kC=new Pr(!0);function os(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Uc(r){return typeof r=="string"&&r!=="none"}function ss(r){var t=r.fill;return t!=null&&t!=="none"}function $c(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Yc(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function of(r,t,e){var n=Dg(t.image,t.__image,e);if(xs(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*R_),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function OC(r,t,e,n){var i,a=os(e),o=ss(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||kC,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,m=a&&!!v.image,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(d||g)&&(w=t.getBoundingRect()),d&&(y=h?af(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=h?af(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?of(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(b=h||!t.__canvasStrokePattern?of(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=y:p&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:m&&(b?r.strokeStyle=b:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var C,D;r.setLineDash&&e.lineDash&&(i=gm(t),C=i[0],D=i[1]);var A=!0;(u||h&Hn)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=D),n||(e.strokeFirst?(a&&Yc(r,e),o&&$c(r,e)):(o&&$c(r,e),a&&Yc(r,e))),C&&r.setLineDash([])}function BC(r,t,e){var n=t.__image=Dg(e.image,t.__image,t,t.onload);if(!(!n||!xs(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(n,u,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function FC(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||dn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=gm(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(os(e)&&r.strokeText(i,e.x,e.y),ss(e)&&r.fillText(i,e.x,e.y)):(ss(e)&&r.fillText(i,e.x,e.y),os(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Xc=["shadowBlur","shadowOffsetX","shadowOffsetY"],Zc=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function mm(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){re(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?fn.opacity:o}(n||t.blend!==e.blend)&&(a||(re(r,i),a=!0),r.globalCompositeOperation=t.blend||fn.blend);for(var s=0;so.maxTileWidth&&R("maxTileWidth"),E>o.maxTileHeight&&R("maxTileHeight")}return{width:Math.max(1,Math.min(T,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var T=0,L=0;L0&&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,n,i){if(this[Ft]){Wt("`setOption` should not be called during main process.");return}if(this._disposed){le(this.id);return}var a,o,s;if($(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ft]=!0,!this._model||n){var l=new Y2(this._api),u=this._theme,f=this._model=new H0;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},uf);var h={seriesTransition:s,optionChanged:!0};if(i)this[jt]={silent:a,updateParams:h},this[Ft]=!1,this.getZr().wakeUp();else{try{Fn(this),pr.update.call(this,null,h)}catch(c){throw this[jt]=null,this[Ft]=!1,c}this._ssr||this._zr.flush(),this[jt]=null,this[Ft]=!1,Mi.call(this,a),Li.call(this,a)}},t.prototype.setTheme=function(){Ye("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||j.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return Pt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;if(n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;if(n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!j.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){le(this.id);return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;M(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){le(this.id);return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(ud[i]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(na,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(it(e)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,g=h-u,p=_n.createCanvas(),m=uv(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return M(c,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new Rt({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),M(c,function(_){var S=new Sn({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Zl(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Zl(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){le(this.id);return}var i=this._model,a,o=gl(i,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?a=a||h.containPoint(n,u):Gt(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else Gt(l+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=gl(i,e,{defaultMainType:"series"}),o=a.seriesModel;o||Gt("There is no specified series model");var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?cC(s,l,n):dC(s,n)},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=this;M(uT,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Wi(s,function(d){var g=dt(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=B({},g.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];!u&&!(c&&v)&&Gt("model or view can not be found by params"),l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),M(ra,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),gC(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){le(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){le(this.id);return}this._disposed=!0;var e=this.getDom();e&&xg(this.getDom(),yh,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete na[n.id]},t.prototype.resize=function(e){if(this[Ft]){Wt("`resize` should not be called during main process.");return}if(this._disposed){le(this.id);return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[jt]&&(a==null&&(a=this[jt].silent),i=!0,this[jt]=null),this[Ft]=!0;try{i&&Fn(this),pr.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Ft]=!1,o}this[Ft]=!1,Mi.call(this,a),Li.call(this,a)}},t.prototype.showLoading=function(e,n){if(this._disposed){le(this.id);return}if($(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!ff[e]){Gt("Loading effects "+e+" not exists.");return}var i=ff[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},t.prototype.hideLoading=function(){if(this._disposed){le(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=ra[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){le(this.id);return}if($(n)||(n={silent:!!n}),!!us[e.type]&&!!this._model){if(this[Ft]){this._pendingActions.push(e);return}var i=n.silent;Kl.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&j.browser.weChat&&this._throttledZrFlush(),Mi.call(this,i),Li.call(this,i)}},t.prototype.updateLabelLayout=function(){Ie.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){le(this.id);return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);J(e.data&&a),a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Fn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Xl(h,!0),Xl(h,!1),c.plan()},Xl=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_c.get("hoverLayerThreshold")&&!j.node&&!j.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=h._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),m=h.isGroup;if(m)for(var y=h.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(m){if(m.states&&m.states.emphasis){if(ji(m))return;if(m instanceof vt&&qw(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}m.__dirty&&i(m)}})}sd=function(h){return new(function(c){z(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){Zo(d,g),ve(h)},v.prototype.leaveEmphasis=function(d,g){qo(d,g),ve(h)},v.prototype.enterBlur=function(d){zw(d),ve(h)},v.prototype.leaveBlur=function(d){Vg(d),ve(h)},v.prototype.enterSelect=function(d){Wg(d),ve(h)},v.prototype.leaveSelect=function(d){Ug(d),ve(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(V0))(h)},Pm=function(h){function c(v,d){for(var g=0;g=0)){fd.push(e);var a=cm.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function Fm(r,t){ff[r]=t}function gT(r,t,e){var n=ZC("registerMap");n&&n(r,t,e)}var mT=yx;xn(gh,Zx);xn(Ws,qx);xn(Ws,Kx);xn(gh,hC);xn(Ws,vC);xn(Tm,$C);Om(U0);Bm(QC,tx);Fm("default",Qx);hi({type:hn,event:hn,update:hn},ne);hi({type:Mo,event:Mo,update:Mo},ne);hi({type:qi,event:qi,update:qi},ne);hi({type:Lo,event:Lo,update:Lo},ne);hi({type:Ki,event:Ki,update:Ki},ne);km("light",lC);km("dark",uC);function Ii(r){return r==null?0:r.length||1}function hd(r){return r}var yT=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||hd,this._newKeyGetter=i||hd,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var Pi=$,gr=Y,AT=typeof Int32Array=="undefined"?Array:Int32Array,MT="e\0\0",vd=-1,LT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],IT=["_approximateExtent"],cd,oo,Ei,Nn,Jl,so,tu,PT=function(){function r(t,e){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 n,i=!1;zm(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=0),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=tt();M(o,function(p){g.set(a[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(pt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(e==null)throw new Error("Unknown dimension "+t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof Qu&&(a=t),!a){var o=this.dimensions,s=lh(t)||ie(t)?new X0(t,o.length):t;a=new Qu;var l=gr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=wT(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===De;if(l&&!i.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),G(a)?a=a.slice():Pi(a)&&(a=B({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Pi(e)?B(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Pi(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Lw(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:gr(this.dimensions,this._getDimInfo,this),this.hostModel)),Jl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!K(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Mf(arguments)))})},r.internalField=function(){cd=function(t){var e=t._invertedIndicesMap;M(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new AT(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[e]=l}}}(),r}(),Wm=PT;function Um(r,t){lh(r)||(r=uh(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=tt(),a=[],o=RT(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Vm(o),l=n===r.dimensionsDefine,u=l?Hm(r):Gm(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=tt(f),c=new j0(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function RT(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(a){var o;$(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function kT(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var OT=function(){function r(t){this.coordSysDims=[],this.axisMap=tt(),this.categoryAxisMap=tt(),this.coordSysName=t}return r}();function BT(r){var t=r.get("coordinateSystem"),e=new OT(t),n=FT[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var FT={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",Ee).models[0],a=r.getReferringComponents("yAxis",Ee).models[0];{if(!i)throw new Error('xAxis "'+pn(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+pn(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),zn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),zn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",Ee).models[0];if(!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",i),zn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",Ee).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");{if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),zn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),zn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),zn(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function zn(r){return r.get("type")==="category"}function NT(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;zT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(M(a,function(y,_){W(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;M(a,function(y){y.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(a.push(p),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function zT(r){return!zm(r.schema)}function oi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function GT(r,t){return oi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function HT(r,t){var e=r.get("coordinateSystem"),n=sh.get(e),i;return t&&t.coordSysDims&&(i=Y(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=bT(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function VT(r,t,e){var n,i;return e&&M(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function wh(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=uh(r)):(i=n.getSource(),a=i.sourceFormat===De);var o=BT(t),s=HT(t,o),l=e.useEncodeDefaulter,u=K(l)?l:l?Dt(C2,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Um(i,f),c=VT(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=NT(t,{schema:h,store:v}),g=new Wm(h,t);g.setCalculationInfo(d);var p=c!=null&&WT(i)?function(m,y,_,S){return S===c?_:this.defaultDimValueGetter(m,y,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function WT(r){if(r.sourceFormat===De){var t=UT(r.data||[]);return!G(xa(t))}}function UT(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();bs($m);var ur=$m,$T=0,YT=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$T}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&Y(n,XT);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=tt(this.categories))},r}();function XT(r){return $(r)&&r.value!=null?r.value:r+""}var hf=YT;function ZT(r){var t=Math.pow(10,Ss(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function vf(r){return r.type==="interval"||r.type==="log"}function qT(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=mg(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=Ym(o),l=i.niceTickExtent=[Mt(Math.ceil(r[0]/o)*o,s),Mt(Math.floor(r[1]/o)*o,s)];return KT(l,r),i}function eu(r){var t=Math.pow(10,Ss(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Mt(e*t)}function Ym(r){return tr(r)+2}function dd(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function KT(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),dd(r,0,t),dd(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Us(r,t){return r>=t[0]&&r<=t[1]}function $s(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ys(r,t){return r*(t[1]-t[0])+t[0]}var Xm=function(r){z(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new hf({})),G(i)&&(i=new hf({categories:Y(i,function(a){return $(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Us(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),$s(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ys(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ur);ur.registerClass(Xm);var Zm=Xm,tn=Mt,qm=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Us(e,this._extent)},t.prototype.normalize=function(e){return $s(e,this._extent)},t.prototype.scale=function(e){return Ys(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ym(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:tn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function jm(r){var t=JT(r),e=[];return M(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=yt(n.get("barWidth"),s),g=yt(n.get("barMaxWidth"),s),p=yt(n.get("barMinWidth")||(ty(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:xh(a),stackId:bh(n)})}),tD(e)}function tD(r){var t={};M(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var c=n.barMinWidth;c&&(l[u].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=_t(a).length;s=Math.max(35-l*4,15)+"%"}var u=yt(s,o),f=yt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,h-=S+f*S,c--}else{var S=v;y&&yS&&(S=_),S!==v&&(m.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;M(a,function(m,y){m.width||(m.width=v),g=m,d+=m.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;M(a,function(m,y){e[i][y]=e[i][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+f)})}),e}function eD(r,t,e){if(r&&t){var n=r[xh(t)];return n!=null&&e!=null?n[bh(e)]:n}}function rD(r,t){var e=Qm(r,t),n=jm(e);M(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=bh(i),u=n[xh(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function nD(r){return{seriesType:r,plan:ch(),reset:function(t){if(!!Jm(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=oi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=iD(i,a),d=ty(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&er(b*3),x=d&&l&&er(b*3),C=d&&er(b),D=n.master.getRect(),A=c?D.width:D.height,T,L=S.getStore(),I=0;(T=_.next())!=null;){var P=L.get(h?p:o,T),E=L.get(s,T),R=v,U=void 0;h&&(U=+P-L.get(o,T));var F=void 0,O=void 0,N=void 0,H=void 0;if(c){var V=n.dataToPoint([P,E]);if(h){var X=n.dataToPoint([U,E]);R=X[0]}F=R,O=V[1]+y,N=V[0]-R,H=m,Math.abs(N)>>1;r[i][1]i&&(this._approxInterval=i);var s=lo.length,l=Math.min(aD(lo,this._approxInterval,0,s),s-1);this._interval=lo[l][1],this._minLevelUnit=lo[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return pt(e)?e:+or(e)},t.prototype.contain=function(e){return Us(this.parse(e),this._extent)},t.prototype.normalize=function(e){return $s(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ys(e,this._extent)},t.type="time",t}(Ma),lo=[["second",eh],["minute",rh],["hour",Ji],["quarter-day",Ji*6],["half-day",Ji*12],["day",be*1.2],["half-week",be*3.5],["week",be*7],["month",be*31],["quarter",be*95],["half-year",ac/2],["year",ac]];function oD(r,t,e,n){var i=or(t),a=or(e),o=function(d){return sc(i,d,n)===sc(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function sD(r,t){return r/=be,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function lD(r){var t=30*be;return r/=t,r>6?6:r>3?3:r>2?2:1}function uD(r){return r/=Ji,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function pd(r,t){return r/=t?rh:eh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function fD(r){return mg(r,!0)}function hD(r,t,e){var n=new Date(r);switch(Qn(t)){case"year":case"month":n[D0(e)](0);case"day":n[A0(e)](1);case"hour":n[M0(e)](0);case"minute":n[L0(e)](0);case"second":n[I0(e)](0),n[P0(e)](0)}return n.getTime()}function vD(r,t,e,n){var i=1e4,a=C0,o=0;function s(A,T,L,I,P,E,R){for(var U=new Date(T),F=T,O=U[I]();F1&&E===0&&L.unshift({value:L[0].value-F})}}for(var E=0;E=n[0]&&y<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(p),h>_||r===a[v]))break}f=[]}}}o>=i&&Gt("Exceed safe limit.");for(var S=Zt(Y(u,function(A){return Zt(A,function(T){return T.value>=n[0]&&T.value<=n[1]&&!T.notAdd})}),function(A){return A.length>0}),b=[],w=S.length-1,v=0;v0;)a*=10;var s=[Mt(gD(n[0]/a)*a),Mt(pD(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ia.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 e=Ae(e)/Ae(this.base),Us(e,this._extent)},t.prototype.normalize=function(e){return e=Ae(e)/Ae(this.base),$s(e,this._extent)},t.prototype.scale=function(e){return e=Ys(e,this._extent),uo(this.base,e)},t.type="log",t}(ur),ry=Ch.prototype;ry.getMinorTicks=ia.getMinorTicks;ry.getLabel=ia.getLabel;function fo(r,t){return dD(r,tr(t))}ur.registerClass(Ch);var mD=Ch,yD=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){J(!this.frozen),this[SD[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=_D[t];J(!this.frozen&&this[n]==null),this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),_D={min:"_determinedMin",max:"_determinedMax"},SD={min:"_dataMin",max:"_dataMax"};function wD(r,t,e){var n=r.rawExtentInfo;return n||(n=new yD(r,t,e),r.rawExtentInfo=n,n)}function ho(r,t){return t==null?null:oa(t)?NaN:r.parse(t)}function ny(r,t){var e=r.type,n=wD(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=Qm("bar",o),l=!1;if(M(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=jm(s),f=bD(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function bD(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=eD(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;M(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function md(r,t){var e=t,n=ny(r,e),i=n.extent,a=e.get("splitNumber");r instanceof mD&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function xD(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Zm({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new cD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ur.getClass(t)||Ma)}}function CD(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function La(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):W(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):K(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Th(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Th(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function TD(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof Zm?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=La(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(yd.push(r),K(r)&&(r={install:r}),r.install(LD))}var Sa=Lt();function ID(r){return r.type==="category"?ED(r):kD(r)}function PD(r,t){return r.type==="category"?RD(r,t):{ticks:Y(r.scale.getTicks(),function(e){return e.value})}}function ED(r){var t=r.getLabelModel(),e=ay(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function ay(r,t){var e=oy(r,"labels"),n=Dh(t),i=sy(e,n);if(i)return i;var a,o;return K(n)?a=fy(r,n):(o=n==="auto"?OD(r):n,a=uy(r,o)),ly(e,n,{labels:a,labelCategoryInterval:o})}function RD(r,t){var e=oy(r,"ticks"),n=Dh(t),i=sy(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),K(n))a=fy(r,n,!0);else if(n==="auto"){var s=ay(r,r.getLabelModel());o=s.labelCategoryInterval,a=Y(s.labels,function(l){return l.tickValue})}else o=n,a=uy(r,o,!0);return ly(e,n,{ticks:a,tickCategoryInterval:o})}function kD(r){var t=r.scale.getTicks(),e=La(r);return{labels:Y(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function oy(r,t){return Sa(r)[t]||(Sa(r)[t]=[])}function sy(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),c=0,v=0;l<=a[1];l+=s){var d=0,g=0,p=Of(e({value:l}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var m=c/f,y=v/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Sa(r.model),b=r.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function FD(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function uy(r,t,e){var n=La(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=iy(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(p){var m={value:p};s.push(e?p:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:p})}return s}function fy(r,t,e){var n=r.scale,i=La(r),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var _d=[0,1],ND=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return aS(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Sd(n,i.count())),Ou(t,_d,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Sd(n,i.count()));var a=Ou(t,n,_d,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=PD(this,e),i=n.ticks,a=Y(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return zD(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Y(n,function(a){return Y(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return ID(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return BD(this)},r}();function Sd(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function zD(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;M(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Mt(v),d=Mt(d),h?v>d:v0){t=t/180*Math.PI,Cr.fromArray(r[0]),xt.fromArray(r[1]),Ot.fromArray(r[2]),q.sub(Tr,Cr,xt),q.sub(He,Ot,xt);var e=Tr.len(),n=He.len();if(!(e<.001||n<.001)){Tr.scale(1/e),He.scale(1/n);var i=Tr.dot(He),a=Math.cos(t);if(a1&&q.copy(Xt,Ot),Xt.toArray(r[1])}}}}function VD(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Cr.fromArray(r[0]),xt.fromArray(r[1]),Ot.fromArray(r[2]),q.sub(Tr,xt,Cr),q.sub(He,Ot,xt);var n=Tr.len(),i=He.len();if(!(n<.001||i<.001)){Tr.scale(1/n),He.scale(1/i);var a=Tr.dot(t),o=Math.cos(e);if(a=l)q.copy(Xt,Ot);else{Xt.scaleAndAdd(He,s/Math.tan(Math.PI/2-f));var h=Ot.x!==xt.x?(Xt.x-xt.x)/(Ot.x-xt.x):(Xt.y-xt.y)/(Ot.y-xt.y);if(isNaN(h))return;h<0?q.copy(Xt,xt):h>1&&q.copy(Xt,Ot)}Xt.toArray(r[1])}}}}function wd(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function WD(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=_u(n[0],n[1]),a=_u(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=qs([],n[1],n[0],o/i),l=qs([],n[1],n[2],o/a),u=qs([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&b(-f/o,0,o);var g=r[0],p=r[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&x(-m),y<0&&x(y);function _(){m=g.rect[t]-n,y=i-p.rect[t]-p.rect[e]}function S(C,D,A){if(C<0){var T=Math.min(D,-C);if(T>0){b(T*A,0,o);var L=T+C;L<0&&w(-L*A,1)}else w(-C*A,1)}}function b(C,D,A){C!==0&&(u=!0);for(var T=D;T0)for(var L=0;L0;L--){var R=A[L-1]*E;b(-R,L,o)}}}function x(C){var D=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),T=0;T0?b(A,0,T+1):b(-A,o-T-1,o),C-=A,C<=0)return}return u}function ZD(r,t,e,n){return XD(r,"y","height",t,e,n)}function qD(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new ut(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;in[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(GD),sA=oA;function pf(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),pn(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function Td(r){return r.get("coordinateSystem")==="cartesian2d"}function Dd(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Ee).models[0];if(!a)throw new Error(i+' "'+un(r.get(i+"Index"),r.get(i+"Id"),0)+'" not found');t[n]=a}),t}var ru=Math.log;function lA(r,t,e){var n=Ma.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=ny(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=ru(r.base);u=[ru(u[0])/c,ru(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=n.getInterval.call(r),g=u[0],p=u[1];if(f&&h)d=(p-g)/o;else if(f)for(p=u[0]+d*o;pu[0]&&isFinite(g)&&isFinite(u[0]);)d=eu(d),g=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=eu(d));var y=d*o;p=Math.ceil(u[1]/d)*d,g=Mt(p-y),g<0&&u[0]>=0?(g=0,p=Mt(y)):p>0&&u[1]<=0&&(p=0,g=-Mt(y))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,g+d*_,p+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,g+d,p-d);{var b=n.getTicks.call(r);b[1]&&(!ZT(d)||Bu(b[1].value)>Bu(d))&&Gt("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var uA=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=df,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=_t(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,g=v.scale;vf(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(md(g,d),vf(g)&&(s=v))}f.length&&(s||(s=f.pop(),md(s.scale,s.model)),M(f,function(p){lA(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){Ad(n,"y",o,a)}),M(n.y,function(o){Ad(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=da(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=TD(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),fA(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}$(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Uo(i-Dr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),Ld={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(xe(s,s,o),xe(l,l,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new mn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});ha(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);W(c)&&(c=[c,c]),(W(v)||pt(v))&&(v=[v,v]);var d=pm(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(c[y]!=="none"&&c[y]!=null){var _=ai(c[y],-g/2,-p/2,g,p,f.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=dA(e,n,t,r),a=gA(e,n,t,r);if(cA(t,a,i),pA(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=YD(Y(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));qD(o)}},axisName:function(r,t,e,n){var i=pn(r.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,Pd(a)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*Dr/180);var d;Pd(a)?c=vn.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=vA(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,y=pn(r.nameTruncateMaxWidth,p.maxWidth,d),_=new oe({x:h[0],y:h[1],rotation:c.rotation,silent:vn.isLabelSilent(t),style:ri(s,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(jf({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=vn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,dt(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function vA(r,t,e,n){var i=gg(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Uo(i-Dr/2)?(o=l?"bottom":"top",a="center"):Uo(i-Dr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iDr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function cA(r,t,e){if(!iy(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(ce(a),ce(u)):Id(a,o)&&(n?(ce(o),ce(f)):(ce(a),ce(u))),i===!1?(ce(s),ce(h)):Id(l,s)&&(i?(ce(l),ce(c)):(ce(s),ce(h)))}}function ce(r){r&&(r.ignore=!0)}function Id(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=If([]);return Pf(i,i,-r.rotation),e.applyTransform(qn([],i,r.getLocalTransform())),n.applyTransform(qn([],i,t.getLocalTransform())),e.intersect(n)}}function Pd(r){return r==="middle"||r==="center"}function cy(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l=0||r===t}function bA(r){var t=Mh(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=gf(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=Mh(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=nn(t).pointerEl=new Yb[a.type](Rd(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=nn(t).labelEl=new oe(Rd(e.label));t.add(a),Od(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=nn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=nn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),Od(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Qf(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Zp(u.event)},onmousedown:ou(this._onHandleDragMove,this,0,0),drift:ou(this._onHandleDragMove,this),ondragend:ou(this._onHandleDragEnd,this)}),n.add(i)),Bd(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");G(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,sm(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){kd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,su(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(su(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(su(i)),nn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ef(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function kd(r,t,e,n){yy(nn(e).lastProp,n)||(nn(e).lastProp=n,t?Kt(e,n,r):(e.stopAnimation(),e.attr(n)))}function yy(r,t){if($(r)&&$(t)){var e=!0;return M(t,function(n,i){e=e&&yy(r[i],n)}),!!e}else return r===t}function Od(r,t){r[t.get(["label","show"])?"show":"hide"]()}function su(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Bd(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}var kA=RA;function OA(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function BA(r,t,e,n,i){var a=e.get("value"),o=_y(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ns(s.get("padding")||0),u=s.getFont(),f=Of(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),FA(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:ri(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function FA(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function _y(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Th(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function Sy(r,t,e){var n=sa();return Pf(n,n,e.rotation),xu(n,n,e.position),Kf([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function NA(r,t,e,n,i,a){var o=dy.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),BA(t,n,i,a,{position:Sy(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zA(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function GA(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var HA=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=Fd(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=OA(a),v=VA[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=pf(l.model,i);NA(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=pf(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Sy(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Fd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(kA);function Fd(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var VA={line:function(r,t,e){var n=zA([t,e[0]],[t,e[1]],Nd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:GA([t-n/2,e[0]],[n,i],Nd(r))}}};function Nd(r){return r.dim==="x"?0:1}var WA=HA,UA=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return 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}(gt),$A=UA,rr=Lt(),YA=M;function wy(r,t,e){if(!j.node){var n=t.getZr();rr(n).records||(rr(n).records={}),XA(n,t);var i=rr(n).records[r]||(rr(n).records[r]={});i.handler=e}}function XA(r,t){if(rr(r).initialized)return;rr(r).initialized=!0,e("click",Dt(zd,"click")),e("mousemove",Dt(zd,"mousemove")),e("globalout",qA);function e(n,i){r.on(n,function(a){var o=KA(t);YA(rr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),ZA(o.pendings,t)})}}function ZA(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function qA(r,t,e){r.handler("leave",null,e)}function zd(r,t,e,n){t.handler(r,e,n)}function KA(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function yf(r,t){if(!j.node){var e=t.getZr(),n=(rr(e).records||{})[r];n&&(rr(e).records[r]=null)}}var QA=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";wy("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){yf("axisPointer",n)},t.prototype.dispose=function(e,n){yf("axisPointer",n)},t.type="axisPointer",t}(Rr),jA=QA;function by(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=gn(a,r);if(o==null||o<0||G(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(a.getValues(Y(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var Gd=Lt();function JA(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||mt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){ko(i)&&(i=by({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ko(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||ko(i),c={},v={},d={list:[],map:{}},g={showPointer:Dt(eM,v),showTooltip:Dt(rM,d)};M(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);M(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,x=oM(u,S);if(!h&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Hd(S,C,g,!1,c)}})});var p={};return M(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&M(_.axesInfo,function(S,b){var w=v[b];if(S!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,Vd(S),Vd(m)))),p[m.key]=x}})}),M(p,function(m,y){Hd(f[y],m,g,!0,c)}),nM(v,f,c),iM(d,i,r,o),aM(f,o,e),c}}function Hd(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=tM(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function tM(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=h,a.length=0),M(c,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function eM(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function rM(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=wa(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function nM(r,t,e){var n=e.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function iM(r,t,e,n){if(ko(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function aM(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Gd(n)[i]||{},o=Gd(n)[i]={};M(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];M(a,function(u,f){!o[f]&&l.push(u)}),M(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function oM(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Vd(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function ko(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function xy(r){py.registerAxisPointerClass("CartesianAxisPointer",WA),r.registerComponentModel($A),r.registerComponentView(jA),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!G(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=mA(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},JA)}function Cy(r){sr(EA),sr(xy)}function sM(r,t){var e=Ns(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Rt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var lM=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return 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}(gt),uM=lM;function Ty(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Dy(r){if(!!j.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function gM(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=j.transformSupported?","+Lh+n:",left"+n+",top"+n),vM+":"+i}function Wd(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!j.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=j.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Lh+":"+o+";":[["top",0],["left",0],[Ay,o]]}function mM(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),M(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function yM(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=am(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(gM(i,e)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,g=R0(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(mM(f)),h!=null&&n.push("padding:"+Ns(h).join("px ")+"px"),n.join(";")+";"}function Ud(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&U_(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var _M=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,j.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Ud(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();pe(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=hM(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=cM+yM(t,!this._firstShow,this._longHide)+Wd(a[0],a[1],!0)+("border-color:"+yn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(a)&&n.get("trigger")==="item"&&!Ty(n)&&(s=pM(n,i,a)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",G(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||j.node||!i.getDom())){var o=Xd(a,i);this._ticket="";var s=a.dataByCoordSys,l=MM(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=xM;f.x=a.x,f.y=a.y,f.update(),dt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=by(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Xd(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=Ri([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,l;Wi(i,function(u){if(dt(u).dataIndex!=null)return s=u,!0;if(dt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=mt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ri([n.tooltipOption],a),l=this._renderMode,u=[],f=ma("section",{blocks:[],noHeader:!0}),h=[],c=new Wl;M(e,function(y){M(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var w=_y(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=ma("section",{header:w,noHeader:!Ve(w),sortBlocks:!0,blocks:[]});f.blocks.push(x),M(_.seriesDataIndices,function(C){var D=i.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,T=D.getDataParams(A);if(!(T.dataIndex<0)){T.axisDim=_.axisDim,T.axisIndex=_.axisIndex,T.axisType=_.axisType,T.axisId=_.axisId,T.axisValue=Th(S.axis,{value:b}),T.axisValueLabel=w,T.marker=c.makeTooltipMarker("item",yn(T.color),l);var L=Dc(D.formatTooltip(A,!0,null)),I=L.frag;if(I){var P=Ri([D],a).get("valueFormatter");x.blocks.push(P?B({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(T)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=Pc(f,c,l,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=l==="richText"?` `:"
",m=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=dt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,g=Ri([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(f,h),y=new Wl;m.marker=y.makeTooltipMarker("item",yn(m.color),v);var _=Dc(u.formatTooltip(f,!1,h)),S=g.get("order"),b=g.get("valueFormatter"),w=_.frag,x=w?Pc(b?B({valueFormatter:b},w):w,y,v,S,a.get("useUTC"),g.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,m,C,e.offsetX,e.offsetY,e.position,e.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=dt(n),o=a.tooltipConfig,s=o.option||{};if(W(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,c=Ri(u,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",g=new Wl;this._showOrMove(c,function(){var p=it(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,e.offsetX,e.offsetY,e.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(W(c)){var p=e.ecModel.get("useUTC"),m=G(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=c,y&&(v=Rs(m.axisValue,v,p)),v=k0(v,i,!0)}else if(K(c)){var _=mt(function(S,b){S===this._ticket&&(h.setContent(b,f,e,g,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||G(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!G(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),K(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),G(n))i=yt(n[0],u),a=yt(n[1],f);else if($(n)){var g=n;g.width=h[0],g.height=h[1];var p=da(g,{width:u,height:f});i=p.x,a=p.y,c=null,v=null}else if(W(n)&&l){var m=AM(n,d,h,e.get("borderWidth"));i=m[0],a=m[1]}else{var m=TM(i,a,o,u,f,c?null:20,v?null:20);i=m[0],a=m[1]}if(c&&(i-=Zd(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Zd(v)?h[1]/2:v==="bottom"?h[1]:0),Ty(e)){var m=DM(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&M(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&M(u,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&M(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){j.node||!n.getDom()||(ef(this,"_updatePosition"),this._tooltipContent.dispose(),yf("itemTooltip",n))},t.type="tooltip",t}(Rr);function Ri(r,t,e){var n=t.ecModel,i;e?(i=new Ht(e,n,n),i=new Ht(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Ht&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(i=new Ht(o,i,n)))}return i}function Xd(r,t){return r.dispatchAction||mt(t.dispatchAction,t)}function TM(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function DM(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function AM(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function Zd(r){return r==="center"||r==="middle"}function MM(r,t,e){var n=zf(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ca(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=dt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var LM=CM;function Ly(r){sr(xy),r.registerComponentModel(uM),r.registerComponentView(LM),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ne),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ne)}function Ih(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=ii(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var IM=function(r){z(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=ai(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=PM,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(){Zo(this.childAt(0))},t.prototype.downplay=function(){qo(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):Kt(c,v,s,n),Zf(c)}if(this._updateCommon(e,n,l,i,a),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Ce(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,g,p,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=Aa(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=pm(e.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=e.getItemVisual(n,"style"),x=w.fill;if(s instanceof Sn){var C=s.style;s.useStyle(B({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(B({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var T=o&&o.useNameLabel;Da(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:x,defaultOpacity:w.opacity});function L(E){return T?e.getName(E):Ih(e,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),fa(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=dt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&jo(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();jo(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return LC(e.getItemVisual(n,"symbolSize"))},t}(Vt);function PM(r,t){this.parent.drift(r,t)}var Ph=IM;function lu(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function qd(r){return r!=null&&!$(r)&&(r={isIgnore:r}),r||{}}function Kd(r){var t=r.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:Aa(t),cursorStyle:t.get("cursor")}}var EM=function(){function r(t){this.group=new Vt,this._SymbolCtor=t||Ph}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qd(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Kd(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(lu(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!lu(t,d,h,e)){n.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):Kt(v,m,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Kd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=qd(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a=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}(gt),_f=OM,Gn=Dt,Sf=M,vo=Vt,BM=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new vo),this.group.add(this._selectorGroup=new vo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=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(o,e,n,i,l,s,u);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=da(f,h,c),d=this.layoutInner(e,o,v,a,l,u),g=da(ft({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=sM(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=tt(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Sf(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` `)){var p=new vo;p.newline=!0,u.add(p);return}var m=i.getSeriesByName(g)[0];if(!f.get(g)){if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),w=this._createItem(m,g,d,v,n,e,_,b,S,h,a);w.on("click",Gn(Qd,g,null,a,c)).on("mouseover",Gn(wf,m.name,null,a,c)).on("mouseout",Gn(bf,m.name,null,a,c)),f.set(g,!0)}else i.eachRawSeries(function(x){if(!f.get(g)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(g))return;var D=C.indexOfName(g),A=C.getItemVisual(D,"style"),T=C.getItemVisual(D,"legendIcon"),L=nr(A.fill);L&&L[3]===0&&(L[3]=.2,A=B(B({},A),{fill:_s(L,"rgba")}));var I=this._createItem(x,g,d,v,n,e,{},A,T,h,a);I.on("click",Gn(Qd,null,g,a,c)).on("mouseover",Gn(wf,null,g,a,c)).on("mouseout",Gn(bf,null,g,a,c)),f.set(g,!0)}},this);f.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Sf(e,function(u){var f=u.type,h=new oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Da(h,{normal:c,emphasis:v},{defaultText:u.title}),Uu(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=FM(f,a,l,u,v,p,c),b=new vo,w=a.getModel("textStyle");if(K(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(NM({itemWidth:d,itemHeight:g,icon:f,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,D=s,A=o.get("formatter"),T=n;W(A)&&A?T=A.replace("{name}",n!=null?n:""):K(A)&&(T=A(n));var L=p?w.getTextColor():a.get("inactiveColor");b.add(new oe({style:ri(w,{text:T,x:C,y:g/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new Rt({shape:b.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&jf({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(E){E.silent=!0}),I.silent=!h,this.getContentGroup().add(b),Uu(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ta(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ta("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[m]/2-c[m]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[m]=Math.max(f[m],c[m]),_[y]=Math.min(0,c[y]+v[1-g]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Rr);function FM(r,t,e,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),Sf(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:sf(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function NM(r){var t=r.icon||"roundRect",e=ai(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Qd(r,t,e,n){bf(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),wf(r,t,e,n)}function Py(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(m),c.setPosition(y);var b={x:0,y:0};if(b[o]=g?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],g){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],h.setClipPath(new Rt({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&Kt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?e:null),this._updatePageInfoView(e,x),b},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=uu[o],l=fu[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=c;++p)_=S(f[p]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!b(y,_.s))&&m.i=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(Ey),UM=WM;function $M(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function YM(r){sr(Ry),r.registerComponentModel(VM),r.registerComponentView(UM),$M(r)}function ky(r){sr(Ry),sr(YM)}var XM=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){{var n=e.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return wh(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new Vt,i=ai("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=ai(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*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),n},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}(Er),ZM=XM;function Oy(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=qM(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=Y(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return oi(t,h[0])&&(c=!0,h[0]=v),oi(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function qM(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:pt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function By(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function KM(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function QM(r,t,e,n,i,a,o,s){for(var l=KM(r,t),u=[],f=[],h=[],c=[],v=[],d=[],g=[],p=Oy(i,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=i||g<0)break;if(cn(m,y)){if(l){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](m,y),h=m,c=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var b=g+a,w=t[b*2],x=t[b*2+1];w===m&&x===y&&p=n||cn(w,x))v=m,d=y;else{A=w-u,T=x-f;var P=m-u,E=w-m,R=y-f,U=x-y,F=void 0,O=void 0;if(s==="x"){F=Math.abs(P),O=Math.abs(E);var N=A>0?1:-1;v=m-N*F*o,d=y,L=m+N*O*o,I=y}else if(s==="y"){F=Math.abs(R),O=Math.abs(U);var H=T>0?1:-1;v=m,d=y-H*F*o,L=m,I=y+H*O*o}else F=Math.sqrt(P*P+R*R),O=Math.sqrt(E*E+U*U),D=O/(O+F),v=m-A*o*(1-D),d=y-T*o*(1-D),L=m+A*o*D,I=y+T*o*D,L=mr(L,yr(w,m)),I=mr(I,yr(x,y)),L=yr(L,mr(w,m)),I=yr(I,mr(x,y)),A=L-m,T=I-y,v=m-A*F/O,d=y-T*F/O,v=mr(v,yr(u,m)),d=mr(d,yr(f,y)),v=yr(v,mr(u,m)),d=yr(d,mr(f,y)),A=m-v,T=y-d,L=m+A*O/F,I=y+T*O/F}r.bezierCurveTo(h,c,v,d,m,y),h=L,c=I}else r.lineTo(m,y)}u=m,f=y,g+=a}return p}var Fy=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),jM=function(r){z(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fy},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&cn(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],p=a[h++],m=a[h++],y=a[h++];var b=u?No(s,v,g,m,e,f):No(l,d,p,y,e,f);if(b>0)for(var w=0;w=0){var S=u?It(l,d,p,y,x):It(s,v,g,m,x);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(vt),JM=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Fy),tL=function(r){z(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new JM},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&cn(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function iL(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(t.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(i),u=Y(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=nL(u,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,m=p-g;if(m<.001)return"transparent";M(c,function(_){_.offset=(_.coord-g)/m}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var y=new c0(0,0,0,0,c,!0);return y[i]=g,y[i+"2"]=p,y}}function aL(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(i&&oL(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function oL(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function sL(r,t){return isNaN(r)||isNaN(t)}function lL(r){for(var t=r.length/2;t>0&&sL(r[t*2-2],r[t*2-1]);t--);return t-1}function ip(r,t){return[r[t*2],r[t*2+1]]}function uL(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Gy(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var N=g.getState("emphasis").style;N.lineWidth=+g.style.lineWidth+1}dt(g).seriesIndex=e.seriesIndex,fa(g,U,F,O);var H=np(e.get("smooth")),V=e.get("smoothMonotone");if(g.setShape({smooth:H,smoothMonotone:V,connectNulls:C}),p){var X=l.getCalculationInfo("stackedOnSeries"),Q=0;p.useStyle(ft(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),X&&(Q=np(X.get("smooth"))),p.setShape({smooth:H,stackedOnSmooth:Q,smoothMonotone:V,connectNulls:C}),Ko(p,e,"areaStyle"),dt(p).seriesIndex=e.seriesIndex,fa(p,U,F,O)}var St=function(et){a._changePolyState(et)};l.eachItemGraphicEl(function(et){et&&(et.onHoverStateChange=St)}),this._polyline.onHoverStateChange=St,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=h,this._step=T,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){dt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=gn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;u=new Ph(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else $e.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=gn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else $e.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;Nv(this._polyline,e),n&&Nv(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new jM({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new tL({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=K(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(p);a?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=v.x):(m=w.y+w.height,y=w.y,_=v.y)}var x=y===m?0:(_-m)/(y-m);l&&(x=1-x);var C=K(h)?h(d):f*x+c,D=g.getSymbolPath(),A=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(Gy(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new oe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=lL(l);f>=0&&(Da(s,Aa(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?Iy(o,v):Ih(o,h)},enableTextSetter:!0},fL(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?g:0)*(y?-1:1),w=(m?0:-g)*(y?-1:1),x=m?"x":"y",C=uL(h,S,x),D=C.range,A=D[1]-D[0],T=void 0;if(A>=1){if(A>1&&!v){var L=ip(h,D[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(T=c.getRawValue(D[0]))}else{var L=f.getPointOn(S,x);L&&u.attr({x:L[0]+b,y:L[1]+w});var I=c.getRawValue(D[0]),P=c.getRawValue(D[1]);o&&(T=AS(i,d,I,P,C.t))}a.lastFrameIndex=D[0]}else{var E=e===1||a.lastFrameIndex>0?D[0]:0,L=ip(h,E);o&&(T=c.getRawValue(E)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var R=Ps(u);typeof R.setLabelText=="function"&&R.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=QM(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(v=_r(c.current,i,o,l),d=_r(c.stackedOnCurrent,i,o,l),g=_r(c.next,i,o,l),p=_r(c.stackedOnNext,i,o,l)),rp(v,g)>3e3||f&&rp(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=c.current,u.shape.points=v;var m={shape:{points:g}};c.current!==v&&(m.shape.__points=c.next),u.stopAnimation(),Kt(u,m,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Kt(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=e.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,C=0;Ct&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;W(a)?d=dL[a]:K(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,pL))}}}}}function Vy(r){r.registerChartView(vL),r.registerSeriesModel(ZM),r.registerLayout(cL("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Hy("line"))}var Wy=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return wh(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),g=o[v],p=n[v]==="x1"||n[v]==="y1";if(p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[p?1:0]);return}for(var m=void 0,y=void 0,_=1,S=0;Sg){y=(b+m)/2;break}S===1&&(_=w-d[0].tickValue)}y==null&&(m?m&&(y=d[d.length-1].coord):y=d[0].coord),s[v]=c.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/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}(Er);Er.registerClass(Wy);var ap=Wy,gL=function(r){z(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return wh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=w0(ap.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}(ap),mL=gL,yL=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),_L=function(r){z(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new yL},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(!!this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Jo(a,e,dt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}($e),sp={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=vu(t.x,r.x),s=cu(t.x+t.width,i),l=vu(t.y,r.y),u=cu(t.y+t.height,a),f=si?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=cu(t.r,r.r),a=vu(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},lp={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new Rt({shape:B({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?op:wn,f=new u({shape:n,z2:1});f.name="item";var h=Uy(i);if(f.calculateTextPosition=SL(h,{isRoundCap:u===op}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Kt:Ce)(f,{shape:d},a)}return f}};function CL(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&(n.type!=="category"&&Gt("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Gt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function up(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Kt:Ce)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Kt:Ce)(e,{shape:u},f,i)}function fp(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function AL(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Uy(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function vp(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=Ui(n.getModel("itemStyle"),f,!0);B(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Aa(n);Da(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Ih(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,wL(r,p==="outside"?v:p,Uy(o),n.get(["label","rotate"]))}Qb(g,d,a.getRawValue(e),function(y){return Iy(t,y)});var m=n.getModel(["emphasis"]);fa(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Ko(r,n),AL(i)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function ML(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var LL=function(){function r(){}return r}(),cp=function(r){z(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new LL},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function IL(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function $y(r,t,e){if(Eh(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function PL(r,t,e){var n=r.type==="polar"?wn:Rt;return new n({shape:$y(t,e,r),silent:!0,z2:0})}var EL=xL;function RL(r){r.registerChartView(EL),r.registerSeriesModel(mL),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Dt(rD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nD("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Hy("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var mo=Math.PI*2,gp=Math.PI/180;function Yy(r,t){return da(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Xy(r,t){var e=Yy(r,t),n=r.get("center"),i=r.get("radius");G(i)||(i=[0,i]);var a=yt(e.width,t.getWidth()),o=yt(e.height,t.getHeight()),s=Math.min(a,o),l=yt(i[0],s/2),u=yt(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else G(n)||(n=[n,n]),f=yt(n[0],a)+e.x,h=yt(n[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function kL(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Yy(n,e),s=Xy(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*gp,v=n.get("minAngle")*gp,d=0;i.each(a,function(A){!isNaN(A)&&d++});var g=i.getSum(a),p=Math.PI/(g||d)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var b=mo,w=0,x=c,C=m?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(A,T){var L;if(isNaN(A)){i.setItemLayout(T,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:h,r:y?NaN:f});return}y!=="area"?L=g===0&&_?p:A*p:L=mo/d,Le?m:p,b=Math.abs(_.label.y-e);if(b>=S.maxY){var w=_.label.x-t-_.len2*i,x=n+_.len,C=Math.abs(w)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function du(r){return r.position==="center"}function NL(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*BL,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}t.each(function(w){var x=t.getItemGraphicEl(w),C=x.shape,D=x.getTextContent(),A=x.getTextGuideLine(),T=t.getItemModel(w),L=T.getModel("label"),I=L.get("position")||T.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),E=L.get("alignTo"),R=yt(L.get("edgeDistance"),u),U=L.get("bleedMargin"),F=T.getModel("labelLine"),O=F.get("length");O=yt(O,u);var N=F.get("length2");if(N=yt(N,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":V>0?"left":"right"}var fr=Math.PI,Ke=0,vi=L.get("rotate");if(pt(vi))Ke=vi*(fr/180);else if(I==="center")Ke=0;else if(vi==="radial"||vi===!0){var Jy=V<0?-H+fr:-H;Ke=Jy}else if(vi==="tangential"&&I!=="outside"&&I!=="outer"){var Tn=Math.atan2(V,X);Tn<0&&(Tn=fr*2+Tn);var t_=X>0;t_&&(Tn=fr+Tn),Ke=Tn-fr}if(a=!!Ke,D.x=Q,D.y=St,D.rotation=Ke,D.setStyle({verticalAlign:"middle"}),Ut){D.setStyle({align:At});var Xs=D.states.select;Xs&&(Xs.x+=D.x,Xs.y+=D.y)}else{var ci=D.getBoundingRect().clone();ci.applyTransform(D.getComputedTransform());var Rh=(D.style.margin||0)+2.1;ci.y-=Rh/2,ci.height+=Rh,e.push({label:D,labelLine:A,position:I,len:O,len2:N,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new q(V,X),linePoints:et,textAlign:At,labelDistance:P,labelAlignTo:E,edgeDistance:R,bleedMargin:U,rect:ci,unconstrainedWidth:ci.width,labelStyleWidth:D.style.width})}x.setTextConfig({inside:Ut})}}),!a&&r.get("avoidLabelOverlap")&&FL(e,n,i,l,u,c,f,h);for(var g=0;g0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=a.r0}},t.type="pie",t}($e),HL=GL;function VL(r,t,e){t=G(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Um(n,t).dimensions,a=new Wm(i,r);return a.initData(n,e),a}var WL=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),UL=WL,$L=Lt(),YL=function(r){z(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new UL(mt(this.getData,this),mt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return VL(this,{coordDimensions:["value"],encodeDefaulter:Dt(T2,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=$L(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=oS(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Fu(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.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,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}(Er),XL=YL;function ZL(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(pt(o)&&!isNaN(o)&&o<0)})}}}function qy(r){r.registerChartView(HL),r.registerSeriesModel(XL),pC("pie",r.registerAction),r.registerLayout(Dt(kL,"pie")),r.registerProcessor(OL("pie")),r.registerProcessor(ZL("pie"))}function yp(r,t,e){var n=_n.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var qL=function(r){z(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Vo,typeof e=="string"?o=yp(e,n,i):$(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Yp(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=yp("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ut(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new ut(0,0,0,0);_.copy(y),o.push(_)}else{for(var S=!1,b=1/0,w=0,x=0;x=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var A=v.dpr,T=0;T0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?yo:0),this._needsManuallyCompositing),f.__builtin__||ln("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&ue&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?lt(n[t],e,!0):n[t]=e;for(var i=0;i${a[s].marker}${a[s].seriesName} ${a[s].value}\u5143`;return o}},grid:{left:"0",right:"20px",top:"30px",bottom:"0",containLabel:!0},legend:!1,xAxis:{type:"category",data:n,boundaryGap:!1,axisLabel:{color:"#595959"},axisLine:{lineStyle:{width:1,color:t}}},yAxis:{type:"value",axisLabel:{color:"#595959"},splitLine:{lineStyle:{type:"dashed",color:t}}},series:[{name:"\u6536\u5165\u91D1\u989D",data:e.incomeData,type:"line",smooth:!0},{name:"\u9000\u6B3E\u91D1\u989D",data:e.refundData,type:"line",smooth:!0}]}}function Bp({placeholderColor:r,borderColor:t},e,n){return{color:["#4D8DFF","#00B8A0"],tooltip:{trigger:"axis",formatter(a){let o=a[0].name;for(let s=0,l=a.length;s${a[s].marker}${a[s].seriesName} ${a[s].value}\u4EBA`;return o}},grid:{left:"0",right:"20px",top:"30px",bottom:"0",containLabel:!0},legend:!1,xAxis:{type:"category",data:n,axisLabel:{color:"#595959"},axisLine:{lineStyle:{width:1,color:t}}},yAxis:{type:"value",axisLabel:{color:"#595959"},splitLine:{lineStyle:{type:"dashed",color:t}}},series:[{name:"\u5165\u4F4F\u4EBA\u6570",data:e.incomeData,type:"bar",smooth:!0,barWidth:"10px"},{name:"\u9000\u4F4F\u4EBA\u6570",data:e.refundData,type:"bar",smooth:!0,barWidth:"10px"}]}}function Fp({placeholderColor:r,borderColor:t},e,n){return console.log(e,156),console.log(n,156),{color:["#00B8A0"],tooltip:{trigger:"axis",formatter(a){let o=a[0].name;for(let s=0,l=a.length;s${a[s].marker}${a[s].seriesName} ${a[s].value}\u6B21`;return o}},grid:{left:"0",right:"20px",top:"30px",bottom:"0",containLabel:!0},legend:!1,xAxis:{type:"category",data:n,boundaryGap:!1,axisLabel:{color:"#595959"},axisLine:{lineStyle:{width:1,color:t}}},yAxis:{type:"value",axisLabel:{color:"#595959"},splitLine:{lineStyle:{type:"dashed",color:t}}},series:[{name:"\u6536\u5165\u91D1\u989D",data:e,type:"line",smooth:!0}]}}function II({textColor:r,containerColor:t},e){return{color:e_(),tooltip:{trigger:"item",formatter:"{b}: {c} \u4EBA"},grid:{top:"0",right:"0"},legend:!1,series:[{name:"\u9500\u552E\u6E20\u9053",type:"pie",radius:["65%","80%"],avoidLabelOverlap:!0,itemStyle:{borderColor:t,borderWidth:1},label:{show:!0,position:"center",formatter:[`{value|${e.total}\u4EBA}`,"{name|\u8001\u4EBA\u603B\u6570}"].join(` `),rich:{value:{color:r,fontSize:18,fontWeight:"normal",lineHeight:46},name:{color:"#909399",fontSize:14,lineHeight:14}}},labelLine:{show:!1},data:e.data}]}}function PI({textColor:r,containerColor:t},e){return{color:["#d7f1ed","#689FFF"],tooltip:{trigger:"item",formatter:"{b}: {c} \u4E2A"},grid:{top:"0",right:"0"},legend:!1,series:[{name:"\u5E8A\u4F4D\u6570\u91CF",type:"pie",radius:["65%","80%"],avoidLabelOverlap:!0,itemStyle:{borderColor:t,borderWidth:1},label:{show:!0,position:"center",formatter:[`{value|${e.total}\u4E2A}`,"{name|\u5E8A\u4F4D\u6570\u91CF}"].join(` `),rich:{value:{color:r,fontSize:18,fontWeight:"normal",lineHeight:46},name:{color:"#909399",fontSize:14,lineHeight:14}}},labelLine:{show:!1},data:e.data}]}}function EI({textColor:r,containerColor:t},e){return{color:["#d7f1ed","#ADA5EE"],tooltip:{trigger:"item",formatter:"{b}: {c} w\u7B14"},grid:{top:"0",right:"0"},legend:!1,series:[{name:"\u5E8A\u670D\u52A1\u5355\u6570\u91CF",type:"pie",radius:["65%","80%"],avoidLabelOverlap:!0,itemStyle:{borderColor:t,borderWidth:1},label:{show:!0,position:"center",formatter:[`{value|${e.total}w\u7B14}`,"{name|\u670D\u52A1\u5355\u6570\u91CF}"].join(` `),rich:{value:{color:r,fontSize:18,fontWeight:"normal",lineHeight:46},name:{color:"#909399",fontSize:14,lineHeight:14}}},labelLine:{show:!1},data:e.data}]}}function RI({textColor:r,containerColor:t},e){return{color:["#d7f1ed","#FFB056"],tooltip:{trigger:"item",formatter:"{b}: {c} \u4EBA"},grid:{top:"0",right:"0"},legend:!1,series:[{name:"\u5458\u5DE5\u6570\u91CF",type:"pie",radius:["65%","80%"],avoidLabelOverlap:!0,itemStyle:{borderColor:t,borderWidth:1},label:{show:!0,position:"center",formatter:[`{value|${e.total}\u4EBA}`,"{name|\u5458\u5DE5\u6570\u91CF}"].join(` `),rich:{value:{color:r,fontSize:18,fontWeight:"normal",lineHeight:46},name:{color:"#909399",fontSize:14,lineHeight:14}}},labelLine:{show:!1},data:e.data}]}}function kI({textColor:r,containerColor:t},e){return{color:["#d7f1ed","#FE8585"],tooltip:{trigger:"item",formatter:"{b}: {c} w\u5143"},grid:{top:"0",right:"0"},legend:!1,series:[{name:"\u6536\u5165\u91D1\u989D",type:"pie",radius:["65%","80%"],avoidLabelOverlap:!0,itemStyle:{borderColor:t,borderWidth:1},label:{show:!0,position:"center",formatter:[`{value|${e.total}w\u5143}`,"{name|\u6536\u5165\u91D1\u989D}"].join(` `),rich:{value:{color:r,fontSize:18,fontWeight:"normal",lineHeight:46},name:{color:"#909399",fontSize:14,lineHeight:14}}},labelLine:{show:!1},data:e.data}]}}const Cn=r=>(n_("data-v-6543c289"),r=r(),i_(),r),OI={class:"tit"},BI=Cn(()=>k("span",null,"\u6570\u636E\u6982\u89C8",-1)),FI={class:"time"},NI={class:"dataCon"},zI={class:"roleCon"},GI={class:"head"},HI={class:"img"},VI=["src"],WI={class:"rText"},UI=Cn(()=>k("p",null,"\u4ECA\u5929\u4E5F\u662F\u5143\u6C14\u6EE1\u6EE1\u7684\u4E00\u5929\uFF01",-1)),$I={class:"userInfo"},YI=Cn(()=>k("i",{class:"icon1"},null,-1)),XI=Cn(()=>k("i",{class:"icon2"},null,-1)),ZI={key:0,class:"textOverflow"},qI={key:1},KI=Cn(()=>k("i",{class:"icon3"},null,-1)),QI=Cn(()=>k("i",{class:"icon4"},null,-1)),jI=Cn(()=>k("div",{class:"hFoot"},[k("div",{class:"fTit"},"\u4E0B\u5C5E\u5458\u5DE5"),k("ul",{class:"imgItem"},[k("li",null,[k("span",null,[k("img",{src:o_})])]),k("li",null,[k("span",null,[k("img",{src:s_})])]),k("li",null,[k("span",null,[k("img",{src:l_})])]),k("li",null,[k("span",null,[k("img",{src:u_})])]),k("li",null,[k("span",null,[k("img",{src:f_})])]),k("li",null,[k("span",null,[k("img",{src:h_})])]),k("li",null,[k("span",null,"+3")])])],-1)),JI=cs({__name:"TopPanel",props:{baseData:{type:Object,default:()=>({})},roleListData:{type:String,default:""}},setup(r){const t=ot("https://wanjl-bucket.oss-cn-beijing.aliyuncs.com/d8f70e41-2ed9-4548-85f3-b294aae466e9.png");sr([Ly,ky,qy,Cy,Vy,Ky]);const e=Np(),n=Wn(new Date),i=zp(()=>e.chartColors);let a,o,s,l,u,f;const h=ot(Sp),c=ot(wp),v=ot(bp),d=ot(xp),g=ot(Cp),p=()=>{a||(a=document.getElementById("oldContainer")),f=br(a),f.setOption(II(i.value,h.value))},m=()=>{o||(o=document.getElementById("bedContainer")),f=br(o),f.setOption(PI(i.value,c.value))},y=()=>{s||(s=document.getElementById("serveContainer")),f=br(s),f.setOption(EI(i.value,v.value))},_=()=>{l||(l=document.getElementById("staffContainer")),f=br(l),f.setOption(RI(i.value,d.value))},S=()=>{u||(u=document.getElementById("moneyContainer")),f=br(u),f.setOption(kI(i.value,g.value))},b=()=>{p(),m(),y(),_(),S()};return ds(()=>{const x=(Oo(new Date).surplusDay+1)%3;x===1?(h.value=Sp,c.value=wp,v.value=bp,d.value=xp,g.value=Cp):x===2?(h.value=eI,c.value=nI,v.value=aI,d.value=sI,g.value=uI):(h.value=rI,c.value=iI,v.value=oI,d.value=lI,g.value=fI),b()}),(w,x)=>{const C=Jt("t-card"),D=Jt("t-col"),A=Jt("t-tooltip"),T=Jt("t-row");return te(),Cf(T,{gutter:24},{default:at(()=>[ht(D,{xs:12,xl:9},{default:at(()=>[ht(C,{title:""},{title:at(()=>[k("div",OI,[BI,k("span",FI,"\u6570\u636E\u66F4\u65B0\uFF1A"+bt(r_(n)),1)])]),default:at(()=>[k("div",NI,[k("div",{id:"oldContainer",ref_key:"oldContainer",ref:a,class:"dashboard-chart-container"},null,512),k("div",{id:"bedContainer",ref_key:"bedContainer",ref:o,class:"dashboard-chart-container"},null,512),k("div",{id:"serveContainer",ref_key:"serveContainer",ref:s,class:"dashboard-chart-container"},null,512),k("div",{id:"staffContainer",ref_key:"staffContainer",ref:l,class:"dashboard-chart-container"},null,512),k("div",{id:"moneyContainer",ref_key:"moneyContainer",ref:u,class:"dashboard-chart-container"},null,512)])]),_:1})]),_:1}),ht(D,{xs:12,xl:3},{default:at(()=>[ht(C,{title:""},{default:at(()=>[k("div",zI,[k("div",GI,[k("div",HI,[k("img",{src:r.baseData.avatar?r.baseData.avatar:t.value},null,8,VI)]),k("div",WI,[k("p",null,"Hello\uFF01"+bt(r.baseData.realName),1),UI])]),k("div",$I,[k("p",null,[YI,$i(bt(r.baseData.email),1)]),k("p",null,[XI,r.roleListData.length>12?(te(),Pe("span",ZI,[ht(A,{content:r.roleListData,"show-arrow":""},{default:at(()=>[k("span",null,bt(r.roleListData),1)]),_:1},8,["content"])])):(te(),Pe("span",qI,bt(r.roleListData),1))]),k("p",null,[KI,$i(bt(r.baseData.post),1)]),k("p",null,[QI,$i(bt(r.baseData.dept),1)])]),jI])]),_:1})]),_:1})]),_:1})}}});var tP=ps(JI,[["__scopeId","data-v-6543c289"],["__file","E:/Code/projects/kyl-java-vue3/kyl-sanatorium-vue3/src/pages/dashboard/base/components/TopPanel.vue"]]);const eP={class:"condition"},rP={class:"times"},nP={class:"date"},iP=["onClick"],aP={class:"dateCon"},oP={class:"useList"},sP=k("span",{class:"backlogIcon"},null,-1),lP=k("p",null,"\u5F85\u529E\u4E8B\u9879",-1),uP=k("span",{class:"financeIcon"},null,-1),fP=k("p",null,"\u8D22\u52A1\u5217\u8868",-1),hP=k("span",{class:"refundIcon"},null,-1),vP=k("p",null,"\u9000\u6B3E\u7BA1\u7406",-1),cP=k("span",{class:"orderIcon"},null,-1),dP=k("p",null,"\u8BA2\u5355\u7BA1\u7406",-1),pP=k("span",{class:"checkIcon"},null,-1),gP=k("p",null,"\u5165\u4F4F\u7533\u8BF7",-1),mP=k("span",{class:"backIcon"},null,-1),yP=k("p",null,"\u9000\u4F4F\u7533\u8BF7",-1),_P=k("span",{class:"leaveIcon"},null,-1),SP=k("p",null,"\u8BF7\u5047\u7533\u8BF7",-1),wP=k("span",{class:"subscribeIcon"},null,-1),bP=k("p",null,"\u9884\u7EA6\u767B\u8BB0",-1),xP=cs({__name:"MiddleChart",setup(r){sr([Ly,ky,qy,Cy,Vy,RL,Ky]);const t=ot(["\u4ECA\u65E5","\u672C\u5468","\u672C\u6708"]),e=ot(0),n=Np(),i=ot(0),a=ot([]),o=zp(()=>n.chartColors),s=ot(),l=ot();let u,f,h,c;const v=ot(Tp),d=ot(Dp),g=ot(Ap),p=ot(Mp),m=ot(Lp),y=ot(Ip),_=ot(Pp),S=ot(Ep),b=ot(Rp),w=ot(vs),x=()=>{u||(u=document.getElementById("monitorContainer")),c=br(u),P(),c.setOption(Op(o.value,v.value,_o))},C=()=>{f||(f=document.getElementById("enterContainer")),c=br(f),P(),c.setOption(Bp(o.value,p.value,_o))},D=()=>{h||(h=document.getElementById("enterContainer")),c=br(h),P(),c.setOption(Fp(o.value,_.value,_o))},A=()=>{i.value===0?x():i.value===1?C():D()};ds(()=>{kh(()=>{const N=(Oo(new Date).surplusDay+1)%3;N===1?(v.value=Tp,d.value=Dp,g.value=Ap,p.value=Mp,m.value=Lp,y.value=Ip,_.value=Pp,S.value=Ep,b.value=Rp,w.value=vs):N===2?(v.value=hI,d.value=dI,g.value=gI,p.value=yI,m.value=SI,y.value=bI,_.value=CI,S.value=DI,b.value=MI,w.value=Qy):(v.value=vI,d.value=pI,g.value=mI,p.value=_I,m.value=wI,y.value=xI,_.value=TI,S.value=AI,b.value=LI,w.value=jy),A()})});const T=O=>{i.value=O,e.value=0,kh(()=>{A(),L()})},L=()=>{const O=[];let N=[],H=[],V=null,X=null,Q=null;if(i.value===0?(V=v.value,X=d.value,Q=g.value):i.value===1?(V=p.value,X=m.value,Q=y.value):(V=_.value,X=S.value,Q=b.value),e.value===0)P(),N=_o,H=V;else if(e.value===1)s.value=E(new Date),l.value=R(new Date),N=cI,H=X;else{const St=F();s.value=Wn(St.firstDay),l.value=Wn(St.lastDay);const et=Oo(new Date);a.value=et.days;for(let At=0;At{e.value=O,L()},P=()=>{s.value=Wn(new Date),l.value=Wn(new Date)},E=O=>{const N=new Date(O),V=N.getDay()||7,X=N.getDate(),Q=N.getMonth();return U(new Date(N.getFullYear(),Q,X+0-V))},R=O=>{const N=new Date(O),V=N.getDay()||7,X=N.getDate(),Q=N.getMonth();return U(new Date(N.getFullYear(),Q,X+6-V))},U=O=>{const N=O.getFullYear();let H=O.getMonth()+1,V=O.getDate();return H<10&&(H=`0${H}`),V<10&&(V=`0${V}`),`${N}-${H}-${V}`},F=()=>{const O=new Date,N=new Date(O.getFullYear(),O.getMonth(),1),H=new Date(O.getFullYear(),O.getMonth()+1,0);return{firstDay:N,lastDay:H}};return(O,N)=>{const H=Jt("t-tab-panel"),V=Jt("t-tabs"),X=Jt("t-card"),Q=Jt("t-col"),St=Jt("t-badge"),et=Jt("router-link"),At=Jt("t-row");return te(),Cf(At,{gutter:24,class:"row-container"},{default:at(()=>[ht(Q,{xs:12,xl:9},{default:at(()=>[ht(X,{title:"",class:"dashboard-chart-card"},{default:at(()=>[k("div",eP,[ht(V,{value:i.value,onChange:T},{default:at(()=>[ht(H,{value:0,label:"\u6536\u76CA\u60C5\u51B5"},{default:at(()=>[k("div",{id:"monitorContainer",ref_key:"monitorContainer",ref:u,class:"monitorContainer"},null,512)]),_:1}),ht(H,{value:1,label:"\u5165\u9000\u60C5\u51B5"},{default:at(()=>[k("div",{id:"enterContainer",ref_key:"enterContainer",ref:f,class:"monitorContainer"},null,512)]),_:1}),ht(H,{value:2,label:"\u670D\u52A1\u60C5\u51B5"},{default:at(()=>[k("div",{id:"serveContainer",ref_key:"serveContainer",ref:h,class:"monitorContainer"},null,512)]),_:1})]),_:1},8,["value"]),k("div",rP,[k("ul",nP,[(te(!0),Pe(wo,null,So(t.value,(Ut,Ct)=>(te(),Pe("li",{key:Ct,class:Oi(e.value===Ct?"active":""),onClick:wt=>I(Ct)},bt(Ut),11,iP))),128))]),k("div",aP,bt(s.value)+" \u81F3 "+bt(l.value),1)])])]),_:1})]),_:1}),ht(Q,{xs:12,xl:3},{default:at(()=>[ht(X,{title:"\u5E38\u7528\u529F\u80FD",subtitle:O.currentMonth,class:"dashboard-chart-card"},{default:at(()=>[k("ul",oP,[ht(et,{to:"/active/backlogAfter"},{default:at(()=>[ht(St,{count:w.value.length+"+"},{default:at(()=>[sP]),_:1},8,["count"]),lP]),_:1}),ht(et,{to:"/finance/enterAccount"},{default:at(()=>[uP,fP]),_:1}),ht(et,{to:"/order/refund"},{default:at(()=>[hP,vP]),_:1}),ht(et,{to:"/order/olist"},{default:at(()=>[cP,dP]),_:1}),ht(et,{to:"/enterQuit/enterDetails"},{default:at(()=>[pP,gP]),_:1}),ht(et,{to:"/enterQuit/quitDetails"},{default:at(()=>[mP,yP]),_:1}),ht(et,{to:""},{default:at(()=>[_P,SP]),_:1}),ht(et,{to:"/appointment/subscribe"},{default:at(()=>[wP,bP]),_:1})])]),_:1},8,["subtitle"])]),_:1})]),_:1})}}});var CP=ps(xP,[["__file","E:/Code/projects/kyl-java-vue3/kyl-sanatorium-vue3/src/pages/dashboard/base/components/MiddleChart.vue"]]);const TP={class:"backlogCon"},DP={class:"con"},AP={class:"head"},MP={class:"time"},LP=k("span",{class:"btn"},"\u5BA1\u6279",-1),IP={class:"timeTie"},PP=k("div",null,"\u9884\u7EA6\u603B\u89C8",-1),EP={class:"dateSelete"},RP=["onClick"],kP={class:"subscribeCon"},OP={class:"time"},BP=cs({__name:"RankList",setup(r){const t=ot([]),e=ot(!1),n=ot(""),i=ot(0),a=ot([]),o=ot([]),s=ot(vs);ds(()=>{t.value=Ia({baselineDate:new Date}),n.value=v(),o.value=[...kp,...kp],a.value=o.value[0],l(t.value);const g=(Oo(new Date).surplusDay+1)%3;g===1?s.value=vs:g===2?s.value=Qy:s.value=jy});const l=d=>{const g=v(),p=d[0].dateStr,m=new Date(g).getTime();new Date(p).getTime()<=m?e.value=!0:e.value=!1,t.value.forEach((_,S)=>{_.dateStr===n.value&&(i.value=S,a.value=o.value[_.day]),e.value&&(n.value=v(),a.value=o.value[_.day])})},u=()=>{e.value||(i.value=0,t.value=Ia({baselineDate:new Date(t.value[0].dateStr),range:-7}),n.value=t.value[0].dateStr,l(t.value))},f=()=>{i.value=0,t.value=Ia({baselineDate:new Date(t.value[0].dateStr),range:7}),l(t.value),n.value=t.value[0].dateStr,a.value=o.value[t.value[0].day]},h=(d,g)=>{i.value=g,n.value=d.dateStr,a.value=o.value[d.day]},c=()=>{t.value=Ia({baselineDate:new Date}),l(t.value)},v=()=>Wn(new Date);return(d,g)=>{const p=Jt("t-card"),m=Jt("t-col"),y=Jt("t-row");return te(),Cf(y,{gutter:24,class:"row-container"},{default:at(()=>[ht(m,{xs:12,xl:7},{default:at(()=>[ht(p,{title:"\u5F85\u529E\u4E8B\u9879",class:"dashboard-rank-card"},{default:at(()=>[k("div",TP,[k("ul",null,[(te(!0),Pe(wo,null,So(s.value,(_,S)=>(te(),Pe("li",{key:S},[k("div",DP,[k("p",AP,[k("span",{class:Oi(["typeIcon","icon"+_.type])},bt(_.type===3?"\u5165\u4F4F":"\u9000\u4F4F"),3),$i(bt(_.num)+bt(_.title),1)]),k("p",MP,[k("span",null,"\u7533\u8BF7\u4EBA\uFF1A"+bt(_.name),1),k("span",null,"\u7533\u8BF7\u65F6\u95F4\uFF1A"+bt(_.date),1)])]),LP]))),128))])])]),_:1})]),_:1}),ht(m,{xs:12,xl:5},{default:at(()=>[ht(p,{title:"",class:"dashboard-rank-card"},{title:at(()=>[k("div",IP,[PP,k("div",null,[k("span",{class:"goToday",onClick:c},"\u56DE\u5230\u4ECA\u65E5"),$i(bt(n.value),1)])])]),default:at(()=>[k("div",EP,[k("span",{class:Oi(["pre",e.value?"forbidActive":""]),onClick:u},null,2),k("span",{class:"next",onClick:f}),k("ul",null,[(te(!0),Pe(wo,null,So(t.value,(_,S)=>(te(),Pe("li",{key:S},[k("p",null,[k("span",null,bt(_.week),1)]),k("p",{onClick:b=>h(_,S)},[k("span",{class:Oi(i.value===S?"dayActive":"")},bt(_.day),3)],8,RP)]))),128))])]),k("div",kP,[k("ul",null,[(te(!0),Pe(wo,null,So(a.value,(_,S)=>(te(),Pe("li",{key:S},[k("span",{class:Oi(["typeIcon",_.type===1?"icon3":"icon1"])},bt(_.type===1?"\u53C2\u89C2":"\u9884\u7EA6"),3),k("span",OP,bt(_.time),1),k("span",null,"\u9884\u7EA6\u4EBA\uFF1A"+bt(_.name),1),k("span",null,"\u624B\u673A\u53F7\uFF1A"+bt(_.phone),1)]))),128))])])]),_:1})]),_:1})]),_:1})}}});var FP=ps(BP,[["__file","E:/Code/projects/kyl-java-vue3/kyl-sanatorium-vue3/src/pages/dashboard/base/components/RankList.vue"]]);const NP={class:"container home-wrapper"},zP=cs({__name:"index",setup(r){const t=ot({}),e=ot(""),n=async()=>{const i=await a_();t.value=i.data;const a=[];t.value.roleList.forEach(o=>{a.push(o.roleName)}),e.value=a.join(",")};return ds(()=>{n()}),(i,a)=>(te(),Pe("div",NP,[di(" \u9876\u90E8 card "),ht(tP,{class:"row-container",baseData:t.value,roleListData:e.value},null,8,["baseData","roleListData"]),di(" \u4E2D\u90E8\u56FE\u8868 "),ht(CP,{class:"row-container"}),di(" \u5217\u8868\u6392\u540D "),ht(FP,{class:"row-container"}),di(" \u51FA\u5165\u5E93\u6982\u89C8 "),di(' ')]))}});var VP=ps(zP,[["__scopeId","data-v-0d2b0973"],["__file","E:/Code/projects/kyl-java-vue3/kyl-sanatorium-vue3/src/pages/dashboard/base/index.vue"]]);export{VP as default};