File size: 144,990 Bytes
76494c7 | 1 2 3 4 | import{du as un,dv as Gt,dw as _t,cx as Or,dx as fn,cz as ye,cA as Te,dy as qo,dz as Ga,f as er,bV as cn,bW as vn,a6 as tr,bi as Qo,a0 as pn,a_ as xt,c3 as rr,aZ as aa,aW as ia,j as Fe,bB as Va,bw as na,bg as hn,c5 as dn,l as Na,dA as gn,aS as D,ai as oa,bo as de,dB as We,a as yn,co as sa,dC as Vt,O as Ye,cr as Nt,E as mn,b1 as la,M as ut,dD as es,dE as ts,cM as rs,b8 as ua,t as zt,dF as ft,dG as xn,c6 as Le,dH as as,dI as is,m as Sn,dJ as ns,ci as fa,dK as os,dL as ss,dM as ls,dN as _n,b9 as us,b_ as fs,cs as bn,cu as kr,af as Je,bz as cs,aj as vs,A as ca,dO as ps,cB as hs,dP as ds,dQ as za,dR as gs,dS as Fa,bd as Dt,dT as ys,aT as W,bb as Ue,B as ms,v as xs,dU as Wa,dV as Ss,dW as _s,cN as bs,cO as An,cP as Ft,dX as As,dY as ws,ck as va,bD as ar,k as ir,d as wn,c as Cn,cm as Tn,dZ as Cs,bQ as Ln,d_ as Ts,cl as Ir,d$ as ct,cF as Ya,e0 as Ls,e1 as Ms,e2 as Es,cj as Wt,e3 as Rs,cn as pa,ag as Ke,cp as Mn,cR as En,K as Rn,T as Ps,R as nr,Q as or,a3 as Ua,y as te,e4 as Ds,e5 as Xa,ax as Os,dd as Br,e6 as ks,L as Is,S as Bs,P as Gs,e7 as Vs,e8 as Ns,aw as zs,e9 as Pn,ea as Fs,eb as ha,ec as Ws,ed as Dn,bE as Gr,ee as On,bC as kn,c7 as Ys,ef as Us,bl as Xs,eg as Hs,eh as Zs,bu as Ha,ah as js,bR as Js,bn as Ks,cY as $s,u as vt,J as qs,aR as Za,bG as pt,ce as Qs,cf as el,ei as ke,cq as tl,cg as rl,ba as In,bN as al,bI as il,di as nl,$ as ol,V as sl,ej as Bn}from"./Axis-D3q4j9rs.js";import{l as Q,_ as O,E as G,a as Gn,h as F,G as I,o as pe,O as L,g as S,U as ll,P as ht,aw as da,a9 as Yt,Z as Vn,aK as ae,p as se,a6 as q,i as sr,f as N,n as ga,q as U,aN as Me,R as le,az as lr,aO as ul,aJ as dt,B as Y,I as Nn,a1 as V,m as ya,r as z,j as xe,X as ue,V as fl,am as cl,d as oe,c as re,a0 as zn,b as $,aP as ja,av as Ja,aQ as Fn,aR as vl,aH as Wn,aS as pl,aI as Ot,aG as hl,a3 as dl,a2 as Yn,W as Un,aT as Ve,aU as Ee,ah as Ka,aV as ur,aC as gl,aW as yl,aX as Xn,aY as Vr,aZ as fr,a_ as ml,ag as $a,C as xl,a5 as Nr,ar as Sl,a$ as _l,b0 as bl,s as Hn,b1 as dr,a8 as Al,a7 as gr,ab as Zn,L as jn,ae as wl,b2 as gt,b3 as Cl,aL as Tl}from"./graphic-DeMuFa6Q.js";var qa=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Ll=1,Ut=2,Jn=Ll|Ut;function Xt(r,e,t){t=t||Jn,e?r.dirty|=t:r.dirty&=~t}function Kn(r,e){return e=e||Jn,r.dirty==null||!!(r.dirty&e)}function Se(r){if(r)return Kn(r)&&Ml(r,r.label,r),r}function Ml(r,e,t){var a=e.getComputedTransform();r.transform=un(r.transform,a);var i=r.localRect=Gt(r.localRect,e.getBoundingRect()),n=e.style,o=n.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=n.__marginType;f==null&&u&&(o=u,f=_t.textMargin);for(var c=0;c<4;c++)yr[c]=f===_t.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===_t.textMargin&&Or(i,yr,!1,!1);var v=r.rect=Gt(r.rect,i);return a&&v.applyTransform(a),f===_t.minMargin&&Or(v,yr,!1,!1),r.axisAligned=fn(a),(r.label=r.label||{}).ignore=e.ignore,Xt(r,!1),Xt(r,!0,Ut),r}var yr=[0,0,0,0];function El(r,e,t){return r.transform=un(r.transform,t),r.localRect=Gt(r.localRect,e),r.rect=Gt(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=fn(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Rl(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var a=r.rect;a&&(a.x+=e.x,a.y+=e.y);var i=r.obb;i&&i.fromBoundingRect(r.localRect,t)}}function Qa(r,e){for(var t=0;t<qa.length;t++){var a=qa[t];r[a]==null&&(r[a]=e[a])}return Se(r)}function ei(r){var e=r.obb;return(!e||Kn(r,Ut))&&(r.obb=e=e||new qo,e.fromBoundingRect(r.localRect,r.transform),Xt(r,!1,Ut)),e}function Jc(r,e,t,a,i){var n=r.length,o=ye[e],s=Te[e];if(n<2)return!1;r.sort(function(b,M){return b.rect[o]-M.rect[o]});for(var l=0,u,f=!1,c=0;c<n;c++){var v=r[c],p=v.rect;u=p[o]-l,u<0&&(p[o]-=u,v.label[o]-=u,f=!0),l=p[o]+p[s]}var h=r[0],d=r[n-1],g,y;m(),g<0&&C(-g,.8),y<0&&C(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&T(-g),y<0&&T(y);function m(){g=h.rect[o]-t,y=a-d.rect[o]-d.rect[s]}function _(b,M,E){if(b<0){var w=Math.min(M,-b);if(w>0){x(w*E,0,n);var A=w+b;A<0&&C(-A*E,1)}else C(-b*E,1)}}function x(b,M,E){b!==0&&(f=!0);for(var w=M;w<E;w++){var A=r[w],R=A.rect;R[o]+=b,A.label[o]+=b}}function C(b,M){for(var E=[],w=0,A=1;A<n;A++){var R=r[A-1].rect,P=Math.max(r[A].rect[o]-R[o]-R[s],0);E.push(P),w+=P}if(w){var k=Math.min(Math.abs(b)/w,M);if(b>0)for(var A=0;A<n-1;A++){var B=E[A]*k;x(B,0,A+1)}else for(var A=n-1;A>0;A--){var B=E[A-1]*k;x(-B,A,n)}}}function T(b){var M=b<0?-1:1;b=Math.abs(b);for(var E=Math.ceil(b/(n-1)),w=0;w<n-1;w++)if(M>0?x(E,0,w+1):x(-E,n-w-1,n),b-=E,b<=0)return}return f}function Pl(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var i=Se(r[a]);if(!i.label.ignore){for(var n=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(ma(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(n),o&&t(o)):e.push(i)}}}function ma(r,e,t,a){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,a)?!1:r.axisAligned&&e.axisAligned?!0:ei(r).intersect(ei(e),t,a)}function Dl(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var i=Ga(r,e,t[0]);return i!=null?i+"":null}else if(a){for(var n=[],o=0;o<t.length;o++)n.push(Ga(r,e,t[o]));return n.join(" ")}}function Kc(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!Q(e))return e+"";for(var a=[],i=0;i<t.length;i++){var n=r.getDimensionIndex(t[i]);n>=0&&a.push(e[n])}return a.join(" ")}var Ol=(function(r){O(e,r);function e(t,a,i,n){var o=r.call(this)||this;return o.updateData(t,a,i,n),o}return e.prototype._createSymbol=function(t,a,i,n,o,s){this.removeAll();var l=er(t,-1,-1,2,2,null,s);l.attr({z2:G(o,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),l.drift=kl,this._symbolType=t,this.add(l)},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(){cn(this.childAt(0))},e.prototype.downplay=function(){vn(this.childAt(0))},e.prototype.setZ=function(t,a){var i=this.childAt(0);i.zlevel=t,i.z=a},e.prototype.setDraggable=function(t,a){var i=this.childAt(0);i.draggable=t,i.cursor=!a&&t?"move":i.cursor},e.prototype.updateData=function(t,a,i,n){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=e.getSymbolZ2(t,a),f=o!==this._symbolType,c=n&&n.disableAnimation;if(f){var v=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,u,v)}else{var p=this.childAt(0);p.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(h):tr(p,h,s,a),Qo(p)}if(this._updateCommon(t,a,l,i,n),f){var p=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,pn(p,h,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,i,n,o){var s=this.childAt(0),l=t.hostModel,u,f,c,v,p,h,d,g,y;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,c=n.selectItemStyle,v=n.focus,p=n.blurScope,d=n.labelStatesModels,g=n.hoverScale,y=n.cursorStyle,h=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),p=_.get("blurScope"),h=_.get("disabled"),d=xt(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var x=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var C=rr(t.getItemVisual(a,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var T=t.getItemVisual(a,"style"),b=T.fill;if(s instanceof Gn){var M=s.style;s.useStyle(F({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},T))}else s.__isEmptyBrush?s.useStyle(F({},T)):s.useStyle(T),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var E=t.getItemVisual(a,"liftZ"),w=this._z2;E!=null?w==null&&(this._z2=s.z2,s.z2+=E):w!=null&&(s.z2=w,this._z2=null);var A=o&&o.useNameLabel;aa(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:R,inheritColor:b,defaultOpacity:T.opacity});function R(B){return A?t.getName(B):Dl(t,B)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),ia(this,v,p,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,i){var n=this.childAt(0),o=Fe(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&Va(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Va(n,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return na(t.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(t,a){return t.getItemVisual(a,"z2")},e})(I);function kl(r,e){this.parent.drift(r,e)}function bt(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a&&a.isIgnore&&a.isIgnore(t))&&!(a&&a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function ti(r){return r!=null&&!pe(r)&&(r={isIgnore:r}),r||{}}function ri(r){var e=r.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:xt(e),cursorStyle:e.get("cursor")}}function ai(r,e,t,a,i,n,o){var s=new r(e,t,a,i);return s.setPosition(n),e.setItemGraphicEl(t,s),o.add(s),s}var $c=(function(){function r(e){this.group=new I,this._SymbolCtor=e||Ol}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=ti(t);var a=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=ri(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};n||a.removeAll(),e.diff(n).add(function(c){var v=f(c);bt(e,v,c,t)&&ai(o,e,c,l,u,v,a)}).update(function(c,v){var p=n.getItemGraphicEl(v),h=f(c);if(!bt(e,h,c,t)){a.remove(p);return}var d=e.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)a.remove(p),p=new o(e,c,l,u),p.setPosition(h);else{p.updateData(e,c,l,u);var y={x:h[0],y:h[1]};s?p.attr(y):tr(p,y,i)}a.add(p),e.setItemGraphicEl(c,p)}).remove(function(c){var v=n.getItemGraphicEl(c);v&&v.fadeOut(function(){a.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var a=this,i=t.getStore(),n=0,o=i.count();n<o;n++){var s=t.getItemGraphicEl(n),l=a._getSymbolPoint(n);bt(t,l,n,e)?(s=s||ai(a._SymbolCtor,t,n,a._seriesScope,{disableAnimation:!0},l,a.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(a.group.remove(s),t.setItemGraphicEl(n,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ri(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a,i){this._progressiveEls=[],i=ti(i);function n(u){u.isGroup||(u.incremental=a,u.ensureState("emphasis").hoverLayer=dn)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(bt(t,s,o,i)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(n),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){hn(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},a.hostModel)}):t.removeAll()},r})(),Il=typeof Float32Array!==gn?Float32Array:void 0,Bl=typeof Float64Array!==gn?Float64Array:void 0;function qc(r){return xa({ctor:Il},r).arr}function xa(r,e){var t=r.arr,a=r.ctor;if(e>Na&&(e=Na),!t||r.typed&&t.length<e){var i=void 0;if(a)try{i=new a(e),r.typed=!0,t&&i.set(t)}catch{}if(!i&&(i=[],r.typed=!1,t))for(var n=0,o=t.length;n<o;n++)i[n]=t[n];r.arr=i}return r}function Qc(r,e){return r.type===e}function ev(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}function tv(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||L(r,"text")))}function rv(r,e,t){var a=r,i,n,o;if(e==="text")o=a;else{o={},L(a,"text")&&(o.text=a.text),L(a,"rich")&&(o.rich=a.rich),L(a,"textFill")&&(o.fill=a.textFill),L(a,"textStroke")&&(o.stroke=a.textStroke),L(a,"fontFamily")&&(o.fontFamily=a.fontFamily),L(a,"fontSize")&&(o.fontSize=a.fontSize),L(a,"fontStyle")&&(o.fontStyle=a.fontStyle),L(a,"fontWeight")&&(o.fontWeight=a.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=L(a,"textPosition");t?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),L(a,"textPosition")&&(i.position=a.textPosition),L(a,"textOffset")&&(i.offset=a.textOffset),L(a,"textRotation")&&(i.rotation=a.textRotation),L(a,"textDistance")&&(i.distance=a.textDistance)}return ii(o,r),S(o.rich,function(l){ii(l,l)}),{textConfig:i,textContent:n}}function ii(r,e){e&&(e.font=e.textFont||e.font,L(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),L(e,"textAlign")&&(r.align=e.textAlign),L(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),L(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),L(e,"textWidth")&&(r.width=e.textWidth),L(e,"textHeight")&&(r.height=e.textHeight),L(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),L(e,"textPadding")&&(r.padding=e.textPadding),L(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),L(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),L(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),L(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),L(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),L(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),L(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function av(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var i=a.textPosition.indexOf("inside")>=0,n=r.fill||D.color.neutral99;ni(a,e);var o=a.textFill==null;return i?o&&(a.textFill=t.insideFill||D.color.neutral00,!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=n),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||D.color.neutral00),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,S(e.rich,function(s){ni(s,s)}),a}function ni(r,e){e&&(L(e,"fill")&&(r.textFill=e.fill),L(e,"stroke")&&(r.textStroke=e.fill),L(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),L(e,"font")&&(r.font=e.font),L(e,"fontStyle")&&(r.fontStyle=e.fontStyle),L(e,"fontWeight")&&(r.fontWeight=e.fontWeight),L(e,"fontSize")&&(r.fontSize=e.fontSize),L(e,"fontFamily")&&(r.fontFamily=e.fontFamily),L(e,"align")&&(r.textAlign=e.align),L(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),L(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),L(e,"width")&&(r.textWidth=e.width),L(e,"height")&&(r.textHeight=e.height),L(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),L(e,"padding")&&(r.textPadding=e.padding),L(e,"borderColor")&&(r.textBorderColor=e.borderColor),L(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),L(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),L(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),L(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),L(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),L(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),L(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),L(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),L(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),L(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var Gl=(function(r){O(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.index=0,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.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(oa),Vl=null;function Nl(){return Vl}var zl="expandAxisBreak",me=Math.PI,Fl=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Wl=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Xe=de(),$n=de(),qn=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,a=e.componentIndex,i=this.recordMap,n=i[t]||(i[t]=[]);return n[a]||(n[a]={ready:{}})},r})();function Yl(r,e,t,a){var i=t.axis,n=e.ensureRecord(t),o=[],s,l=Sa(r.axisName)&&We(r.nameLocation);S(a,function(h){var d=Se(h);if(!(!d||d.label.ignore)){o.push(d);var g=n.transGroup;l&&(g.transform?lr(Qe,g.transform):ul(Qe),d.transform&&dt(Qe,Qe,d.transform),Y.copy(At,d.localRect),At.applyTransform(Qe),s?s.union(At):Y.copy(s=new Y(0,0,0,0),At))}});var u=Math.abs(n.dirVec.x)>.1?"x":"y",f=n.transGroup[u];if(o.sort(function(h,d){return Math.abs(h.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),p=Math.max(c[0],c[1])-v;s.union(new Y(v,0,p,1))}n.stOccupiedRect=s,n.labelInfoList=o}var Qe=q(),At=new Y(0,0,0,0),Qn=function(r,e,t,a,i,n){if(We(r.nameLocation)){var o=n.stOccupiedRect;o&&eo(El({},o,n.transGroup.transform),a,i)}else to(n.labelInfoList,n.dirVec,a,i)};function eo(r,e,t){var a=new ht;ma(r,e,a,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&Rl(e,a)}function to(r,e,t,a){for(var i=ht.dot(a,e)>=0,n=0,o=r.length;n<o;n++){var s=r[i?n:o-1-n];s.label.ignore||eo(s,t,a)}}var ve=(function(){function r(e,t,a,i){this.group=new I,this._axisModel=e,this._api=t,this._local={},this._shared=i||new qn(Qn),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,a=t.getDefaultOption?t.getDefaultOption():{},i=G(e.axisName,t.get("name")),n=t.get("nameMoveOverlap");(n==null||n==="auto")&&(n=G(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:i,nameLocation:ll(t.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:Sa(i)&&n,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new I({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ht(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),S(Ul,function(i){e[i]&&Xl[i](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,t||{})}),this},r.innerTextLayout=function(e,t,a){var i=mn(t-e),n,o;return zt(i)?(o=a>0?"top":"bottom",n="center"):zt(i-me)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i<me?n=a>0?"right":"left":n=a>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),Ul=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Xl={axisLine:function(r,e,t,a,i,n,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=n.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(ae(f,f,u),ae(c,c,u));var p=F({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),h={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(a.get(["axisLine","breakLine"])&&Vt(a.axis.scale))Nl().buildAxisBreakLine(a,i,n,h);else{var d=new Ye(F({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},h));Nt(d.shape,d.style.lineWidth),d.anid="line",i.add(d)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);se(g)&&(g=[g,g]),(se(y)||Nn(y))&&(y=[y,y]);var m=rr(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];S([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(C,T){if(g[T]!=="none"&&g[T]!=null){var b=er(g[T],-_/2,-x/2,_,x,p.stroke,!0),M=C.r+C.offset,E=v?c:f;b.attr({rotation:C.rotate,x:E[0]+M*Math.cos(r.rotation),y:E[1]-M*Math.sin(r.rotation),silent:!0,z2:11}),i.add(b)}})}}},axisTickLabelEstimate:function(r,e,t,a,i,n,o,s){var l=si(e,i,s);l&&oi(r,e,t,a,i,n,o,ft.estimate)},axisTickLabelDetermine:function(r,e,t,a,i,n,o,s){var l=si(e,i,s);l&&oi(r,e,t,a,i,n,o,ft.determine);var u=Jl(r,i,n,a);jl(r,e.labelLayoutList,u),Kl(r,i,n,a,r.tickDirection)},axisName:function(r,e,t,a,i,n,o,s){var l=t.ensureRecord(a);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Sa(u)){var f=r.nameLocation,c=r.nameDirection,v=a.getModel("nameTextStyle"),p=a.get("nameGap")||0,h=a.axis.getExtent(),d=a.axis.inverse?-1:1,g=new ht(0,0),y=new ht(0,0);f==="start"?(g.x=h[0]-d*p,y.x=-d):f==="end"?(g.x=h[1]+d*p,y.x=d):(g.x=(h[0]+h[1])/2,g.y=r.labelOffset+c*p,y.y=c);var m=q();y.transform(da(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*me/180);var x,C;We(f)?x=ve.innerTextLayout(r.rotation,_??r.rotation,c):(x=Hl(r.rotation,f,_||0,h),C=r.raw.axisNameAvailableWidth,C!=null&&(C=Math.abs(C/Math.sin(x.rotation)),!isFinite(C)&&(C=null)));var T=v.getFont(),b=a.get("nameTruncate",!0)||{},M=b.ellipsis,E=Yt(r.raw.nameTruncateMaxWidth,b.maxWidth,C),w=s.nameMarginLevel||0,A=new Vn({x:g.x,y:g.y,rotation:x.rotation,silent:ve.isLabelSilent(a),style:yn(v,{text:u,font:T,overflow:"truncate",width:E,ellipsis:M,fill:v.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:v.get("align")||x.textAlign,verticalAlign:v.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(sa({el:A,componentModel:a,itemName:u}),A.__fullText=u,A.anid="name",a.get("triggerEvent")){var R=ve.makeAxisEventDataBase(a);R.targetType="axisName",R.name=u,Fe(A).eventData=R}n.add(A),A.updateTransform(),e.nameEl=A;var P=l.nameLayout=Se({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:We(f)?Fl[w]:Wl[w]});if(l.nameLocation=f,i.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&P){var k=t.ensureRecord(a);t.resolveAxisNameOverlap(r,t,a,P,y,k)}}}};function oi(r,e,t,a,i,n,o,s){ao(e)||$l(r,e,i,s,a,o);var l=e.labelLayoutList;ql(r,a,l,n),r.rotation;var u=r.optionHideOverlap;Zl(a,l,u),u&&Pl(sr(l,function(f){return f&&!f.label.ignore})),Yl(r,t,a,l)}function Hl(r,e,t,a){var i=mn(t-r),n,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return zt(i-me/2)?(o=l?"bottom":"top",n="center"):zt(i-me*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",i<me*1.5&&i>me/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function Zl(r,e,t){var a=r.axis,i=r.get(["axisLabel","customValues"]);if(es(a))return;function n(u,f,c){var v=Se(e[f]),p=Se(e[c]),h=a.scale;if(!(!v||!p)){if(u==null){if(!t&&i)return;var d=Xe(v.label).labelInfo.tick;if(rs(h)&&d.notNice||ua(h)&&d.offInterval){Ge(v.label);return}}if(u===!1||v.suggestIgnore){Ge(v.label);return}if(p.suggestIgnore){Ge(p.label);return}var g=.1;if(!t){var y=[0,0,0,0];v=Qa({marginForce:y},v),p=Qa({marginForce:y},p)}ma(v,p,null,{touchThreshold:g})&&Ge(u?p.label:v.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;n(o,0,1),n(s,l-1,l-2)}function jl(r,e,t){r.showMinorTicks||S(e,function(a){if(a&&a.label.ignore)for(var i=0;i<t.length;i++){var n=t[i],o=$n(n),s=Xe(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Ge(n);return}}})}function Ge(r){r&&(r.ignore=!0)}function ro(r,e,t,a,i){for(var n=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ae(o,o,e),ae(s,s,e));var f=new Ye({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Nt(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,n.push(f);var c=$n(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return n}function Jl(r,e,t,a){var i=a.axis,n=a.getModel("axisTick"),o=n.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=n.getModel("lineStyle"),l=r.tickDirection*n.get("length"),u=i.getTicksCoords(),f=ro(u,t.transform,l,N(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function Kl(r,e,t,a,i){var n=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||n.scale.isBlank())){var s=n.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=N(l.getLineStyle(),N(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=ro(s[c],t.transform,u,f,"minorticks_"+c),p=0;p<v.length;p++)e.add(v[p])}}function si(r,e,t){if(ao(r)){var a=r.axisLabelsCreationContext,i=a.out.noPxChangeTryDetermine;if(t.noPxChange){for(var n=!0,o=0;o<i.length;o++)n=n&&i[o]();if(n)return!1}i.length&&(e.remove(r.labelGroup),zr(r,null,null,null))}return!0}function $l(r,e,t,a,i,n){var o=i.axis,s=Yt(r.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new I;t.add(l);var u=ts(a);if(!s||o.scale.isBlank()){zr(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),v=(Yt(r.raw.labelRotate,f.get("rotate"))||0)*me/180,p=ve.innerTextLayout(r.rotation,v,r.labelDirection),h=i.getCategories&&i.getCategories(!0),d=[],g=i.get("triggerEvent"),y=1/0,m=-1/0;S(c,function(x,C){var T,b=x.tick,M=x.formattedLabel,E=x.rawLabel,w=f,A=la(o.scale,b);if(h&&h[A]){var R=h[A];pe(R)&&R.textStyle&&(w=new ut(R.textStyle,f,i.ecModel))}var P=w.getTextColor()||i.get(["axisLine","lineStyle","color"]),k=w.getShallow("align",!0)||p.textAlign,B=G(w.getShallow("alignMinLabel",!0),k),j=G(w.getShallow("alignMaxLabel",!0),k),J=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||p.textVerticalAlign,ie=G(w.getShallow("verticalAlignMinLabel",!0),J),St=G(w.getShallow("verticalAlignMaxLabel",!0),J),$e=10+(((T=b.time)===null||T===void 0?void 0:T.level)||0);y=Math.min(y,$e),m=Math.max(m,$e);var ee=new Vn({x:0,y:0,rotation:0,silent:ve.isLabelSilent(i),z2:$e,style:yn(w,{text:M,align:C===0?B:C===c.length-1?j:k,verticalAlign:C===0?ie:C===c.length-1?St:J,fill:ga(P)?P(o.type==="category"?E:o.type==="value"?A+"":A,C):P})});ee.anid="label_"+A;var _e=Xe(ee);if(_e.labelInfo=x,_e.layoutRotation=p.rotation,sa({el:ee,componentModel:i,itemName:M,formatterParamsExtra:{isTruncated:function(){return ee.isTruncated},value:E,tickIndex:C}}),g){var X=ve.makeAxisEventDataBase(i);X.targetType="axisLabel",X.value=E,X.tickIndex=C;var H=x.tick.break;if(H){var qe=H.parsedBreak;X.break={start:qe.vmin,end:qe.vmax}}o.type==="category"&&(X.dataIndex=A),Fe(ee).eventData=X,H&&eu(i,n,ee,H)}d.push(ee),l.add(ee)});var _=U(d,function(x){return{label:x,priority:Xe(x).labelInfo.tick.break?x.z2+(m-y+1):x.z2,defaultAttr:{ignore:x.ignore}}});zr(e,_,l,u)}function ao(r){return!!r.labelLayoutList}function zr(r,e,t,a){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=a}function ql(r,e,t,a){var i=e.get(["axisLabel","margin"]);S(t,function(n,o){var s=Se(n);if(s){var l=s.label,u=Xe(l);s.suggestIgnore=l.ignore,l.ignore=!1,Me(fe,Ql);var f=e.axis;fe.x=f.dataToCoord(la(f.scale,u.labelInfo.tick)),fe.y=r.labelOffset+r.labelDirection*i,fe.rotation=u.layoutRotation,a.add(fe),fe.updateTransform(),a.remove(fe),fe.decomposeTransform(),Me(l,fe),l.markRedraw(),Xt(s,!0),Se(s)}})}var fe=new le,Ql=new le;function Sa(r){return!!r}function eu(r,e,t,a){t.on("click",function(i){var n={type:zl,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};n[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(n)})}function io(r,e,t){t=t||{};var a=e.axis,i={},n=a.getAxesOnZeroOf()[0],o=a.position,s=n?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(n){var p=n.toGlobalCoord(n.dataToCoord(0));v[f.onZero]=Math.max(Math.min(p,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=h[o],i.labelOffset=n?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Yt(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-d:d,i.z2=1,i}function iv(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function tu(r){var e={xAxisModel:null,yAxisModel:null};return S(e,function(t,a){var i=a.replace(/Model$/,""),n=r.getReferringComponents(i,Le).models[0];e[a]=n}),e}function ru(r,e,t,a,i,n){for(var o=io(r,t),s=!1,l=!1,u=0;u<e.length;u++)xn(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=n,new ve(t,a,o,i)}function au(r,e,t){var a=io(e,t);r.updateCfg(a)}function nv(r){return r.dim+"_"+r.index}function iu(){as("liPosMinGap",nu)}function nu(r,e,t){var a=V(),i=t.serUids,n=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=is(f);function v(_){os(r,e.sers,function(x){var C=x.getRawData(),T=C.getDimensionIndex(C.mapDimension(s.dim));T>=0&&_(T,x,C.getStore())})}var p=0;if(v(function(_,x,C){a.set(x.uid,1),(!i||!i.hasKey(x.uid))&&(o=!0),p+=C.count()}),(!i||i.keys().length!==a.keys().length)&&(o=!0),!o&&n!=null){e.liPosMinGap=n;return}xa(be,p);var h=0;v(function(_,x,C){for(var T=0,b=C.count();T<b;++T){var M=C.get(_,T);isFinite(M)&&(!f||ss(c,M))&&(u&&(M=l.transformIn(M,null)),be.arr[h++]=M)}});var d=be.typed?be.arr.subarray(0,h):(be.arr.length=h,be.arr);be.typed?d.sort():Sn(d);for(var g=1/0,y=1;y<h;++y){var m=d[y]-d[y-1];m>0&&m<g&&(g=m)}t.liPosMinGap=e.liPosMinGap=fa(g)?g:h>0?ls:ns,t.serUids=a}var be=xa({ctor:Bl},50);function ov(r){return function(e,t){var a=us(e,{fromStat:{key:r}});if(fa(a.w2))return[-a.w2/2,a.w2/2]}}function sv(r){return r+_n}function lv(r,e){return r+_n+e}function ou(r){return iu(),{liPosMinGap:!ua(r.scale)}}var uv="bar",fv="pictorialBar";function cv(r,e,t,a){fs(r,{key:e,seriesType:t,coordSysType:a,getMetrics:ou})}function vv(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var no={left:0,right:0,top:0,bottom:0},Ht=["25%","25%"],kt="cartesian2d",su=(function(r){O(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,a){var i=bn(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&t.outerBounds&&kr(t.outerBounds,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&kr(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:no,outerBoundsContain:"all",outerBoundsClampWidth:Ht[0],outerBoundsClampHeight:Ht[1],backgroundColor:D.color.transparent,borderWidth:1,borderColor:D.color.neutral30},e})(Je);function lu(r,e,t){e=Q(e)&&{coordDimensions:e}||F({encodeDefine:r.getEncode()},e);var a=r.getSource(),i=cs(a,e).dimensions,n=new vs(i,r);return n.initData(a,t),n}var Fr=(function(r){O(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Le).models[0]},e.type="cartesian2dAxis",e})(Je);ya(Fr,ca);var oo={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:D.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:D.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:D.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[D.color.backgroundTint,D.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:D.color.neutral00,borderColor:D.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},uu=z({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},oo),_a=z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:D.color.axisMinorSplitLine,width:1}}},oo),fu=z({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_a),cu=N({logBase:10},_a);const so={category:uu,value:_a,time:fu,log:cu};function Wr(r,e,t,a){S(ds,function(i,n){var o=z(z({},so[n],!0),a,!0),s=(function(l){O(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=ps(this),p=v?bn(f):{},h=c.getTheme();z(f,h.get(n+"Axis")),z(f,this.getDefaultOption()),f.type=li(f),v&&kr(f,p,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=hs.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+n,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",li)}function li(r){return r.type||(r.data?"category":"value")}var vu=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),sr(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),It=["x","y"];function ui(r){return(r.type==="interval"||r.type==="time")&&!Vt(r)}var pu=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=kt,t.dimensions=It,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!ui(t)||!ui(a))){var i=za(t,null),n=za(a,null),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,p=o[1]-n[0]*c,h=this._transform=[f,0,0,c,v,p];this._invTransform=lr([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),i=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var i=this.dataToPoint(t),n=this.dataToPoint(a),o=this.getArea(),s=new Y(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,i){i=i||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return ae(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,a)),i[1]=l.toGlobalCoord(l.dataToCoord(o,a)),i},e.prototype.clampData=function(t,a){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(t[0]),u=n.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a,i){if(i=i||[],this._invTransform)return ae(i,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),a),i[1]=o.coordToData(o.toLocalCoord(t[1]),a),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(a[0],a[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(a[0],a[1])-n+t,l=Math.max(i[0],i[1])-o+t;return new Y(n,o,s,l)},e})(vu);function lo(r,e){var t=r.scale,a=r.model,i=gs(t,a,a.ecModel,r,null),n=Fa(t),o=Fa(e)?e.intervalStub:e,s=n?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,p,h;if(c===1)v=p=0,h=1;else if(c===2){var d=Dt(u[0].value-u[1].value),g=Dt(u[1].value-u[2].value);v=p=0,d===g?h=2:(h=1,d<g?v=d/g:p=g/d)}else{var y=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/y)%1,p=(1-(f[c].value-u[c].value)/y)%1,h=c-(v?1:0)-(p?1:0)}var m=i.zoomFixMM,_=m[0]||m[1],x=[i.fixMM[0]||_,i.fixMM[1]||_],C=t.getExtent(),T=s.getExtent(),b=ys(T,x),M,E,w,A,R,P;function k(_e){for(var X=50,H=0;H<X&&!_e();H++)w=n?w*Ue(l,2):_s(w),A=Wa(w)}function B(){M=W(P-w*v,A)}function j(){E=W(R+w*p,A)}function J(){P=v?W(M+w*v,A):M}function ie(){R=p?W(E-w*p,A):E}if(x[0]&&x[1]){M=b[0],E=b[1],w=(E-M)/(h+v+p);var St=r.getExtent(),$e=Dt(St[1]-St[0]);A=bs([E,M],$e,.5/h),J(),ie(),fa(A)&&(w=W(w,A))}else{var ee=b[1]-b[0];w=n?Ue(ms(ee),1):xs(ee/h,ws),A=Wa(w),x[0]?(M=b[0],k(function(){if(J(),R=W(P+w*h,A),j(),E>=b[1])return!0})):x[1]?(E=b[1],k(function(){if(ie(),P=W(R-w*h,A),B(),M<=b[0])return!0})):k(function(){P=W(An(b[0]/w)*w,A),R=W(Ft(b[1]/w)*w,A);var _e=As((R-P)/w);if(_e<=h){var X=h-_e,H=void 0,qe=i.incl0||n;if(qe&&b[0]===0)H=[0,X];else if(qe&&b[1]===0)H=[X,0];else{var Oe=Ft(X/2);H=X%2===0?[Oe,Oe]:M+E<b[0]+b[1]?[Oe,Oe+1]:[Oe+1,Oe]}if(P=W(P-w*H[0],A),R=W(R+w*H[1],A),B(),j(),M<=b[0]&&E>=b[1])return!0}})}Ss(t,x,T,[M,E],C,{interval:w,intervalCount:h,intervalPrecision:A,niceExtent:[P,R]})}var fi=[[3,1],[0,2]],hu=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=It,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;S(this._axesList,function(o){va(o,pa);var s=o.scale;ua(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=ue(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Ir(f)}S(l,function(c){gu(c,c.__alignTo)?Ir(c):lo(c,c.__alignTo.scale)})}i(a.x),i(a.y);var n={};S(a.x,function(o){ci(a,"y",o,n)}),S(a.y,function(o){ci(a,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var i=ar(e,t),n=this._rect=ir(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(uo(o,n),!a){var u=mu(n,s,o,l,t),f=void 0;if(l)f=di(n.clone(),"axisLabel",null,n,o,u,i);else{var c=xu(e,n,i),v=c.outerBoundsRect,p=c.parsedOuterBoundsContain,h=c.outerBoundsClamp;v&&(f=di(v,p,h,n,o,u,i))}fo(n,o,ft.determine,null,f,i),S(this._coordsList,function(d){d.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}pe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===e||n[i].getAxis("y").index===t)return n[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(a):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(a):i.axis?i.axis.coordToData(i.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",Le).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",Le).models[0],n=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,xe(o,s)<0&&(s=null);else if(a&&i)s=this.getCartesian(a.componentIndex,i.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var i=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,S(s.x,function(f,c){S(s.y,function(v,p){var h="x"+c+"y"+p,d=new pu(h);d.master=i,d.model=e,i._coordsMap[h]=d,i._coordsList.push(d),d.addAxis(f),d.addAxis(v)})}),pi(s.x),pi(s.y);function u(f){return function(c,v){if(du(c,e)){var p=c.get("position");f==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var h=wn(c),d=new Gl(f,Cn(c,h),[0,0],h,p);d.onBand=Tn(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=n,d.index=v,n._axesList.push(d),s[f][v]=d,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return S(this.getCartesians(),function(i){var n=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(n);xe(t,n)<0&&t.push(n),xe(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(i,n){var o=new r(i,e,t);o.name="grid_"+n,o.resize(i,t,!0),i.coordinateSystem=o,a.push(o),S(o._axesList,function(s){Cs(s,r.dimIdxMap)})}),e.eachSeries(function(i){var n,o;Ln({targetModel:i,coordSysType:kt,coordSysProvider:s});function s(){var l=tu(i),u=l.xAxisModel,f=l.yAxisModel;n=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}n&&o&&(Wt(n,i,kt),Wt(o,i,kt))},this),a},r.dimensions=It,r.dimIdxMap=Ts(It),r})();function du(r,e){return r.getCoordSysModel()===e}function ci(r,e,t,a){t.getAxesOnZeroOf=function(){return n?[n]:[]};var i=r[e],n,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)vi(s,i[l])&&(n=i[l]);else for(var u in i)if(L(i,u)&&vi(s,i[u])&&!a[f(i[u])]){n=i[u];break}n&&(a[f(n)]=!0);function f(c){return c.dim+"_"+c.index}}function vi(r,e){if(!e)return!1;var t=e.scale,a=Ls(t,0),i=e&&e.type!=="category"&&e.type!=="time"&&a!==Ms;return i&&r==="auto"&&Es(e)&&(i=!1),i}function pi(r){for(var e=ue(r),t,a=[],i=e.length-1;i>=0;i--){var n=r[+e[i]];xn(n.scale)&&Rs(n.model,n.type)==null&&(n.model.get("alignTicks")&&n.model.get("interval")==null?a.push(n):t=n)}t||(t=a.pop()),t&&S(a,function(o){o.__alignTo=t})}function gu(r,e){return Vt(r.scale)||Vt(e.scale)||e.scale.getTicks().length<2}function yu(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return a-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return a-i+e}}function uo(r,e){S(r.x,function(t){return hi(t,e.x,e.width)}),S(r.y,function(t){return hi(t,e.y,e.height)})}function hi(r,e,t){var a=[0,t],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),yu(r,e)}function di(r,e,t,a,i,n,o){fo(a,i,ft.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=fl(s,function(v){return v>0})==null;return Or(a,s,!0,!0,t),uo(i,a),l;function u(v){S(i[ye[v]],function(p){if(ct(p.model)){var h=n.ensureRecord(p.model),d=h.labelInfoList;if(d)for(var g=0;g<d.length;g++){var y=d[g],m=p.scale.normalize(la(p.scale,Xe(y.label).labelInfo.tick));m=v===1?1-m:m,f(y.rect,v,m),f(y.rect,1-v,NaN)}var _=h.nameLayout;if(_){var m=We(h.nameLocation)?.5:NaN;f(_.rect,v,m),f(_.rect,1-v,NaN)}}})}function f(v,p,h){var d=r[ye[p]]-v[ye[p]],g=v[Te[p]]+v[ye[p]]-(r[Te[p]]+r[ye[p]]);d=c(d,1-h),g=c(g,h);var y=fi[p][0],m=fi[p][1];s[y]=Ue(s[y],d),s[m]=Ue(s[m],g)}function c(v,p){return v>0&&!cl(p)&&p>1e-4&&(v/=p),v}}function mu(r,e,t,a,i){var n=new qn(Su);return S(t,function(o){return S(o,function(s){if(ct(s.model)){var l=!a;s.axisBuilder=ru(r,e,s.model,i,n,l)}})}),n}function fo(r,e,t,a,i,n){var o=t===ft.determine;S(e,function(u){return S(u,function(f){ct(f.model)&&(au(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ye[1-u]]=r[Te[u]]<=n.refContainer[Te[u]]*.5?0:1-u===1?2:1}S(e,function(u,f){return S(u,function(c){ct(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function xu(r,e,t){var a,i=r.get("outerBoundsMode",!0);i==="same"?a=e.clone():(i==null||i==="auto")&&(a=ir(r.get("outerBounds",!0)||no,t.refContainer));var n=r.get("outerBoundsContain",!0),o;n==null||n==="auto"||xe(["all","axisLabel"],n)<0?o="all":o=n;var s=[Ya(G(r.get("outerBoundsClampWidth",!0),Ht[0]),e.width),Ya(G(r.get("outerBoundsClampHeight",!0),Ht[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Su=function(r,e,t,a,i,n){var o=t.axis.dim==="x"?"y":"x";Qn(r,e,t,a,i,n),We(r.nameLocation)||S(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&to(s.labelInfoList,s.dirVec,a,i)})};function pv(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return _u(t,r,e),t.seriesInvolved&&Au(t,r),t}function _u(r,e,t){var a=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),n=i.get("link",!0)||[],o=[];S(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zt(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(S(s.getAxes(),oe(d,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var v=c.get("trigger")==="axis",p=c.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||p)&&S(h.baseAxes,oe(d,p?"cross":!0,v)),p&&S(h.otherAxes,oe(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!g&&!Yr(_))){y==null&&(y=_.get("triggerTooltip")),_=g?bu(m,c,i,e,g,y):_;var C=_.get("snap"),T=_.get("triggerEmphasis"),b=Zt(m.model),M=y||C||m.type==="category",E=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:T,involveSeries:M,snap:C,useHandle:Yr(_),seriesModels:[],linkGroup:null};u[b]=E,r.seriesInvolved=r.seriesInvolved||M;var w=wu(n,m);if(w!=null){var A=o[w]||(o[w]={axesInfo:{}});A.axesInfo[b]=E,A.mapper=n[w].mapper,E.linkGroup=A}}}})}function bu(r,e,t,a,i,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};S(s,function(v){l[v]=re(o.get(v))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var c=l.lineStyle=o.get("crossStyle");c&&N(u,c.textStyle)}}return r.model.getModel("axisPointer",new ut(l,t,a))}function Au(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);!a||!a.model||i==="none"||i===!1||i==="item"||n===!1||t.get(["axisPointer","show"],!0)===!1||S(r.coordSysAxesInfo[Zt(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function wu(r,e){for(var t=e.model,a=e.dim,i=0;i<r.length;i++){var n=r[i]||{};if(mr(n[a+"AxisId"],t.id)||mr(n[a+"AxisIndex"],t.componentIndex)||mr(n[a+"AxisName"],t.name))return i}}function mr(r,e){return r==="all"||Q(r)&&xe(r,e)>=0||r===e}function Cu(r){var e=co(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Yr(t);n==null&&(i.status=s?"show":"hide");var l=a.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function co(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Zt(r)]}function Tu(r){var e=co(r);return e&&e.axisPointerModel}function Yr(r){return!!r.get(["handle","show"])}function Zt(r){return r.type+"||"+r.id}var gi={},Lu=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){this.axisPointerClass&&Cu(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,a,i,n){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,a){var i=this._axisPointer;i&&i.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,i){var n=e.getAxisPointerClass(this.axisPointerClass);if(n){var o=Tu(t);o?(this._axisPointer||(this._axisPointer=new n)).render(t,o,a,i):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){gi[t]=a},e.getAxisPointerClass=function(t){return t&&gi[t]},e.type="axis",e})(Ke),Ur=de();function Mu(r,e,t,a){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Ur(r).splitAreaColors,v=V(),p=0;if(c)for(var h=0;h<u.length;h++){var d=c.get(u[h].tickValue);if(d!=null){p=(d+(f-1)*h)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Q(s)?s:[s];for(var h=1;h<u.length;h++){var m=i.toGlobalCoord(u[h].coord),_=void 0,x=void 0,C=void 0,T=void 0;i.isHorizontal()?(_=g,x=l.y,C=m-_,T=l.height,g=_+C):(_=l.x,x=g,C=l.width,T=m-x,g=x+T);var b=u[h-1].tickValue;b!=null&&v.set(b,p),e.add(new le({anid:b!=null?"area_"+b:null,shape:{x:_,y:x,width:C,height:T},style:N({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%f}Ur(r).splitAreaColors=v}}}function Eu(r){Ur(r).splitAreaColors=null}var Ru=["splitArea","splitLine","minorSplitLine","breakArea"],vo=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,i,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new I,this.group.add(this._axisGroup),!!ct(t)){this._axisGroup.add(t.axis.axisBuilder.group),S(Ru,function(l){t.get([l,"show"])&&Pu[l](this,this._axisGroup,t,t.getCoordSysModel(),i)},this);var s=n&&n.type==="changeAxisOrder"&&n.isInitSort;s||Mn(o,this._axisGroup,t),r.prototype.render.call(this,t,a,i,n)}},e.prototype.remove=function(){Eu(this)},e.type="cartesianAxis",e})(Lu),Pu={splitLine:function(r,e,t,a,i){var n=t.axis;if(!n.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=Q(l)?l:[l];for(var c=a.coordinateSystem.getRect(),v=n.isHorizontal(),p=0,h=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],g=[],y=s.getLineStyle(),m=0;m<h.length;m++){var _=n.toGlobalCoord(h[m].coord);if(!(m===0&&!u||m===h.length-1&&!f)){var x=h[m].tickValue;v?(d[0]=_,d[1]=c.y,g[0]=_,g[1]=c.y+c.height):(d[0]=c.x,d[1]=_,g[0]=c.x+c.width,g[1]=_);var C=p++%l.length,T=new Ye({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:N({stroke:l[C]},y),silent:!0});Nt(T.shape,y.lineWidth),e.add(T)}}}},minorSplitLine:function(r,e,t,a,i){var n=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=n.isHorizontal(),f=n.getMinorTicksCoords();if(f.length)for(var c=[],v=[],p=s.getLineStyle(),h=0;h<f.length;h++)for(var d=0;d<f[h].length;d++){var g=n.toGlobalCoord(f[h][d].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var y=new Ye({anid:"minor_line_"+f[h][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:p,silent:!0});Nt(y.shape,p.lineWidth),e.add(y)}},splitArea:function(r,e,t,a,i){Mu(r,e,t,a)},breakArea:function(r,e,t,a,i){t.axis.scale}},po=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(vo),Du=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=po.type,t}return e.type="yAxis",e})(vo),Ou=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new le({shape:t.coordinateSystem.getRect(),style:N({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Ke),yi={offset:0};function hv(r){r.registerComponentView(Ou),r.registerComponentModel(su),r.registerCoordinateSystem("cartesian2d",hu),Wr(r,"x",Fr,yi),Wr(r,"y",Fr,yi),r.registerComponentView(po),r.registerComponentView(Du),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var et=so.value,lt="radar",ho=lt,ku=lt,go=5;function wt(r,e){return N({show:e},r)}var Iu=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),i=this.get("clockwise"),n=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),p=this.get("triggerEvent"),h=U(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=u;d.color!=null&&(g=N({color:d.color},u));var y=z(re(d),{boundaryGap:t,splitNumber:a,clockwise:i,scale:n,axisLine:o,axisTick:s,axisLabel:l,name:d.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:p},!1);if(se(c)){var m=y.name;y.name=c.replace("{value}",m??"")}else ga(c)&&(y.name=c(y.name,y));var _=new ut(y,null,this.ecModel);return ya(_,ca.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=En("ec_radar"),_},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=ho,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:D.color.axisLabel},boundaryGap:[0,0],splitNumber:go,axisNameGap:15,scale:!1,shape:"polygon",axisLine:z({lineStyle:{color:D.color.neutral20}},et.axisLine),axisLabel:wt(et.axisLabel,!1),axisTick:wt(et.axisTick,!1),splitLine:wt(et.splitLine,!0),splitArea:wt(et.splitArea,!0),indicator:[]},e})(Je),Bu=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group;n.removeAll(),this._buildAxes(t,i),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,a){var i=t.coordinateSystem,n=i.getIndicatorAxes(),o=U(n,function(s){var l=s.model.get("showName")?s.name:"",u=new ve(s.model,a,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});S(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,i=a.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"),f=o.get("show"),c=s.get("show"),v=l.get("color"),p=u.get("color"),h=Q(v)?v:[v],d=Q(p)?p:[p],g=[],y=[];function m(B,j,J){var ie=J%j.length;return B[ie]=B[ie]||[],ie}if(n==="circle")for(var _=i[0].getTicksCoords(),x=a.cx,C=a.cy,T=0;T<_.length;T++){if(f){var b=m(g,h,T);g[b].push(new Rn({shape:{cx:x,cy:C,r:_[T].coord}}))}if(c&&T<_.length-1){var b=m(y,d,T);y[b].push(new Ps({shape:{cx:x,cy:C,r0:_[T].coord,r:_[T+1].coord}}))}}else for(var M,E=U(i,function(B,j){var J=B.getTicksCoords();return M=M==null?J.length-1:Math.min(J.length-1,M),U(J,function(ie){return a.coordToPoint(ie.coord,j)})}),w=[],T=0;T<=M;T++){for(var A=[],R=0;R<i.length;R++)A.push(E[R][T]);if(A[0]&&A.push(A[0].slice()),f){var b=m(g,h,T);g[b].push(new nr({shape:{points:A}}))}if(c&&w){var b=m(y,d,T-1);y[b].push(new or({shape:{points:A.concat(w)}}))}w=A.slice().reverse()}var P=l.getLineStyle(),k=u.getAreaStyle();S(y,function(B,j){this.group.add(Ua(B,{style:N({stroke:"none",fill:d[j%d.length]},k),silent:!0}))},this),S(g,function(B,j){this.group.add(Ua(B,{style:N({fill:"none",stroke:h[j%h.length]},P),silent:!0}))},this)},e.type="radar",e})(Ke),Gu=(function(r){O(e,r);function e(t,a,i){var n=r.call(this,t,a,i)||this;return n.type="value",n.angle=0,n.name="",n}return e})(oa),Vu=(function(){function r(e,t,a){this.type=lt,this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(i,n){var o="indicator_"+n,s=new Gu(o,new Xa);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],i=a.angle,n=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[n,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,i=Math.sqrt(t*t+a*a);t/=i,a/=i;for(var n=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(n-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(e,t){var a=ar(e,t).refContainer,i=e.get("center"),n=e.get("clockwise")||!1,o=Math.min(a.width,a.height)/2;this.cx=te(i[0],a.width)+a.x,this.cy=te(i[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(se(s)||Nn(s))&&(s=[0,s]),this.r0=te(s[0],o),this.r=te(s[1],o);var l=n?-1:1;S(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,i=this._model,n=Ds(i.get("splitNumber"),go),o=new Xa;o.setExtent(0,n),o.setConfig({interval:1}),S(a,function(s){va(s,pa),lo(s,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent(ho,function(i){var n=new r(i,e,t);a.push(n),i.coordinateSystem=n}),e.eachSeriesByType(ku,function(i){if(i.get("coordinateSystem")===lt){var n=i.coordinateSystem=a[i.get("radarIndex")||0];n&&S(n.getIndicatorAxes(),function(o){Wt(o,i,lt)})}}),a},r.dimensions=[],r})();function dv(r){r.registerCoordinateSystem("radar",Vu),r.registerComponentModel(Iu),r.registerComponentView(Bu),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var ba=de();function Nu(r,e,t){ba(r)[e]=t}function zu(r,e,t){var a=ba(r),i=a[e];i===t&&(a[e]=null)}function mi(r,e){return!!ba(r)[e]}Os({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},zn);var Fu={axisPointer:1,tooltip:1,brush:1};function yo(r,e,t){var a=e.getComponentByElement(r.topTarget);if(!a||a===t||Fu.hasOwnProperty(a.mainType))return!1;var i=a.coordinateSystem;if(!i||i.model===t)return!1;var n=Br(a),o=Br(t);return!((n.zlevel-o.zlevel||n.z-o.z)<=0)}var Wu=(function(r){O(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var i=$(a._mousedownHandler,a),n=$(a._mousemoveHandler,a),o=$(a._mouseupHandler,a),s=$(a._mousewheelHandler,a),l=$(a._pinchHandler,a);return a.enable=function(u,f){var c=f.zInfo,v=Br(c.component),p=v.z,h=v.zlevel,d={component:c.component,z:p,zlevel:h,z2:G(c.z2,-1/0)},g=F({},f.triggerInfo);this._opt=N(F({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(rt(t,"mousedown",i,d),rt(t,"mousemove",n,d),rt(t,"mouseup",o,d)),(u===!0||u==="scale"||u==="zoom")&&(rt(t,"mousewheel",s,d),rt(t,"pinch",l,d)))},a.disable=function(){this._enabled&&(this._enabled=!1,at(t,"mousedown",i),at(t,"mousemove",n),at(t,"mouseup",o),at(t,"mousewheel",s),at(t,"pinch",l))},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,a,i){var n=this._opt,o=n.zInfoParsed;if(yo(t,n.api,o.component))return!1;var s=n.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,a,i)),u&&s.isInClip&&!s.isInClip(t,a,i)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,a,i,n){var o=t.target;if(!o&&this._checkPointer(t,a,i))return this._opt.cursorGrab;if(n)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(ja(t)||tt(t))){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var i=t.offsetX,n=t.offsetY;this._checkPointer(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var a=this._zr;if(!(t.gestureEvent==="pinch"||mi(a,"globalPan")||tt(t))){var i=t.offsetX,n=t.offsetY;if(!this._dragging||!Bt("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,i,n,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=i-s,f=n-l;this._x=i,this._y=n,this._opt.preventDefaultMouseMove&&Ja(t.event),t.__ecRoamConsumed=!0,xi(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:i,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!tt(t)){var a=this._zr;if(!ja(t)){this._dragging=!1;var i=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);i&&a.setCursorStyle(i)}}},e.prototype._mousewheelHandler=function(t){if(!tt(t)){var a=Bt("zoomOnMouseWheel",t,this._opt),i=Bt("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!a&&!i)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(n),v=(n>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(mi(this._zr,"globalPan")||tt(t))){var a=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,a,i,n,o){t._checkPointer(n,o.originX,o.originY)&&(Ja(n.event),n.__ecRoamConsumed=!0,xi(t,a,i,n,o))},e})(Fn);function tt(r){return r.__ecRoamConsumed}var Yu=de();function cr(r){var e=Yu(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function rt(r,e,t,a){for(var i=cr(r),n=i.roam,o=n[e]=n[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:a}),Uu(r,e)}function at(r,e,t){for(var a=cr(r),i=a.roam[e]||[],n=0;n<i.length;n++)if(i[n].listener===t){i.splice(n,1),i.length||Xu(r,e);return}}function Uu(r,e){var t=cr(r);t.uniform[e]||r.on(e,t.uniform[e]=function(a){var i=t.roam[e];if(i)for(var n=0;n<i.length;n++)i[n].listener(a)})}function Xu(r,e){var t=cr(r),a=t.uniform;a[e]&&(r.off(e,a[e]),a[e]=null)}function xi(r,e,t,a,i){i.isAvailableBehavior=$(Bt,null,t,a),r.trigger(e,i)}function Bt(r,e,t){var a=t[r];return!r||a&&(!se(a)||e.event[a+"Key"])}function mo(r){if(se(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var xr,jt={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"},Si=ue(jt),Jt={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_i=ue(Jt),Hu=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=mo(e);this._defsUsePending=[];var i=new I;this._root=i;var n=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Z(a,i,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;Ju(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var v=vr(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=So(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var p=i;i=new I,i.add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new le({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:n}},r.prototype._parseNode=function(e,t,a,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 f=xr[s];if(f&&L(xr,s)){l=f.call(this,e,t);var c=e.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else i&&a.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var p=bi[s];if(p&&L(bi,s)){var h=p.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=h)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new vl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});K(t,a),Z(e,a,this._defsUsePending,!1,!1),Zu(a,t);var i=a.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,a.scaleX*=n/9,a.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=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){xr={g:function(e,t){var a=new I;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new le;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},circle:function(e,t){var a=new Rn;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Ye;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},ellipse:function(e,t){var a=new Is;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),i;a&&(i=Ci(a));var n=new or({shape:{points:i||[]},silent:!0});return K(t,n),Z(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var a=e.getAttribute("points"),i;a&&(i=Ci(a));var n=new nr({shape:{points:i||[]},silent:!0});return K(t,n),Z(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var a=new Gn;return K(t,a),Z(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new I;return K(t,s),Z(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),i=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new I;return K(t,s),Z(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",i=ks(a);return K(t,i),Z(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}})(),r})(),bi={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),n=new Gs(e,t,a,i);return Ai(r,n),wi(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),i=new Bs(e,t,a);return Ai(r,i),wi(r,i),i}};function Ai(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function wi(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),i=void 0;a&&a.indexOf("%")>0?i=parseInt(a,10)/100:a?i=parseFloat(a):i=0;var n={};xo(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000",s=n.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=Wn(o),u=l&&l[3];u&&(l[3]*=pl(s),o=Ot(l,"rgba"))}e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function K(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),N(e.__inheritedStyle,r.__inheritedStyle))}function Ci(r){for(var e=vr(r),t=[],a=0;a<e.length;a+=2){var i=parseFloat(e[a]),n=parseFloat(e[a+1]);t.push([i,n])}return t}function Z(r,e,t,a,i){var n=e,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(qu(r,e),xo(r,o,s),a||Qu(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=Ti(n,"fill",o.fill,t)),o.stroke!=null&&(n.style.stroke=Ti(n,"stroke",o.stroke,t)),S(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),S(["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=U(vr(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function Zu(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,i=a;!a||a==="auto"||a==="baseline"?i="alphabetic":a==="before-edge"||a==="text-before-edge"?i="top":a==="after-edge"||a==="text-after-edge"?i="bottom":(a==="central"||a==="mathematical")&&(i="middle"),r.style.textBaseline=i}var n=e.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var ju=/^url\(\s*#(.*?)\)/;function Ti(r,e,t,a){var i=t&&t.match(ju);if(i){var n=hl(i[1]);a.push([r,e,n]);return}return t==="none"&&(t=null),t}function Ju(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var Ku=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function vr(r){return r.match(Ku)||[]}var $u=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Sr=Math.PI/180;function qu(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],i=null;t.replace($u,function(c,v,p){return a.push(v,p),""});for(var n=a.length-1;n>0;n-=2){var o=a[n],s=a[n-1],l=vr(o);switch(i=i||q(),s){case"translate":Yn(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":dl(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":da(i,i,-parseFloat(l[0])*Sr,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Sr);dt(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Sr);dt(i,[1,f,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 Li=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xo(r,e,t){var a=r.getAttribute("style");if(a){Li.lastIndex=0;for(var i;(i=Li.exec(a))!=null;){var n=i[1],o=L(jt,n)?jt[n]:null;o&&(e[o]=i[2]);var s=L(Jt,n)?Jt[n]:null;s&&(t[s]=i[2])}}}function Qu(r,e,t){for(var a=0;a<Si.length;a++){var i=Si[a],n=r.getAttribute(i);n!=null&&(e[jt[i]]=n)}for(var a=0;a<_i.length;a++){var i=_i[a],n=r.getAttribute(i);n!=null&&(t[Jt[i]]=n)}}function So(r,e){var t=e.width/r.width,a=e.height/r.height,i=Math.min(t,a);return{scale:i,x:-(r.x+r.width/2)*i+(e.x+e.width/2),y:-(r.y+r.height/2)*i+(e.y+e.height/2)}}function ef(r,e){var t=new Hu;return t.parse(r,e)}var tf=V(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),rf=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=V(),this._freedGraphics=[],this._mapName=e,this._parsedXML=mo(t)}return r.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=nf(e.named),a=t.regions,i=t.regionsMap;this._regions=a,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&ef(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Un(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var i=new I;i.add(a),i.isGeoSVGGraphicRoot=!0;var n=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,v=void 0;if(n!=null?(u=0,c=n):s&&(u=s.x,c=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var p=a.getBoundingRect();u==null&&(u=p.x,c=p.width),f==null&&(f=p.y,v=p.height)}l=this._boundingRect=new Y(u,f,c,v)}if(s){var h=So(s,l);a.scaleX=a.scaleY=h.scale,a.x=h.x,a.y=h.y}i.setClipPath(new le({shape:l.plain()}));var d=[];return S(t.named,function(g){tf.get(g.svgNodeTagLower)!=null&&(d.push(g),af(g.el))}),{root:i,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function af(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function nf(r){var e=[],t=V();return S(r,function(a){if(a.namedFrom==null){var i=new Vs(a.name,a.el);e.push(i),t.set(a.name,i)}}),{regions:e,regionsMap:t}}var Xr=[126,25],Mi="南海诸岛",we=[[[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 Ae=0;Ae<we.length;Ae++)for(var Ie=0;Ie<we[Ae].length;Ie++)we[Ae][Ie][0]/=10.5,we[Ae][Ie][1]/=-10.5/.75,we[Ae][Ie][0]+=Xr[0],we[Ae][Ie][1]+=Xr[1];function of(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Mi)return;e.push(new Ns(Mi,U(we,function(a){return{type:"polygon",exterior:a}}),Xr))}}var sf={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function lf(r,e){if(r==="china"){var t=sf[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var uf=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function ff(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:uf[0]})}var cf="name",vf=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=V(),this._mapName=e,this._specialAreas=a,this._geoJSON=hf(t)}return r.prototype.load=function(e,t){t=t||cf;var a=this._parsedMap.get(t);if(!a){var i=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:i,boundingRect:pf(i)})}var n=V(),o=[];return S(a.regions,function(s){var l=s.name;e&&L(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new Y(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,i;try{i=a?zs(a,e):[]}catch(n){throw new Error(`Invalid geoJson format
`+n.message)}return of(t,i),S(i,function(n){var o=n.name;lf(t,n),ff(t,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function pf(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function hf(r){return se(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var it=V();const he={registerMap:function(r,e,t){if(e.svg){var a=new rf(r,e.svg);it.set(r,a)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var a=new vf(r,i,t);it.set(r,a)}},getGeoResource:function(r){return it.get(r)},getMapForUser:function(r){var e=it.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=it.get(r);if(a)return a.load(e,t)}};var He=0,Re=1,pr=2;var df="view",_o=(function(r){O(e,r);function e(t,a,i){var n=r.call(this)||this;n.type=df,n.dimensions=["x","y"];var o=n;o.invertY=t,o.lgCt=a,o.lgGeo=i;var s=o.trans=[];return s[He]=Ve(),s[Re]=Ve(),s[pr]=Ve(),o.mtRaw=q(),o.mtRawInv=q(),o.mtOverall=q(),o.mtOverallInv=q(),o.zoom=1,n}return e.prototype.getBoundingRect=function(){return gf(null,this)},e.prototype.getViewRect=function(){return Aa(null,this)},e.prototype.getRoamTransform=function(){return Ee(this.trans[Re])},e.prototype.dataToPoint=function(t,a,i){var n=a?this.mtRaw:this.mtOverall;return i=i||[],n?ae(i,t,n):Ka(i,t)},e.prototype.pointToData=function(t,a,i){i=i||[];var n=this.mtOverallInv;return n?ae(i,t,n):Ka(i,t)},e.prototype.convertToPixel=function(t,a,i){var n=Oi(a);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,a,i){var n=Oi(a);return n===this?n.pointToData(i):null},e.prototype.containPoint=function(t){var a=this;return ur(Ct,a.dataRect),gl(Ct,Ct,a.mtOverall),yl(Ct,t[0],t[1])},e.dimensions=["x","y"],e})(Xn),Ct=fr();function gv(r,e){return Vr([],e.mtOverall)}function yv(r){return r.zoom}function gf(r,e){return ur(fr(),e.dataRect)}function Aa(r,e){return ur(fr(),e.viewRect)}function Kt(r,e,t){return Me(r||Ve(),e.trans[t])}function wa(r){return!!(r.dataRect&&r.viewRect)}function yf(r,e,t,a){a===Re?bo(r,e.trans[He],t):Me(r,t)}function Ei(r,e,t){Ee(t,Tt),dt(Tt,Tt,e.mtRawInv),ha(r,Tt)}var Tt=q();function Ca(r,e){var t=r;t.centerOption=e.getShallow("center");var a=t.zoomLimit=e.getShallow("scaleLimit"),i=e.getShallow("zoom");t.zoom=Eo(i||1,a)||1,wa(t)&&La(t)}function Ta(r,e,t,a,i){var n=r;n.dataRect=new Y(e,t,a,i),wa(n)&&La(n)}function Hr(r,e,t,a,i){var n=r;n.viewRect=new Y(e,t,a,i),wa(n)&&La(n)}function La(r){mf(r),Sf(r),_f(r)}function mf(r){var e=r.dataRect,t=r.viewRect,a=r.trans[He],i=r.invertY;i&&(e=ur(xf,e),e.y=-e.y-e.height),ml(Ri,e,t),ha(a,Ri),i&&(a.scaleY=-a.scaleY);var n=Ee(a,r.mtRaw);lr(r.mtRawInv,n)}var Ri=q(),xf=fr();function Sf(r){var e=Ao(r),t=wf(_r,r,r.centerOption)?ae(_r,_r,r.mtRaw):e,a=r.zoom,i=r.trans[Re];i.x=e[0]-a*t[0],i.y=e[1]-a*t[1],i.scaleX=i.scaleY=a}var _r=[];function _f(r){var e=r.trans,t=e[Re],a=e[He],i=e[pr];bo(i,a,t);var n=Ee(i,r.mtOverall),o=lr(r.mtOverallInv,n);Pi(r,i,n,o),Pi(r.lgGeo,i,n,o)}function Pi(r,e,t,a){r&&(Me(r,e),Vr(r.transform||(r.transform=[]),t),Vr(r.invTransform||(r.invTransform=[]),a))}function bo(r,e,t){Ee(e,Di),Ee(t,Lt),dt(Lt,Lt,Di),ha(r,Lt)}var Di=q(),Lt=q();function Oi(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function Ao(r){var e=r.viewRect;return br[0]=e.x+e.width/2,br[1]=e.y+e.height/2,br}var br=[];function mv(r){return r&&r.type==="view"}function ki(r,e,t,a){var i=t;i.syncBackEl=r,i.syncBackType=e,a?tr(r,Kt(null,t,e),a):(Kt(r,t,e),r.dirty())}function bf(r,e,t,a){var i=r,n=i.syncBackEl;n?(n.stopAnimation(),yf(ge,i,n,i.syncBackType)):Me(ge,i.trans[pr]),Ei(Ar,i,ge),a?Af(ge,Ar,i,a):Me(ge,Ar),Ei(ge,i,ge),Tf(i,e,t,ge)}var ge=Ve(),Ar=Ve();function wo(r,e,t){var a=Co(e);a&&(bf(a,e,t,r),Ca(a,e))}function Co(r){return r.__ownRoamView?r.__ownRoamView():null}function To(r,e,t,a){t.setUpdatePayload(Pn(r));var i=Fs(a,e);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(r,e,a)}function Af(r,e,t,a){a.dx!=null&&a.dy!=null&&(r.x+=a.dx,r.y+=a.dy);var i=a.zoom;if(i!=null){var n=Lo(e),o=Eo(n*i,t.zoomLimit),s=o/n;r.x-=(a.originX-r.x)*(s-1),r.y-=(a.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function Lo(r){return r.scaleX}function wf(r,e,t){var a=e.dataRect;if(!t)return!1;var i=e.lgCt;return i?$a(r,te(t[0],i.w),te(t[1],i.h)):a&&$a(r,te(t[0],a.width,a.x),te(t[1],a.height,a.y)),!0}function Cf(r,e){var t=r.centerOption,a=r.dataRect;return!t||r.lgCt?e.slice():[Ii(0,e,t,a),Ii(1,e,t,a)]}function Ii(r,e,t,a){return t&&a&&a[Te[r]]&&Ws(t[r])?(e[r]-a[ye[r]])/a[Te[r]]*100+"%":e[r]}function Mo(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function Tf(r,e,t,a){var i=Ao(r),n=Lo(a),o=Dt(n)>1e-6;nt[0]=o?(i[0]-a.x)/n:i[0],nt[1]=o?(i[1]-a.y)/n:i[1],ae(nt,nt,r.mtRawInv);var s=Cf(r,nt);Bi(e,s,n),S(t,function(l){l!==e&&Bi(l,s.slice(),n)})}var nt=[];function Bi(r,e,t){var a=r.option;a.center=e,a.zoom=t}function Eo(r,e){if(e){var t=e.min||0,a=e.max||1/0;r=Math.max(Math.min(a,r),t)}return r}function xv(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,a=r;return((a.zoom-1)*t+1)/(a.trans[pr].scaleX||1)}function Lf(r,e,t,a,i,n,o,s){var l=Co(r);if(!l){t.disable();return}t.enable(G(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:a,isInClip:function(f,c,v){return!i||i.contain(c,v)}}});function u(f){var c=r.mainType,v=Pn(N({type:Ro(c,r.subType,On)},f));s&&(v.componentType=c),v[c+"Id"]=r.id,e.dispatchAction(v)}t.off("pan").off("zoom").on("pan",function(f){n&&n("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){n&&n("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function Sv(r){return function(e,t,a){return wr.copy(r.getBoundingRect()),wr.applyTransform(r.getComputedTransform()),wr.contain(t,a)}}var wr=new Y(0,0,0,0);function _v(r,e,t){var a=Ro(e,t,On);r.registerAction({type:a,event:a,update:"none"},function(i,n,o){n.eachComponent(Dn(i,e,t),function(s){wo(i,s),To(i,s,n,o)})})}function Ro(r,e,t){return(r!==Gr?r:e==="map"?"geo":e)+t}function bv(r){return r.zoom!=null}function Av(r,e,t,a,i,n,o){var s=new _o(null,Mo(r.ecModel,e));return Ta(s,t,a,i,n),o?Hr(s,o.x,o.y,o.width,o.height):Hr(s,t,a,i,n),Ca(s,r),s}var Ma=["rect","circle","line","ellipse","polygon","polyline","path"],Mf=V(Ma),Ef=V(Ma.concat(["g"])),Rf=V(Ma.concat(["g"])),Po=de();function Mt(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Gi(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Pf=(function(){function r(e){var t=this.group=new I,a=this._transformGroup=new I;t.add(a),this.uid=En("ec_map_draw"),this._controller=new Wu(e.getZr()),a.add(this._regionsGroup=new I),a.add(this._svgGroup=new I)}return r.prototype.draw=function(e,t,a,i,n){var o=this,s=e.getData&&e.getData();Ne(e)&&t.eachComponent({mainType:"series",subType:"map"},function(d){!s&&d.getHostGeoModel()===e&&(s=d.getData())});var l=e.coordinateSystem,u=l.view,f=this._regionsGroup,c=this._transformGroup,v=!f.childAt(0)||n,p;l.shouldClip()?(p=Aa(null,u),this.group.setClipPath(new le({shape:p.clone()}))):this.group.removeClipPath(),ki(c,Re,u,v?null:e);var h=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,a,l,e,s,h):l.resourceType==="geoSVG"&&this._buildSVG(u,a,l,e,s,h),Lf(e,a,this._controller,function(d,g,y){return e.coordinateSystem.containPoint([g,y])},p,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,f,a,i)},r.prototype.__updateOnOwnRoam=function(e){ki(this._transformGroup,Re,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,a,i,n,o){var s=this._regionsGroupByName=V(),l=V(),u=this._regionsGroup,f=a.projection,c=f&&f.stream,v=Ee(Kt(null,e,He));function p(g,y){return y&&(g=y(g)),g&&ae([],g,v)}function h(g){for(var y=[],m=!c&&f&&f.project,_=0;_<g.length;++_){var x=p(g[_],m);x&&y.push(x)}return y}function d(g){return{shape:{points:h(g)}}}u.removeAll(),S(a.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},x=_.dataIdx,C=_.regionModel;if(!m){m=s.set(y,new I),u.add(m),x=n?n.indexOfName(y):null,C=Ne(i)?i.getRegionModel(y):n?n.getItemModel(x):null;var T=C.get("silent",!0);T!=null&&(m.silent=T),l.set(y,{dataIdx:x,regionModel:C})}var b=[],M=[];S(g.geometries,function(A){if(A.type==="polygon"){var R=[A.exterior].concat(A.interiors||[]);c&&(R=Yi(R,c)),S(R,function(k){b.push(new or(d(k)))})}else{var P=A.points;c&&(P=Yi(P,c,!0)),S(P,function(k){M.push(new nr(d(k)))})}});var E=p(g.getCenter(),f&&f.project);function w(A,R){if(A.length){var P=new xl({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});m.add(P),Vi(t,n,o,P,x,C),Ni(i,n,P,y,C,x,E),R&&(Gi(P),S(P.states,Gi))}}w(b),w(M,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,x=m.regionModel;zi(i,n,g,y,x,_),Fi(i,n,g,y,x),Wi(i,g,y,x)},this)},r.prototype._buildSVG=function(e,t,a,i,n,o){var s=a.map;Kt(this._svgGroup,e,He),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=V(),u=!1;S(this._svgGraphicRecord.named,function(f){var c=f.name,v=f.svgNodeTagLower,p=f.el,h=n?n.indexOfName(c):null,d=i.getRegionModel(c);Mf.get(v)!=null&&p instanceof Nr&&Vi(t,n,o,p,h,d),p instanceof Nr&&(p.culling=!0);var g=d.get("silent",!0);if(g!=null&&(p.silent=g),p.z2EmphasisLift=0,!f.namedFrom&&(Rf.get(v)!=null&&Ni(i,n,p,c,d,h,null),zi(i,n,p,c,d,h),Fi(i,n,p,c,d),Ef.get(v)!=null)){var y=Wi(i,p,c,d);y==="self"&&(u=!0);var m=l.get(c)||l.set(c,[]);m.push(p)}},this),this._enableBlurEntireSVG(u,i)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&Ne(t)){var a=t.getModel(["blur","itemStyle"]).getItemStyle(),i=a.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){kn(n);var o=n.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),n.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var n=i.get(e);return n?[n]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=he.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=he.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Po(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,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)}))},r})();function Vi(r,e,t,a,i,n){var o=n.getModel("itemStyle"),s=n.getModel(["emphasis","itemStyle"]),l=n.getModel(["blur","itemStyle"]),u=n.getModel(["select","itemStyle"]),f=Mt(o),c=Mt(s),v=Mt(u),p=Mt(l);if(e){var h=e.getItemVisual(i,"style"),d=e.getItemVisual(i,"decal");t&&h.fill&&(f.fill=h.fill),d&&(f.decal=Ys(d,r))}a.setStyle(f),a.style.strokeNoScale=!0,a.ensureState("emphasis").style=c,a.ensureState("select").style=v,a.ensureState("blur").style=p,kn(a)}function Ni(r,e,t,a,i,n,o){var s=e&&isNaN(e.get(e.mapDimension("value"),n)),l=e&&e.getItemLayout(n);if(Ne(r)||s||l&&l.showLabel){var u=Ne(r)?a:n,f=void 0;(!e||n>=0)&&(f=r);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;aa(t,xt(i),{labelFetcher:f,labelDataIndex:u,defaultText:a},c);var v=t.getTextContent();if(v&&(Po(v).ignore=v.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function zi(r,e,t,a,i,n){e?e.setItemGraphicEl(n,t):Fe(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:a,region:i&&i.option||{}}}function Fi(r,e,t,a,i){e||sa({el:t,componentModel:r,itemName:a,itemTooltipOption:i.get("tooltip")})}function Wi(r,e,t,a){e.highDownSilentOnTouch=!!r.get("selectedMode");var i=a.getModel("emphasis"),n=i.get("focus");return ia(e,n,i.get("blurScope"),i.get("disabled")),Ne(r)&&Us(e,r,t),n}function Yi(r,e,t){var a=[],i;function n(){i=[]}function o(){i.length&&(a.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(),S(r,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(),a}function Ne(r){return r.mainType==="geo"}var Ea="map",wv=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(a){if(a!=null){var i=this.getData().getName(a),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=lu(this,{coordDimensions:["value"],encodeDefaulter:oe(Xs,this)}),i=V(),n=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);i.set(l,o)}var u=he.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return S(u.regions,function(f){var c=f.name,v=i.get(c),p=f.properties&&f.properties.echartsStyle,h;v==null?(h={name:c},n.push(h)):h=a.getRawDataItem(v),p&&z(h,p)}),a.appendData(n),a},e.prototype.getHostGeoModel=function(){if(Hs(this).kind!==Zs)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t),l=[];return S(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),c=n.mapDimension("value");isNaN(u.originalData.get(c,f))||l.push(u.name)}),Ha("section",{header:l.join(", "),noHeader:!l.length,blocks:[Ha("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",i=er(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",a.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill=D.color.neutral00,i.style.lineWidth=2),i},e.prototype.__ownRoamView=function(){return Do(this)?this.coordinateSystem.view:null},e.type="series."+Ea,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:D.color.tertiary},itemStyle:{borderWidth:.5,borderColor:D.color.border,areaColor:D.color.background},emphasis:{label:{show:!0,color:D.color.primary},itemStyle:{areaColor:D.color.highlight}},select:{label:{show:!0,color:D.color.primary},itemStyle:{color:D.color.highlight}},nameProperty:"name"},e})(js);function Df(r){return r.indexOf("i")===0}function Do(r){return Of(r.seriesGroup)===r&&!r.getHostGeoModel()}function Of(r){return r.f[0]}function kf(r,e){var t={};return r.eachRawSeriesByType(Ea,function(a){var i=a.getHostGeoModel(),n=i?"o"+i.id:"i"+a.getMapType(),o=t[n]=t[n]||{f:[],r:[]};!r.isSeriesFiltered(a)&&!e&&o.f.push(a),o.r.push(a)}),t}var If={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Oo=["lng","lat"],Ui=(function(r){O(e,r);function e(t,a,i){var n=r.call(this)||this;n.dimensions=Oo,n.type="geo",n._nameCoordMap=V(),n.name=t;var o=i.projection,s=he.load(a,i.nameMap,i.nameProperty),l=he.getGeoResource(a);n.resourceType=l?l.type:null;var u=n.regions=s.regions,f=If[l.type];n._clip=i.clip;var c=o?!1:f.invertLongitute;n.view=new _o(c,Mo(i.ecModel,i.api),n),n.map=a,n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var v;if(o)for(var p=0;p<u.length;p++){var h=u[p].getBoundingRect(o);v=v||h.clone(),v.union(h)}else v=s.boundingRect;return Ta(n.view,v.x,v.y,v.width,v.height),n.aspectScale=o?1:G(i.aspectScale,f.aspectScale),n}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,i=0;i<a.length;i++){var n=a[i];if(n.type==="geoJSON"&&n.contain(t))return a[i]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,i){if(se(t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.view.dataToPoint(t,a,i)}},e.prototype.pointToData=function(t,a,i){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.view.pointToData(t,i)},e.prototype.convertToPixel=function(t,a,i){var n=Xi(a);return n===this?n.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,a,i){var n=Xi(a);return n===this?n.pointToData(i):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var a=Aa(null,this.view);return a.x-=t,a.y-=t,a.width+=2*t,a.height+=2*t,a},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e})(Xn);function Xi(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Le).models[0]||{}).coordinateSystem:null}function Hi(r,e){var t=this.view,a=r.get("boundingCoords");if(a!=null){var i=a[0],n=a[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])){var o=this.projection;if(o){var s=i[0],l=i[1],u=n[0],f=n[1];i=[1/0,1/0],n=[-1/0,-1/0];var c=function(T,b,M,E){for(var w=M-T,A=E-b,R=0;R<=100;R++){var P=R/100,k=o.project([T+w*P,b+A*P]);_l(i,i,k),bl(n,n,k)}};c(s,l,u,l),c(u,l,u,f),c(u,f,s,f),c(s,f,u,l)}Ta(t,i[0],i[1],n[0]-i[0],n[1]-i[1])}}var v=t.getBoundingRect(),p=r.get("layoutCenter"),h=r.get("layoutSize"),d=ar(r,e).refContainer,g=v.width/v.height*this.aspectScale,y=!1,m,_;p&&h&&(m=[te(p[0],d.width)+d.x,te(p[1],d.height)+d.y],_=te(h,Math.min(d.width,d.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var x;if(y)x={},g>1?(x.width=_,x.height=_/g):(x.height=_,x.width=_*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var C=r.getBoxLayoutParams();C.aspect=g,x=ir(C,d),x=Js(r,x,g)}Hr(t,x.x,x.y,x.width,x.height),Ca(t,r)}function Bf(r,e){S(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var Gf=(function(){function r(){this.dimensions=Oo}return r.prototype.create=function(e,t){var a=[];function i(n){return{nameProperty:n.get("nameProperty"),aspectScale:n.get("aspectScale"),projection:n.get("projection"),clip:n.getShallow("clip",!0)}}return e.eachComponent("geo",function(n,o){var s=n.get("map"),l=new Ui(s+o,s,F({nameMap:n.get("nameMap"),api:t,ecModel:e},i(n)));a.push(l),n.coordinateSystem=l,l.model=n,l.resize=Hi,l.resize(n,t)}),e.eachSeries(function(n){Ln({targetModel:n,coordSysType:"geo",coordSysProvider:function(){var o=n.subType===Ea?n.getHostGeoModel():n.getReferringComponents("geo",Le).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),S(kf(e,!0),function(n,o){if(Df(o)){var s=n.r[0],l=[];S(n.r,function(v){l.push(v.get("nameMap")),v.seriesGroup=null});var u=o.slice(1),f=new Ui(u,u,F({nameMap:Sl(l),api:t,ecModel:e},i(s))),c;S(n.r,function(v){c=G(c,v.get("scaleLimit"))}),a.push(f),f.resize=Hi,f.resize(s,t),S(n.r,function(v){v.coordinateSystem=f,Bf(f,v)})}}),a},r.prototype.getFilledRegions=function(e,t,a,i){for(var n=(e||[]).slice(),o=V(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=he.load(t,a,i);return S(l.regions,function(u){var f=u.name,c=o.get(f),v=u.properties&&u.properties.echartsStyle;c||(c={name:f},n.push(c)),v&&z(c,v)}),n},r})(),ko=new Gf,Vf=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i);var n=he.getGeoResource(t.map);if(n&&n.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||D.color.backgroundTint)}Ks(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=ko.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var i={};this._optionModelMap=Hn(a.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new ut(o,t,t.ecModel)),o.selected&&(i[s]=!0)),n},V()),a.selectedMap||(a.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ut(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var i=this.getRegionModel(t),n=a==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:t};if(ga(n))return o.status=a,n(o);if(se(n))return n.replace("{a}",t??"")},e.prototype.select=function(t){var a=this.option,i=a.selectedMode;if(i){i!=="multiple"&&(a.selectedMap=null);var n=a.selectedMap||(a.selectedMap={});n[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},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:D.color.tertiary},itemStyle:{borderWidth:.5,borderColor:D.color.border},emphasis:{label:{show:!0,color:D.color.primary},itemStyle:{color:D.color.highlight}},select:{label:{show:!0,color:D.color.primary},itemStyle:{color:D.color.highlight}},regions:[]},e})(Je),Nf=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,i,n){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Pf(i));var o=this._mapDraw;o.draw(t,a,i,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,i)},e.prototype.__updateOnOwnRoam=function(t,a,i){var n=this._mapDraw;n&&n.__updateOnOwnRoam(a)},e.prototype._handleRegionClick=function(t){var a;$s(t.target,function(i){return(a=Fe(i).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,i){var n=this;this._mapDraw.group.traverse(function(o){var s=Fe(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})(Ke);function zf(r,e,t){he.registerMap(r,e,t)}function Cv(r){r.registerCoordinateSystem("geo",ko),r.registerComponentModel(Vf),r.registerComponentView(Nf),r.registerImpl("registerMap",zf),r.registerImpl("getMap",function(t){return he.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(i,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:i},function(l){l[t](i.name);var u=l.coordinateSystem;S(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];S(o,function(c,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{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"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,i){var n=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":Gr),o=n===Gr;if(!(n!=="geo"&&!o)){var s=o?"map":null;a.eachComponent(Dn(t,n,s),function(l){o&&!Do(l)||(wo(t,l,o?l.seriesGroup.r:null),To(t,l,a,i))})}})}var yt=S,Ff=pe,$t=-1,Io=(function(){function r(e){var t=e.mappingMethod,a=e.type,i=this.option=re(e);this.type=a,this.mappingMethod=t,this._normalizeData=Uf[t];var n=r.visualHandlers[a];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(Cr(i),Wf(i)):t==="category"?i.categories?Yf(i):Cr(i,!0):(Un(t!=="linear"||i.dataExtent),Cr(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return $(this._normalizeData,this)},r.listVisualTypes=function(){return ue(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){pe(e)?S(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var i,n=Q(e)?[]:pe(e)?{}:(i=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);i?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},a;return e&&yt(r.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(Q(e))e=e.slice();else if(Ff(e)){var t=[];yt(e,function(a,i){t.push(i)}),e=t}else return[];return e.sort(function(a,i){return i==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){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||se(l)&&l===e+"")return o;a&&v(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Rt(c[1],e,f[1]))return o}else if(f[1]===1/0){if(Rt(c[0],f[0],e))return o}else if(Rt(c[0],f[0],e)&&Rt(c[1],e,f[1]))return o;a&&v(f[0],o),a&&v(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:i;function v(p,h){var d=Math.abs(p-e);d<n&&(n=d,i=h)}},r.visualHandlers={color:{applyVisual:ot("color"),getColorMapper:function(){var e=this.option;return $(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),st.call(this,t)}:function(t,a,i){var n=!!i;return!a&&(t=this._normalizeData(t)),i=dr(t,e.parsedVisual,i),n?i:Ot(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ot(dr(e,this.option.parsedVisual),"rgba")},category:st,piecewise:function(e,t){var a=jr.call(this,t);return a==null&&(a=Ot(dr(e,this.option.parsedVisual),"rgba")),a},fixed:Ce}},colorHue:Et(function(e,t){return gr(e,t)}),colorSaturation:Et(function(e,t){return gr(e,null,t)}),colorLightness:Et(function(e,t){return gr(e,null,null,t)}),colorAlpha:Et(function(e,t){return Al(e,t)}),decal:{applyVisual:ot("decal"),_normalizedToVisual:{linear:null,category:st,piecewise:null,fixed:null}},opacity:{applyVisual:ot("opacity"),_normalizedToVisual:Zr([0,1])},liftZ:{applyVisual:ot("liftZ"),_normalizedToVisual:{linear:Ce,category:Ce,piecewise:Ce,fixed:Ce}},symbol:{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("symbol",i)},_normalizedToVisual:{linear:Zi,category:st,piecewise:function(e,t){var a=jr.call(this,t);return a==null&&(a=Zi.call(this,e)),a},fixed:Ce}},symbolSize:{applyVisual:ot("symbolSize"),_normalizedToVisual:Zr([0,1])}},r})();function Wf(r){var e=r.pieceList;r.hasSpecialVisual=!1,S(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function Yf(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(yt(e,function(o,s){t[o]=s}),!Q(a)){var i=[];pe(a)?yt(a,function(o,s){var l=t[s];i[l??$t]=o}):i[$t]=a,a=Bo(r,i)}for(var n=e.length-1;n>=0;n--)a[n]==null&&(delete t[e[n]],e.pop())}function Cr(r,e){var t=r.visual,a=[];pe(t)?yt(t,function(n){a.push(n)}):t!=null&&a.push(t);var i={color:1,symbol:1};!e&&a.length===1&&!i.hasOwnProperty(r.type)&&(a[1]=a[0]),Bo(r,a)}function Et(r){return{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("color",r(t("color"),i))},_normalizedToVisual:Zr([0,1])}}function Zi(r){var e=this.option.visual;return e[Math.round(vt(r,[0,1],[0,e.length-1],!0))]||{}}function ot(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function st(r){var e=this.option.visual;return e[this.option.loop&&r!==$t?r%e.length:r]}function Ce(){return this.option.visual[0]}function Zr(r){return{linear:function(e){return vt(e,r,this.option.visual,!0)},category:st,piecewise:function(e,t){var a=jr.call(this,t);return a==null&&(a=vt(e,r,this.option.visual,!0)),a},fixed:Ce}}function jr(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=Io.findPieceIndex(r,t),i=t[a];if(i&&i.visual)return i.visual[this.type]}}function Bo(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=U(e,function(t){var a=Wn(t);return a||[0,0,0,1]})),e}var Uf={linear:function(r){return vt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Io.findPieceIndex(r,e,!0);if(t!=null)return vt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??$t},fixed:zn};function Rt(r,e,t){return r?e<=t:e<t}var ji=Ye.prototype,Tr=qs.prototype,Go=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){O(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Go);function Lr(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Xf=(function(r){O(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:D.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Go},e.prototype.buildPath=function(t,a){Lr(a)?ji.buildPath.call(this,t,a):Tr.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return Lr(this.shape)?ji.pointAt.call(this,t):Tr.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,i=Lr(a)?[a.x2-a.x1,a.y2-a.y1]:Tr.tangentAt.call(this,t);return Zn(i,i)},e})(jn),Mr=["fromSymbol","toSymbol"];function Ji(r){return"_"+r+"Type"}function Ki(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var i=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=na(i),u=rr(o||0,l);return a+l+u+(n||"")+(s||"")}function $i(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var i=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=na(i),u=rr(o||0,l),f=er(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,f.name=r,f}}function Hf(r){var e=new Xf({name:"line",subPixelOptimize:!0});return Jr(e.shape,r),e}function Jr(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var Zf=(function(r){O(e,r);function e(t,a,i){var n=r.call(this)||this;return n._createLine(t,a,i),n}return e.prototype._createLine=function(t,a,i){var n=t.hostModel,o=t.getItemLayout(a),s=t.getItemVisual(a,"z2"),l=Hf(o);l.shape.percent=0,pn(l,{z2:G(s,0),shape:{percent:1}},n,a),this.add(l),S(Mr,function(u){var f=$i(u,t,a);this.add(f),this[Ji(u)]=Ki(u,t,a)},this),this._updateCommonStl(t,a,i)},e.prototype.updateData=function(t,a,i){var n=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};Jr(l.shape,s),tr(o,l,n,a),S(Mr,function(u){var f=Ki(u,t,a),c=Ji(u);if(this[c]!==f){this.remove(this.childOfName(u));var v=$i(u,t,a);this.add(v)}this[c]=f},this),this._updateCommonStl(t,a,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,i){var n=t.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,v=i&&i.focus,p=i&&i.blurScope;if(!i||t.hasItemOption){var h=t.getItemModel(a),d=h.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=h.getModel(["blur","lineStyle"]).getLineStyle(),u=h.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),v=d.get("focus"),p=d.get("blurScope"),f=xt(h)}var g=t.getItemVisual(a,"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,S(Mr,function(T){var b=this.childOfName(T);if(b){b.setColor(y),b.style.opacity=g.opacity;for(var M=0;M<Za.length;M++){var E=Za[M],w=o.getState(E);if(w){var A=w.style||{},R=b.ensureState(E),P=R.style||(R.style={});A.stroke!=null&&(P[b.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(P.opacity=A.opacity)}}b.markRedraw()}},this);var m=n.getRawValue(a);aa(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(T,b){return n.getFormattedLabel(T,b,t.dataType)}},inheritColor:y||D.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?t.getName(a):isFinite(m)?W(m,10):m)+""});var _=this.getTextContent();if(_){var x=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var C=x.get("distance");Q(C)||(C=[C,C]),_.__labelDistance=C}this.setTextConfig({position:null,local:!0,inside:!1}),ia(this,v,p,c)},e.prototype.highlight=function(){cn(this)},e.prototype.downplay=function(){vn(this)},e.prototype.updateLayout=function(t,a){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");Jr(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.getTextContent();if(!a&&!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,f=l.pointAt(0),c=l.pointAt(u),v=wl([],c,f);Zn(v,v);function p(w,A){var R=w.__specifiedRotation;if(R==null){var P=l.tangentAt(A);w.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else w.attr("rotation",R)}if(a&&(a.setPosition(f),p(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&(i.setPosition(c),p(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var h=void 0,d=void 0,g=n.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,x=l.tangentAt(_),C=[x[1],-x[0]],T=l.pointAt(_);C[1]>0&&(C[0]=-C[0],C[1]=-C[1]);var b=x[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var M=-Math.atan2(x[1],x[0]);c[0]<f[0]&&(M=Math.PI+M),n.rotation=M}var E=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":E=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":E=m,d="top";break;default:E=0,d="middle"}switch(n.__position){case"end":n.x=v[0]*y+c[0],n.y=v[1]*m+c[1],h=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+f[0],n.y=-v[1]*m+f[1],h=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*b+f[0],n.y=f[1]+E,h=x[0]<0?"right":"left",n.originX=-y*b,n.originY=-E;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=T[0],n.y=T[1]+E,h="center",n.originY=-E;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-y*b+c[0],n.y=c[1]+E,h=x[0]>=0?"right":"left",n.originX=y*b,n.originY=-E;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||h})}},e})(I),Tv=(function(){function r(e){this.group=new I,this._LineCtor=e||Zf}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,i=a.group,n=a._lineData;a._lineData=e,n||i.removeAll();var o=qi(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()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=qi(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[];function i(l){!l.isGroup&&!jf(l)&&(l.incremental=a,l.ensureState("emphasis").hoverLayer=dn)}for(var n=e.start;n<e.end;n++){var o=t.getItemLayout(n);if(Er(o)){var s=new this._LineCtor(t,n,this._seriesScope);s.traverse(i),this.group.add(s),t.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){hn(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var i=e.getItemLayout(t);if(Er(i)){var n=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,n),this.group.add(n)}},r.prototype._doUpdate=function(e,t,a,i,n){var o=e.getItemGraphicEl(a);if(!Er(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)},r})();function jf(r){return r.animators&&r.animators.length>0}function qi(r){var e=r.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:xt(e)}}function Qi(r){return isNaN(r[0])||isNaN(r[1])}function Er(r){return r&&!Qi(r[0])&&!Qi(r[1])}var Vo=de();function Lv(r){if(r)return Vo(r).bridge}function Mv(r,e){r&&(Vo(r).bridge=e)}function Jf(r){Kf(r),$f(r)}function Kf(r){if(!r.parallel){var e=!1;S(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function $f(r){var e=pt(r.parallelAxis);S(e,function(t){if(pe(t)){var a=t.parallelIndex||0,i=pt(r.parallel)[a];i&&i.parallelAxisDefault&&z(t,i.parallelAxisDefault,!1)}})}var qf=5,Qf=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){this._model=t,this._api=i,this._handlers||(this._handlers={},S(ec,function(n,o){i.getZr().on(o,this._handlers[o]=$(n,this))},this)),Qs(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){el(this,"_throttledDispatchExpand"),S(this._handlers,function(i,n){a.getZr().off(n,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(F({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Ke),ec={mousedown:function(r){Rr(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(Rr(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>qf)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Rr(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Rr(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var qt="parallel",Kr=qt,tc=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&z(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var i=t.get("parallelIndex");return i!=null&&a.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){S(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],i=sr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);S(i,function(n){t.push("dim"+n.get("dim")),a.push(n.componentIndex)})},e.type=Kr,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})(Je),rc=(function(r){O(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(oa);function ac(r,e,t,a,i,n){r=r||0;var o=ke(t[1],-t[0]);if(i!=null&&(i=Be(i,[0,o])),n!=null&&(n=Math.max(n,i??0)),a==="all"){var s=Math.abs(ke(e[1],-e[0]));s=Be(s,[0,o]),i=n=Be(s,[i,n]),a=0}e[0]=Be(e[0],t),e[1]=Be(e[1],t);var l=Pr(e,a);e[a]+=r;var u=i||0,f=t.slice();l.sign<0?f[0]=ke(f[0],u):f[1]=ke(f[1],-u),e[a]=Be(e[a],f);var c;return c=Pr(e,a),i!=null&&(c.sign!==l.sign||c.span<i)&&(e[1-a]=ke(e[a],l.sign*i)),c=Pr(e,a),n!=null&&c.span>n&&(e[1-a]=ke(e[a],c.sign*n)),e}function Pr(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Be(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var ic=(function(){function r(e,t,a){this.type=qt,this._axesMap=V(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=e.dimensions,n=e.parallelAxisIndex;S(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=wn(u),c=this._axesMap.set(o,new rc(o,Cn(u,f),[0,0],f,l));c.onBand=Tn(c.scale,u),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){S(this.dimensions,function(a){var i=this._axesMap.get(a);va(i,pa),Ir(i)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=a&&o<=a+t.axisLength&&s>=i&&s<=i+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var a=ar(e,t).refContainer;this._rect=ir(e.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["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,f=Pt(e.get("axisExpandWidth"),l),c=Pt(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,p=e.get("axisExpandWindow"),h;if(p)h=Pt(p[1]-p[0],l),p[1]=p[0]+h;else{h=Pt(f*(c-1),l);var d=e.get("axisExpandCenter")||Ft(u/2);p=[f*d-h/2],p[1]=p[0]+h}var g=(s-h)/(u-c);g<3&&(g=0);var y=[Ft(W(p[0]/f,1))+1,An(W(p[1]/f,1))-1],m=g/f*p[0];return{layout:n,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[i[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=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])}),S(a,function(o,s){var l=(i.axisExpandable?oc:nc)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:tl/2,vertical:0},c=[u[n].x+e.x,u[n].y+e.y],v=f[n],p=q();da(p,p,v),Yn(p,p,c),this._axesLayout[o]={position:c,rotation:v,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,i){a==null&&(a=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];S(o,function(g){s.push(e.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;f<i;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var v=e.getValues(s,f),p=0,h=o.length;p<h;p++){var d=l[p].getActiveState(v[p]);if(d==="inactive"){c="inactive";break}}}t(c,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,i=0,n=e.length;i<n;i++)t.get(e[i]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return rl([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return re(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=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[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),v=c[0]!=null;if(f)v&&f&&s<n*c[0]?(u="jump",l=s-n*c[2]):v&&f&&s>n*(1-c[0])?(u="jump",l=s-n*(1-c[2])):(l=s-n*c[1])>=0&&(l=s-n*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?ac(l,i,o,"all"):u="none";else{var p=i[1]-i[0],h=o[1]*s/p;i=[Ue(0,h-p/2)],i[1]=In(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:u}},r})();function Pt(r,e){return In(Ue(r,e[0]),e[1])}function nc(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function oc(r,e){var t=e.layoutLength,a=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r<o[0]?(s=r*n,f=n):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(i-1-r)*n,f=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function sc(r,e){var t=[];return r.eachComponent(Kr,function(a,i){var n=new ic(a,r,e);n.name="parallel_"+i,n.resize(a,e),a.coordinateSystem=n,n.model=a,t.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")===qt){var i=a.getReferringComponents(Kr,Le).models[0],n=a.coordinateSystem=i.coordinateSystem;n&&S(n.dimensions,function(o){Wt(n.getAxis(o),a,qt)})}}),t}var lc={create:sc},$r=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return al([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=re(t);if(a)for(var i=a.length-1;i>=0;i--)Sn(a[i])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var i=a[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=a.length;n<o;n++)if(a[n][0]<=t&&t<=a[n][1])return"active";return"inactive"},e})(Je);ya($r,ca);var Pe=!0,mt=Math.min,Ze=Math.max,uc=Math.pow,fc=1e4,cc=6,vc=6,en="globalPan",pc={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},hc={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},tn={brushStyle:{lineWidth:2,stroke:D.color.backgroundTint,fill:D.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},dc=0,gc=(function(r){O(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new I,a._uid="brushController_"+dc++,S(Ac,function(i,n){this._handlers[n]=$(i,this)},a),a}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||Nu(a,en,this._uid),S(this._handlers,function(i,n){a.on(n,i)}),this._brushType=t.brushType,this._brushOption=z(re(tn),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;zu(t,en,this._uid),S(this._handlers,function(a,i){t.off(i,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};S(t,function(i){a[i.panelId]=re(i)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=U(t,function(v){return z(re(tn),v,!0)});var a="\0-brush-index-",i=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new il(i,t,u,l).add(f).update(f).remove(c).execute(),this;function l(v,p){return(v.id!=null?v.id:a+p)+"-"+v.brushType}function u(v,p){return l(v.__brushOption,p)}function f(v,p){var h=t[v];if(p!=null&&i[p]===s)n[v]=i[p];else{var d=n[v]=p!=null?(i[p].__brushOption=h,i[p]):zo(o,No(o,h));Ra(o,d)}}function c(v){i[v]!==s&&o.group.remove(i[v])}},e.prototype.unmount=function(){return this.enableBrush(!1),qr(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Fn);function No(r,e){var t=hr[e.brushType].createCover(r,e);return t.__brushOption=e,Wo(t,e),r.group.add(t),t}function zo(r,e){var t=Pa(e);return t.endCreating&&(t.endCreating(r,e),Wo(e,e.__brushOption)),e}function Fo(r,e){var t=e.__brushOption;Pa(e).updateCoverShape(r,e,t.range,t)}function Wo(r,e){var t=e.z;t==null&&(t=fc),r.traverse(function(a){a.z=t,a.z2=t})}function Ra(r,e){Pa(e).updateCommon(r,e),Fo(r,e)}function Pa(r){return hr[r.__brushOption.brushType]}function Da(r,e,t){var a=r._panels;if(!a)return Pe;var i,n=r._transform;return S(a,function(o){o.isTargetByCursor(e,t,n)&&(i=o)}),i}function Yo(r,e){var t=r._panels;if(!t)return Pe;var a=e.__brushOption.panelId;return a!=null?t[a]:Pe}function qr(r){var e=r._covers,t=e.length;return S(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function De(r,e){var t=U(r._covers,function(a){var i=a.__brushOption,n=re(i.range);return{brushType:i.brushType,panelId:i.panelId,range:n}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function yc(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],i=t[0]-a[0],n=t[1]-a[1],o=uc(i*i+n*n,.5);return o>cc}function Uo(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Xo(r,e,t,a){var i=new I;return i.add(new le({name:"main",style:Oa(t),silent:!0,draggable:!0,cursor:"move",drift:oe(rn,r,e,i,["n","s","w","e"]),ondragend:oe(De,e,{isEnd:!0})})),S(a,function(n){i.add(new le({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:oe(rn,r,e,i,n),ondragend:oe(De,e,{isEnd:!0})}))}),i}function Ho(r,e,t,a){var i=a.brushStyle.lineWidth||0,n=Ze(i,vc),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,f=t[0][1],c=t[1][1],v=f-n+i/2,p=c-n+i/2,h=f-o,d=c-s,g=h+i,y=d+i;ce(r,e,"main",o,s,h,d),a.transformable&&(ce(r,e,"w",l,u,n,y),ce(r,e,"e",v,u,n,y),ce(r,e,"n",l,u,g,n),ce(r,e,"s",l,p,g,n),ce(r,e,"nw",l,u,n,n),ce(r,e,"ne",v,u,n,n),ce(r,e,"sw",l,p,n,n),ce(r,e,"se",v,p,n,n))}function Qr(r,e){var t=e.__brushOption,a=t.transformable,i=e.childAt(0);i.useStyle(Oa(t)),i.attr({silent:!a,cursor:a?"move":"default"}),S([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?ea(r,n[0]):xc(r,n);o&&o.attr({silent:!a,invisible:!a,cursor:a?hc[s]+"-resize":null})})}function ce(r,e,t,a,i,n,o){var s=e.childOfName(t);s&&s.setShape(_c(ka(r,e,[[a,i],[a+n,i+o]])))}function Oa(r){return N({strokeNoScale:!0},r.brushStyle)}function Zo(r,e,t,a){var i=[mt(r,t),mt(e,a)],n=[Ze(r,t),Ze(e,a)];return[[i[0],n[0]],[i[1],n[1]]]}function mc(r){return ol(r.group)}function ea(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=nl(t[e],mc(r));return a[i]}function xc(r,e){var t=[ea(r,e[0]),ea(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function rn(r,e,t,a,i,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=jo(e,i,n);S(a,function(u){var f=pc[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Zo(s[0][0],s[1][0],s[0][1],s[1][1])),Ra(e,t),De(e,{isEnd:!1})}function Sc(r,e,t,a){var i=e.__brushOption.range,n=jo(r,t,a);S(i,function(o){o[0]+=n[0],o[1]+=n[1]}),Ra(r,e),De(r,{isEnd:!1})}function jo(r,e,t){var a=r.group,i=a.transformCoordToLocal(e,t),n=a.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function ka(r,e,t){var a=Yo(r,e);return a&&a!==Pe?a.clipPath(t,r._transform):re(t)}function _c(r){var e=mt(r[0][0],r[1][0]),t=mt(r[0][1],r[1][1]),a=Ze(r[0][0],r[1][0]),i=Ze(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:i-t}}function bc(r,e,t){if(!(!r._brushType||wc(r,e.offsetX,e.offsetY))){var a=r._zr,i=r._covers,n=Da(r,e,t);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(n&&(n===Pe||s.panelId===n.panelId)&&hr[s.brushType].contain(i[o],t[0],t[1]))return}n&&a.setCursorStyle("crosshair")}}function ta(r){var e=r.event;e.preventDefault&&e.preventDefault()}function ra(r,e,t){return r.childOfName("main").contain(e,t)}function Jo(r,e,t,a){var i=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),yc(r)||i){if(n&&!i){o.brushMode==="single"&&qr(r);var l=re(o);l.brushType=an(l.brushType,n),l.panelId=n===Pe?null:n.panelId,i=r._creatingCover=No(r,l),r._covers.push(i)}if(i){var u=hr[an(r._brushType,n)],f=i.__brushOption;f.range=u.getCreatingRange(ka(r,i,r._track)),a&&(zo(r,i),u.updateCommon(r,i)),Fo(r,i),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&Da(r,e,t)&&qr(r)&&(s={isEnd:a,removeOnClick:!0});return s}function an(r,e){return r==="auto"?e.defaultBrushType:r}var Ac={mousedown:function(r){if(this._dragging)nn(this,r);else if(!r.target||!r.target.draggable){ta(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=Da(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(bc(this,r,a),this._dragging){ta(r);var i=Jo(this,r,a,!1);i&&De(this,i)}},mouseup:function(r){nn(this,r)}};function nn(r,e){if(r._dragging){ta(e);var t=e.offsetX,a=e.offsetY,i=r.group.transformCoordToLocal(t,a),n=Jo(r,e,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&De(r,n)}}function wc(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var hr={lineX:on(0),lineY:on(1),rect:{createCover:function(r,e){function t(a){return a}return Xo({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Uo(r);return Zo(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){Ho(r,e,t,a)},updateCommon:Qr,contain:ra},polygon:{createCover:function(r,e){var t=new I;return t.add(new nr({name:"main",style:Oa(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new or({name:"main",draggable:!0,drift:oe(Sc,r,e),ondragend:oe(De,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:ka(r,e,t)})},updateCommon:Qr,contain:ra}};function on(r){return{createCover:function(e,t){return Xo({toRectRange:function(a){var i=[a,[0,100]];return r&&i.reverse(),i},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Uo(e),a=mt(t[0][r],t[1][r]),i=Ze(t[0][r],t[1][r]);return[a,i]},updateCoverShape:function(e,t,a,i){var n,o=Yo(e,t);if(o!==Pe&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,n];r&&l.reverse(),Ho(e,t,l,i)},updateCommon:Qr,contain:ra}}function Cc(r){return r=Ia(r),function(e){return sl(e,r)}}function Tc(r,e){return r=Ia(r),function(t){var a=e??t,i=a?r.width:r.height,n=a?r.x:r.y;return[n,n+(i||0)]}}function Lc(r,e,t){var a=Ia(r);return function(i,n){return a.contain(n[0],n[1])&&!yo(i,e,t)}}function Ia(r){return Y.create(r)}var Mc=(function(r){O(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new gc(a.getZr())).on("brush",$(this._onBrush,this))},e.prototype.render=function(t,a,i,n){if(!Ec(t,a,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new I,this.group.add(this._axisGroup),!!t.get("show")){var s=Pc(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,c=t.axis.dim,v=l.getAxisLayout(c),p=F({strokeContainThreshold:f},v),h=new ve(t,i,p);h.build(),this._axisGroup.add(h.group),this._refreshBrushController(p,u,t,s,f,i),Mn(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=Y.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Cc(c),isTargetByCursor:Lc(c,s,n),getLinearBrushOtherExtent:Tc(c,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(Rc(i))},e.prototype._onBrush=function(t){var a=t.areas,i=this.axisModel,n=i.axis,o=U(a,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})(Ke);function Ec(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function Rc(r){var e=r.axis;return U(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Pc(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Dc={type:"axisAreaSelect",event:"axisAreaSelected"};function Oc(r){r.registerAction(Dc,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var kc={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ev(r){r.registerComponentView(Qf),r.registerComponentModel(tc),r.registerCoordinateSystem("parallel",lc),r.registerPreprocessor(Jf),r.registerComponentModel($r),r.registerComponentView(Mc),Wr(r,"parallel",$r,kc),Oc(r)}var Ko={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sn=ue(Ko);Hn(gt,function(r,e){return r[e]=1,r},{});gt.join(", ");var Qt=["","style","shape","extra"],je=de();function Ba(r,e,t,a,i){var n=r+"Animation",o=Bn(r,a,i)||{},s=je(e).userDuring;return o.duration>0&&(o.during=s?$(zc,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,t[n]),o}function Rv(r,e,t,a){a=a||{};var i=a.dataIndex,n=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=je(r),u=e.style;l.userDuring=e.during;var f={},c={};if(Wc(r,e,c),r.type==="compound")for(var v=r.shape.paths,p=e.shape.paths,h=0;h<p.length;h++){var d=p[h];Dr("shape",d,v[h])}else Dr("shape",e,c),Dr("extra",e,c);if(!n&&s&&(Fc(r,e,f),ln("shape",r,e,f),ln("extra",r,e,f),Yc(r,e,u,f)),c.style=u,Bc(r,c,o),Vc(r,e),s)if(n){var g={};S(Qt,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),F(m?g[m]:g,_.enterFrom))});var y=Ba("enter",r,e,t,i);y.duration>0&&r.animateFrom(g,y)}else Gc(r,e,i||0,t,f);Ic(r,e),u?r.dirty():r.markRedraw()}function Ic(r,e){for(var t=je(r).leaveToProps,a=0;a<Qt.length;a++){var i=Qt[a],n=i?e[i]:e;n&&n.leaveTo&&(t||(t=je(r).leaveToProps={}),i&&(t[i]=t[i]||{}),F(i?t[i]:t,n.leaveTo))}}function Pv(r,e,t,a){if(r){var i=r.parent,n=je(r).leaveToProps;if(n){var o=Ba("update",r,e,t,0);o.done=function(){i&&i.remove(r)},r.animateTo(n,o)}else i&&i.remove(r)}}function ze(r){return r==="all"}function Bc(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var i=r.animators,n=0;n<i.length;n++){var o=i[n];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function Gc(r,e,t,a,i){if(i){var n=Ba("update",r,e,a,t);n.duration>0&&r.animateFrom(i,n)}}function Vc(r,e){L(e,"silent")&&(r.silent=e.silent),L(e,"ignore")&&(r.ignore=e.ignore),r instanceof Nr&&L(e,"invisible")&&(r.invisible=e.invisible),r instanceof jn&&L(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var ne={},Nc={setTransform:function(r,e){return ne.el[r]=e,this},getTransform:function(r){return ne.el[r]},setShape:function(r,e){var t=ne.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=ne.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=ne.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=ne.el.style;if(e)return e[r]},setExtra:function(r,e){var t=ne.el.extra||(ne.el.extra={});return t[r]=e,this},getExtra:function(r){var e=ne.el.extra;if(e)return e[r]}};function zc(){var r=this,e=r.el;if(e){var t=je(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}ne.el=e,a(Nc)}}function ln(r,e,t,a){var i=t[r];if(i){var n=e[r],o;if(n){var s=t.transition,l=i.transition;if(l)if(!o&&(o=a[r]={}),ze(l))F(o,n);else for(var u=pt(l),f=0;f<u.length;f++){var c=u[f],v=n[c];o[c]=v}else if(ze(s)||xe(s,r)>=0){!o&&(o=a[r]={});for(var p=ue(n),f=0;f<p.length;f++){var c=p[f],v=n[c];Uc(i[c],v)&&(o[c]=v)}}}}}function Dr(r,e,t){var a=e[r];if(a)for(var i=t[r]={},n=ue(a),o=0;o<n.length;o++){var s=n[o];i[s]=Cl(a[s])}}function Fc(r,e,t){for(var a=e.transition,i=ze(a)?gt:pt(a||[]),n=0;n<i.length;n++){var o=i[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function Wc(r,e,t){for(var a=0;a<sn.length;a++){var i=sn[a],n=Ko[i],o=e[i];o&&(t[n[0]]=o[0],t[n[1]]=o[1])}for(var a=0;a<gt.length;a++){var s=gt[a];e[s]!=null&&(t[s]=e[s])}}function Yc(r,e,t,a){if(t){var i=r.style,n;if(i){var o=t.transition,s=e.transition;if(o&&!ze(o)){var l=pt(o);!n&&(n=a.style={});for(var u=0;u<l.length;u++){var f=l[u],c=i[f];n[f]=c}}else if(r.getAnimationStyleProps&&(ze(s)||ze(o)||xe(s,"style")>=0)){var v=r.getAnimationStyleProps(),p=v?v.style:null;if(p){!n&&(n=a.style={});for(var h=ue(t),u=0;u<h.length;u++){var f=h[u];if(p[f]){var c=i[f];n[f]=c}}}}}}}function Uc(r,e){return Tl(r)?r!==e:r!=null&&isFinite(r)}var $o=de(),Xc=["percent","easing","shape","style","extra"];function Dv(r){r.stopAnimation("keyframe"),r.attr($o(r))}function Hc(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(Q(e)){S(e,function(s){Hc(r,s,t)});return}var a=e.keyframes,i=e.duration;if(t&&i==null){var n=Bn("enter",t,0);i=n&&n.duration}if(!(!a||!i)){var o=$o(r);S(Qt,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),S(a,function(u){var f=r.animators,c=s?u[s]:u;if(c){var v=ue(c);if(s||(v=sr(v,function(d){return xe(Xc,d)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var p=0;p<f.length;p++)f[p]!==l&&f[p].targetName===l.targetName&&f[p].stopTracks(v);s&&(o[s]=o[s]||{});var h=s?o[s]:o;S(v,function(d){h[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(i*u.percent,c,v,u.easing)}}}),l&&l.delay(e.delay||0).duration(i).start(e.easing)}})}}}export{Dv as $,bv as A,Av as B,kt as C,xv as D,_v as E,Eo as F,Io as G,mv as H,Co as I,Lv as J,gv as K,Tv as L,Pf as M,Xf as N,_o as O,Ev as P,sv as Q,Wu as R,$c as S,ou as T,Zf as U,pr as V,ev as W,fv as X,yv as Y,Pv as Z,av as _,Ol as a,Rv as a0,Hc as a1,tv as a2,rv as a3,co as a4,ve as a5,io as a6,Zt as a7,Lu as a8,pv as a9,Wr as aa,Eu as ab,Mu as ac,Ic as ad,ze as ae,ac as af,nv as ag,gf as ah,Tc as ai,Lc as aj,Cc as ak,gc as al,Mv as am,Ta as an,Hr as ao,Kt as ap,He as aq,Dl as b,qc as c,iv as d,vv as e,ov as f,Kc as g,uv as h,Qc as i,lu as j,Ml as k,hv as l,lv as m,dv as n,Ea as o,Do as p,Of as q,cv as r,Jc as s,Df as t,kf as u,Cv as v,wv as w,Lf as x,Sv as y,ki as z};
|