jw项目windows环境软件安装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
487 KiB

import{g as ip}from"./cache-a9833e9a.js";import{bt as E,c as lr,W as U,j as Dt,aD as Tt,bu as wr,bv as Ar,P as ht,bw as De,Q as ie,bx as Pt,by as ga,X as he,ax as H,bz as qt,bA as ea,bB as St,f as st,bC as Tr,bD as ya,bE as ma,av as Rt,al as B,i as Dr,bF as ne,bG as Je,bH as hh,bI as Ps,bJ as Ft,bK as Rs,bL as Es,ay as rt,bM as Nt,bN as Vs,aE as yt,bO as Ja,aw as nt,Z as pt,bP as np,bQ as op,bR as sp,am as T,a9 as mi,bS as ra,bT as Sa,bU as lp,bV as up,bW as cp,bX as Si,bY as hp,ab as Ct,b6 as K,bZ as vp,b_ as fp,at as $,a1 as ce,a2 as xe,az as at,b$ as xi,c0 as _i,ar as F,c1 as xa,c2 as pp,c3 as Gt,aA as mt,au as tt,M as Kt,m as ve,A as bi,aB as zt,c4 as dp,c5 as er,Y as rr,a0 as vh,L as le,aC as Ht,ba as _e,c6 as G,c7 as Wn,c8 as gp,c9 as wi,aW as Ai,ca as ar,cb as ks,cc as ir,cd as fh,ce as wt,a3 as _t,cf as O,cg as ph,a4 as ue,_ as yp,ch as mp,aa as Sp,ci as xp,cj as Ns,ck as Ti,cl as dh,cm as nr,cn as Er,co as ot,cp as aa,cq as _p,cr as bp,b8 as wp,cs as Mt,ct as gh,cu as Cr,cv as Ir,cw as Do,cx as Co,cy as Ap,a8 as yh,cz as _a,as as Q,cA as mh,cB as Ma,cC as $n,cD as Tp,cE as Dp,cF as Vt,cG as kt,cH as Se,cI as Io,cJ as Yt,d as oe,cK as Cp,cL as Ip,cM as Di,ap as Sh,cN as xh,cO as Mp,cP as _h,cQ as Zn,cR as Lp,a5 as bh,cS as we,cT as Mo,bh as Xt,an as bt,cU as Un,cV as Ce,cW as Lo,cX as Pp,b as xt,cY as wh,cZ as Vr,c_ as Ah,c$ as zs,d0 as Zr,d1 as Os,d2 as Rp,d3 as Bi,d4 as Gi,l as it,d5 as Ep,d7 as Jr,d8 as Qa,aq as se,u as Bs,d9 as Ci,da as ke,db as ba,dc as Vp,dd as kp,de as xr,df as Gs,dg as Np,dh as Yn,r as Po,di as zp,dj as Th,dk as Op,dl as Dh,dm as Bp,dn as Gp,dp as Fs,dq as Fp,dr as Hp,ds as Hs,$ as ia,dt as Ch,du as Wp,dv as $p,dw as Zp,F as Up,dx as Yp,dy as Ii,dz as Ih,a as Ro,n as ti,dA as Ne,o as re,dB as Eo,R as _r,S as Xp,dC as Vo,dD as ei,dE as Xn,dF as Kn,dG as Kp,C as Fi,dH as qp,dI as Mh,dJ as ko,dK as Hi,dL as jp,dM as Ur,dN as Jp,dO as Ws,dP as Qp,dQ as $s,E as td,dR as kr,dS as Zs,dT as ed,dU as rd,dV as Us,dW as ad,dX as id,dY as na,dZ as nd,d_ as od,d$ as Lh,e0 as Ys,e1 as sd,e2 as ld,J as ud,V as Ph,e3 as Rh,e4 as cd,e5 as Eh,e6 as Vh,e7 as Xs,e8 as kh,e9 as Ks,ea as wa,eb as No,ec as hd,ed as vd,ee as fd,ef as pd,eg as dd,eh as gd,ei as Nh,ej as yd,ek as zh,el as md,em as qs,x as Sd,en as xd,eo as _d,ep as bd,eq as wd,s as Ad,er as Td,es as Dd,O as Oh,et as Cd,eu as Id,b9 as Bh,ev as Md,ew as js,ex as Gh,ey as Ld,ez as Pd,eA as Fh,eB as Hh,eC as Nr,eD as La,eE as Rd,eF as Wh,k as Ya,eG as qn,eH as Ed,eI as Vd,p as kd,eJ as ri,eK as Nd,eL as zd,eM as Mi,g as Od,eN as Bd,ae as Gd,eO as Fd,D as Js,eP as Hd,eQ as Re,eR as Mr,eS as Wd,eT as Qs,af as $d,eU as Zd,eV as Ud,eW as $h,eX as Zh,eY as Li,eZ as Yd,e_ as Xd,e$ as Kd,f0 as qd,f1 as jd,f2 as Jd,f3 as Qd,f4 as tg,f5 as eg,f6 as rg,f7 as ag,f8 as ig,f9 as ng,fa as og,fb as sg,fc as lg,fd as ug,fe as tl,ff as cg,br as hg,bo as vg,bs as fg,bl as pg,bk as dg,bi as gg,bj as yg,bn as mg,bm as Sg,bq as xg,bp as _g,aJ as el}from"./installCanvasRenderer-33c93d3d.js";import{G as bg,r as Wi,e as cr,o as Wt,c as $t,g as pe,w as de,m as $i,f as Y,h as ft,D as Zt,A as jt,t as wg}from"./index-9b4667b6.js";var Ag=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return lr(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var r=new U,i=Dt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);r.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=t.itemHeight*.8,u=Dt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);r.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Tt);const Tg=Ag;var Dg=function(a){E(e,a);function e(t,r,i,n){var o=a.call(this)||this;return o.updateData(t,r,i,n),o}return e.prototype._createSymbol=function(t,r,i,n,o){this.removeAll();var s=Dt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=Cg,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){wr(this.childAt(0))},e.prototype.downplay=function(){Ar(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,n){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=n&&n.disableAnimation;if(u){var h=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,h)}else{var v=this.childAt(0);v.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(f):ht(v,f,s,r),De(v)}if(this._updateCommon(t,r,l,i,n),u){var v=this.childAt(0);if(!c){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,ie(v,f,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,n,o){var s=this.childAt(0),l=t.hostModel,u,c,h,v,f,p,d,g,y;if(n&&(u=n.emphasisItemStyle,c=n.blurItemStyle,h=n.selectItemStyle,v=n.focus,f=n.blurScope,d=n.labelStatesModels,g=n.hoverScale,y=n.cursorStyle,p=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(r),S=m.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),v=S.get("focus"),f=S.get("blurScope"),p=S.get("disabled"),d=Pt(m),g=S.getShallow("scale"),y=m.getShallow("cursor")}var x=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=ga(t.getItemVisual(r,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var _=t.getItemVisual(r,"style"),w=_.fill;if(s instanceof he){var A=s.style;s.useStyle(H({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},_))}else s.__isEmptyBrush?s.useStyle(H({},_)):s.useStyle(_),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=t.getItemVisual(r,"liftZ"),C=this._z2;D!=null?C==null&&(this._z2=s.z2,s.z2+=D):C!=null&&(s.z2=C,this._z2=null);var I=o&&o.useNameLabel;qt(s,d,{labelFetcher:l,labelDataIndex:r,defaultText:M,inheritColor:w,defaultOpacity:_.opacity});function M(R){return I?t.getName(R):ea(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*L,P.scaleY=this._sizeY*L,this.setSymbolScale(1),St(this,v,f,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var n=this.childAt(0),o=st(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&Tr(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Tr(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return ya(t.getItemVisual(r,"symbolSize"))},e}(U);function Cg(a,e){this.parent.drift(a,e)}const Aa=Dg;function Zi(a,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&a.getItemVisual(t,"symbol")!=="none"}function rl(a){return a!=null&&!Rt(a)&&(a={isIgnore:a}),a||{}}function al(a){var e=a.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Pt(e),cursorStyle:e.get("cursor")}}var Ig=function(){function a(e){this.group=new U,this._SymbolCtor=e||Aa}return a.prototype.updateData=function(e,t){this._progressiveEls=null,t=rl(t);var r=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=al(e),u={disableAnimation:s},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};n||r.removeAll(),e.diff(n).add(function(h){var v=c(h);if(Zi(e,v,h,t)){var f=new o(e,h,l,u);f.setPosition(v),e.setItemGraphicEl(h,f),r.add(f)}}).update(function(h,v){var f=n.getItemGraphicEl(v),p=c(h);if(!Zi(e,p,h,t)){r.remove(f);return}var d=e.getItemVisual(h,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==d)r.remove(f),f=new o(e,h,l,u),f.setPosition(p);else{f.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?f.attr(y):ht(f,y,i)}r.add(f),e.setItemGraphicEl(h,f)}).remove(function(h){var v=n.getItemGraphicEl(h);v&&v.fadeOut(function(){r.remove(v)},i)}).execute(),this._getSymbolPoint=c,this._data=e},a.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,i){var n=e._getSymbolPoint(i);r.setPosition(n),r.markRedraw()})},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=al(e),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=rl(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var o=t.getItemLayout(n);if(Zi(t,o,n,r)){var s=new this._SymbolCtor(t,n,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},a.prototype.eachRendered=function(e){ma(this._progressiveEls||this.group,e)},a.prototype.remove=function(e){var t=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},r.hostModel)}):t.removeAll()},a}();const Ta=Ig;function Uh(a,e,t){var r=a.getBaseAxis(),i=a.getOtherAxis(r),n=Mg(i,t),o=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,h=B(a.dimensions,function(p){return e.mapDimension(p)}),v=!1,f=e.getCalculationInfo("stackResultDimension");return Dr(e,h[0])&&(v=!0,h[0]=f),Dr(e,h[1])&&(v=!0,h[1]=f),{dataDimsForPoint:h,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Mg(a,e){var t=0,r=a.scale.getExtent();return e==="start"?t=r[0]:e==="end"?t=r[1]:ne(e)&&!isNaN(e)?t=e:r[0]>0?t=r[0]:r[1]<0&&(t=r[1]),t}function Yh(a,e,t,r){var i=NaN;a.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=a.valueStart);var n=a.baseDataOffset,o=[];return o[n]=t.get(a.baseDim,r),o[1-n]=i,e.dataToPoint(o)}function Lg(a,e){var t=[];return e.diff(a).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function Pg(a,e,t,r,i,n,o,s){for(var l=Lg(a,e),u=[],c=[],h=[],v=[],f=[],p=[],d=[],g=Uh(i,e,o),y=a.getLayout("points")||[],m=e.getLayout("points")||[],S=0;S<l.length;S++){var x=l[S],b=!0,_=void 0,w=void 0;switch(x.cmd){case"=":_=x.idx*2,w=x.idx1*2;var A=y[_],D=y[_+1],C=m[w],I=m[w+1];(isNaN(A)||isNaN(D))&&(A=C,D=I),u.push(A,D),c.push(C,I),h.push(t[_],t[_+1]),v.push(r[w],r[w+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var M=x.idx,P=g.dataDimsForPoint,L=i.dataToPoint([e.get(P[0],M),e.get(P[1],M)]);w=M*2,u.push(L[0],L[1]),c.push(m[w],m[w+1]);var R=Yh(g,i,e,M);h.push(R[0],R[1]),v.push(r[w],r[w+1]),d.push(e.getRawIndex(M));break;case"-":b=!1}b&&(f.push(x),p.push(p.length))}p.sort(function(dt,ut){return d[dt]-d[ut]});for(var V=u.length,k=Je(V),N=Je(V),z=Je(V),W=Je(V),Z=[],S=0;S<p.length;S++){var j=p[S],q=S*2,J=j*2;k[q]=u[J],k[q+1]=u[J+1],N[q]=c[J],N[q+1]=c[J+1],z[q]=h[J],z[q+1]=h[J+1],W[q]=v[J],W[q+1]=v[J+1],Z[S]=f[j]}return{current:k,next:N,stackedOnCurrent:z,stackedOnNext:W,status:Z}}var Me=Math.min,Le=Math.max;function Qe(a,e){return isNaN(a)||isNaN(e)}function jn(a,e,t,r,i,n,o,s,l){for(var u,c,h,v,f,p,d=t,g=0;g<r;g++){var y=e[d*2],m=e[d*2+1];if(d>=i||d<0)break;if(Qe(y,m)){if(l){d+=n;continue}break}if(d===t)a[n>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var S=y-u,x=m-c;if(S*S+x*x<.5){d+=n;continue}if(o>0){for(var b=d+n,_=e[b*2],w=e[b*2+1];_===y&&w===m&&g<r;)g++,b+=n,d+=n,_=e[b*2],w=e[b*2+1],y=e[d*2],m=e[d*2+1],S=y-u,x=m-c;var A=g+1;if(l)for(;Qe(_,w)&&A<r;)A++,b+=n,_=e[b*2],w=e[b*2+1];var D=.5,C=0,I=0,M=void 0,P=void 0;if(A>=r||Qe(_,w))f=y,p=m;else{C=_-u,I=w-c;var L=y-u,R=_-y,V=m-c,k=w-m,N=void 0,z=void 0;if(s==="x"){N=Math.abs(L),z=Math.abs(R);var W=C>0?1:-1;f=y-W*N*o,p=m,M=y+W*z*o,P=m}else if(s==="y"){N=Math.abs(V),z=Math.abs(k);var Z=I>0?1:-1;f=y,p=m-Z*N*o,M=y,P=m+Z*z*o}else N=Math.sqrt(L*L+V*V),z=Math.sqrt(R*R+k*k),D=z/(z+N),f=y-C*o*(1-D),p=m-I*o*(1-D),M=y+C*o*D,P=m+I*o*D,M=Me(M,Le(_,y)),P=Me(P,Le(w,m)),M=Le(M,Me(_,y)),P=Le(P,Me(w,m)),C=M-y,I=P-m,f=y-C*N/z,p=m-I*N/z,f=Me(f,Le(u,y)),p=Me(p,Le(c,m)),f=Le(f,Me(u,y)),p=Le(p,Me(c,m)),C=y-f,I=m-p,M=y+C*z/N,P=m+I*z/N}a.bezierCurveTo(h,v,f,p,y,m),h=M,v=P}else a.lineTo(y,m)}u=y,c=m,d+=n}return g}var Xh=function(){function a(){this.smooth=0,this.smoothConstraint=!0}return a}(),Rg=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Xh},e.prototype.buildPath=function(t,r){var i=r.points,n=0,o=i.length/2;if(r.connectNulls){for(;o>0&&Qe(i[o*2-2],i[o*2-1]);o--);for(;n<o&&Qe(i[n*2],i[n*2+1]);n++);}for(;n<o;)n+=jn(t,i,n,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(t,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,n=i.data,o=hh.CMD,s,l,u=r==="x",c=[],h=0;h<n.length;){var v=n[h++],f=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,S=void 0;switch(v){case o.M:s=n[h++],l=n[h++];break;case o.L:if(f=n[h++],p=n[h++],S=u?(t-s)/(f-s):(t-l)/(p-l),S<=1&&S>=0){var x=u?(p-l)*S+l:(f-s)*S+s;return u?[t,x]:[x,t]}s=f,l=p;break;case o.C:f=n[h++],p=n[h++],d=n[h++],g=n[h++],y=n[h++],m=n[h++];var b=u?Ps(s,f,d,y,t,c):Ps(l,p,g,m,t,c);if(b>0)for(var _=0;_<b;_++){var w=c[_];if(w<=1&&w>=0){var x=u?Rs(l,p,g,m,w):Rs(s,f,d,y,w);return u?[t,x]:[x,t]}}s=y,l=m;break}}},e}(Ft),Eg=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e}(Xh),Kh=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new Eg},e.prototype.buildPath=function(t,r){var i=r.points,n=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Qe(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Qe(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=jn(t,i,o,s,s,1,r.smooth,l,r.connectNulls);jn(t,n,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,t.closePath()}},e}(Ft);function il(a,e){if(a.length===e.length){for(var t=0;t<a.length;t++)if(a[t]!==e[t])return;return!0}}function nl(a){for(var e=1/0,t=1/0,r=-1/0,i=-1/0,n=0;n<a.length;){var o=a[n++],s=a[n++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i))}return[[e,t],[r,i]]}function ol(a,e){var t=nl(a),r=t[0],i=t[1],n=nl(e),o=n[0],s=n[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function sl(a){return ne(a)?a:a?.5:0}function Vg(a,e,t){if(!t.valueDim)return[];for(var r=e.count(),i=Je(r*2),n=0;n<r;n++){var o=Yh(t,a,e,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function Pe(a,e,t,r){var i=e.getBaseAxis(),n=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],h=[];if(r){for(s=0;s<a.length;s+=2)!isNaN(a[s])&&!isNaN(a[s+1])&&h.push(a[s],a[s+1]);a=h}for(s=0;s<a.length-2;s+=2)switch(c[0]=a[s+2],c[1]=a[s+3],u[0]=a[s],u[1]=a[s+1],o.push(u[0],u[1]),t){case"end":l[n]=c[n],l[1-n]=u[1-n],o.push(l[0],l[1]);break;case"middle":var v=(u[n]+c[n])/2,f=[];l[n]=f[n]=v,l[1-n]=u[1-n],f[1-n]=c[1-n],o.push(l[0],l[1]),o.push(f[0],f[1]);break;default:l[n]=u[n],l[1-n]=c[1-n],o.push(l[0],l[1])}return o.push(a[s++],a[s++]),o}function kg(a,e){var t=[],r=a.length,i,n;function o(c,h,v){var f=c.coord,p=(v-f)/(h.coord-f),d=cp(p,[c.color,h.color]);return{coord:v,color:d}}for(var s=0;s<r;s++){var l=a[s],u=l.coord;if(u<0)i=l;else if(u>e){n?t.push(o(n,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),n=l}return t}function Ng(a,e,t){var r=a.getVisual("visualMeta");if(!(!r||!r.length||!a.count())&&e.type==="cartesian2d"){for(var i,n,o=r.length-1;o>=0;o--){var s=a.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=r[o];break}}if(!!n){var l=e.getAxis(i),u=B(n.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,h=n.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var v=kg(u,i==="x"?t.getWidth():t.getHeight()),f=v.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,d=v[0].coord-p,g=v[f-1].coord+p,y=g-d;if(y<.001)return"transparent";T(v,function(S){S.offset=(S.coord-d)/y}),v.push({offset:f?v[f-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:f?v[0].offset:.5,color:h[0]||"transparent"});var m=new mi(0,0,0,0,v,!0);return m[i]=d,m[i+"2"]=g,m}}}function zg(a,e,t){var r=a.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var n=t.getAxesByScale("ordinal")[0];if(!!n&&!(i&&Og(n,e))){var o=e.mapDimension(n.dim),s={};return T(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Og(a,e){var t=a.getExtent(),r=Math.abs(t[1]-t[0])/a.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),n=Math.max(1,Math.round(i/5)),o=0;o<i;o+=n)if(Aa.getSymbolSize(e,o)[a.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Bg(a,e){return isNaN(a)||isNaN(e)}function Gg(a){for(var e=a.length/2;e>0&&Bg(a[e*2-2],a[e*2-1]);e--);return e-1}function ll(a,e){return[a[e*2],a[e*2+1]]}function Fg(a,e,t){for(var r=a.length/2,i=t==="x"?0:1,n,o,s=0,l=-1,u=0;u<r;u++)if(o=a[u*2+i],!(isNaN(o)||isNaN(a[u*2+1-i]))){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function qh(a){if(a.get(["endLabel","show"]))return!0;for(var e=0;e<ra.length;e++)if(a.get([ra[e],"endLabel","show"]))return!0;return!1}function Ui(a,e,t,r){if(Sa(e,"cartesian2d")){var i=r.getModel("endLabel"),n=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=qh(r)?function(f,p){a._endLabelOnDuring(f,p,o,s,n,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=lp(e,t,r,function(){var f=a._endLabel;f&&t&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var h=c.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,c),c}else return up(e,t,r)}function Hg(a,e){var t=e.getBaseAxis(),r=t.isHorizontal(),i=t.inverse,n=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:a.get("align")||n,verticalAlign:a.get("verticalAlign")||o}}}var Wg=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.init=function(){var t=new U,r=new Ta;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=t},e.prototype.render=function(t,r,i){var n=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),h=l.getLayout("points")||[],v=o.type==="polar",f=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=t.get("animation"),S=!c.isEmpty(),x=c.get("origin"),b=Uh(o,l,x),_=S&&Vg(o,l,b),w=t.get("showSymbol"),A=t.get("connectNulls"),D=w&&!v&&zg(t,l,o),C=this._data;C&&C.eachItemGraphicEl(function(ut,et){ut.__temp&&(s.remove(ut),C.setItemGraphicEl(et,null))}),w||p.remove(),s.add(y);var I=v?!1:t.get("step"),M;o&&o.getArea&&t.get("clip",!0)&&(M=o.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var P=Ng(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(d&&f.type===o.type&&I===this._step))w&&p.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(ut){return[h[ut*2],h[ut*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,M),I&&(h=Pe(h,o,I,A),_&&(_=Pe(_,o,I,A))),d=this._newPolyline(h),S?g=this._newPolygon(h,_):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,Es(P)),y.setClipPath(Ui(this,o,!0,t));else{S&&!g?g=this._newPolygon(h,_):g&&!S&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,Es(P));var L=y.getClipPath();if(L){var R=Ui(this,o,!1,t);ie(L,{shape:R.shape},t)}else y.setClipPath(Ui(this,o,!0,t));w&&p.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(ut){return[h[ut*2],h[ut*2+1]]}}),(!il(this._stackedOnPoints,_)||!il(this._points,h))&&(m?this._doUpdateAnimation(l,_,o,i,I,x,A):(I&&(h=Pe(h,o,I,A),_&&(_=Pe(_,o,I,A))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:_})))}var V=t.getModel("emphasis"),k=V.get("focus"),N=V.get("blurScope"),z=V.get("disabled");if(d.useStyle(rt(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),Nt(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var W=d.getState("emphasis").style;W.lineWidth=+d.style.lineWidth+1}st(d).seriesIndex=t.seriesIndex,St(d,k,N,z);var Z=sl(t.get("smooth")),j=t.get("smoothMonotone");if(d.setShape({smooth:Z,smoothMonotone:j,connectNulls:A}),g){var q=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(rt(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),q&&(J=sl(q.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:J,smoothMonotone:j,connectNulls:A}),Nt(g,t,"areaStyle"),st(g).seriesIndex=t.seriesIndex,St(g,k,N,z)}var dt=function(ut){n._changePolyState(ut)};l.eachItemGraphicEl(function(ut){ut&&(ut.onHoverStateChange=dt)}),this._polyline.onHoverStateChange=dt,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=h,this._step=I,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,r){st(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,i,n){var o=t.getData(),s=Vs(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var v=t.get("zlevel")||0,f=t.get("z")||0;u=new Aa(o,s),u.x=c,u.y=h,u.setZ(v,f);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=f,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else yt.prototype.highlight.call(this,t,r,i,n)},e.prototype.downplay=function(t,r,i,n){var o=t.getData(),s=Vs(o,n);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 yt.prototype.downplay.call(this,t,r,i,n)},e.prototype._changePolyState=function(t){var r=this._polygon;Ja(this._polyline,t),r&&Ja(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Rg({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Kh({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var n,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):r.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");nt(c)&&(c=c(null));var h=u.get("animationDelay")||0,v=nt(h)?h(null):h;t.eachItemGraphicEl(function(f,p){var d=f;if(d){var g=[f.x,f.y],y=void 0,m=void 0,S=void 0;if(i)if(o){var x=i,b=r.pointToCoord(g);n?(y=x.startAngle,m=x.endAngle,S=-b[1]/180*Math.PI):(y=x.r0,m=x.r,S=b[0])}else{var _=i;n?(y=_.x,m=_.x+_.width,S=f.x):(y=_.y+_.height,m=_.y,S=f.y)}var w=m===y?0:(S-y)/(m-y);l&&(w=1-w);var A=nt(h)?h(p):c*w+v,D=d.getSymbolPath(),C=D.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:A}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var n=t.getModel("endLabel");if(qh(t)){var o=t.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 pt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Gg(l);c>=0&&(qt(s,Pt(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:c,defaultText:function(h,v,f){return f!=null?np(o,f):ea(o,h)},enableTextSetter:!0},Hg(n,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,n,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,f=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,S=r.shape,x=m?y?S.x:S.y+S.height:y?S.x+S.width:S.y,b=(y?d:0)*(m?-1:1),_=(y?0:-d)*(m?-1:1),w=y?"x":"y",A=Fg(h,x,w),D=A.range,C=D[1]-D[0],I=void 0;if(C>=1){if(C>1&&!f){var M=ll(h,D[0]);u.attr({x:M[0]+b,y:M[1]+_}),o&&(I=v.getRawValue(D[0]))}else{var M=c.getPointOn(x,w);M&&u.attr({x:M[0]+b,y:M[1]+_});var P=v.getRawValue(D[0]),L=v.getRawValue(D[1]);o&&(I=op(i,p,P,L,A.t))}n.lastFrameIndex=D[0]}else{var R=t===1||n.lastFrameIndex>0?D[0]:0,M=ll(h,R);o&&(I=v.getRawValue(R)),u.attr({x:M[0]+b,y:M[1]+_})}o&&sp(u).setLabelText(I)}},e.prototype._doUpdateAnimation=function(t,r,i,n,o,s,l){var u=this._polyline,c=this._polygon,h=t.hostModel,v=Pg(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),f=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(f=Pe(v.current,i,o,l),p=Pe(v.stackedOnCurrent,i,o,l),d=Pe(v.next,i,o,l),g=Pe(v.stackedOnNext,i,o,l)),ol(f,d)>3e3||c&&ol(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),c&&(c.stopAnimation(),c.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=f;var y={shape:{points:d}};v.current!==f&&(y.shape.__points=v.next),u.stopAnimation(),ht(u,y,h),c&&(c.setShape({points:f,stackedOnPoints:p}),c.stopAnimation(),ht(c,{shape:{stackedOnPoints:g}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],S=v.status,x=0;x<S.length;x++){var b=S[x].cmd;if(b==="="){var _=t.getItemGraphicEl(S[x].idx1);_&&m.push({el:_,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,A=0;A<m.length;A++){var D=m[A].el,C=m[A].ptIdx*2;D.x=w[C],D.y=w[C+1],D.markRedraw()}})},e.prototype.remove=function(t){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(n,o){n.__temp&&(r.remove(n),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(yt);const $g=Wg;function Da(a,e){return{seriesType:a,plan:Si(),reset:function(t){var r=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,o=e||n.large;if(!!i){var s=B(i.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");Dr(r,s[0])&&(s[0]=u),Dr(r,s[1])&&(s[1]=u);var c=r.getStore(),h=r.getDimensionIndex(s[0]),v=r.getDimensionIndex(s[1]);return l&&{progress:function(f,p){for(var d=f.end-f.start,g=o&&Je(d*l),y=[],m=[],S=f.start,x=0;S<f.end;S++){var b=void 0;if(l===1){var _=c.get(h,S);b=i.dataToPoint(_,null,m)}else y[0]=c.get(h,S),y[1]=c.get(v,S),b=i.dataToPoint(y,null,m);o?(g[x++]=b[0],g[x++]=b[1]):p.setItemLayout(S,b.slice())}o&&p.setLayout("points",g)}}}}}}function Zg(a){a.registerChartView($g),a.registerSeriesModel(Tg),a.registerLayout(Da("line",!0)),a.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,hp("line"))}var Ug=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return lr(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Tt);const Yg=Ug;var jh=4,Xg=function(){function a(){}return a}(),Kg=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new Xg},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var i=r.points,n=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]<jh,c=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<i.length;){var v=i[h++],f=i[h++];isNaN(v)||isNaN(f)||c&&!c.contain(v,f)||(s.x=v-n[0]/2,s.y=f-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,r=t.points,i=t.size,n=this._ctx,o=this.softClipShape,s;if(!!n){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,r){for(var i=this.shape,n=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var c=u*2,h=n[c]-s/2,v=n[c+1]-l/2;if(t>=h&&r>=v&&t<=h+s&&r<=v+l)return u}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),n=this.getBoundingRect();if(t=i[0],r=i[1],n.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.points,n=r.size,o=n[0],s=n[1],l=1/0,u=1/0,c=-1/0,h=-1/0,v=0;v<i.length;){var f=i[v++],p=i[v++];l=Math.min(f,l),c=Math.max(f,c),u=Math.min(p,u),h=Math.max(p,h)}t=this._rect=new Ct(l-o/2,u-s/2,c-l+o,h-u+s)}return t},e}(Ft),qg=function(){function a(){this.group=new U}return a.prototype.updateData=function(e,t){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,t)},a.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,n=r.startIndex*4*2;t=new Float32Array(t.buffer,n,i)}r.setShape("points",t),r.reset()})},a.prototype.incrementalPrepareUpdate=function(e){this._clear()},a.prototype.incrementalUpdate=function(e,t,r){var i=this._newAdded[0],n=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+n.length);l.set(o),l.set(n,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:n}),this._setCommon(u,t,r)}},a.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},a.prototype._create=function(){var e=new Kg({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},a.prototype._setCommon=function(e,t,r){var i=t.hostModel;r=r||{};var n=t.getVisual("symbolSize");e.setShape("size",n instanceof Array?n:[n,n]),e.softClipShape=r.clipShape||null,e.symbolProxy=Dt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<jh;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=st(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}();const jg=qg;var Jg=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=Da("").reset(t,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,i=r&&r.getArea&&r.getArea();return t.get("clip",!0)?i:null},e.prototype._updateSymbolDraw=function(t,r){var i=this._symbolDraw,n=r.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new jg:new Ta,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(yt);const Qg=Jg;function ty(a){K(vp),a.registerSeriesModel(Yg),a.registerChartView(Qg),a.registerLayout(Da("scatter"))}function ey(a){a.eachSeriesByType("radar",function(e){var t=e.getData(),r=[],i=e.coordinateSystem;if(!!i){var n=i.getIndicatorAxes();T(n,function(o,s){t.each(t.mapDimension(n[s].dim),function(l,u){r[u]=r[u]||[];var c=i.dataToPoint(l,s);r[u][s]=ul(c)?c:cl(i)})}),t.each(function(o){var s=fp(r[o],function(l){return ul(l)})||cl(i);r[o].push(s.slice()),t.setItemLayout(o,r[o])})}})}function ul(a){return!isNaN(a[0])&&!isNaN(a[1])}function cl(a){return[a.cx,a.cy]}function ry(a){var e=a.polar;if(e){$(e)||(e=[e]);var t=[];T(e,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),a.radar=a.radar||[],$(a.radar)||(a.radar=[a.radar]),a.radar.push(r)):t.push(r)}),a.polar=t}T(a.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var ay=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(v,f){var p=v.getItemVisual(f,"symbol")||"circle";if(p!=="none"){var d=ya(v.getItemVisual(f,"symbolSize")),g=Dt(p,-1,-1,2,2),y=v.getItemVisual(f,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function c(v,f,p,d,g,y){p.removeAll();for(var m=0;m<f.length-1;m++){var S=u(d,g);S&&(S.__dimIdx=m,v[m]?(S.setPosition(v[m]),xi[y?"initProps":"updateProps"](S,{x:f[m][0],y:f[m][1]},t,g)):S.setPosition(f[m]),p.add(S))}}function h(v){return B(v,function(f){return[n.cx,n.cy]})}s.diff(l).add(function(v){var f=s.getItemLayout(v);if(!!f){var p=new ce,d=new xe,g={shape:{points:f}};p.shape.points=h(f),d.shape.points=h(f),ie(p,g,t,v),ie(d,g,t,v);var y=new U,m=new U;y.add(d),y.add(p),y.add(m),c(d.shape.points,f,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,f){var p=l.getItemGraphicEl(f),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(v)}};!m.shape.points||(c(d.shape.points,m.shape.points,y,s,v,!1),De(g),De(d),ht(d,m,t),ht(g,m,t),s.setItemGraphicEl(v,p))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,f){var p=s.getItemModel(f),d=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(f,"style"),S=m.fill;o.add(v),d.useStyle(rt(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),Nt(d,p,"lineStyle"),Nt(g,p,"areaStyle");var x=p.getModel("areaStyle"),b=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=b,T(["emphasis","select","blur"],function(A){var D=p.getModel([A,"areaStyle"]),C=D.isEmpty()&&D.parentModel.isEmpty();g.ensureState(A).ignore=C&&b}),g.useStyle(rt(x.getAreaStyle(),{fill:S,opacity:.7,decal:m.decal}));var _=p.getModel("emphasis"),w=_.getModel("itemStyle").getItemStyle();y.eachChild(function(A){if(A instanceof he){var D=A.style;A.useStyle(H({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},m))}else A.useStyle(m),A.setColor(S),A.style.strokeNoScale=!0;var C=A.ensureState("emphasis");C.style=at(w);var I=s.getStore().get(s.getDimensionIndex(A.__dimIdx),f);(I==null||isNaN(I))&&(I=""),qt(A,Pt(p),{labelFetcher:s.hostModel,labelDataIndex:f,labelDimIndex:A.__dimIdx,defaultText:I,inheritColor:S,defaultOpacity:m.opacity})}),St(v,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(yt);const iy=ay;var ny=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new _i(F(this.getData,this),F(this.getRawData,this))},e.prototype.getInitialData=function(t,r){return xa(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=pp(this,t);return Gt("section",{header:u,sortBlocks:!0,blocks:B(s,function(h){var v=n.get(n.mapDimension(h.dim),t);return Gt("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:v,sortParam:v})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var r=this.getData(),i=this.coordinateSystem,n=r.getValues(B(i.dimensions,function(u){return r.mapDimension(u)}),t),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(n[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Tt);const oy=ny;var zr=dp.value;function Pa(a,e){return rt({show:e},a)}var sy=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),f=B(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=rt({color:p.color},l));var g=mt(at(p),{boundaryGap:t,splitNumber:r,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(tt(c)){var y=g.name;g.name=c.replace("{value}",y!=null?y:"")}else nt(c)&&(g.name=c(g.name,g));var m=new Kt(g,null,this.ecModel);return ve(m,bi.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=f},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:mt({lineStyle:{color:"#bbb"}},zr.axisLine),axisLabel:Pa(zr.axisLabel,!1),axisTick:Pa(zr.axisTick,!1),splitLine:Pa(zr.splitLine,!0),splitArea:Pa(zr.splitArea,!0),indicator:[]},e}(zt);const ly=sy;var uy=["axisLine","axisTickLabel","axisName"],cy=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes(),n=B(i,function(o){var s=o.model.get("showName")?o.name:"",l=new er(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});T(n,function(o){T(uy,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),v=l.get("color"),f=u.get("color"),p=$(v)?v:[v],d=$(f)?f:[f],g=[],y=[];function m(R,V,k){var N=k%V.length;return R[N]=R[N]||[],N}if(n==="circle")for(var S=i[0].getTicksCoords(),x=r.cx,b=r.cy,_=0;_<S.length;_++){if(c){var w=m(g,p,_);g[w].push(new rr({shape:{cx:x,cy:b,r:S[_].coord}}))}if(h&&_<S.length-1){var w=m(y,d,_);y[w].push(new vh({shape:{cx:x,cy:b,r0:S[_].coord,r:S[_+1].coord}}))}}else for(var A,D=B(i,function(R,V){var k=R.getTicksCoords();return A=A==null?k.length-1:Math.min(k.length-1,A),B(k,function(N){return r.coordToPoint(N.coord,V)})}),C=[],_=0;_<=A;_++){for(var I=[],M=0;M<i.length;M++)I.push(D[M][_]);if(I[0]&&I.push(I[0].slice()),c){var w=m(g,p,_);g[w].push(new xe({shape:{points:I}}))}if(h&&C){var w=m(y,d,_-1);y[w].push(new ce({shape:{points:I.concat(C)}}))}C=I.slice().reverse()}var P=l.getLineStyle(),L=u.getAreaStyle();T(y,function(R,V){this.group.add(le(R,{style:rt({stroke:"none",fill:d[V%d.length]},L),silent:!0}))},this),T(g,function(R,V){this.group.add(le(R,{style:rt({fill:"none",stroke:p[V%p.length]},P),silent:!0}))},this)},e.type="radar",e}(Ht);const hy=cy;var vy=function(a){E(e,a);function e(t,r,i){var n=a.call(this,t,r,i)||this;return n.type="value",n.angle=0,n.name="",n}return e}(_e);const fy=vy;var py=function(){function a(e,t,r){this.dimensions=[],this._model=e,this._indicatorAxes=B(e.getIndicatorModels(),function(i,n){var o="indicator_"+n,s=new fy(o,new Wn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,r)}return a.prototype.getIndicatorAxes=function(){return this._indicatorAxes},a.prototype.dataToPoint=function(e,t){var r=this._indicatorAxes[t];return this.coordToPoint(r.dataToCoord(e),t)},a.prototype.coordToPoint=function(e,t){var r=this._indicatorAxes[t],i=r.angle,n=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[n,o]},a.prototype.pointToData=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=Math.sqrt(t*t+r*r);t/=i,r/=i;for(var n=Math.atan2(-r,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(n-c.angle);h<o&&(s=c,l=u,o=h)}return[l,+(s&&s.coordToData(i))]},a.prototype.resize=function(e,t){var r=e.get("center"),i=t.getWidth(),n=t.getHeight(),o=Math.min(i,n)/2;this.cx=G(r[0],i),this.cy=G(r[1],n),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(tt(s)||ne(s))&&(s=[0,s]),this.r0=G(s[0],o),this.r=G(s[1],o),T(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},a.prototype.update=function(e,t){var r=this._indicatorAxes,i=this._model;T(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();T(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var n=i.get("splitNumber"),o=new Wn;o.setExtent(0,n),o.setInterval(1),T(r,function(s,l){gp(s.scale,s.model,o)})},a.prototype.convertToPixel=function(e,t,r){return console.warn("Not implemented."),null},a.prototype.convertFromPixel=function(e,t,r){return console.warn("Not implemented."),null},a.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},a.create=function(e,t){var r=[];return e.eachComponent("radar",function(i){var n=new a(i,e,t);r.push(n),i.coordinateSystem=n}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},a.dimensions=[],a}();const dy=py;function gy(a){a.registerCoordinateSystem("radar",dy),a.registerComponentModel(ly),a.registerComponentView(hy),a.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(r){t.setItemVisual(r,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function yy(a){K(gy),a.registerChartView(iy),a.registerSeriesModel(oy),a.registerLayout(ey),a.registerProcessor(wi("radar")),a.registerPreprocessor(ry)}var hl="\0_ec_interaction_mutex";function my(a,e,t){var r=zo(a);r[e]=t}function Sy(a,e,t){var r=zo(a),i=r[e];i===t&&(r[e]=null)}function vl(a,e){return!!zo(a)[e]}function zo(a){return a[hl]||(a[hl]={})}Ai({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ar);var xy=function(a){E(e,a);function e(t){var r=a.call(this)||this;r._zr=t;var i=F(r._mousedownHandler,r),n=F(r._mousemoveHandler,r),o=F(r._mouseupHandler,r),s=F(r._mousewheelHandler,r),l=F(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=rt(at(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},r.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!ks(t)){for(var r=t.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Xa("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||vl(this._zr,"globalPan"))){var r=t.offsetX,i=t.offsetY,n=this._x,o=this._y,s=r-n,l=i-o;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&ir(t.event),Jh(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:o,newX:r,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){ks(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var r=Xa("zoomOnMouseWheel",t,this._opt),i=Xa("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!r&&!i)){if(r){var u=o>3?1.4:o>1?1.2:1.1,c=n>0?u:1/u;Yi(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(n),v=(n>0?1:-1)*(h>3?.4:h>1?.15:.05);Yi(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!vl(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;Yi(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(fh);function Yi(a,e,t,r,i){a.pointerChecker&&a.pointerChecker(r,i.originX,i.originY)&&(ir(r.event),Jh(a,e,t,r,i))}function Jh(a,e,t,r,i){i.isAvailableBehavior=F(Xa,null,t,r),a.trigger(e,i)}function Xa(a,e,t){var r=t[a];return!a||r&&(!tt(r)||e.event[r+"Key"])}const Ca=xy;function Oo(a,e,t){var r=a.target;r.x+=e,r.y+=t,r.dirty()}function Bo(a,e,t,r){var i=a.target,n=a.zoomLimit,o=a.zoom=a.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/a.zoom;a.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var _y={axisPointer:1,tooltip:1,brush:1};function Pi(a,e,t){var r=e.getComponentByElement(a.topTarget),i=r&&r.coordinateSystem;return r&&r!==t&&!_y.hasOwnProperty(r.mainType)&&i&&i.model!==t}function Qh(a){if(tt(a)){var e=new DOMParser;a=e.parseFromString(a,"text/xml")}var t=a;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Xi,ai={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},fl=wt(ai),ii={"alignment-baseline":"textBaseline","stop-color":"stopColor"},pl=wt(ii),by=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(e,t){t=t||{};var r=Qh(e);this._defsUsePending=[];var i=new U;this._root=i;var n=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ut(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;Ty(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var v=Ri(o);v.length>=4&&(c={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(c&&s!=null&&l!=null&&(h=ev(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var f=i;i=new U,i.add(f),f.scaleX=f.scaleY=h.scale,f.x=h.x,f.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new _t({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:n}},a.prototype._parseNode=function(e,t,r,i,n,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var c=Xi[s];if(c&&O(Xi,s)){l=c.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};r.push(v),s==="g"&&(u=v)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var f=dl[s];if(f&&O(dl,s)){var p=f.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},a.prototype._parseText=function(e,t){var r=new ph({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Jt(t,r),Ut(e,r,this._defsUsePending,!1,!1),wy(r,t);var i=r.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,r.scaleX*=n/9,r.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},a.internalField=function(){Xi={g:function(e,t){var r=new U;return Jt(t,r),Ut(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new _t;return Jt(t,r),Ut(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rr;return Jt(t,r),Ut(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new ue;return Jt(t,r),Ut(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new yp;return Jt(t,r),Ut(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),i;r&&(i=ml(r));var n=new ce({shape:{points:i||[]},silent:!0});return Jt(t,n),Ut(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=ml(r));var n=new xe({shape:{points:i||[]},silent:!0});return Jt(t,n),Ut(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var r=new he;return Jt(t,r),Ut(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new U;return Jt(t,s),Ut(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new U;return Jt(t,s),Ut(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",i=mp(r);return Jt(t,i),Ut(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),a}(),dl={lineargradient:function(a){var e=parseInt(a.getAttribute("x1")||"0",10),t=parseInt(a.getAttribute("y1")||"0",10),r=parseInt(a.getAttribute("x2")||"10",10),i=parseInt(a.getAttribute("y2")||"0",10),n=new mi(e,t,r,i);return gl(a,n),yl(a,n),n},radialgradient:function(a){var e=parseInt(a.getAttribute("cx")||"0",10),t=parseInt(a.getAttribute("cy")||"0",10),r=parseInt(a.getAttribute("r")||"0",10),i=new Sp(e,t,r);return gl(a,i),yl(a,i),i}};function gl(a,e){var t=a.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function yl(a,e){for(var t=a.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var n={};tv(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Jt(a,e){a&&a.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),rt(e.__inheritedStyle,a.__inheritedStyle))}function ml(a){for(var e=Ri(a),t=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),n=parseFloat(e[r+1]);t.push([i,n])}return t}function Ut(a,e,t,r,i){var n=e,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};a.nodeType===1&&(Iy(a,e),tv(a,o,s),r||My(a,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=Sl(n,"fill",o.fill,t)),o.stroke!=null&&(n.style.stroke=Sl(n,"stroke",o.stroke,t)),T(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),T(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(n.style[l]=o[l])}),i&&(n.__selfStyle=s),o.lineDash&&(n.style.lineDash=B(Ri(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function wy(a,e){var t=e.__selfStyle;if(t){var r=t.textBaseline,i=r;!r||r==="auto"||r==="baseline"?i="alphabetic":r==="before-edge"||r==="text-before-edge"?i="top":r==="after-edge"||r==="text-after-edge"?i="bottom":(r==="central"||r==="mathematical")&&(i="middle"),a.style.textBaseline=i}var n=e.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),a.style.textAlign=s)}}var Ay=/^url\(\s*#(.*?)\)/;function Sl(a,e,t,r){var i=t&&t.match(Ay);if(i){var n=xp(i[1]);r.push([a,e,n]);return}return t==="none"&&(t=null),t}function Ty(a,e){for(var t=0;t<e.length;t++){var r=e[t];r[0].style[r[1]]=a[r[2]]}}var Dy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ri(a){return a.match(Dy)||[]}var Cy=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Ki=Math.PI/180;function Iy(a,e){var t=a.getAttribute("transform");if(t){t=t.replace(/,/g," ");var r=[],i=null;t.replace(Cy,function(h,v,f){return r.push(v,f),""});for(var n=r.length-1;n>0;n-=2){var o=r[n],s=r[n-1],l=Ri(o);switch(i=i||Er(),s){case"translate":nr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":dh(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ti(i,i,-parseFloat(l[0])*Ki);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Ki);Ns(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Ki);Ns(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var xl=/([^\s:;]+)\s*:\s*([^:;]+)/g;function tv(a,e,t){var r=a.getAttribute("style");if(!!r){xl.lastIndex=0;for(var i;(i=xl.exec(r))!=null;){var n=i[1],o=O(ai,n)?ai[n]:null;o&&(e[o]=i[2]);var s=O(ii,n)?ii[n]:null;s&&(t[s]=i[2])}}}function My(a,e,t){for(var r=0;r<fl.length;r++){var i=fl[r],n=a.getAttribute(i);n!=null&&(e[ai[i]]=n)}for(var r=0;r<pl.length;r++){var i=pl[r],n=a.getAttribute(i);n!=null&&(t[ii[i]]=n)}}function ev(a,e){var t=e.width/a.width,r=e.height/a.height,i=Math.min(t,r);return{scale:i,x:-(a.x+a.width/2)*i+(e.x+e.width/2),y:-(a.y+a.height/2)*i+(e.y+e.height/2)}}function Ly(a,e){var t=new by;return t.parse(a,e)}var Py=ot(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Ry=function(){function a(e,t){this.type="geoSVG",this._usedGraphicMap=ot(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Qh(t)}return a.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Vy(e.named),r=t.regions,i=t.regionsMap;this._regions=r,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},a.prototype._buildGraphic=function(e){var t,r;try{t=e&&Ly(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=t.root,aa(r!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var i=new U;i.add(r),i.isGeoSVGGraphicRoot=!0;var n=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,v=void 0;if(n!=null?(u=0,h=n):s&&(u=s.x,h=s.width),o!=null?(c=0,v=o):s&&(c=s.y,v=s.height),u==null||c==null){var f=r.getBoundingRect();u==null&&(u=f.x,h=f.width),c==null&&(c=f.y,v=f.height)}l=this._boundingRect=new Ct(u,c,h,v)}if(s){var p=ev(s,l);r.scaleX=r.scaleY=p.scale,r.x=p.x,r.y=p.y}i.setClipPath(new _t({shape:l.plain()}));var d=[];return T(t.named,function(g){Py.get(g.svgNodeTagLower)!=null&&(d.push(g),Ey(g.el))}),{root:i,boundingRect:l,named:d}},a.prototype.useGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,r),r)},a.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);r&&(t.removeKey(e),this._freedGraphics.push(r))},a}();function Ey(a){a.silent=!1,a.isGroup&&a.traverse(function(e){e.silent=!1})}function Vy(a){var e=[],t=ot();return T(a,function(r){if(r.namedFrom==null){var i=new _p(r.name,r.el);e.push(i),t.set(r.name,i)}}),{regions:e,regionsMap:t}}var Jn=[126,25],_l="\u5357\u6D77\u8BF8\u5C9B",Ze=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var We=0;We<Ze.length;We++)for(var hr=0;hr<Ze[We].length;hr++)Ze[We][hr][0]/=10.5,Ze[We][hr][1]/=-10.5/.75,Ze[We][hr][0]+=Jn[0],Ze[We][hr][1]+=Jn[1];function ky(a,e){if(a==="china"){for(var t=0;t<e.length;t++)if(e[t].name===_l)return;e.push(new bp(_l,B(Ze,function(r){return{type:"polygon",exterior:r}}),Jn))}}var Ny={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function zy(a,e){if(a==="china"){var t=Ny[e.name];if(t){var r=e.getCenter();r[0]+=t[0]/10.5,r[1]+=-t[1]/(10.5/.75),e.setCenter(r)}}}var Oy=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function By(a,e){a==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:Oy[0]})}var Gy="name",Fy=function(){function a(e,t,r){this.type="geoJSON",this._parsedMap=ot(),this._mapName=e,this._specialAreas=r,this._geoJSON=Wy(t)}return a.prototype.load=function(e,t){t=t||Gy;var r=this._parsedMap.get(t);if(!r){var i=this._parseToRegions(t);r=this._parsedMap.set(t,{regions:i,boundingRect:Hy(i)})}var n=ot(),o=[];return T(r.regions,function(s){var l=s.name;e&&O(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new Ct(0,0,0,0),regionsMap:n}},a.prototype._parseToRegions=function(e){var t=this._mapName,r=this._geoJSON,i;try{i=r?wp(r,e):[]}catch(n){throw new Error(`Invalid geoJson format
`+n.message)}return ky(t,i),T(i,function(n){var o=n.name;zy(t,n),By(t,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),i},a.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},a}();function Hy(a){for(var e,t=0;t<a.length;t++){var r=a[t].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function Wy(a){return tt(a)?typeof JSON<"u"&&JSON.parse?JSON.parse(a):new Function("return ("+a+");")():a}var Or=ot();const Ie={registerMap:function(a,e,t){if(e.svg){var r=new Ry(a,e.svg);Or.set(a,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var r=new Fy(a,i,t);Or.set(a,r)}},getGeoResource:function(a){return Or.get(a)},getMapForUser:function(a){var e=Or.get(a);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(a,e,t){var r=Or.get(a);if(!!r)return r.load(e,t)}};var Go=["rect","circle","line","ellipse","polygon","polyline","path"],$y=ot(Go),Zy=ot(Go.concat(["g"])),Uy=ot(Go.concat(["g"])),rv=Mt();function Ra(a){var e=a.getItemStyle(),t=a.get("areaColor");return t!=null&&(e.fill=t),e}function bl(a){var e=a.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Yy=function(){function a(e){var t=new U;this.uid=gh("ec_map_draw"),this._controller=new Ca(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new U),t.add(this._svgGroup=new U)}return a.prototype.draw=function(e,t,r,i,n){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,h=l.getTransformInfo(),v=h.raw,f=h.roam,p=!u.childAt(0)||n;p?(c.x=f.x,c.y=f.y,c.scaleX=f.scaleX,c.scaleY=f.scaleY,c.dirty()):ht(c,f,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},a.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ot(),r=ot(),i=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(f,p){return p&&(f=p(f)),f&&[f[0]*n.scaleX+n.x,f[1]*n.scaleY+n.y]}function h(f){for(var p=[],d=!u&&l&&l.project,g=0;g<f.length;++g){var y=c(f[g],d);y&&p.push(y)}return p}function v(f){return{shape:{points:h(f)}}}i.removeAll(),T(e.geo.regions,function(f){var p=f.name,d=t.get(p),g=r.get(p)||{},y=g.dataIdx,m=g.regionModel;d||(d=t.set(p,new U),i.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,r.set(p,{dataIdx:y,regionModel:m}));var S=[],x=[];T(f.geometries,function(w){if(w.type==="polygon"){var A=[w.exterior].concat(w.interiors||[]);u&&(A=Il(A,u)),T(A,function(C){S.push(new ce(v(C)))})}else{var D=w.points;u&&(D=Il(D,u,!0)),T(D,function(C){x.push(new xe(v(C)))})}});var b=c(f.getCenter(),l&&l.project);function _(w,A){if(!!w.length){var D=new yh({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});d.add(D),wl(e,D,y,m),Al(e,D,p,m,o,y,b),A&&(bl(D),T(D.states,bl))}}_(S),_(x,!0)}),t.each(function(f,p){var d=r.get(p),g=d.dataIdx,y=d.regionModel;Tl(e,f,p,y,o,g),Dl(e,f,p,y,o),Cl(e,f,p,y,o)},this)},a.prototype._buildSVG=function(e){var t=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=ot(),n=!1;T(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,f=l.getRegionModel(s);if($y.get(c)!=null&&h instanceof Cr&&wl(e,h,v,f),h instanceof Cr&&(h.culling=!0),h.z2EmphasisLift=0,!o.namedFrom&&(Uy.get(c)!=null&&Al(e,h,s,f,l,v,null),Tl(e,h,s,f,l,v),Dl(e,h,s,f,l),Zy.get(c)!=null)){var p=Cl(e,h,s,f,l);p==="self"&&(n=!0);var d=i.get(s)||i.set(s,[]);d.push(h)}},this),this._enableBlurEntireSVG(n,e)},a.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var r=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=r.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){Ir(n);var o=n.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),n.ensureState("emphasis")}})}},a.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},a.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var r=t.coordinateSystem;if(r.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var n=i.get(e);return n?[n]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},a.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},a.prototype._useSVG=function(e){var t=Ie.getGeoResource(e);if(t&&t.type==="geoSVG"){var r=t.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},a.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ie.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},a.prototype._updateController=function(e,t,r){var i=e.coordinateSystem,n=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),n.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}n.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Oo(o,u.dx,u.dy),r.dispatchAction(H(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),n.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Bo(o,u.scale,u.originX,u.originY),r.dispatchAction(H(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),n.setPointerChecker(function(u,c,h){return i.containPoint([c,h])&&!Pi(u,r,e)})},a.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=rv(t).ignore)})},a.prototype._updateMapSelectHandler=function(e,t,r,i){var n=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){n._mouseDownFlag=!0}),t.on("click",function(o){!n._mouseDownFlag||(n._mouseDownFlag=!1)}))},a}();function wl(a,e,t,r){var i=r.getModel("itemStyle"),n=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Ra(i),u=Ra(n),c=Ra(s),h=Ra(o),v=a.data;if(v){var f=v.getItemVisual(t,"style"),p=v.getItemVisual(t,"decal");a.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=Do(p,a.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Ir(e)}function Al(a,e,t,r,i,n,o){var s=a.data,l=a.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),n)),c=s&&s.getItemLayout(n);if(l||u||c&&c.showLabel){var h=l?t:n,v=void 0;(!s||n>=0)&&(v=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;qt(e,Pt(r),{labelFetcher:v,labelDataIndex:h,defaultText:t},f);var p=e.getTextContent();if(p&&(rv(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Tl(a,e,t,r,i,n){a.data?a.data.setItemGraphicEl(n,e):st(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function Dl(a,e,t,r,i){a.data||Co({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function Cl(a,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=r.getModel("emphasis"),o=n.get("focus");return St(e,o,n.get("blurScope"),n.get("disabled")),a.isGeo&&Ap(e,i,t),o}function Il(a,e,t){var r=[],i;function n(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),T(a,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),r}const av=Yy;var Xy=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new av(i);o.add(s.group),s.draw(t,r,i,this,n),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(t,r,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,r,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=n.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,h=u.offset,v=new rr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:_a+1)});if(!h){var f=t.mainSeries.getData(),p=n.getName(l),d=f.indexOfName(p),g=n.getItemModel(l),y=g.getModel("label"),m=f.getItemGraphicEl(d);qt(v,Pt(g),{labelFetcher:{getFormattedLabel:function(S,x){return t.getFormattedLabel(d,x)}},defaultText:p}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(S){Ja(v,S)}}o.add(v)}}})},e.type="map",e}(yt);const Ky=Xy;var qy=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var r=xa(this,{coordDimensions:["value"],encodeDefaulter:Q(mh,this)}),i=ot(),n=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);i.set(l,!0)}var u=Ie.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T(u.regions,function(c){var h=c.name;i.get(h)||n.push(h)}),r.appendValues([],n),r},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var r=this.getData();return r.get(r.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var r=this.getData();return r.getItemModel(r.indexOfName(t))},e.prototype.formatTooltip=function(t,r,i){for(var n=this.getData(),o=this.getRawValue(t),s=n.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var h=l[c].originalData.indexOfName(s),v=n.mapDimension("value");isNaN(l[c].originalData.get(v,h))||u.push(l[c].name)}return Gt("section",{header:u.join(", "),noHeader:!u.length,blocks:[Gt("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var r=t.icon||"roundRect",i=Dt(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Tt);const jy=qy;function Jy(a,e){var t={};return T(a,function(r){r.each(r.mapDimension("value"),function(i,n){var o="ec-"+r.getName(n);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),a[0].map(a[0].mapDimension("value"),function(r,i){for(var n="ec-"+a[0].getName(i),o=0,s=1/0,l=-1/0,u=t[n].length,c=0;c<u;c++)s=Math.min(s,t[n][c]),l=Math.max(l,t[n][c]),o+=t[n][c];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=o/u:h=o,u===0?NaN:h})}function Qy(a){var e={};a.eachSeriesByType("map",function(t){var r=t.getHostGeoModel(),i=r?"o"+r.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),T(e,function(t,r){for(var i=Jy(B(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),n=0;n<t.length;n++)t[n].originalData=t[n].getData();for(var n=0;n<t.length;n++)t[n].seriesGroup=t,t[n].needsDrawMap=n===0&&!t[n].getHostGeoModel(),t[n].setData(i.cloneShallow()),t[n].mainSeries=t[0]})}function tm(a){var e={};a.eachSeriesByType("map",function(t){var r=t.getMapType();if(!(t.getHostGeoModel()||e[r])){var i={};T(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&a.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var h=l.getName(c),v=s.getRegion(h);if(!(!v||isNaN(u))){var f=i[h]||0,p=s.dataToPoint(v.getCenter());i[h]=f+1,l.setItemLayout(c,{point:p,offset:f})}})});var n=t.getData();n.each(function(o){var s=n.getName(o),l=n.getItemLayout(o)||{};l.showLabel=!i[s],n.setItemLayout(o,l)}),e[r]=!0}})}var Ml=$n,em=function(a){E(e,a);function e(t){var r=a.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Ma,r._rawTransformable=new Ma,r.name=t,r}return e.prototype.setBoundingRect=function(t,r,i,n){return this._rect=new Ct(t,r,i,n),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,r,i,n){this._transformTo(t,r,i,n),this._viewRect=new Ct(t,r,i,n)},e.prototype._transformTo=function(t,r,i,n){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ct(t,r,i,n));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,r){!t||(this._center=[G(t[0],r.getWidth()),G(t[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var r=this.zoomLimit;r&&(r.max!=null&&(t=Math.min(r.max,t)),r.min!=null&&(t=Math.max(r.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),r=t.x+t.width/2,i=t.y+t.height/2;return[r,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=$n([],n,t),i=$n([],i,t),r.originX=n[0],r.originY=n[1],r.x=i[0]-n[0],r.y=i[1]-n[1],r.scaleX=r.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,r=this._rawTransformable;r.parent=t,t.updateTransform(),r.updateTransform(),Tp(this.transform||(this.transform=[]),r.transform||Er()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Dp(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,r=this._roamTransformable,i=new Ma;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,r,i){var n=r?this._rawTransform:this.transform;return i=i||[],n?Ml(i,t,n):Vt(i,t)},e.prototype.pointToData=function(t){var r=this.invTransform;return r?Ml([],t,r):[t[0],t[1]]},e.prototype.convertToPixel=function(t,r,i){var n=Ll(r);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,r,i){var n=Ll(r);return n===this?n.pointToData(i):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Ma);function Ll(a){var e=a.seriesModel;return e?e.coordinateSystem:null}const Ia=em;var rm={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},iv=["lng","lat"],nv=function(a){E(e,a);function e(t,r,i){var n=a.call(this,t)||this;n.dimensions=iv,n.type="geo",n._nameCoordMap=ot(),n.map=r;var o=i.projection,s=Ie.load(r,i.nameMap,i.nameProperty),l=Ie.getGeoResource(r);n.resourceType=l?l.type:null;var u=n.regions=s.regions,c=rm[l.type];n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var h;if(o)for(var v=0;v<u.length;v++){var f=u[v].getBoundingRect(o);h=h||f.clone(),h.union(f)}else h=s.boundingRect;return n.setBoundingRect(h.x,h.y,h.width,h.height),n.aspectScale=o?1:kt(i.aspectScale,c.aspectScale),n._invertLongitute=o?!1:c.invertLongitute,n}return e.prototype._transformTo=function(t,r,i,n){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Ct(t,r,i,n));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var r=this.regions,i=0;i<r.length;i++){var n=r[i];if(n.type==="geoJSON"&&n.contain(t))return r[i]}},e.prototype.addGeoCoord=function(t,r){this._nameCoordMap.set(t,r)},e.prototype.getGeoCoord=function(t){var r=this._regionsMap.get(t);return this._nameCoordMap.get(t)||r&&r.getCenter()},e.prototype.dataToPoint=function(t,r,i){if(tt(t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.projectedToPoint(t,r,i)}},e.prototype.pointToData=function(t){var r=this.projection;return r&&(t=r.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return a.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,r,i){return a.prototype.dataToPoint.call(this,t,r,i)},e.prototype.convertToPixel=function(t,r,i){var n=Pl(r);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,r,i){var n=Pl(r);return n===this?n.pointToData(i):null},e}(Ia);ve(nv,Ia);function Pl(a){var e=a.geoModel,t=a.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Se).models[0]||{}).coordinateSystem:null}const Rl=nv;function El(a,e){var t=a.get("boundingCoords");if(t!=null){var r=t[0],i=t[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var n=this.projection;if(n){var o=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(_,w,A,D){for(var C=A-_,I=D-w,M=0;M<=100;M++){var P=M/100,L=n.project([_+C*P,w+I*P]);Cp(r,r,L),Ip(i,i,L)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var h=this.getBoundingRect(),v=a.get("layoutCenter"),f=a.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,S;v&&f&&(m=[G(v[0],p),G(v[1],d)],S=G(f,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(S)&&(y=!0));var x;if(y)x={},g>1?(x.width=S,x.height=S/g):(x.height=S,x.width=S*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var b=a.getBoxLayoutParams();b.aspect=g,x=oe(b,{width:p,height:d})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(a.get("center"),e),this.setZoom(a.get("zoom"))}function am(a,e){T(e.get("geoCoord"),function(t,r){a.addGeoCoord(r,t)})}var im=function(){function a(){this.dimensions=iv}return a.prototype.create=function(e,t){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Rl(l+s,l,H({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=El,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),T(n,function(o,s){var l=B(o,function(c){return c.get("nameMap")}),u=new Rl(s,s,H({nameMap:Io(l)},i(o[0])));u.zoomLimit=Yt.apply(null,B(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=El,u.resize(o[0],t),T(o,function(c){c.coordinateSystem=u,am(u,c)})}),r},a.prototype.getFilledRegions=function(e,t,r,i){for(var n=(e||[]).slice(),o=ot(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=Ie.load(t,r,i);return T(l.regions,function(u){var c=u.name;!o.get(c)&&n.push({name:c})}),n},a}(),nm=new im;const ov=nm;var om=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,i){var n=Ie.getGeoResource(t.map);if(n&&n.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,i),Di(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,r=this.option;r.regions=ov.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=Sh(r.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new Kt(o,t,t.ecModel)),o.selected&&(i[s]=!0)),n},ot()),r.selectedMap||(r.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Kt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,r){var i=this.getRegionModel(t),n=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:t};if(nt(n))return o.status=r,n(o);if(tt(n))return n.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var r=this.option,i=r.selectedMode;if(!!i){i!=="multiple"&&(r.selectedMap=null);var n=r.selectedMap||(r.selectedMap={});n[t]=!0}},e.prototype.unSelect=function(t){var r=this.option.selectedMap;r&&(r[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var r=this.option.selectedMap;return!!(r&&r[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(zt);const sm=om;function Vl(a,e){return a.pointToProjected?a.pointToProjected(e):a.pointToData(e)}function Fo(a,e,t,r){var i=a.getZoom(),n=a.getCenter(),o=e.zoom,s=a.projectedToPoint?a.projectedToPoint(n):a.dataToPoint(n);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,a.setCenter(Vl(a,s),r)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}a.scaleX*=o,a.scaleY*=o;var c=(e.originX-a.x)*(o-1),h=(e.originY-a.y)*(o-1);a.x-=c,a.y-=h,a.updateTransform(),a.setCenter(Vl(a,s),r),a.setZoom(o*i)}return{center:a.getCenter(),zoom:a.getZoom()}}var lm=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,r){this._api=r},e.prototype.render=function(t,r,i,n){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new av(i));var o=this._mapDraw;o.draw(t,r,i,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,r,i)},e.prototype._handleRegionClick=function(t){var r;xh(t.target,function(i){return(r=st(i).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(t,r,i){var n=this;this._mapDraw.group.traverse(function(o){var s=st(o).eventData;if(s)return n._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Ht);const um=lm;function cm(a,e,t){Ie.registerMap(a,e,t)}function sv(a){a.registerCoordinateSystem("geo",ov),a.registerComponentModel(sm),a.registerComponentView(um),a.registerImpl("registerMap",cm),a.registerImpl("getMap",function(t){return Ie.getMapForUser(t)});function e(t,r){r.update="geo:updateSelectStatus",a.registerAction(r,function(i,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:i},function(l){l[t](i.name);var u=l.coordinateSystem;T(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var c=[];T(o,function(h,v){o[v]&&c.push(v)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),a.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,r,i){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Fo(s,t,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),n==="series"&&T(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function hm(a){K(sv),a.registerChartView(Ky),a.registerSeriesModel(jy),a.registerLayout(tm),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,Qy),Mp("map",a.registerAction)}function vm(a){var e=a;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],r,i;r=t.pop();)if(i=r.children,r.isExpand&&i.length)for(var n=i.length,o=n-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function fm(a,e){var t=a.isExpand?a.children:[],r=a.parentNode.children,i=a.hierNode.i?r[a.hierNode.i-1]:null;if(t.length){gm(a);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(a.hierNode.prelim=i.hierNode.prelim+e(a,i),a.hierNode.modifier=a.hierNode.prelim-n):a.hierNode.prelim=n}else i&&(a.hierNode.prelim=i.hierNode.prelim+e(a,i));a.parentNode.hierNode.defaultAncestor=ym(a,i,a.parentNode.hierNode.defaultAncestor||r[0],e)}function pm(a){var e=a.hierNode.prelim+a.parentNode.hierNode.modifier;a.setLayout({x:e},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function kl(a){return arguments.length?a:xm}function Yr(a,e){return a-=Math.PI/2,{x:e*Math.cos(a),y:e*Math.sin(a)}}function dm(a,e){return oe(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gm(a){for(var e=a.children,t=e.length,r=0,i=0;--t>=0;){var n=e[t];n.hierNode.prelim+=r,n.hierNode.modifier+=r,i+=n.hierNode.change,r+=n.hierNode.shift+i}}function ym(a,e,t,r){if(e){for(var i=a,n=a,o=n.parentNode.children[0],s=e,l=i.hierNode.modifier,u=n.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;s=qi(s),n=ji(n),s&&n;){i=qi(i),o=ji(o),i.hierNode.ancestor=a;var v=s.hierNode.prelim+h-n.hierNode.prelim-u+r(s,n);v>0&&(Sm(mm(s,a,t),a,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!qi(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),n&&!ji(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-c,t=a)}return t}function qi(a){var e=a.children;return e.length&&a.isExpand?e[e.length-1]:a.hierNode.thread}function ji(a){var e=a.children;return e.length&&a.isExpand?e[0]:a.hierNode.thread}function mm(a,e,t){return a.hierNode.ancestor.parentNode===e.parentNode?a.hierNode.ancestor:t}function Sm(a,e,t){var r=t/(e.hierNode.i-a.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,a.hierNode.change+=r}function xm(a,e){return a.parentNode===e.parentNode?1:2}var _m=function(){function a(){this.parentPoint=[],this.childPoints=[]}return a}(),bm=function(a){E(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _m},e.prototype.buildPath=function(t,r){var i=r.childPoints,n=i.length,o=r.parentPoint,s=i[0],l=i[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,v=G(r.forkPosition,1),f=[];f[c]=o[c],f[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(f[0],f[1]),t.moveTo(s[0],s[1]),f[c]=s[c],t.lineTo(f[0],f[1]),f[c]=l[c],t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]);for(var p=1;p<n-1;p++){var d=i[p];t.moveTo(d[0],d[1]),f[c]=d[c],t.lineTo(f[0],f[1])}},e}(Ft),wm=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new U,t}return e.prototype.init=function(t,r){this._controller=new Ca(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,r,i){var n=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,i),this._updateController(t,r,i);var u=this._data;n.diff(u).add(function(c){Nl(n,c)&&zl(n,c,null,s,t)}).update(function(c,h){var v=u.getItemGraphicEl(h);if(!Nl(n,c)){v&&Bl(u,h,v,s,t);return}zl(n,c,v,s,t)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&Bl(u,c,h,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(c,h){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=n},e.prototype._updateViewCoordSys=function(t,r){var i=t.getData(),n=[];i.each(function(h){var v=i.getItemLayout(h);v&&!isNaN(v.x)&&!isNaN(v.y)&&n.push([+v.x,+v.y])});var o=[],s=[];_h(n,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new Ia;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(t.get("center"),r),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,r,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(c,h)&&!Pi(u,i,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Oo(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Bo(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(t),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var r=t.getData(),i=this._getNodeGlobalScale(t);r.eachItemGraphicEl(function(n,o){n.setSymbolScale(i)})},e.prototype._getNodeGlobalScale=function(t){var r=t.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,n=r.scaleX||1,o=r.getZoom(),s=(o-1)*i+1;return s/n},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(yt);function Nl(a,e){var t=a.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function zl(a,e,t,r,i){var n=!t,o=a.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=a.tree.root,h=o.parentNode===c?o:o.parentNode||o,v=a.getItemGraphicEl(h.dataIndex),f=h.getLayout(),p=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:f,d=o.getLayout();n?(t=new Aa(a,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(a,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,r.add(t),a.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,ht(t,{x:d.x,y:d.y},i);var g=t.getSymbolPath();if(i.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),S=y.children.length,x=void 0,b=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var _={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};x=Math.atan2(_.y-m.y,_.x-m.x),x<0&&(x=Math.PI*2+x),b=_.x<m.x,b&&(x=x-Math.PI)}else x=Math.atan2(d.y-m.y,d.x-m.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=d.x<m.x,b&&(x=x-Math.PI)):(b=d.x>m.x,b||(x=x-Math.PI));var w=b?"left":"right",A=s.getModel("label"),D=A.get("rotate"),C=D*(Math.PI/180),I=g.getTextContent();I&&(g.setTextConfig({position:A.get("position")||w,rotation:D==null?-x:C,origin:"center"}),I.setStyle("verticalAlign","middle"))}var M=s.get(["emphasis","focus"]),P=M==="relative"?Zn(o.getAncestorsIndices(),o.getDescendantIndices()):M==="ancestor"?o.getAncestorsIndices():M==="descendant"?o.getDescendantIndices():null;P&&(st(t).focus=P),Am(i,o,c,t,p,f,d,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var R=o.parentNode&&a.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===Lp||Ja(t.__edge,L)}})}function Am(a,e,t,r,i,n,o,s){var l=e.getModel(),u=a.get("edgeShape"),c=a.get("layout"),h=a.getOrient(),v=a.get(["lineStyle","curveness"]),f=a.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=r.__edge=new bh({shape:Qn(c,h,v,i,i)})),ht(d,{shape:Qn(c,h,v,n,o)},a));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var S=g[m].getLayout();y.push([S.x,S.y])}d||(d=r.__edge=new bm({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:f}})),ht(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},a)}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle(rt({strokeNoScale:!0,fill:null},p)),Nt(d,l,"lineStyle"),Ir(d),s.add(d))}function Ol(a,e,t,r,i){var n=e.tree.root,o=lv(n,a),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(a.dataIndex);if(!!u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,v=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),f=r.get("edgeShape"),p=r.get("layout"),d=r.get("orient"),g=r.get(["lineStyle","curveness"]);v&&(f==="curve"?Tr(v,{shape:Qn(p,d,g,l,l),style:{opacity:0}},r,{cb:function(){t.remove(v)},removeOpt:i}):f==="polyline"&&r.get("layout")==="orthogonal"&&Tr(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){t.remove(v)},removeOpt:i}))}}function lv(a,e){for(var t=e.parentNode===a?e:e.parentNode||e,r;r=t.getLayout(),r==null;)t=t.parentNode===a?t:t.parentNode||t;return{source:t,sourceLayout:r}}function Bl(a,e,t,r,i){var n=a.tree.getNodeByDataIndex(e),o=a.tree.root,s=lv(o,n).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Tr(t,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(t),a.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,a.hostModel,{fadeLabel:!0,animation:l}),n.children.forEach(function(u){Ol(u,a,r,i,l)}),Ol(n,a,r,i,l)}function Qn(a,e,t,r,i){var n,o,s,l,u,c,h,v;if(a==="radial"){u=r.rawX,h=r.rawY,c=i.rawX,v=i.rawY;var f=Yr(u,h),p=Yr(u,h+(v-h)*t),d=Yr(c,v+(h-v)*t),g=Yr(c,v);return{x1:f.x||0,y1:f.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=r.x,h=r.y,c=i.x,v=i.y,(e==="LR"||e==="RL")&&(n=u+(c-u)*t,o=h,s=c+(u-c)*t,l=v),(e==="TB"||e==="BT")&&(n=u,o=h+(v-h)*t,s=c,l=v+(h-v)*t);return{x1:u,y1:h,x2:c,y2:v,cpx1:n,cpy1:o,cpx2:s,cpy2:l}}const Tm=wm;var ae=Mt();function uv(a){var e=a.mainData,t=a.datas;t||(t={main:e},a.datasAttr={main:"data"}),a.datas=a.mainData=null,cv(e,t,a),T(t,function(r){T(e.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,Q(Dm,a))})}),e.wrapMethod("cloneShallow",Q(Im,a)),T(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,Q(Cm,a))}),aa(t[e.dataType]===e)}function Dm(a,e){if(Pm(this)){var t=H({},ae(this).datas);t[this.dataType]=e,cv(e,t,a)}else Ho(e,this.dataType,ae(this).mainData,a);return e}function Cm(a,e){return a.struct&&a.struct.update(),e}function Im(a,e){return T(ae(e).datas,function(t,r){t!==e&&Ho(t.cloneShallow(),r,e,a)}),e}function Mm(a){var e=ae(this).mainData;return a==null||e==null?e:ae(e).datas[a]}function Lm(){var a=ae(this).mainData;return a==null?[{data:a}]:B(wt(ae(a).datas),function(e){return{type:e,data:ae(a).datas[e]}})}function Pm(a){return ae(a).mainData===a}function cv(a,e,t){ae(a).datas={},T(e,function(r,i){Ho(r,i,a,t)})}function Ho(a,e,t,r){ae(t).datas[e]=a,ae(a).mainData=t,a.dataType=e,r.struct&&(a[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=a),a.getLinkedData=Mm,a.getLinkedDataAll=Lm}var Rm=function(){function a(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return a.prototype.isRemoved=function(){return this.dataIndex<0},a.prototype.eachNode=function(e,t,r){nt(e)&&(r=t,t=e,e=null),e=e||{},tt(e)&&(e={order:e});var i=e.order||"preorder",n=this[e.attr||"children"],o;i==="preorder"&&(o=t.call(r,this));for(var s=0;!o&&s<n.length;s++)n[s].eachNode(e,t,r);i==="postorder"&&t.call(r,this)},a.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},a.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,i=r.length;t<i;t++){var n=r[t].getNodeById(e);if(n)return n}},a.prototype.contains=function(e){if(e===this)return!0;for(var t=0,r=this.children,i=r.length;t<i;t++){var n=r[t].contains(e);if(n)return n}},a.prototype.getAncestors=function(e){for(var t=[],r=e?this:this.parentNode;r;)t.push(r),r=r.parentNode;return t.reverse(),t},a.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},a.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},a.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},a.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},a.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},a.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},a.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},a}(),Em=function(){function a(e){this.type="tree",this._nodes=[],this.hostModel=e}return a.prototype.eachNode=function(e,t,r){this.root.eachNode(e,t,r)},a.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},a.prototype.getNodeById=function(e){return this.root.getNodeById(e)},a.prototype.update=function(){for(var e=this.data,t=this._nodes,r=0,i=t.length;r<i;r++)t[r].dataIndex=-1;for(var r=0,i=e.count();r<i;r++)t[e.getRawIndex(r)].dataIndex=r},a.prototype.clearLayouts=function(){this.data.clearItemLayouts()},a.createTree=function(e,t,r){var i=new a(t),n=[],o=1;s(e);function s(c,h){var v=c.value;o=Math.max(o,$(v)?v.length:1),n.push(c);var f=new Rm(we(c.name,""),i);h?Vm(f,h):i.root=f,i._nodes.push(f);var p=c.children;if(p)for(var d=0;d<p.length;d++)s(p[d],f)}i.root.updateDepthAndHeight(0);var l=Mo(n,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Xt(l,t);return u.initData(n),r&&r(u),uv({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},a}();function Vm(a,e){var t=e.children;a.parentNode!==e&&(t.push(a),a.parentNode=e)}const Wo=Em;function oa(a,e,t){if(a&&bt(e,a.type)>=0){var r=t.getData().tree.root,i=a.targetNode;if(tt(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var n=a.targetNodeId;if(n!=null&&(i=r.getNodeById(n)))return{node:i}}}function hv(a){for(var e=[];a;)a=a.parentNode,a&&e.push(a);return e.reverse()}function $o(a,e){var t=hv(a);return bt(t,e)>=0}function Ei(a,e){for(var t=[];a;){var r=a.dataIndex;t.push({name:a.name,dataIndex:r,value:e.getRawValue(r)}),a=a.parentNode}return t.reverse(),t}var km=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},i=t.leaves||{},n=new Kt(i,this,this.ecModel),o=Wo.createTree(r,this,s);function s(h){h.wrapMethod("getItemModel",function(v,f){var p=o.getNodeByDataIndex(f);return p&&p.children.length&&p.isExpand||(v.parentModel=n),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Gt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Ei(i,this),r.collapsed=!i.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Tt);const Nm=km;function zm(a,e,t){for(var r=[a],i=[],n;n=r.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;n=i.pop();)e(n,t)}function Br(a,e){for(var t=[a],r;r=t.pop();)if(e(r),r.isExpand){var i=r.children;if(i.length)for(var n=i.length-1;n>=0;n--)t.push(i[n])}}function Om(a,e){a.eachSeriesByType("tree",function(t){Bm(t,e)})}function Bm(a,e){var t=dm(a,e);a.layoutInfo=t;var r=a.get("layout"),i=0,n=0,o=null;r==="radial"?(i=2*Math.PI,n=Math.min(t.height,t.width)/2,o=kl(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=t.width,n=t.height,o=kl());var s=a.getData().tree.root,l=s.children[0];if(l){vm(s),zm(l,fm,o),s.hierNode.modifier=-l.hierNode.prelim,Br(l,pm);var u=l,c=l,h=l;Br(l,function(S){var x=S.getLayout().x;x<u.getLayout().x&&(u=S),x>c.getLayout().x&&(c=S),S.depth>h.depth&&(h=S)});var v=u===c?1:o(u,c)/2,f=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(r==="radial")p=i/(c.getLayout().x+v+f),d=n/(h.depth-1||1),Br(l,function(S){g=(S.getLayout().x+f)*p,y=(S.depth-1)*d;var x=Yr(g,y);S.setLayout({x:x.x,y:x.y,rawX:g,rawY:y},!0)});else{var m=a.getOrient();m==="RL"||m==="LR"?(d=n/(c.getLayout().x+v+f),p=i/(h.depth-1||1),Br(l,function(S){y=(S.getLayout().x+f)*d,g=m==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=i/(c.getLayout().x+v+f),d=n/(h.depth-1||1),Br(l,function(S){g=(S.getLayout().x+f)*p,y=m==="TB"?(S.depth-1)*d:n-(S.depth-1)*d,S.setLayout({x:g,y},!0)}))}}}function Gm(a){a.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");H(s,o)})})}function Fm(a){a.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,n=r.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),a.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var n=i.coordinateSystem,o=Fo(n,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Hm(a){a.registerChartView(Tm),a.registerSeriesModel(Nm),a.registerLayout(Om),a.registerVisual(Gm),Fm(a)}var Gl=["treemapZoomToNode","treemapRender","treemapMove"];function Wm(a){for(var e=0;e<Gl.length;e++)a.registerAction({type:Gl[e],update:"updateView"},ar);a.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"treemap",query:t},i);function i(n,o){var s=["treemapZoomToNode","treemapRootToNode"],l=oa(t,s,n);if(l){var u=n.getViewRoot();u&&(t.direction=$o(u,l.node)?"rollUp":"drillDown"),n.resetViewRoot(l.node)}}})}function vv(a){var e=a.getData(),t=e.tree,r={};t.eachNode(function(i){for(var n=i;n&&n.depth>1;)n=n.parentNode;var o=Un(a.ecModel,n.name||n.dataIndex+"",r);i.setVisual("decal",o)})}var $m=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};fv(i);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Kt({itemStyle:o},this,r);n=t.levels=Zm(n,r);var l=B(n||[],function(h){return new Kt(h,s,r)},this),u=Wo.createTree(i,this,c);function c(h){h.wrapMethod("getItemModel",function(v,f){var p=u.getNodeByDataIndex(f),d=p?l[p.depth]:null;return v.parentModel=d||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return Gt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=Ei(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ot(),this._idIndexMapCount=0);var i=r.get(t);return i==null&&r.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){vv(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Tt);function fv(a){var e=0;T(a.children,function(r){fv(r);var i=r.value;$(i)&&(i=i[0]),e+=i});var t=a.value;$(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),$(a.value)?a.value[0]=t:a.value=t}function Zm(a,e){var t=Ce(e.get("color")),r=Ce(e.get(["aria","decal","decals"]));if(!!t){a=a||[];var i,n;T(a,function(s){var l=new Kt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(n=!0)});var o=a[0]||(a[0]={});return i||(o.color=t.slice()),!n&&r&&(o.decal=r.slice()),a}}const Um=$m;var Ym=8,Fl=8,Ji=5,Xm=function(){function a(e){this.group=new U,e.add(this.group)}return a.prototype.render=function(e,t,r,i){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!r)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),h={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,h,u),this._renderContent(e,h,s,l,u,c,i),Lo(o,h.pos,h.box)}},a.prototype._prepare=function(e,t,r){for(var i=e;i;i=i.parentNode){var n=we(i.getModel().get("name"),""),o=r.getTextRect(n),s=Math.max(o.width+Ym*2,t.emptyItemWidth);t.totalWidth+=s+Fl,t.renderList.push({node:i,text:n,width:s})}},a.prototype._renderContent=function(e,t,r,i,n,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),h=Pp(t.pos,t.box),v=t.totalWidth,f=t.renderList,p=i.getModel("itemStyle").getItemStyle(),d=f.length-1;d>=0;d--){var g=f[d],y=g.node,m=g.width,S=g.text;v>h.width&&(v-=m-u,m=u,S=null);var x=new ce({shape:{points:Km(l,0,m,c,d===f.length-1,d===0)},style:rt(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new pt({style:xt(n,{text:S})}),textConfig:{position:"inside"},z2:_a*1e4,onclick:Q(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=xt(o,{text:S}),x.ensureState("emphasis").style=p,St(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),qm(x,e,y),l+=m+Fl}},a.prototype.remove=function(){this.group.removeAll()},a}();function Km(a,e,t,r,i,n){var o=[[i?a:a-Ji,e],[a+t,e],[a+t,e+r],[i?a:a-Ji,e+r]];return!n&&o.splice(2,0,[a+t+Ji,e+r/2]),!i&&o.push([a,e+r/2]),o}function qm(a,e,t){st(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Ei(t,e)}}const jm=Xm;var Jm=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(e,t,r,i,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:i,easing:n}),!0)},a.prototype.finished=function(e){return this._finishedCallback=e,this},a.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,n=this._storage.length;i<n;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},a}();function Qm(){return new Jm}var to=U,Hl=_t,Wl=3,$l="label",Zl="upperLabel",t0=_a*10,e0=_a*2,r0=_a*3,Ue=wh([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Ul=function(a){var e=Ue(a);return e.stroke=e.fill=e.lineWidth=null,e},ni=Mt(),a0=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Gr(),t}return e.prototype.render=function(t,r,i,n){var o=r.findComponents({mainType:"series",subType:"treemap",query:n});if(!(bt(o,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=oa(n,s,t),u=n&&n.type,c=t.layoutInfo,h=!this._oldTree,v=this._storage,f=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(c),d=t.get("animation"),g=this._doRender(p,t,f);d&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,t,f):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(t,i,l)}},e.prototype._giveContainerGroup=function(t){var r=this._containerGroup;return r||(r=this._containerGroup=new to,this._initEvents(r),this.group.add(r)),r.x=t.x,r.y=t.y,r},e.prototype._doRender=function(t,r,i){var n=r.getData().tree,o=this._oldTree,s=Gr(),l=Gr(),u=this._storage,c=[];function h(g,y,m,S){return i0(r,l,u,i,s,c,g,y,m,S)}f(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var v=p(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:v,renderFinally:d};function f(g,y,m,S,x){S?(y=g,T(g,function(w,A){!w.isRemoved()&&_(A,A)})):new Vr(y,g,b,b).add(_).update(_).remove(Q(_,null)).execute();function b(w){return w.getId()}function _(w,A){var D=w!=null?g[w]:null,C=A!=null?y[A]:null,I=h(D,C,m,x);I&&f(D&&D.viewChildren||[],C&&C.viewChildren||[],I,S,x+1)}}function p(g){var y=Gr();return g&&T(g,function(m,S){var x=y[S];T(m,function(b){b&&(x.push(b),ni(b).willDelete=!0)})}),y}function d(){T(v,function(g){T(g,function(y){y.parent&&y.parent.remove(y)})}),T(c,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,r,i,n){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(nt(o)?0:o)||0,u=(nt(s)?null:s)||"cubicOut",c=Qm();T(r.willDeleteEls,function(h,v){T(h,function(f,p){if(!f.invisible){var d=f.parent,g,y=ni(d);if(n&&n.direction==="drillDown")g=d===n.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,S=0;y.willDelete||(m=y.nodeWidth/2,S=y.nodeHeight/2),g=v==="nodeGroup"?{x:m,y:S,style:{opacity:0}}:{shape:{x:m,y:S,width:0,height:0},style:{opacity:0}}}g&&c.add(f,g,l,0,u)}})}),T(this._storage,function(h,v){T(h,function(f,p){var d=r.lastsForAnimation[v][p],g={};!d||(f instanceof U?d.oldX!=null&&(g.x=f.x,g.y=f.y,f.x=d.oldX,f.y=d.oldY):(d.oldShape&&(g.shape=H({},f.shape),f.setShape(d.oldShape)),d.fadein?(f.setStyle("opacity",0),g.style={opacity:1}):f.style.opacity!==1&&(g.style={opacity:1})),c.add(f,g,l,0,u))})},this),this._state="animating",c.finished(F(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(t){var r=this._controller;r||(r=this._controller=new Ca(t.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",F(this._onPan,this)),r.on("zoom",F(this._onZoom,this)));var i=new Ct(0,0,t.getWidth(),t.getHeight());r.setPointerChecker(function(n,o,s){return i.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>Wl||Math.abs(t.dy)>Wl)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var r=t.originX,i=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new Ct(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,i-=l.y;var u=Er();nr(u,u,[-r,-i]),dh(u,u,[t.scale,t.scale]),nr(u,u,[r,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(i){if(r._state==="ready"){var n=r.seriesModel.get("nodeClick",!0);if(!!n){var o=r.findTarget(i.offsetX,i.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(n==="zoomToNode")r._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Ah(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,i){var n=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new jm(this.group))).render(t,r,i.node,function(o){n._state!=="animating"&&($o(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gr(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(yt);function Gr(){return{nodeGroup:[],background:[],content:[]}}function i0(a,e,t,r,i,n,o,s,l,u){if(!o)return;var c=o.getLayout(),h=a.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var f=c.width,p=c.height,d=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),S=o.viewChildren,x=c.upperHeight,b=S&&S.length,_=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),A=v.getModel(["blur","itemStyle"]),D=v.getModel(["select","itemStyle"]),C=_.get("borderRadius")||0,I=J("nodeGroup",to);if(!I)return;if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),ni(I).nodeWidth=f,ni(I).nodeHeight=p,c.isAboveViewRoot)return I;var M=J("background",Hl,u,e0);M&&z(I,M,b&&c.upperLabelHeight);var P=v.getModel("emphasis"),L=P.get("focus"),R=P.get("blurScope"),V=P.get("disabled"),k=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(b)zs(I)&&Zr(I,!1),M&&(Zr(M,!V),h.setItemGraphicEl(o.dataIndex,M),Os(M,k,R));else{var N=J("content",Hl,u,r0);N&&W(I,N),M.disableMorphing=!0,M&&zs(M)&&Zr(M,!1),Zr(I,!V),h.setItemGraphicEl(o.dataIndex,I),Os(I,k,R)}return I;function z(et,X,ct){var lt=st(X);if(lt.dataIndex=o.dataIndex,lt.seriesIndex=a.seriesIndex,X.setShape({x:0,y:0,width:f,height:p,r:C}),g)Z(X);else{X.invisible=!1;var vt=o.getVisual("style"),Lt=vt.stroke,Et=Ul(_);Et.fill=Lt;var gt=Ue(w);gt.fill=w.get("borderColor");var Ot=Ue(A);Ot.fill=A.get("borderColor");var Bt=Ue(D);if(Bt.fill=D.get("borderColor"),ct){var fe=f-2*d;j(X,Lt,vt.opacity,{x:d,y:0,width:fe,height:x})}else X.removeTextContent();X.setStyle(Et),X.ensureState("emphasis").style=gt,X.ensureState("blur").style=Ot,X.ensureState("select").style=Bt,Ir(X)}et.add(X)}function W(et,X){var ct=st(X);ct.dataIndex=o.dataIndex,ct.seriesIndex=a.seriesIndex;var lt=Math.max(f-2*d,0),vt=Math.max(p-2*d,0);if(X.culling=!0,X.setShape({x:d,y:d,width:lt,height:vt,r:C}),g)Z(X);else{X.invisible=!1;var Lt=o.getVisual("style"),Et=Lt.fill,gt=Ul(_);gt.fill=Et,gt.decal=Lt.decal;var Ot=Ue(w),Bt=Ue(A),fe=Ue(D);j(X,Et,Lt.opacity,null),X.setStyle(gt),X.ensureState("emphasis").style=Ot,X.ensureState("blur").style=Bt,X.ensureState("select").style=fe,Ir(X)}et.add(X)}function Z(et){!et.invisible&&n.push(et)}function j(et,X,ct,lt){var vt=v.getModel(lt?Zl:$l),Lt=we(v.get("name"),null),Et=vt.getShallow("show");qt(et,Pt(v,lt?Zl:$l),{defaultText:Et?Lt:null,inheritColor:X,defaultOpacity:ct,labelFetcher:a,labelDataIndex:o.dataIndex});var gt=et.getTextContent();if(!!gt){var Ot=gt.style,Bt=Rp(Ot.padding||0);lt&&(et.setTextConfig({layoutRect:lt}),gt.disableLabelLayout=!0),gt.beforeUpdate=function(){var Fe=Math.max((lt?lt.width:et.shape.width)-Bt[1]-Bt[3],0),He=Math.max((lt?lt.height:et.shape.height)-Bt[0]-Bt[2],0);(Ot.width!==Fe||Ot.height!==He)&&gt.setStyle({width:Fe,height:He})},Ot.truncateMinChar=2,Ot.lineOverflow="truncate",q(Ot,lt,c);var fe=gt.getState("emphasis");q(fe?fe.style:null,lt,c)}}function q(et,X,ct){var lt=et?et.text:null;if(!X&&ct.isLeafRoot&&lt!=null){var vt=a.get("drillDownIcon",!0);et.text=vt?vt+" "+lt:lt}}function J(et,X,ct,lt){var vt=m!=null&&t[et][m],Lt=i[et];return vt?(t[et][m]=null,dt(Lt,vt)):g||(vt=new X,vt instanceof Cr&&(vt.z2=n0(ct,lt)),ut(Lt,vt)),e[et][y]=vt}function dt(et,X){var ct=et[y]={};X instanceof to?(ct.oldX=X.x,ct.oldY=X.y):ct.oldShape=H({},X.shape)}function ut(et,X){var ct=et[y]={},lt=o.parentNode,vt=X instanceof U;if(lt&&(!r||r.direction==="drillDown")){var Lt=0,Et=0,gt=i.background[lt.getRawIndex()];!r&&gt&&gt.oldShape&&(Lt=gt.oldShape.width,Et=gt.oldShape.height),vt?(ct.oldX=0,ct.oldY=Et):ct.oldShape={x:Lt,y:Et,width:0,height:0}}ct.fadein=!vt}}function n0(a,e){return a*t0+e}const o0=a0;var sa=T,s0=Rt,oi=-1,Zo=function(){function a(e){var t=e.mappingMethod,r=e.type,i=this.option=at(e);this.type=r,this.mappingMethod=t,this._normalizeData=c0[t];var n=a.visualHandlers[r];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(Qi(i),l0(i)):t==="category"?i.categories?u0(i):Qi(i,!0):(aa(t!=="linear"||i.dataExtent),Qi(i))}return a.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},a.prototype.getNormalizer=function(){return F(this._normalizeData,this)},a.listVisualTypes=function(){return wt(a.visualHandlers)},a.isValidType=function(e){return a.visualHandlers.hasOwnProperty(e)},a.eachVisual=function(e,t,r){Rt(e)?T(e,t,r):t.call(r,e)},a.mapVisual=function(e,t,r){var i,n=$(e)?[]:Rt(e)?{}:(i=!0,null);return a.eachVisual(e,function(o,s){var l=t.call(r,o,s);i?n=l:n[s]=l}),n},a.retrieveVisuals=function(e){var t={},r;return e&&sa(a.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],r=!0)}),r?t:null},a.prepareVisualTypes=function(e){if($(e))e=e.slice();else if(s0(e)){var t=[];sa(e,function(r,i){t.push(i)}),e=t}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},a.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},a.findPieceIndex=function(e,t,r){for(var i,n=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||tt(l)&&l===e+"")return o;r&&v(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(Va(h[1],e,c[1]))return o}else if(c[1]===1/0){if(Va(h[0],c[0],e))return o}else if(Va(h[0],c[0],e)&&Va(h[1],e,c[1]))return o;r&&v(c[0],o),r&&v(c[1],o)}}if(r)return e===1/0?t.length-1:e===-1/0?0:i;function v(f,p){var d=Math.abs(f-e);d<n&&(n=d,i=p)}},a.visualHandlers={color:{applyVisual:Fr("color"),getColorMapper:function(){var e=this.option;return F(e.mappingMethod==="category"?function(t,r){return!r&&(t=this._normalizeData(t)),Xr.call(this,t)}:function(t,r,i){var n=!!i;return!r&&(t=this._normalizeData(t)),i=Bi(t,e.parsedVisual,i),n?i:Gi(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Gi(Bi(e,this.option.parsedVisual),"rgba")},category:Xr,piecewise:function(e,t){var r=ro.call(this,t);return r==null&&(r=Gi(Bi(e,this.option.parsedVisual),"rgba")),r},fixed:Ye}},colorHue:Ea(function(e,t){return Jr(e,t)}),colorSaturation:Ea(function(e,t){return Jr(e,null,t)}),colorLightness:Ea(function(e,t){return Jr(e,null,null,t)}),colorAlpha:Ea(function(e,t){return Qa(e,t)}),decal:{applyVisual:Fr("decal"),_normalizedToVisual:{linear:null,category:Xr,piecewise:null,fixed:null}},opacity:{applyVisual:Fr("opacity"),_normalizedToVisual:eo([0,1])},liftZ:{applyVisual:Fr("liftZ"),_normalizedToVisual:{linear:Ye,category:Ye,piecewise:Ye,fixed:Ye}},symbol:{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("symbol",i)},_normalizedToVisual:{linear:Yl,category:Xr,piecewise:function(e,t){var r=ro.call(this,t);return r==null&&(r=Yl.call(this,e)),r},fixed:Ye}},symbolSize:{applyVisual:Fr("symbolSize"),_normalizedToVisual:eo([0,1])}},a}();function l0(a){var e=a.pieceList;a.hasSpecialVisual=!1,T(e,function(t,r){t.originIndex=r,t.visual!=null&&(a.hasSpecialVisual=!0)})}function u0(a){var e=a.categories,t=a.categoryMap={},r=a.visual;if(sa(e,function(o,s){t[o]=s}),!$(r)){var i=[];Rt(r)?sa(r,function(o,s){var l=t[s];i[l!=null?l:oi]=o}):i[oi]=r,r=pv(a,i)}for(var n=e.length-1;n>=0;n--)r[n]==null&&(delete t[e[n]],e.pop())}function Qi(a,e){var t=a.visual,r=[];Rt(t)?sa(t,function(n){r.push(n)}):t!=null&&r.push(t);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(a.type)&&(r[1]=r[0]),pv(a,r)}function Ea(a){return{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);r("color",a(t("color"),i))},_normalizedToVisual:eo([0,1])}}function Yl(a){var e=this.option.visual;return e[Math.round(it(a,[0,1],[0,e.length-1],!0))]||{}}function Fr(a){return function(e,t,r){r(a,this.mapValueToVisual(e))}}function Xr(a){var e=this.option.visual;return e[this.option.loop&&a!==oi?a%e.length:a]}function Ye(){return this.option.visual[0]}function eo(a){return{linear:function(e){return it(e,a,this.option.visual,!0)},category:Xr,piecewise:function(e,t){var r=ro.call(this,t);return r==null&&(r=it(e,a,this.option.visual,!0)),r},fixed:Ye}}function ro(a){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=Zo.findPieceIndex(a,t),i=t[r];if(i&&i.visual)return i.visual[this.type]}}function pv(a,e){return a.visual=e,a.type==="color"&&(a.parsedVisual=B(e,function(t){var r=Ep(t);return r||[0,0,0,1]})),e}var c0={linear:function(a){return it(a,this.option.dataExtent,[0,1],!0)},piecewise:function(a){var e=this.option.pieceList,t=Zo.findPieceIndex(a,e,!0);if(t!=null)return it(t,[0,e.length-1],[0,1],!0)},category:function(a){var e=this.option.categories?this.option.categoryMap[a]:a;return e==null?oi:e},fixed:ar};function Va(a,e,t){return a?e<=t:e<t}const It=Zo;var h0="itemStyle",dv=Mt();const v0={seriesType:"treemap",reset:function(a){var e=a.getData().tree,t=e.root;t.isRemoved()||gv(t,{},a.getViewRoot().getAncestors(),a)}};function gv(a,e,t,r){var i=a.getModel(),n=a.getLayout(),o=a.hostTree.data;if(!(!n||n.invisible||!n.isInView)){var s=i.getModel(h0),l=f0(s,e,r),u=o.ensureUniqueItemVisual(a.dataIndex,"style"),c=s.get("borderColor"),h=s.get("borderColorSaturation"),v;h!=null&&(v=Xl(l),c=p0(h,v)),u.stroke=c;var f=a.viewChildren;if(!f||!f.length)v=Xl(l),u.fill=v;else{var p=d0(a,i,n,s,l,f);T(f,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=g0(i,l,d,g,p,r);gv(d,y,t,r)}})}}}function f0(a,e,t){var r=H({},e),i=t.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(n){i[n]=e[n];var o=a.get(n);i[n]=null,o!=null&&(r[n]=o)}),r}function Xl(a){var e=tn(a,"color");if(e){var t=tn(a,"colorAlpha"),r=tn(a,"colorSaturation");return r&&(e=Jr(e,null,null,r)),t&&(e=Qa(e,t)),e}}function p0(a,e){return e!=null?Jr(e,null,null,a):null}function tn(a,e){var t=a[e];if(t!=null&&t!=="none")return t}function d0(a,e,t,r,i,n){if(!(!n||!n.length)){var o=en(e,"color")||i.color!=null&&i.color!=="none"&&(en(e,"colorAlpha")||en(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new It(h);return dv(v).drColorMappingBy=c,v}}}function en(a,e){var t=a.get(e);return $(t)&&t.length?{name:e,range:t}:null}function g0(a,e,t,r,i,n){var o=H({},e);if(i){var s=i.type,l=s==="color"&&dv(i).drColorMappingBy,u=l==="index"?r:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(a.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var la=Math.max,si=Math.min,Kl=Yt,Uo=T,yv=["itemStyle","borderWidth"],y0=["itemStyle","gapWidth"],m0=["upperLabel","show"],S0=["upperLabel","height"];const x0={seriesType:"treemap",reset:function(a,e,t,r){var i=t.getWidth(),n=t.getHeight(),o=a.option,s=oe(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=G(Kl(s.width,l[0]),i),c=G(Kl(s.height,l[1]),n),h=r&&r.type,v=["treemapZoomToNode","treemapRootToNode"],f=oa(r,v,a),p=h==="treemapRender"||h==="treemapMove"?r.rootRect:null,d=a.getViewRoot(),g=hv(d);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?D0(a,f,d,u,c):p?[p.width,p.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var S={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(x),mv(d,S,!1,0),x=d.getLayout(),Uo(g,function(_,w){var A=(g[w+1]||d).getValue();_.setLayout(H({dataExtent:[A,A],borderWidth:0,upperHeight:0},x))})}var b=a.getData().tree.root;b.setLayout(C0(s,p,f),!0),a.setLayoutInfo(s),Sv(b,new Ct(-s.x,-s.y,i,n),g,d,0)}};function mv(a,e,t,r){var i,n;if(!a.isRemoved()){var o=a.getLayout();i=o.width,n=o.height;var s=a.getModel(),l=s.get(yv),u=s.get(y0)/2,c=xv(s),h=Math.max(l,c),v=l-u,f=h-u;a.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=la(i-2*v,0),n=la(n-v-f,0);var p=i*n,d=_0(a,s,p,e,t,r);if(!!d.length){var g={x:v,y:f,width:i,height:n},y=si(i,n),m=1/0,S=[];S.area=0;for(var x=0,b=d.length;x<b;){var _=d[x];S.push(_),S.area+=_.getLayout().area;var w=T0(S,y,e.squareRatio);w<=m?(x++,m=w):(S.area-=S.pop().getLayout().area,ql(S,y,g,u,!1),y=si(g.width,g.height),S.length=S.area=0,m=1/0)}if(S.length&&ql(S,y,g,u,!0),!t){var A=s.get("childrenVisibleMin");A!=null&&p<A&&(t=!0)}for(var x=0,b=d.length;x<b;x++)mv(d[x],e,t,r+1)}}}function _0(a,e,t,r,i,n){var o=a.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=n;if(i&&!l)return a.viewChildren=[];o=se(o,function(f){return!f.isRemoved()}),w0(o,s);var u=A0(e,o,s);if(u.sum===0)return a.viewChildren=[];if(u.sum=b0(e,t,u.sum,s,o),u.sum===0)return a.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var v=o[c].getValue()/u.sum*t;o[c].setLayout({area:v})}return l&&(o.length&&a.setLayout({isLeafRoot:!0},!0),o.length=0),a.viewChildren=o,a.setLayout({dataExtent:u.dataExtent},!0),o}function b0(a,e,t,r,i){if(!r)return t;for(var n=a.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[r==="asc"?o-l-1:l].getValue();u/t*e<n&&(s=l,t-=u)}return r==="asc"?i.splice(0,o-s):i.splice(s,o-s),t}function w0(a,e){return e&&a.sort(function(t,r){var i=e==="asc"?t.getValue()-r.getValue():r.getValue()-t.getValue();return i===0?e==="asc"?t.dataIndex-r.dataIndex:r.dataIndex-t.dataIndex:i}),a}function A0(a,e,t){for(var r=0,i=0,n=e.length;i<n;i++)r+=e[i].getValue();var o=a.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],Uo(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function T0(a,e,t){for(var r=0,i=1/0,n=0,o=void 0,s=a.length;n<s;n++)o=a[n].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var l=a.area*a.area,u=e*e*t;return l?la(u*r/l,l/(u*i)):1/0}function ql(a,e,t,r,i){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],c=e?a.area/e:0;(i||c>t[l[o]])&&(c=t[l[o]]);for(var h=0,v=a.length;h<v;h++){var f=a[h],p={},d=c?f.getLayout().area/c:0,g=p[l[o]]=la(c-2*r,0),y=t[s[n]]+t[l[n]]-u,m=h===v-1||y<d?y:d,S=p[l[n]]=la(m-2*r,0);p[s[o]]=t[s[o]]+si(r,g/2),p[s[n]]=u+si(r,S/2),u+=m,f.setLayout(p,!0)}t[s[o]]+=c,t[l[o]]-=c}function D0(a,e,t,r,i){var n=(e||{}).node,o=[r,i];if(!n||n===t)return o;for(var s,l=r*i,u=l*a.option.zoomToNodeRatio;s=n.parentNode;){for(var c=0,h=s.children,v=0,f=h.length;v<f;v++)c+=h[v].getValue();var p=n.getValue();if(p===0)return o;u*=c/p;var d=s.getModel(),g=d.get(yv),y=Math.max(g,xv(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>Bs&&(u=Bs),n=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,i*m]}function C0(a,e,t){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!t)return r;var i=t.node,n=i.getLayout();if(!n)return r;for(var o=[n.width/2,n.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:a.width/2-o[0],y:a.height/2-o[1]}}function Sv(a,e,t,r,i){var n=a.getLayout(),o=t[i],s=o&&o===a;if(!(o&&!s||i===t.length&&a!==r)){a.setLayout({isInView:!0,invisible:!s&&!e.intersect(n),isAboveViewRoot:s},!0);var l=new Ct(e.x-n.x,e.y-n.y,e.width,e.height);Uo(a.viewChildren||[],function(u){Sv(u,l,t,r,i+1)})}}function xv(a){return a.get(m0)?a.get(S0):0}function I0(a){a.registerSeriesModel(Um),a.registerChartView(o0),a.registerVisual(v0),a.registerLayout(x0),Wm(a)}function M0(a){var e=a.findComponents({mainType:"legend"});!e||!e.length||a.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),i=t.getGraph(),n=i.data,o=r.mapArray(r.getName);n.filterSelf(function(s){var l=n.getItemModel(s),u=l.getShallow("category");if(u!=null){ne(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function L0(a){var e={};a.eachSeriesByType("graph",function(t){var r=t.getCategoriesData(),i=t.getData(),n={};r.each(function(o){var s=r.getName(o);n["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),r.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var v=l.getShallow(c[h],!0);v!=null&&r.setItemVisual(o,c[h],v)}}),r.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){tt(l)&&(l=n["ec-"+l]);var u=r.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");H(c,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],v=0;v<h.length;v++)i.setItemVisual(o,h[v],r.getItemVisual(l,h[v]))}})})}function ka(a){return a instanceof Array||(a=[a,a]),a}function P0(a){a.eachSeriesByType("graph",function(e){var t=e.getGraph(),r=e.getEdgeData(),i=ka(e.get("edgeSymbol")),n=ka(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=t.getEdgeByIndex(o),u=ka(s.getShallow("symbol",!0)),c=ka(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),v=r.ensureUniqueItemVisual(o,"style");switch(H(v,h),v.stroke){case"source":{var f=l.node1.getVisual("style");v.stroke=f&&f.fill;break}case"target":{var f=l.node2.getVisual("style");v.stroke=f&&f.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var ao="-->",Vi=function(a){return a.get("autoCurveness")||null},_v=function(a,e){var t=Vi(a),r=20,i=[];if(ne(t))r=t;else if($(t)){a.__curvenessList=t;return}e>r&&(r=e);var n=r%2?r+2:r+3;i=[];for(var o=0;o<n;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));a.__curvenessList=i},ua=function(a,e,t){var r=[a.id,a.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[t.uid,r,i].join(ao)},bv=function(a){var e=a.split(ao);return[e[0],e[2],e[1]].join(ao)},R0=function(a,e){var t=ua(a.node1,a.node2,e);return e.__edgeMap[t]},E0=function(a,e){var t=io(ua(a.node1,a.node2,e),e),r=io(ua(a.node2,a.node1,e),e);return t+r},io=function(a,e){var t=e.__edgeMap;return t[a]?t[a].length:0};function V0(a){!Vi(a)||(a.__curvenessList=[],a.__edgeMap={},_v(a))}function k0(a,e,t,r){if(!!Vi(t)){var i=ua(a,e,t),n=t.__edgeMap,o=n[bv(i)];n[i]&&!o?n[i].isForward=!0:o&&n[i]&&(o.isForward=!0,n[i].isForward=!1),n[i]=n[i]||[],n[i].push(r)}}function Yo(a,e,t,r){var i=Vi(e),n=$(i);if(!i)return null;var o=R0(a,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=E0(a,e);_v(e,u),a.lineStyle=a.lineStyle||{};var c=ua(a.node1,a.node2,e),h=e.__curvenessList,v=n||u%2?0:1;if(o.isForward)return h[v+s];var f=bv(c),p=io(f,e),d=h[s+p+v];return r?n?i&&i[0]===0?(p+v)%2?d:-d:((p%2?0:1)+v)%2?d:-d:(p+v)%2?d:-d:h[s+p+v]}function wv(a){var e=a.coordinateSystem;if(!(e&&e.type!=="view")){var t=a.getGraph();t.eachNode(function(r){var i=r.getModel();r.setLayout([+i.get("x"),+i.get("y")])}),Xo(t,a)}}function Xo(a,e){a.eachEdge(function(t,r){var i=Ci(t.getModel().get(["lineStyle","curveness"]),-Yo(t,e,r,!0),0),n=ke(t.node1.getLayout()),o=ke(t.node2.getLayout()),s=[n,o];+i&&s.push([(n[0]+o[0])/2-(n[1]-o[1])*i,(n[1]+o[1])/2-(o[0]-n[0])*i]),t.setLayout(s)})}function N0(a,e){a.eachSeriesByType("graph",function(t){var r=t.get("layout"),i=t.coordinateSystem;if(i&&i.type!=="view"){var n=t.getData(),o=[];T(i.dimensions,function(v){o=o.concat(n.mapDimensionsAll(v))});for(var s=0;s<n.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var h=n.get(o[c],s);isNaN(h)||(u=!0),l.push(h)}u?n.setItemLayout(s,i.dataToPoint(l)):n.setItemLayout(s,[NaN,NaN])}Xo(n.graph,t)}else(!r||r==="none")&&wv(t)})}function Kr(a){var e=a.coordinateSystem;if(e.type!=="view")return 1;var t=a.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),n=(i-1)*t+1;return n/r}function qr(a){var e=a.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var jl=Math.PI,rn=[];function Ko(a,e,t,r){var i=a.coordinateSystem;if(!(i&&i.type!=="view")){var n=i.getBoundingRect(),o=a.getData(),s=o.graph,l=n.width/2+n.x,u=n.height/2+n.y,c=Math.min(n.width,n.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),!!h){if(t){var v=i.pointToData(r),f=v[0],p=v[1],d=[f-l,p-u];ba(d,d),Vp(d,d,c),t.setLayout([l+d[0],u+d[1]],!0);var g=a.get(["circular","rotateLabel"]);Av(t,g,l,u)}z0[e](a,s,o,c,l,u,h),s.eachEdge(function(y,m){var S=Ci(y.getModel().get(["lineStyle","curveness"]),Yo(y,a,m),0),x=ke(y.node1.getLayout()),b=ke(y.node2.getLayout()),_,w=(x[0]+b[0])/2,A=(x[1]+b[1])/2;+S&&(S*=3,_=[l*S+w*(1-S),u*S+A*(1-S)]),y.setLayout([x,b,_])})}}}var z0={value:function(a,e,t,r,i,n,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var h=c.getValue("value"),v=u*(l?h:1)/2;s+=v,c.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+n]),s+=v})},symbolSize:function(a,e,t,r,i,n,o){var s=0;rn.length=o;var l=Kr(a);e.eachNode(function(h){var v=qr(h);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var f=Math.asin(v/2/r);isNaN(f)&&(f=jl/2),rn[h.dataIndex]=f,s+=f*2});var u=(2*jl-s)/o/2,c=0;e.eachNode(function(h){var v=u+rn[h.dataIndex];c+=v,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+n]),c+=v})}};function Av(a,e,t,r){var i=a.getGraphicEl();if(!!i){var n=a.getModel(),o=n.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=a.getLayout(),u=Math.atan2(l[1]-r,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var v=s.ensureState("emphasis");H(v.textConfig||(v.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function O0(a){a.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Ko(e,"symbolSize")})}var vr=Yn;function B0(a,e,t){for(var r=a,i=e,n=t.rect,o=n.width,s=n.height,l=[n.x+o/2,n.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=kp(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=ke(h.p),h.edges=null}var v=t.friction==null?.6:t.friction,f=v,p,d;return{warmUp:function(){f=v*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(r,i);for(var y=[],m=r.length,S=0;S<i.length;S++){var x=i[S];if(!x.ignoreForceLayout){var b=x.n1,_=x.n2;xr(y,_.p,b.p);var w=Gs(y)-x.d,A=_.w/(b.w+_.w);isNaN(A)&&(A=0),ba(y,y),!b.fixed&&vr(b.p,b.p,y,A*w*f),!_.fixed&&vr(_.p,_.p,y,-(1-A)*w*f)}}for(var S=0;S<m;S++){var D=r[S];D.fixed||(xr(y,l,D.p),vr(D.p,D.p,y,u*f))}for(var S=0;S<m;S++)for(var b=r[S],C=S+1;C<m;C++){var _=r[C];xr(y,_.p,b.p);var w=Gs(y);w===0&&(Np(y,Math.random()-.5,Math.random()-.5),w=1);var I=(b.rep+_.rep)/w/w;!b.fixed&&vr(b.pp,b.pp,y,I),!_.fixed&&vr(_.pp,_.pp,y,-I)}for(var M=[],S=0;S<m;S++){var D=r[S];D.fixed||(xr(M,D.p,D.pp),vr(D.p,D.p,M,f),Vt(D.pp,D.p))}f=f*.992;var P=f<.01;d&&d(r,i,P),g&&g(P)}}}function G0(a){a.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},i=e.getGraph(),n=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?n.each(function(S){var x=n.getId(S);n.setItemLayout(S,r[x]||[NaN,NaN])}):!l||l==="none"?wv(e):l==="circular"&&Ko(e,"value");var u=n.getDataExtent("value"),c=o.getDataExtent("value"),h=s.get("repulsion"),v=s.get("edgeLength"),f=$(h)?h:[h,h],p=$(v)?v:[v,v];p=[p[1],p[0]];var d=n.mapArray("value",function(S,x){var b=n.getItemLayout(x),_=it(S,u,f);return isNaN(_)&&(_=(f[0]+f[1])/2),{w:_,rep:_,fixed:n.getItemModel(x).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(S,x){var b=i.getEdgeByIndex(x),_=it(S,c,p);isNaN(_)&&(_=(p[0]+p[1])/2);var w=b.getModel(),A=Ci(b.getModel().get(["lineStyle","curveness"]),-Yo(b,e,x,!0),0);return{n1:d[b.node1.dataIndex],n2:d[b.node2.dataIndex],d:_,curveness:A,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=B0(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(S,x){for(var b=0,_=S.length;b<_;b++)S[b].fixed&&Vt(S[b].p,i.getNodeByIndex(b).getLayout())}),m.afterStep(function(S,x,b){for(var _=0,w=S.length;_<w;_++)S[_].fixed||i.getNodeByIndex(_).setLayout(S[_].p),r[n.getId(_)]=S[_].p;for(var _=0,w=x.length;_<w;_++){var A=x[_],D=i.getEdgeByIndex(_),C=A.n1.p,I=A.n2.p,M=D.getLayout();M=M?M.slice():[],M[0]=M[0]||[],M[1]=M[1]||[],Vt(M[0],C),Vt(M[1],I),+A.curveness&&(M[2]=[(C[0]+I[0])/2-(C[1]-I[1])*A.curveness,(C[1]+I[1])/2-(I[0]-C[0])*A.curveness]),D.setLayout(M)}}),e.forceLayout=m,e.preservedPoints=r,m.step()}else e.forceLayout=null})}function F0(a,e,t){var r=H(a.getBoxLayoutParams(),{aspect:t});return oe(r,{width:e.getWidth(),height:e.getHeight()})}function H0(a,e){var t=[];return a.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var n=r.getData(),o=n.mapArray(function(g){var y=n.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];_h(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=F0(r,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var h=l[0]-s[0],v=l[1]-s[1],f=c.width,p=c.height,d=r.coordinateSystem=new Ia;d.zoomLimit=r.get("scaleLimit"),d.setBoundingRect(s[0],s[1],h,v),d.setViewRect(c.x,c.y,f,p),d.setCenter(r.get("center"),e),d.setZoom(r.get("zoom")),t.push(d)}}),t}var Jl=ue.prototype,an=bh.prototype,Tv=function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return a}();(function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e})(Tv);function nn(a){return isNaN(+a.cpx1)||isNaN(+a.cpy1)}var W0=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Tv},e.prototype.buildPath=function(t,r){nn(r)?Jl.buildPath.call(this,t,r):an.buildPath.call(this,t,r)},e.prototype.pointAt=function(t){return nn(this.shape)?Jl.pointAt.call(this,t):an.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var r=this.shape,i=nn(r)?[r.x2-r.x1,r.y2-r.y1]:an.tangentAt.call(this,t);return ba(i,i)},e}(Ft);const $0=W0;var on=["fromSymbol","toSymbol"];function Ql(a){return"_"+a+"Type"}function tu(a,e,t){var r=e.getItemVisual(t,a);if(!(!r||r==="none")){var i=e.getItemVisual(t,a+"Size"),n=e.getItemVisual(t,a+"Rotate"),o=e.getItemVisual(t,a+"Offset"),s=e.getItemVisual(t,a+"KeepAspect"),l=ya(i),u=ga(o||0,l),c=Dt(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,c.name=a,c}}function Z0(a){var e=new $0({name:"line",subPixelOptimize:!0});return no(e.shape,a),e}function no(a,e){a.x1=e[0][0],a.y1=e[0][1],a.x2=e[1][0],a.y2=e[1][1],a.percent=1;var t=e[2];t?(a.cpx1=t[0],a.cpy1=t[1]):(a.cpx1=NaN,a.cpy1=NaN)}var U0=function(a){E(e,a);function e(t,r,i){var n=a.call(this)||this;return n._createLine(t,r,i),n}return e.prototype._createLine=function(t,r,i){var n=t.hostModel,o=t.getItemLayout(r),s=Z0(o);s.shape.percent=0,ie(s,{shape:{percent:1}},n,r),this.add(s),T(on,function(l){var u=tu(l,t,r);this.add(u),this[Ql(l)]=t.getItemVisual(r,l)},this),this._updateCommonStl(t,r,i)},e.prototype.updateData=function(t,r,i){var n=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(r),l={shape:{}};no(l.shape,s),ht(o,l,n,r),T(on,function(u){var c=t.getItemVisual(r,u),h=Ql(u);if(this[h]!==c){this.remove(this.childOfName(u));var v=tu(u,t,r);this.add(v)}this[h]=c},this),this._updateCommonStl(t,r,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,r,i){var n=t.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,v=i&&i.focus,f=i&&i.blurScope;if(!i||t.hasItemOption){var p=t.getItemModel(r),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),h=d.get("disabled"),v=d.get("focus"),f=d.get("blurScope"),c=Pt(p)}var g=t.getItemVisual(r,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(on,function(_){var w=this.childOfName(_);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var A=0;A<ra.length;A++){var D=ra[A],C=o.getState(D);if(C){var I=C.style||{},M=w.ensureState(D),P=M.style||(M.style={});I.stroke!=null&&(P[w.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(P.opacity=I.opacity)}}w.markRedraw()}},this);var m=n.getRawValue(r);qt(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(_,w){return n.getFormattedLabel(_,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?t.getName(r):isFinite(m)?Po(m):m)+""});var S=this.getTextContent();if(S){var x=c.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=x.get("position")||"middle";var b=x.get("distance");$(b)||(b=[b,b]),S.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),St(this,v,f,h)},e.prototype.highlight=function(){wr(this)},e.prototype.downplay=function(){Ar(this)},e.prototype.updateLayout=function(t,r){this.setLinePoints(t.getItemLayout(r))},e.prototype.setLinePoints=function(t){var r=this.childOfName("line");no(r.shape,t),r.dirty()},e.prototype.beforeUpdate=function(){var t=this,r=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.getTextContent();if(!r&&!i&&(!n||n.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),v=xr([],h,c);ba(v,v);function f(C,I){var M=C.__specifiedRotation;if(M==null){var P=l.tangentAt(I);C.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else C.attr("rotation",M)}if(r&&(r.setPosition(c),f(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),i&&(i.setPosition(h),f(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var p=void 0,d=void 0,g=n.__labelDistance,y=g[0]*o,m=g[1]*o,S=u/2,x=l.tangentAt(S),b=[x[1],-x[0]],_=l.pointAt(S);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=x[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var A=-Math.atan2(x[1],x[0]);h[0]<c[0]&&(A=Math.PI+A),n.rotation=A}var D=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=m,d="top";break;default:D=0,d="middle"}switch(n.__position){case"end":n.x=v[0]*y+h[0],n.y=v[1]*m+h[1],p=v[0]>.8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":n.x=-v[0]*y+c[0],n.y=-v[1]*m+c[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=y*w+c[0],n.y=c[1]+D,p=x[0]<0?"right":"left",n.originX=-y*w,n.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=_[0],n.y=_[1]+D,p="center",n.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-y*w+h[0],n.y=h[1]+D,p=x[0]>=0?"right":"left",n.originX=y*w,n.originY=-D;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||p})}},e}(U);const qo=U0;var Y0=function(){function a(e){this.group=new U,this._LineCtor=e||qo}return a.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,i=r.group,n=r._lineData;r._lineData=e,n||i.removeAll();var o=eu(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},a.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=eu(e),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!X0(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var n=t.getItemLayout(i);if(sn(n)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(r),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},a.prototype.remove=function(){this.group.removeAll()},a.prototype.eachRendered=function(e){ma(this._progressiveEls||this.group,e)},a.prototype._doAdd=function(e,t,r){var i=e.getItemLayout(t);if(!!sn(i)){var n=new this._LineCtor(e,t,r);e.setItemGraphicEl(t,n),this.group.add(n)}},a.prototype._doUpdate=function(e,t,r,i,n){var o=e.getItemGraphicEl(r);if(!sn(t.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(t,i,n):o=new this._LineCtor(t,i,n),t.setItemGraphicEl(i,o),this.group.add(o)},a}();function X0(a){return a.animators&&a.animators.length>0}function eu(a){var e=a.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Pt(e)}}function ru(a){return isNaN(a[0])||isNaN(a[1])}function sn(a){return a&&!ru(a[0])&&!ru(a[1])}const jo=Y0;var ln=[],un=[],cn=[],fr=Th,hn=Op,au=Math.abs;function iu(a,e,t){for(var r=a[0],i=a[1],n=a[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){ln[0]=fr(r[0],i[0],n[0],c),ln[1]=fr(r[1],i[1],n[1],c);var h=au(hn(ln,e)-l);h<o&&(o=h,s=c)}for(var v=0;v<32;v++){var f=s+u;un[0]=fr(r[0],i[0],n[0],s),un[1]=fr(r[1],i[1],n[1],s),cn[0]=fr(r[0],i[0],n[0],f),cn[1]=fr(r[1],i[1],n[1],f);var h=hn(un,e)-l;if(au(h)<.01)break;var p=hn(cn,e)-l;u/=2,h<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function vn(a,e){var t=[],r=zp,i=[[],[],[]],n=[[],[]],o=[];e/=2,a.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[ke(u[0]),ke(u[1])],u[2]&&u.__original.push(ke(u[2])));var v=u.__original;if(u[2]!=null){if(Vt(i[0],v[0]),Vt(i[1],v[2]),Vt(i[2],v[1]),c&&c!=="none"){var f=qr(s.node1),p=iu(i,v[0],f*e);r(i[0][0],i[1][0],i[2][0],p,t),i[0][0]=t[3],i[1][0]=t[4],r(i[0][1],i[1][1],i[2][1],p,t),i[0][1]=t[3],i[1][1]=t[4]}if(h&&h!=="none"){var f=qr(s.node2),p=iu(i,v[1],f*e);r(i[0][0],i[1][0],i[2][0],p,t),i[1][0]=t[1],i[2][0]=t[2],r(i[0][1],i[1][1],i[2][1],p,t),i[1][1]=t[1],i[2][1]=t[2]}Vt(u[0],i[0]),Vt(u[1],i[2]),Vt(u[2],i[1])}else{if(Vt(n[0],v[0]),Vt(n[1],v[1]),xr(o,n[1],n[0]),ba(o,o),c&&c!=="none"){var f=qr(s.node1);Yn(n[0],n[0],o,f*e)}if(h&&h!=="none"){var f=qr(s.node2);Yn(n[1],n[1],o,-f*e)}Vt(u[0],n[0]),Vt(u[1],n[1])}})}function nu(a){return a.type==="view"}var K0=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var i=new Ta,n=new jo,o=this.group;this._controller=new Ca(r.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,r,i){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(nu(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ht(u,c,t)}vn(t.getGraph(),Kr(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,r,i),clearTimeout(this._layoutTimeout);var f=t.forceLayout,p=t.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,p);var d=t.get("layout");h.graph.eachNode(function(S){var x=S.dataIndex,b=S.getGraphicEl(),_=S.getModel();if(!!b){b.off("drag").off("dragend");var w=_.get("draggable");w&&b.on("drag",function(D){switch(d){case"force":f.warmUp(),!n._layouting&&n._startForceLayoutIteration(f,p),f.setFixed(x),h.setItemLayout(x,[b.x,b.y]);break;case"circular":h.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),Ko(t,"symbolSize",S,[D.offsetX,D.offsetY]),n.updateLayout(t);break;case"none":default:h.setItemLayout(x,[b.x,b.y]),Xo(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){f&&f.setUnfixed(x)}),b.setDraggable(w&&!!f,!!_.get("cursor"));var A=_.get(["emphasis","focus"]);A==="adjacency"&&(st(b).focus=S.getAdjacentDataIndices())}}),h.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);!x||b==="adjacency"&&(st(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(S){Av(S,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var i=this;(function n(){t.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(r?i._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,r,i){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(c,h)&&!Pi(u,i,t)}),!nu(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Oo(s,u.dx,u.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Bo(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),vn(t.getGraph(),Kr(t)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),i=Kr(t);r.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(i)})},e.prototype.updateLayout=function(t){vn(t.getGraph(),Kr(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(yt);const q0=K0;function pr(a){return"_EC_"+a}var j0=function(){function a(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return a.prototype.isDirected=function(){return this._directed},a.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[pr(e)]){var i=new Xe(e,t);return i.hostGraph=this,this.nodes.push(i),r[pr(e)]=i,i}},a.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},a.prototype.getNodeById=function(e){return this._nodesMap[pr(e)]},a.prototype.addEdge=function(e,t,r){var i=this._nodesMap,n=this._edgesMap;if(ne(e)&&(e=this.nodes[e]),ne(t)&&(t=this.nodes[t]),e instanceof Xe||(e=i[pr(e)]),t instanceof Xe||(t=i[pr(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new Dv(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},a.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},a.prototype.getEdge=function(e,t){e instanceof Xe&&(e=e.id),t instanceof Xe&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},a.prototype.eachNode=function(e,t){for(var r=this.nodes,i=r.length,n=0;n<i;n++)r[n].dataIndex>=0&&e.call(t,r[n],n)},a.prototype.eachEdge=function(e,t){for(var r=this.edges,i=r.length,n=0;n<i;n++)r[n].dataIndex>=0&&r[n].node1.dataIndex>=0&&r[n].node2.dataIndex>=0&&e.call(t,r[n],n)},a.prototype.breadthFirstTraverse=function(e,t,r,i){if(t instanceof Xe||(t=this._nodesMap[pr(t)]),!!t){for(var n=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[n],o=0;o<u.length;o++){var c=u[o],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(e.call(i,h,l))return;s.push(h),h.__visited=!0}}}},a.prototype.update=function(){for(var e=this.data,t=this.edgeData,r=this.nodes,i=this.edges,n=0,o=r.length;n<o;n++)r[n].dataIndex=-1;for(var n=0,o=e.count();n<o;n++)r[e.getRawIndex(n)].dataIndex=n;t.filterSelf(function(s){var l=i[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var n=0,o=i.length;n<o;n++)i[n].dataIndex=-1;for(var n=0,o=t.count();n<o;n++)i[t.getRawIndex(n)].dataIndex=n},a.prototype.clone=function(){for(var e=new a(this._directed),t=this.nodes,r=this.edges,i=0;i<t.length;i++)e.addNode(t[i].id,t[i].dataIndex);for(var i=0;i<r.length;i++){var n=r[i];e.addEdge(n.node1.id,n.node2.id,n.dataIndex)}return e},a}(),Xe=function(){function a(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?"":e,this.dataIndex=t==null?-1:t}return a.prototype.degree=function(){return this.edges.length},a.prototype.inDegree=function(){return this.inEdges.length},a.prototype.outDegree=function(){return this.outEdges.length},a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var r=this.edges[t];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},a}(),Dv=function(){function a(e,t,r){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=r==null?-1:r}return a.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,r=t.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},a.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},a}();function Cv(a,e){return{getValue:function(t){var r=this[a][e];return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,r){this.dataIndex>=0&&this[a][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[a][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[a][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[a][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][e].getRawIndex(this.dataIndex)}}}ve(Xe,Cv("hostGraph","data"));ve(Dv,Cv("hostGraph","edgeData"));const J0=j0;function Iv(a,e,t,r,i){for(var n=new J0(r),o=0;o<a.length;o++)n.addNode(Yt(a[o].id,a[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],h=c.source,v=c.target;n.addEdge(h,v,u)&&(l.push(c),s.push(Yt(we(c.id,null),h+" > "+v)),u++)}var f=t.get("coordinateSystem"),p;if(f==="cartesian2d"||f==="polar")p=lr(a,t);else{var d=Dh.get(f),g=d?d.dimensions||[]:[];bt(g,"value")<0&&g.concat(["value"]);var y=Mo(a,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new Xt(y,t),p.initData(a)}var m=new Xt(["value"],t);return m.initData(l,s),i&&i(p,m),uv({mainData:p,struct:n,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var Q0=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new _i(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){a.prototype.mergeDefaultAndTheme.apply(this,arguments),Di(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var i=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&i){V0(this);var s=Iv(n,i,this,!0,l);return T(s.edges,function(u){k0(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=Kt.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=f,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=f,p.getModel=v,p});function f(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(t,i),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Gt("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var h=Bp({series:this,dataIndex:t,multipleSeries:r});return h},e.prototype._updateCategoriesData=function(){var t=B(this.option.categories||[],function(i){return i.value!=null?i:H({value:0},i)}),r=new Xt(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Tt);const t1=Q0;var e1={type:"graphRoam",event:"graphRoam",update:"none"};function r1(a){a.registerChartView(q0),a.registerSeriesModel(t1),a.registerProcessor(M0),a.registerVisual(L0),a.registerVisual(P0),a.registerLayout(N0),a.registerLayout(a.PRIORITY.VISUAL.POST_CHART_LAYOUT,O0),a.registerLayout(G0),a.registerCoordinateSystem("graphView",{dimensions:Ia.dimensions,create:H0}),a.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ar),a.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ar),a.registerAction(e1,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(i){var n=i.coordinateSystem,o=Fo(n,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var a1=function(){function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return a}(),i1=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new a1},e.prototype.buildPath=function(t,r){var i=Math.cos,n=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=o/3?1:2),c=r.y-n(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+i(l)*s,r.y+n(l)*s),t.lineTo(r.x+i(r.angle)*o,r.y+n(r.angle)*o),t.lineTo(r.x-i(l)*s,r.y-n(l)*s),t.lineTo(u,c)},e}(Ft);const n1=i1;function o1(a,e){var t=a.get("center"),r=e.getWidth(),i=e.getHeight(),n=Math.min(r,i),o=G(t[0],e.getWidth()),s=G(t[1],e.getHeight()),l=G(a.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Na(a,e){var t=a==null?"":a+"";return e&&(tt(e)?t=e.replace("{value}",t):nt(e)&&(t=e(a))),t}var s1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=o1(t,i);this._renderMain(t,r,i,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,i,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),f=v?Hs:ia,p=h.get("show"),d=h.getModel("lineStyle"),g=d.get("width"),y=[u,c];Gp(y,!l),u=y[0],c=y[1];for(var m=c-u,S=u,x=0;p&&x<n.length;x++){var b=Math.min(Math.max(n[x][0],0),1);c=u+m*b;var _=new f({shape:{startAngle:S,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});_.setStyle({fill:n[x][1]}),_.setStyle(d.getLineStyle(["color","width"])),s.add(_),S=c}var w=function(A){if(A<=0)return n[0][1];var D;for(D=0;D<n.length;D++)if(n[D][0]>=A&&(D===0?0:n[D-1][0])<A)return n[D][1];return n[D-1][1]};this._renderTicks(t,r,i,w,o,u,c,l,g),this._renderTitleAndDetail(t,r,i,w,o),this._renderAnchor(t,o),this._renderPointer(t,r,i,w,o,u,c,l,g)},e.prototype._renderTicks=function(t,r,i,n,o,s,l,u,c){for(var h=this.group,v=o.cx,f=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),S=t.getModel("axisLabel"),x=t.get("splitNumber"),b=m.get("splitNumber"),_=G(y.get("length"),p),w=G(m.get("length"),p),A=s,D=(l-s)/x,C=D/b,I=y.getModel("lineStyle").getLineStyle(),M=m.getModel("lineStyle").getLineStyle(),P=y.get("distance"),L,R,V=0;V<=x;V++){if(L=Math.cos(A),R=Math.sin(A),y.get("show")){var k=P?P+c:c,N=new ue({shape:{x1:L*(p-k)+v,y1:R*(p-k)+f,x2:L*(p-_-k)+v,y2:R*(p-_-k)+f},style:I,silent:!0});I.stroke==="auto"&&N.setStyle({stroke:n(V/x)}),h.add(N)}if(S.get("show")){var k=S.get("distance")+P,z=Na(Po(V/x*(g-d)+d),S.get("formatter")),W=n(V/x),Z=L*(p-_-k)+v,j=R*(p-_-k)+f,q=S.get("rotate"),J=0;q==="radial"?(J=-A+2*Math.PI,J>Math.PI/2&&(J+=Math.PI)):q==="tangential"?J=-A-Math.PI/2:ne(q)&&(J=q*Math.PI/180),J===0?h.add(new pt({style:xt(S,{text:z,x:Z,y:j,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:W}),silent:!0})):h.add(new pt({style:xt(S,{text:z,x:Z,y:j,verticalAlign:"middle",align:"center"},{inheritColor:W}),silent:!0,originX:Z,originY:j,rotation:J}))}if(m.get("show")&&V!==x){var k=m.get("distance");k=k?k+c:c;for(var dt=0;dt<=b;dt++){L=Math.cos(A),R=Math.sin(A);var ut=new ue({shape:{x1:L*(p-k)+v,y1:R*(p-k)+f,x2:L*(p-w-k)+v,y2:R*(p-w-k)+f},silent:!0,style:M});M.stroke==="auto"&&ut.setStyle({stroke:n((V+dt/b)/x)}),h.add(ut),A+=C}A-=C}else A+=D}},e.prototype._renderPointer=function(t,r,i,n,o,s,l,u,c){var h=this.group,v=this._data,f=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),S=m.mapDimension("value"),x=+t.get("min"),b=+t.get("max"),_=[x,b],w=[s,l];function A(C,I){var M=m.getItemModel(C),P=M.getModel("pointer"),L=G(P.get("width"),o.r),R=G(P.get("length"),o.r),V=t.get(["pointer","icon"]),k=P.get("offsetCenter"),N=G(k[0],o.r),z=G(k[1],o.r),W=P.get("keepAspect"),Z;return V?Z=Dt(V,N-L/2,z-R,L,R,null,W):Z=new n1({shape:{angle:-Math.PI/2,width:L,r:R,x:N,y:z}}),Z.rotation=-(I+Math.PI/2),Z.x=o.cx,Z.y=o.cy,Z}function D(C,I){var M=g.get("roundCap"),P=M?Hs:ia,L=g.get("overlap"),R=L?g.get("width"):c/m.count(),V=L?o.r-R:o.r-(C+1)*R,k=L?o.r:o.r-C*R,N=new P({shape:{startAngle:s,endAngle:I,cx:o.cx,cy:o.cy,clockwise:u,r0:V,r:k}});return L&&(N.z2=b-m.get(S,C)%b),N}(y||d)&&(m.diff(v).add(function(C){var I=m.get(S,C);if(d){var M=A(C,s);ie(M,{rotation:-((isNaN(+I)?w[0]:it(I,_,w,!0))+Math.PI/2)},t),h.add(M),m.setItemGraphicEl(C,M)}if(y){var P=D(C,s),L=g.get("clip");ie(P,{shape:{endAngle:it(I,_,w,L)}},t),h.add(P),Fs(t.seriesIndex,m.dataType,C,P),p[C]=P}}).update(function(C,I){var M=m.get(S,C);if(d){var P=v.getItemGraphicEl(I),L=P?P.rotation:s,R=A(C,L);R.rotation=L,ht(R,{rotation:-((isNaN(+M)?w[0]:it(M,_,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(C,R)}if(y){var V=f[I],k=V?V.shape.endAngle:s,N=D(C,k),z=g.get("clip");ht(N,{shape:{endAngle:it(M,_,w,z)}},t),h.add(N),Fs(t.seriesIndex,m.dataType,C,N),p[C]=N}}).execute(),m.each(function(C){var I=m.getItemModel(C),M=I.getModel("emphasis"),P=M.get("focus"),L=M.get("blurScope"),R=M.get("disabled");if(d){var V=m.getItemGraphicEl(C),k=m.getItemVisual(C,"style"),N=k.fill;if(V instanceof he){var z=V.style;V.useStyle(H({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},k))}else V.useStyle(k),V.type!=="pointer"&&V.setColor(N);V.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),V.style.fill==="auto"&&V.setStyle("fill",n(it(m.get(S,C),_,[0,1],!0))),V.z2EmphasisLift=0,Nt(V,I),St(V,P,L,R)}if(y){var W=p[C];W.useStyle(m.getItemVisual(C,"style")),W.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),W.z2EmphasisLift=0,Nt(W,I),St(W,P,L,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var i=t.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Dt(s,r.cx-o/2+G(l[0],r.r),r.cy-o/2+G(l[1],r.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,i,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),h=+t.get("max"),v=new U,f=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){f[y]=new pt({silent:!0}),p[y]=new pt({silent:!0})}).update(function(y,m){f[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),S=l.get(u,y),x=new U,b=n(it(S,[c,h],[0,1],!0)),_=m.getModel("title");if(_.get("show")){var w=_.get("offsetCenter"),A=o.cx+G(w[0],o.r),D=o.cy+G(w[1],o.r),C=f[y];C.attr({z2:g?0:2,style:xt(_,{x:A,y:D,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),x.add(C)}var I=m.getModel("detail");if(I.get("show")){var M=I.get("offsetCenter"),P=o.cx+G(M[0],o.r),L=o.cy+G(M[1],o.r),R=G(I.get("width"),o.r),V=G(I.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,C=p[y],N=I.get("formatter");C.attr({z2:g?0:2,style:xt(I,{x:P,y:L,text:Na(S,N),width:isNaN(R)?null:R,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:k})}),Fp(C,{normal:I},S,function(W){return Na(W,N)}),d&&Hp(C,y,l,t,{getFormattedLabel:function(W,Z,j,q,J,dt){return Na(dt?dt.interpolatedValue:S,N)}}),x.add(C)}v.add(x)}),this.group.add(v),this._titleEls=f,this._detailEls=p},e.type="gauge",e}(yt);const l1=s1;var u1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return xa(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Tt);const c1=u1;function h1(a){a.registerChartView(l1),a.registerSeriesModel(c1)}var v1=["itemStyle","opacity"],f1=function(a){E(e,a);function e(t,r){var i=a.call(this)||this,n=i,o=new xe,s=new pt;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,r,!0),i}return e.prototype.updateData=function(t,r,i){var n=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(v1);c=c==null?1:c,i||De(n),n.useStyle(t.getItemVisual(r,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,ie(n,{style:{opacity:c}},o,r)):ht(n,{style:{opacity:c},shape:{points:l.points}},o,r),Nt(n,s),this._updateLabel(t,r),St(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,h=t.getItemVisual(r,"style"),v=h.fill;qt(o,Pt(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:h.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:v,outsideFill:v});var f=c.linePoints;n.setShape({points:f}),i.textGuideLineConfig={anchor:f?new Ch(f[0][0],f[0][1]):null},ht(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Wp(i,$p(l),{stroke:v})},e}(ce),p1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new f1(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(n,l),s.add(c),n.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Zp(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(yt);const d1=p1;var g1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new _i(F(this.getData,this),F(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return xa(this,{coordDimensions:["value"],encodeDefaulter:Q(mh,this)})},e.prototype._defaultLabelLine=function(t){Di(t,"labelLine",["show"]);var r=t.labelLine,i=t.emphasis.labelLine;r.show=r.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),i=a.prototype.getDataParams.call(this,t),n=r.mapDimension("value"),o=r.getSum(n);return i.percent=o?+(r.get(n,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Tt);const y1=g1;function m1(a,e){return oe(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function S1(a,e){for(var t=a.mapDimension("value"),r=a.mapArray(t,function(l){return l}),i=[],n=e==="ascending",o=0,s=a.count();o<s;o++)i[o]=o;return nt(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return n?r[l]-r[u]:r[u]-r[l]}),i}function x1(a){var e=a.hostModel,t=e.get("orient");a.each(function(r){var i=a.getItemModel(r),n=i.getModel("label"),o=n.get("position"),s=i.getModel("labelLine"),l=a.getItemLayout(r),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,v,f,p;if(c)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,f=(u[0][1]+u[3][1])/2,h="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,f=(u[1][1]+u[2][1])/2,h="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,f=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),p=[[v,f],[v,f]];else{var d=void 0,g=void 0,y=void 0,m=void 0,S=s.get("length");o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-S,v=y-5,h="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+S,v=y+5,h="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-S,f=m-5,h="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+S,f=m+5,h="center"):o==="rightTop"?(d=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-S,f=m-5,h="center"):(y=d+S,v=y+5,h="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],t==="horizontal"?(m=g+S,f=m+5,h="center"):(y=d+S,v=y+5,h="bottom")):o==="leftTop"?(d=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-S,f=m-5,h="center"):(y=d-S,v=y-5,h="right")):o==="leftBottom"?(d=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+S,f=m+5,h="center"):(y=d-S,v=y-5,h="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+S,f=m+5,h="center"):(y=d+S,v=y+5,h="left")),t==="horizontal"?(y=d,v=y):(m=g,f=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:v,y:f,verticalAlign:"middle",textAlign:h,inside:c}})}function _1(a,e){a.eachSeriesByType("funnel",function(t){var r=t.getData(),i=r.mapDimension("value"),n=t.get("sort"),o=m1(t,e),s=t.get("orient"),l=o.width,u=o.height,c=S1(r,n),h=o.x,v=o.y,f=s==="horizontal"?[G(t.get("minSize"),u),G(t.get("maxSize"),u)]:[G(t.get("minSize"),l),G(t.get("maxSize"),l)],p=r.getDataExtent(i),d=t.get("min"),g=t.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),S=s==="horizontal"?l:u,x=(S-m*(r.count()-1))/r.count(),b=function(L,R){if(s==="horizontal"){var V=r.get(i,L)||0,k=it(V,[d,g],f,!0),N=void 0;switch(y){case"top":N=v;break;case"center":N=v+(u-k)/2;break;case"bottom":N=v+(u-k);break}return[[R,N],[R,N+k]]}var z=r.get(i,L)||0,W=it(z,[d,g],f,!0),Z;switch(y){case"left":Z=h;break;case"center":Z=h+(l-W)/2;break;case"right":Z=h+l-W;break}return[[Z,R],[Z+W,R]]};n==="ascending"&&(x=-x,m=-m,s==="horizontal"?h+=l:v+=u,c=c.reverse());for(var _=0;_<c.length;_++){var w=c[_],A=c[_+1],D=r.getItemModel(w);if(s==="horizontal"){var C=D.get(["itemStyle","width"]);C==null?C=x:(C=G(C,l),n==="ascending"&&(C=-C));var I=b(w,h),M=b(A,h+C);h+=C+m,r.setItemLayout(w,{points:I.concat(M.slice().reverse())})}else{var P=D.get(["itemStyle","height"]);P==null?P=x:(P=G(P,u),n==="ascending"&&(P=-P));var I=b(w,v),M=b(A,v+P);v+=P+m,r.setItemLayout(w,{points:I.concat(M.slice().reverse())})}}x1(r)})}function b1(a){a.registerChartView(d1),a.registerSeriesModel(y1),a.registerLayout(_1),a.registerProcessor(wi("funnel"))}var w1=.3,A1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new U,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,r,i,n){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,h=su(t);s.diff(l).add(v).update(f).remove(p).execute();function v(g){var y=ou(s,o,g,c,u);fn(y,s,g,h)}function f(g,y){var m=l.getItemGraphicEl(y),S=Mv(s,g,c,u);s.setItemGraphicEl(g,m),ht(m,{shape:{points:S}},t,g),De(m),fn(m,s,g,h)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=T1(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,r,i){for(var n=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=su(r),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var h=ou(n,this._dataGroup,c,s,o);h.incremental=!0,fn(h,n,c,l),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(yt);function T1(a,e,t){var r=a.model,i=a.getRect(),n=new _t({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),ie(n,{shape:{width:i.width,height:i.height}},e,t),n}function Mv(a,e,t,r){for(var i=[],n=0;n<t.length;n++){var o=t[n],s=a.get(a.mapDimension(o),e);D1(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function ou(a,e,t,r,i){var n=Mv(a,t,r,i),o=new xe({shape:{points:n},z2:10});return e.add(o),a.setItemGraphicEl(t,o),o}function su(a){var e=a.get("smooth",!0);return e===!0&&(e=w1),e=Up(e),Yp(e)&&(e=0),{smooth:e}}function fn(a,e,t,r){a.useStyle(e.getItemVisual(t,"style")),a.style.fill=null,a.setShape("smooth",r.smooth);var i=e.getItemModel(t),n=i.getModel("emphasis");Nt(a,i,"lineStyle"),St(a,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function D1(a,e){return e==="category"?a==null:a==null||isNaN(a)}const C1=A1;var I1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,r){return lr(null,this,{useEncodeDefaulter:F(M1,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var r=this.coordinateSystem,i=this.getData(),n=[];return r.eachActiveState(i,function(o,s){t===o&&n.push(i.getRawIndex(s))}),n},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Tt);function M1(a){var e=a.ecModel.getComponent("parallel",a.get("parallelIndex"));if(!!e){var t={};return T(e.dimensions,function(r){var i=L1(r);t[r]=i}),t}}function L1(a){return+a.replace("dim","")}const P1=I1;var R1=["lineStyle","opacity"],E1={seriesType:"parallel",reset:function(a,e){var t=a.coordinateSystem,r={normal:a.get(["lineStyle","opacity"]),active:a.get("activeOpacity"),inactive:a.get("inactiveOpacity")};return{progress:function(i,n){t.eachActiveState(n,function(o,s){var l=r[o];if(o==="normal"&&n.hasItemOption){var u=n.getItemModel(s).get(R1,!0);u!=null&&(l=u)}var c=n.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};const V1=E1;function k1(a){N1(a),z1(a)}function N1(a){if(!a.parallel){var e=!1;T(a.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(a.parallel=[{}])}}function z1(a){var e=Ce(a.parallelAxis);T(e,function(t){if(!!Rt(t)){var r=t.parallelIndex||0,i=Ce(a.parallel)[r];i&&i.parallelAxisDefault&&mt(t,i.parallelAxisDefault,!1)}})}var O1=5,B1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this._model=t,this._api=i,this._handlers||(this._handlers={},T(G1,function(n,o){i.getZr().on(o,this._handlers[o]=F(n,this))},this)),Ii(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,r){Ih(this,"_throttledDispatchExpand"),T(this._handlers,function(i,n){r.getZr().off(n,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(H({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Ht),G1={mousedown:function(a){pn(this,"click")&&(this._mouseDownPoint=[a.offsetX,a.offsetY])},mouseup:function(a){var e=this._mouseDownPoint;if(pn(this,"click")&&e){var t=[a.offsetX,a.offsetY],r=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(r>O1)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(a){if(!(this._mouseDownPoint||!pn(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([a.offsetX,a.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function pn(a,e){var t=a._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const F1=B1;var H1=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&mt(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var i=t.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],i=se(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);T(i,function(n){t.push("dim"+n.get("dim")),r.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(zt);const W1=H1;var $1=function(a){E(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(_e);const Z1=$1;function ur(a,e,t,r,i,n){a=a||0;var o=t[1]-t[0];if(i!=null&&(i=dr(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=dr(s,[0,o]),i=n=dr(s,[i,n]),r=0}e[0]=dr(e[0],t),e[1]=dr(e[1],t);var l=dn(e,r);e[r]+=a;var u=i||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=dr(e[r],c);var h;return h=dn(e,r),i!=null&&(h.sign!==l.sign||h.span<i)&&(e[1-r]=e[r]+l.sign*i),h=dn(e,r),n!=null&&h.span>n&&(e[1-r]=e[r]+h.sign*n),e}function dn(a,e){var t=a[e]-a[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function dr(a,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,a))}var gn=T,Lv=Math.min,Pv=Math.max,lu=Math.floor,U1=Math.ceil,uu=Po,Y1=Math.PI,X1=function(){function a(e,t,r){this.type="parallel",this._axesMap=ot(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var i=e.dimensions,n=e.parallelAxisIndex;gn(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Z1(o,Ro(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},a.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},a.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=r&&o<=r+t.axisLength&&s>=i&&s<=i+t.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(!!e.contains(r,t)){var i=r.getData();gn(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),ti(o.scale,o.model)},this)}},this)},a.prototype.resize=function(e,t){this._rect=oe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],i=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,c=za(e.get("axisExpandWidth"),l),h=za(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow"),p;if(f)p=za(f[1]-f[0],l),f[1]=f[0]+p;else{p=za(c*(h-1),l);var d=e.get("axisExpandCenter")||lu(u/2);f=[c*d-p/2],f[1]=f[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[lu(uu(f[0]/c,1))+1,U1(uu(f[1]/c,1))-1],m=g/c*f[0];return{layout:n,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[i[1-o]],axisExpandable:v,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:f,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},a.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),gn(r,function(o,s){var l=(i.axisExpandable?q1:K1)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Y1/2,vertical:0},h=[u[n].x+e.x,u[n].y+e.y],v=c[n],f=Er();Ti(f,f,v),nr(f,f,h),this._axesLayout[o]={position:h,rotation:v,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(e){return this._axesMap.get(e)},a.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},a.prototype.eachActiveState=function(e,t,r,i){r==null&&(r=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];T(o,function(g){s.push(e.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;c<i;c++){var h=void 0;if(!u)h="normal";else{h="active";for(var v=e.getValues(s,c),f=0,p=o.length;f<p;f++){var d=l[f].getActiveState(v[f]);if(d==="inactive"){h="inactive";break}}}t(h,c)}},a.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,r=!1,i=0,n=e.length;i<n;i++)t.get(e[i]).model.getActiveState()!=="normal"&&(r=!0);return r},a.prototype.axisCoordToPoint=function(e,t){var r=this._axesLayout[t];return Ne([e,0],r.transform)},a.prototype.getAxisLayout=function(e){return at(this._axesLayout[e])},a.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),r=t.pixelDimIndex,i=t.axisExpandWindow.slice(),n=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[r]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),v=h[0]!=null;if(c)v&&c&&s<n*h[0]?(u="jump",l=s-n*h[2]):v&&c&&s>n*(1-h[0])?(u="jump",l=s-n*(1-h[2])):(l=s-n*h[1])>=0&&(l=s-n*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?ur(l,i,o,"all"):u="none";else{var f=i[1]-i[0],p=o[1]*s/f;i=[Pv(0,p-f/2)],i[1]=Lv(o[1],i[0]+f),i[0]=i[1]-f}return{axisExpandWindow:i,behavior:u}},a}();function za(a,e){return Lv(Pv(a,e[0]),e[1])}function K1(a,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*a,axisNameAvailableWidth:t,axisLabelShow:!0}}function q1(a,e){var t=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,c;return a<o[0]?(s=a*n,c=n):a<=o[1]?(s=e.axisExpandWindow0Pos+a*r-e.axisExpandWindow[0],l=r,u=!0):(s=t-(i-1-a)*n,c=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const j1=X1;function J1(a,e){var t=[];return a.eachComponent("parallel",function(r,i){var n=new j1(r,a,e);n.name="parallel_"+i,n.resize(r,e),r.coordinateSystem=n,n.model=r,t.push(n)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",Se).models[0];r.coordinateSystem=i.coordinateSystem}}),t}var Q1={create:J1};const tS=Q1;var Rv=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return wh([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var r=this.activeIntervals=at(t);if(r)for(var i=r.length-1;i>=0;i--)re(r[i])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=r.length;n<o;n++)if(r[n][0]<=t&&t<=r[n][1])return"active";return"inactive"},e}(zt);ve(Rv,bi);const cu=Rv;var or=!0,ca=Math.min,Lr=Math.max,eS=Math.pow,rS=1e4,aS=6,iS=6,hu="globalPan",nS={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},oS={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},vu={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},sS=0,lS=function(a){E(e,a);function e(t){var r=a.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=t,r.group=new U,r._uid="brushController_"+sS++,T(dS,function(i,n){this._handlers[n]=F(i,this)},r),r}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var r=this._zr;this._enableGlobalPan||my(r,hu,this._uid),T(this._handlers,function(i,n){r.on(n,i)}),this._brushType=t.brushType,this._brushOption=mt(at(vu),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Sy(t,hu,this._uid),T(this._handlers,function(r,i){t.off(i,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var r=this._panels={};T(t,function(i){r[i.panelId]=at(i)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=B(t,function(v){return mt(at(vu),v,!0)});var r="\0-brush-index-",i=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new Vr(i,t,u,l).add(c).update(c).remove(h).execute(),this;function l(v,f){return(v.id!=null?v.id:r+f)+"-"+v.brushType}function u(v,f){return l(v.__brushOption,f)}function c(v,f){var p=t[v];if(f!=null&&i[f]===s)n[v]=i[f];else{var d=n[v]=f!=null?(i[f].__brushOption=p,i[f]):Vv(o,Ev(o,p));Jo(o,d)}}function h(v){i[v]!==s&&o.group.remove(i[v])}},e.prototype.unmount=function(){return this.enableBrush(!1),oo(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(fh);function Ev(a,e){var t=ki[e.brushType].createCover(a,e);return t.__brushOption=e,Nv(t,e),a.group.add(t),t}function Vv(a,e){var t=Qo(e);return t.endCreating&&(t.endCreating(a,e),Nv(e,e.__brushOption)),e}function kv(a,e){var t=e.__brushOption;Qo(e).updateCoverShape(a,e,t.range,t)}function Nv(a,e){var t=e.z;t==null&&(t=rS),a.traverse(function(r){r.z=t,r.z2=t})}function Jo(a,e){Qo(e).updateCommon(a,e),kv(a,e)}function Qo(a){return ki[a.__brushOption.brushType]}function ts(a,e,t){var r=a._panels;if(!r)return or;var i,n=a._transform;return T(r,function(o){o.isTargetByCursor(e,t,n)&&(i=o)}),i}function zv(a,e){var t=a._panels;if(!t)return or;var r=e.__brushOption.panelId;return r!=null?t[r]:or}function oo(a){var e=a._covers,t=e.length;return T(e,function(r){a.group.remove(r)},a),e.length=0,!!t}function sr(a,e){var t=B(a._covers,function(r){var i=r.__brushOption,n=at(i.range);return{brushType:i.brushType,panelId:i.panelId,range:n}});a.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function uS(a){var e=a._track;if(!e.length)return!1;var t=e[e.length-1],r=e[0],i=t[0]-r[0],n=t[1]-r[1],o=eS(i*i+n*n,.5);return o>aS}function Ov(a){var e=a.length-1;return e<0&&(e=0),[a[0],a[e]]}function Bv(a,e,t,r){var i=new U;return i.add(new _t({name:"main",style:es(t),silent:!0,draggable:!0,cursor:"move",drift:Q(fu,a,e,i,["n","s","w","e"]),ondragend:Q(sr,e,{isEnd:!0})})),T(r,function(n){i.add(new _t({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Q(fu,a,e,i,n),ondragend:Q(sr,e,{isEnd:!0})}))}),i}function Gv(a,e,t,r){var i=r.brushStyle.lineWidth||0,n=Lr(i,iS),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,c=t[0][1],h=t[1][1],v=c-n+i/2,f=h-n+i/2,p=c-o,d=h-s,g=p+i,y=d+i;be(a,e,"main",o,s,p,d),r.transformable&&(be(a,e,"w",l,u,n,y),be(a,e,"e",v,u,n,y),be(a,e,"n",l,u,g,n),be(a,e,"s",l,f,g,n),be(a,e,"nw",l,u,n,n),be(a,e,"ne",v,u,n,n),be(a,e,"sw",l,f,n,n),be(a,e,"se",v,f,n,n))}function so(a,e){var t=e.__brushOption,r=t.transformable,i=e.childAt(0);i.useStyle(es(t)),i.attr({silent:!r,cursor:r?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?lo(a,n[0]):hS(a,n);o&&o.attr({silent:!r,invisible:!r,cursor:r?oS[s]+"-resize":null})})}function be(a,e,t,r,i,n,o){var s=e.childOfName(t);s&&s.setShape(fS(rs(a,e,[[r,i],[r+n,i+o]])))}function es(a){return rt({strokeNoScale:!0},a.brushStyle)}function Fv(a,e,t,r){var i=[ca(a,t),ca(e,r)],n=[Lr(a,t),Lr(e,r)];return[[i[0],n[0]],[i[1],n[1]]]}function cS(a){return _r(a.group)}function lo(a,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Eo(t[e],cS(a));return r[i]}function hS(a,e){var t=[lo(a,e[0]),lo(a,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function fu(a,e,t,r,i,n){var o=t.__brushOption,s=a.toRectRange(o.range),l=Hv(e,i,n);T(r,function(u){var c=nS[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=a.fromRectRange(Fv(s[0][0],s[1][0],s[0][1],s[1][1])),Jo(e,t),sr(e,{isEnd:!1})}function vS(a,e,t,r){var i=e.__brushOption.range,n=Hv(a,t,r);T(i,function(o){o[0]+=n[0],o[1]+=n[1]}),Jo(a,e),sr(a,{isEnd:!1})}function Hv(a,e,t){var r=a.group,i=r.transformCoordToLocal(e,t),n=r.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function rs(a,e,t){var r=zv(a,e);return r&&r!==or?r.clipPath(t,a._transform):at(t)}function fS(a){var e=ca(a[0][0],a[1][0]),t=ca(a[0][1],a[1][1]),r=Lr(a[0][0],a[1][0]),i=Lr(a[0][1],a[1][1]);return{x:e,y:t,width:r-e,height:i-t}}function pS(a,e,t){if(!(!a._brushType||gS(a,e.offsetX,e.offsetY))){var r=a._zr,i=a._covers,n=ts(a,e,t);if(!a._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(n&&(n===or||s.panelId===n.panelId)&&ki[s.brushType].contain(i[o],t[0],t[1]))return}n&&r.setCursorStyle("crosshair")}}function uo(a){var e=a.event;e.preventDefault&&e.preventDefault()}function co(a,e,t){return a.childOfName("main").contain(e,t)}function Wv(a,e,t,r){var i=a._creatingCover,n=a._creatingPanel,o=a._brushOption,s;if(a._track.push(t.slice()),uS(a)||i){if(n&&!i){o.brushMode==="single"&&oo(a);var l=at(o);l.brushType=pu(l.brushType,n),l.panelId=n===or?null:n.panelId,i=a._creatingCover=Ev(a,l),a._covers.push(i)}if(i){var u=ki[pu(a._brushType,n)],c=i.__brushOption;c.range=u.getCreatingRange(rs(a,i,a._track)),r&&(Vv(a,i),u.updateCommon(a,i)),kv(a,i),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&ts(a,e,t)&&oo(a)&&(s={isEnd:r,removeOnClick:!0});return s}function pu(a,e){return a==="auto"?e.defaultBrushType:a}var dS={mousedown:function(a){if(this._dragging)du(this,a);else if(!a.target||!a.target.draggable){uo(a);var e=this.group.transformCoordToLocal(a.offsetX,a.offsetY);this._creatingCover=null;var t=this._creatingPanel=ts(this,a,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(a){var e=a.offsetX,t=a.offsetY,r=this.group.transformCoordToLocal(e,t);if(pS(this,a,r),this._dragging){uo(a);var i=Wv(this,a,r,!1);i&&sr(this,i)}},mouseup:function(a){du(this,a)}};function du(a,e){if(a._dragging){uo(e);var t=e.offsetX,r=e.offsetY,i=a.group.transformCoordToLocal(t,r),n=Wv(a,e,i,!0);a._dragging=!1,a._track=[],a._creatingCover=null,n&&sr(a,n)}}function gS(a,e,t){var r=a._zr;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}var ki={lineX:gu(0),lineY:gu(1),rect:{createCover:function(a,e){function t(r){return r}return Bv({toRectRange:t,fromRectRange:t},a,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(a){var e=Ov(a);return Fv(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(a,e,t,r){Gv(a,e,t,r)},updateCommon:so,contain:co},polygon:{createCover:function(a,e){var t=new U;return t.add(new xe({name:"main",style:es(e),silent:!0})),t},getCreatingRange:function(a){return a},endCreating:function(a,e){e.remove(e.childAt(0)),e.add(new ce({name:"main",draggable:!0,drift:Q(vS,a,e),ondragend:Q(sr,a,{isEnd:!0})}))},updateCoverShape:function(a,e,t,r){e.childAt(0).setShape({points:rs(a,e,t)})},updateCommon:so,contain:co}};function gu(a){return{createCover:function(e,t){return Bv({toRectRange:function(r){var i=[r,[0,100]];return a&&i.reverse(),i},fromRectRange:function(r){return r[a]}},e,t,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(e){var t=Ov(e),r=ca(t[0][a],t[1][a]),i=Lr(t[0][a],t[1][a]);return[r,i]},updateCoverShape:function(e,t,r,i){var n,o=zv(e,t);if(o!==or&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(a);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-a]]}var l=[r,n];a&&l.reverse(),Gv(e,t,l,i)},updateCommon:so,contain:co}}const as=lS;function $v(a){return a=is(a),function(e){return Xp(e,a)}}function Zv(a,e){return a=is(a),function(t){var r=e!=null?e:t,i=r?a.width:a.height,n=r?a.x:a.y;return[n,n+(i||0)]}}function Uv(a,e,t){var r=is(a);return function(i,n){return r.contain(n[0],n[1])&&!Pi(i,e,t)}}function is(a){return Ct.create(a)}var yS=["axisLine","axisTickLabel","axisName"],mS=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){a.prototype.init.apply(this,arguments),(this._brushController=new as(r.getZr())).on("brush",F(this._onBrush,this))},e.prototype.render=function(t,r,i,n){if(!SS(t,r,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new U,this.group.add(this._axisGroup),!!t.get("show")){var s=_S(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,v=l.getAxisLayout(h),f=H({strokeContainThreshold:c},v),p=new er(t,f);T(yS,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(f,u,t,s,c,i),Vo(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=Ct.create({x:l[0],y:-o/2,width:u,height:o});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:$v(h),isTargetByCursor:Uv(h,s,n),getLinearBrushOtherExtent:Zv(h,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(xS(i))},e.prototype._onBrush=function(t){var r=t.areas,i=this.axisModel,n=i.axis,o=B(r,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Ht);function SS(a,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===a}function xS(a){var e=a.axis;return B(a.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function _S(a,e){return e.getComponent("parallel",a.get("parallelIndex"))}const bS=mS;var wS={type:"axisAreaSelect",event:"axisAreaSelected"};function AS(a){a.registerAction(wS,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),a.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var TS={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Yv(a){a.registerComponentView(F1),a.registerComponentModel(W1),a.registerCoordinateSystem("parallel",tS),a.registerPreprocessor(k1),a.registerComponentModel(cu),a.registerComponentView(bS),ei(a,"parallel",cu,TS),AS(a)}function DS(a){K(Yv),a.registerChartView(C1),a.registerSeriesModel(P1),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,V1)}var CS=function(){function a(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return a}(),IS=function(a){E(e,a);function e(t){return a.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new CS},e.prototype.buildPath=function(t,r){var i=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+i,r.y2),t.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(t.lineTo(r.x2,r.y2+i),t.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),t.closePath()},e.prototype.highlight=function(){wr(this)},e.prototype.downplay=function(){Ar(this)},e}(Ft),MS=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,i){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,h=t.getData(),v=t.getData("edge"),f=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new IS,g=st(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),S=m.get("curveness"),x=p.node1.getLayout(),b=p.node1.getModel(),_=b.get("localX"),w=b.get("localY"),A=p.node2.getLayout(),D=p.node2.getModel(),C=D.get("localX"),I=D.get("localY"),M=p.getLayout(),P,L,R,V,k,N,z,W;switch(d.shape.extent=Math.max(1,M.dy),d.shape.orient=f,f==="vertical"?(P=(_!=null?_*u:x.x)+M.sy,L=(w!=null?w*c:x.y)+x.dy,R=(C!=null?C*u:A.x)+M.ty,V=I!=null?I*c:A.y,k=P,N=L*(1-S)+V*S,z=R,W=L*S+V*(1-S)):(P=(_!=null?_*u:x.x)+x.dx,L=(w!=null?w*c:x.y)+M.sy,R=C!=null?C*u:A.x,V=(I!=null?I*c:A.y)+M.ty,k=P*(1-S)+R*S,N=L,z=P*S+R*(1-S),W=V),d.setShape({x1:P,y1:L,x2:R,y2:V,cpx1:k,cpy1:N,cpx2:z,cpy2:W}),d.useStyle(m.getItemStyle()),d.style.fill){case"source":d.style.fill=p.node1.getVisual("color"),d.style.decal=p.node1.getVisual("style").decal;break;case"target":d.style.fill=p.node2.getVisual("color"),d.style.decal=p.node2.getVisual("style").decal;break;case"gradient":var Z=p.node1.getVisual("color"),j=p.node2.getVisual("color");tt(Z)&&tt(j)&&(d.style.fill=new mi(0,0,+(f==="horizontal"),+(f==="vertical"),[{color:Z,offset:0},{color:j,offset:1}]))}var q=y.getModel("emphasis");Nt(d,y,"lineStyle",function(dt){return dt.getItemStyle()}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var J=q.get("focus");St(d,J==="adjacency"?p.getAdjacentDataIndices():J,q.get("blurScope"),q.get("disabled")),st(d).dataType="edge"}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),S=g.getModel("emphasis"),x=new _t({shape:{x:y!=null?y*u:d.x,y:m!=null?m*c:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});qt(x,Pt(g),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:p.id}),x.disableLabelAnimation=!0,x.setStyle("fill",p.getVisual("color")),x.setStyle("decal",p.getVisual("style").decal),Nt(x,g),s.add(x),h.setItemGraphicEl(p.dataIndex,x),st(x).dataType="node";var b=S.get("focus");St(x,b==="adjacency"?p.getAdjacentDataIndices():b,S.get("blurScope"),S.get("disabled"))}),h.eachItemGraphicEl(function(p,d){var g=h.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){n._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){n._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(LS(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(yt);function LS(a,e,t){var r=new _t({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return ie(r,{shape:{width:a.width+20}},e,t),r}const PS=MS;var RS=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var i=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Kt(o[l],this,r));if(n&&i){var u=Iv(n,i,this,!0,c);return u.data}function c(h,v){h.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(f.parentModel=m)}return f}),v.wrapMethod("getItemModel",function(f,p){var d=f.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,S=d.levelModels[m];S&&(f.parentModel=S)}return f})}},e.prototype.setNodePosition=function(t,r){var i=this.option.data||this.option.nodes,n=i[t];n.localX=r[0],n.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,i){function n(f){return isNaN(f)||f==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Gt("nameValue",{name:u,value:l,noValue:n(l)})}else{var c=this.getGraph().getNodeByIndex(t),h=c.getLayout().value,v=this.getDataParams(t,i).data.name;return Gt("nameValue",{name:v!=null?v+"":null,value:h,noValue:n(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var i=a.prototype.getDataParams.call(this,t,r);if(i.value==null&&r==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Tt);const ES=RS;function VS(a,e){a.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),i=t.get("nodeGap"),n=kS(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,c=l.edges;zS(u);var h=se(u,function(d){return d.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),f=t.get("orient"),p=t.get("nodeAlign");NS(u,c,r,i,o,s,v,f,p)})}function kS(a,e){return oe(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function NS(a,e,t,r,i,n,o,s,l){OS(a,e,t,i,n,s,l),HS(a,e,n,i,r,o,s),jS(a,s)}function zS(a){T(a,function(e){var t=ze(e.outEdges,li),r=ze(e.inEdges,li),i=e.getValue()||0,n=Math.max(t,r,i);e.setLayout({value:n},!0)})}function OS(a,e,t,r,i,n,o){for(var s=[],l=[],u=[],c=[],h=0,v=0;v<e.length;v++)s[v]=1;for(var v=0;v<a.length;v++)l[v]=a[v].inEdges.length,l[v]===0&&u.push(a[v]);for(var f=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>f&&(f=g.depth),d.setLayout({depth:y?g.depth:h},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;m<d.outEdges.length;m++){var S=d.outEdges[m],x=e.indexOf(S);s[x]=0;var b=S.node2,_=a.indexOf(b);--l[_]===0&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(var v=0;v<s.length;v++)if(s[v]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=f>h-1?f:h-1;o&&o!=="left"&&BS(a,o,n,w);var A=n==="vertical"?(i-t)/w:(r-t)/w;FS(a,A,n)}function Xv(a){var e=a.hostGraph.data.getRawDataItem(a.dataIndex);return e.depth!=null&&e.depth>=0}function BS(a,e,t,r){if(e==="right"){for(var i=[],n=a,o=0;n.length;){for(var s=0;s<n.length;s++){var l=n[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}n=i,i=[],++o}T(a,function(h){Xv(h)||h.setLayout({depth:Math.max(0,r-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&GS(a,r)}function GS(a,e){T(a,function(t){!Xv(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function FS(a,e,t){T(a,function(r){var i=r.getLayout().depth*e;t==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function HS(a,e,t,r,i,n,o){var s=WS(a,o);$S(s,e,t,r,i,o),yn(s,i,t,r,o);for(var l=1;n>0;n--)l*=.99,ZS(s,l,o),yn(s,i,t,r,o),qS(s,l,o),yn(s,i,t,r,o)}function WS(a,e){var t=[],r=e==="vertical"?"y":"x",i=Xn(a,function(n){return n.getLayout()[r]});return i.keys.sort(function(n,o){return n-o}),T(i.keys,function(n){t.push(i.buckets.get(n))}),t}function $S(a,e,t,r,i,n){var o=1/0;T(a,function(s){var l=s.length,u=0;T(s,function(h){u+=h.getLayout().value});var c=n==="vertical"?(r-(l-1)*i)/u:(t-(l-1)*i)/u;c<o&&(o=c)}),T(a,function(s){T(s,function(l,u){var c=l.getLayout().value*o;n==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),T(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function yn(a,e,t,r,i){var n=i==="vertical"?"x":"y";T(a,function(o){o.sort(function(d,g){return d.getLayout()[n]-g.getLayout()[n]});for(var s,l,u,c=0,h=o.length,v=i==="vertical"?"dx":"dy",f=0;f<h;f++)l=o[f],u=c-l.getLayout()[n],u>0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[n]+l.getLayout()[v]+e;var p=i==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var f=h-2;f>=0;--f)l=o[f],u=l.getLayout()[n]+l.getLayout()[v]+e-c,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[n]}})}function ZS(a,e,t){T(a.slice().reverse(),function(r){T(r,function(i){if(i.outEdges.length){var n=ze(i.outEdges,US,t)/ze(i.outEdges,li);if(isNaN(n)){var o=i.outEdges.length;n=o?ze(i.outEdges,YS,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-Oe(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-Oe(i,t))*e;i.setLayout({y:l},!0)}}})})}function US(a,e){return Oe(a.node2,e)*a.getValue()}function YS(a,e){return Oe(a.node2,e)}function XS(a,e){return Oe(a.node1,e)*a.getValue()}function KS(a,e){return Oe(a.node1,e)}function Oe(a,e){return e==="vertical"?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function li(a){return a.getValue()}function ze(a,e,t){for(var r=0,i=a.length,n=-1;++n<i;){var o=+e(a[n],t);isNaN(o)||(r+=o)}return r}function qS(a,e,t){T(a,function(r){T(r,function(i){if(i.inEdges.length){var n=ze(i.inEdges,XS,t)/ze(i.inEdges,li);if(isNaN(n)){var o=i.inEdges.length;n=o?ze(i.inEdges,KS,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-Oe(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-Oe(i,t))*e;i.setLayout({y:l},!0)}}})})}function jS(a,e){var t=e==="vertical"?"x":"y";T(a,function(r){r.outEdges.sort(function(i,n){return i.node2.getLayout()[t]-n.node2.getLayout()[t]}),r.inEdges.sort(function(i,n){return i.node1.getLayout()[t]-n.node1.getLayout()[t]})}),T(a,function(r){var i=0,n=0;T(r.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),T(r.inEdges,function(o){o.setLayout({ty:n},!0),n+=o.getLayout().dy})})}function JS(a){a.eachSeriesByType("sankey",function(e){var t=e.getGraph(),r=t.nodes;if(r.length){var i=1/0,n=-1/0;T(r,function(o){var s=o.getLayout().value;s<i&&(i=s),s>n&&(n=s)}),T(r,function(o){var s=new It({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:e.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}})}function QS(a){a.registerChartView(PS),a.registerSeriesModel(ES),a.registerLayout(VS),a.registerVisual(JS),a.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Kv=function(){function a(){}return a.prototype.getInitialData=function(e,t){var r,i=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],v=u[1-c],f=[i,n],p=f[c].get("type"),d=f[1-c].get("type"),g=e.data;if(g&&l){var y=[];T(g,function(x,b){var _;$(x)?(_=x.slice(),x.unshift(b)):$(x.value)?(_=H({},x),_.value=_.value.slice(),x.value.unshift(b)):_=x,y.push(_)}),e.data=y}var m=this.defaultValueDimensions,S=[{name:h,type:Kn(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Kn(d),dimsDef:m.slice()}];return xa(this,{coordDimensions:S,dimensionsCount:m.length+1,encodeDefaulter:Q(Kp,S,this)})},a.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},a}(),qv=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Tt);ve(qv,Kv,!0);const tx=qv;var ex=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var c=n.getItemLayout(u),h=yu(c,n,u,l,!0);n.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,c){var h=s.getItemGraphicEl(c);if(!n.hasValue(u)){o.remove(h);return}var v=n.getItemLayout(u);h?(De(h),jv(v,h,n,u)):h=yu(v,n,u,l),o.add(h),n.setItemGraphicEl(u,h)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=n},e.prototype.remove=function(t){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&r.remove(n)})},e.type="boxplot",e}(yt),rx=function(){function a(){}return a}(),ax=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new rx},e.prototype.buildPath=function(t,r){var i=r.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n<i.length;n++)t.moveTo(i[n][0],i[n][1]),n++,t.lineTo(i[n][0],i[n][1])},e}(Ft);function yu(a,e,t,r,i){var n=a.ends,o=new ax({shape:{points:i?ix(n,r,a):n}});return jv(a,o,e,t,i),o}function jv(a,e,t,r,i){var n=t.hostModel,o=xi[i?"initProps":"updateProps"];o(e,{shape:{points:a.ends}},n,r),e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(r),l=s.getModel("emphasis");Nt(e,s),St(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function ix(a,e,t){return B(a,function(r){return r=r.slice(),r[e]=t.initBaseline,r})}const nx=ex;function ox(a,e){}var Qr=T;function sx(a){var e=lx(a);Qr(e,function(t){var r=t.seriesModels;!r.length||(ux(t),Qr(r,function(i,n){cx(i,t.boxOffsetList[n],t.boxWidthList[n])}))})}function lx(a){var e=[],t=[];return a.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),n=bt(t,i);n<0&&(n=t.length,t[n]=i,e[n]={axis:i,seriesModels:[]}),e[n].seriesModels.push(r)}),e}function ux(a){var e=a.axis,t=a.seriesModels,r=t.length,i=a.boxWidthList=[],n=a.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Qr(t,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Qr(t,function(p){var d=p.get("boxWidth");$(d)||(d=[d,d]),o.push([G(d[0],s)||0,G(d[1],s)||0])});var c=s*.8-2,h=c/r*.3,v=(c-h*(r-1))/r,f=v/2-c/2;Qr(t,function(p,d){n.push(f),f+=h+v,i.push(Math.min(Math.max(v,o[d][0]),o[d][1]))})}function cx(a,e,t){var r=a.coordinateSystem,i=a.getData(),n=t/2,o=a.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var h=0;h<i.count();h++){var v=i.get(u,h),f=S(v,c[2],h),p=S(v,c[0],h),d=S(v,c[1],h),g=S(v,c[3],h),y=S(v,c[4],h),m=[];x(m,d,!1),x(m,g,!0),m.push(p,d,y,g),b(m,p),b(m,y),b(m,f),i.setItemLayout(h,{initBaseline:f[s],ends:m})}function S(_,w,A){var D=i.get(w,A),C=[];C[o]=_,C[s]=D;var I;return isNaN(_)||isNaN(D)?I=[NaN,NaN]:(I=r.dataToPoint(C),I[o]+=e),I}function x(_,w,A){var D=w.slice(),C=w.slice();D[o]+=n,C[o]-=n,A?_.push(D,C):_.push(C,D)}function b(_,w){var A=w.slice(),D=w.slice();A[o]-=n,D[o]+=n,_.push(A,D)}}function hx(a,e){e=e||{};for(var t=[],r=[],i=e.boundIQR,n=i==="none"||i===0,o=0;o<a.length;o++){var s=re(a[o].slice()),l=Fi(s,.25),u=Fi(s,.5),c=Fi(s,.75),h=s[0],v=s[s.length-1],f=(i==null?1.5:i)*(c-l),p=n?h:Math.max(h,l-f),d=n?v:Math.min(v,c+f),g=e.itemNameFormatter,y=nt(g)?g({value:o}):tt(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,c,d]);for(var m=0;m<s.length;m++){var S=s[m];if(S<p||S>d){var x=[y,S];r.push(x)}}}return{boxData:t,outliers:r}}var vx={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==qp){var r="";Mh(r)}var i=hx(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function fx(a){a.registerSeriesModel(tx),a.registerChartView(nx),a.registerVisual(ox),a.registerLayout(sx),a.registerTransform(vx)}var px=["color","borderColor"],dx=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){ma(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),i=this._data,n=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),r.diff(i).add(function(c){if(r.hasValue(c)){var h=r.getItemLayout(c);if(s&&mu(u,h))return;var v=mn(h,c,!0);ie(v,{shape:{points:h.ends}},t,c),Sn(v,r,c,o),n.add(v),r.setItemGraphicEl(c,v)}}).update(function(c,h){var v=i.getItemGraphicEl(h);if(!r.hasValue(c)){n.remove(v);return}var f=r.getItemLayout(c);if(s&&mu(u,f)){n.remove(v);return}v?(ht(v,{shape:{points:f.ends}},t,c),De(v)):v=mn(f),Sn(v,r,c,o),n.add(v),r.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&n.remove(h)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),xu(t,this.group);var r=t.get("clip",!0)?ko(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var i=r.getData(),n=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=mn(s);Sn(l,i,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){xu(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(yt),gx=function(){function a(){}return a}(),yx=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new gx},e.prototype.buildPath=function(t,r){var i=r.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(Ft);function mn(a,e,t){var r=a.ends;return new yx({shape:{points:t?mx(r,a):r},z2:100})}function mu(a,e){for(var t=!0,r=0;r<e.ends.length;r++)if(a.contain(e.ends[r][0],e.ends[r][1])){t=!1;break}return t}function Sn(a,e,t,r){var i=e.getItemModel(t);a.useStyle(e.getItemVisual(t,"style")),a.style.strokeNoScale=!0,a.__simpleBox=r,Nt(a,i)}function mx(a,e){return B(a,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var Sx=function(){function a(){}return a}(),Su=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Sx},e.prototype.buildPath=function(t,r){for(var i=r.points,n=0;n<i.length;)if(this.__sign===i[n++]){var o=i[n++];t.moveTo(o,i[n++]),t.lineTo(o,i[n++])}else n+=3},e}(Ft);function xu(a,e,t,r){var i=a.getData(),n=i.getLayout("largePoints"),o=new Su({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Su({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});e.add(s),_u(1,o,a),_u(-1,s,a),r&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function _u(a,e,t,r){var i=t.get(["itemStyle",a>0?"borderColor":"borderColor0"])||t.get(["itemStyle",a>0?"color":"color0"]),n=t.getModel("itemStyle").getItemStyle(px);e.useStyle(n),e.style.fill=null,e.style.stroke=i}const xx=dx;var Jv=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,i){var n=r.getItemLayout(t);return n&&i.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Tt);ve(Jv,Kv,!0);const _x=Jv;function bx(a){!a||!$(a.series)||T(a.series,function(e){Rt(e)&&e.type==="k"&&(e.type="candlestick")})}var wx=["itemStyle","borderColor"],Ax=["itemStyle","borderColor0"],Tx=["itemStyle","color"],Dx=["itemStyle","color0"],Cx={seriesType:"candlestick",plan:Si(),performRawSeries:!0,reset:function(a,e){function t(n,o){return o.get(n>0?Tx:Dx)}function r(n,o){return o.get(n>0?wx:Ax)}if(!e.isSeriesFiltered(a)){var i=a.pipelineContext.large;return!i&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var h=o.ensureUniqueItemVisual(s,"style");H(h,c)}}}}}};const Ix=Cx;var Mx={seriesType:"candlestick",plan:Si(),reset:function(a){var e=a.coordinateSystem,t=a.getData(),r=Lx(a,t),i=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=B(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],c=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:a.pipelineContext.large?p:f};function f(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var S=m.get(s,y),x=m.get(u,y),b=m.get(c,y),_=m.get(h,y),w=m.get(v,y),A=Math.min(x,b),D=Math.max(x,b),C=R(A,S),I=R(D,S),M=R(_,S),P=R(w,S),L=[];V(L,I,0),V(L,C,1),L.push(N(P),N(I),N(M),N(C)),g.setItemLayout(y,{sign:bu(m,y,x,b,c),initBaseline:x>b?I[n]:C[n],ends:L,brushRect:k(_,w,S)})}function R(z,W){var Z=[];return Z[i]=W,Z[n]=z,isNaN(W)||isNaN(z)?[NaN,NaN]:e.dataToPoint(Z)}function V(z,W,Z){var j=W.slice(),q=W.slice();j[i]=Hi(j[i]+r/2,1,!1),q[i]=Hi(q[i]-r/2,1,!0),Z?z.push(j,q):z.push(q,j)}function k(z,W,Z){var j=R(z,Z),q=R(W,Z);return j[i]-=r/2,q[i]-=r/2,{x:j[0],y:j[1],width:r,height:q[1]-j[1]}}function N(z){return z[i]=Hi(z[i],1),z}}function p(d,g){for(var y=Je(d.count*4),m=0,S,x=[],b=[],_,w=g.getStore();(_=d.next())!=null;){var A=w.get(s,_),D=w.get(u,_),C=w.get(c,_),I=w.get(h,_),M=w.get(v,_);if(isNaN(A)||isNaN(I)||isNaN(M)){y[m++]=NaN,m+=3;continue}y[m++]=bu(w,_,D,C,c),x[i]=A,x[n]=I,S=e.dataToPoint(x,null,b),y[m++]=S?S[0]:NaN,y[m++]=S?S[1]:NaN,x[n]=M,S=e.dataToPoint(x,null,b),y[m++]=S?S[1]:NaN}g.setLayout("largePoints",y)}}};function bu(a,e,t,r,i){var n;return t>r?n=-1:t<r?n=1:n=e>0?a.get(i,e-1)<=r?1:-1:1,n}function Lx(a,e){var t=a.getBaseAxis(),r,i=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),n=G(kt(a.get("barMaxWidth"),i),i),o=G(kt(a.get("barMinWidth"),1),i),s=a.get("barWidth");return s!=null?G(s,i):Math.max(Math.min(i/2,n),o)}const Px=Mx;function Rx(a){a.registerChartView(xx),a.registerSeriesModel(_x),a.registerPreprocessor(bx),a.registerVisual(Ix),a.registerLayout(Px)}function wu(a,e){var t=e.rippleEffectColor||e.color;a.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var Ex=function(a){E(e,a);function e(t,r){var i=a.call(this)||this,n=new Aa(t,r),o=new U;return i.add(n),i.add(o),i.updateData(t,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,i=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var l=Dt(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/n*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}wu(o,t)},e.prototype.updateEffectAnimation=function(t){for(var r=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(r[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}wu(i,t)},e.prototype.highlight=function(){wr(this)},e.prototype.downplay=function(){Ar(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,r){var i=this,n=t.hostModel;this.childAt(0).updateData(t,r);var o=this.childAt(1),s=t.getItemModel(r),l=t.getItemVisual(r,"symbol"),u=ya(t.getItemVisual(r,"symbolSize")),c=t.getItemVisual(r,"style"),h=c&&c.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",h)});var f=ga(t.getItemVisual(r,"symbolOffset"),u);f&&(o.x=f[0],o.y=f[1]);var p=t.getItemVisual(r,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=n.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=r/t.count(),d.z=n.getShallow("z")||0,d.zlevel=n.getShallow("zlevel")||0,d.symbolType=l,d.color=h,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&i.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=d,St(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(U);const Vx=Ex;var kx=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Ta(Vx)},e.prototype.render=function(t,r,i){var n=t.getData(),o=this._symbolDraw;o.updateData(n,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,i=r&&r.getArea&&r.getArea();return t.get("clip",!0)?i:null},e.prototype.updateTransform=function(t,r,i){var n=t.getData();this.group.dirty();var o=Da("").reset(t,r,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=jp(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(yt);const Nx=kx;var zx=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return lr(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,r,i){return i.point(r.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Tt);const Ox=zx;function Bx(a){a.registerChartView(Nx),a.registerSeriesModel(Ox),a.registerLayout(Da("effectScatter"))}var Gx=function(a){E(e,a);function e(t,r,i){var n=a.call(this)||this;return n.add(n.createLine(t,r,i)),n._updateEffectSymbol(t,r),n}return e.prototype.createLine=function(t,r,i){return new qo(t,r,i)},e.prototype._updateEffectSymbol=function(t,r){var i=t.getItemModel(r),n=i.getModel("effect"),o=n.get("symbolSize"),s=n.get("symbol");$(o)||(o=[o,o]);var l=t.getItemVisual(r,"style"),u=n.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Dt(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(n.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,n,r))},e.prototype._updateEffectAnimation=function(t,r,i){var n=this.childAt(1);if(!!n){var o=t.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),h=Yt(r.get("delay"),function(f){return f/t.count()*s/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),c>0&&(s=this._getLineLength(n)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var v=void 0;nt(h)?v=h(i):v=h,n.__t>0&&(v=-s*n.__t),this._animateSymbol(n,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,i,n,o){if(r>0){t.__t=0;var s=this,l=t.animate("",n).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Ur(t.__p1,t.__cp1)+Ur(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,i){this.childAt(0).updateData(t,r,i),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Th,c=Jp;s[0]=u(r[0],n[0],i[0],o),s[1]=u(r[1],n[1],i[1],o);var h=t.__t<1?c(r[0],n[0],i[0],o):c(i[0],n[0],r[0],1-o),v=t.__t<1?c(r[1],n[1],i[1],o):c(i[1],n[1],r[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Ur(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Ur(r,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,r){this.childAt(0).updateLayout(t,r);var i=t.getItemModel(r).getModel("effect");this._updateEffectAnimation(t,i,r)},e}(U);const Qv=Gx;var Fx=function(a){E(e,a);function e(t,r,i){var n=a.call(this)||this;return n._createPolyline(t,r,i),n}return e.prototype._createPolyline=function(t,r,i){var n=t.getItemLayout(r),o=new xe({shape:{points:n}});this.add(o),this._updateCommonStl(t,r,i)},e.prototype.updateData=function(t,r,i){var n=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(r)}};ht(o,s,n,r),this._updateCommonStl(t,r,i)},e.prototype._updateCommonStl=function(t,r,i){var n=this.childAt(0),o=t.getItemModel(r),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||t.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}n.useStyle(t.getItemVisual(r,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var v=n.ensureState("emphasis");v.style=s,St(this,l,u,c)},e.prototype.updateLayout=function(t,r){var i=this.childAt(0);i.setShape("points",t.getItemLayout(r))},e}(U);const tf=Fx;var Hx=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,r,i){return new tf(t,r,i)},e.prototype._updateAnimationPoints=function(t,r){this._points=r;for(var i=[0],n=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];n+=Ur(s,l),i.push(n)}if(n===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=n;this._offsets=i,this._length=n},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var r=t.__t<1?t.__t:2-t.__t,i=this._points,n=this._offsets,o=i.length;if(!!n){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(n[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(n[l]>r);l++);l=Math.min(l-1,o-2)}var c=(r-n[l])/(n[l+1]-n[l]),h=i[l],v=i[l+1];t.x=h[0]*(1-c)+c*v[0],t.y=h[1]*(1-c)+c*v[1];var f=t.__t<1?v[0]-h[0]:h[0]-v[0],p=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(p,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(Qv);const Wx=Hx;var $x=function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a}(),Zx=function(a){E(e,a);function e(t){var r=a.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $x},e.prototype.buildPath=function(t,r){var i=r.segs,n=r.curveness,o;if(r.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){t.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)t.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],h=i[o++],v=i[o++];if(t.moveTo(u,c),n>0){var f=(u+h)/2-(c-v)*n,p=(c+v)/2-(h-u)*n;t.quadraticCurveTo(f,p,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<n.length;){var c=n[u++];if(c>0)for(var h=n[u++],v=n[u++],f=1;f<c;f++){var p=n[u++],d=n[u++];if(Ws(h,v,p,d,s,t,r))return l}l++}else for(var l=0,u=0;u<n.length;){var h=n[u++],v=n[u++],p=n[u++],d=n[u++];if(o>0){var g=(h+p)/2-(v-d)*o,y=(v+d)/2-(p-h)*o;if(Qp(h,v,g,y,p,d,s,t,r))return l}else if(Ws(h,v,p,d,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var i=this.transformCoordToLocal(t,r),n=this.getBoundingRect();if(t=i[0],r=i[1],n.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,i=r.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],h=i[u++];n=Math.min(c,n),s=Math.max(c,s),o=Math.min(h,o),l=Math.max(h,l)}t=this._rect=new Ct(n,o,s,l)}return t},e}(Ft),Ux=function(){function a(){this.group=new U}return a.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},a.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},a.prototype.incrementalUpdate=function(e,t){var r=this._newAdded[0],i=t.getLayout("linesPoints"),n=r&&r.shape.segs;if(n&&n.length<2e4){var o=n.length,s=new Float32Array(o+i.length);s.set(n),s.set(i,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,t),l.__startIndex=e.start}},a.prototype.remove=function(){this._clear()},a.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},a.prototype._create=function(){var e=new Zx({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},a.prototype._setCommon=function(e,t,r){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var n=t.getVisual("style");n&&n.stroke&&e.setStyle("stroke",n.stroke),e.setStyle("fill",null);var o=st(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}();const Yx=Ux;var Xx={seriesType:"lines",plan:Si(),reset:function(a){var e=a.coordinateSystem;if(!!e){var t=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(i,n){var o=[];if(r){var s=void 0,l=i.end-i.start;if(t){for(var u=0,c=i.start;c<i.end;c++)u+=a.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,v=[],c=i.start;c<i.end;c++){var f=a.getLineCoords(c,o);t&&(s[h++]=f);for(var p=0;p<f;p++)v=e.dataToPoint(o[p],!1,v),s[h++]=v[0],s[h++]=v[1]}n.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var d=n.getItemModel(c),f=a.getLineCoords(c,o),g=[];if(t)for(var y=0;y<f;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}n.setItemLayout(c,g)}}}}}};const ef=Xx;var Kx=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this._updateLineDraw(n,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var h=t.get("clip",!0)&&ko(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,i){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,i){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,i){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=ef.reset(t,r,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,r){var i=this._lineDraw,n=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new Yx:new jo(o?n?Wx:tf:n?Qv:qo),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(yt);const qx=Kx;var jx=typeof Uint32Array>"u"?Array:Uint32Array,Jx=typeof Float64Array>"u"?Array:Float64Array;function Au(a){var e=a.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(a.data=B(e,function(t){var r=[t[0].coord,t[1].coord],i={coords:r};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),Io([i,t[0],t[1]])}))}var Qx=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],Au(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(Au(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Zn(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Zn(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;o<n;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[i+o*2],r[o][1]=this._flatCoords[i+o*2+1];return n}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),ne(t[0])){for(var i=t.length,n=new jx(i),o=new Jx(i),s=0,l=0,u=0,c=0;c<i;){u++;var h=t[c++];n[l++]=s+r,n[l++]=h;for(var v=0;v<h;v++){var f=t[c++],p=t[c++];o[s++]=f,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,r){var i=new Xt(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(n,o,s,l){if(n instanceof Array)return NaN;i.hasItemOption=!0;var u=n.value;if(u!=null)return u instanceof Array?u[l]:u}),i},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=n.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Gt("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Tt);const t_=Qx;function Oa(a){return a instanceof Array||(a=[a,a]),a}var e_={seriesType:"lines",reset:function(a){var e=Oa(a.get("symbol")),t=Oa(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function i(n,o){var s=n.getItemModel(o),l=Oa(s.getShallow("symbol",!0)),u=Oa(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};const r_=e_;function a_(a){a.registerChartView(qx),a.registerSeriesModel(t_),a.registerLayout(ef),a.registerVisual(r_)}var i_=256,n_=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=$s.createCanvas();this.canvas=e}return a.prototype.update=function(e,t,r,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),f=e.length;h.width=t,h.height=r;for(var p=0;p<f;++p){var d=e[p],g=d[0],y=d[1],m=d[2],S=i(m);v.globalAlpha=S,v.drawImage(s,g-c,y-c)}if(!h.width||!h.height)return h;for(var x=v.getImageData(0,0,h.width,h.height),b=x.data,_=0,w=b.length,A=this.minOpacity,D=this.maxOpacity,C=D-A;_<w;){var S=b[_+3]/256,I=Math.floor(S*(i_-1))*4;if(S>0){var M=o(S)?l:u;S>0&&(S=S*C+A),b[_++]=M[I],b[_++]=M[I+1],b[_++]=M[I+2],b[_++]=M[I+3]*S*256}else _+=4}return v.putImageData(x,0,0),h},a.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=$s.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},a.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,i=r[t]||(r[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},a}();const o_=n_;function s_(a,e,t){var r=a[1]-a[0];e=B(e,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var i=e.length,n=0;return function(o){var s;for(s=n;s<i;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===i)for(s=n-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<i&&t[s]}}function l_(a,e){var t=a[1]-a[0];return e=[(e[0]-a[0])/t,(e[1]-a[0])/t],function(r){return r>=e[0]&&r<=e[1]}}function Tu(a){var e=a.dimensions;return e[0]==="lng"&&e[1]==="lat"}var u_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):Tu(o)&&this._renderOnGeo(o,t,n,i)},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,i,n){var o=r.coordinateSystem;o&&(Tu(o)?this.render(r,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ma(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,i,n,o){var s=t.coordinateSystem,l=Sa(s,"cartesian2d"),u,c,h,v;if(l){var f=s.getAxis("x"),p=s.getAxis("y");u=f.getBandWidth()+.5,c=p.getBandWidth()+.5,h=f.scale.getExtent(),v=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),b=Pt(t),_=t.getModel("emphasis"),w=_.get("focus"),A=_.get("blurScope"),D=_.get("disabled"),C=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],I=i;I<n;I++){var M=void 0,P=g.getItemVisual(I,"style");if(l){var L=g.get(C[0],I),R=g.get(C[1],I);if(isNaN(g.get(C[2],I))||L<h[0]||L>h[1]||R<v[0]||R>v[1])continue;var V=s.dataToPoint([L,R]);M=new _t({shape:{x:V[0]-u/2,y:V[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(C[1],I)))continue;M=new _t({z2:1,shape:s.dataToRect([g.get(C[0],I)]).contentShape,style:P})}if(g.hasItemOption){var k=g.getItemModel(I),N=k.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),m=k.getModel(["blur","itemStyle"]).getItemStyle(),S=k.getModel(["select","itemStyle"]).getItemStyle(),x=k.get(["itemStyle","borderRadius"]),w=N.get("focus"),A=N.get("blurScope"),D=N.get("disabled"),b=Pt(k)}M.shape.r=x;var z=t.getRawValue(I),W="-";z&&z[2]!=null&&(W=z[2]+""),qt(M,b,{labelFetcher:t,labelDataIndex:I,defaultOpacity:P.opacity,defaultText:W}),M.ensureState("emphasis").style=y,M.ensureState("blur").style=m,M.ensureState("select").style=S,St(M,w,A,D),M.incremental=o,o&&(M.states.emphasis.hoverLayer=!0),d.add(M),g.setItemGraphicEl(I,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,r,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new o_;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),h=t.getRoamTransform();c.applyTransform(h);var v=Math.max(c.x,0),f=Math.max(c.y,0),p=Math.min(c.width+c.x,n.getWidth()),d=Math.min(c.height+c.y,n.getHeight()),g=p-v,y=d-f,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(m,function(w,A,D){var C=t.dataToPoint([w,A]);return C[0]-=v,C[1]-=f,C.push(D),C}),x=i.getExtent(),b=i.type==="visualMap.continuous"?l_(x,i.option.range):s_(x,i.getPieceList(),i.option.selected);u.update(S,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var _=new he({style:{width:g,height:y,x:v,y:f,image:u.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(yt);const c_=u_;var h_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return lr(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Dh.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Tt);const v_=h_;function f_(a){a.registerChartView(c_),a.registerSeriesModel(v_)}var p_=["itemStyle","borderWidth"],Du=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],xn=new rr,d_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:Du[+c],categoryDim:Du[1-+c]};return o.diff(s).add(function(f){if(!!o.hasValue(f)){var p=Iu(o,f),d=Cu(o,f,p,v),g=Mu(o,v,d);o.setItemGraphicEl(f,g),n.add(g),Pu(g,v,d)}}).update(function(f,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(f)){n.remove(d);return}var g=Iu(o,f),y=Cu(o,f,g,v),m=lf(o,y);d&&m!==d.__pictorialShapeStr&&(n.remove(d),o.setItemGraphicEl(f,null),d=null),d?b_(d,v,y):d=Mu(o,v,y,!0),o.setItemGraphicEl(f,d),d.__pictorialSymbolMeta=y,n.add(d),Pu(d,v,y)}).remove(function(f){var p=s.getItemGraphicEl(f);p&&Lu(s,f,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){Lu(n,st(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(yt);function Cu(a,e,t,r){var i=a.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:i,itemModel:t,symbolType:a.getItemVisual(e,"symbol")||"circle",style:a.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};g_(t,n,i,r,v),y_(a,e,i,n,o,v.boundingLength,v.pxSign,c,r,v),m_(t,v.symbolScale,u,r,v);var f=v.symbolSize,p=ga(t.get("symbolOffset"),f);return S_(t,f,i,n,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,r,v),v}function g_(a,e,t,r,i){var n=r.valueDim,o=a.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),c;if($(o)){var h=[_n(s,o[0])-l,_n(s,o[1])-l];h[1]<h[0]&&h.reverse(),c=h[u]}else o!=null?c=_n(s,o)-l:e?c=r.coordSysExtent[n.index][u]-l:c=t[n.wh];i.boundingLength=c,e&&(i.repeatCutLength=t[n.wh]),i.pxSign=c>0?1:-1}function _n(a,e){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(e)))}function y_(a,e,t,r,i,n,o,s,l,u){var c=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),f=a.getItemVisual(e,"symbolSize"),p;$(f)?p=f.slice():f==null?p=["100%","100%"]:p=[f,f],p[h.index]=G(p[h.index],v),p[c.index]=G(p[c.index],r?v:Math.abs(n)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[c.index]*=(l.isHorizontal?-1:1)*o}function m_(a,e,t,r,i){var n=a.get(p_)||0;n&&(xn.attr({scaleX:e[0],scaleY:e[1],rotation:t}),xn.updateTransform(),n/=xn.getLineScale(),n*=e[r.valueDim.index]),i.valueLineWidth=n||0}function S_(a,e,t,r,i,n,o,s,l,u,c,h){var v=c.categoryDim,f=c.valueDim,p=h.pxSign,d=Math.max(e[f.index]+s,0),g=d;if(r){var y=Math.abs(l),m=Yt(a.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var x=G(m,e[f.index]),b=Math.max(d+x*2,0),_=S?0:x*2,w=td(r),A=w?r:Ru((y+_)/b),D=y-A*d;x=D/2/(S?A:Math.max(A-1,1)),b=d+x*2,_=S?0:x*2,!w&&r!=="fixed"&&(A=u?Ru((Math.abs(u)+_)/b):0),g=A*b-_,h.repeatTimes=A,h.symbolMargin=x}var C=p*(g/2),I=h.pathPosition=[];I[v.index]=t[v.wh]/2,I[f.index]=o==="start"?C:o==="end"?l-C:l/2,n&&(I[0]+=n[0],I[1]+=n[1]);var M=h.bundlePosition=[];M[v.index]=t[v.xy],M[f.index]=t[f.xy];var P=h.barRectShape=H({},t);P[f.wh]=p*Math.max(Math.abs(t[f.wh]),Math.abs(I[f.index]+C)),P[v.wh]=t[v.wh];var L=h.clipShape={};L[v.xy]=-t[v.xy],L[v.wh]=c.ecSize[v.wh],L[f.xy]=0,L[f.wh]=t[f.wh]}function rf(a){var e=a.symbolPatternSize,t=Dt(a.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function af(a,e,t,r){var i=a.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,h=n[e.valueDim.index]+o+t.symbolMargin*2;for(ns(a,function(d){d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,c<u?br(d,null,p(c),t,r):br(d,null,{scaleX:0,scaleY:0},t,r,function(){i.remove(d)}),c++});c<u;c++){var v=rf(t);v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,i.add(v);var f=p(c);br(v,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},t,r)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function nf(a,e,t,r){var i=a.__pictorialBundle,n=a.__pictorialMainPath;n?br(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(n=a.__pictorialMainPath=rf(t),i.add(n),br(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function of(a,e,t){var r=H({},e.barRectShape),i=a.__pictorialBarRect;i?br(i,null,{shape:r},e,t):(i=a.__pictorialBarRect=new _t({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,a.add(i))}function sf(a,e,t,r){if(t.symbolClip){var i=a.__pictorialClipPath,n=H({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)ht(i,{shape:n},s,l);else{n[o.wh]=0,i=new _t({shape:n}),a.__pictorialBundle.setClipPath(i),a.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],xi[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Iu(a,e){var t=a.getItemModel(e);return t.getAnimationDelayParams=x_,t.isAnimationEnabled=__,t}function x_(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function __(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Mu(a,e,t,r){var i=new U,n=new U;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?af(i,e,t):nf(i,e,t),of(i,t,r),sf(i,e,t,r),i.__pictorialShapeStr=lf(a,t),i.__pictorialSymbolMeta=t,i}function b_(a,e,t){var r=t.animationModel,i=t.dataIndex,n=a.__pictorialBundle;ht(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?af(a,e,t,!0):nf(a,e,t,!0),of(a,t,!0),sf(a,e,t,!0)}function Lu(a,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var n=[];ns(r,function(o){n.push(o)}),r.__pictorialMainPath&&n.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),T(n,function(o){Tr(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(e,null)}function lf(a,e){return[a.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function ns(a,e,t){T(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&e.call(t,r)})}function br(a,e,t,r,i,n){e&&a.attr(e),r.symbolClip&&!i?t&&a.attr(t):t&&xi[i?"updateProps":"initProps"](a,t,r.animationModel,r.dataIndex,n)}function Pu(a,e,t){var r=t.dataIndex,i=t.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=n.get("focus"),h=n.get("blurScope"),v=n.get("scale");ns(a,function(d){if(d instanceof he){var g=d.style;d.useStyle(H({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var f=e.valueDim.posDesc[+(t.boundingLength>0)],p=a.__pictorialBarRect;qt(p,Pt(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:ea(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:f}),St(a,c,h,n.get("disabled"))}function Ru(a){var e=Math.round(a);return Math.abs(a-e)<1e-4?e:Math.ceil(a)}const w_=d_;var A_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,a.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=kr(Zs.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Zs);const T_=A_;function D_(a){a.registerChartView(w_),a.registerSeriesModel(T_),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,Q(ed,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,rd("pictorialBar"))}var C_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,i){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;s.x=0,s.y=c.y+h[0];function v(g){return g.name}var f=new Vr(this._layersSeries||[],l,v,v),p=[];f.add(F(d,this,"add")).update(F(d,this,"update")).remove(F(d,this,"remove")).execute();function d(g,y,m){var S=o._layers;if(g==="remove"){s.remove(S[y]);return}for(var x=[],b=[],_,w=l[y].indices,A=0;A<w.length;A++){var D=n.getItemLayout(w[A]),C=D.x,I=D.y0,M=D.y;x.push(C,I),b.push(C,I+M),_=n.getItemVisual(w[A],"style")}var P,L=n.getItemLayout(w[0]),R=t.getModel("label"),V=R.get("margin"),k=t.getModel("emphasis");if(g==="add"){var N=p[y]=new U;P=new Kh({shape:{points:x,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),N.add(P),s.add(N),t.isAnimationEnabled()&&P.setClipPath(I_(P.getBoundingRect(),t,function(){P.removeClipPath()}))}else{var N=S[m];P=N.childAt(0),s.add(N),p[y]=N,ht(P,{shape:{points:x,stackedOnPoints:b}},t),De(P)}qt(P,Pt(t),{labelDataIndex:w[A-1],defaultText:n.getName(w[A-1]),inheritColor:_.fill},{normal:{verticalAlign:"middle"}}),P.setTextConfig({position:null,local:!0});var z=P.getTextContent();z&&(z.x=L.x-V,z.y=L.y0+L.y/2),P.useStyle(_),n.setItemGraphicEl(y,P),Nt(P,t),St(P,k.get("focus"),k.get("blurScope"),k.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(yt);function I_(a,e,t){var r=new _t({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return ie(r,{shape:{x:a.x-50,width:a.width+100,height:a.height+20}},e,t),r}const M_=C_;var bn=2,L_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new _i(F(this.getData,this),F(this.getRawData,this))},e.prototype.fixData=function(t){var r=t.length,i={},n=Xn(t,function(v){return i.hasOwnProperty(v[0]+"")||(i[v[0]+""]=-1),v[2]}),o=[];n.buckets.each(function(v,f){o.push({name:f,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var h=o[l].dataList[c][0]+"";i[h]=l}for(var h in i)i.hasOwnProperty(h)&&i[h]!==l&&(i[h]=l,t[r]=[h,0,u],r++)}return t},e.prototype.getInitialData=function(t,r){for(var i=this.getReferringComponents("singleAxis",Se).models[0],n=i.get("type"),o=se(t.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ot(),c=0,h=0;h<s.length;++h)l.push(s[h][bn]),u.get(s[h][bn])||(u.set(s[h][bn],c),c++);var v=Mo(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Kn(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new Xt(v,this);return f.initData(s),f},e.prototype.getLayerSeries=function(){for(var t=this.getData(),r=t.count(),i=[],n=0;n<r;++n)i[n]=n;var o=t.mapDimension("single"),s=Xn(i,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(h,v){return t.get(o,h)-t.get(o,v)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,r,i){$(t)||(t=t?[t]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var h=Number.MAX_VALUE,v=-1,f=o[c].indices.length,p=0;p<f;++p){var d=n.get(t[0],o[c].indices[p]),g=Math.abs(d-r);g<=h&&(u=d,h=g,v=o[c].indices[p])}s.push(v)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=n.getName(t),s=n.get(n.mapDimension("value"),t);return Gt("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Tt);const P_=L_;function R_(a,e){a.eachSeriesByType("themeRiver",function(t){var r=t.getData(),i=t.coordinateSystem,n={},o=i.getRect();n.rect=o;var s=t.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=s,l.orient==="horizontal"){s[0]=G(s[0],o.height),s[1]=G(s[1],o.height);var u=o.height-s[0]-s[1];Eu(r,t,u)}else{s[0]=G(s[0],o.width),s[1]=G(s[1],o.width);var c=o.width-s[0]-s[1];Eu(r,t,c)}r.setLayout("layoutInfo",n)})}function Eu(a,e,t){if(!!a.count())for(var r=e.coordinateSystem,i=e.getLayerSeries(),n=a.mapDimension("single"),o=a.mapDimension("value"),s=B(i,function(g){return B(g.indices,function(y){var m=r.dataToPoint(a.get(n,y));return m[1]=a.get(o,y),m})}),l=E_(s),u=l.y0,c=t/l.max,h=i.length,v=i[0].indices.length,f,p=0;p<v;++p){f=u[p]*c,a.setItemLayout(i[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:f,y:s[0][p][1]*c});for(var d=1;d<h;++d)f+=s[d-1][p][1]*c,a.setItemLayout(i[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:f,y:s[d][p][1]*c})}}function E_(a){for(var e=a.length,t=a[0].length,r=[],i=[],n=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=a[l][o][1];s>n&&(n=s),r.push(s)}for(var u=0;u<t;++u)i[u]=(n-r[u])/2;n=0;for(var c=0;c<t;++c){var h=r[c]+i[c];h>n&&(n=h)}return{y0:i,max:n}}function V_(a){a.registerChartView(M_),a.registerSeriesModel(P_),a.registerLayout(R_),a.registerProcessor(wi("themeRiver"))}var k_=2,N_=4,z_=function(a){E(e,a);function e(t,r,i,n){var o=a.call(this)||this;o.z2=k_,o.textConfig={inside:!0},st(o).seriesIndex=r.seriesIndex;var s=new pt({z2:N_,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,i,n),o}return e.prototype.updateData=function(t,r,i,n,o){this.node=r,r.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;st(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),h=H({},c);h.label=null;var v=r.getVisual("style");v.lineJoin="bevel";var f=r.getVisual("decal");f&&(v.decal=Do(f,o));var p=Us(l.getModel("itemStyle"),h,!0);H(h,p),T(ra,function(m){var S=s.ensureState(m),x=l.getModel([m,"itemStyle"]);S.style=x.getItemStyle();var b=Us(x,h);b&&(S.shape=b)}),t?(s.setShape(h),s.shape.r=c.r0,ht(s,{shape:{r:c.r}},i,r.dataIndex)):(ht(s,{shape:h},i),De(s)),s.useStyle(v),this._updateLabel(i);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;St(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),h=this,v=h.getTextContent(),f=this.node.dataIndex,p=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(p!=null&&Math.abs(s)<p);v.ignore=!d,T(ad,function(y){var m=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),S=y==="normal",x=S?v:v.ensureState(y),b=t.getFormattedLabel(f,y);S&&(b=b||r.node.name),x.style=xt(m,{},null,y!=="normal",!0),b&&(x.style.text=b);var _=m.get("show");_!=null&&!S&&(x.ignore=!_);var w=g(m,"position"),A=S?h:h.states[y],D=A.style.fill;A.textConfig={outsideFill:m.get("color")==="inherit"?D:null,inside:w!=="outside"};var C,I=g(m,"distance")||0,M=g(m,"align");w==="outside"?(C=o.r+I,M=l>Math.PI/2?"right":"left"):!M||M==="center"?(s===2*Math.PI&&o.r0===0?C=0:C=(o.r+o.r0)/2,M="center"):M==="left"?(C=o.r0+I,l>Math.PI/2&&(M="right")):M==="right"&&(C=o.r-I,l>Math.PI/2&&(M="left")),x.style.align=M,x.style.verticalAlign=g(m,"verticalAlign")||"middle",x.x=C*u+o.cx,x.y=C*c+o.cy;var P=g(m,"rotate"),L=0;P==="radial"?(L=-l,L<-Math.PI/2&&(L+=Math.PI)):P==="tangential"?(L=Math.PI/2-l,L>Math.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):ne(P)&&(L=P*Math.PI/180),x.rotation=L});function g(y,m){var S=y.get(m);return S==null?n.get(m):S}v.dirtyStyle()},e}(ia);const Vu=z_;var ho="sunburstRootToNode",ku="sunburstHighlight",O_="sunburstUnhighlight";function B_(a){a.registerAction({type:ho,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(i,n){var o=oa(e,[ho],i);if(o){var s=i.getViewRoot();s&&(e.direction=$o(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),a.registerAction({type:ku,update:"none"},function(e,t,r){e=H({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(n){var o=oa(e,[ku],n);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(H(e,{type:"highlight"}))}),a.registerAction({type:O_,update:"updateView"},function(e,t,r){e=H({},e),r.dispatchAction(H(e,{type:"downplay"}))})}var G_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){var o=this;this.seriesModel=t,this.api=i,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var f=this._oldChildren||[];p(v,f),y(l,u),this._initEvents(),this._oldChildren=v;function p(m,S){if(m.length===0&&S.length===0)return;new Vr(S,m,x,x).add(b).update(b).remove(Q(b,null)).execute();function x(_){return _.getId()}function b(_,w){var A=_==null?null:m[_],D=w==null?null:S[w];d(A,D)}}function d(m,S){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&S!==l){if(S&&S.piece)m?(S.piece.updateData(!1,m,t,r,i),s.setItemGraphicEl(m.dataIndex,S.piece)):g(S);else if(m){var x=new Vu(m,t,r,i);c.add(x),s.setItemGraphicEl(m.dataIndex,x)}}}function g(m){!m||m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,r,i):(o.virtualPiece=new Vu(m,t,r,i),c.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(S.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Ah(u,c)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ho,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var i=r.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(yt);const F_=G_;var H_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var i={name:t.name,children:t.data};uf(i);var n=this._levelModels=B(t.levels||[],function(l){return new Kt(l,this,r)},this),o=Wo.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var h=o.getNodeByDataIndex(c),v=n[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=Ei(i,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){vv(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Tt);function uf(a){var e=0;T(a.children,function(r){uf(r);var i=r.value;$(i)&&(i=i[0]),e+=i});var t=a.value;$(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),$(a.value)?a.value[0]=t:a.value=t}const W_=H_;var Nu=Math.PI/180;function $_(a,e,t){e.eachSeriesByType(a,function(r){var i=r.get("center"),n=r.get("radius");$(n)||(n=[0,n]),$(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=G(i[0],o),c=G(i[1],s),h=G(n[0],l/2),v=G(n[1],l/2),f=-r.get("startAngle")*Nu,p=r.get("minAngle")*Nu,d=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,m=r.get("sort");m!=null&&cf(g,m);var S=0;T(g.children,function(V){!isNaN(V.getValue())&&S++});var x=g.getValue(),b=Math.PI/(x||S)*2,_=g.depth>0,w=g.height-(_?-1:1),A=(v-h)/(w||1),D=r.get("clockwise"),C=r.get("stillShowZeroSum"),I=D?1:-1,M=function(V,k){if(!!V){var N=k;if(V!==d){var z=V.getValue(),W=x===0&&C?b:z*b;W<p&&(W=p),N=k+I*W;var Z=V.depth-y-(_?-1:1),j=h+A*Z,q=h+A*(Z+1),J=r.getLevelModel(V);if(J){var dt=J.get("r0",!0),ut=J.get("r",!0),et=J.get("radius",!0);et!=null&&(dt=et[0],ut=et[1]),dt!=null&&(j=G(dt,l/2)),ut!=null&&(q=G(ut,l/2))}V.setLayout({angle:W,startAngle:k,endAngle:N,clockwise:D,cx:u,cy:c,r0:j,r:q})}if(V.children&&V.children.length){var X=0;T(V.children,function(ct){X+=M(ct,k+X)})}return N-k}};if(_){var P=h,L=h+A,R=Math.PI*2;d.setLayout({angle:R,startAngle:f,endAngle:f+R,clockwise:D,cx:u,cy:c,r0:P,r:L})}M(g,f)})}function cf(a,e){var t=a.children||[];a.children=Z_(t,e),t.length&&T(a.children,function(r){cf(r,e)})}function Z_(a,e){if(nt(e)){var t=B(a,function(i,n){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:n}});return t.sort(function(i,n){return e(i.params,n.params)}),B(t,function(i){return a[i.index]})}else{var r=e==="asc";return a.sort(function(i,n){var o=(i.getValue()-n.getValue())*(r?1:-1);return o===0?(i.dataIndex-n.dataIndex)*(r?-1:1):o})}}function U_(a){var e={};function t(r,i,n){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&tt(s)&&(s=id(s,(r.depth-1)/(n-1)*.5)),s}a.eachSeriesByType("sunburst",function(r){var i=r.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");H(u,l)})})}function Y_(a){a.registerChartView(F_),a.registerSeriesModel(W_),a.registerLayout(Q($_,"sunburst")),a.registerProcessor(Q(wi,"sunburst")),a.registerVisual(U_),B_(a)}var zu={color:"fill",borderColor:"stroke"},X_={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ae=Mt(),K_=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return lr(null,this)},e.prototype.getDataParams=function(t,r,i){var n=a.prototype.getDataParams.call(this,t,r);return i&&(n.info=Ae(i).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Tt);const q_=K_;function j_(a,e){return e=e||[0,0],B(["x","y"],function(t,r){var i=this.getAxis(t),n=e[r],o=a[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function J_(a){var e=a.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:F(j_,a)}}}function Q_(a,e){return e=e||[0,0],B([0,1],function(t){var r=e[t],i=a[t]/2,n=[],o=[];return n[t]=r-i,o[t]=r+i,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function tb(a){var e=a.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:a.getZoom()},api:{coord:function(t){return a.dataToPoint(t)},size:F(Q_,a)}}}function eb(a,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,i=(a instanceof Array?a[0]:a)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-i)-t.dataToCoord(r+i))}function rb(a){var e=a.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return a.dataToPoint(t)},size:F(eb,a)}}}function ab(a,e){return e=e||[0,0],B(["Radius","Angle"],function(t,r){var i="get"+t+"Axis",n=this[i](),o=e[r],s=a[r]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function ib(a){var e=a.getRadiusAxis(),t=a.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(i){var n=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=a.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:F(ab,a)}}}function nb(a){var e=a.getRect(),t=a.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,i){return a.dataToPoint(r,i)}}}}function hf(a,e,t,r){return a&&(a.legacy||a.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||O(a,"text")))}function vf(a,e,t){var r=a,i,n,o;if(e==="text")o=r;else{o={},O(r,"text")&&(o.text=r.text),O(r,"rich")&&(o.rich=r.rich),O(r,"textFill")&&(o.fill=r.textFill),O(r,"textStroke")&&(o.stroke=r.textStroke),O(r,"fontFamily")&&(o.fontFamily=r.fontFamily),O(r,"fontSize")&&(o.fontSize=r.fontSize),O(r,"fontStyle")&&(o.fontStyle=r.fontStyle),O(r,"fontWeight")&&(o.fontWeight=r.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=O(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),O(r,"textPosition")&&(i.position=r.textPosition),O(r,"textOffset")&&(i.offset=r.textOffset),O(r,"textRotation")&&(i.rotation=r.textRotation),O(r,"textDistance")&&(i.distance=r.textDistance)}return Ou(o,a),T(o.rich,function(l){Ou(l,l)}),{textConfig:i,textContent:n}}function Ou(a,e){!e||(e.font=e.textFont||e.font,O(e,"textStrokeWidth")&&(a.lineWidth=e.textStrokeWidth),O(e,"textAlign")&&(a.align=e.textAlign),O(e,"textVerticalAlign")&&(a.verticalAlign=e.textVerticalAlign),O(e,"textLineHeight")&&(a.lineHeight=e.textLineHeight),O(e,"textWidth")&&(a.width=e.textWidth),O(e,"textHeight")&&(a.height=e.textHeight),O(e,"textBackgroundColor")&&(a.backgroundColor=e.textBackgroundColor),O(e,"textPadding")&&(a.padding=e.textPadding),O(e,"textBorderColor")&&(a.borderColor=e.textBorderColor),O(e,"textBorderWidth")&&(a.borderWidth=e.textBorderWidth),O(e,"textBorderRadius")&&(a.borderRadius=e.textBorderRadius),O(e,"textBoxShadowColor")&&(a.shadowColor=e.textBoxShadowColor),O(e,"textBoxShadowBlur")&&(a.shadowBlur=e.textBoxShadowBlur),O(e,"textBoxShadowOffsetX")&&(a.shadowOffsetX=e.textBoxShadowOffsetX),O(e,"textBoxShadowOffsetY")&&(a.shadowOffsetY=e.textBoxShadowOffsetY))}function Bu(a,e,t){var r=a;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var i=r.textPosition.indexOf("inside")>=0,n=a.fill||"#000";Gu(r,e);var o=r.textFill==null;return i?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=n),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=a.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,T(e.rich,function(s){Gu(s,s)}),r}function Gu(a,e){!e||(O(e,"fill")&&(a.textFill=e.fill),O(e,"stroke")&&(a.textStroke=e.fill),O(e,"lineWidth")&&(a.textStrokeWidth=e.lineWidth),O(e,"font")&&(a.font=e.font),O(e,"fontStyle")&&(a.fontStyle=e.fontStyle),O(e,"fontWeight")&&(a.fontWeight=e.fontWeight),O(e,"fontSize")&&(a.fontSize=e.fontSize),O(e,"fontFamily")&&(a.fontFamily=e.fontFamily),O(e,"align")&&(a.textAlign=e.align),O(e,"verticalAlign")&&(a.textVerticalAlign=e.verticalAlign),O(e,"lineHeight")&&(a.textLineHeight=e.lineHeight),O(e,"width")&&(a.textWidth=e.width),O(e,"height")&&(a.textHeight=e.height),O(e,"backgroundColor")&&(a.textBackgroundColor=e.backgroundColor),O(e,"padding")&&(a.textPadding=e.padding),O(e,"borderColor")&&(a.textBorderColor=e.borderColor),O(e,"borderWidth")&&(a.textBorderWidth=e.borderWidth),O(e,"borderRadius")&&(a.textBorderRadius=e.borderRadius),O(e,"shadowColor")&&(a.textBoxShadowColor=e.shadowColor),O(e,"shadowBlur")&&(a.textBoxShadowBlur=e.shadowBlur),O(e,"shadowOffsetX")&&(a.textBoxShadowOffsetX=e.shadowOffsetX),O(e,"shadowOffsetY")&&(a.textBoxShadowOffsetY=e.shadowOffsetY),O(e,"textShadowColor")&&(a.textShadowColor=e.textShadowColor),O(e,"textShadowBlur")&&(a.textShadowBlur=e.textShadowBlur),O(e,"textShadowOffsetX")&&(a.textShadowOffsetX=e.textShadowOffsetX),O(e,"textShadowOffsetY")&&(a.textShadowOffsetY=e.textShadowOffsetY))}var ff={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Fu=wt(ff);Sh(na,function(a,e){return a[e]=1,a},{});na.join(", ");var ui=["","style","shape","extra"],Pr=Mt();function os(a,e,t,r,i){var n=a+"Animation",o=Lh(a,r,i)||{},s=Pr(e).userDuring;return o.duration>0&&(o.during=s?F(cb,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=a),H(o,t[n]),o}function Ka(a,e,t,r){r=r||{};var i=r.dataIndex,n=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Pr(a),u=e.style;l.userDuring=e.during;var c={},h={};if(vb(a,e,h),Wu("shape",e,h),Wu("extra",e,h),!n&&s&&(hb(a,e,c),Hu("shape",a,e,c),Hu("extra",a,e,c),fb(a,e,u,c)),h.style=u,ob(a,h,o),lb(a,e),s)if(n){var v={};T(ui,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),H(p?v[p]:v,d.enterFrom))});var f=os("enter",a,e,t,i);f.duration>0&&a.animateFrom(v,f)}else sb(a,e,i||0,t,c);pf(a,e),u?a.dirty():a.markRedraw()}function pf(a,e){for(var t=Pr(a).leaveToProps,r=0;r<ui.length;r++){var i=ui[r],n=i?e[i]:e;n&&n.leaveTo&&(t||(t=Pr(a).leaveToProps={}),i&&(t[i]=t[i]||{}),H(i?t[i]:t,n.leaveTo))}}function Ni(a,e,t,r){if(a){var i=a.parent,n=Pr(a).leaveToProps;if(n){var o=os("update",a,e,t,0);o.done=function(){i.remove(a),r&&r()},a.animateTo(n,o)}else i.remove(a),r&&r()}}function tr(a){return a==="all"}function ob(a,e,t){var r=e.style;if(!a.isGroup&&r){if(t){a.useStyle({});for(var i=a.animators,n=0;n<i.length;n++){var o=i[n];o.targetName==="style"&&o.changeTarget(a.style)}}a.setStyle(r)}e&&(e.style=null,e&&a.attr(e),e.style=r)}function sb(a,e,t,r,i){if(i){var n=os("update",a,e,r,t);n.duration>0&&a.animateFrom(i,n)}}function lb(a,e){O(e,"silent")&&(a.silent=e.silent),O(e,"ignore")&&(a.ignore=e.ignore),a instanceof Cr&&O(e,"invisible")&&(a.invisible=e.invisible),a instanceof Ft&&O(e,"autoBatch")&&(a.autoBatch=e.autoBatch)}var ge={},ub={setTransform:function(a,e){return ge.el[a]=e,this},getTransform:function(a){return ge.el[a]},setShape:function(a,e){var t=ge.el,r=t.shape||(t.shape={});return r[a]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(a){var e=ge.el.shape;if(e)return e[a]},setStyle:function(a,e){var t=ge.el,r=t.style;return r&&(r[a]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(a){var e=ge.el.style;if(e)return e[a]},setExtra:function(a,e){var t=ge.el.extra||(ge.el.extra={});return t[a]=e,this},getExtra:function(a){var e=ge.el.extra;if(e)return e[a]}};function cb(){var a=this,e=a.el;if(!!e){var t=Pr(e).userDuring,r=a.userDuring;if(t!==r){a.el=a.userDuring=null;return}ge.el=e,r(ub)}}function Hu(a,e,t,r){var i=t[a];if(!!i){var n=e[a],o;if(n){var s=t.transition,l=i.transition;if(l)if(!o&&(o=r[a]={}),tr(l))H(o,n);else for(var u=Ce(l),c=0;c<u.length;c++){var h=u[c],v=n[h];o[h]=v}else if(tr(s)||bt(s,a)>=0){!o&&(o=r[a]={});for(var f=wt(n),c=0;c<f.length;c++){var h=f[c],v=n[h];pb(i[h],v)&&(o[h]=v)}}}}}function Wu(a,e,t){var r=e[a];if(!!r)for(var i=t[a]={},n=wt(r),o=0;o<n.length;o++){var s=n[o];i[s]=nd(r[s])}}function hb(a,e,t){for(var r=e.transition,i=tr(r)?na:Ce(r||[]),n=0;n<i.length;n++){var o=i[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=a[o];t[o]=s}}}function vb(a,e,t){for(var r=0;r<Fu.length;r++){var i=Fu[r],n=ff[i],o=e[i];o&&(t[n[0]]=o[0],t[n[1]]=o[1])}for(var r=0;r<na.length;r++){var s=na[r];e[s]!=null&&(t[s]=e[s])}}function fb(a,e,t,r){if(!!t){var i=a.style,n;if(i){var o=t.transition,s=e.transition;if(o&&!tr(o)){var l=Ce(o);!n&&(n=r.style={});for(var u=0;u<l.length;u++){var c=l[u],h=i[c];n[c]=h}}else if(a.getAnimationStyleProps&&(tr(s)||tr(o)||bt(s,"style")>=0)){var v=a.getAnimationStyleProps(),f=v?v.style:null;if(f){!n&&(n=r.style={});for(var p=wt(t),u=0;u<p.length;u++){var c=p[u];if(f[c]){var h=i[c];n[c]=h}}}}}}}function pb(a,e){return od(a)?a!==e:a!=null&&isFinite(a)}var df=Mt(),db=["percent","easing","shape","style","extra"];function gf(a){a.stopAnimation("keyframe"),a.attr(df(a))}function ci(a,e,t){if(!(!t.isAnimationEnabled()||!e)){if($(e)){T(e,function(s){ci(a,s,t)});return}var r=e.keyframes,i=e.duration;if(t&&i==null){var n=Lh("enter",t,0);i=n&&n.duration}if(!(!r||!i)){var o=df(a);T(ui,function(s){if(!(s&&!a[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),T(r,function(u){var c=a.animators,h=s?u[s]:u;if(!!h){var v=wt(h);if(s||(v=se(v,function(d){return bt(db,d)<0})),!!v.length){l||(l=a.animate(s,e.loop,!0),l.scope="keyframe");for(var f=0;f<c.length;f++)c[f]!==l&&c[f].targetName===l.targetName&&c[f].stopTracks(v);s&&(o[s]=o[s]||{});var p=s?o[s]:o;T(v,function(d){p[d]=((s?a[s]:a)||{})[d]}),l.whenWithKeys(i*u.percent,h,v,u.easing)}}}),l&&l.delay(e.delay||0).duration(i).start(e.easing)}})}}}var Te="emphasis",Ee="normal",ss="blur",ls="select",Be=[Ee,Te,ss,ls],wn={normal:["itemStyle"],emphasis:[Te,"itemStyle"],blur:[ss,"itemStyle"],select:[ls,"itemStyle"]},An={normal:["label"],emphasis:[Te,"label"],blur:[ss,"label"],select:[ls,"label"]},gb=["x","y"],yb="e\0\0",Qt={normal:{},emphasis:{},blur:{},select:{}},mb={cartesian2d:J_,geo:tb,single:rb,polar:ib,calendar:nb};function vo(a){return a instanceof Ft}function fo(a){return a instanceof Cr}function Sb(a,e){e.copyTransform(a),fo(e)&&fo(a)&&(e.setStyle(a.style),e.z=a.z,e.z2=a.z2,e.zlevel=a.zlevel,e.invisible=a.invisible,e.ignore=a.ignore,vo(e)&&vo(a)&&e.setShape(a.shape))}var xb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=$u(t,s,r,i);o||l.removeAll(),s.diff(o).add(function(h){Tn(i,null,h,u(h,n),t,l,s)}).remove(function(h){var v=o.getItemGraphicEl(h);v&&Ni(v,Ae(v).option,t)}).update(function(h,v){var f=o.getItemGraphicEl(v);Tn(i,f,h,u(h,n),t,l,s)}).execute();var c=t.get("clip",!0)?ko(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,r,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,r,i,n,o){var s=r.getData(),l=$u(r,s,i,n),u=this._progressiveEls=[];function c(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var v=Tn(null,null,h,l(h,o),r,this.group,s);v&&(v.traverse(c),u.push(v))}},e.prototype.eachRendered=function(t){ma(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,r,i,n){var o=r.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},e.type="custom",e}(yt);const _b=xb;function us(a){var e=a.type,t;if(e==="path"){var r=a.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,n=Sf(r);t=ud(n,null,i,r.layout||"center"),Ae(t).customPathData=n}else if(e==="image")t=new he({}),Ae(t).customImagePath=a.style.image;else if(e==="text")t=new pt({});else if(e==="group")t=new U;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Ph(e);if(!o){var s="";Mh(s)}t=new o}return Ae(t).customGraphicType=e,t.name=a.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function cs(a,e,t,r,i,n,o){gf(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=gb);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;O(u,"textFill")&&(u.fill=u.textFill),O(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=vo(e)?l.decal:null;a&&h&&(h.dirty=!0,c=Do(h,a)),l.__decalPattern=c}if(fo(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Ka(e,r,n,{dataIndex:t,isInit:o,clearStyle:!0}),ci(e,r.keyframeAnimation,n)}function yf(a,e,t,r,i){var n=e.isGroup?null:e,o=i&&i[a].cfg;if(n){var s=n.ensureState(a);if(r===!1){var l=n.getState(a);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),Ir(n)}}function bb(a,e,t){if(!a.isGroup){var r=a,i=t.currentZ,n=t.currentZLevel;r.z=i,r.zlevel=n;var o=e.z2;o!=null&&(r.z2=o||0);for(var s=0;s<Be.length;s++)wb(r,e,Be[s])}}function wb(a,e,t){var r=t===Ee,i=r?e:hi(e,t),n=i?i.z2:null,o;n!=null&&(o=r?a:a.ensureState(t),o.z2=n||0)}function $u(a,e,t,r){var i=a.get("renderItem"),n=a.coordinateSystem,o={};n&&(o=n.prepareCustoms?n.prepareCustoms(n):mb[n.type](n));for(var s=rt({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:_,ordinalRawValue:b,styleEmphasis:w,visual:C,barLayout:I,currentSeriesIndices:M,font:P},o.api||{}),l={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:Ab(a.getData())},u,c,h={},v={},f={},p={},d=0;d<Be.length;d++){var g=Be[d];f[g]=a.getModel(wn[g]),p[g]=a.getModel(An[g])}function y(L){return L===u?c||(c=e.getItemModel(L)):e.getItemModel(L)}function m(L,R){return e.hasItemOption?L===u?h[R]||(h[R]=y(L).getModel(wn[R])):y(L).getModel(wn[R]):f[R]}function S(L,R){return e.hasItemOption?L===u?v[R]||(v[R]=y(L).getModel(An[R])):y(L).getModel(An[R]):p[R]}return function(L,R){return u=L,c=null,h={},v={},i&&i(rt({dataIndexInside:L,dataIndex:e.getRawIndex(L),actionType:R?R.type:null},l),s)};function x(L,R){return R==null&&(R=u),e.getStore().get(e.getDimensionIndex(L||0),R)}function b(L,R){R==null&&(R=u),L=L||0;var V=e.getDimensionInfo(L);if(!V){var k=e.getDimensionIndex(L);return k>=0?e.getStore().get(k,R):void 0}var N=e.get(V.name,R),z=V&&V.ordinalMeta;return z?z.categories[N]:N}function _(L,R){R==null&&(R=u);var V=e.getItemVisual(R,"style"),k=V&&V.fill,N=V&&V.opacity,z=m(R,Ee).getItemStyle();k!=null&&(z.fill=k),N!=null&&(z.opacity=N);var W={inheritColor:tt(k)?k:"#000"},Z=S(R,Ee),j=xt(Z,null,W,!1,!0);j.text=Z.getShallow("show")?kt(a.getFormattedLabel(R,Ee),ea(e,R)):null;var q=Ys(Z,W,!1);return D(L,z),z=Bu(z,j,q),L&&A(z,L),z.legacy=!0,z}function w(L,R){R==null&&(R=u);var V=m(R,Te).getItemStyle(),k=S(R,Te),N=xt(k,null,null,!0,!0);N.text=k.getShallow("show")?Ci(a.getFormattedLabel(R,Te),a.getFormattedLabel(R,Ee),ea(e,R)):null;var z=Ys(k,null,!0);return D(L,V),V=Bu(V,N,z),L&&A(V,L),V.legacy=!0,V}function A(L,R){for(var V in R)O(R,V)&&(L[V]=R[V])}function D(L,R){L&&(L.textFill&&(R.textFill=L.textFill),L.textPosition&&(R.textPosition=L.textPosition))}function C(L,R){if(R==null&&(R=u),O(zu,L)){var V=e.getItemVisual(R,"style");return V?V[zu[L]]:null}if(O(X_,L))return e.getItemVisual(R,L)}function I(L){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return sd(rt({axis:R},L))}}function M(){return t.getCurrentSeriesIndices()}function P(L){return ld(L,t)}}function Ab(a){var e={};return T(a.dimensions,function(t){var r=a.getDimensionInfo(t);if(!r.isExtraCoord){var i=r.coordDim,n=e[i]=e[i]||[];n[r.coordDimIndex]=a.getDimensionIndex(t)}}),e}function Tn(a,e,t,r,i,n,o){if(!r){n.remove(e);return}var s=hs(a,e,t,r,i,n);return s&&o.setItemGraphicEl(t,s),s&&St(s,r.focus,r.blurScope,r.emphasisDisabled),s}function hs(a,e,t,r,i,n){var o=-1,s=e;e&&mf(e,r,i)&&(o=bt(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=us(r),s&&Sb(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Qt.normal.cfg=Qt.normal.conOpt=Qt.emphasis.cfg=Qt.emphasis.conOpt=Qt.blur.cfg=Qt.blur.conOpt=Qt.select.cfg=Qt.select.conOpt=null,Qt.isLegacy=!1,Db(u,t,r,i,l,Qt),Tb(u,t,r,i,l),cs(a,u,t,r,Qt,i,l),O(r,"info")&&(Ae(u).info=r.info);for(var c=0;c<Be.length;c++){var h=Be[c];if(h!==Ee){var v=hi(r,h),f=vs(r,v,h);yf(h,u,v,f,Qt)}}return bb(u,r,i),r.type==="group"&&Cb(a,u,t,r,i),o>=0?n.replaceAt(u,o):n.add(u),u}function mf(a,e,t){var r=Ae(a),i=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&Pb(n)&&Sf(n)!==r.customPathData||i==="image"&&O(o,"image")&&o.image!==r.customImagePath}function Tb(a,e,t,r,i){var n=t.clipPath;if(n===!1)a&&a.getClipPath()&&a.removeClipPath();else if(n){var o=a.getClipPath();o&&mf(o,n,r)&&(o=null),o||(o=us(n),a.setClipPath(o)),cs(null,o,e,n,null,r,i)}}function Db(a,e,t,r,i,n){if(!a.isGroup){Zu(t,null,n),Zu(t,Te,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=a.getTextContent();if(o===!1)c&&a.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=us(o),a.setTextContent(c)),cs(null,c,e,o,null,r,i);for(var h=o&&o.style,v=0;v<Be.length;v++){var f=Be[v];if(f!==Ee){var p=n[f].conOpt;yf(f,c,p,vs(o,p,f),null)}}h?c.dirty():c.markRedraw()}}}}function Zu(a,e,t){var r=e?hi(a,e):a,i=e?vs(a,r,Te):a.style,n=a.type,o=r?r.textConfig:null,s=a.textContent,l=s?e?hi(s,e):s:null;if(i&&(t.isLegacy||hf(i,n,!!o,!!l))){t.isLegacy=!0;var u=vf(i,n,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?t[e]:t.normal;h.cfg=o,h.conOpt=l}function hi(a,e){return e?a?a[e]:null:a}function vs(a,e,t){var r=e&&e.style;return r==null&&t===Te&&a&&(r=a.styleEmphasis),r}function Cb(a,e,t,r,i){var n=r.children,o=n?n.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Mb({api:a,oldChildren:e.children()||[],newChildren:n||[],dataIndex:t,seriesModel:i,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var h=n[c],v=e.childAt(c);h?(h.ignore==null&&(h.ignore=!1),hs(a,v,t,h,i,e)):v.ignore=!0}for(var f=e.childCount()-1;f>=c;f--){var p=e.childAt(f);Ib(e,p,i)}}}function Ib(a,e,t){e&&Ni(e,Ae(a).option,t)}function Mb(a){new Vr(a.oldChildren,a.newChildren,Uu,Uu,a).add(Yu).update(Yu).remove(Lb).execute()}function Uu(a,e){var t=a&&a.name;return t!=null?t:yb+e}function Yu(a,e){var t=this.context,r=a!=null?t.newChildren[a]:null,i=e!=null?t.oldChildren[e]:null;hs(t.api,i,t.dataIndex,r,t.seriesModel,t.group)}function Lb(a){var e=this.context,t=e.oldChildren[a];t&&Ni(t,Ae(t).option,e.seriesModel)}function Sf(a){return a&&(a.pathData||a.d)}function Pb(a){return a&&(O(a,"pathData")||O(a,"d"))}function Rb(a){a.registerChartView(_b),a.registerSeriesModel(q_)}var Eb=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(r),v=n.get("type");if(v&&v!=="none"){var f=Rh(n),p=kb[v](s,l,h,c);p.style=f,t.graphicKey=p.type,t.pointer=p}var d=n.get(["label","margin"]),g=Vb(r,i,n,l,d);cd(t,i,n,o,g)},e}(Eh);function Vb(a,e,t,r,i){var n=e.axis,o=n.dataToCoord(a),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,h;if(n.dim==="radius"){var v=Er();Ti(v,v,s),nr(v,v,[r.cx,r.cy]),u=Ne([o,-i],v);var f=e.getModel("axisLabel").get("rotate")||0,p=er.innerTextLayout(s,f*Math.PI/180,-1);c=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=r.coordToPoint([d+i,o]);var g=r.cx,y=r.cy;c=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var kb={line:function(a,e,t,r){return a.dim==="angle"?{type:"Line",shape:Vh(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(a,e,t,r){var i=Math.max(1,a.getBandWidth()),n=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:Xs(e.cx,e.cy,r[0],r[1],(-t-i/2)*n,(-t+i/2)*n)}:{type:"Sector",shape:Xs(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}};const Nb=Eb;var zb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,i=this.ecModel;return i.eachComponent(t,function(n){n.getCoordSysModel()===this&&(r=n)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(zt);const Ob=zb;var fs=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Se).models[0]},e.type="polarAxis",e}(zt);ve(fs,bi);var Bb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(fs),Gb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(fs),ps=function(a){E(e,a);function e(t,r){return a.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(_e);ps.prototype.dataToRadius=_e.prototype.dataToCoord;ps.prototype.radiusToData=_e.prototype.coordToData;const Fb=ps;var Hb=Mt(),ds=function(a){E(e,a);function e(t,r){return a.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),i=t.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=kh(s==null?"":s+"",r.getFont(),"center","top"),h=Math.max(c.height,7),v=h/u;isNaN(v)&&(v=1/0);var f=Math.max(0,Math.floor(v)),p=Hb(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-f)<=1&&Math.abs(g-o)<=1&&d>f?f=d:(p.lastTickCount=o,p.lastAutoInterval=f),f},e}(_e);ds.prototype.dataToAngle=_e.prototype.dataToCoord;ds.prototype.angleToData=_e.prototype.coordToData;const Wb=ds;var xf=["radius","angle"],$b=function(){function a(e){this.dimensions=xf,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Fb,this._angleAxis=new Wb,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},a.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},a.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&t.push(r),i.scale.type===e&&t.push(i),t},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},a.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},a.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},a.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},a.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*t+this.cx,n=-Math.sin(r)*t+this.cy;return[i,n]},a.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,h=this.r,v=this.r0;return c<=h*h&&c>=v*v}}},a.prototype.convertToPixel=function(e,t,r){var i=Xu(t);return i===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=Xu(t);return i===this?this.pointToData(r):null},a}();function Xu(a){var e=a.seriesModel,t=a.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const Zb=$b;function Ub(a,e,t){var r=e.get("center"),i=t.getWidth(),n=t.getHeight();a.cx=G(r[0],i),a.cy=G(r[1],n);var o=a.getRadiusAxis(),s=Math.min(i,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:$(l)||(l=[0,l]);var u=[G(l[0],s),G(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Yb(a,e){var t=this,r=t.getAngleAxis(),i=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),a.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();T(Ks(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),T(Ks(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),ti(r.scale,r.model),ti(i.scale,i.model),r.type==="category"&&!r.onBand){var n=r.getExtent(),o=360/r.scale.count();r.inverse?n[1]+=o:n[1]-=o,r.setExtent(n[0],n[1])}}function Xb(a){return a.mainType==="angleAxis"}function Ku(a,e){if(a.type=e.get("type"),a.scale=Ro(e),a.onBand=e.get("boundaryGap")&&a.type==="category",a.inverse=e.get("inverse"),Xb(e)){a.inverse=a.inverse!==e.get("clockwise");var t=e.get("startAngle");a.setExtent(t,t+(a.inverse?-360:360))}e.axis=a,a.model=e}var Kb={dimensions:xf,create:function(a,e){var t=[];return a.eachComponent("polar",function(r,i){var n=new Zb(i+"");n.update=Yb;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");Ku(o,l),Ku(s,u),Ub(n,r,e),t.push(n),r.coordinateSystem=n,n.model=r}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",Se).models[0];r.coordinateSystem=i.coordinateSystem}}),t}};const qb=Kb;var jb=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ba(a,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=a.coordToPoint([e[0],t]),i=a.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function Ga(a){var e=a.getRadiusAxis();return e.inverse?0:1}function qu(a){var e=a[0],t=a[a.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&a.pop()}var Jb=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=B(i.getViewLabels(),function(c){c=at(c);var h=i.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(v),c});qu(u),qu(s),T(jb,function(c){t.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&Qb[c](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(wa),Qb={axisLine:function(a,e,t,r,i,n){var o=e.getModel(["axisLine","lineStyle"]),s=Ga(t),l=s?0:1,u;n[l]===0?u=new rr({shape:{cx:t.cx,cy:t.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new vh({shape:{cx:t.cx,cy:t.cy,r:n[s],r0:n[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,a.add(u)},axisTick:function(a,e,t,r,i,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[Ga(t)],u=B(r,function(c){return new ue({shape:Ba(t,[l,l+s],c.coord)})});a.add(le(u,{style:rt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(a,e,t,r,i,n){if(!!i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[Ga(t)],c=[],h=0;h<i.length;h++)for(var v=0;v<i[h].length;v++)c.push(new ue({shape:Ba(t,[u,u+l],i[h][v].coord)}));a.add(le(c,{style:rt(s.getModel("lineStyle").getLineStyle(),rt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(a,e,t,r,i,n,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");T(o,function(h,v){var f=l,p=h.tickValue,d=n[Ga(t)],g=t.coordToPoint([d+u,h.coord]),y=t.cx,m=t.cy,S=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];Rt(b)&&b.textStyle&&(f=new Kt(b.textStyle,l,l.ecModel))}var _=new pt({silent:er.isLabelSilent(e),style:xt(f,{x:g[0],y:g[1],fill:f.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:S,verticalAlign:x})});if(a.add(_),c){var w=er.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,st(_).eventData=w}},this)},splitLine:function(a,e,t,r,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<r.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new ue({shape:Ba(t,n,r[h].coord)}))}for(var h=0;h<c.length;h++)a.add(le(c[h],{style:rt({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(a,e,t,r,i,n){if(!!i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new ue({shape:Ba(t,n,i[u][c].coord)}));a.add(le(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(a,e,t,r,i,n){if(!!r.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,v=-r[0].coord*h,f=Math.min(n[0],n[1]),p=Math.max(n[0],n[1]),d=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var m=g===y?r[0].coord:r[g].coord,S=u++%l.length;c[S]=c[S]||[],c[S].push(new ia({shape:{cx:t.cx,cy:t.cy,r0:f,r:p,startAngle:v,endAngle:-m*h,clockwise:d},silent:!0})),v=-m*h}for(var g=0;g<c.length;g++)a.add(le(c[g],{style:rt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const tw=Jb;var ew=["axisLine","axisTickLabel","axisName"],rw=["splitLine","splitArea","minorSplitLine"],aw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,n=this._axisGroup=new U;this.group.add(n);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),h=l.getExtent()[0],v=o.getExtent(),f=nw(s,t,h),p=new er(t,f);T(ew,p.add,p),n.add(p.getGroup()),Vo(i,n,t),T(rw,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&iw[d](this.group,t,s,h,v,u,c)},this)}},e.type="radiusAxis",e}(wa),iw={splitLine:function(a,e,t,r,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<n.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new rr({shape:{cx:t.cx,cy:t.cy,r:Math.max(n[h].coord,0)}}))}for(var h=0;h<c.length;h++)a.add(le(c[h],{style:rt({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(a,e,t,r,i,n,o){if(!!o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++)u.push(new rr({shape:{cx:t.cx,cy:t.cy,r:o[c][h].coord}}));a.add(le(u,{style:rt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(a,e,t,r,i,n){if(!!n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=n[0].coord,v=1;v<n.length;v++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new ia({shape:{cx:t.cx,cy:t.cy,r0:h,r:n[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=n[v].coord}for(var v=0;v<c.length;v++)a.add(le(c[v],{style:rt({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function nw(a,e,t){return{position:[a.cx,a.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const ow=aw;function _f(a){return a.get("stack")||"__ec_stack_"+a.seriesIndex}function bf(a,e){return e.dim+a.model.componentIndex}function sw(a,e,t){var r={},i=lw(se(e.getSeriesByType(a),function(n){return!e.isSeriesFiltered(n)&&n.coordinateSystem&&n.coordinateSystem.type==="polar"}));e.eachSeriesByType(a,function(n){if(n.coordinateSystem.type==="polar"){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),u=bf(s,l),c=_f(n),h=i[u][c],v=h.offset,f=h.width,p=s.getOtherAxis(l),d=n.coordinateSystem.cx,g=n.coordinateSystem.cy,y=n.get("barMinHeight")||0,m=n.get("barMinAngle")||0;r[c]=r[c]||[];for(var S=o.mapDimension(p.dim),x=o.mapDimension(l.dim),b=Dr(o,S),_=l.dim!=="radius"||!n.get("roundCap",!0),w=p.dataToCoord(0),A=0,D=o.count();A<D;A++){var C=o.get(S,A),I=o.get(x,A),M=C>=0?"p":"n",P=w;b&&(r[c][I]||(r[c][I]={p:w,n:w}),P=r[c][I][M]);var L=void 0,R=void 0,V=void 0,k=void 0;if(p.dim==="radius"){var N=p.dataToCoord(C)-w,z=l.dataToCoord(I);Math.abs(N)<y&&(N=(N<0?-1:1)*y),L=P,R=P+N,V=z-v,k=V-f,b&&(r[c][I][M]=R)}else{var W=p.dataToCoord(C,_)-w,Z=l.dataToCoord(I);Math.abs(W)<m&&(W=(W<0?-1:1)*m),L=Z+v,R=L+f,V=P,k=P+W,b&&(r[c][I][M]=k)}o.setItemLayout(A,{cx:d,cy:g,r0:L,r:R,startAngle:-V*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:V>=k})}}})}function lw(a){var e={};T(a,function(r,i){var n=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=bf(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),h=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var f=_f(r);v[f]||h.autoWidthCount++,v[f]=v[f]||{width:0,maxWidth:0};var p=G(r.get("barWidth"),c),d=G(r.get("barMaxWidth"),c),g=r.get("barGap"),y=r.get("barCategoryGap");p&&!v[f].width&&(p=Math.min(h.remainedWidth,p),v[f].width=p,h.remainedWidth-=p),d&&(v[f].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return T(e,function(r,i){t[i]={};var n=r.stacks,o=r.bandWidth,s=G(r.categoryGap,o),l=G(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),T(n,function(d,g){var y=d.maxWidth;y&&y<h&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,c--)}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var v=0,f;T(n,function(d,g){d.width||(d.width=h),f=d,v+=d.width*(1+l)}),f&&(v-=f.width*l);var p=-v/2;T(n,function(d,g){t[i][g]=t[i][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var uw={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},cw={splitNumber:5},hw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Ht);function vw(a){K(No),wa.registerAxisPointerClass("PolarAxisPointer",Nb),a.registerCoordinateSystem("polar",qb),a.registerComponentModel(Ob),a.registerComponentView(hw),ei(a,"angle",Bb,uw),ei(a,"radius",Gb,cw),a.registerComponentView(tw),a.registerComponentView(ow),a.registerLayout(Q(sw,"bar"))}function po(a,e){e=e||{};var t=a.coordinateSystem,r=a.axis,i={},n=r.position,o=r.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[n]:l[0],o==="horizontal"?u.horizontal[n]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[n],a.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Yt(e.labelInside,a.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=e.rotate;return v==null&&(v=a.get(["axisLabel","rotate"])),i.labelRotation=n==="top"?-v:v,i.z2=1,i}var fw=["axisLine","axisTickLabel","axisName"],pw=["splitArea","splitLine"],dw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,r,i,n){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new U;var l=po(t),u=new er(t,l);T(fw,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),T(pw,function(c){t.get([c,"show"])&&gw[c](this,this.group,this._axisGroup,t)},this),Vo(s,this._axisGroup,t),a.prototype.render.call(this,t,r,i,n)},e.prototype.remove=function(){hd(this)},e.type="singleAxis",e}(wa),gw={splitLine:function(a,e,t,r){var i=r.axis;if(!i.scale.isBlank()){var n=r.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],v=0,f=i.getTicksCoords({tickModel:n}),p=[],d=[],g=0;g<f.length;++g){var y=i.toGlobalCoord(f[g].coord);c?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var m=new ue({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});vd(m.shape,l);var S=v++%s.length;h[S]=h[S]||[],h[S].push(m)}for(var x=o.getLineStyle(["color"]),g=0;g<h.length;++g)e.add(le(h[g],{style:rt({stroke:s[g%s.length]},x),silent:!0}))}},splitArea:function(a,e,t,r){fd(a,t,r,r)}};const yw=dw;var wf=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(zt);ve(wf,bi.prototype);const Dn=wf;var mw=function(a){E(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,r){return this.coordinateSystem.pointToData(t)[0]},e}(_e);const Sw=mw;var Af=["single"],xw=function(){function a(e,t,r){this.type="single",this.dimension="single",this.dimensions=Af,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,r)}return a.prototype._init=function(e,t,r){var i=this.dimension,n=new Sw(i,Ro(e),[0,0],e.get("type"),e.get("position")),o=n.type==="category";n.onBand=o&&e.get("boundaryGap"),n.inverse=e.get("inverse"),n.orient=e.get("orient"),e.axis=n,n.model=e,n.coordinateSystem=this,this._axis=n},a.prototype.update=function(e,t){e.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();T(i.mapDimensionsAll(this.dimension),function(n){this._axis.scale.unionExtentFromData(i,n)},this),ti(this._axis.scale,this._axis.model)}},this)},a.prototype.resize=function(e,t){this._rect=oe({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},a.prototype.getRect=function(){return this._rect},a.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,r=t.isHorizontal(),i=r?[0,e.width]:[0,e.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),this._updateAxisTransform(t,r?e.x:e.y)},a.prototype._updateAxisTransform=function(e,t){var r=e.getExtent(),i=r[0]+r[1],n=e.isHorizontal();e.toGlobalCoord=n?function(o){return o+t}:function(o){return i-o+t},e.toLocalCoord=n?function(o){return o-t}:function(o){return i-o+t}},a.prototype.getAxis=function(){return this._axis},a.prototype.getBaseAxis=function(){return this._axis},a.prototype.getAxes=function(){return[this._axis]},a.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},a.prototype.containPoint=function(e){var t=this.getRect(),r=this.getAxis(),i=r.orient;return i==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},a.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},a.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),i=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[n]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-n]=n===0?r.y+r.height/2:r.x+r.width/2,i},a.prototype.convertToPixel=function(e,t,r){var i=ju(t);return i===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=ju(t);return i===this?this.pointToData(r):null},a}();function ju(a){var e=a.seriesModel,t=a.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function _w(a,e){var t=[];return a.eachComponent("singleAxis",function(r,i){var n=new xw(r,a,e);n.name="single_"+i,n.resize(r,e),r.coordinateSystem=n,t.push(n)}),a.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",Se).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),t}var bw={create:_w,dimensions:Af};const ww=bw;var Ju=["x","y"],Aw=["width","height"],Tw=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis,l=s.coordinateSystem,u=Cn(l,1-vi(s)),c=l.dataToPoint(r)[0],h=n.get("type");if(h&&h!=="none"){var v=Rh(n),f=Dw[h](s,c,u);f.style=v,t.graphicKey=f.type,t.pointer=f}var p=po(i);pd(r,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,r,i){var n=po(r,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=dd(r.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,n){var o=i.axis,s=o.coordinateSystem,l=vi(o),u=Cn(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=Cn(s,1-l),v=(h[1]+h[0])/2,f=[v,v];return f[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},e}(Eh),Dw={line:function(a,e,t){var r=Vh([e,t[0]],[e,t[1]],vi(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,t){var r=a.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:gd([e-r/2,t[0]],[r,i],vi(a))}}};function vi(a){return a.isHorizontal()?0:1}function Cn(a,e){var t=a.getRect();return[t[Ju[e]],t[Ju[e]]+t[Aw[e]]]}const Cw=Tw;var Iw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Ht);function Mw(a){K(No),wa.registerAxisPointerClass("SingleAxisPointer",Cw),a.registerComponentView(Iw),a.registerComponentView(yw),a.registerComponentModel(Dn),ei(a,"single",Dn,Dn.defaultOption),a.registerCoordinateSystem("single",ww)}var Lw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,i){var n=Nh(t);a.prototype.init.apply(this,arguments),Qu(t,n)},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),Qu(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(zt);function Qu(a,e){var t=a.cellSize,r;$(t)?r=t:r=a.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var i=B([0,1],function(n){return yd(e,n)&&(r[n]="auto"),r[n]!=null&&r[n]!=="auto"});zh(a,e,{type:"box",ignoreSize:i})}const Pw=Lw;var Rw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,r,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=r.start.time;u<=r.end.time;u=n.getNextNDay(u,1).time){var c=n.dataToRect([u],!1).tl,h=new _t({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(h)}},e.prototype._renderLines=function(t,r,i,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=r.start,v=0;h.time<=r.end.time;v++){p(h.formatedDate),v===0&&(h=s.getDateInfo(r.start.y+"-"+r.start.m));var f=h.date;f.setMonth(f.getMonth()+1),h=s.getDateInfo(f)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,n)},e.prototype._getEdgesPoints=function(t,r,i){var n=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-r/2,n[1][o]=n[1][o]+r/2,n},e.prototype._drawSplitline=function(t,r,i){var n=new xe({z2:20,shape:{points:t},style:r});i.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,r,i){for(var n=t.coordinateSystem,o=n.getDateInfo(r),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),c=n.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return tt(t)&&t?md(t,r):nt(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,i,n,o){var s=r[0],l=r[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(n==="left"||n==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,i,n){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=i==="horizontal"?0:1,f={top:[c,u[v][1]],bottom:[c,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var d=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new pt({z2:30,style:xt(o,{text:y})});m.attr(this._yearTextPositionControl(m,f[l],i,l,s)),n.add(m)}},e.prototype._monthTextPositionControl=function(t,r,i,n,o){var s="left",l="top",u=t[0],c=t[1];return i==="horizontal"?(c=c+o,r&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),n==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,i,n){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||tt(s))&&(s&&(r=qs(s)||r),s=r.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,f=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",d=0;d<h[v].length-1;d++){var g=h[v][d].slice(),y=this._firstDayOfMonth[d];if(p){var m=this._firstDayPoints[d];g[f]=(m[f]+h[0][d+1][f])/2}var S=o.get("formatter"),x=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},_=this._formatterLabel(S,b),w=new pt({z2:30,style:H(xt(o,{text:_}),this._monthTextPositionControl(g,p,i,u,l))});n.add(w)}}},e.prototype._weekTextPositionControl=function(t,r,i,n,o){var s="center",l="middle",u=t[0],c=t[1],h=i==="start";return r==="horizontal"?(u=u+n+(h?1:-1)*o[0]/2,s=h?"right":"left"):(c=c+n+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,r,i,n,o){var s=t.getModel("dayLabel");if(!!s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),h=s.get("margin"),v=l.getFirstDayOfWeek();if(!c||tt(c)){c&&(r=qs(c)||r);var f=r.get(["time","dayOfWeekShort"]);c=f||B(r.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(i.end.time,7-i.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];h=G(h,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(i.start.time,-(7+i.fweek)).time,h=-h);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,S=g;S=Math.abs((g+v)%7);var x=new pt({z2:30,style:H(xt(s,{text:c[S]}),this._weekTextPositionControl(m,n,u,h,d))});o.add(x)}}},e.type="calendar",e}(Ht);const Ew=Rw;var In=864e5,Vw=function(){function a(e,t,r){this.type="calendar",this.dimensions=a.dimensions,this.getDimensionsInfo=a.getDimensionsInfo,this._model=e}return a.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},a.prototype.getRangeInfo=function(){return this._rangeInfo},a.prototype.getModel=function(){return this._model},a.prototype.getRect=function(){return this._rect},a.prototype.getCellWidth=function(){return this._sw},a.prototype.getCellHeight=function(){return this._sh},a.prototype.getOrient=function(){return this._orient},a.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},a.prototype.getDateInfo=function(e){e=Sd(e);var t=e.getFullYear(),r=e.getMonth()+1,i=r<10?"0"+r:""+r,n=e.getDate(),o=n<10?"0"+n:""+n,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},a.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},a.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,i=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];T([0,1],function(h){c(n,h)&&(o[i[h]]=n[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=oe(o,l);T([0,1],function(h){c(n,h)||(n[h]=u[i[h]]/s[h])});function c(h,v){return h[v]!=null&&h[v]!=="auto"}this._sw=n[0],this._sh=n[1]},a.prototype.dataToPoint=function(e,t){$(e)&&(e=e[0]),t==null&&(t=!0);var r=this.getDateInfo(e),i=this._rangeInfo,n=r.formatedDate;if(t&&!(r.time>=i.start.time&&r.time<i.end.time+In))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([i.start.time,n]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},a.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},a.prototype.dataToRect=function(e,t){var r=this.dataToPoint(e,t);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},a.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,t-1,i):this._getDateByWeeksAndDay(t,r-1,i)},a.prototype.convertToPixel=function(e,t,r){var i=tc(t);return i===this?i.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=tc(t);return i===this?i.pointToData(r):null},a.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},a.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if($(e)&&e.length===1&&(e=e[0]),$(e))t=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(t=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),n=i.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(t=[r,r])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},a.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var i=Math.floor(t[1].time/In)-Math.floor(t[0].time/In)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+i-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)i-=u,n.setDate(l-u);var c=Math.floor((i+t[0].day+6)/7),h=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},a.prototype._getDateByWeeksAndDay=function(e,t,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var n=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},a.create=function(e,t){var r=[];return e.eachComponent("calendar",function(i){var n=new a(i);r.push(n),i.coordinateSystem=n}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},a.dimensions=["time","value"],a}();function tc(a){var e=a.calendarModel,t=a.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const kw=Vw;function Nw(a){a.registerComponentModel(Pw),a.registerComponentView(Ew),a.registerCoordinateSystem("calendar",kw)}function zw(a,e){var t=a.existing;if(e.id=a.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function ec(a,e){var t;return T(e,function(r){a[r]!=null&&a[r]!=="auto"&&(t=!0)}),t}function Ow(a,e,t){var r=H({},t),i=a[e],n=t.$action||"merge";n==="merge"?i?(mt(i,r,!0),zh(i,r,{ignoreSize:!0}),_d(t,i),Fa(t,i),Fa(t,i,"shape"),Fa(t,i,"style"),Fa(t,i,"extra"),t.clipPath=i.clipPath):a[e]=r:n==="replace"?a[e]=r:n==="remove"&&i&&(a[e]=null)}var Tf=["transition","enterFrom","leaveTo"],Bw=Tf.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Fa(a,e,t){if(t&&(!a[t]&&e[t]&&(a[t]={}),a=a[t],e=e[t]),!(!a||!e))for(var r=t?Tf:Bw,i=0;i<r.length;i++){var n=r[i];a[n]==null&&e[n]!=null&&(a[n]=e[n])}}function Gw(a,e){if(!!a&&(a.hv=e.hv=[ec(e,["left","right"]),ec(e,["top","bottom"])],a.type==="group")){var t=a,r=e;t.width==null&&(t.width=r.width=0),t.height==null&&(t.height=r.height=0)}}var Fw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,r){var i=this.option.elements;this.option.elements=null,a.prototype.mergeOption.call(this,t,r),this.option.elements=i},e.prototype.optionUpdated=function(t,r){var i=this.option,n=(r?i:t).elements,o=i.elements=r?[]:i.elements,s=[];this._flatten(n,s,null);var l=xd(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];T(l,function(c,h){var v=c.newOption;!v||(u.push(v),zw(c,v),Ow(o,h,v),Gw(o[h],v))},this),i.elements=se(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,r,i){T(t,function(n){if(!!n){i&&(n.parentOption=i),r.push(n);var o=n.children;o&&o.length&&this._flatten(o,r,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(zt),rc={path:null,compoundPath:null,group:U,image:he,text:pt},te=Mt(),Hw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=ot()},e.prototype.render=function(t,r,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},e.prototype._updateElements=function(t){var r=t.useElOptionsToUpdate();if(!!r){var i=this._elMap,n=this.group,o=t.get("z"),s=t.get("zlevel");T(r,function(l){var u=we(l.id,null),c=u!=null?i.get(u):null,h=we(l.parentId,null),v=h!=null?i.get(h):n,f=l.type,p=l.style;f==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&hf(p,f,!!g,!!d)){var y=vf(p,f,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=Ww(l),S=l.$action||"merge",x=S==="merge",b=S==="replace";if(x){var _=!c,w=c;_?w=ac(u,v,l.type,i):(w&&(te(w).isNew=!1),gf(w)),w&&(Ka(w,m,t,{isInit:_}),ic(w,l,o,s))}else if(b){qa(c,l,i,t);var A=ac(u,v,l.type,i);A&&(Ka(A,m,t,{isInit:!0}),ic(A,l,o,s))}else S==="remove"&&(pf(c,l),qa(c,l,i,t));var D=i.get(u);if(D&&d)if(x){var C=D.getTextContent();C?C.attr(d):D.setTextContent(new pt(d))}else b&&D.setTextContent(new pt(d));if(D){var I=l.clipPath;if(I){var M=I.type,P=void 0,_=!1;if(x){var L=D.getClipPath();_=!L||te(L).type!==M,P=_?go(M):L}else b&&(_=!0,P=go(M));D.setClipPath(P),Ka(P,I,t,{isInit:_}),ci(P,I.keyframeAnimation,t)}var R=te(D);D.setTextConfig(g),R.option=l,$w(D,t,l),Co({el:D,componentModel:t,itemName:D.name,itemTooltipOption:l.tooltip}),ci(D,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,r){for(var i=t.option.elements,n=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<i.length;c++){var h=i[c],v=we(h.id,null),f=v!=null?o.get(v):null;if(!(!f||!f.isGroup)){var p=f.parent,d=p===n,g=te(f),y=te(p);g.width=G(g.option.width,d?s:y.width)||0,g.height=G(g.option.height,d?l:y.height)||0}}for(var c=i.length-1;c>=0;c--){var h=i[c],v=we(h.id,null),f=v!=null?o.get(v):null;if(!!f){var p=f.parent,y=te(p),m=p===n?{width:s,height:l}:{width:y.width,height:y.height},S={},x=Lo(f,h,m,null,{hv:h.hv,boundingMode:h.bounding},S);if(!te(f).isNew&&x){for(var b=h.transition,_={},w=0;w<u.length;w++){var A=u[w],D=S[A];b&&(tr(b)||bt(b,A)>=0)?_[A]=D:f[A]=D}ht(f,_,t,0)}else f.attr(S)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(i){qa(i,te(i).option,r,t._lastGraphicModel)}),this._elMap=ot()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Ht);function go(a){var e=O(rc,a)?rc[a]:Ph(a),t=new e({});return te(t).type=a,t}function ac(a,e,t,r){var i=go(t);return e.add(i),r.set(a,i),te(i).id=a,te(i).isNew=!0,i}function qa(a,e,t,r){var i=a&&a.parent;i&&(a.type==="group"&&a.traverse(function(n){qa(n,e,t,r)}),Ni(a,e,r),t.removeKey(te(a).id))}function ic(a,e,t,r){a.isGroup||T([["cursor",Cr.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(i){var n=i[0];O(e,n)?a[n]=kt(e[n],i[1]):a[n]==null&&(a[n]=i[1])}),T(wt(e),function(i){if(i.indexOf("on")===0){var n=e[i];a[i]=nt(n)?n:null}}),O(e,"draggable")&&(a.draggable=e.draggable),e.name!=null&&(a.name=e.name),e.id!=null&&(a.id=e.id)}function Ww(a){return a=H({},a),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(bd),function(e){delete a[e]}),a}function $w(a,e,t){var r=st(a).eventData;!a.silent&&!a.ignore&&!r&&(r=st(a).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:a.name}),r&&(r.info=t.info)}function Zw(a){a.registerComponentModel(Fw),a.registerComponentView(Hw),a.registerPreprocessor(function(e){var t=e.graphic;$(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var nc=["x","y","radius","angle","single"],Uw=["cartesian2d","polar","singleAxis"];function Yw(a){var e=a.get("coordinateSystem");return bt(Uw,e)>=0}function Ve(a){return a+"Axis"}function Xw(a,e){var t=ot(),r=[],i=ot();a.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var n;do n=!1,a.eachComponent("dataZoom",o);while(n);function o(c){!i.get(c.uid)&&l(c)&&(s(c),n=!0)}function s(c){i.set(c.uid,!0),r.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(v,f){var p=t.get(v);p&&p[f]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return r}function Df(a){var e=a.ecModel,t={infoList:[],infoMap:ot()};return a.eachTargetAxis(function(r,i){var n=e.getComponent(Ve(r),i);if(!!n){var o=n.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var Mn=function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},a}(),Kw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,i){var n=oc(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var r=oc(t);mt(this.option,t,!0),mt(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(r[n[0]]=i[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ot(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return T(nc,function(i){var n=this.getReferringComponents(Ve(i),wd);if(!!n.specified){r=!0;var o=new Mn;T(n.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var i=this.ecModel,n=!0;if(n){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var h=u[0];if(!!h){var v=new Mn;if(v.add(h.componentIndex),t.set(c,v),n=!1,c==="x"||c==="y"){var f=h.getReferringComponents("grid",Se).models[0];f&&T(u,function(p){h.componentIndex!==p.componentIndex&&f===p.getReferringComponents("grid",Se).models[0]&&v.add(p.componentIndex)})}}}n&&T(nc,function(u){if(!!n){var c=i.findComponents({mainType:Ve(u),filter:function(v){return v.get("type",!0)==="category"}});if(c[0]){var h=new Mn;h.add(c[0].componentIndex),t.set(u,h),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,i=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,i){t==null&&(t=this.ecModel.getComponent(Ve(r),i))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(i,n){T(i.indexList,function(o){t.call(r,n,o)})})},e.prototype.getAxisProxy=function(t,r){var i=this.getAxisModel(t,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[r])return this.ecModel.getComponent(Ve(t),r)},e.prototype.setRawRange=function(t){var r=this.option,i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(r[n[0]]=i[n[0]]=t[n[0]],r[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;T(["start","startValue","end","endValue"],function(i){r[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var o=i[n],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(zt);function oc(a){var e={};return T(["start","end","startValue","endValue","throttle"],function(t){a.hasOwnProperty(t)&&(e[t]=a[t])}),e}const ha=Kw;var qw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(ha);const jw=qw;var Jw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){this.dataZoomModel=t,this.ecModel=r,this.api=i},e.type="dataZoom",e}(Ht);const gs=Jw;var Qw=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(gs);const tA=Qw;var yr=T,sc=re,eA=function(){function a(e,t,r,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=r}return a.prototype.hostedBy=function(e){return this._dataZoomModel===e},a.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},a.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},a.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Yw(t)){var r=Ve(this._dimName),i=t.getReferringComponents(r,Se).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return at(this._minMaxSpan)},a.prototype.calculateDataWindow=function(e){var t=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,n=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;yr(["start","end"],function(v,f){var p=e[v],d=e[v+"Value"];n[f]==="percent"?(p==null&&(p=o[f]),d=i.parse(it(p,o,t))):(u=!0,d=d==null?t[f]:i.parse(d),p=it(d,t,o)),l[f]=d,s[f]=p}),sc(l),sc(s);var c=this._minMaxSpan;u?h(l,s,t,o,!1):h(s,l,o,t,!0);function h(v,f,p,d,g){var y=g?"Span":"ValueSpan";ur(0,v,p,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)f[m]=it(v[m],p,d,!0),g&&(f[m]=i.parse(f[m]))}return{valueWindow:l,percentWindow:s}},a.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=rA(this,this._dimName,t),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},a.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),n=e.get("filterMode"),o=this._valueWindow;if(n==="none")return;yr(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(!!c.length){if(n==="weakFilter"){var h=u.getStore(),v=B(c,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var p,d,g,y=0;y<c.length;y++){var m=h.get(v[y],f),S=!isNaN(m),x=m<o[0],b=m>o[1];if(S&&!x&&!b)return!0;S&&(g=!0),x&&(p=!0),b&&(d=!0)}return g&&p&&d})}else yr(c,function(f){if(n==="empty")l.setData(u=u.map(f,function(d){return s(d)?d:NaN}));else{var p={};p[f]=o,u.selectRange(p)}});yr(c,function(f){u.setApproximateExtent(o,f)})}});function s(l){return l>=o[0]&&l<=o[1]}},a.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;yr(["min","max"],function(i){var n=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=it(r[0]+o,r,[0,100],!0):n!=null&&(o=it(n,[0,100],r,!0)-r[0]),e[i+"Span"]=n,e[i+"ValueSpan"]=o},this)},a.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(!!t){var i=Ad(r,[0,500]);i=Math.min(i,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+r[0].toFixed(i)),t[1]!==100&&n.setDeterminedMinMax("max",+r[1].toFixed(i)),n.freeze()}},a}();function rA(a,e,t){var r=[1/0,-1/0];yr(t,function(o){Td(r,o.getData(),e)});var i=a.getAxisModel(),n=Dd(i.axis.scale,i,r).calculate();return[n.min,n.max]}const aA=eA;var iA={getTargetSeries:function(a){function e(i){a.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=a.getComponent(Ve(o),s);i(o,s,l,n)})})}e(function(i,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new aA(i,n,s,a),t.push(o.__dzAxisProxy))});var r=ot();return T(t,function(i){T(i.getTargetSeriesModels(),function(n){r.set(n.uid,n)})}),r},overallReset:function(a,e){a.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).reset(t)}),t.eachTargetAxis(function(r,i){t.getAxisProxy(r,i).filterData(t,e)})}),a.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),n=r.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}};const nA=iA;function oA(a){a.registerAction("dataZoom",function(e,t){var r=Xw(t,e);T(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var lc=!1;function ys(a){lc||(lc=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,nA),oA(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sA(a){a.registerComponentModel(jw),a.registerComponentView(tA),ys(a)}var ee=function(){function a(){}return a}(),Cf={};function mr(a,e){Cf[a]=e}function If(a){return Cf[a]}var lA=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;T(this.option.feature,function(r,i){var n=If(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),mt(r,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(zt);const uA=lA;var cA=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];T(u,function(p,d){h.push(d)}),new Vr(this._featureNames||[],h).add(v).update(v).remove(Q(v,null)).execute(),this._featureNames=h;function v(p,d){var g=h[p],y=h[d],m=u[g],S=new Kt(m,t,t.ecModel),x;if(n&&n.newTitle!=null&&n.featureName===g&&(m.title=n.newTitle),g&&!y){if(hA(g))x={onclick:S.option.onclick,featureName:g};else{var b=If(g);if(!b)return;x=new b}c[g]=x}else if(x=c[y],!x)return;x.uid=gh("toolbox-feature"),x.model=S,x.ecModel=r,x.api=i;var _=x instanceof ee;if(!g&&y){_&&x.dispose&&x.dispose(r,i);return}if(!S.get("show")||_&&x.unusable){_&&x.remove&&x.remove(r,i);return}f(S,x,g),S.setIconStatus=function(w,A){var D=this.option,C=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[w]=A,C[w]&&(A==="emphasis"?wr:Ar)(C[w])},x instanceof ee&&x.render&&x.render(S,r,i,n)}function f(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),S=d instanceof ee&&d.getIcons?d.getIcons():p.get("icon"),x=p.get("title")||{},b,_;tt(S)?(b={},b[g]=S):b=S,tt(x)?(_={},_[g]=x):_=x;var w=p.iconPaths={};T(b,function(A,D){var C=Oh(A,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var I=C.ensureState("emphasis");I.style=m.getItemStyle();var M=new pt({style:{text:_[D],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});C.setTextContent(M),Co({el:C,componentModel:t,itemName:D,formatterParamsExtra:{title:_[D]}}),C.__title=_[D],C.on("mouseover",function(){var P=m.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";M.setStyle({fill:m.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),C.setTextConfig({position:m.get("textPosition")||L}),M.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",D])!=="emphasis"&&i.leaveEmphasis(this),M.hide()}),(p.get(["iconStatus",D])==="emphasis"?wr:Ar)(C),o.add(C),C.on("click",F(d.onclick,d,r,i,D)),w[D]=C})}Cd(o,t,i),o.add(Id(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),S=m&&m.ensureState("emphasis");if(S&&!nt(S)&&d){var x=S.style||(S.style={}),b=kh(d,pt.makeFont(x)),_=p.x+o.x,w=p.y+o.y+s,A=!1;w+b.height>i.getHeight()&&(y.position="top",A=!0);var D=A?-5-b.height:s+10;_+b.width/2>i.getWidth()?(y.position=["100%",D],x.align="right"):_-b.width/2<0&&(y.position=[0,D],x.align="left")}})},e.prototype.updateView=function(t,r,i,n){T(this._features,function(o){o instanceof ee&&o.updateView&&o.updateView(o.model,r,i,n)})},e.prototype.remove=function(t,r){T(this._features,function(i){i instanceof ee&&i.remove&&i.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){T(this._features,function(i){i instanceof ee&&i.dispose&&i.dispose(t,r)})},e.type="toolbox",e}(Ht);function hA(a){return a.indexOf("my")===0}const vA=cA;var fA=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Bh.browser;if(nt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=n+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),f=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];f&&(p=window.atob(p));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var S=document.createElement("iframe");document.body.appendChild(S);var x=S.contentWindow,b=x.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),x.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(S)}}else{var _=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',A=window.open();A.document.write(w),A.document.title=n}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(ee);const pA=fA;var uc="__ec_magicType_stack__",dA=[["line","bar"],["stack"]],gA=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),i={};return T(t.get("type"),function(n){r[n]&&(i[n]=r[n])}),i},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,i){var n=this.model,o=n.get(["seriesIndex",i]);if(!!cc[i]){var s={series:[]},l=function(h){var v=h.subType,f=h.id,p=cc[i](v,f,h,n);p&&(rt(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",S=h.getReferringComponents(m,Se).models[0],x=S.componentIndex;s[m]=s[m]||[];for(var b=0;b<=x;b++)s[m][x]=s[m][x]||{};s[m][x].boundaryGap=i==="bar"}}};T(dA,function(h){bt(h,i)>=0&&T(h,function(v){n.setIconStatus(v,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=mt({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(ee),cc={line:function(a,e,t,r){if(a==="bar")return mt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(a,e,t,r){if(a==="line")return mt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(a,e,t,r){var i=t.get("stack")===uc;if(a==="line"||a==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),mt({id:e,stack:i?"":uc},r.get(["option","stack"])||{},!0)}};Ai({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,e){e.mergeOption(a.newOption)});const yA=gA;var zi=new Array(60).join("-"),Rr=" ";function mA(a){var e={},t=[],r=[];return a.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function SA(a){var e=[];return T(a,function(t,r){var i=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(B(t.series,function(f){return f.name})),l=[i.model.getCategories()];T(t.series,function(f){var p=f.getRawData();l.push(f.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Rr)],c=0;c<l[0].length;c++){for(var h=[],v=0;v<l.length;v++)h.push(l[v][c]);u.push(h.join(Rr))}e.push(u.join(`
`))}),e.join(`
`+zi+`
`)}function xA(a){return B(a,function(e){var t=e.getRawData(),r=[e.name],i=[];return t.each(t.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=t.getName(o),l=0;l<n-1;l++)i[l]=arguments[l];r.push((s?s+Rr:"")+i.join(Rr))}),r.join(`
`)}).join(`
`+zi+`
`)}function _A(a){var e=mA(a);return{value:se([SA(e.seriesGroupByCategoryAxis),xA(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+zi+`
`),meta:e.meta}}function fi(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function bA(a){var e=a.slice(0,a.indexOf(`
`));if(e.indexOf(Rr)>=0)return!0}var yo=new RegExp("["+Rr+"]+","g");function wA(a){for(var e=a.split(/\n+/g),t=fi(e.shift()).split(yo),r=[],i=B(t,function(l){return{name:l,data:[]}}),n=0;n<e.length;n++){var o=fi(e[n]).split(yo);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[n]=o[s])}return{series:i,categories:r}}function AA(a){for(var e=a.split(/\n+/g),t=fi(e.shift()),r=[],i=0;i<e.length;i++){var n=fi(e[i]);if(!!n){var o=n.split(yo),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:t,data:r}}function TA(a,e){var t=a.split(new RegExp(`
*`+zi+`
*`,"g")),r={series:[]};return T(t,function(i,n){if(bA(i)){var o=wA(i),s=e[n],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=AA(i);r.series.push(o)}}),r}var DA=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin:10px 20px",s.style.color=n.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=n.get("optionToContent"),v=n.get("contentToOption"),f=_A(t);if(nt(h)){var p=h(r.getOption());tt(p)?u.innerHTML=p:Md(p)&&u.appendChild(p)}else{c.readOnly=n.get("readOnly");var d=c.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=n.get("textColor"),d.borderColor=n.get("textareaBorderColor"),d.backgroundColor=n.get("textareaColor"),c.value=f.value,u.appendChild(c)}var g=f.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+n.get("buttonColor"),m+=";color:"+n.get("buttonTextColor");var b=this;function _(){i.removeChild(o),b._dom=null}js(S,"click",_),js(x,"click",function(){if(v==null&&h!=null||v!=null&&h==null){_();return}var w;try{nt(v)?w=v(u,r.getOption()):w=TA(c.value,g)}catch(A){throw _(),new Error("Data view format error "+A)}w&&r.dispatchAction({type:"changeDataView",newOption:w}),_()}),S.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=S.style.cssText=m,!n.get("readOnly")&&y.appendChild(x),y.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(t,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.getDefaultOption=function(t){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(ee);function CA(a,e){return B(a,function(t,r){var i=e&&e[r];if(Rt(i)&&!$(i)){var n=Rt(t)&&!$(t);n||(t={value:t});var o=i.name!=null&&t.name==null;return t=rt(t,i),o&&delete t.name,t}else return t})}Ai({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(a,e){var t=[];T(a.newOption.series,function(r){var i=e.getSeriesByName(r.name)[0];if(!i)t.push(H({type:"scatter"},r));else{var n=i.get("data");t.push({name:r.name,data:CA(r.data,n)})}}),e.mergeOption(rt({series:t},a.newOption))});const IA=DA;var Mf=T,Lf=Mt();function MA(a,e){var t=ms(a);Mf(e,function(r,i){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o[i])break}if(n<0){var s=a.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function LA(a){var e=ms(a),t=e[e.length-1];e.length>1&&e.pop();var r={};return Mf(t,function(i,n){for(var o=e.length-1;o>=0;o--)if(i=e[o][n],i){r[n]=i;break}}),r}function PA(a){Lf(a).snapshots=null}function RA(a){return ms(a).length}function ms(a){var e=Lf(a);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var EA=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){PA(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(ee);Ai({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,e){e.resetOption("recreate")});const VA=EA;var kA=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],NA=function(){function a(e,t,r){var i=this;this._targetInfoList=[];var n=hc(t,e);T(zA,function(o,s){(!r||!r.include||bt(r.include,s)>=0)&&o(n,i._targetInfoList)})}return a.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,i,n){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var o=Ln[r.brushType](0,n,i);r.__rangeOffset={offset:dc[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},a.prototype.matchOutputRanges=function(e,t,r){T(e,function(i){var n=this.findTargetInfo(i,t);n&&n!==!0&&T(n.coordSyses,function(o){var s=Ln[i.brushType](1,o,i.range,!0);r(i,s.values,o,t)})},this)},a.prototype.setInputRanges=function(e,t){T(e,function(r){var i=this.findTargetInfo(r,t);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var n=Ln[r.brushType](0,i.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?dc[r.brushType](n.values,o.offset,OA(n.xyMinMax,o.xyMinMax)):n.values}},this)},a.prototype.makePanelOpts=function(e,t){return B(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:$v(i),isTargetByCursor:Uv(i,e,r.coordSysModel),getLinearBrushOtherExtent:Zv(i)}})},a.prototype.controlSeries=function(e,t,r){var i=this.findTargetInfo(e,r);return i===!0||i&&bt(i.coordSyses,t.coordinateSystem)>=0},a.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,i=hc(t,e),n=0;n<r.length;n++){var o=r[n],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<vc.length;l++)if(vc[l](i,o))return o}return!0},a}();function mo(a){return a[0]>a[1]&&a.reverse(),a}function hc(a,e){return Gh(a,e,{includeMainTypes:kA})}var zA={grid:function(a,e){var t=a.xAxisModels,r=a.yAxisModels,i=a.gridModels,n=ot(),o={},s={};!t&&!r&&!i||(T(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),T(r,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),T(i,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,c=[];T(u.getCartesians(),function(h,v){(bt(t,h.getAxis("x").model)>=0||bt(r,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:fc.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(a,e){T(a.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:fc.geo})})}},vc=[function(a,e){var t=a.xAxisModel,r=a.yAxisModel,i=a.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(a,e){var t=a.geoModel;return t&&t===e.geoModel}],fc={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var a=this.coordSys,e=a.getBoundingRect().clone();return e.applyTransform(_r(a)),e}},Ln={lineX:Q(pc,0),lineY:Q(pc,1),rect:function(a,e,t,r){var i=a?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),n=a?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[mo([i[0],n[0]]),mo([i[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(a,e,t,r){var i=[[1/0,-1/0],[1/0,-1/0]],n=B(t,function(o){var s=a?e.pointToData(o,r):e.dataToPoint(o,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:n,xyMinMax:i}}};function pc(a,e,t,r){var i=t.getAxis(["x","y"][a]),n=mo(B([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),o=[];return o[a]=n,o[1-a]=[NaN,NaN],{values:n,xyMinMax:o}}var dc={lineX:Q(gc,0),lineY:Q(gc,1),rect:function(a,e,t){return[[a[0][0]-t[0]*e[0][0],a[0][1]-t[0]*e[0][1]],[a[1][0]-t[1]*e[1][0],a[1][1]-t[1]*e[1][1]]]},polygon:function(a,e,t){return B(a,function(r,i){return[r[0]-t[0]*e[i][0],r[1]-t[1]*e[i][1]]})}};function gc(a,e,t,r){return[e[0]-r[a]*t[0],e[1]-r[a]*t[1]]}function OA(a,e){var t=yc(a),r=yc(e),i=[t[0]/r[0],t[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function yc(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}const Ss=NA;var So=T,BA=Pd("toolbox-dataZoom_"),GA=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,i,n){this._brushController||(this._brushController=new as(i.getZr()),this._brushController.on("brush",F(this._onBrush,this)).mount()),WA(t,r,this,n,i),HA(t,r)},e.prototype.onclick=function(t,r,i){FA[i].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var i={},n=this.ecModel;this._brushController.updateCovers([]);var o=new Ss(xs(this.model),n,{include:["grid"]});o.matchOutputRanges(r,n,function(u,c,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[v],h,c)}}),MA(n,i),this._dispatchZoomAction(i);function s(u,c,h){var v=c.getAxis(u),f=v.model,p=l(u,f,n),d=p.findRepresentativeAxisProxy(f).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=ur(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(f){var p=f.getAxisModel(u,c.componentIndex);p&&(v=f)}),v}},e.prototype._dispatchZoomAction=function(t){var r=[];So(t,function(i,n){r.push(at(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(ee),FA={zoom:function(){var a=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:a})},back:function(){this._dispatchZoomAction(LA(this.ecModel))}};function xs(a){var e={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function HA(a,e){a.setIconStatus("back",RA(e)>1?"emphasis":"normal")}function WA(a,e,t,r,i){var n=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(n=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=n,a.setIconStatus("zoom",n?"emphasis":"normal");var o=new Ss(xs(a),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()}:!1)}Ld("dataZoom",function(a){var e=a.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),i=[],n=xs(r),o=Gh(a,n);So(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),So(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:BA+u+h};v[c]=h,i.push(v)}return i});const $A=GA;function ZA(a){a.registerComponentModel(uA),a.registerComponentView(vA),mr("saveAsImage",pA),mr("magicType",yA),mr("dataView",IA),mr("dataZoom",$A),mr("restore",VA),K(sA)}var UA=["rect","polygon","keep","clear"];function YA(a,e){var t=Ce(a?a.brush:[]);if(!!t.length){var r=[];T(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=a&&a.toolbox;$(i)&&(i=i[0]),i||(i={feature:{}},a.toolbox=[i]);var n=i.feature||(i.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),XA(s),e&&!s.length&&s.push.apply(s,UA)}}function XA(a){var e={};T(a,function(t){e[t]=1}),a.length=0,T(e,function(t,r){a.push(r)})}var mc=T;function Sc(a){if(a){for(var e in a)if(a.hasOwnProperty(e))return!0}}function xo(a,e,t){var r={};return mc(e,function(n){var o=r[n]=i();mc(a[n],function(s,l){if(!!It.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new It(u),l==="opacity"&&(u=at(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new It(u))}})}),r;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function Pf(a,e,t){var r;T(t,function(i){e.hasOwnProperty(i)&&Sc(e[i])&&(r=!0)}),r&&T(t,function(i){e.hasOwnProperty(i)&&Sc(e[i])?a[i]=at(e[i]):delete a[i]})}function KA(a,e,t,r,i,n){var o={};T(a,function(h){var v=It.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return Fh(t,s,h)}function u(h,v){Hh(t,s,h,v)}n==null?t.each(c):t.each([n],c);function c(h,v){s=n==null?h:v;var f=t.getRawDataItem(s);if(!(f&&f.visualMap===!1))for(var p=r.call(i,h),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var S=g[y];d[S]&&d[S].applyVisual(h,l,u)}}}function qA(a,e,t,r){var i={};return T(a,function(n){var o=It.prepareVisualTypes(e[n]);i[n]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(b){return Fh(s,h,b)}function c(b,_){Hh(s,h,b,_)}for(var h,v=s.getStore();(h=o.next())!=null;){var f=s.getRawDataItem(h);if(!(f&&f.visualMap===!1))for(var p=r!=null?v.get(l,h):h,d=t(p),g=e[d],y=i[d],m=0,S=y.length;m<S;m++){var x=y[m];g[x]&&g[x].applyVisual(p,u,c)}}}}}function jA(a){var e=a.brushType,t={point:function(r){return xc[e].point(r,t,a)},rect:function(r){return xc[e].rect(r,t,a)}};return t}var xc={lineX:_c(0),lineY:_c(1),rect:{point:function(a,e,t){return a&&t.boundingRect.contain(a[0],a[1])},rect:function(a,e,t){return a&&t.boundingRect.intersect(a)}},polygon:{point:function(a,e,t){return a&&t.boundingRect.contain(a[0],a[1])&&Nr(t.range,a[0],a[1])},rect:function(a,e,t){var r=t.range;if(!a||r.length<=1)return!1;var i=a.x,n=a.y,o=a.width,s=a.height,l=r[0];if(Nr(r,i,n)||Nr(r,i+o,n)||Nr(r,i,n+s)||Nr(r,i+o,n+s)||Ct.create(a).contain(l[0],l[1])||La(i,n,i+o,n,r)||La(i,n,i,n+s,r)||La(i+o,n,i+o,n+s,r)||La(i,n+s,i+o,n+s,r))return!0}}};function _c(a){var e=["x","y"],t=["width","height"];return{point:function(r,i,n){if(r){var o=n.range,s=r[a];return Hr(s,o)}},rect:function(r,i,n){if(r){var o=n.range,s=[r[e[a]],r[e[a]]+r[t[a]]];return s[1]<s[0]&&s.reverse(),Hr(s[0],o)||Hr(s[1],o)||Hr(o[0],s)||Hr(o[1],s)}}}}function Hr(a,e){return e[0]<=a&&a<=e[1]}var bc=["inBrush","outOfBrush"],Pn="__ecBrushSelect",_o="__ecInBrushSelectEvent";function Rf(a){a.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Ss(e.option,a);t.setInputRanges(e.areas,a)})}function JA(a,e,t){var r=[],i,n;a.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),Rf(a),a.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:at(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,h=[],v=[],f=[],p=!1;s||(i=u.throttleType,n=u.throttleDelay);var d=B(o.areas,function(b){var _=rT[b.brushType],w=rt({boundingRect:_?_(b):void 0},b);return w.selectors=jA(w),w}),g=xo(o.option,bc,function(b){b.mappingMethod="fixed"});$(c)&&T(c,function(b){h[b]=1});function y(b){return c==="all"||!!h[b]}function m(b){return!!b.length}a.eachSeries(function(b,_){var w=f[_]=[];b.subType==="parallel"?S(b,_):x(b,_,w)});function S(b,_){var w=b.coordinateSystem;p=p||w.hasAxisBrushed(),y(_)&&w.eachActiveState(b.getData(),function(A,D){A==="active"&&(v[D]=1)})}function x(b,_,w){if(!(!b.brushSelector||eT(o,_))&&(T(d,function(D){o.brushTargetManager.controlSeries(D,b,a)&&w.push(D),p=p||m(w)}),y(_)&&m(w))){var A=b.getData();A.each(function(D){wc(b,w,A,D)&&(v[D]=1)})}}a.eachSeries(function(b,_){var w={seriesId:b.id,seriesIndex:_,seriesName:b.name,dataIndex:[]};l.selected.push(w);var A=f[_],D=b.getData(),C=y(_)?function(I){return v[I]?(w.dataIndex.push(D.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return wc(b,A,D,I)?(w.dataIndex.push(D.getRawIndex(I)),"inBrush"):"outOfBrush"};(y(_)?p:m(A))&&KA(bc,g,D,C)})}),QA(e,i,n,r,t)}function QA(a,e,t,r,i){if(!!i){var n=a.getZr();if(!n[_o]){n[Pn]||(n[Pn]=tT);var o=Ii(n,Pn,t,e);o(a,r)}}}function tT(a,e){if(!a.isDisposed()){var t=a.getZr();t[_o]=!0,a.dispatchAction({type:"brushSelect",batch:e}),t[_o]=!1}}function wc(a,e,t,r){for(var i=0,n=e.length;i<n;i++){var o=e[i];if(a.brushSelector(r,t,o.selectors,o))return!0}}function eT(a,e){var t=a.option.seriesIndex;return t!=null&&t!=="all"&&($(t)?bt(t,e)<0:e!==t)}var rT={rect:function(a){return Ac(a.range)},polygon:function(a){for(var e,t=a.range,r=0,i=t.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var n=t[r];n[0]<e[0][0]&&(e[0][0]=n[0]),n[0]>e[0][1]&&(e[0][1]=n[0]),n[1]<e[1][0]&&(e[1][0]=n[1]),n[1]>e[1][1]&&(e[1][1]=n[1])}return e&&Ac(e)}};function Ac(a){return new Ct(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var aT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new as(r.getZr())).on("brush",F(this._onBrush,this)).mount()},e.prototype.render=function(t,r,i,n){this.model=t,this._updateController(t,r,i,n)},e.prototype.updateTransform=function(t,r,i,n){Rf(r),this._updateController(t,r,i,n)},e.prototype.updateVisual=function(t,r,i,n){this.updateTransform(t,r,i,n)},e.prototype.updateView=function(t,r,i,n){this._updateController(t,r,i,n)},e.prototype._updateController=function(t,r,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:at(i),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:at(i),$from:r})},e.type="brush",e}(Ht);const iT=aT;var nT="#ddd",oT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&Pf(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:nT},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=B(t,function(r){return Tc(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Tc(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(zt);function Tc(a,e){return mt({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Kt(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},e,!0)}const sT=oT;var lT=["rect","polygon","lineX","lineY","keep","clear"],uT=function(a){E(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.render=function(t,r,i){var n,o,s;r.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,T(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,i){this.render(t,r,i)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),i={};return T(t.get("type",!0),function(n){r[n]&&(i[n]=r[n])}),i},e.prototype.onclick=function(t,r,i){var n=this._brushType,o=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?n:n===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:lT.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(ee);const cT=uT;function hT(a){a.registerComponentView(iT),a.registerComponentModel(sT),a.registerPreprocessor(YA),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,JA),a.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),a.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ar),a.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ar),mr("brush",cT)}var vT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){a.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],i=t.axisType,n=this._names=[],o;i==="category"?(o=[],T(r,function(u,c){var h=we(Rd(u),""),v;Rt(u)?(v=at(u),v.value=c):v=c,o.push(v),n.push(h)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Xt([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(zt);const Dc=vT;var Ef=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=kr(Dc.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(Dc);ve(Ef,Wh.prototype);const fT=Ef;var pT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Ht);const dT=pT;var gT=function(a){E(e,a);function e(t,r,i,n){var o=a.call(this,t,r,i)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(_e);const yT=gT;var Rn=Math.PI,Cc=Mt(),mT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,i){if(this.model=t,this.api=i,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Gt("nameValue",{noName:!0,value:c})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var i=t.get(["label","position"]),n=t.get("orient"),o=xT(t,r),s;i==null||i==="auto"?s=n==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":tt(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Rn/2},h=n==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),f=v.get("show",!0),p=f?v.get("itemSize"):0,d=f?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*Rn/180;var m,S,x,b=v.get("position",!0),_=f&&v.get("showPlayBtn",!0),w=f&&v.get("showPrevBtn",!0),A=f&&v.get("showNextBtn",!0),D=0,C=h;b==="left"||b==="bottom"?(_&&(m=[0,0],D+=g),w&&(S=[D,0],D+=g),A&&(x=[C-p,0],C-=g)):(_&&(m=[C-p,0],C-=g),w&&(S=[0,0],D+=g),A&&(x=[C-p,0],C-=g));var I=[D,C];return t.get("inverse")&&I.reverse(),{viewRect:o,mainLength:h,orient:n,rotation:c[n],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:m,prevBtnPosition:S,nextBtnPosition:x,axisExtent:I,controlSize:p,controlGap:d}},e.prototype._position=function(t,r){var i=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Er(),l=o.x,u=o.y+o.height;nr(s,s,[-l,-u]),Ti(s,s,-Rn/2),nr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),h=m(i.getBoundingRect()),v=m(n.getBoundingRect()),f=[i.x,i.y],p=[n.x,n.y];p[0]=f[0]=c[0][0];var d=t.labelPosOpt;if(d==null||tt(d)){var g=d==="+"?0:1;S(f,h,c,1,g),S(p,v,c,1,1-g)}else{var g=d>=0?0:1;S(f,h,c,1,g),p[1]=f[1]+d}i.setPosition(f),n.setPosition(p),i.rotation=n.rotation=t.rotation,y(i),y(n);function y(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function m(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function S(x,b,_,w,A){x[w]+=_[w][A]-b[w][A]}},e.prototype._createAxis=function(t,r){var i=r.getData(),n=r.get("axisType"),o=ST(r,n);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new yT("value",o,t.axisExtent,n);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new U;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,i,n){var o=i.getExtent();if(!!n.get(["lineStyle","show"])){var s=new ue({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:H({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new ue({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:rt({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,i,n){var o=this,s=n.getData(),l=i.scale.getTicks();this._tickSymbols=[],T(l,function(u){var c=i.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),f=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:c,y:0,onclick:F(o._changeTimeline,o,u.value)},g=Ic(h,v,r,d);g.ensureState("emphasis").style=f.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Ya(g);var y=st(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=n):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,r,i,n){var o=this,s=i.getLabelModel();if(!!s.get("show")){var l=n.getData(),u=i.getViewLabels();this._tickLabels=[],T(u,function(c){var h=c.tickValue,v=l.getItemModel(h),f=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),y=new pt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:F(o._changeTimeline,o,h),silent:!1,style:xt(f,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=xt(p),y.ensureState("progress").style=xt(d),r.add(y),Ya(y),Cc(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,i,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),c=n.getPlayState(),h=n.get("inverse",!0);v(t.nextBtnPosition,"next",F(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",F(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,c?"stop":"play",F(this._handlePlayClick,this,!c),!0);function v(f,p,d,g){if(!!f){var y=qn(kt(n.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],S=_T(n,p+"Icon",m,{x:f[0],y:f[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});S.ensureState("emphasis").style=u,r.add(S),Ya(S)}}},e.prototype._renderCurrentPointer=function(t,r,i,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=F(u._handlePointerDrag,u),h.ondragend=F(u._handlePointerDragend,u),Mc(h,u._progressLine,s,i,n,!0)},onUpdate:function(h){Mc(h,u._progressLine,s,i,n)}};this._currentPointer=Ic(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var i=this._toAxisCoord(t)[0],n=this._axis,o=re(n.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw(),this._progressLine.shape.x2=i,this._progressLine.dirty();var s=this._findNearestTick(i),l=this.model;(r||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=t.model;t._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var r=this._mainGroup.getLocalTransform();return Ne(t,r,!0)},e.prototype._findNearestTick=function(t){var r=this.model.getData(),i=1/0,n,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<i&&(i=c,n=l)}),n},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var r=this.model.getCurrentIndex();t==="+"?t=r+1:t==="-"&&(t=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),r=this._tickSymbols,i=this._tickLabels;if(r)for(var n=0;n<r.length;n++)r&&r[n]&&r[n].toggleState("progress",n<t);if(i)for(var n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",Cc(i[n]).dataIndex<=t)},e.type="timeline.slider",e}(dT);function ST(a,e){if(e=e||a.get("type"),e)switch(e){case"category":return new Vd({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new Ed({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new Wn}}function xT(a,e){return oe(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},a.get("padding"))}function _T(a,e,t,r){var i=r.style,n=Oh(a.get(["controlStyle",e]),r||{},new Ct(t[0],t[1],t[2],t[3]));return i&&n.setStyle(i),n}function Ic(a,e,t,r,i,n){var o=e.get("color");if(i)i.setColor(o),t.add(i),n&&n.onUpdate(i);else{var s=a.get("symbol");i=Dt(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),t.add(i),n&&n.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=mt({rectHover:!0,z2:100},r,!0);var u=ya(a.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=ga(a.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var h=a.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function Mc(a,e,t,r,i,n){if(!a.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",t));if(n||!o.get("animation",!0))a.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};a.stopAnimation(null,!0),a.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const bT=mT;function wT(a){a.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,r){var i=t.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),rt({currentIndex:i.option.currentIndex},e)}),a.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var r=t.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function AT(a){var e=a&&a.timeline;$(e)||(e=e?[e]:[]),T(e,function(t){!t||TT(t)})}function TT(a){var e=a.type,t={number:"value",time:"time"};if(t[e]&&(a.axisType=t[e],delete a.type),Lc(a),qe(a,"controlPosition")){var r=a.controlStyle||(a.controlStyle={});qe(r,"position")||(r.position=a.controlPosition),r.position==="none"&&!qe(r,"show")&&(r.show=!1,delete r.position),delete a.controlPosition}T(a.data||[],function(i){Rt(i)&&!$(i)&&(!qe(i,"value")&&qe(i,"name")&&(i.value=i.name),Lc(i))})}function Lc(a){var e=a.itemStyle||(a.itemStyle={}),t=e.emphasis||(e.emphasis={}),r=a.label||a.label||{},i=r.normal||(r.normal={}),n={normal:1,emphasis:1};T(r,function(o,s){!n[s]&&!qe(i,s)&&(i[s]=o)}),t.label&&!qe(r,"emphasis")&&(r.emphasis=t.label,delete t.label)}function qe(a,e){return a.hasOwnProperty(e)}function DT(a){a.registerComponentModel(fT),a.registerComponentView(bT),a.registerSubTypeDefaulter("timeline",function(){return"slider"}),wT(a),a.registerPreprocessor(AT)}function _s(a,e){if(!a)return!1;for(var t=$(a)?a:[a],r=0;r<t.length;r++)if(t[r]&&t[r][e])return!0;return!1}function Ha(a){Di(a,"label",["show"])}var Wa=Mt(),Vf=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Bh.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,r){this._mergeOption(t,r,!1,!1)},e.prototype._mergeOption=function(t,r,i,n){var o=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Wa(s)[o];if(!l||!l.data){Wa(s)[o]=null;return}u?u._mergeOption(l,r,!0):(n&&Ha(l),T(l.data,function(c){c instanceof Array?(Ha(c[0]),Ha(c[1])):Ha(c)}),u=this.createMarkerModelFromSeries(l,this,r),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Wa(s)[o]=u},this)},e.prototype.formatTooltip=function(t,r,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return Gt("section",{header:this.name,blocks:[Gt("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,r){return Wa(t)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(zt);ve(Vf,Wh.prototype);const Ge=Vf;var CT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Ge);const IT=CT;function bo(a){return!(isNaN(parseFloat(a.x))&&isNaN(parseFloat(a.y)))}function MT(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}function $a(a,e,t,r,i,n){var o=[],s=Dr(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=bs(e,l,a),c=e.indicesOfNearest(l,u)[0];o[i]=e.get(t,c),o[n]=e.get(l,c);var h=e.get(r,c),v=kd(e.get(r,c));return v=Math.min(v,20),v>=0&&(o[n]=+o[n].toFixed(v)),[o,h]}var En={min:Q($a,"min"),max:Q($a,"max"),average:Q($a,"average"),median:Q($a,"median")};function va(a,e){var t=a.getData(),r=a.coordinateSystem;if(e&&!MT(e)&&!$(e.coord)&&r){var i=r.dimensions,n=kf(e,t,r,a);if(e=at(e),e.type&&En[e.type]&&n.baseAxis&&n.valueAxis){var o=bt(i,n.baseAxis.dim),s=bt(i,n.valueAxis.dim),l=En[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else{for(var u=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis],c=0;c<2;c++)En[u[c]]&&(u[c]=bs(t,t.mapDimension(i[c]),u[c]));e.coord=u}}return e}function kf(a,e,t,r){var i={};return a.valueIndex!=null||a.valueDim!=null?(i.valueDataDim=a.valueIndex!=null?e.getDimension(a.valueIndex):a.valueDim,i.valueAxis=t.getAxis(LT(r,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function LT(a,e){var t=a.getData().getDimensionInfo(e);return t&&t.coordDim}function fa(a,e){return a&&a.containData&&e.coord&&!bo(e)?a.containData(e.coord):!0}function PT(a,e,t){return a&&a.containZone&&e.coord&&t.coord&&!bo(e)&&!bo(t)?a.containZone(e.coord,t.coord):!0}function Nf(a,e){return a?function(t,r,i,n){var o=n<2?t.coord&&t.coord[n]:t.value;return ri(o,e[n])}:function(t,r,i,n){return ri(t.value,e[n])}}function bs(a,e,t){if(t==="average"){var r=0,i=0;return a.each(e,function(n,o){isNaN(n)||(r+=n,i++)}),r/i}else return t==="median"?a.getMedian(e):a.getDataExtent(e)[t==="max"?1:0]}var Vn=Mt(),RT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ot()},e.prototype.render=function(t,r,i){var n=this,o=this.markerGroupMap;o.each(function(s){Vn(s).keep=!1}),r.eachSeries(function(s){var l=Ge.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,r,i)}),o.each(function(s){!Vn(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){Vn(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var i=this;T(t,function(n){var o=Ge.getMarkerModelFromSeries(n,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?Nd(l):zd(l))})}})},e.type="marker",e}(Ht);const ws=RT;function Pc(a,e,t){var r=e.coordinateSystem;a.each(function(i){var n=a.getItemModel(i),o,s=G(n.get("x"),t.getWidth()),l=G(n.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(a.getValues(a.dimensions,i));else if(r){var u=a.get(r.dimensions[0],i),c=a.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),a.setItemLayout(i,o)})}var ET=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(n){var o=Ge.getMarkerModelFromSeries(n,"markPoint");o&&(Pc(o.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Ta),h=VT(o,t,r);r.setData(h),Pc(r.getData(),t,n),h.each(function(v){var f=h.getItemModel(v),p=f.getShallow("symbol"),d=f.getShallow("symbolSize"),g=f.getShallow("symbolRotate"),y=f.getShallow("symbolOffset"),m=f.getShallow("symbolKeepAspect");if(nt(p)||nt(d)||nt(g)||nt(y)){var S=r.getRawValue(v),x=r.getDataParams(v);nt(p)&&(p=p(S,x)),nt(d)&&(d=d(S,x)),nt(g)&&(g=g(S,x)),nt(y)&&(y=y(S,x))}var b=f.getModel("itemStyle").getItemStyle(),_=Mi(l,"color");b.fill||(b.fill=_),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(v){v.traverse(function(f){st(f).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(ws);function VT(a,e,t){var r;a?r=B(a&&a.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new Xt(r,t),n=B(t.get("data"),Q(va,e));a&&(n=se(n,Q(fa,a)));var o=Nf(!!a,r);return i.initData(n,null,o),i}const kT=ET;function NT(a){a.registerComponentModel(IT),a.registerComponentView(kT),a.registerPreprocessor(function(e){_s(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var zT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Ge);const OT=zT;var Za=Mt(),BT=function(a,e,t,r){var i=a.getData(),n;if($(r))n=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Yt(r.yAxis,r.xAxis);else{var u=kf(r,i,e,a);s=u.valueAxis;var c=Od(i,u.valueDataDim);l=bs(i,c,o)}var h=s.dim==="x"?0:1,v=1-h,f=at(r),p={coord:[]};f.type=null,f.coord=[],f.coord[v]=-1/0,p.coord[v]=1/0;var d=t.get("precision");d>=0&&ne(l)&&(l=+l.toFixed(Math.min(d,20))),f.coord[h]=p.coord[h]=l,n=[f,p,{type:o,valueIndex:r.valueIndex,value:l}]}else n=[]}var g=[va(a,n[0]),va(a,n[1]),H({},n[2])];return g[2].type=g[2].type||null,mt(g[2],g[0]),mt(g[2],g[1]),g};function pi(a){return!isNaN(a)&&!isFinite(a)}function Rc(a,e,t,r){var i=1-a,n=r.dimensions[a];return pi(e[i])&&pi(t[i])&&e[a]===t[a]&&r.getAxis(n).containData(e[a])}function GT(a,e){if(a.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(Rc(1,t,r,a)||Rc(0,t,r,a)))return!0}return fa(a,e[0])&&fa(a,e[1])}function kn(a,e,t,r,i){var n=r.coordinateSystem,o=a.getItemModel(e),s,l=G(o.get("x"),i.getWidth()),u=G(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(a.getValues(a.dimensions,e));else{var c=n.dimensions,h=a.get(c[0],e),v=a.get(c[1],e);s=n.dataToPoint([h,v])}if(Sa(n,"cartesian2d")){var f=n.getAxis("x"),p=n.getAxis("y"),c=n.dimensions;pi(a.get(c[0],e))?s[0]=f.toGlobalCoord(f.getExtent()[t?0:1]):pi(a.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}a.setItemLayout(e,s)}var FT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(n){var o=Ge.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=Za(o).from,u=Za(o).to;l.each(function(c){kn(l,c,!0,n,i),kn(u,c,!1,n,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new jo);this.group.add(c.group);var h=HT(o,t,r),v=h.from,f=h.to,p=h.line;Za(r).from=v,Za(r).to=f,r.setData(p);var d=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),m=r.get("symbolOffset");$(d)||(d=[d,d]),$(g)||(g=[g,g]),$(y)||(y=[y,y]),$(m)||(m=[m,m]),h.from.each(function(x){S(v,x,!0),S(f,x,!1)}),p.each(function(x){var b=p.getItemModel(x).getModel("lineStyle").getLineStyle();p.setItemLayout(x,[v.getItemLayout(x),f.getItemLayout(x)]),b.stroke==null&&(b.stroke=v.getItemVisual(x,"style").fill),p.setItemVisual(x,{fromSymbolKeepAspect:v.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(x,"symbolOffset"),fromSymbolRotate:v.getItemVisual(x,"symbolRotate"),fromSymbolSize:v.getItemVisual(x,"symbolSize"),fromSymbol:v.getItemVisual(x,"symbol"),toSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(x,"symbolOffset"),toSymbolRotate:f.getItemVisual(x,"symbolRotate"),toSymbolSize:f.getItemVisual(x,"symbolSize"),toSymbol:f.getItemVisual(x,"symbol"),style:b})}),c.updateData(p),h.line.eachItemGraphicEl(function(x){st(x).dataModel=r,x.traverse(function(b){st(b).dataModel=r})});function S(x,b,_){var w=x.getItemModel(b);kn(x,b,_,t,n);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Mi(l,"color")),x.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:kt(w.get("symbolOffset",!0),m[_?0:1]),symbolRotate:kt(w.get("symbolRotate",!0),y[_?0:1]),symbolSize:kt(w.get("symbolSize"),g[_?0:1]),symbol:kt(w.get("symbol",!0),d[_?0:1]),style:A})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(ws);function HT(a,e,t){var r;a?r=B(a&&a.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return H(H({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new Xt(r,t),n=new Xt(r,t),o=new Xt([],t),s=B(t.get("data"),Q(BT,e,a,t));a&&(s=se(s,Q(GT,a)));var l=Nf(!!a,r);return i.initData(B(s,function(u){return u[0]}),null,l),n.initData(B(s,function(u){return u[1]}),null,l),o.initData(B(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}const WT=FT;function $T(a){a.registerComponentModel(OT),a.registerComponentView(WT),a.registerPreprocessor(function(e){_s(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var ZT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,i){return new e(t,r,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Ge);const UT=ZT;var Ua=Mt(),YT=function(a,e,t,r){var i=va(a,r[0]),n=va(a,r[1]),o=i.coord,s=n.coord;o[0]=Yt(o[0],-1/0),o[1]=Yt(o[1],-1/0),s[0]=Yt(s[0],1/0),s[1]=Yt(s[1],1/0);var l=Io([{},i,n]);return l.coord=[i.coord,n.coord],l.x0=i.x,l.y0=i.y,l.x1=n.x,l.y1=n.y,l};function di(a){return!isNaN(a)&&!isFinite(a)}function Ec(a,e,t,r){var i=1-a;return di(e[i])&&di(t[i])}function XT(a,e){var t=e.coord[0],r=e.coord[1],i={coord:t,x:e.x0,y:e.y0},n={coord:r,x:e.x1,y:e.y1};return Sa(a,"cartesian2d")?t&&r&&(Ec(1,t,r)||Ec(0,t,r))?!0:PT(a,i,n):fa(a,i)||fa(a,n)}function Vc(a,e,t,r,i){var n=r.coordinateSystem,o=a.getItemModel(e),s,l=G(o.get(t[0]),i.getWidth()),u=G(o.get(t[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(a.getValues(t,e));else{var c=a.get(t[0],e),h=a.get(t[1],e),v=[c,h];n.clampData&&n.clampData(v,v),s=n.dataToPoint(v,!0)}if(Sa(n,"cartesian2d")){var f=n.getAxis("x"),p=n.getAxis("y"),c=a.get(t[0],e),h=a.get(t[1],e);di(c)?s[0]=f.toGlobalCoord(f.getExtent()[t[0]==="x0"?0:1]):di(h)&&(s[1]=p.toGlobalCoord(p.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var kc=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],KT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,i){r.eachSeries(function(n){var o=Ge.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=B(kc,function(h){return Vc(s,l,h,n,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new U});this.group.add(c.group),this.markKeep(c);var h=qT(o,t,r);r.setData(h),h.each(function(v){var f=B(kc,function(A){return Vc(h,v,A,t,n)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],S=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];re(m),re(S);var x=!(g[0]>m[1]||g[1]<m[0]||y[0]>S[1]||y[1]<S[0]),b=!x;h.setItemLayout(v,{points:f,allClipped:b});var _=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=Mi(l,"color");_.fill||(_.fill=w,tt(_.fill)&&(_.fill=Qa(_.fill,.4))),_.stroke||(_.stroke=w),h.setItemVisual(v,"style",_)}),h.diff(Ua(c).data).add(function(v){var f=h.getItemLayout(v);if(!f.allClipped){var p=new ce({shape:{points:f.points}});h.setItemGraphicEl(v,p),c.group.add(p)}}).update(function(v,f){var p=Ua(c).data.getItemGraphicEl(f),d=h.getItemLayout(v);d.allClipped?p&&c.group.remove(p):(p?ht(p,{shape:{points:d.points}},r,v):p=new ce({shape:{points:d.points}}),h.setItemGraphicEl(v,p),c.group.add(p))}).remove(function(v){var f=Ua(c).data.getItemGraphicEl(v);c.group.remove(f)}).execute(),h.eachItemGraphicEl(function(v,f){var p=h.getItemModel(f),d=h.getItemVisual(f,"style");v.useStyle(h.getItemVisual(f,"style")),qt(v,Pt(p),{labelFetcher:r,labelDataIndex:f,defaultText:h.getName(f)||"",inheritColor:tt(d.fill)?Qa(d.fill,1):"#000"}),Nt(v,p),St(v,null,null,p.get(["emphasis","disabled"])),st(v).dataModel=r}),Ua(c).data=h,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(ws);function qT(a,e,t){var r,i,n=["x0","y0","x1","y1"];if(a){var o=B(a&&a.dimensions,function(u){var c=e.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return H(H({},h),{name:u,ordinalMeta:null})});i=B(n,function(u,c){return{name:u,type:o[c%2].type}}),r=new Xt(i,t)}else i=[{name:"value",type:"float"}],r=new Xt(i,t);var s=B(t.get("data"),Q(YT,e,a,t));a&&(s=se(s,Q(XT,a)));var l=a?function(u,c,h,v){var f=u.coord[Math.floor(v/2)][v%2];return ri(f,i[v])}:function(u,c,h,v){return ri(u.value,i[v])};return r.initData(s,null,l),r.hasItemOption=!0,r}const jT=KT;function JT(a){a.registerComponentModel(UT),a.registerComponentView(jT),a.registerPreprocessor(function(e){_s(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var QT=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=kr(ha.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(ha);const tD=QT;var As=Mt();function eD(a,e,t){As(a).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function rD(a,e){for(var t=As(a).coordSysRecordMap,r=t.keys(),i=0;i<r.length;i++){var n=r[i],o=t.get(n),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||zf(t,o))}}}function zf(a,e){if(e){a.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function aD(a,e){var t={model:e,containsPoint:Q(nD,e),dispatchAction:Q(iD,a),dataZoomInfoMap:null,controller:null},r=t.controller=new Ca(a.getZr());return T(["pan","zoom","scrollMove"],function(i){r.on(i,function(n){var o=[];t.dataZoomInfoMap.each(function(s){if(!!n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function iD(a,e){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function nD(a,e,t,r){return a.coordinateSystem.containPoint([t,r])}function oD(a){var e,t="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return a.each(function(n){var o=n.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[t+s]>r[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function sD(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=As(t),i=r.coordSysRecordMap||(r.coordSysRecordMap=ot());i.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=Df(n);T(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,aD(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ot());c.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){zf(i,n);return}var c=oD(l);o.enable(c.controlType,c.opt),o.setPointerChecker(n.containsPoint),Ii(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var lD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,i){if(a.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),eD(i,t,{pan:F(Nn.pan,this),zoom:F(Nn.zoom,this),scrollMove:F(Nn.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){rD(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(gs),Nn={zoom:function(a,e,t,r){var i=this.range,n=i.slice(),o=a.axisModels[0];if(!!o){var s=zn[e](null,[r.originX,r.originY],o,t,a),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/r.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ur(0,n,[0,100],0,c.minSpan,c.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:Nc(function(a,e,t,r,i,n){var o=zn[r]([n.oldX,n.oldY],[n.newX,n.newY],e,i,t);return o.signal*(a[1]-a[0])*o.pixel/o.pixelLength}),scrollMove:Nc(function(a,e,t,r,i,n){var o=zn[r]([0,0],[n.scrollDelta,n.scrollDelta],e,i,t);return o.signal*(a[1]-a[0])*n.scrollDelta})};function Nc(a){return function(e,t,r,i){var n=this.range,o=n.slice(),s=e.axisModels[0];if(!!s){var l=a(o,s,e,t,r,i);if(ur(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var zn={grid:function(a,e,t,r,i){var n=t.axis,o={},s=i.model.coordinateSystem.getRect();return a=a||[0,0],n.dim==="x"?(o.pixel=e[0]-a[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(a,e,t,r,i){var n=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return a=a?s.pointToCoord(a):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-a[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(a,e,t,r,i){var n=t.axis,o=i.model.coordinateSystem.getRect(),s={};return a=a||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-a[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-a[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}};const uD=lD;function Of(a){ys(a),a.registerComponentModel(tD),a.registerComponentView(uD),sD(a)}var cD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=kr(ha.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(ha);const hD=cD;var Wr=_t,zc=7,vD=1,On=30,fD=7,$r="horizontal",Oc="vertical",pD=5,dD=["line","bar","candlestick","scatter"],gD={easing:"cubicOut",duration:100,delay:0},yD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=F(this._onBrush,this),this._onBrushEnd=F(this._onBrushEnd,this)},e.prototype.render=function(t,r,i,n){if(a.prototype.render.apply(this,arguments),Ii(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ih(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new U;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,i=t.get("brushSelect"),n=i?fD:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===$r?{right:s.width-o.x-o.width,top:s.height-On-zc-n,width:o.width,height:On}:{right:zc,top:o.y,width:On,height:o.height},u=Nh(t.option);T(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=oe(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Oc&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===$r&&!o?{scaleY:l?1:-1,scaleX:1}:i===$r&&o?{scaleY:l?1:-1,scaleX:-1}:i===Oc&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new Wr({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Wr({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:F(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,i=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var f=[0,r[1]],p=[0,r[0]],d=[[r[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,S=Math.round(o.count()/r[0]),x;o.each([l],function(D,C){if(S>0&&C%S){m+=y;return}var I=D==null||isNaN(D)||D==="",M=I?0:it(D,h,f,!0);I&&!x&&C?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!I&&x&&(d.push([m,0]),g.push([m,0])),d.push([m,M]),g.push([m,M]),m+=y,x=I}),u=this._shadowPolygonPts=d,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var b=this.dataZoomModel;function _(D){var C=b.getModel(D?"selectedDataBackground":"dataBackground"),I=new U,M=new ce({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new xe({shape:{points:c},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(M),I.add(P),I}for(var w=0;w<3;w++){var A=_(w===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var i,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!i&&!(r!==!0&&bt(dD,u.get("type"))<0)){var c=n.getComponent(Ve(o),s).axis,h=mD(o),v,f=u.coordinateSystem;h!=null&&f.getOtherAxis&&(v=f.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),i={thisAxis:c,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,i=r.handles=[null,null],n=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),v=r.filler=new Wr({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Wr({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:vD,fill:"rgba(0,0,0,0)"}})),T([0,1],function(S){var x=l.get("handleIcon");!Bd[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var b=Dt(x,-1,0,2,2,null,!0);b.attr({cursor:Bc(this._orient),draggable:!0,drift:F(this._onDragMove,this,S),ondragend:F(this._onDragEnd,this),onmouseover:F(this._showDataInfo,this,!0),onmouseout:F(this._showDataInfo,this,!1),z2:5});var _=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=G(w,this._size[1]),this._handleWidth=_.width/_.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ya(b);var A=l.get("handleColor");A!=null&&(b.style.fill=A),o.add(i[S]=b);var D=l.getModel("textStyle");t.add(n[S]=new pt({silent:!0,invisible:!0,style:xt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var f=v;if(h){var p=G(l.get("moveHandleSize"),s[1]),d=r.moveHandle=new _t({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=r.moveHandleIcon=Dt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));f=r.moveZone=new _t({invisible:!0,shape:{y:s[1]-m,height:p+m}}),f.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(f)}f.attr({draggable:!0,cursor:Bc(this._orient),drift:F(this._onDragMove,this,"all"),ondragstart:F(this._showDataInfo,this,!0),ondragend:F(this._onDragEnd,this),onmouseover:F(this._showDataInfo,this,!0),onmouseout:F(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[it(t[0],[0,100],r,!0),it(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ur(r,n,o,i.get("zoomLock")?"all":t,s.minSpan!=null?it(s.minSpan,l,o,!0):null,s.maxSpan!=null?it(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=re([it(n[0],o,l,!0),it(n[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,i=this._handleEnds,n=re(i.slice()),o=this._size;T([0,1],function(f){var p=r.handles[f],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[f]+(f?-1:1),y:o[1]/2-d/2})},this),r.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,n[0],n[1],o[0]],c=0;c<l.length;c++){var h=l[c],v=h.getClipPath();v||(v=new _t,h.setClipPath(v)),v.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var r=this.dataZoomModel,i=this._displayables,n=i.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=re(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(p){var d=_r(i.handles[p].parent,this.group),g=Eo(p===0?"right":"left",d),y=this._handleWidth/2+pD,m=Ne([v[p]+(p===0?-y:y),this._size[1]/2],d);n[p].setStyle({x:m[0],y:m[1],verticalAlign:o===$r?"middle":g,align:o===$r?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,r){var i=this.dataZoomModel,n=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=t==null||isNaN(t)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return nt(n)?n(t,s):tt(n)?n.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var r=this._displayables,i=r.handleLabels;i[0].attr("invisible",!t),i[1].attr("invisible",!t),r.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(t,r,i,n){this._dragging=!0,ir(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ne([r,i],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,i=t.offsetY;this._brushStart=new Ch(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=re([it(i.x,o,s,!0),it(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ir(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Wr({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?gD:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=Df(this.dataZoomModel).infoList;if(!t&&r.length){var i=r[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(gs);function mD(a){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[a]}function Bc(a){return a==="vertical"?"ns-resize":"ew-resize"}const SD=yD;function Bf(a){a.registerComponentModel(hD),a.registerComponentView(SD),ys(a)}function xD(a){K(Of),K(Bf)}var _D={get:function(a,e,t){var r=at((bD[a]||{})[e]);return t&&$(r)?r[r.length-1]:r}},bD={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Gf=_D;var Gc=It.mapVisual,wD=It.eachVisual,AD=$,Fc=T,TD=re,DD=it,CD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,r){var i=this.option;!r&&Pf(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=F(t,this),this.controllerVisuals=xo(this.option.controller,r,t),this.targetVisuals=xo(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,n){r.push(n)}):r=Ce(t),r},e.prototype.eachTargetSeries=function(t,r){T(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&t.call(r,n)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(i){i===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,i){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;i=i||["<",">"],$(t)&&(t=t.slice(),u=!0);var c=r?t:u?[h(t[0]),h(t[1])]:h(t);if(tt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(nt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+c[1]:t[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=TD([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var i=t.dimensions,n=i.length-1;n>=0;n--){var o=i[n],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},n=r.target||(r.target={}),o=r.controller||(r.controller={});mt(n,i),mt(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),c.call(this,o);function l(h){AD(r.color)&&!h.inRange&&(h.inRange={color:r.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,f){var p=h[v],d=h[f];p&&!d&&(d=h[f]={},Fc(p,function(g,y){if(!!It.isValidType(y)){var m=Gf.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function c(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,f=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";Fc(this.stateList,function(y){var m=this.itemSize,S=h[y];S||(S=h[y]={color:s?p:[p]}),S.symbol==null&&(S.symbol=v&&at(v)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=f&&at(f)||(s?m[0]:[m[0],m[0]])),S.symbol=Gc(S.symbol,function(_){return _==="none"?g:_});var x=S.symbolSize;if(x!=null){var b=-1/0;wD(x,function(_){_>b&&(b=_)}),S.symbolSize=Gc(x,function(_){return DD(_,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(zt);const gi=CD;var Hc=[20,140],ID=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Hc[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Hc[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):$(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=re((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]<t[0]&&(r[0]=t[0]),r[1]<t[0]&&(r[1]=t[0]),r},e.prototype.getValueState=function(t){var r=this.option.range,i=this.getExtent();return(r[0]<=i[0]||r[0]<=t)&&(r[1]>=i[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),r.push({seriesId:i.id,dataIndex:n})},this),r},e.prototype.getVisualMeta=function(t){var r=Wc(this,"outOfRange",this.getExtent()),i=Wc(this,"inRange",this.option.range.slice()),n=[];function o(f,p){n.push({value:f,color:t(f,p)})}for(var s=0,l=0,u=i.length,c=r.length;l<c&&(!i.length||r[l]<=i[0]);l++)r[l]<i[s]&&o(r[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&n.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var h=1;l<c;l++)(!i.length||i[i.length-1]<r[l])&&(h&&(n.length&&o(n[n.length-1].value,"outOfRange"),h=0),o(r[l],"outOfRange"));var v=n.length;return{stops:n,outerColors:[v?n[0].color:"transparent",v?n[v-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=kr(gi.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(gi);function Wc(a,e,t){if(t[0]===t[1])return t.slice();for(var r=200,i=(t[1]-t[0])/r,n=t[0],o=[],s=0;s<=r&&n<t[1];s++)o.push(n),n+=i;return o.push(t[1]),o}const MD=ID;var LD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r},e.prototype.render=function(t,r,i,n){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,r,i,n)},e.prototype.renderBackground=function(t){var r=this.visualMapModel,i=Gd(r.get("padding")||0),n=t.getBoundingRect();t.add(new _t({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,r,i){i=i||{};var n=i.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(f){return s[f]}function c(f,p){s[f]=p}var h=o.controllerVisuals[n||o.getValueState(t)],v=It.prepareVisualTypes(h);return T(v,function(f){var p=h[f];i.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",p=h.__alphaForOpacity),It.dependsOn(f,r)&&p&&p.applyVisual(t,u,c)}),s[r]},e.prototype.positionGroup=function(t){var r=this.visualMapModel,i=this.api;Lo(t,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,r,i,n){},e.type="visualMap",e}(Ht);const Ff=LD;var $c=[["left","right","width"],["top","bottom","height"]];function Hf(a,e,t){var r=a.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var n={width:e.getWidth(),height:e.getHeight()},o=r.orient==="horizontal"?1:0,s=$c[o],l=[0,null,10],u={},c=0;c<3;c++)u[$c[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][o],v=oe(u,n,r.padding);return s[(v.margin[h[2]]||0)+v[h[0]]+v[h[1]]*.5<n[h[1]]*.5?0:1]}function ja(a,e){return T(a||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),a}var ye=it,PD=T,Zc=Math.min,Bn=Math.max,RD=12,ED=6,VD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.doRender=function(t,r,i,n){this._api=i,(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,r=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(r);var i=t.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(t,r,i){if(!!r){var n=r[1-i];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),h=this._applyTransform(i===0?"bottom":"top",u),v=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new pt({style:xt(f,{x:c[0],y:c[1],verticalAlign:v==="horizontal"?"middle":h,align:v==="horizontal"?h:"center",text:n})}))}},e.prototype._renderBar=function(t){var r=this.visualMapModel,i=this._shapes,n=r.itemSize,o=this._orient,s=this._useHandle,l=Hf(r,this.api,n),u=i.mainGroup=this._createBarGroup(l),c=new U;u.add(c),c.add(i.outOfRange=Uc()),c.add(i.inRange=Uc(null,s?Xc(this._orient):null,F(this._dragHandle,this,"all",!1),F(this._dragHandle,this,"all",!0))),c.setClipPath(new _t({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var h=r.textStyleModel.getTextRect("\u56FD"),v=Bn(h.width,h.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,u,0,n,v,o),this._createHandle(r,u,1,n,v,o)),this._createIndicator(r,u,n,v,o),t.add(u)},e.prototype._createHandle=function(t,r,i,n,o,s){var l=F(this._dragHandle,this,i,!1),u=F(this._dragHandle,this,i,!0),c=qn(t.get("handleSize"),n[0]),h=Dt(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),v=Xc(this._orient);h.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ir(y.event)}}),h.x=n[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Zr(h,!0),r.add(h);var f=this.visualMapModel.textStyleModel,p=new pt({cursor:v,draggable:!0,drift:l,onmousemove:function(y){ir(y.event)},ondragend:u,style:xt(f,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[c,0],g=this._shapes;g.handleThumbs[i]=h,g.handleLabelPoints[i]=d,g.handleLabels[i]=p},e.prototype._createIndicator=function(t,r,i,n,o){var s=qn(t.get("indicatorSize"),i[0]),l=Dt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof he){var c=l.style;l.useStyle(H({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var h=this.visualMapModel.textStyleModel,v=new pt({silent:!0,invisible:!0,style:xt(h,{x:0,y:0,text:""})});this.group.add(v);var f=[(o==="horizontal"?n/2:ED)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=v,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,r,i,n){if(!!this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():Yc(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,r=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[ye(r[0],i,n,!0),ye(r[1],i,n,!0)]},e.prototype._updateInterval=function(t,r){r=r||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]];ur(r,n,o,t,0);var s=i.getExtent();this._dataInterval=[ye(n[0],o,s,!0),ye(n[1],o,s,!0)]},e.prototype._updateView=function(t){var r=this.visualMapModel,i=r.getExtent(),n=this._shapes,o=[0,r.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,r,i,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new mi(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,r){var i=100,n=[],o=(t[1]-t[0])/i;n.push({color:this.getControllerVisual(t[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=t[0]+o*s;if(l>t[1])break;n.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return n.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),n},e.prototype._createBarPoints=function(t,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,i=this.visualMapModel.get("inverse");return new U(r==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(!!this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=n.itemSize,u=n.getExtent();PD([0,1],function(c){var h=o[c];h.setStyle("fill",r.handlesColor[c]),h.y=t[c];var v=ye(t[c],[0,l[1]],u,!0),f=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=f/l[0],h.x=l[0]-f/2;var p=Ne(i.handleLabelPoints[c],_r(h,this.group));s[c].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,i,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(!!h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=ye(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=Ne(c.indicatorLabelPoint,_r(h,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),b=this._orient,_=b==="horizontal";S.setStyle({text:(i||"")+o.formatValueText(r),verticalAlign:_?x:"middle",align:_?"center":x});var w={x:g,y:d,style:{fill:f}},A={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,D),S.animateTo(A,D)}else h.attr(w),S.attr(A);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var I=0;I<C.length;I++)this._api.enterBlur(C[I])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(r){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([r.offsetX,r.offsetY],t._shapes.mainGroup,!0,!0);n[1]=Zc(Bn(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,r){var i=this.visualMapModel,n=i.itemSize;if(!!i.option.hoverLink){var o=[0,n[1]],s=i.getExtent();t=Zc(Bn(o[0],t),o[1]);var l=kD(i,s,o),u=[t-l,t+l],c=ye(t,o,s,!0),h=[ye(u[0],o,s,!0),ye(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),r&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var v=this._hoverLinkDataIndices,f=[];(r||Yc(i))&&(f=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var p=Fd(v,f);this._dispatchHighDown("downplay",ja(p[0],i)),this._dispatchHighDown("highlight",ja(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(xh(t.target,function(l){var u=st(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),n=this.visualMapModel;if(!!n.isTargetSeries(i)){var o=i.getData(r.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this._api.leaveBlur(r[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ja(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,r,i,n){var o=_r(r,n?null:this.group);return $(t)?Ne(t,o,i):Eo(t,o,i)},e.prototype._dispatchHighDown=function(t,r){r&&r.length&&this.api.dispatchAction({type:t,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Ff);function Uc(a,e,t,r){return new ce({shape:{points:a},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){ir(i.event)},ondragend:r})}function kD(a,e,t){var r=RD/2,i=a.get("hoverLinkDataSize");return i&&(r=ye(i,e,t,!0)/2),r}function Yc(a){var e=a.get("hoverLinkOnHandle");return!!(e==null?a.get("realtime"):e)}function Xc(a){return a==="vertical"?"ns-resize":"ew-resize"}const ND=VD;var zD={type:"selectDataRange",event:"dataRangeSelected",update:"update"},OD=function(a,e){e.eachComponent({mainType:"visualMap",query:a},function(t){t.setSelected(a.selected)})},BD=[{createOnAllSeries:!0,reset:function(a,e){var t=[];return e.eachComponent("visualMap",function(r){var i=a.pipelineContext;!r.isTargetSeries(a)||i&&i.large||t.push(qA(r.stateList,r.targetVisuals,F(r.getValueState,r),r.getDataDimensionIndex(a.getData())))}),t}},{createOnAllSeries:!0,reset:function(a,e){var t=a.getData(),r=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(a)){var n=i.getVisualMeta(F(GD,null,a,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(t);o>=0&&(n.dimension=o,r.push(n))}}),a.getData().setVisual("visualMeta",r)}}];function GD(a,e,t,r){for(var i=e.targetVisuals[r],n=It.prepareVisualTypes(i),o={color:Mi(a.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,h,v)}return o.color;function h(f){return o[f]}function v(f,p){o[f]=p}}var Kc=T;function FD(a){var e=a&&a.visualMap;$(e)||(e=e?[e]:[]),Kc(e,function(t){if(!!t){gr(t,"splitList")&&!gr(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&$(r)&&Kc(r,function(i){Rt(i)&&(gr(i,"start")&&!gr(i,"min")&&(i.min=i.start),gr(i,"end")&&!gr(i,"max")&&(i.max=i.end))})}})}function gr(a,e){return a&&a.hasOwnProperty&&a.hasOwnProperty(e)}var qc=!1;function Wf(a){qc||(qc=!0,a.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),a.registerAction(zD,OD),T(BD,function(e){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,e)}),a.registerPreprocessor(FD))}function $f(a){a.registerComponentModel(MD),a.registerComponentView(ND),Wf(a)}var HD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],WD[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var n=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=at(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=B(this._pieceList,function(l){return l=at(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},i=It.listVisualTypes(),n=this.isCategory();T(t.pieces,function(s){T(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),T(r,function(s,l){var u=!1;T(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&T(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Gf.get(l,c==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}a.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var i=this.option,n=this._pieceList,o=(r?i:t).selected||{};if(i.selected=o,T(n,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;T(n,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=at(t)},e.prototype.getValueState=function(t){var r=It.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=It.findPieceIndex(l,i);c===t&&o.push(u)},this),r.push({seriesId:n.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var i=t.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],i=["",""],n=this;function o(c,h){var v=n.getRepresentValue({interval:c});h||(h=n.getValueState(v));var f=t(v,h);c[0]===-1/0?i[0]=f:c[1]===1/0?i[1]=f:r.push({value:c[0],color:f},{value:c[1],color:f})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(c){var h=c.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=kr(gi.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(gi),WD={splitNumber:function(a){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var n=(r[1]-r[0])/i;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&a.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=n,o++){var l=o===i-1?r[1]:s+n;a.push({interval:[s,l],close:[1,1]})}e.maxOpen&&a.push({interval:[r[1],1/0],close:[0,0]}),Js(a),T(a,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(a){var e=this.option;T(e.categories,function(t){a.push({text:this.formatValueText(t,!0),value:t})},this),jc(e,a)},pieces:function(a){var e=this.option;T(e.pieces,function(t,r){Rt(t)||(t={value:t});var i={text:"",index:r};if(t.label!=null&&(i.text=t.label),t.hasOwnProperty("value")){var n=i.value=t.value;i.interval=[n,n],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var v=[["gte","gt","min"],["lte","lt","max"]][h],f=0;f<3&&o[h]==null;f++)o[h]=t[v[f]],s[h]=l[f],c[h]=f===2;o[h]==null&&(o[h]=u[h])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=It.retrieveVisuals(t),a.push(i)},this),jc(e,a),Js(a),T(a,function(t){var r=t.close,i=[["<","\u2264"][r[1]],[">","\u2265"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function jc(a,e){var t=a.inverse;(a.orient==="vertical"?!t:t)&&e.reverse()}const $D=HD;var ZD=function(a){E(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,i=r.get("textGap"),n=r.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),h=c.endsText,v=Yt(r.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),T(c.viewPieceList,function(f){var p=f.piece,d=new U;d.onclick=F(this._onItemClick,this,p),this._enableHoverLink(d,f.indexInModelPieceList);var g=r.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new pt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,v,l),Hd(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var i=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:ja(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Hf(t,this.api,t.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,r,i,n,o){if(!!r){var s=new U,l=this.visualMapModel.textStyleModel;s.add(new pt({style:xt(l,{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=B(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(t,r,i){t.add(Dt(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,i=r.option,n=i.selectedMode;if(!!n){var o=at(i.selected),s=r.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Ff);const UD=ZD;function Zf(a){a.registerComponentModel($D),a.registerComponentView(UD),Wf(a)}function YD(a){K($f),K(Zf)}var XD={label:{enabled:!0},decal:{show:!1}},Jc=Mt(),KD={};function qD(a,e){var t=a.getModel("aria");if(!t.get("enabled"))return;var r=at(XD);mt(r.label,a.getLocaleModel().get("aria"),!1),mt(t.option,r,!1),i(),n();function i(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=ot();a.eachSeries(function(v){if(!v.isColorBySeries()){var f=h.get(v.type);f||(f={},h.set(v.type,f)),Jc(v).scope=f}}),a.eachRawSeries(function(v){if(a.isSeriesFiltered(v))return;if(nt(v.enableAriaDecal)){v.enableAriaDecal();return}var f=v.getData();if(v.isColorBySeries()){var m=Un(v.ecModel,v.name,KD,a.getSeriesCount()),S=f.getVisual("decal");f.setVisual("decal",x(S,m))}else{var p=v.getRawData(),d={},g=Jc(v).scope;f.each(function(b){var _=f.getRawIndex(b);d[_]=b});var y=p.count();p.each(function(b){var _=d[b],w=p.getName(b)||b+"",A=Un(v.ecModel,w,g,y),D=f.getItemVisual(_,"decal");f.setItemVisual(_,"decal",x(D,A))})}function x(b,_){var w=b?H(H({},_),b):_;return w.dirty=!0,w}})}}function n(){var u=a.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=rt(c.option,u),!!c.get("enabled")){var h=e.getZr().dom;if(c.get("description")){h.setAttribute("aria-label",c.get("description"));return}var v=a.getSeriesCount(),f=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var S=[],x=v>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(x,{seriesCount:v}),a.eachSeries(function(A,D){if(D<d){var C=void 0,I=A.get("name"),M=I?"withName":"withoutName";C=v>1?c.get(["series","multiple",M]):c.get(["series","single",M]),C=o(C,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var P=A.getData();if(P.count()>f){var L=c.get(["data","partialData"]);C+=o(L,{displayCnt:f})}else C+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),V=c.get(["data","separator","end"]),k=[],N=0;N<P.count();N++)if(N<f){var z=P.getName(N),W=P.getValues(N),Z=c.get(["data",z?"withName":"withoutName"]);k.push(o(Z,{name:z,value:W.join(R)}))}C+=k.join(R)+V,S.push(C)}});var b=c.getModel(["series","multiple","separator"]),_=b.get("middle"),w=b.get("end");g+=S.join(_)+w,h.setAttribute("aria-label",g)}}}function o(u,c){if(!tt(u))return u;var h=u;return T(c,function(v,f){h=h.replace(new RegExp("\\{\\s*"+f+"\\s*\\}","g"),v)}),h}function s(){var u=a.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return a.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function jD(a){if(!(!a||!a.aria)){var e=a.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},T(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function JD(a){a.registerPreprocessor(jD),a.registerVisual(a.PRIORITY.VISUAL.ARIA,qD)}var Gn=Math.sin,Fn=Math.cos,Uf=Math.PI,$e=Math.PI*2,QD=180/Uf,tC=function(){function a(){}return a.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},a.prototype.moveTo=function(e,t){this._add("M",e,t)},a.prototype.lineTo=function(e,t){this._add("L",e,t)},a.prototype.bezierCurveTo=function(e,t,r,i,n,o){this._add("C",e,t,r,i,n,o)},a.prototype.quadraticCurveTo=function(e,t,r,i){this._add("Q",e,t,r,i)},a.prototype.arc=function(e,t,r,i,n,o){this.ellipse(e,t,r,r,0,i,n,o)},a.prototype.ellipse=function(e,t,r,i,n,o,s,l){var u=s-o,c=!l,h=Math.abs(u),v=Re(h-$e)||(c?u>=$e:-u>=$e),f=u>0?u%$e:u%$e+$e,p=!1;v?p=!0:Re(h)?p=!1:p=f>=Uf==!!c;var d=e+r*Fn(o),g=t+i*Gn(o);this._start&&this._add("M",d,g);var y=Math.round(n*QD);if(v){var m=1/this._p,S=(c?1:-1)*($e-m);this._add("A",r,i,y,1,+c,e+r*Fn(o+S),t+i*Gn(o+S)),m>.01&&this._add("A",r,i,y,0,+c,d,g)}else{var x=e+r*Fn(s),b=t+i*Gn(s);this._add("A",r,i,y,+p,+c,x,b)}},a.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(e,t,r,i,n,o,s,l,u){for(var c=[],h=this._p,v=1;v<arguments.length;v++){var f=arguments[v];if(isNaN(f)){this._invalid=!0;return}c.push(Math.round(f*h)/h)}this._d.push(e+c.join(" ")),this._start=e==="Z"},a.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},a.prototype.getStr=function(){return this._str},a}();const Yf=tC;var ta="none",eC=Math.round;function rC(a){var e=a.fill;return e!=null&&e!==ta}function aC(a){var e=a.stroke;return e!=null&&e!==ta}var wo=["lineCap","miterLimit","lineJoin"],iC=B(wo,function(a){return"stroke-"+a.toLowerCase()});function nC(a,e,t,r){var i=e.opacity==null?1:e.opacity;if(t instanceof he){a("opacity",i);return}if(rC(e)){var n=Mr(e.fill);a("fill",n.color);var o=e.fillOpacity!=null?e.fillOpacity*n.opacity*i:n.opacity*i;(r||o<1)&&a("fill-opacity",o)}else a("fill",ta);if(aC(e)){var s=Mr(e.stroke);a("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((r||u!==1)&&a("stroke-width",u),(r||h)&&a("paint-order",h?"stroke":"fill"),(r||c<1)&&a("stroke-opacity",c),e.lineDash){var v=Wd(t),f=v[0],p=v[1];f&&(p=eC(p||0),a("stroke-dasharray",f.join(",")),(p||r)&&a("stroke-dashoffset",p))}else r&&a("stroke-dasharray",ta);for(var d=0;d<wo.length;d++){var g=wo[d];if(r||e[g]!==Qs[g]){var y=e[g]||Qs[g];y&&a(iC[d],y)}}}else r&&a("stroke",ta)}var Xf="http://www.w3.org/2000/svg",Kf="http://www.w3.org/1999/xlink",oC="http://www.w3.org/2000/xmlns/",sC="http://www.w3.org/XML/1998/namespace";function qf(a){return document.createElementNS(Xf,a)}function At(a,e,t,r,i){return{tag:a,attrs:t||{},children:r,text:i,key:e}}function lC(a,e){var t=[];if(e)for(var r in e){var i=e[r],n=r;i!==!1&&(i!==!0&&i!=null&&(n+='="'+i+'"'),t.push(n))}return"<"+a+" "+t.join(" ")+">"}function uC(a){return"</"+a+">"}function Ts(a,e){e=e||{};var t=e.newline?`
`:"";function r(i){var n=i.children,o=i.tag,s=i.attrs;return lC(o,s)+$d(i.text)+(n?""+t+B(n,function(l){return r(l)}).join(t)+t:"")+uC(o)}return r(a)}function cC(a,e,t){t=t||{};var r=t.newline?`
`:"",i=" {"+r,n=r+"}",o=B(wt(a),function(l){return l+i+B(wt(a[l]),function(u){return u+":"+a[l][u]+";"}).join(r)+n}).join(r),s=B(wt(e),function(l){return"@keyframes "+l+i+B(wt(e[l]),function(u){return u+i+B(wt(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(r)+n}).join(r)+n}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function Ao(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Qc(a,e,t,r){return At("svg","root",{width:a,height:e,xmlns:Xf,"xmlns:xlink":Kf,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var th={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ke="transform-origin";function hC(a,e,t){var r=H({},a.shape);H(r,e),a.buildPath(t,r);var i=new Yf;return i.reset(Zh(a)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function vC(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[Ke]=t+"px "+r+"px")}var fC={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function jf(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function pC(a,e,t){var r=a.shape.paths,i={},n,o;if(T(r,function(l){var u=Ao(t.zrId);u.animation=!0,Oi(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,v=wt(c),f=v.length;if(!!f){o=v[f-1];var p=c[o];for(var d in p){var g=p[d];i[d]=i[d]||{d:""},i[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(n=m)}}}),!!n){e.d=!1;var s=jf(i,t);return n.replace(o,s)}}function eh(a){return tt(a)?th[a]?"cubic-bezier("+th[a]+")":Zd(a)?a:"":""}function Oi(a,e,t,r){var i=a.animators,n=i.length,o=[];if(a instanceof yh){var s=pC(a,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],v=eh(c.getClip().easing),f=c.getDelay();v?h.push(v):h.push("linear"),f&&h.push(f/1e3+"s"),c.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function d(m){var S=m[1],x=S.length,b={},_={},w={},A="animation-timing-function";function D(X,ct,lt){for(var vt=X.getTracks(),Lt=X.getMaxTime(),Et=0;Et<vt.length;Et++){var gt=vt[Et];if(gt.needsAnimate()){var Ot=gt.keyframes,Bt=gt.propName;if(lt&&(Bt=lt(Bt)),Bt)for(var fe=0;fe<Ot.length;fe++){var Fe=Ot[fe],He=Math.round(Fe.time/Lt*100)+"%",Ms=eh(Fe.easing),Ls=Fe.rawValue;(tt(Ls)||ne(Ls))&&(ct[He]=ct[He]||{},ct[He][Bt]=Fe.rawValue,Ms&&(ct[He][A]=Ms))}}}}for(var C=0;C<x;C++){var I=S[C],M=I.targetName;M?M==="shape"&&D(I,_):!r&&D(I,b)}for(var P in b){var L={};Ud(L,a),H(L,b[P]);var R=$h(L),V=b[P][A];w[P]=R?{transform:R}:{},vC(w[P],L),V&&(w[P][A]=V)}var k,N=!0;for(var P in _){w[P]=w[P]||{};var z=!k,V=_[P][A];z&&(k=new hh);var W=k.len();k.reset(),w[P].d=hC(a,_[P],k);var Z=k.len();if(!z&&W!==Z){N=!1;break}V&&(w[P][A]=V)}if(!N)for(var P in w)delete w[P].d;if(!r)for(var C=0;C<x;C++){var I=S[C],M=I.targetName;M==="style"&&D(I,w,function(vt){return fC[vt]})}for(var j=wt(w),q=!0,J,C=1;C<j.length;C++){var dt=j[C-1],ut=j[C];if(w[dt][Ke]!==w[ut][Ke]){q=!1;break}J=w[dt][Ke]}if(q&&J){for(var P in w)w[P][Ke]&&delete w[P][Ke];e[Ke]=J}if(se(j,function(X){return wt(w[X]).length>0}).length){var et=jf(w,t);return et+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var pa=Math.round;function Jf(a){return a&&tt(a.src)}function Qf(a){return a&&nt(a.toDataURL)}function Ds(a,e,t,r){nC(function(i,n){var o=i==="fill"||i==="stroke";o&&tg(n)?bC(e,a,i,r):o&&eg(n)?wC(t,a,i,r):a[i]=n},e,t,!1),_C(t,a,r)}function rh(a){return Re(a[0]-1)&&Re(a[1])&&Re(a[2])&&Re(a[3]-1)}function dC(a){return Re(a[4])&&Re(a[5])}function Cs(a,e,t){if(e&&!(dC(e)&&rh(e))){var r=t?10:1e4;a.transform=rh(e)?"translate("+pa(e[4]*r)/r+" "+pa(e[5]*r)/r+")":rg(e)}}function ah(a,e,t){for(var r=a.points,i=[],n=0;n<r.length;n++)i.push(pa(r[n][0]*t)/t),i.push(pa(r[n][1]*t)/t);e.points=i.join(" ")}function ih(a){return!a.smooth}function gC(a){var e=B(a,function(t){return typeof t=="string"?[t,t]:t});return function(t,r,i){for(var n=0;n<e.length;n++){var o=e[n],s=t[o[0]];s!=null&&(r[o[1]]=pa(s*i)/i)}}}var yC={circle:[gC(["cx","cy","r"])],polyline:[ah,ih],polygon:[ah,ih]};function mC(a){for(var e=a.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function tp(a,e){var t=a.style,r=a.shape,i=yC[a.type],n={},o=e.animation,s="path",l=a.style.strokePercent,u=e.compress&&Zh(a)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&mC(a))&&!(l<1)){s=a.type;var c=Math.pow(10,u);i[0](r,n,c)}else{a.path||a.createPathProxy();var h=a.path;a.shapeChanged()&&(h.beginPath(),a.buildPath(h,a.shape),a.pathUpdated());var v=h.getVersion(),f=a,p=f.__svgPathBuilder;(f.__svgPathVersion!==v||!p||l!==f.__svgPathStrokePercent)&&(p||(p=f.__svgPathBuilder=new Yf),p.reset(u),h.rebuildPath(p,l),p.generateStr(),f.__svgPathVersion=v,f.__svgPathStrokePercent=l),n.d=p.getStr()}return Cs(n,a.transform),Ds(n,t,a,e),e.animation&&Oi(a,n,e),At(s,a.id+"",n)}function SC(a,e){var t=a.style,r=t.image;if(r&&!tt(r)&&(Jf(r)?r=r.src:Qf(r)&&(r=r.toDataURL())),!!r){var i=t.x||0,n=t.y||0,o=t.width,s=t.height,l={href:r,width:o,height:s};return i&&(l.x=i),n&&(l.y=n),Cs(l,a.transform),Ds(l,t,a,e),e.animation&&Oi(a,l,e),At("image",a.id+"",l)}}function xC(a,e){var t=a.style,r=t.text;if(r!=null&&(r+=""),!(!r||isNaN(t.x)||isNaN(t.y))){var i=t.font||Yd,n=t.x||0,o=Xd(t.y||0,Kd(i),t.textBaseline),s=qd[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(jd(t)){var u="",c=t.fontStyle,h=Jd(t.fontSize);if(!parseFloat(h))return;var v=t.fontFamily||Qd,f=t.fontWeight;u+="font-size:"+h+";font-family:"+v+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),f&&f!=="normal"&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),Cs(l,a.transform),Ds(l,t,a,e),e.animation&&Oi(a,l,e),At("text",a.id+"",l,void 0,r)}}function nh(a,e){if(a instanceof Ft)return tp(a,e);if(a instanceof he)return SC(a,e);if(a instanceof ph)return xC(a,e)}function _C(a,e,t){var r=a.style;if(ag(r)){var i=ig(a),n=t.shadowCache,o=n[i];if(!o){var s=a.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,v=r.shadowBlur,f=Mr(r.shadowColor),p=f.opacity,d=f.color,g=v/2/l,y=v/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=At("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[At("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),n[i]=o}e.filter=Li(o)}}function bC(a,e,t,r){var i=a[t],n,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(ng(i))n="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(og(i))n="radialGradient",o.cx=kt(i.x,.5),o.cy=kt(i.y,.5),o.r=kt(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=sg(s[u].offset)*100+"%",v=s[u].color,f=Mr(v),p=f.color,d=f.opacity,g={offset:h};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(At("stop",u+"",g))}var y=At(n,"",o,l),m=Ts(y),S=r.gradientCache,x=S[m];x||(x=r.zrId+"-g"+r.gradientIdx++,S[m]=x,o.id=x,r.defs[x]=At(n,x,o,l)),e[t]=Li(x)}function wC(a,e,t,r){var i=a.style[t],n={patternUnits:"userSpaceOnUse"},o;if(lg(i)){var s=i.imageWidth,l=i.imageHeight,u=void 0,c=i.image;if(tt(c)?u=c:Jf(c)?u=c.src:Qf(c)&&(u=c.toDataURL()),typeof Image>"u"){var h="Image width/height must been given explictly in svg-ssr renderer.";aa(s,h),aa(l,h)}else if(s==null||l==null){var v=function(m,S){if(m){var x=m.elm,b=m.attrs.width=s||S.width,_=m.attrs.height=l||S.height;x&&(x.setAttribute("width",b),x.setAttribute("height",_))}},f=ug(u,null,a,function(m){v(p,m),v(o,m)});f&&f.width&&f.height&&(s=s||f.width,l=l||f.height)}o=At("image","img",{href:u,width:s,height:l}),n.width=s,n.height=l}else i.svgElement&&(o=at(i.svgElement),n.width=i.svgWidth,n.height=i.svgHeight);if(!!o){n.patternTransform=$h(i);var p=At("pattern","",n,[o]),d=Ts(p),g=r.patternCache,y=g[d];y||(y=r.zrId+"-p"+r.patternIdx++,g[d]=y,n.id=y,p=r.defs[y]=At("pattern",y,n,[o])),e[t]=Li(y)}}function AC(a,e,t){var r=t.clipPathCache,i=t.defs,n=r[a.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};r[a.id]=n,i[n]=At("clipPath",n,o,[tp(a,t)])}e["clip-path"]=Li(n)}function oh(a){return document.createTextNode(a)}function je(a,e,t){a.insertBefore(e,t)}function sh(a,e){a.removeChild(e)}function lh(a,e){a.appendChild(e)}function ep(a){return a.parentNode}function rp(a){return a.nextSibling}function Hn(a,e){a.textContent=e}var uh=58,TC=120,DC=At("","");function To(a){return a===void 0}function me(a){return a!==void 0}function CC(a,e,t){for(var r={},i=e;i<=t;++i){var n=a[i].key;n!==void 0&&(r[n]=i)}return r}function jr(a,e){var t=a.key===e.key,r=a.tag===e.tag;return r&&t}function da(a){var e,t=a.children,r=a.tag;if(me(r)){var i=a.elm=qf(r);if(Is(DC,a),$(t))for(e=0;e<t.length;++e){var n=t[e];n!=null&&lh(i,da(n))}else me(a.text)&&!Rt(a.text)&&lh(i,oh(a.text))}else a.elm=oh(a.text);return a.elm}function ap(a,e,t,r,i){for(;r<=i;++r){var n=t[r];n!=null&&je(a,da(n),e)}}function yi(a,e,t,r){for(;t<=r;++t){var i=e[t];if(i!=null)if(me(i.tag)){var n=ep(i.elm);sh(n,i.elm)}else sh(a,i.elm)}}function Is(a,e){var t,r=e.elm,i=a&&a.attrs||{},n=e.attrs||{};if(i!==n){for(t in n){var o=n[t],s=i[t];s!==o&&(o===!0?r.setAttribute(t,""):o===!1?r.removeAttribute(t):t.charCodeAt(0)!==TC?r.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?r.setAttributeNS(oC,t,o):t.charCodeAt(3)===uh?r.setAttributeNS(sC,t,o):t.charCodeAt(5)===uh?r.setAttributeNS(Kf,t,o):r.setAttribute(t,o))}for(t in i)t in n||r.removeAttribute(t)}}function IC(a,e,t){for(var r=0,i=0,n=e.length-1,o=e[0],s=e[n],l=t.length-1,u=t[0],c=t[l],h,v,f,p;r<=n&&i<=l;)o==null?o=e[++r]:s==null?s=e[--n]:u==null?u=t[++i]:c==null?c=t[--l]:jr(o,u)?(Sr(o,u),o=e[++r],u=t[++i]):jr(s,c)?(Sr(s,c),s=e[--n],c=t[--l]):jr(o,c)?(Sr(o,c),je(a,o.elm,rp(s.elm)),o=e[++r],c=t[--l]):jr(s,u)?(Sr(s,u),je(a,s.elm,o.elm),s=e[--n],u=t[++i]):(To(h)&&(h=CC(e,r,n)),v=h[u.key],To(v)?je(a,da(u),o.elm):(f=e[v],f.tag!==u.tag?je(a,da(u),o.elm):(Sr(f,u),e[v]=void 0,je(a,f.elm,o.elm))),u=t[++i]);(r<=n||i<=l)&&(r>n?(p=t[l+1]==null?null:t[l+1].elm,ap(a,p,t,i,l)):yi(a,e,r,n))}function Sr(a,e){var t=e.elm=a.elm,r=a.children,i=e.children;a!==e&&(Is(a,e),To(e.text)?me(r)&&me(i)?r!==i&&IC(t,r,i):me(i)?(me(a.text)&&Hn(t,""),ap(t,null,i,0,i.length-1)):me(r)?yi(t,r,0,r.length-1):me(a.text)&&Hn(t,""):a.text!==e.text&&(me(r)&&yi(t,r,0,r.length-1),Hn(t,e.text)))}function MC(a,e){if(jr(a,e))Sr(a,e);else{var t=a.elm,r=ep(t);da(e),r!==null&&(je(r,e.elm,rp(t)),yi(r,[a],0,0))}return e}var LC=0,PC=function(){function a(e,t,r){if(this.type="svg",this.refreshHover=ch(),this.configLayer=ch(),this.storage=t,this._opts=r=H({},r),this.root=e,this._id="zr"+LC++,this._oldVNode=Qc(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=qf("svg");Is(null,this._oldVNode),i.appendChild(n),e.appendChild(i)}this.resize(r.width,r.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",MC(this._oldVNode,e),this._oldVNode=e}},a.prototype.renderOneToVNode=function(e){return nh(e,Ao(this._id))},a.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._backgroundColor,i=this._width,n=this._height,o=Ao(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var s=[];if(r&&r!=="none"){var l=Mr(r),u=l.color,c=l.opacity;this._bgVNode=At("rect","bg",{width:i,height:n,x:"0",y:"0",id:"0",fill:u,"fill-opacity":c}),s.push(this._bgVNode)}else this._bgVNode=null;var h=e.compress?null:this._mainVNode=At("g","main",{},[]);this._paintList(t,o,h?h.children:s),h&&s.push(h);var v=B(wt(o.defs),function(d){return o.defs[d]});if(v.length&&s.push(At("defs","defs",{},v)),e.animation){var f=cC(o.cssNodes,o.cssAnims,{newline:!0});if(f){var p=At("style","stl",{},[],f);s.push(p)}}return Qc(i,n,s,e.useViewBox)},a.prototype.renderToString=function(e){return e=e||{},Ts(this.renderToVNode({animation:kt(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:kt(e.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var r=Mr(e),i=r.color,n=r.opacity;t.elm.setAttribute("fill",i),n<1&&t.elm.setAttribute("fill-opacity",n)}},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(e,t,r){for(var i=e.length,n=[],o=0,s,l,u=0,c=0;c<i;c++){var h=e[c];if(!h.invisible){var v=h.__clipPaths,f=v&&v.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(f-1,p-1);d>=0&&!(v&&l&&v[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=n[o-1];for(var y=d+1;y<f;y++){var m={};AC(v[y],m,t);var S=At("g","clip-g-"+u++,m,[]);(s?s.children:r).push(S),n[o++]=S,s=S}l=v;var x=nh(h,t);x&&(s?s.children:r).push(x)}}},a.prototype.resize=function(e,t){var r=this._opts,i=this.root,n=this._viewport;if(e!=null&&(r.width=e),t!=null&&(r.height=t),i&&n&&(n.style.display="none",e=tl(i,0,r),t=tl(i,1,r),n.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,n){var o=n.style;o.width=e+"px",o.height=t+"px"}var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}},a.prototype.getWidth=function(){return this._width},a.prototype.getHeight=function(){return this._height},a.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},a.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},a.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),r="data:image/svg+xml;";return e?(t=cg(t),t&&r+"base64,"+t):r+"charset=UTF-8,"+t},a}();function ch(a){return function(){}}const RC=PC;function EC(a){a.registerPainter("svg",RC)}K([hg]);K([EC]);K([Zg,vg,fg,ty,yy,hm,Hm,I0,r1,h1,b1,DS,QS,fx,Rx,Bx,a_,f_,D_,V_,Y_,Rb]);K(pg);K(vw);K(sv);K(Mw);K(Yv);K(Nw);K(Zw);K(ZA);K(dg);K(No);K(hT);K(gg);K(DT);K(NT);K($T);K(JT);K(yg);K(xD);K(Of);K(Bf);K(YD);K($f);K(Zf);K(JD);K(mg);K(Sg);K(xg);K(_g);const VC={class:"app-container"},kC=Y("span",{style:{"vertical-align":"middle"}},"\u57FA\u672C\u4FE1\u606F",-1),NC={class:"el-table el-table--enable-row-hover el-table--medium"},zC={cellspacing:"0",style:{width:"100%"}},OC=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"Redis\u7248\u672C")],-1),BC={class:"el-table__cell is-leaf"},GC={key:0,class:"cell"},FC=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"\u8FD0\u884C\u6A21\u5F0F")],-1),HC={class:"el-table__cell is-leaf"},WC={key:0,class:"cell"},$C=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"\u7AEF\u53E3")],-1),ZC={class:"el-table__cell is-leaf"},UC={key:0,class:"cell"},YC=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"\u5BA2\u6237\u7AEF\u6570")],-1),XC={class:"el-table__cell is-leaf"},KC={key:0,class:"cell"},qC=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"\u8FD0\u884C\u65F6\u95F4(\u5929)")],-1),jC={class:"el-table__cell is-leaf"},JC={key:0,class:"cell"},QC=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"\u4F7F\u7528\u5185\u5B58")],-1),tI={class:"el-table__cell is-leaf"},eI={key:0,class:"cell"},rI=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"\u4F7F\u7528CPU")],-1),aI={class:"el-table__cell is-leaf"},iI={key:0,class:"cell"},nI=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"\u5185\u5B58\u914D\u7F6E")],-1),oI={class:"el-table__cell is-leaf"},sI={key:0,class:"cell"},lI=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"AOF\u662F\u5426\u5F00\u542F")],-1),uI={class:"el-table__cell is-leaf"},cI={key:0,class:"cell"},hI=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"RDB\u662F\u5426\u6210\u529F")],-1),vI={class:"el-table__cell is-leaf"},fI={key:0,class:"cell"},pI=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"Key\u6570\u91CF")],-1),dI={class:"el-table__cell is-leaf"},gI={key:0,class:"cell"},yI=Y("td",{class:"el-table__cell is-leaf"},[Y("div",{class:"cell"},"\u7F51\u7EDC\u5165\u53E3/\u51FA\u53E3")],-1),mI={class:"el-table__cell is-leaf"},SI={key:0,class:"cell"},xI=Y("span",{style:{"vertical-align":"middle"}},"\u547D\u4EE4\u7EDF\u8BA1",-1),_I={class:"el-table el-table--enable-row-hover el-table--medium"},bI=Y("span",{style:{"vertical-align":"middle"}},"\u5185\u5B58\u4FE1\u606F",-1),wI={class:"el-table el-table--enable-row-hover el-table--medium"},AI=bg({name:"Cache"}),MI=Object.assign(AI,{setup(a){const e=Wi([]),t=Wi(null),r=Wi(null),{proxy:i}=wg();function n(){i.$modal.loading("\u6B63\u5728\u52A0\u8F7D\u7F13\u5B58\u76D1\u63A7\u6570\u636E\uFF0C\u8BF7\u7A0D\u5019\uFF01"),ip().then(o=>{i.$modal.closeLoading(),e.value=o.data,el(t.value,"macarons").setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},series:[{name:"\u547D\u4EE4",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:o.data.commandStats,animationEasing:"cubicInOut",animationDuration:1e3}]}),el(r.value,"macarons").setOption({tooltip:{formatter:"{b} <br/>{a} : "+e.value.info.used_memory_human},series:[{name:"\u5CF0\u503C",type:"gauge",min:0,max:1e3,detail:{formatter:e.value.info.used_memory_human},data:[{value:parseFloat(e.value.info.used_memory_human),name:"\u5185\u5B58\u6D88\u8017"}]}]})})}return n(),(o,s)=>{const l=cr("Monitor"),u=cr("el-card"),c=cr("el-col"),h=cr("PieChart"),v=cr("Odometer"),f=cr("el-row");return Wt(),$t("div",VC,[pe(f,null,{default:de(()=>[pe(c,{span:24,class:"card-box"},{default:de(()=>[pe(u,null,{header:de(()=>[pe(l,{style:{width:"1em",height:"1em","vertical-align":"middle"}}),$i(),kC]),default:de(()=>[Y("div",NC,[Y("table",zC,[Y("tbody",null,[Y("tr",null,[OC,Y("td",BC,[ft(e).info?(Wt(),$t("div",GC,Zt(ft(e).info.redis_version),1)):jt("",!0)]),FC,Y("td",HC,[ft(e).info?(Wt(),$t("div",WC,Zt(ft(e).info.redis_mode=="standalone"?"\u5355\u673A":"\u96C6\u7FA4"),1)):jt("",!0)]),$C,Y("td",ZC,[ft(e).info?(Wt(),$t("div",UC,Zt(ft(e).info.tcp_port),1)):jt("",!0)]),YC,Y("td",XC,[ft(e).info?(Wt(),$t("div",KC,Zt(ft(e).info.connected_clients),1)):jt("",!0)])]),Y("tr",null,[qC,Y("td",jC,[ft(e).info?(Wt(),$t("div",JC,Zt(ft(e).info.uptime_in_days),1)):jt("",!0)]),QC,Y("td",tI,[ft(e).info?(Wt(),$t("div",eI,Zt(ft(e).info.used_memory_human),1)):jt("",!0)]),rI,Y("td",aI,[ft(e).info?(Wt(),$t("div",iI,Zt(parseFloat(ft(e).info.used_cpu_user_children).toFixed(2)),1)):jt("",!0)]),nI,Y("td",oI,[ft(e).info?(Wt(),$t("div",sI,Zt(ft(e).info.maxmemory_human),1)):jt("",!0)])]),Y("tr",null,[lI,Y("td",uI,[ft(e).info?(Wt(),$t("div",cI,Zt(ft(e).info.aof_enabled=="0"?"\u5426":"\u662F"),1)):jt("",!0)]),hI,Y("td",vI,[ft(e).info?(Wt(),$t("div",fI,Zt(ft(e).info.rdb_last_bgsave_status),1)):jt("",!0)]),pI,Y("td",dI,[ft(e).dbSize?(Wt(),$t("div",gI,Zt(ft(e).dbSize),1)):jt("",!0)]),yI,Y("td",mI,[ft(e).info?(Wt(),$t("div",SI,Zt(ft(e).info.instantaneous_input_kbps)+"kps/"+Zt(ft(e).info.instantaneous_output_kbps)+"kps",1)):jt("",!0)])])])])])]),_:1})]),_:1}),pe(c,{span:12,class:"card-box"},{default:de(()=>[pe(u,null,{header:de(()=>[pe(h,{style:{width:"1em",height:"1em","vertical-align":"middle"}}),$i(),xI]),default:de(()=>[Y("div",_I,[Y("div",{ref_key:"commandstats",ref:t,style:{height:"420px"}},null,512)])]),_:1})]),_:1}),pe(c,{span:12,class:"card-box"},{default:de(()=>[pe(u,null,{header:de(()=>[pe(v,{style:{width:"1em",height:"1em","vertical-align":"middle"}}),$i(),bI]),default:de(()=>[Y("div",wI,[Y("div",{ref_key:"usedmemory",ref:r,style:{height:"420px"}},null,512)])]),_:1})]),_:1})]),_:1})])}}});export{MI as default};