import{ak as tt,w as _,al as ho,W as U,a2 as L,N as Yt,am as Et,E as gr,an as W,ao as ra,G as Pt,O as Y,ap as aa,aq as kt,a1 as z,ar as st,as as Be,at as Ne,au as Mr,av as Nt,aw as Pr,J as G,ax as ki,ay as Lt,az as vo,aA as E,aB as Gi,aC as fo,aD as ae,aE as ie,ah as ct,aF as Z,k as mt,aG as It,aH as Zt,aI as Fe,aJ as K,aK as po,aL as Ft,aM as yt,aN as Lr,aO as Q,aP as at,aQ as lt,p as V,aR as yr,aS as go,aT as zi,u as Rt,aU as yo,aV as ia,aW as na,aX as Le,a6 as mo,l as X,R as et,aY as I,aZ as Vi,a_ as dt,a$ as Bi,b0 as xo,b1 as Ni,b2 as Fi,b3 as So,b4 as mr,b5 as Oe,b6 as _o,b7 as ne,b8 as fe,b9 as oa,B as rt,ba as bo,bb as Oi,bc as oe,bd as Wi,be as Yi,_ as B,bf as xr,r as Gt,m as xt,bg as wo,$ as Ie,bh as Zi,bi as Ao,bj as To,o as ht,bk as $i,bl as Co,bm as Ir,bn as Do,bo as Mo,bp as Ot,bq as Po,T as _e,br as Lo,bs as Io,D as gt,bt as We,bu as Ro,bv as Hi,bw as $t,bx as Eo,by as Rr,bz as ko,bA as Go,X as se,a3 as Ht,bB as Er,bC as Xi,bD as kr,bE as Re,bF as le,bG as Ye,bH as Ui,bI as zo,bJ as Dt,bK as Vo,bL as ji,bM as Bo,bN as No,bO as Fo,bP as Sr,bQ as Ji,bR as qi,bS as Oo,bT as Wo,bU as Ze,bV as sa,bW as Yo,bX as Zo,bY as ue,U as Ki,F as Xt,bZ as $o,b_ as Ho,V as Qi,b$ as Xo,c0 as tn,c1 as Uo,c2 as jo,c3 as ut,c4 as Jo,c5 as ee,c6 as qo,c7 as Ko,c8 as Qo,c9 as ts,ca as es,cb as rs,cc as it,cd as as,ce as is,cf as Gr,cg as ns,ch as os,ci as ss,cj as ls,ck as us,cl as cs,cm as hs,cn as vs,co as fs,S as zr,cp as ds,cq as ps,cr as en,cs as gs,ct as ys,cu as rn,cv as an,cw as ms,cx as xs,cy as Ss,cz as _s,cA as bs,cB as ws,cC as nn,cD as As,cE as Ts,cF as Cs,cG as Ds,cH as Ms,cI as Ps,cJ as Ls,cK as on,cL as Is,cM as Rs,cN as Es,cO as ks,cP as Gs,cQ as zs,cR as Vs,cS as Bs,ag as Ns,cT as Fs,cU as Os,cV as Ws,cW as Ys,j as Zs,ae as $s,cX as Hs,cY as Xs,cZ as Us,c_ as js,c$ as Js,d0 as qs,d1 as Ks,d2 as Qs,d3 as tl,d4 as el,d5 as rl,d6 as al,d7 as il,d8 as nl,d9 as ol,da as sl,db as ll,dc as ul,dd as cl,de as hl,df as vl,dg as fl,dh as dl,di as pl,dj as gl,dk as yl,dl as la,dm as ml,dn as ua,dp as Vr,dq as xl,dr as sn,ds as Sl,dt as ln,du as _l,dv as ca,dw as bl,dx as wl,dy as Qt,dz as Al,dA as Tl,dB as Cl,dC as Dl,dD as Ml,dE as Pl,dF as Ll,dG as Ee,dH as un,dI as cn,dJ as hn,dK as Il,dL as Rl,dM as El,L as kl,dN as ha,dO as pt,dP as ce,dQ as Gl,dR as va,dS as zl,dT as Vl,dU as vn,P as Bl,dV as fn,dW as Nl,dX as Fl,dY as Ol,dZ as $e,d_ as Wl,d$ as Yl,e0 as Zl,e1 as $l,e2 as Hl,e3 as Xl,e4 as Ul,e5 as jl,e6 as Jl,e7 as dn,e8 as Br,e9 as ql,ea as Kl,eb as Ql,aj as fa,ec as tu,ed as eu,g as ru,d as au,e as iu,i as nu,c as ou,a as su,b as lu,h as uu,f as cu}from"./install-2bcffee5.js";function hu(a,e,t,r,i,n,o,s){var l=new tt({style:{text:a,font:e,align:t,verticalAlign:r,padding:i,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function vu(a){a.eachSeriesByType("radar",function(e){var t=e.getData(),r=[],i=e.coordinateSystem;if(i){var n=i.getIndicatorAxes();_(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]=da(c)?c:pa(i)})}),t.each(function(o){var s=ho(r[o],function(l){return da(l)})||pa(i);r[o].push(s.slice()),t.setItemLayout(o,r[o])})}})}function da(a){return!isNaN(a[0])&&!isNaN(a[1])}function pa(a){return[a.cx,a.cy]}function fu(a){var e=a.polar;if(e){U(e)||(e=[e]);var t=[];_(e,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),a.radar=a.radar||[],U(a.radar)||(a.radar=[a.radar]),a.radar.push(r)):t.push(r)}),a.polar=t}_(a.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var du=function(a){L(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 d=v.getItemVisual(f,"symbol")||"circle";if(d!=="none"){var p=ki(v.getItemVisual(f,"symbolSize")),g=Lt(d,-1,-1,2,2),y=v.getItemVisual(f,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function c(v,f,d,p,g,y){d.removeAll();for(var m=0;m0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Y({color:d.color},l));var g=ct(st(d),{boundaryGap:t,splitNumber:r,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:v},!1);if(Z(c)){var y=g.name;g.name=c.replace("{value}",y!=null?y:"")}else mt(c)&&(g.name=c(g.name,g));var m=new It(g,null,this.ecModel);return Zt(m,Fe.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:ct({lineStyle:{color:"#bbb"}},jt.axisLine),axisLabel:be(jt.axisLabel,!1),axisTick:be(jt.axisTick,!1),splitLine:be(jt.splitLine,!0),splitArea:be(jt.splitArea,!0),indicator:[]},e}(K);const xu=mu;var Su=["axisLine","axisTickLabel","axisName"],_u=function(a){L(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=G(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Ft(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});_(n,function(o){_(Su,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"),d=U(v)?v:[v],p=U(f)?f:[f],g=[],y=[];function m(N,F,O){var $=O%F.length;return N[$]=N[$]||[],$}if(n==="circle")for(var S=i[0].getTicksCoords(),x=r.cx,C=r.cy,w=0;w3?1.4:o>1?1.2:1.1,c=n>0?u:1/u;Ke(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);Ke(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!na(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;Ke(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(mo);function Ke(a,e,t,r,i){a.pointerChecker&&a.pointerChecker(r,i.originX,i.originY)&&(Le(r.event),gn(a,e,t,r,i))}function gn(a,e,t,r,i){i.isAvailableBehavior=E(Me,null,t,r),a.trigger(e,i)}function Me(a,e,t){var r=t[a];return!a||r&&(!Z(r)||e.event[r+"Key"])}const yn=Mu;function Pu(a,e,t){var r=a.target;r.x+=e,r.y+=t,r.dirty()}function Lu(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()}function mn(a){if(Z(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 Qe,ke={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"},ga=X(ke),Ge={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ya=X(Ge),Iu=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(e,t){t=t||{};var r=mn(e);this._defsUsePending=[];var i=new W;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),j(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;ku(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var v=He(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=Sn(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var f=i;i=new W,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 et({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=Qe[s];if(c&&I(Qe,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=ma[s];if(f&&I(ma,s)){var d=f.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}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 Vi({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});J(t,r),j(e,r,this._defsUsePending,!1,!1),Ru(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(){Qe={g:function(e,t){var r=new W;return J(t,r),j(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new et;return J(t,r),j(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 yt;return J(t,r),j(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 dt;return J(t,r),j(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 Bi;return J(t,r),j(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=_a(r));var n=new Yt({shape:{points:i||[]},silent:!0});return J(t,n),j(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var r=e.getAttribute("points"),i;r&&(i=_a(r));var n=new Et({shape:{points:i||[]},silent:!0});return J(t,n),j(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var r=new kt;return J(t,r),j(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 W;return J(t,s),j(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 W;return J(t,s),j(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=xo(r);return J(t,i),j(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),a}(),ma={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 Ni(e,t,r,i);return xa(a,n),Sa(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 Fi(e,t,r);return xa(a,i),Sa(a,i),i}};function xa(a,e){var t=a.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Sa(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={};xn(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function J(a,e){a&&a.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Y(e.__inheritedStyle,a.__inheritedStyle))}function _a(a){for(var e=He(a),t=[],r=0;r0;n-=2){var o=r[n],s=r[n-1],l=He(o);switch(i=i||fe(),s){case"translate":ne(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_o(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Oe(i,i,-parseFloat(l[0])*tr);break;case"skewX":var u=Math.tan(parseFloat(l[0])*tr);mr(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*tr);mr(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 wa=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xn(a,e,t){var r=a.getAttribute("style");if(r){wa.lastIndex=0;for(var i;(i=wa.exec(r))!=null;){var n=i[1],o=I(ke,n)?ke[n]:null;o&&(e[o]=i[2]);var s=I(Ge,n)?Ge[n]:null;s&&(t[s]=i[2])}}}function Bu(a,e,t){for(var r=0;ri&&(r=o,i=l)}if(r)return Wu(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var i=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return _(o,function(s){s.type==="polygon"?Ca(s.exterior,i,n,t):_(s.points,function(l){Ca(l,i,n,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),r=new rt(i[0],i[1],n[0]-i[0],n[1]-i[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(t[0],t[1]))return!1;t:for(var n=0,o=i.length;n>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=n,i=s,n=l,r.push([s/t,l/t])}return r}function _r(a,e){return a=Uu(a),G(Gt(a.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,i=t.geometry,n=[];switch(i.type){case"Polygon":var o=i.coordinates;n.push(new Da(o[0],o.slice(1)));break;case"MultiPolygon":_(i.coordinates,function(l){l[0]&&n.push(new Da(l[0],l.slice(1)))});break;case"LineString":n.push(new Ma([i.coordinates]));break;case"MultiLineString":n.push(new Ma(i.coordinates))}var s=new bn(r[e||"name"],n,r.cp);return s.properties=r,s})}var br=[126,25],Pa="\u5357\u6D77\u8BF8\u5C9B",wt=[[[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 _t=0;_t0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,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=B(),r=B(),i=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(f,d){return d&&(f=d(f)),f&&[f[0]*n.scaleX+n.x,f[1]*n.scaleY+n.y]}function h(f){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(v=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Be(e,Ne(r),{labelFetcher:v,labelDataIndex:h,defaultText:t},f);var d=e.getTextContent();if(d&&(An(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Ea(a,e,t,r,i,n){a.data?a.data.setItemGraphicEl(n,e):ht(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:r&&r.option||{}}}function ka(a,e,t,r,i){a.data||$i({el:e,componentModel:i,itemName:t,itemTooltipOption:r.get("tooltip")})}function Ga(a,e,t,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=r.getModel("emphasis"),o=n.get("focus");return Mr(e,o,n.get("blurScope"),n.get("disabled")),a.isGeo&&Co(e,i,t),o}function za(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(),_(a,function(l){s.lineStart();for(var u=0;u-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}(ie);const hc=cc;function vc(a,e){var t={};return _(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;c1?(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 C=a.getBoxLayoutParams();C.aspect=g,x=$t(C,{width:d,height:p})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(a.get("center"),e),this.setZoom(a.get("zoom"))}function yc(a,e){_(e.get("geoCoord"),function(t,r){a.addGeoCoord(r,t)})}var mc=function(){function a(){this.dimensions=Dn}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 Fa(l+s,l,z({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Oa,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)}}),_(n,function(o,s){var l=G(o,function(c){return c.get("nameMap")}),u=new Fa(s,s,z({nameMap:Ro(l)},i(o[0])));u.zoomLimit=Hi.apply(null,G(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Oa,u.resize(o[0],t),_(o,function(c){c.coordinateSystem=u,yc(u,c)})}),r},a.prototype.getFilledRegions=function(e,t,r,i){for(var n=(e||[]).slice(),o=B(),s=0;sIc)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||!ar(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 ar(a,e){var t=a._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const kc=Rc;var Gc=function(a){L(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&&ct(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){_(["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=Gt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);_(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}(K);const zc=Gc;var Vc=function(a){L(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}(lt);const Bc=Vc;var ir=_,Ln=Math.min,In=Math.max,Ya=Math.floor,Nc=Math.ceil,Za=Ui,Fc=Math.PI,Oc=function(){function a(e,t,r){this.type="parallel",this._axesMap=B(),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;ir(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Bc(o,kr(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();ir(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),Re(o.scale,o.model)},this)}},this)},a.prototype.resize=function(e,t){this._rect=$t(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=Ae(e.get("axisExpandWidth"),l),h=Ae(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow"),d;if(f)d=Ae(f[1]-f[0],l),f[1]=f[0]+d;else{d=Ae(c*(h-1),l);var p=e.get("axisExpandCenter")||Ya(u/2);f=[c*p-d/2],f[1]=f[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var y=[Ya(Za(f[0]/c,1))+1,Nc(Za(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])}),ir(r,function(o,s){var l=(i.axisExpandable?Yc:Wc)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Fc/2,vertical:0},h=[u[n].x+e.x,u[n].y+e.y],v=c[n],f=fe();Oe(f,f,v),ne(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=[];_(o,function(g){s.push(e.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;cn*(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?Ye(l,i,o,"all"):u="none";else{var f=i[1]-i[0],d=o[1]*s/f;i=[In(0,d-f/2)],i[1]=Ln(o[1],i[0]+f),i[0]=i[1]-f}return{axisExpandWindow:i,behavior:u}},a}();function Ae(a,e){return Ln(In(a,e[0]),e[1])}function Wc(a,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*a,axisNameAvailableWidth:t,axisLabelShow:!0}}function Yc(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=0;i--)Dt(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;n0?1:-1}function or(a,e){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(e)))}function sh(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"),d;U(f)?d=f.slice():f==null?d=["100%","100%"]:d=[f,f],d[h.index]=V(d[h.index],v),d[c.index]=V(d[c.index],r?v:Math.abs(n)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function lh(a,e,t,r,i){var n=a.get(ih)||0;n&&(nr.attr({scaleX:e[0],scaleY:e[1],rotation:t}),nr.updateTransform(),n/=nr.getLineScale(),n*=e[r.valueDim.index]),i.valueLineWidth=n||0}function uh(a,e,t,r,i,n,o,s,l,u,c,h){var v=c.categoryDim,f=c.valueDim,d=h.pxSign,p=Math.max(e[f.index]+s,0),g=p;if(r){var y=Math.abs(l),m=Hi(a.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var x=V(m,e[f.index]),C=Math.max(p+x*2,0),w=S?0:x*2,b=qi(r),A=b?r:Ka((y+w)/C),T=y-A*p;x=T/2/(S?A:Math.max(A-1,1)),C=p+x*2,w=S?0:x*2,!b&&r!=="fixed"&&(A=u?Ka((Math.abs(u)+w)/C):0),g=A*C-w,h.repeatTimes=A,h.symbolMargin=x}var D=d*(g/2),M=h.pathPosition=[];M[v.index]=t[v.wh]/2,M[f.index]=o==="start"?D:o==="end"?l-D:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var R=h.bundlePosition=[];R[v.index]=t[v.xy],R[f.index]=t[f.xy];var P=h.barRectShape=z({},t);P[f.wh]=d*Math.max(Math.abs(t[f.wh]),Math.abs(M[f.index]+D)),P[v.wh]=t[v.wh];var k=h.clipShape={};k[v.xy]=-t[v.xy],k[v.wh]=c.ecSize[v.wh],k[f.xy]=0,k[f.wh]=t[f.wh]}function En(a){var e=a.symbolPatternSize,t=Lt(a.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function kn(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(Fr(a,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:y<0)&&(m=u-1-p),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 Gn(a,e,t,r){var i=a.__pictorialBundle,n=a.__pictorialMainPath;n?Bt(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=En(t),i.add(n),Bt(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 zn(a,e,t){var r=z({},e.barRectShape),i=a.__pictorialBarRect;i?Bt(i,null,{shape:r},e,t):(i=a.__pictorialBarRect=new et({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,a.add(i))}function Vn(a,e,t,r){if(t.symbolClip){var i=a.__pictorialClipPath,n=z({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)Pt(i,{shape:n},s,l);else{n[o.wh]=0,i=new et({shape:n}),a.__pictorialBundle.setClipPath(i),a.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],Pr[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Ua(a,e){var t=a.getItemModel(e);return t.getAnimationDelayParams=ch,t.isAnimationEnabled=hh,t}function ch(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function hh(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ja(a,e,t,r){var i=new W,n=new W;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?kn(i,e,t):Gn(i,e,t),zn(i,t,r),Vn(i,e,t,r),i.__pictorialShapeStr=Bn(a,t),i.__pictorialSymbolMeta=t,i}function vh(a,e,t){var r=t.animationModel,i=t.dataIndex,n=a.__pictorialBundle;Pt(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,i),t.symbolRepeat?kn(a,e,t,!0):Gn(a,e,t,!0),zn(a,t,!0),Vn(a,e,t,!0)}function Ja(a,e,t,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var n=[];Fr(r,function(o){n.push(o)}),r.__pictorialMainPath&&n.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),_(n,function(o){Oo(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),a.setItemGraphicEl(e,null)}function Bn(a,e){return[a.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Fr(a,e,t){_(a.__pictorialBundle.children(),function(r){r!==a.__pictorialBarRect&&e.call(t,r)})}function Bt(a,e,t,r,i,n){e&&a.attr(e),r.symbolClip&&!i?t&&a.attr(t):t&&Pr[i?"updateProps":"initProps"](a,t,r.animationModel,r.dataIndex,n)}function qa(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");Fr(a,function(p){if(p instanceof kt){var g=p.style;p.useStyle(z({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var f=e.valueDim.posDesc[+(t.boundingLength>0)],d=a.__pictorialBarRect;Be(d,Ne(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Wo(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:f}),Mr(a,c,h,n.get("disabled"))}function Ka(a){var e=Math.round(a);return Math.abs(a-e)<1e-4?e:Math.ceil(a)}const fh=nh;var dh=function(a){L(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=Ze(sa.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}(sa);const ph=dh;function gh(a){a.registerChartView(fh),a.registerSeriesModel(ph),a.registerLayout(a.PRIORITY.VISUAL.LAYOUT,Ot(Yo,"pictorialBar")),a.registerLayout(a.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Zo("pictorialBar"))}function yh(a,e,t,r){return a&&(a.legacy||a.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||I(a,"text")))}function mh(a,e,t){var r=a,i,n,o;if(e==="text")o=r;else{o={},I(r,"text")&&(o.text=r.text),I(r,"rich")&&(o.rich=r.rich),I(r,"textFill")&&(o.fill=r.textFill),I(r,"textStroke")&&(o.stroke=r.textStroke),I(r,"fontFamily")&&(o.fontFamily=r.fontFamily),I(r,"fontSize")&&(o.fontSize=r.fontSize),I(r,"fontStyle")&&(o.fontStyle=r.fontStyle),I(r,"fontWeight")&&(o.fontWeight=r.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=I(r,"textPosition");t?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),I(r,"textPosition")&&(i.position=r.textPosition),I(r,"textOffset")&&(i.offset=r.textOffset),I(r,"textRotation")&&(i.rotation=r.textRotation),I(r,"textDistance")&&(i.distance=r.textDistance)}return Qa(o,a),_(o.rich,function(l){Qa(l,l)}),{textConfig:i,textContent:n}}function Qa(a,e){e&&(e.font=e.textFont||e.font,I(e,"textStrokeWidth")&&(a.lineWidth=e.textStrokeWidth),I(e,"textAlign")&&(a.align=e.textAlign),I(e,"textVerticalAlign")&&(a.verticalAlign=e.textVerticalAlign),I(e,"textLineHeight")&&(a.lineHeight=e.textLineHeight),I(e,"textWidth")&&(a.width=e.textWidth),I(e,"textHeight")&&(a.height=e.textHeight),I(e,"textBackgroundColor")&&(a.backgroundColor=e.textBackgroundColor),I(e,"textPadding")&&(a.padding=e.textPadding),I(e,"textBorderColor")&&(a.borderColor=e.textBorderColor),I(e,"textBorderWidth")&&(a.borderWidth=e.textBorderWidth),I(e,"textBorderRadius")&&(a.borderRadius=e.textBorderRadius),I(e,"textBoxShadowColor")&&(a.shadowColor=e.textBoxShadowColor),I(e,"textBoxShadowBlur")&&(a.shadowBlur=e.textBoxShadowBlur),I(e,"textBoxShadowOffsetX")&&(a.shadowOffsetX=e.textBoxShadowOffsetX),I(e,"textBoxShadowOffsetY")&&(a.shadowOffsetY=e.textBoxShadowOffsetY))}var Nn={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ti=X(Nn);Rr(ue,function(a,e){return a[e]=1,a},{});ue.join(", ");var ze=["","style","shape","extra"],Wt=xt();function Or(a,e,t,r,i){var n=a+"Animation",o=Qi(a,r,i)||{},s=Wt(e).userDuring;return o.duration>0&&(o.during=s?E(Ah,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=a),z(o,t[n]),o}function sr(a,e,t,r){r=r||{};var i=r.dataIndex,n=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Wt(a),u=e.style;l.userDuring=e.during;var c={},h={};if(Ch(a,e,h),ri("shape",e,h),ri("extra",e,h),!n&&s&&(Th(a,e,c),ei("shape",a,e,c),ei("extra",a,e,c),Dh(a,e,u,c)),h.style=u,Sh(a,h,o),bh(a,e),s)if(n){var v={};_(ze,function(d){var p=d?e[d]:e;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),z(d?v[d]:v,p.enterFrom))});var f=Or("enter",a,e,t,i);f.duration>0&&a.animateFrom(v,f)}else _h(a,e,i||0,t,c);Fn(a,e),u?a.dirty():a.markRedraw()}function Fn(a,e){for(var t=Wt(a).leaveToProps,r=0;r0&&a.animateFrom(i,n)}}function bh(a,e){I(e,"silent")&&(a.silent=e.silent),I(e,"ignore")&&(a.ignore=e.ignore),a instanceof Ie&&I(e,"invisible")&&(a.invisible=e.invisible),a instanceof Ki&&I(e,"autoBatch")&&(a.autoBatch=e.autoBatch)}var nt={},wh={setTransform:function(a,e){return nt.el[a]=e,this},getTransform:function(a){return nt.el[a]},setShape:function(a,e){var t=nt.el,r=t.shape||(t.shape={});return r[a]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(a){var e=nt.el.shape;if(e)return e[a]},setStyle:function(a,e){var t=nt.el,r=t.style;return r&&(r[a]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(a){var e=nt.el.style;if(e)return e[a]},setExtra:function(a,e){var t=nt.el.extra||(nt.el.extra={});return t[a]=e,this},getExtra:function(a){var e=nt.el.extra;if(e)return e[a]}};function Ah(){var a=this,e=a.el;if(e){var t=Wt(e).userDuring,r=a.userDuring;if(t!==r){a.el=a.userDuring=null;return}nt.el=e,r(wh)}}function ei(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]={}),Mt(l))z(o,n);else for(var u=se(l),c=0;c=0){!o&&(o=r[a]={});for(var f=X(n),c=0;c=0)){var v=a.getAnimationStyleProps(),f=v?v.style:null;if(f){!n&&(n=r.style={});for(var d=X(t),u=0;ug?"left":"right",h=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var Uh={line:function(a,e,t,r){return a.dim==="angle"?{type:"Line",shape:yl(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:la(e.cx,e.cy,r[0],r[1],(-t-i/2)*n,(-t+i/2)*n)}:{type:"Sector",shape:la(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}};const jh=Hh;var Jh=function(a){L(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}(K);const qh=Jh;var Wr=function(a){L(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",We).models[0]},e.type="polarAxis",e}(K);Zt(Wr,Fe);var Kh=function(a){L(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Wr),Qh=function(a){L(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Wr),Yr=function(a){L(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}(lt);Yr.prototype.dataToRadius=lt.prototype.dataToCoord;Yr.prototype.radiusToData=lt.prototype.coordToData;const tv=Yr;var ev=xt(),Zr=function(a){L(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=ml(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)),d=ev(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-f)<=1&&Math.abs(g-o)<=1&&p>f?f=p:(d.lastTickCount=o,d.lastAutoInterval=f),f},e}(lt);Zr.prototype.dataToAngle=lt.prototype.dataToCoord;Zr.prototype.angleToData=lt.prototype.coordToData;const rv=Zr;var Wn=["radius","angle"],av=function(){function a(e){this.dimensions=Wn,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new tv,this._angleAxis=new rv,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=us;)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=ai(t);return i===this?this.dataToPoint(r):null},a.prototype.convertFromPixel=function(e,t,r){var i=ai(t);return i===this?this.pointToData(r):null},a}();function ai(a){var e=a.seriesModel,t=a.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const iv=av;function nv(a,e,t){var r=e.get("center"),i=t.getWidth(),n=t.getHeight();a.cx=V(r[0],i),a.cy=V(r[1],n);var o=a.getRadiusAxis(),s=Math.min(i,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:U(l)||(l=[0,l]);var u=[V(l[0],s),V(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function ov(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();_(ua(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),_(ua(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Re(r.scale,r.model),Re(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 sv(a){return a.mainType==="angleAxis"}function ii(a,e){if(a.type=e.get("type"),a.scale=kr(e),a.onBand=e.get("boundaryGap")&&a.type==="category",a.inverse=e.get("inverse"),sv(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 lv={dimensions:Wn,create:function(a,e){var t=[];return a.eachComponent("polar",function(r,i){var n=new iv(i+"");n.update=ov;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");ii(o,l),ii(s,u),nv(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",We).models[0];r.coordinateSystem=i.coordinateSystem}}),t}};const uv=lv;var cv=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Te(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 Ce(a){var e=a.getRadiusAxis();return e.inverse?0:1}function ni(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 hv=function(a){L(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=G(i.getViewLabels(),function(c){c=st(c);var h=i.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(v),c});ni(u),ni(s),_(cv,function(c){t.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&vv[c](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Vr),vv={axisLine:function(a,e,t,r,i,n){var o=e.getModel(["axisLine","lineStyle"]),s=Ce(t),l=s?0:1,u;n[l]===0?u=new yt({shape:{cx:t.cx,cy:t.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Lr({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[Ce(t)],u=G(r,function(c){return new dt({shape:Te(t,[l,l+s],c.coord)})});a.add(Q(u,{style:Y(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[Ce(t)],c=[],h=0;hy?"left":"right",x=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var C=s[d];Ht(C)&&C.textStyle&&(f=new It(C.textStyle,l,l.ecModel))}var w=new tt({silent:Ft.isLabelSilent(e),style:ut(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(w),c){var b=Ft.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=h.rawLabel,ht(w).eventData=b}},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=0?"p":"n",P=b;C&&(r[c][M]||(r[c][M]={p:b,n:b}),P=r[c][M][R]);var k=void 0,N=void 0,F=void 0,O=void 0;if(d.dim==="radius"){var $=d.dataToCoord(D)-b,St=l.dataToCoord(M);Math.abs($)=O})}}})}function _v(a){var e={};_(a,function(r,i){var n=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=Zn(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=Yn(r);v[f]||h.autoWidthCount++,v[f]=v[f]||{width:0,maxWidth:0};var d=V(r.get("barWidth"),c),p=V(r.get("barMaxWidth"),c),g=r.get("barGap"),y=r.get("barCategoryGap");d&&!v[f].width&&(d=Math.min(h.remainedWidth,d),v[f].width=d,h.remainedWidth-=d),p&&(v[f].maxWidth=p),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return _(e,function(r,i){t[i]={};var n=r.stacks,o=r.bandWidth,s=V(r.categoryGap,o),l=V(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),_(n,function(p,g){var y=p.maxWidth;y&&y+r.start.y&&(d=d+"-"+r.end.y);var p=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new tt({z2:30,style:ut(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||Z(s))&&(s&&(r=ca(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 d=c==="center",p=0;p=i.start.time&&r.times.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/lr)-Math.floor(t[0].time/lr)+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&&ti.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 si(a){var e=a.calendarModel,t=a.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Iv=Lv;function Rv(a){a.registerComponentModel(Dv),a.registerComponentView(Pv),a.registerCoordinateSystem("calendar",Iv)}function Ev(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 li(a,e){var t;return _(e,function(r){a[r]!=null&&a[r]!=="auto"&&(t=!0)}),t}function kv(a,e,t){var r=z({},t),i=a[e],n=t.$action||"merge";n==="merge"?i?(ct(i,r,!0),ln(i,r,{ignoreSize:!0}),wl(t,i),De(t,i),De(t,i,"shape"),De(t,i,"style"),De(t,i,"extra"),t.clipPath=i.clipPath):a[e]=r:n==="replace"?a[e]=r:n==="remove"&&i&&(a[e]=null)}var $n=["transition","enterFrom","leaveTo"],Gv=$n.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function De(a,e,t){if(t&&(!a[t]&&e[t]&&(a[t]={}),a=a[t],e=e[t]),!(!a||!e))for(var r=t?$n:Gv,i=0;i=0;c--){var h=i[c],v=Qt(h.id,null),f=v!=null?o.get(v):null;if(f){var d=f.parent,y=q(d),m=d===n?{width:s,height:l}:{width:y.width,height:y.height},S={},x=Al(f,h,m,null,{hv:h.hv,boundingMode:h.bounding},S);if(!q(f).isNew&&x){for(var C=h.transition,w={},b=0;b=0)?w[A]=T:f[A]=T}Pt(f,w,t,0)}else f.attr(S)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(i){Pe(i,q(i).option,r,t._lastGraphicModel)}),this._elMap=B()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(at);function Ar(a){var e=I(ui,a)?ui[a]:rn(a),t=new e({});return q(t).type=a,t}function ci(a,e,t,r){var i=Ar(t);return e.add(i),r.set(a,i),q(i).id=a,q(i).isNew=!0,i}function Pe(a,e,t,r){var i=a&&a.parent;i&&(a.type==="group"&&a.traverse(function(n){Pe(n,e,t,r)}),xh(a,e,r),t.removeKey(q(a).id))}function hi(a,e,t,r){a.isGroup||_([["cursor",Ie.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(i){var n=i[0];I(e,n)?a[n]=gt(e[n],i[1]):a[n]==null&&(a[n]=i[1])}),_(X(e),function(i){if(i.indexOf("on")===0){var n=e[i];a[i]=mt(n)?n:null}}),I(e,"draggable")&&(a.draggable=e.draggable),e.name!=null&&(a.name=e.name),e.id!=null&&(a.id=e.id)}function Nv(a){return a=z({},a),_(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Tl),function(e){delete a[e]}),a}function Fv(a,e,t){var r=ht(a).eventData;!a.silent&&!a.ignore&&!r&&(r=ht(a).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:a.name}),r&&(r.info=t.info)}function Ov(a){a.registerComponentModel(Vv),a.registerComponentView(Bv),a.registerPreprocessor(function(e){var t=e.graphic;U(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Wv=function(a){L(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=[],_(r,function(u,c){var h=Qt(Cl(u),""),v;Ht(u)?(v=st(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 on([{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}(K);const vi=Wv;var Hn=function(a){L(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=Ze(vi.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}(vi);Zt(Hn,Dl.prototype);const Yv=Hn;var Zv=function(a){L(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(at);const $v=Zv;var Hv=function(a){L(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}(lt);const Xv=Hv;var ur=Math.PI,fi=xt(),Uv=function(a){L(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 ae("nameValue",{noName:!0,value:c})},_(["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=Jv(t,r),s;i==null||i==="auto"?s=n==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:ur/2},h=n==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),f=v.get("show",!0),d=f?v.get("itemSize"):0,p=f?v.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*ur/180;var m,S,x,C=v.get("position",!0),w=f&&v.get("showPlayBtn",!0),b=f&&v.get("showPrevBtn",!0),A=f&&v.get("showNextBtn",!0),T=0,D=h;C==="left"||C==="bottom"?(w&&(m=[0,0],T+=g),b&&(S=[T,0],T+=g),A&&(x=[D-d,0],D-=g)):(w&&(m=[D-d,0],D-=g),b&&(S=[0,0],T+=g),A&&(x=[D-d,0],D-=g));var M=[T,D];return t.get("inverse")&&M.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:M,controlSize:d,controlGap:p}},e.prototype._position=function(t,r){var i=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=fe(),l=o.x,u=o.y+o.height;ne(s,s,[-l,-u]),Oe(s,s,-ur/2),ne(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],d=[n.x,n.y];d[0]=f[0]=c[0][0];var p=t.labelPosOpt;if(p==null||Z(p)){var g=p==="+"?0:1;S(f,h,c,1,g),S(d,v,c,1,1-g)}else{var g=p>=0?0:1;S(f,h,c,1,g),d[1]=f[1]+p}i.setPosition(f),n.setPosition(d),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,C,w,b,A){x[b]+=w[b][A]-C[b][A]}},e.prototype._createAxis=function(t,r){var i=r.getData(),n=r.get("axisType"),o=jv(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 Xv("value",o,t.axisExtent,n);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new W;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 dt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:z({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new dt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Y({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=[],_(l,function(u){var c=i.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),f=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:E(o._changeTimeline,o,u.value)},g=di(h,v,r,p);g.ensureState("emphasis").style=f.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),ee(g);var y=ht(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=[],_(u,function(c){var h=c.tickValue,v=l.getItemModel(h),f=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),y=new tt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:E(o._changeTimeline,o,h),silent:!1,style:ut(f,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=ut(d),y.ensureState("progress").style=ut(p),r.add(y),ee(y),fi(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",E(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",E(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,c?"stop":"play",E(this._handlePlayClick,this,!c),!0);function v(f,d,p,g){if(f){var y=Ml(gt(n.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],S=qv(n,d+"Icon",m,{x:f[0],y:f[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});S.ensureState("emphasis").style=u,r.add(S),ee(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=E(u._handlePointerDrag,u),h.ondragend=E(u._handlePointerDragend,u),pi(h,u._progressLine,s,i,n,!0)},onUpdate:function(h){pi(h,u._progressLine,s,i,n)}};this._currentPointer=di(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=Dt(n.getExtent().slice());i>o[1]&&(i=o[1]),ir[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function vf(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=$r(t),i=r.coordSysRecordMap||(r.coordSysRecordMap=B());i.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=un(n);_(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,lf(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=B());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){Xn(i,n);return}var c=hf(l);o.enable(c.controlType,c.opt),o.setPointerChecker(n.containsPoint),Er(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ff=function(a){L(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(),of(i,t,{pan:E(cr.pan,this),zoom:E(cr.zoom,this),scrollMove:E(cr.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){sf(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(cn),cr={zoom:function(a,e,t,r){var i=this.range,n=i.slice(),o=a.axisModels[0];if(o){var s=hr[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(Ye(0,n,[0,100],0,c.minSpan,c.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:yi(function(a,e,t,r,i,n){var o=hr[r]([n.oldX,n.oldY],[n.newX,n.newY],e,i,t);return o.signal*(a[1]-a[0])*o.pixel/o.pixelLength}),scrollMove:yi(function(a,e,t,r,i,n){var o=hr[r]([0,0],[n.scrollDelta,n.scrollDelta],e,i,t);return o.signal*(a[1]-a[0])*n.scrollDelta})};function yi(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(Ye(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var hr={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 df=ff;function pf(a){hn(a),a.registerComponentModel(nf),a.registerComponentView(df),vf(a)}var gf=function(a){L(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=Ze(Ee.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}(Ee);const yf=gf;var qt=et,mi=7,mf=1,vr=30,xf=7,Kt="horizontal",xi="vertical",Sf=5,_f=["line","bar","candlestick","scatter"],bf={easing:"cubicOut",duration:100,delay:0},wf=function(a){L(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=E(this._onBrush,this),this._onBrushEnd=E(this._onBrushEnd,this)},e.prototype.render=function(t,r,i,n){if(a.prototype.render.apply(this,arguments),Er(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(){Xi(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 W;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?xf:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Kt?{right:s.width-o.x-o.width,top:s.height-vr-mi-n,width:o.width,height:vr}:{right:mi,top:o.y,width:vr,height:o.height},u=sn(t.option);_(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=$t(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===xi&&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===Kt&&!o?{scaleY:l?1:-1,scaleX:1}:i===Kt&&o?{scaleY:l?1:-1,scaleX:-1}:i===xi&&!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 qt({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new qt({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:E(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]],d=[0,r[0]],p=[[r[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,S=Math.round(o.count()/r[0]),x;o.each([l],function(T,D){if(S>0&&D%S){m+=y;return}var M=T==null||isNaN(T)||T==="",R=M?0:it(T,h,f,!0);M&&!x&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&x&&(p.push([m,0]),g.push([m,0])),p.push([m,R]),g.push([m,R]),m+=y,x=M}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(T){var D=C.getModel(T?"selectedDataBackground":"dataBackground"),M=new W,R=new Yt({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Et({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(R),M.add(P),M}for(var b=0;b<3;b++){var A=w(b===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();_(l,function(u){if(!i&&!(r!==!0&&Xt(_f,u.get("type"))<0)){var c=n.getComponent(Il(o),s).axis,h=Af(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 qt({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new qt({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:mf,fill:"rgba(0,0,0,0)"}})),_([0,1],function(S){var x=l.get("handleIcon");!Rl[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var C=Lt(x,-1,0,2,2,null,!0);C.attr({cursor:Si(this._orient),draggable:!0,drift:E(this._onDragMove,this,S),ondragend:E(this._onDragEnd,this),onmouseover:E(this._showDataInfo,this,!0),onmouseout:E(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),b=l.get("handleSize");this._handleHeight=V(b,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ee(C);var A=l.get("handleColor");A!=null&&(C.style.fill=A),o.add(i[S]=C);var T=l.getModel("textStyle");t.add(n[S]=new tt({silent:!0,invisible:!0,style:ut(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var f=v;if(h){var d=V(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new et({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=r.moveHandleIcon=Lt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));f=r.moveZone=new et({invisible:!0,shape:{y:s[1]-m,height:d+m}}),f.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(f)}f.attr({draggable:!0,cursor:Si(this._orient),drift:E(this._onDragMove,this,"all"),ondragstart:E(this._showDataInfo,this,!0),ondragend:E(this._onDragEnd,this),onmouseover:E(this._showDataInfo,this,!0),onmouseout:E(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];Ye(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=Dt([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=Dt(i.slice()),o=this._size;_([0,1],function(f){var d=r.handles[f],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[f]+(f?-1:1),y:o[1]/2-p/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;cr[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 kl(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=Dt([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&&(Le(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 qt({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?bf:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=un(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}(cn);function Af(a){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[a]}function Si(a){return a==="vertical"?"ns-resize":"ew-resize"}const Tf=wf;function Cf(a){a.registerComponentModel(yf),a.registerComponentView(Tf),hn(a)}function Df(a){Rt(pf),Rt(Cf)}var Mf={label:{enabled:!0},decal:{show:!1}},_i=xt(),Pf={};function Lf(a,e){var t=a.getModel("aria");if(!t.get("enabled"))return;var r=st(Mf);ct(r.label,a.getLocaleModel().get("aria"),!1),ct(t.option,r,!1),i(),n();function i(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=B();a.eachSeries(function(v){if(!v.isColorBySeries()){var f=h.get(v.type);f||(f={},h.set(v.type,f)),_i(v).scope=f}}),a.eachRawSeries(function(v){if(a.isSeriesFiltered(v))return;if(mt(v.enableAriaDecal)){v.enableAriaDecal();return}var f=v.getData();if(v.isColorBySeries()){var m=ha(v.ecModel,v.name,Pf,a.getSeriesCount()),S=f.getVisual("decal");f.setVisual("decal",x(S,m))}else{var d=v.getRawData(),p={},g=_i(v).scope;f.each(function(C){var w=f.getRawIndex(C);p[w]=C});var y=d.count();d.each(function(C){var w=p[C],b=d.getName(C)||C+"",A=ha(v.ecModel,b,g,y),T=f.getItemVisual(w,"decal");f.setItemVisual(w,"decal",x(T,A))})}function x(C,w){var b=C?z(z({},w),C):w;return b.dirty=!0,b}})}}function n(){var u=a.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=Y(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,d=c.get(["series","maxCount"])||10,p=Math.min(v,d),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,T){if(T1?c.get(["series","multiple",R]):c.get(["series","single",R]),D=o(D,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var P=A.getData();if(P.count()>f){var k=c.get(["data","partialData"]);D+=o(k,{displayCnt:f})}else D+=c.get(["data","allData"]);for(var N=c.get(["data","separator","middle"]),F=c.get(["data","separator","end"]),O=[],$=0;$=bt:-u>=bt),f=u>0?u%bt:u%bt+bt,d=!1;v?d=!0:pt(h)?d=!1:d=f>=Un==!!c;var p=e+r*dr(o),g=t+i*fr(o);this._start&&this._add("M",p,g);var y=Math.round(n*Ef);if(v){var m=1/this._p,S=(c?1:-1)*(bt-m);this._add("A",r,i,y,1,+c,e+r*dr(o+S),t+i*fr(o+S)),m>.01&&this._add("A",r,i,y,0,+c,p,g)}else{var x=e+r*dr(s),C=t+i*fr(s);this._add("A",r,i,y,+d,+c,x,C)}},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"}function Yf(a){return""}function Hr(a,e){e=e||{};var t=e.newline?` `:"";function r(i){var n=i.children,o=i.tag,s=i.attrs,l=i.text;return Wf(o,s)+(o!=="style"?nn(l):l||"")+(n?""+t+G(n,function(u){return r(u)}).join(t)+t:"")+Yf(o)}return r(a)}function Zf(a,e,t){t=t||{};var r=t.newline?` `:"",i=" {"+r,n=r+"}",o=G(X(a),function(l){return l+i+G(X(a[l]),function(u){return u+":"+a[l][u]+";"}).join(r)+n}).join(r),s=G(X(e),function(l){return"@keyframes "+l+i+G(X(e[l]),function(u){return u+i+G(X(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?"":[""].join(r)}function Cr(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function bi(a,e,t,r){return H("svg","root",{width:a,height:e,xmlns:Jn,"xmlns:xlink":qn,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var wi={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"},At="transform-origin";function $f(a,e,t){var r=z({},a.shape);z(r,e),a.buildPath(t,r);var i=new jn;return i.reset(fn(a)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function Hf(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[At]=t+"px "+r+"px")}var Xf={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Qn(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function Uf(a,e,t){var r=a.shape.paths,i={},n,o;if(_(r,function(l){var u=Cr(t.zrId);u.animation=!0,Xe(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,v=X(c),f=v.length;if(f){o=v[f-1];var d=c[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].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=Qn(i,t);return n.replace(o,s)}}function Ai(a){return Z(a)?wi[a]?"cubic-bezier("+wi[a]+")":zl(a)?a:"":""}function Xe(a,e,t,r){var i=a.animators,n=i.length,o=[];if(a instanceof Ir){var s=Uf(a,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u0}).length){var uo=Qn(b,t);return uo+" "+m[0]+" both"}}for(var g in l){var s=p(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 he=Math.round;function to(a){return a&&Z(a.src)}function eo(a){return a&&mt(a.toDataURL)}function Xr(a,e,t,r){Nf(function(i,n){var o=i==="fill"||i==="stroke";o&&dn(n)?ao(e,a,i,r):o&&Br(n)?io(t,a,i,r):a[i]=n},e,t,!1),ed(t,a,r)}function Ti(a){return pt(a[0]-1)&&pt(a[1])&&pt(a[2])&&pt(a[3]-1)}function jf(a){return pt(a[4])&&pt(a[5])}function Ur(a,e,t){if(e&&!(jf(e)&&Ti(e))){var r=t?10:1e4;a.transform=Ti(e)?"translate("+he(e[4]*r)/r+" "+he(e[5]*r)/r+")":ql(e)}}function Ci(a,e,t){for(var r=a.points,i=[],n=0;nn?(d=t[l+1]==null?null:t[l+1].elm,so(a,d,t,i,l)):Ve(a,e,r,n))}function Vt(a,e){var t=e.elm=a.elm,r=a.children,i=e.children;a!==e&&(jr(a,e),Dr(e.text)?ot(r)&&ot(i)?r!==i&&od(t,r,i):ot(i)?(ot(a.text)&&pr(t,""),so(t,null,i,0,i.length-1)):ot(r)?Ve(t,r,0,r.length-1):ot(a.text)&&pr(t,""):a.text!==e.text&&(ot(r)&&Ve(t,r,0,r.length-1),pr(t,e.text)))}function sd(a,e){if(te(a,e))Vt(a,e);else{var t=a.elm,r=no(t);ve(e),r!==null&&(Ct(r,e.elm,oo(t)),Ve(r,[a],0,0))}return e}var ld=0,ud=function(){function a(e,t,r){if(this.type="svg",this.refreshHover=Ei(),this.configLayer=Ei(),this.storage=t,this._opts=r=z({},r),this.root=e,this._id="zr"+ld++,this._oldVNode=bi(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=Kn("svg");jr(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",sd(this._oldVNode,e),this._oldVNode=e}},a.prototype.renderOneToVNode=function(e){return Mi(e,Cr(this._id))},a.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,i=this._height,n=Cr(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress;var o=[],s=this._bgVNode=cd(r,i,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=H("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=G(X(n.defs),function(v){return n.defs[v]});if(u.length&&o.push(H("defs","defs",{},u)),e.animation){var c=Zf(n.cssNodes,n.cssAnims,{newline:!0});if(c){var h=H("style","stl",{},[],c);o.push(h)}}return bi(r,i,o,e.useViewBox)},a.prototype.renderToString=function(e){return e=e||{},Hr(this.renderToVNode({animation:gt(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:gt(e.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e},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=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=n[o-1];for(var y=p+1;y