UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 448 kB
export const __webpack_ids__=["77535"];export const __webpack_modules__={88375:function(e,t,n){n.r(t),n.d(t,{Axis:()=>Te.Z,ComponentView:()=>h.Z,extendChartView:()=>Pe,setCanvasCreator:()=>u.jQ,time:()=>o,version:()=>u.i8,format:()=>s,registerProcessor:()=>u.Pu,Model:()=>M.Z,extendComponentModel:()=>Ae,registerUpdateLifecycle:()=>u.YK,use:()=>E.D,parseGeoJson:()=>$,color:()=>x,init:()=>u.S1,getMap:()=>u.FU,zrUtil:()=>m,zrender:()=>g,List:()=>f.Z,connect:()=>u.$j,innerDrawElementOnCanvas:()=>Ce.RV,getCoordinateSystemDimensions:()=>u.wL,registerCoordinateSystem:()=>u.RS,registerLoading:()=>u.yn,extendComponentView:()=>ke,matrix:()=>v,registerLayout:()=>u.qR,disConnect:()=>u.eU,registerVisual:()=>u.Og,vector:()=>y,getInstanceByDom:()=>u.JE,registerLocale:()=>u.I2,registerTransform:()=>u.OB,ComponentModel:()=>c.Z,dataTool:()=>u.Ok,env:()=>Ie.Z,util:()=>l,setPlatformAPI:()=>B.g2,PRIORITY:()=>u.Hr,graphic:()=>a,registerPostUpdate:()=>u.Br,number:()=>r,ChartView:()=>p.Z,extendSeriesModel:()=>Le,registerMap:()=>u.je,throttle:()=>_.P2,dependencies:()=>u.HO,disconnect:()=>u.zP,registerPostInit:()=>u.sq,registerTheme:()=>u.aW,parseGeoJSON:()=>$,getInstanceById:()=>u.rp,registerPreprocessor:()=>u.ds,SeriesModel:()=>d.Z,dispose:()=>u.B9,helper:()=>i,registerAction:()=>u.zl});var i={};n.r(i),n.d(i,{createDimensions:()=>k.q,createList:()=>D,createScale:()=>R,createSymbol:()=>L.th,createTextStyle:()=>z,dataStack:()=>O,enableHoverEmphasis:()=>P.vF,getECData:()=>C.A,getLayoutRect:()=>I.ME,mixinAxisModelCommonMethods:()=>Z});var r={};n.r(r),n.d(r,{MAX_SAFE_INTEGER:()=>ee.YM,asc:()=>ee.dt,getPercentWithPrecision:()=>ee.eJ,getPixelPrecision:()=>ee.M9,getPrecision:()=>ee.p8,getPrecisionSafe:()=>ee.ZB,isNumeric:()=>ee.kE,isRadianAroundZero:()=>ee.mW,linearMap:()=>ee.NU,nice:()=>ee.kx,numericToNumber:()=>ee.FK,parseDate:()=>ee.sG,quantile:()=>ee.VR,quantity:()=>ee.Xd,quantityExponent:()=>ee.xW,reformIntervals:()=>ee.nR,remRadian:()=>ee.wW,round:()=>ee.NM});var o={};n.r(o),n.d(o,{format:()=>te.WU,parse:()=>ee.sG});var a={};n.r(a),n.d(a,{Arc:()=>xe.Z,BezierCurve:()=>pe.Z,BoundingRect:()=>N.Z,Circle:()=>fe.Z,CompoundPath:()=>ge.Z,Ellipse:()=>_e.Z,Group:()=>de.Z,Image:()=>me.ZP,IncrementalDisplayable:()=>le.Z,Line:()=>oe.Z,LinearGradient:()=>ne.Z,Polygon:()=>ie.Z,Polyline:()=>he.Z,RadialGradient:()=>ce.Z,Rect:()=>ye.Z,Ring:()=>ve.Z,Sector:()=>ue.C,Text:()=>ae.ZP,clipPointsByRect:()=>re.clipPointsByRect,clipRectByRect:()=>re.clipRectByRect,createIcon:()=>re.createIcon,extendPath:()=>re.extendPath,extendShape:()=>re.extendShape,getShapeClass:()=>re.getShapeClass,getTransform:()=>re.getTransform,initProps:()=>se.KZ,makeImage:()=>re.makeImage,makePath:()=>re.makePath,mergePath:()=>re.mergePath,registerShape:()=>re.registerShape,resizePath:()=>re.resizePath,updateProps:()=>se.D});var s={};n.r(s),n.d(s,{addCommas:()=>be.OD,capitalFirst:()=>be.ew,encodeHTML:()=>Me.F1,formatTime:()=>be.mr,formatTpl:()=>be.kF,getTextRect:()=>Se,getTooltipMarker:()=>be.A0,normalizeCssArray:()=>be.MY,toCamelCase:()=>be.zW,truncateText:()=>we.aF});var l={};n.r(l),n.d(l,{bind:()=>m.bind,clone:()=>m.clone,curry:()=>m.curry,defaults:()=>m.defaults,each:()=>m.each,extend:()=>m.extend,filter:()=>m.filter,indexOf:()=>m.indexOf,inherits:()=>m.inherits,isArray:()=>m.isArray,isFunction:()=>m.isFunction,isObject:()=>m.isObject,isString:()=>m.isString,map:()=>m.map,merge:()=>m.merge,reduce:()=>m.reduce});var u=n(62670),c=n(72255),h=n(65160),d=n(83072),p=n(50261),f=n(38439),g=n(67279),v=n(8982),y=n(58881),m=n(6836),x=n(6866),_=n(73474),b=n(77385),w=n(31690),S=n(46719),M=n(30057),I=n(34956),T=n(62951),C=n(89523),A=n(33666),k=n(82190),L=n(88458),P=n(73372);function D(e){return(0,b.Z)(null,e)}var O={isDimensionStacked:T.M,enableDataStack:T.BM,getStackedDimension:T.IR};function R(e,t){var n=t;t instanceof M.Z||(n=new M.Z(t));var i=w.aG(n);return i.setExtent(e[0],e[1]),w.Jk(i,n),i}function Z(e){m.mixin(e,S.W)}function z(e,t){return t=t||{},(0,A.Lr)(e,null,null,"normal"!==t.state)}var E=n(1420),B=n(70813),V=(n(92745),n(9065)),N=n(31117),H=n(32782);function F(e,t){return Math.abs(e-t)<1e-8}function G(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;o<e.length;o++){var a=e[o];i+=(0,H.Z)(r[0],r[1],a[0],a[1],t,n),r=a}var s=e[0];return F(r[0],s[0])&&F(r[1],s[1])||(i+=(0,H.Z)(r[0],r[1],s[0],s[1],t,n)),0!==i}var W=[];function Y(e,t){for(var n=0;n<e.length;n++)y.applyTransform(e[n],e[n],t)}function U(e,t,n,i){for(var r=0;r<e.length;r++){var o=e[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(y.min(t,t,o),y.max(n,n,o))}}var X=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),j=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},q=function(e){this.type="linestring",this.points=e},K=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return(0,V.__extends)(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,a=o&&o.length;a>n&&(e=r,n=a)}if(e)return function(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],a=e[r-1][1],s=0;s<r;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return(0,m.each)(r,(function(t){"polygon"===t.type?U(t.exterior,n,i,e):(0,m.each)(t.points,(function(t){U(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new N.Z(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(G(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(G(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new N.Z(e,t,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Y(c.exterior,s),(0,m.each)(c.interiors,(function(e){Y(e,s)}))):(0,m.each)(c.points,(function(e){Y(e,s)}))}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(X);!function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}(0,V.__extends)(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=v.identity(W),r=e;r&&!r.isGeoSVGGraphicRoot;)v.mul(i,r.getLocalTransform(),i),r=r.parent;return v.invert(i,i),y.applyTransform(n,n,i),n}}(X);function Q(e,t,n){for(var i=0;i<e.length;i++)e[i]=J(e[i],t[i],n)}function J(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function $(e,t){return e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var i=t.features;return m.each(i,(function(e){var t=e.geometry,i=t.encodeOffsets,r=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=J(r,i,n);break;case"Polygon":case"MultiLineString":Q(r,i,n);break;case"MultiPolygon":m.each(r,(function(e,t){return Q(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}(e),m.map(m.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new j(o[0],o.slice(1)));break;case"MultiPolygon":m.each(i.coordinates,(function(e){e[0]&&r.push(new j(e[0],e.slice(1)))}));break;case"LineString":r.push(new q([i.coordinates]));break;case"MultiLineString":r.push(new q(i.coordinates))}var a=new K(n[t||"name"],r,n.cp);return a.properties=n,a}))}var ee=n(96131),te=n(41974),ne=n(30950),ie=n(4142),re=n(59214),oe=n(55857),ae=n(31410),se=n(42933),le=n(33204),ue=n(7764),ce=n(62021),he=n(58733),de=n(74777),pe=n(75567),fe=n(44061),ge=n(14532),ve=n(19556),ye=n(46547),me=n(40692),xe=n(767),_e=n(5035),be=n(94485),we=n(67531);function Se(e,t,n,i,r,o,a,s){return new ae.ZP({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var Me=n(61962),Ie=n(53970),Te=n(23573),Ce=n(60957);function Ae(e){var t=c.Z.extend(e);return c.Z.registerClass(t),t}function ke(e){var t=h.Z.extend(e);return h.Z.registerClass(t),t}function Le(e){var t=d.Z.extend(e);return d.Z.registerClass(t),t}function Pe(e){var t=p.Z.extend(e);return p.Z.registerClass(t),t}var De=n(40716);(0,E.D)(De.T)},32687:function(e,t,n){n.d(t,{z:()=>fe});n(92745),n(9359),n(31526),n(22139);var i=n(83072),r=n(6836),o=(n(70104),n(24894)),a=n(2916),s=n(58881),l=n(88208),u=n(12115),c=n(61856),h=n(31117),d=n(62672),p=n(4142),f=n(46547),g=n(7764),v=n(40451).Z.CMD;function y(e,t){return Math.abs(e-t)<1e-5}function m(e){var t,n,i,r,o,a=e.data,s=e.len(),l=[],u=0,c=0,h=0,d=0;function p(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function f(e,n,i,r){y(e,i)&&y(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),h=Math.sin(e),d=Math.cos(n),p=Math.sin(n),f=c*o+i,g=h*a+r,v=d*o+i,y=p*a+r,m=o*l*u,x=a*l*u;t.push(f-m*h,g+x*c,v+m*p,y-x*d,v,y)}for(var m=0;m<s;){var x=a[m++],_=1===m;switch(_&&(h=u=a[m],d=c=a[m+1],x!==v.L&&x!==v.C&&x!==v.Q||(t=[h,d])),x){case v.M:u=h=a[m++],c=d=a[m++],p(h,d);break;case v.L:f(u,c,n=a[m++],i=a[m++]),u=n,c=i;break;case v.C:t.push(a[m++],a[m++],a[m++],a[m++],u=a[m++],c=a[m++]);break;case v.Q:n=a[m++],i=a[m++],r=a[m++],o=a[m++],t.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,c=o;break;case v.A:var b=a[m++],w=a[m++],S=a[m++],M=a[m++],I=a[m++],T=a[m++]+I;m+=1;var C=!a[m++];n=Math.cos(I)*S+b,i=Math.sin(I)*M+w,_?p(h=n,d=i):f(u,c,n,i),u=Math.cos(T)*S+b,c=Math.sin(T)*M+w;for(var A=(C?-1:1)*Math.PI/2,k=I;C?k>T:k<T;k+=A){g(k,C?Math.max(k+A,T):Math.min(k+A,T),b,w,S,M)}break;case v.R:h=u=a[m++],d=c=a[m++],n=h+a[m++],i=d+a[m++],p(n,d),f(n,d,n,i),f(n,i,h,i),f(h,i,h,d),f(h,d,n,d);break;case v.Z:t&&f(u,c,h,d),u=h,c=d}}return t&&t.length>2&&l.push(t),l}function x(e,t,n,i,r,a,s,l,u,c){if(y(e,n)&&y(t,i)&&y(r,s)&&y(a,l))u.push(s,l);else{var h=2/c,d=h*h,p=s-e,f=l-t,g=Math.sqrt(p*p+f*f);p/=g,f/=g;var v=n-e,m=i-t,_=r-s,b=a-l,w=v*v+m*m,S=_*_+b*b;if(w<d&&S<d)u.push(s,l);else{var M=p*v+f*m,I=-p*_-f*b;if(w-M*M<d&&M>=0&&S-I*I<d&&I>=0)u.push(s,l);else{var T=[],C=[];(0,o.Vz)(e,n,r,s,.5,T),(0,o.Vz)(t,i,a,l,.5,C),x(T[0],C[0],T[1],C[1],T[2],C[2],T[3],C[3],u,c),x(T[4],C[4],T[5],C[5],T[6],C[6],T[7],C[7],u,c)}}}}function _(e,t,n){var i=e[t],r=e[1-t],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function b(e,t,n){for(var i=e.r0,r=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*r,u=r-i,c=l>Math.abs(u),h=_([l,u],c?0:1,t),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var v={};c?(v.startAngle=o+d*p,v.endAngle=o+d*(p+1),v.r0=i+f*g,v.r=i+f*(g+1)):(v.startAngle=o+f*g,v.endAngle=o+f*(g+1),v.r0=i+d*p,v.r=i+d*(p+1)),v.clockwise=e.clockwise,v.cx=e.cx,v.cy=e.cy,n.push(v)}}function w(e,t,n,i){return e*i-n*t}function S(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,p=w(c,h,l,u);if(Math.abs(p)<1e-6)return null;var f=w(e-r,t-o,c,h)/p;return f<0||f>1?null:new d.Z(f*l+e,f*u+t)}function M(e,t,n){var i=new d.Z;d.Z.sub(i,n,t),i.normalize();var r=new d.Z;return d.Z.sub(r,e,t),r.dot(i)}function I(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function T(e){var t=e.points,n=[],i=[];(0,c.zk)(t,n,i);var r=new h.Z(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new d.Z,p=new d.Z;return o>a?(u.x=p.x=s+o/2,u.y=l,p.y=l+a):(u.y=p.y=l+a/2,u.x=s,p.x=s+o),function(e,t,n){for(var i=e.length,r=[],o=0;o<i;o++){var a=e[o],s=e[(o+1)%i],l=S(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:M(l,t,n),pt:l,idx:o})}if(r.length<2)return[{points:e},{points:e}];r.sort((function(e,t){return e.projPt-t.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(o=u.idx+1;o<=c.idx;o++)I(f,e[o].slice());for(I(f,p),I(f,d),o=c.idx+1;o<=u.idx+i;o++)I(g,e[o%i].slice());return I(g,d),I(g,p),[{points:f},{points:g}]}(t,u,p)}function C(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);C(e,o[0],r,i),C(e,o[1],n-r,i)}return i}function A(e,t){var n,i=[],o=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var i=e.width,r=e.height,o=i>r,a=_([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=e[s]/a.length,d=0;d<a.length;d++)for(var p=e[l]/a[d],f=0;f<a[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=e.x,g.y+=e.y,n.push(g)}}(o,t,i),n=f.Z;break;case"sector":b(o,t,i),n=g.C;break;case"circle":b({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},t,i),n=g.C;break;default:var a=e.getComputedTransform(),s=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,u=(0,r.map)(function(e,t){var n=m(e),i=[];t=t||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++];x(s,l,c,h,d,p,f,g,a,t),s=f,l=g}i.push(a)}return i}(e.getUpdatedPathProxy(),s),(function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)})),h=u.length;if(0===h)C(T,{points:u[0]},t,i);else if(h===t)for(var d=0;d<h;d++)i.push({points:u[d]});else{var v=0,y=(0,r.map)(u,(function(e){var t=[],n=[];(0,c.zk)(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return v+=i,{poly:e,area:i}}));y.sort((function(e,t){return t.area-e.area}));var w=t;for(d=0;d<h;d++){var S=y[d];if(w<=0)break;var M=d===h-1?w:Math.ceil(S.area/v*t);M<0||(C(T,{points:S.poly},M,i),w-=M)}}n=p.Z}if(!n)return function(e,t){for(var n=[],i=0;i<t;i++)n.push((0,l.U5)(e));return n}(e,t);var I,A,k=[];for(d=0;d<i.length;d++){var L=new n;L.setShape(i[d]),I=e,(A=L).setStyle(I.style),A.z=I.z,A.z2=I.z2,A.zlevel=I.zlevel,k.push(L)}return k}function k(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],a=[],s=n<i?e:t,l=Math.min(n,i),u=Math.abs(i-n)/6,c=(l-2)/6,h=Math.ceil(u/c)+1,d=[s[0],s[1]],p=u,f=2;f<l;){var g=s[f-2],v=s[f-1],y=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++];if(p<=0)d.push(y,m,x,_,b,w);else{for(var S=Math.min(p,h-1)+1,M=1;M<=S;M++){var I=M/S;(0,o.Vz)(g,y,x,b,I,r),(0,o.Vz)(v,m,_,w,I,a),g=r[3],v=a[3],d.push(r[1],a[1],r[2],a[2],g,v),y=r[5],m=a[5],x=r[6],_=a[6]}p-=S-1}}return s===e?[d,t]:[e,d]}function L(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],o=[],a=0;a<t.length;)o[a++]=i,o[a++]=r;return o}function P(e){for(var t=0,n=0,i=0,r=e.length,o=0,a=r-2;o<r;a=o,o+=2){var s=e[a],l=e[a+1],u=e[o],c=e[o+1],h=s*c-u*l;t+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function D(e,t,n,i){for(var r=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=e[p]-n[0],g=e[p+1]-n[1],v=t[d]-i[0]-f,y=t[d+1]-i[1]-g;h+=v*v+y*y}h<o&&(o=h,a=u)}return a}function O(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function R(e){return e.__isCombineMorphing}var Z="__mOriginal_";function z(e,t,n){var i=Z+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):r.apply(this,t),a&&a.apply(this,t),e}}function E(e,t){var n=Z+t;e[n]&&(e[t]=e[n],e[n]=null)}function B(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=t[0]*o+t[2]*a+t[4],i[r++]=t[1]*o+t[3]*a+t[5]}}function V(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=function(e,t){for(var n,i,r,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,h=void 0;l?u?(i=c=(n=k(l,u))[0],r=h=n[1]):(h=L(r||l,l),c=l):(c=L(i||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(m(n),m(i)),o=r[0],a=r[1],l=e.getComputedTransform(),u=t.getComputedTransform();l&&B(o,l),u&&B(a,u),z(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var c=function(e,t,n,i){for(var r,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=P(s),c=P(l);null==r&&(r=u[2]<0!=c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],v=s.length;r&&(s=O(s));for(var y=6*D(s,l,u,c),m=v-2,x=0;x<m;x+=2){var _=(y+x)%m+2;h[x+2]=s[_]-u[0],h[x+3]=s[_+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],n>0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),I=0;for(x=0;x<s.length;x+=2){var T=h[x],C=h[x+1],A=l[x]-c[0],k=l[x+1]-c[1],L=A*M-k*S,R=A*S+k*M;g[x]=L,g[x+1]=R;var Z=L-T,z=R-C;I+=Z*Z+z*z}if(I<f){f=I,p=w;for(var E=0;E<g.length;E++)d[E]=g[E]}}else for(var B=0;B<v;B+=2)d[B]=l[B]-c[0],d[B+1]=l[B+1]-c[1];o.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return o}(o,a,10,Math.PI),h=[];z(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],o=0;o<c.length;o++){var a=c[o],l=a.from,u=a.to,d=a.rotation*n,p=a.fromCp,f=a.toCp,g=Math.sin(d),v=Math.cos(d);(0,s.lerp)(r,p,f,n);for(var y=0;y<l.length;y+=2){var m=l[y],x=l[y+1],_=m*i+(M=u[y])*n,b=x*i+(I=u[y+1])*n;h[y]=_*v-b*g+r[0],h[y+1]=_*g+b*v+r[1]}var w=h[0],S=h[1];e.moveTo(w,S);for(y=2;y<l.length;){var M=h[y++],I=h[y++],T=h[y++],C=h[y++],A=h[y++],k=h[y++];w===M&&S===I&&T===A&&C===k?e.lineTo(A,k):e.bezierCurveTo(M,I,T,C,A,k),w=A,S=k}}}})}function N(e,t,n){if(!e||!t)return t;var i=n.done,o=n.during;return V(e,t),t.__morphT=0,t.animateTo({__morphT:1},(0,r.defaults)({during:function(e){t.dirtyShape(),o&&o(e)},done:function(){E(t,"buildPath"),E(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),i&&i()}},n)),t}function H(e,t,n,i,r,o){e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(e&l)>0&&(u=1),(t&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(e=l-1-e,t=l-1-t),a=e,e=t,t=a)}return s}function F(e){var t=1/0,n=1/0,i=-1/0,o=-1/0,a=(0,r.map)(e,(function(e){var r=e.getBoundingRect(),a=e.getComputedTransform(),s=r.x+r.width/2+(a?a[4]:0),l=r.y+r.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),o=Math.max(l,o),[s,l]}));return(0,r.map)(a,(function(r,a){return{cp:r,z:H(r[0],r[1],t,n,i,o),path:e[a]}})).sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function G(e){return A(e.path,e.count)}var W=n(42933);function Y(e){return(0,r.isArray)(e[0])}function U(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var X={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=(0,l.U5)(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function j(e,t,n,i,o,s){if(e.length&&t.length){var c=(0,W.ke)("update",i,o);if(c&&c.duration>0){var h,d,p=i.getModel("universalTransition").get("delay"),f=Object.assign({setToFinal:!0},c);Y(e)&&(h=e,d=t),Y(t)&&(h=t,d=e);for(var g=h?h===e:e.length>t.length,v=h?U(d,h):U(g?t:e,[g?e:t]),y=0,m=0;m<v.length;m++)y+=v[m].many.length;var x=0;for(m=0;m<v.length;m++)_(v[m],g,x,y),x+=v[m].many.length}}function _(e,t,i,o,c){var h=e.many,d=e.one;if(1!==h.length||c)for(var g=(0,r.defaults)({dividePath:X[n],individualDelay:p&&function(e,t,n,r){return p(e+i,o)}},f),v=t?function(e,t,n){var i=[];!function e(t){for(var n=0;n<t.length;n++){var r=t[n];R(r)?e(r.childrenRef()):r instanceof a.ZP&&i.push(r)}}(e);var o=i.length;if(!o)return{fromIndividuals:[],toIndividuals:[],count:0};var s=(n.dividePath||G)({path:t,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=F(i),s=F(s);for(var l=n.done,c=n.during,h=n.individualDelay,d=new u.ZP,p=0;p<o;p++){var f=i[p],g=s[p];g.parent=t,g.copyTransform(d),h||V(f,g)}function v(e){for(var t=0;t<s.length;t++)s[t].addSelfToZr(e)}function y(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,E(t,"addSelfToZr"),E(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return s},z(t,"addSelfToZr",{after:function(e){v(e)}}),z(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<s.length;t++)s[t].removeSelfFromZr(e)}});var m=s.length;if(h){var x=m,_=function(){0==--x&&(y(),l&&l())};for(p=0;p<m;p++){var b=h?(0,r.defaults)({delay:(n.delay||0)+h(p,m,i[p],s[p]),done:_},n):n;N(i[p],s[p],b)}}else t.__morphT=0,t.animateTo({__morphT:1},(0,r.defaults)({during:function(e){for(var n=0;n<m;n++){var i=s[n];i.__morphT=t.__morphT,i.dirtyShape()}c&&c(e)},done:function(){y();for(var t=0;t<e.length;t++)E(e[t],"updateTransform");l&&l()}},n));return t.__zr&&v(t.__zr),{fromIndividuals:i,toIndividuals:s,count:m}}(h,d,g):function(e,t,n){var i=t.length,o=[],s=n.dividePath||G;if(R(e)){!function e(t){for(var n=0;n<t.length;n++){var i=t[n];R(i)?e(i.childrenRef()):i instanceof a.ZP&&o.push(i)}}(e.childrenRef());var u=o.length;if(u<i)for(var c=0,h=u;h<i;h++)o.push((0,l.U5)(o[c++%u]));o.length=i}else{o=s({path:e,count:i});var d=e.getComputedTransform();for(h=0;h<o.length;h++)o[h].setLocalTransform(d);if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}o=F(o),t=F(t);var p=n.individualDelay;for(h=0;h<i;h++){var f=p?(0,r.defaults)({delay:(n.delay||0)+p(h,i,o[h],t[h])},n):n;N(o[h],t[h],f)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}(d,h,g),y=v.fromIndividuals,m=v.toIndividuals,x=y.length,b=0;b<x;b++){w=p?(0,r.defaults)({delay:p(b,x)},f):f;s(y[b],m[b],t?h[b]:e.one,t?e.one:h[b],w)}else{var w,S=t?h[0]:d,M=t?d:h[0];if(R(S))_({many:[S],one:M},!0,i,o,!0);else N(S,M,w=p?(0,r.defaults)({delay:p(i,o)},f):f),s(S,M,S,M,w)}}}function q(e){if(!e)return[];if((0,r.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(q(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof a.ZP&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var K=n(8942),Q=n(31936),J=(n(2118),n(335)),$=1e4,ee=0,te=1,ne=2,ie=(0,Q.Yf)();function re(e,t,n,i){var r=function(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var r=e.getDimensionInfo(n[i]);if(r&&0===r.otherDims[t])return n[i]}}(e,i?"itemChildGroupId":"itemGroupId");if(r){var o=function(e,t,n){var i=e.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=e.get(i.name,t);return r&&r.categories[o]||o+""}}(e,t,r);return o}var a=e.getRawDataItem(t),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:n||e.getId(t)}function oe(e){var t=[];return(0,r.each)(e,(function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>$))for(var r=n.getIndices(),o=0;o<r.length;o++)t.push({data:n,groupId:re(n,o,i,!1),childGroupId:re(n,o,i,!0),divide:e.divide,dataIndex:o})})),t}function ae(e,t,n){e.traverse((function(e){e instanceof a.ZP&&(0,W.KZ)(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function se(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function le(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function ue(e,t,n){var i=oe(e),o=oe(t);function s(e,t,n,i,o){(n||e)&&t.animateFrom({style:n&&n!==e?(0,r.extend)((0,r.extend)({},n.style),e.style):e.style},o)}var l=!1,u=ee,c=(0,r.createHashMap)(),h=(0,r.createHashMap)();i.forEach((function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&h.set(e.childGroupId,!0)}));for(var d=0;d<o.length;d++){var p=o[d].groupId;if(h.get(p)){u=te;break}var f=o[d].childGroupId;if(f&&c.get(f)){u=ne;break}}function g(e,t){return function(n){var i=n.data,r=n.dataIndex;return t?i.getId(r):e?u===te?n.childGroupId:n.groupId:u===ne?n.childGroupId:n.groupId}}var v=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,o),y={};if(!v)for(d=0;d<o.length;d++){var m=o[d],x=m.data.getItemGraphicEl(m.dataIndex);x&&(y[x.id]=!0)}function _(e,t){var n=i[t],r=o[e],a=r.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=r.data.getItemGraphicEl(r.dataIndex);u!==c?u&&y[u.id]||c&&(le(c),u?(le(u),se(u),l=!0,j(q(u),q(c),r.divide,a,e,s)):ae(c,a,e)):c&&function(e,t,n){var i=(0,W.ke)("update",n,t);i&&e.traverse((function(e){if(e instanceof J.ZP){var t=(0,W._W)(e);t&&e.animateFrom({style:t},i)}}))}(c,r.dataIndex,a)}new K.Z(i,o,g(!0,v),g(!1,v),null,"multiple").update(_).updateManyToOne((function(e,t){var n=o[e],a=n.data,u=a.hostModel,c=a.getItemGraphicEl(n.dataIndex),h=(0,r.filter)((0,r.map)(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==c&&!y[e.id]}));c&&(le(c),h.length?((0,r.each)(h,(function(e){le(e),se(e)})),l=!0,j(q(h),q(c),n.divide,u,e,s)):ae(c,u,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!y[a.id]){var u=(0,r.filter)((0,r.map)(e,(function(e){return o[e].data.getItemGraphicEl(o[e].dataIndex)})),(function(e){return e&&e!==a})),c=o[e[0]].data.hostModel;u.length&&((0,r.each)(u,(function(e){return le(e)})),a?(le(a),se(a),l=!0,j(q(a),q(u),n.divide,c,e[0],s)):(0,r.each)(u,(function(t){return ae(t,c,e[0])})))}})).updateManyToMany((function(e,t){new K.Z(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return o[e].data.getId(o[e].dataIndex)})).update((function(n,i){_(e[n],t[i])})).execute()})).execute(),l&&(0,r.each)(t,(function(e){var t=e.data.hostModel,i=t&&n.getViewOfSeriesModel(t),r=(0,W.ke)("update",t,0);i&&t.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse((function(e){e instanceof a.ZP&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)}))}))}function ce(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function he(e){return(0,r.isArray)(e)?e.sort().join(","):e}function de(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function pe(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}function fe(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){(0,r.each)((0,Q.kF)(n.seriesTransition),(function(e){(0,r.each)((0,Q.kF)(e.to),(function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][i.V]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var o=ie(t);if(o.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)(0,r.each)((0,Q.kF)(a),(function(e){!function(e,t,n,i){var o=[],a=[];(0,r.each)((0,Q.kF)(e.from),(function(e){var n=pe(t.oldSeries,e);n>=0&&o.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:de(t.oldData[n]),groupIdDim:e.dimension})})),(0,r.each)((0,Q.kF)(e.to),(function(e){var i=pe(n.updatedSeries,e);if(i>=0){var r=n.updatedSeries[i].getData();a.push({dataGroupId:t.oldDataGroupIds[i],data:r,divide:de(r),groupIdDim:e.dimension})}})),o.length>0&&a.length>0&&ue(o,a,i)}(e,o,n,t)}));else{var s=function(e,t){var n=(0,r.createHashMap)(),i=(0,r.createHashMap)(),o=(0,r.createHashMap)();return(0,r.each)(e.oldSeries,(function(t,n){var a=e.oldDataGroupIds[n],s=e.oldData[n],l=ce(t),u=he(l);i.set(u,{dataGroupId:a,data:s}),(0,r.isArray)(l)&&(0,r.each)(l,(function(e){o.set(e,{key:u,dataGroupId:a,data:s})}))})),(0,r.each)(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),a=e.getData(),s=ce(e),l=he(s),u=i.get(l);if(u)n.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:de(u.data),data:u.data}],newSeries:[{dataGroupId:t,divide:de(a),data:a}]});else if((0,r.isArray)(s)){var c=[];(0,r.each)(s,(function(e){var t=i.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:de(t.data),data:t.data})})),c.length&&n.set(l,{oldSeries:c,newSeries:[{dataGroupId:t,data:a,divide:de(a)}]})}else{var h=o.get(s);if(h){var d=n.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:de(h.data)}],newSeries:[]},n.set(h.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:de(a)})}}}})),n}(o,n);(0,r.each)(s.keys(),(function(e){var n=s.get(e);ue(n.oldSeries,n.newSeries,t)}))}(0,r.each)(n.updatedSeries,(function(e){e[i.V]&&(e[i.V]=!1)}))}for(var l=e.getSeries(),u=o.oldSeries=[],c=o.oldDataGroupIds=[],h=o.oldData=[],d=0;d<l.length;d++){var p=l[d].getData();p.count()<$&&(u.push(l[d]),c.push(l[d].get("dataGroupId")),h.push(p))}}))}},33755:function(e,t,n){n.d(t,{N:()=>J});var i=n(6836),r=n(66130),o=n(64838),a=n(9065),s=n(83072),l=n(77385),u=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,a.__extends)(t,e),t.prototype.getInitialData=function(e,t){return(0,l.Z)(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var o=r.clampData(e),a=r.dataToPoint(o);if(n)(0,i.each)(r.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),r=e.getTickModel().get("alignWithLabel"),s=o[n],l="x1"===t[n]||"y1"===t[n];if(l&&!r&&(s+=1),i.length<2)return;if(2===i.length)return void(a[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),a[n]=e.toGlobalCoord(c)}}));else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;a[c]+=l+u/2}return a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(s.Z);s.Z.registerClass(u);const c=u;var h=n(74440),d=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,a.__extends)(t,e),t.prototype.getInitialData=function(){return(0,l.Z)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=(0,h.ZL)(c.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(c);const p=d;n(92745),n(22139);var f=n(2916),g=n(74777),v=n(59214),y=n(42933),m=n(46547),x=n(7764),_=n(89523),b=n(73372),w=n(33666),S=n(73474),M=n(67116),I=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};const T=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return(0,a.__extends)(t,e),t.prototype.getDefaultShape=function(){return new I},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);d?(e.moveTo(p*r+n,f*r+i),e.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):e.moveTo(p*o+n,f*o+i),e.arc(n,i,o,l,u,!c),e.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&e.arc(n,i,r,u,l,c)},t}(f.ZP);var C=n(50261),A=n(4012),k=n(45398),L=n(559);function P(e,t,n){return t*Math.sin(e)*(n?-1:1)}function D(e,t,n){return t*Math.cos(e)*(n?1:-1)}var O=Math.max,R=Math.min;var Z=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return(0,a.__extends)(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){(0,v.traverseElements)(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,h=function(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();0;if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}(e,l);h&&this._enableRealtimeSort(h,a,n);var d=e.get("clip",!0)||h,p=function(e,t){var n=e.getArea&&e.getArea();if((0,A.H)(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=e.get("roundCap",!0),v=e.get("showBackground",!0),_=e.getModel("backgroundStyle"),b=_.get("borderRadius")||0,S=[],M=this._backgroundEls,I=i&&i.isInitSort,T=i&&"changeAxisOrder"===i.type;function C(e){var t=G[l.type](a,e),n=function(e,t,n){var i="polar"===e.type?x.C:m.Z;return new i({shape:K(t,n,e),silent:!0,z2:0})}(l,r,t);return n.useStyle(_.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",b):n.setShape("cornerRadius",b),S[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=G[l.type](a,t,n);if(v&&C(t),a.hasValue(t)&&F[l.type](i)){var s=!1;d&&(s=z[l.type](p,i));var g=E[l.type](e,a,t,i,r,c,u.model,!1,f);h&&(g.forceLabelAnimation=!0),Y(g,a,t,n,i,e,r,"polar"===l.type),I?g.attr({shape:i}):h?B(h,c,g,i,t,r,!1,!1):(0,y.KZ)(g,{shape:i},e,t),a.setItemGraphicEl(t,g),o.add(g),g.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),g=G[l.type](a,t,i);if(v){var m=void 0;0===M.length?m=C(n):((m=M[n]).useStyle(_.getItemStyle()),"cartesian2d"===l.type?m.setShape("r",b):m.setShape("cornerRadius",b),S[t]=m);var x=G[l.type](a,t),A=K(r,x,l);(0,y.D)(m,{shape:A},c,t)}var k=s.getItemGraphicEl(n);if(a.hasValue(t)&&F[l.type](g)){var L=!1;if(d&&(L=z[l.type](p,g))&&o.remove(k),k?(0,y.Zi)(k):k=E[l.type](e,a,t,g,r,c,u.model,!!k,f),h&&(k.forceLabelAnimation=!0),T){var P=k.getTextContent();if(P){var D=(0,w.qA)(P);null!=D.prevValue&&(D.prevValue=D.value)}}else Y(k,a,t,i,g,e,r,"polar"===l.type);I?k.attr({shape:g}):h?B(h,c,k,g,t,r,!0,T):(0,y.D)(k,{shape:g},e,t,null),a.setItemGraphicEl(t,k),k.ignore=L,o.add(k)}else o.remove(k)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&(0,y.XD)(n,e,t)})).execute();var k=this._backgroundGroup||(this._backgroundGroup=new g.Z);k.removeAll();for(var L=0;L<S.length;++L)k.add(S[L]);o.add(k),this._backgroundEls=S,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),j(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),j(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&(0,M.lQ)(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:(0,i.map)(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){(0,y.XD)(t,e,(0,_.A)(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(C.Z),z={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=O(t.x,e.x),s=R(t.x+t.width,r),l=O(t.y,e.y),u=R(t.y+t.height,o),c=s<a,h=u<l;return t.x=c&&a>r?s:a,t.y=h&&l>o?u:l,t.width=c?0:s-a,t.height=h?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=R(t.r,e.r),o=O(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},E={cartesian2d:function(e,t,n,r,o,a,s,l,u){var c=new m.Z({shape:(0,i.extend)({},r),z2:1});(c.__dataIndex=n,c.name="item",a)&&(c.shape[o?"height":"width"]=0);return c},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?T:x.C,c=new u({shape:i,z2:1});c.name="item";var h,d,p=W(r);if(c.calculateTextPosition=(h=p,d=({isRoundCap:u===T}||{}).isRoundCap,function(e,t,n){var i=t.position;if(!i||i instanceof Array)return(0,L.wI)(e,t,n);var r=h(i),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,p=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,y=d?Math.abs(u-c)/2:0,m=Math.cos,x=Math.sin,_=s+u*m(f),b=l+u*x(f),w="left",S="top";switch(r){case"startArc":_=s+(c-o)*m(v),b=l+(c-o)*x(v),w="center",S="top";break;case"insideStartArc":_=s+(c+o)*m(v),b=l+(c+o)*x(v),w="center",S="bottom";break;case"startAngle":_=s+p*m(f)+P(f,o+y,!1),b=l+p*x(f)+D(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":_=s+p*m(f)+P(f,-o+y,!1),b=l+p*x(f)+D(f,-o+y,!1),w="left",S="middle";break;case"middle":_=s+p*m(v),b=l+p*x(v),w="center",S="middle";break;case"endArc":_=s+(u+o)*m(v),b=l+(u+o)*x(v),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*m(v),b=l+(u-o)*x(v),w="center",S="top";break;case"endAngle":_=s+p*m(g)+P(g,o+y,!0),b=l+p*x(g)+D(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":_=s+p*m(g)+P(g,-o+y,!0),b=l+p*x(g)+D(g,-o+y,!0),w="right",S="middle";break;default:return(0,L.wI)(e,t,n)}return(e=e||{}).x=_,e.y=b,e.align=w,e.verticalAlign=S,e}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?y.D:y.KZ)(c,{shape:g},o)}return c}};function B(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?y.D:y.KZ)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?y.D:y.KZ)(n,{shape:u},c,r)}function V(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var N=["x","y","width","height"],H=["cx","cy","r","startAngle","endAngle"],F={cartesian2d:function(e){return!V(e,N)},polar:function(e){return!V(e,H)}},G={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function W(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function Y(e,t,n,r,o,a,s,l){var u=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var c=e.shape,h=function(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;(0,i.isArray)(r)||(r=[r,r,r,r]);var o=Math.abs(t.r||0-t.r0||0);return{cornerRadius:(0,i.map)(r,(function(e){return(0,L.GM)(e,o)}))}}(r.getModel("itemStyle"),c,!0);(0,i.extend)(c,h),e.setShape(c)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(u);var p=r.getShallow("cursor");p&&e.attr("cursor",p);var f=l?s?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":s?o.height>=0?"bottom":"top":o.width>=0?"right":"left",g=(0,w.k3)(r);(0,w.ni)(e,g,{labelFetcher:a,labelDataIndex:n,defaultText:(0,k.H)(a.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var v=e.getTextContent();if(l&&v){var y=r.get(["label","position"]);e.textConfig.inside="middle"===y||null,function(e,t,n,r){if((0,i.isNumber)(r))e.setTextConfig({rotation:r});else if((0,i.isArray)(t))e.setTextConfig({rotation:0});else{var o,a=e.shape,s=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,u=(s+l)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=u;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=l;break;default:return void e.setTextConfig({rotation:0})}var h=1.5*Math.PI-o;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),e.setTextConfig({rotation:h})}}(e,"outside"===y?f:y,W(s),r.get(["label","rotate"]))}(0,w.pe)(v,g,a.getRawValue(n),(function(e){return(0,k.O)(t,e)}));var m=r.getModel(["emphasis"]);(0,b.k5)(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),(0,b.WO)(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(o)&&(e.style.fill="none",e.style.stroke="none",(0,i.each)(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var U=function(){},X=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return(0,a.__extends)(t,e),t.prototype.getDefaultShape=function(){return new U},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],e.rect(o[0],o[1],a[0],a[1])},t}(f.ZP);function j(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new X({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var h=new X({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,t.add(h),h.useStyle(r.getVisual("style")),h.style.stroke=null,(0,_.A)(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",q),h.on("mousemove",q)),n&&n.push(h)}var q=(0,S.P2)((function(e){var t=function(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,h=o.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,e.offsetX,e.offsetY);(0,_.A)(this).dataIndex=t>=0?t:null}),30,!1);function K(e,t,n){if((0,A.H)(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}var o=t;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}const Q=Z;function J(e){e.registerChartView(Q),e.registerSeriesModel(p),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,i.curry(r.bK,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,r.Bk)("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,o.Z)("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}},86596:function(e,t,n){n.d(t,{N:()=>De});var i=n(9065),r=n(77385),o=n(31936),a=n(83072),s={color:"fill",borderColor:"stroke"},l={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},u=(0,o.Yf)(),c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.__extends)(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return(0,r.Z)(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=u(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(a.Z);const h=c;n(92745),n(22139);var d=n(6836),p=n(2916),f=n(59214),g=n(40692),v=n(31410),y=n(74777),m=n(73372),x=n(33666),_=n(45398),b=n(66130),w=n(8942),S=n(50261),M=n(67116);function I(e,t){return t=t||[0,0],d.map(["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function T(e,t){return t=t||[0,0],d.map([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function C(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function A(e,t){return t=t||[0,0],d.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=t[i],a=e[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}var k=n(335);function L(e,t){t&&(t.font=t.textFont||t.font,(0,d.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),(0,d.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),(0,d.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),(0,d.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),(0,d.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),(0,d.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),(0,d.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),(0,d.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),(0,d.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),(0,d.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),(0,d.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),(0,d.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),(0,d.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),(0,d.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),(0,d.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function P(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";D(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,(0,d.each)(t.rich,(function(e){D(e,e)})),i}function D(e,t){t&&((0,d.hasOwn)(t,"fill")&&(e.textFill=t.fill),(0,d.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),(0,d.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),(0,d.hasOwn)(t,"font")&&(e.font=t.font),(0,d.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),(0,d.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),(0,d.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),(0,d.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),(0,d.hasOwn)(t,"align")&&(e.textAlign=t.align),(0,d.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),(0,d.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),(0,d.hasOwn)(t,"width")&&(e.textWidth=t.width),(0,d.hasOwn)(t,"height")&&(e.textHeight=t.height),(0,d.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),(0,d.hasOwn)(t,"padding")&&(e.textPadding=t.padding),(0,d.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),(0,d.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),(0,d.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),(0,d.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),(0,d.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),(0,d.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),(0,d.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),(0,d.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),(0,d.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),(0,d.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),(0,d.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var O=n(2118),R=n(20890),Z=n(72879),z=n(42933),E=n(12115),B={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},V=(0,d.keys)(B),N=((0,d.reduce)(E.dN,(function(e,t){return e[t]=1,e}),{}),E.dN.join(", "),["","style","shape","extra"]),H=(0,o.Yf)();function F(e,t,n,i,r){var o=e+"Animation",a=(0,z.ke)(e,i,r)||{},s=H(t).userDuring;return a.duration>0&&(a.during=s?(0,d.bind)(j,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),(0,d.extend)(a,n[o]),a}function G(e,t,n,i){var r=(i=i||{}).dataIndex,a=i.isInit,s=i.clearStyle,l=n.isAnimationEnabled(),u=H(e),c=t.style;u.userDuring=t.during;var h={},f={};if(function(e,t,n){for(var i=0;i<V.length;i++){var r=V[i],o=B[r],a=t[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<E.dN.length;i++){var s=E.dN[i];null!=t[s]&&(n[s]=t[s])}}(0,t,f),K("shape",t,f),K("extra",t,f),!a&&l&&(function(e,t,n){for(var i=t.transition,r=Y(i)?E.dN:(0,o.kF)(i||[]),a=0;a<r.length;a++){var s=r[a];if("style"!==s&&"shape"!==s&&"extra"!==s){var l=e[s];0,n[s]=l}}}(e,t,h),q("shape",e,t,h),q("extra",e,t,h),function(e,t,n,i){if(!n)return;var r,a=e.style;if(a){var s=n.transition,l=t.transition;if(s&&!Y(s)){var u=(0,o.kF)(s);!r&&(r=i.style={});for(var c=0;c<u.length;c++){var h=a[v=u[c]];r[v]=h}}else if(e.getAnimationStyleProps&&(Y(l)||Y(s)||(0,d.indexOf)(l,"style")>=0)){var p=e.getAnimationStyleProps(),f=p?p.style:null;if(f){!r&&(r=i.style={});var g=(0,d.keys)(n);for(c=0;c<g.length;c++){var v;if(f[v=g[c]]){h=a[v];r[v]=h}}}}}}(e,t,c,h)),f.style=c,function(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}(e,f,s),function(e,t){(0,d.hasOwn)(t,"silent")&&(e.silent=t.silent),(0,d.hasOwn)(t,"ignore")&&(e.ignore=t.ignore),e instanceof k.ZP&&(0,d.hasOwn)(t,"invisible")&&(e.invisible=t.invisible);e instanceof p.ZP&&(0,d.hasOwn)(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),l)if(a){var g={};(0,d.each)(N,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),(0,d.extend)(e?g[e]:g,n.enterFrom))}));var v=F("enter",e,t,n,r);v.duration>0&&e.animateFrom(g,v)}else!function(e,t,n,i,r){if(r){var o=F("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}(e,t,r||0,n,h);!function(e,t){for(var n=H(e).leaveToProps,i=0;i<N.length;i++){var r=N[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=H(e).leaveToProps={}),r&&(n[r]=n[r]||{}),(0,d.extend)(r?n[r]:n,o.leaveTo))}}(e,t),c?e.dirty():e.markRedraw()}function W(e,t,n,i){if(e){var r=e.parent,o=H(e).leaveToProps;if(o){var a=F("update",e,t,n,0);a.done=function(){r.remove(e),i&&i()},e.animateTo(o,a)}else r.remove(e),i&&i()}}function Y(e){return"all"===e}var U={},X={setTransform:function(e,t){return U.el[e]=t,this},getTransform:function(e){return U.el[e]},setShape:function(e,t){var n=U.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=U.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=U.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=U.el.style;if(t)return t[e]},setExtra:function(e,t){return(U.el.extra||(U.el.extra={}))[e]=t,this},getExtra:function(e){var t=U.el.extra;if(t)return t[e]}};function j(){var e=this,t=e.el;if(t){var n=H(t).userDuring,i=e.userDuring;n===i?(U.el=t,i(X)):e.el=e.userDuring=null}}function q(e,t,n,i){var r=n[e];if(r){var a,s=t[e];if(s){var l=n.transition,u=r.transition;if(u)if(!a&&(a=i[e]={}),Y(u))(0,d.extend)(a,s);else for(var c=(0,o.kF)(u),h=0;h<c.length;h++){var p=s[g=c[h]];a[g]=p}else if(Y(l)||(0,d.indexOf)(l,e)>=0){!a&&(a=i[e]={});var f=(0,d.keys)(s);for(h=0;h<f.length;h++){var g;p=s[g=f[h]];Q(r[g],p)&&(a[g]=p)}}}}}function K(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=(0,d.keys)(i),a=0;a<o.length;a++){var s=o[a];r[s]=(0,Z.V)(i[s])}}function Q(e,t){return(0,d.isArrayLike)(e)?e!==t:null!=e&&isFinite(e)}var J=(0,o.Yf)(),$=["percent","easing","shape","style","extra"];function ee(e,t,n){if(n.isAnimationEnabled()&&t)if((0,d.isArray)(t))(0,d.each)(t,(function(t){ee(e,t,n)}));else{var i=t.keyframes,r=t.duration;if(n&&null==r){var o=(0,z.ke)("enter",n,0);r=o&&o.duration}if(i&&r){var a=J(e);(0,d.each)(N,(function(n){if(!n||e[n]){var o;i.sort((function(e,t){return e.percent-t.percent})),(0,d.each)(i,(function(i){var s=e.animators,l=n?i[n]:i;if(l){var u=(0,d.keys)(l);if(n||(u=(0,d.filter)(u,(function(e){return(0,d.indexOf)($,e)<0}))),u.length){o||((o=e.animate(n,t.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;(0,d.each)(u,(function(t){h[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(t.delay||0).duration(r).start(t.easing)}}))}}}var te="emphasis",ne="normal",ie="blur",re="select",oe=[ne,te,ie,re],ae={normal:["itemStyle"],emphasis:[te,"itemStyle"],blur:[ie,"itemStyle"],select:[re,"itemStyle"]},se={normal:["label"],emphasis:[te,"label"],blur:[ie,"label"],select:[re,"label"]},le=["x","y"],ue={normal:{},emphasis:{},blur:{},select:{}},ce={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:d.bind(I,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:d.bind(T,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:(0,d.bind)(C,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:d.bind(A,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function he(e){return e instanceof p.ZP}function de(e){return e instanceof k.ZP}var pe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.__extends)(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._data,o=e.getData(),a=this.group,s=xe(e,o,t,n);r||a.removeAll(),o.diff(r).add((function(t){be(n,null,t,s(t,i),e,a,o)})).remove((function(t){var n=r.getItemGraphicEl(t);n&&W(n,u(n).option,e)})).update((function(t,l){var u=r.getItemGraphicEl(l);be(n,u,t,s(t,i),e,a,o)})).execute();var l=e.get("clip",!0)?(0,M.lQ)(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),a=xe(t,o,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=be(null,null,u,a(u,r),t,this.group,o);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){f.traverseElements(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},t.type="custom",t}(S.Z);const fe=pe;function ge(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=Pe(i);t=f.makePath(o,null,r,i.layout||"center"),u(t).customPathData=o}else if("image"===n)t=new g.ZP({}),u(t).customImagePath=e.style.image;else if("text"===n)t=new v.ZP({});else if("group"===n)t=new y.Z;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=f.getShapeClass(n);if(!a){0,(0,O._y)("")}t=new a}return u(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function ve(e,t,n,i,r,o,a){!function(e){e.stopAnimation("keyframe"),e.attr(J(e))}(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=le);var l=i&&i.style;if(l){if("text"===t.type){var u=l;(0,d.hasOwn)(u,"textFill")&&(u.fill=u.textFill),(0,d.hasOwn)(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=he(t)?l.decal:null;e&&h&&(h.dirty=!0,c=(0,R.I)(h,e)),l.__decalPattern=c}de(t)&&(l&&(c=l.__decalPattern)&&(l.decal=c));G(t,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),ee(t,i.keyframeAnimation,o)}function ye(e,t,n,i,r){var o=t.isGroup?null:t,a=r&&r[e].cfg;if(o){var s=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),(0,m.MA)(o)}}function me(e,t,n){var i=n===ne,r=i?t:Ie(t,n),o=r?r.z2:null;null!=o&&((i?e:e.ensureState(n)).z2=o||0)}function xe(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):ce[o.type](o));for(var u,c,h=(0,d.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(e,n){return null==n&&(n=u),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,i){0;null==i&&(i=u);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,s=M(i,ne).getItemStyle();null!=o&&(s.fill=o),null!=a&&(s.opacity=a);var l={inheritColor:(0,d.isString)(o)?o:"#000"},c=I(i,ne),h=x.Lr(c,null,l,!1,!0);h.text=c.getShallow("show")?(0,d.retrieve2)(e.getFormattedLabel(i,ne),(0,_.H)(t,i)):null;var p=x.nC(c,l,!1);return C(n,s),s=P(s,h,p),n&&T(s,n),s.legacy=!0,s},ordinalRawValue:function(e,n){null==n&&(n=u),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){0;null==i&&(i=u);var r=M(i,te).getItemStyle(),o=I(i,te),a=x.Lr(o,null,null,!0,!0);a.text=o.getShallow("show")?(0,d.retrieve3)(e.getFormattedLabel(i,te),e.getFormattedLabel(i,ne),(0,_.H)(t,i)):null;var s=x.nC(o,null,!0);return C(n,r),r=P(r,a,s),n&&T(r,n),r.legacy=!0,r},visual:function(e,n){if(null==n&&(n=u),(0,d.hasOwn)(s,e)){var i=t.getItemVisual(n,"style");return i?i[s[e]]:null}if((0,d.hasOwn)(l,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return(0,b.Gk)((0,d.defaults)({axis:t},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return x.qT(e,n)}},a.api||{}),p={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:_e(e.getData())},f={},g={},v={},y={},m=0;m<oe.length;m++){var w=oe[m];v[w]=e.getModel(ae[w]),y[w]=e.getModel(se[w])}function S(e){return e===u?c||(c=t.getItemModel(e)):t.getItemModel(e)}function M(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=S(e).getModel(ae[n])):S(e).getModel(ae[n]):v[n]}function I(e,n){return t.hasItemOption?e===u?g[n]||(g[n]=S(e).getModel(se[n])):S(e).getModel(se[n]):y[n]}return function(e,n){return u=e,c=null,f={},g={},r&&r((0,d.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},p),h)};function T(e,t){for(var n in t)(0,d.hasOwn)(t,n)&&(e[n]=t[n])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function _e(e){var t={};return(0,d.each)(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(t[r]=t[r]||[])[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function be(e,t,n,i,r,o,a){if(i){var s=we(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&(0,m.k5)(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function we(e,t,n,i,r,o){var a=-1,s=t;t&&Se(t,i,r)&&(a=(0,d.indexOf)(o.childrenRef(),t),t=null);var l,c,h=!t,p=t;p?p.clearStates():(p=ge(i),s&&(l=s,(c=p).copyTransform(l),de(c)&&de(l)&&(c.setStyle(l.style),c.z=l.z,c.z2=l.z2,c.zlevel=l.zlevel,c.invisible=l.invisible,c.ignore=l.ignore,he(c)&&he(l)&&c.setShape(l.shape)))),!1===i.morph?p.disableMorphing=!0:p.disableMorphing&&(p.disableMorphing=!1),ue.normal.cfg=ue.normal.conOpt=ue.emphasis.cfg=ue.emphasis.conOpt=ue.blur.cfg=ue.blur.conOpt=ue.select.cfg=ue.select.conOpt=null,ue.isLegacy=!1,function(e,t,n,i,r,o){if(e.isGroup)return;Me(n,null,o),Me(n,te,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=ge(a),e.setTextContent(c)),ve(null,c,t,a,null,i,r);for(var h=a&&a.style,d=0;d<oe.length;d++){var p=oe[d];if(p!==ne){var f=o[p].conOpt;ye(p,c,0,Te(a,f,p),null)}}h?c.dirty():c.markRedraw()}}}(p,n,i,r,h,ue),function(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&Se(a,o,i)&&(a=null),a||(a=ge(o),e.setClipPath(a)),ve(null,a,t,o,null,i,r)}}(p,n,i,r,h),ve(e,p,n,i,ue,r,h),(0,d.hasOwn)(i,"info")&&(u(p).info=i.info);for(var f=0;f<oe.length;f++){var g=oe[f];if(g!==ne){var v=Ie(i,g);ye(g,p,0,Te(i,v,g),ue)}}return function(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<oe.length;s++)me(i,t,oe[s])}}(p,i,r),"group"===i.type&&function(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return c={api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t},void new w.Z(c.oldChildren,c.newChildren,Ae,Ae,c).add(ke).update(ke).remove(Le).execute();var c;u&&t.removeAll();for(var h=0;h<a;h++){var d=o[h],p=t.childAt(h);d?(null==d.ignore&&(d.ignore=!1),we(e,p,n,d,r,t)):p.ignore=!0}for(var f=t.childCount()-1;f>=h;f--){var g=t.childAt(f);Ce(t,g,r)}}(e,p,n,i,r),a>=0?o.replaceAt(p,a):o.add(p),p}function Se(e,t,n){var i,r=u(e),o=t.type,a=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&((0,d.hasOwn)(i,"pathData")||(0,d.hasOwn)(i,"d")))&&Pe(a)!==r.customPathData||"image"===o&&(0,d.hasOwn)(s,"image")&&s.image!==r.customImagePath}function Me(e,t,n){var i=t?Ie(e,t):e,r=t?Te(e,i,te):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?Ie(s,t):s:null;if(r&&(n.isLegacy||function(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||(0,d.hasOwn)(e,"text")))}(r,o,!!a,!!l))){n.isLegacy=!0;var u=function(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},(0,d.hasOwn)(a,"text")&&(o.text=a.text),(0,d.hasOwn)(a,"rich")&&(o.rich=a.rich),(0,d.hasOwn)(a,"textFill")&&(o.fill=a.textFill),(0,d.hasOwn)(a,"textStroke")&&(o.stroke=a.textStroke),(0,d.hasOwn)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),(0,d.hasOwn)(a,"fontSize")&&(o.fontSize=a.fontSize),(0,d.hasOwn)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),(0,d.hasOwn)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=(0,d.hasOwn)(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),(0,d.hasOwn)(a,"textPosition")&&(i.position=a.textPosition),(0,d.hasOwn)(a,"textOffset")&&(i.offset=a.textOffset),(0,d.hasOwn)(a,"textRotation")&&(i.rotation=a.textRotation),(0,d.hasOwn)(a,"textDistance")&&(i.distance=a.textDistance)}return L(o,e),(0,d.each)(o.rich,(function(e){L(e,e)})),{textConfig:i,textContent:r}}(r,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var h=t?n[t]:n.normal;h.cfg=a,h.conOpt=l}function Ie(e,t){return t?e?e[t]:null:e}function Te(e,t,n){var i=t&&t.style;return null==i&&n===te&&e&&(i=e.styleEmphasis),i}function Ce(e,t,n){t&&W(t,u(e).option,n)}function Ae(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function ke(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;we(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Le(e){var t=this.context,n=t.oldChildren[e];n&&W(n,u(n).option,t.seriesModel)}function Pe(e){return e&&(e.pathData||e.d)}function De(e){e.registerChartView(fe),e.registerSeriesModel(h)}},67116:function(e,t,n){n.d(t,{ID:()=>l,X0:()=>u,lQ:()=>c});var i=n(46547),r=n(42933),o=n(7764),a=n(96131),s=n(6836);function l(e,t,n,o,a){var l=e.getArea(),u=l.x,c=l.y,h=l.width,d=l.height,p=n.get(["lineStyle","width"])||0;u-=p/2,c-=p/2,h+=p,d+=p,h=Math.ceil(h),u!==Math.floor(u)&&(u=Math.floor(u),h++);var f=new i.Z({shape:{x:u,y:c,width:h,height:d}});if(t){var g=e.getBaseAxis(),v=g.isHorizontal(),y=g.inverse;v?(y&&(f.shape.x+=h),f.shape.width=0):(y||(f.shape.y+=d),f.shape.height=0);var m=(0,s.isFunction)(a)?function(e){a(e,f)}:null;r.KZ(f,{shape:{width:h,height:d,x:u,y:c}},n,null,o,m)}return f}function u(e,t,n){var i=e.getArea(),s=(0,a.NM)(i.r0,1),l=(0,a.NM)(i.r,1),u=new o.C({shape:{cx:(0,a.NM)(e.cx,1),cy:(0,a.NM)(e.cy,1),r0:s,r:l,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});t&&("angle"===e.getBaseAxis().dim?u.shape.endAngle=i.startAngle:u.shape.r=s,r.KZ(u,{shape:{endAngle:i.endAngle,r:l}},n));return u}function c(e,t,n,i,r){return e?"polar"===e.type?u(e,t,n):"cartesian2d"===e.type?l(e,t,n,i,r):null:null}},45398:function(e,t,n){n.d(t,{H:()=>o,O:()=>a});n(92745);var i=n(45370),r=n(6836);function o(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var o=(0,i.hk)(e,t,n[0]);return null!=o?o+"":null}if(r){for(var a=[],s=0;s<n.length;s++)a.push((0,i.hk)(e,t,n[s]));return a.join(" ")}}function a(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!(0,r.isArray)(t))return t+"";for(var i=[],o=0;o<n.length;o++){var a=e.getDimensionIndex(n[o]);a>=0&&i.push(t[a])}return i.join(" ")}},76504:function(e,t,n){n.d(t,{N:()=>se});var i=n(9065),r=n(77385),o=n(83072),a=n(88458),s=n(74777),l=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return(0,i.__extends)(t,e),t.prototype.getInitialData=function(e){return(0,r.Z)(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new s.Z,n=(0,a.th)("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,l=.8*e.itemHeight,u=(0,a.th)(o,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);t.add(u),u.setStyle(e.itemStyle);var c="inherit"===e.iconRotate?r:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(o.Z);const u=l;n(92745),n(84283),n(22139);var c=n(6836),h=n(42933),d=n(59214),p=n(89523),f=n(73372),g=n(45398),v=n(33666),y=n(40692);function m(e,t){this.parent.drift(e,t)}const x=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return(0,i.__extends)(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=(0,a.th)(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=m,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){(0,f.fD)(this.childAt(0))},t.prototype.downplay=function(){(0,f.Mh)(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{(p=this.childAt(0)).silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(d):h.D(p,d,a,n),(0,h.Zi)(p)}if(this._updateCommon(e,n,s,i,r),l){var p=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,h.KZ(p,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,s,l,u,h,d,p,m,x,_=this.childAt(0),b=e.hostModel;if(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,l=i.selectItemStyle,u=i.focus,h=i.blurScope,p=i.labelStatesModels,m=i.hoverScale,x=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var w=i&&i.itemModel?i.itemModel:e.getItemModel(t),S=w.getModel("emphasis");o=S.getModel("itemStyle").getItemStyle(),l=w.getModel(["select","itemStyle"]).getItemStyle(),s=w.getModel(["blur","itemStyle"]).getItemStyle(),u=S.get("focus"),h=S.get("blurScope"),d=S.get("disabled"),p=(0,v.k3)(w),m=S.getShallow("scale"),x=w.getShallow("cursor")}var M=e.getItemVisual(t,"symbolRotate");_.attr("rotation",(M||0)*Math.PI/180||0);var I=(0,a.Cq)(e.getItemVisual(t,"symbolOffset"),n);I&&(_.x=I[0],_.y=I[1]),x&&_.attr("cursor",x);var T=e.getItemVisual(t,"style"),C=T.fill;if(_ instanceof y.ZP){var A=_.style;_.useStyle((0,c.extend)({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},T))}else _.__isEmptyBrush?_.useStyle((0,c.extend)({},T)):_.useStyle(T),_.style.decal=null,_.setColor(C,r&&r.symbolInnerColor),_.style.strokeNoScale=!0;var k=e.getItemVisual(t,"liftZ"),L=this._z2;null!=k?null==L&&(this._z2=_.z2,_.z2+=k):null!=L&&(_.z2=L,this._z2=null);var P=r&&r.useNameLabel;(0,v.ni)(_,p,{labelFetcher:b,labelDataIndex:t,defaultText:function(t){return P?e.getName(t):(0,g.H)(e,t)},inheritColor:C,defaultOpacity:T.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=_.ensureState("emphasis");D.style=o,_.ensureState("select").style=l,_.ensureState("blur").style=s;var O=null==m||!0===m?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),(0,f.k5)(this,u,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=(0,p.A)(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&h.bX(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();h.bX(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return(0,a.zp)(e.getItemVisual(t,"symbolSize"))},t}(s.Z);function _(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function b(e){return null==e||(0,c.isObject)(e)||(e={isIgnore:e}),e||{}}function w(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:(0,v.k3)(t),cursorStyle:t.get("cursor")}}const S=function(){function e(e){this.group=new s.Z,this._SymbolCtor=e||x}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=b(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=w(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=u(i);if(_(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,d){var p=r.getItemGraphicEl(d),f=u(c);if(_(e,f,c,t)){var g=e.getItemVisual(c,"symbol")||"circle",v=p&&p.getSymbolType&&p.getSymbolType();if(!p||v&&v!==g)n.remove(p),(p=new o(e,c,s,l)).setPosition(f);else{p.updateData(e,c,s,l);var y={x:f[0],y:f[1]};a?p.attr(y):h.D(p,y,i)}n.add(p),e.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=w(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=b(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(_(t,o,r,n)){var a=new this._SymbolCtor(t,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){d.traverseElements(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();var M=n(62951);function I(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=function(e,t){var n=0,i=e.scale.getExtent();"start"===t?n=i[0]:"end"===t?n=i[1]:(0,c.isNumber)(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),h="x"===s||"radius"===s?1:0,d=(0,c.map)(e.dimensions,(function(e){return t.mapDimension(e)})),p=!1,f=t.getCalculationInfo("stackResultDimension");return(0,M.M)(t,d[0])&&(p=!0,d[0]=f),(0,M.M)(t,d[1])&&(p=!0,d[1]=f),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function T(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var C=n(38951);var A=n(30950),k=n(31410),L=n(31936),P=n(2916),D=n(40451),O=n(24894),R=Math.min,Z=Math.max;function z(e,t){return isNaN(e)||isNaN(t)}function E(e,t,n,i,r,o,a,s,l){for(var u,c,h,d,p,f,g=n,v=0;v<i;v++){var y=t[2*g],m=t[2*g+1];if(g>=r||g<0)break;if(z(y,m)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](y,m),h=y,d=m;else{var x=y-u,_=m-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[2*b],S=t[2*b+1];w===y&&S===m&&v<i;)v++,g+=o,w=t[2*(b+=o)],S=t[2*b+1],x=(y=t[2*g])-u,_=(m=t[2*g+1])-c;var M=v+1;if(l)for(;z(w,S)&&M<i;)M++,w=t[2*(b+=o)],S=t[2*b+1];var I=.5,T=0,C=0,A=void 0,k=void 0;if(M>=i||z(w,S))p=y,f=m;else{T=w-u,C=S-c;var L=y-u,P=w-y,D=m-c,O=S-m,E=void 0,B=void 0;if("x"===s){var V=T>0?1:-1;p=y-V*(E=Math.abs(L))*a,f=m,A=y+V*(B=Math.abs(P))*a,k=m}else if("y"===s){var N=C>0?1:-1;p=y,f=m-N*(E=Math.abs(D))*a,A=y,k=m+N*(B=Math.abs(O))*a}else E=Math.sqrt(L*L+D*D),p=y-T*a*(1-(I=(B=Math.sqrt(P*P+O*O))/(B+E))),f=m-C*a*(1-I),k=m+C*a*I,A=R(A=y+T*a*I,Z(w,y)),k=R(k,Z(S,m)),A=Z(A,R(w,y)),f=m-(C=(k=Z(k,R(S,m)))-m)*E/B,p=R(p=y-(T=A-y)*E/B,Z(u,y)),f=R(f,Z(c,m)),A=y+(T=y-(p=Z(p,R(u,y))))*B/E,k=m+(C=m-(f=Z(f,R(c,m))))*B/E}e.bezierCurveTo(h,d,p,f,y,m),h=A,d=k}else e.lineTo(y,m)}u=y,c=m,g+=o}return v}var B=function(){this.smooth=0,this.smoothConstraint=!0},V=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return(0,i.__extends)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new B},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0&&z(n[2*r-2],n[2*r-1]);r--);for(;i<r&&z(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=E(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=D.Z.CMD,a="x"===t,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(e-n)/(u-n):(e-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[e,v]:[v,e]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],p=r[l++],f=r[l++];var y=a?(0,O.kD)(n,u,h,p,e,s):(0,O.kD)(i,c,d,f,e,s);if(y>0)for(var m=0;m<y;m++){var x=s[m];if(x<=1&&x>=0){v=a?(0,O.af)(i,c,d,f,x):(0,O.af)(n,u,h,p,x);return a?[e,v]:[v,e]}}n=p,i=f}}},t}(P.ZP),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t}(B),H=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return(0,i.__extends)(t,e),t.prototype.getDefaultShape=function(){return new N},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&z(n[2*o-2],n[2*o-1]);o--);for(;r<o&&z(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=E(e,n,r,o,o,1,t.smooth,a,t.connectNulls);E(e,i,r+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),r+=s+1,e.closePath()}},t}(P.ZP),F=n(50261),G=n(67116),W=n(4012),Y=n(94485),U=n(6866);function X(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function j(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function q(e,t){var n=j(e),i=n[0],r=n[1],o=j(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function K(e){return c.isNumber(e)?e:e?.5:0}function Q(e,t,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<e.length;l+=2){var p=t||e;isNaN(p[l])||isNaN(p[l+1])||d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(h[0]=e[l+2],h[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function J(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=c.map(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),h=u.length,d=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),d.reverse());var p=function(e,t){var n,i,r=[],o=e.length;function a(e,t,n){var i=e.coord,r=(n-i)/(t.coord-i);return{coord:n,color:(0,U.lerp)(r,[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?d[1]?d[1]:u[h-1].color:d[0]?d[0]:u[0].color;var g=p[0].coord-10,v=p[f-1].coord+10,y=v-g;if(y<.001)return"transparent";c.each(p,(function(e){e.offset=(e.coord-g)/y})),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var m=new A.Z(0,0,0,0,p,!0);return m[r]=g,m[r+"2"]=v,m}}}function $(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*x.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return c.each(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function ee(e,t){return[e[2*t],e[2*t+1]]}function te(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<f.L1.length;t++)if(e.get([f.L1[t],"endLabel","show"]))return!0;return!1}function ne(e,t,n,i){if((0,W.H)(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=te(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=(0,G.ID)(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return(0,G.X0)(t,n,i)}var ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.init=function(){var e=new s.Z,t=new S;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=c.bind(this._changePolyState,this)},t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),a=e.getModel("lineStyle"),s=e.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,d=this._coordSys,g=this._symbolDraw,v=this._polyline,y=this._polygon,m=this._lineGroup,x=!t.ssr&&e.get("animation"),_=!s.isEmpty(),b=s.get("origin"),w=I(i,o,b),S=_&&function(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=(0,C.o)(2*i),o=0;o<i;o++){var a=T(n,e,t,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,w),M=e.get("showSymbol"),A=e.get("connectNulls"),k=M&&!u&&$(e,o,i),L=this._data;L&&L.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),L.setItemGraphicEl(t,null))})),M||g.remove(),r.add(m);var P,D=!u&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(P=i.getArea()).width?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r+=.5)),this._clipShapeForSymbol=P;var O=J(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(v&&d.type===i.type&&D===this._step){_&&!y?y=this._newPolygon(l,S):y&&!_&&(m.remove(y),y=this._polygon=null),u||this._initOrUpdateEndLabel(e,i,(0,Y.Lz)(O));var R=m.getClipPath();if(R){var Z=ne(this,i,!1,e);h.KZ(R,{shape:Z.shape},e)}else m.setClipPath(ne(this,i,!0,e));M&&g.updateData(o,{isIgnore:k,clipShape:P,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),X(this._stackedOnPoints,S)&&X(this._points,l)||(x?this._doUpdateAnimation(o,S,i,n,D,b,A):(D&&(S&&(S=Q(S,l,i,D,A)),l=Q(l,null,i,D,A)),v.setShape({points:l}),y&&y.setShape({points:l,stackedOnPoints:S})))}else M&&g.updateData(o,{isIgnore:k,clipShape:P,disableAnimation:!0,getSymbolPoint:function(e){return[l[2*e],l[2*e+1]]}}),x&&this._initSymbolLabelAnimation(o,i,P),D&&(S&&(S=Q(S,l,i,D,A)),l=Q(l,null,i,D,A)),v=this._newPolyline(l),_?y=this._newPolygon(l,S):y&&(m.remove(y),y=this._polygon=null),u||this._initOrUpdateEndLabel(e,i,(0,Y.Lz)(O)),m.setClipPath(ne(this,i,!0,e));var z=e.getModel("emphasis"),E=z.get("focus"),B=z.get("blurScope"),V=z.get("disabled");(v.useStyle(c.defaults(a.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),(0,f.WO)(v,e,"lineStyle"),v.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(v.getState("emphasis").style.lineWidth=+v.style.lineWidth+1);(0,p.A)(v).seriesIndex=e.seriesIndex,(0,f.k5)(v,E,B,V);var N=K(e.get("smooth")),H=e.get("smoothMonotone");if(v.setShape({smooth:N,smoothMonotone:H,connectNulls:A}),y){var F=o.getCalculationInfo("stackedOnSeries"),G=0;y.useStyle(c.defaults(s.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),F&&(G=K(F.get("smooth"))),y.setShape({smooth:N,stackedOnSmooth:G,smoothMonotone:H,connectNulls:A}),(0,f.WO)(y,e,"areaStyle"),(0,p.A)(y).seriesIndex=e.seriesIndex,(0,f.k5)(y,E,B,V)}var W=this._changePolyState;o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=W)})),this._polyline.onHoverStateChange=W,this._data=o,this._coordSys=i,this._stackedOnPoints=S,this._points=l,this._step=D,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,v),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,t){(0,p.A)(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=L.gO(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,h=e.get("z")||0;(s=new x(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else F.Z.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=L.gO(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else F.Z.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;(0,f.Gl)(this._polyline,e),t&&(0,f.Gl)(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new V({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new H({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");c.isFunction(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=c.isFunction(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],p=void 0,f=void 0,g=void 0;if(n)if(r){var v=n,y=t.pointToCoord(d);i?(p=v.startAngle,f=v.endAngle,g=-y[1]/180*Math.PI):(p=v.r0,f=v.r,g=y[0])}else{var m=n;i?(p=m.x,f=m.x+m.width,g=e.x):(p=m.y+m.height,f=m.y,g=e.y)}var x=f===p?0:(g-p)/(f-p);a&&(x=1-x);var _=c.isFunction(u)?u(o):l*x+h,b=s.getSymbolPath(),w=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),b.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(te(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new k.ZP({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t,n,i=e.length/2;i>0&&(t=e[2*i-2],n=e[2*i-1],isNaN(t)||isNaN(n));i--);return i-1}(a);l>=0&&((0,v.ni)(o,(0,v.k3)(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?(0,g.O)(r,n):(0,g.H)(r,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,m=t.shape,x=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?p:0)*(y?-1:1),b=(g?0:-p)*(y?-1:1),w=g?"x":"y",S=function(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=e[2*u+a],!isNaN(r)&&!isNaN(e[2*u+1-a]))if(0!==u){if(i<=t&&r>=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}(u,x,w),M=S.range,I=M[1]-M[0],T=void 0;if(I>=1){if(I>1&&!h){var C=ee(u,M[0]);s.attr({x:C[0]+_,y:C[1]+b}),r&&(T=c.getRawValue(M[0]))}else{(C=l.getPointOn(x,w))&&s.attr({x:C[0]+_,y:C[1]+b});var A=c.getRawValue(M[0]),k=c.getRawValue(M[1]);r&&(T=L.pk(n,d,A,k,S.t))}i.lastFrameIndex=M[0]}else{var P=1===e||i.lastFrameIndex>0?M[0]:0;C=ee(u,P);r&&(T=c.getRawValue(P)),s.attr({x:C[0]+_,y:C[1]+b})}if(r){var D=(0,v.qA)(s);"function"==typeof D.setLabelText&&D.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,i,r,o,a){for(var s=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),l=[],u=[],c=[],h=[],d=[],p=[],f=[],g=I(r,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],m=0;m<s.length;m++){var x=s[m],_=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=2*x.idx,w=2*x.idx1;var S=v[b],M=v[b+1],A=y[w],k=y[w+1];(isNaN(S)||isNaN(M))&&(S=A,M=k),l.push(S,M),u.push(A,k),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),f.push(t.getRawIndex(x.idx1));break;case"+":var L=x.idx,P=g.dataDimsForPoint,D=r.dataToPoint([t.get(P[0],L),t.get(P[1],L)]);w=2*L,l.push(D[0],D[1]),u.push(y[w],y[w+1]);var O=T(g,r,t,L);c.push(O[0],O[1]),h.push(i[w],i[w+1]),f.push(t.getRawIndex(L));break;case"-":_=!1}_&&(d.push(x),p.push(p.length))}p.sort((function(e,t){return f[e]-f[t]}));var R=l.length,Z=(0,C.o)(R),z=(0,C.o)(R),E=(0,C.o)(R),B=(0,C.o)(R),V=[];for(m=0;m<p.length;m++){var N=p[m],H=2*m,F=2*N;Z[H]=l[F],Z[H+1]=l[F+1],z[H]=u[F],z[H+1]=u[F+1],E[H]=c[F],E[H+1]=c[F+1],B[H]=h[F],B[H+1]=h[F+1],V[m]=d[N]}return{current:Z,next:z,stackedOnCurrent:E,stackedOnNext:B,status:V}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=c.current,p=c.stackedOnCurrent,f=c.next,g=c.stackedOnNext;if(r&&(p=Q(c.stackedOnCurrent,c.current,n,r,a),d=Q(c.current,null,n,r,a),g=Q(c.stackedOnNext,c.next,n,r,a),f=Q(c.next,null,n,r,a)),q(d,f)>3e3||l&&q(p,g)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:g})));s.shape.__points=c.current,s.shape.points=d;var v={shape:{points:f}};c.current!==d&&(v.shape.__points=c.next),s.stopAnimation(),h.D(s,v,u),l&&(l.setShape({points:d,stackedOnPoints:p}),l.stopAnimation(),h.D(l,{shape:{stackedOnPoints:g}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],m=c.status,x=0;x<m.length;x++){if("="===m[x].cmd){var _=e.getItemGraphicEl(m[x].idx1);_&&y.push({el:_,ptIdx:x})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<y.length;t++){var n=y[t].el,i=2*y[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(F.Z);const re=ie;var oe=n(8355);var ae=n(64838);function se(e){var t;e.registerChartView(re),e.registerSeriesModel(u),e.registerLayout((t=!0,{seriesType:"line",plan:(0,oe.Z)(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(i){var a=(0,c.map)(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");(0,M.M)(n,a[0])&&(a[0]=l),(0,M.M)(n,a[1])&&(a[1]=l);var u=n.getStore(),h=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,r=o&&(0,C.o)(n*s),a=[],l=[],c=e.start,p=0;c<e.end;c++){var f=void 0;if(1===s){var g=u.get(h,c);f=i.dataToPoint(g,null,l)}else a[0]=u.get(h,c),a[1]=u.get(d,c),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):t.setItemLayout(c,f.slice())}o&&t.setLayout("points",r)}}}}})),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,ae.Z)("line"))}},64283:function(e,t,n){n.d(t,{Z:()=>M});n(92745),n(22139);var i=n(6836),r=n(74777),o=n(55857),a=n(59214),s=n(31410),l=n(89523),u=n(33666),c=n(30057),h=n(96131),d=n(88458),p=n(8982),f=n(58881),g=n(31690),v=n(76034),y=Math.PI,m=function(){function e(e,t){this.group=new r.Z,this.opt=t,this.axisModel=e,(0,i.defaults)(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new r.Z({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!x[e]},e.prototype.add=function(e){x[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=(0,h.wW)(t-e);return(0,h.mW)(o)?(r=n>0?"top":"bottom",i="center"):(0,h.mW)(o-y)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<y?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),x={axisLine:function(e,t,n,r){var s=t.get(["axisLine","show"]);if("auto"===s&&e.handleAutoShown&&(s=e.handleAutoShown("axisLine")),s){var l=t.axis.getExtent(),u=r.transform,c=[l[0],0],h=[l[1],0],p=c[0]>h[0];u&&((0,f.applyTransform)(c,c,u),(0,f.applyTransform)(h,h,u));var g=(0,i.extend)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new o.Z({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:g,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});a.subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var y=t.get(["axisLine","symbol"]);if(null!=y){var m=t.get(["axisLine","symbolSize"]);(0,i.isString)(y)&&(y=[y,y]),((0,i.isString)(m)||(0,i.isNumber)(m))&&(m=[m,m]);var x=(0,d.Cq)(t.get(["axisLine","symbolOffset"])||0,m),_=m[0],b=m[1];(0,i.each)([{rotate:e.rotation+Math.PI/2,offset:x[0],r:0},{rotate:e.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],(function(t,i){if("none"!==y[i]&&null!=y[i]){var r=(0,d.th)(y[i],-_/2,-b/2,_,b,g.stroke,!0),o=t.r+t.offset,a=p?h:c;r.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,r){var o=function(e,t,n,r){var o=n.axis,a=n.getModel("axisTick"),s=a.get("show");"auto"===s&&r.handleAutoShown&&(s=r.handleAutoShown("axisTick"));if(!s||o.scale.isBlank())return;for(var l=a.getModel("lineStyle"),u=r.tickDirection*a.get("length"),c=S(o.getTicksCoords(),t.transform,u,(0,i.defaults)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)e.add(c[h]);return c}(n,r,t,e),h=function(e,t,n,r){var o=n.axis,h=(0,i.retrieve)(r.axisLabelShow,n.get(["axisLabel","show"]));if(!h||o.scale.isBlank())return;var d=n.getModel("axisLabel"),p=d.get("margin"),f=o.getViewLabels(),g=((0,i.retrieve)(r.labelRotate,d.get("rotate"))||0)*y/180,v=m.innerTextLayout(r.rotation,g,r.labelDirection),x=n.getCategories&&n.getCategories(!0),_=[],b=m.isLabelSilent(n),w=n.get("triggerEvent");return(0,i.each)(f,(function(h,g){var y="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(h.tickValue):h.tickValue,S=h.formattedLabel,M=h.rawLabel,I=d;if(x&&x[y]){var T=x[y];(0,i.isObject)(T)&&T.textStyle&&(I=new c.Z(T.textStyle,d,n.ecModel))}var C=I.getTextColor()||n.get(["axisLine","lineStyle","color"]),A=o.dataToCoord(y),k=I.getShallow("align",!0)||v.textAlign,L=(0,i.retrieve2)(I.getShallow("alignMinLabel",!0),k),P=(0,i.retrieve2)(I.getShallow("alignMaxLabel",!0),k),D=I.getShallow("verticalAlign",!0)||I.getShallow("baseline",!0)||v.textVerticalAlign,O=(0,i.retrieve2)(I.getShallow("verticalAlignMinLabel",!0),D),R=(0,i.retrieve2)(I.getShallow("verticalAlignMaxLabel",!0),D),Z=new s.ZP({x:A,y:r.labelOffset+r.labelDirection*p,rotation:v.rotation,silent:b,z2:10+(h.level||0),style:(0,u.Lr)(I,{text:S,align:0===g?L:g===f.length-1?P:k,verticalAlign:0===g?O:g===f.length-1?R:D,fill:(0,i.isFunction)(C)?C("category"===o.type?M:"value"===o.type?y+"":y,g):C})});if(Z.anid="label_"+y,a.setTooltipConfig({el:Z,componentModel:n,itemName:S,formatterParamsExtra:{isTruncated:function(){return Z.isTruncated},value:M,tickIndex:g}}),w){var z=m.makeAxisEventDataBase(n);z.targetType="axisLabel",z.value=M,z.tickIndex=g,"category"===o.type&&(z.dataIndex=y),(0,l.A)(Z).eventData=z}t.add(Z),Z.updateTransform(),_.push(Z),e.add(Z),Z.decomposeTransform()})),_}(n,r,t,e);if(function(e,t,n){if((0,g.WY)(e.axis))return;var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(_(o),_(u)):b(o,a)&&(i?(_(a),_(c)):(_(o),_(u)));!1===r?(_(s),_(h)):b(l,s)&&(r?(_(l),_(d)):(_(s),_(h)))}(t,h,o),function(e,t,n,r){var o=n.axis,a=n.getModel("minorTick");if(!a.get("show")||o.scale.isBlank())return;var s=o.getMinorTicksCoords();if(!s.length)return;for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=(0,i.defaults)(l.getLineStyle(),(0,i.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=S(s[h],t.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)e.add(d[p])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var d=(0,v.VT)((0,i.map)(h,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));(0,v.yl)(d)}},axisName:function(e,t,n,r){var o=(0,i.retrieve)(e.axisName,t.get("name"));if(o){var c,d,p=t.get("nameLocation"),f=e.nameDirection,g=t.getModel("nameTextStyle"),v=t.get("nameGap")||0,x=t.axis.getExtent(),_=x[0]>x[1]?-1:1,b=["start"===p?x[0]-_*v:"end"===p?x[1]+_*v:(x[0]+x[1])/2,w(p)?e.labelOffset+f*v:0],S=t.get("nameRotate");null!=S&&(S=S*y/180),w(p)?c=m.innerTextLayout(e.rotation,null!=S?S:e.rotation,f):(c=function(e,t,n,i){var r,o,a=(0,h.wW)(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;(0,h.mW)(a-y/2)?(o=l?"bottom":"top",r="center"):(0,h.mW)(a-1.5*y)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*y&&a>y/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(e.rotation,p,S||0,x),null!=(d=e.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var M=g.getFont(),I=t.get("nameTruncate",!0)||{},T=I.ellipsis,C=(0,i.retrieve)(e.nameTruncateMaxWidth,I.maxWidth,d),A=new s.ZP({x:b[0],y:b[1],rotation:c.rotation,silent:m.isLabelSilent(t),style:(0,u.Lr)(g,{text:o,font:M,overflow:"truncate",width:C,ellipsis:T,fill:g.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:g.get("align")||c.textAlign,verticalAlign:g.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(a.setTooltipConfig({el:A,componentModel:t,itemName:o}),A.__fullText=o,A.anid="name",t.get("triggerEvent")){var k=m.makeAxisEventDataBase(t);k.targetType="axisName",k.name=o,(0,l.A)(A).eventData=k}r.add(A),A.updateTransform(),n.add(A),A.decomposeTransform()}}};function _(e){e&&(e.ignore=!0)}function b(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=p.identity([]);return p.rotate(r,r,-e.rotation),n.applyTransform(p.mul([],r,e.getLocalTransform())),i.applyTransform(p.mul([],r,t.getLocalTransform())),n.intersect(i)}}function w(e){return"middle"===e||"center"===e}function S(e,t,n,i,r){for(var s=[],l=[],u=[],c=0;c<e.length;c++){var h=e[c].coord;l[0]=h,l[1]=0,u[0]=h,u[1]=n,t&&((0,f.applyTransform)(l,l,t),(0,f.applyTransform)(u,u,t));var d=new o.Z({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:i,z2:2,autoBatch:!0,silent:!0});a.subPixelOptimizeLine(d.shape,d.style.lineWidth),d.anid=r+"_"+e[c].tickValue,s.push(d)}return s}const M=m},50308:function(e,t,n){n.d(t,{Z:()=>l});var i=n(9065),r=n(74692),o=n(65160),a={},s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.__extends)(t,e),t.prototype.render=function(t,n,i,o){this.axisPointerClass&&r.iG(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=r.np(e);a?(this._axisPointer||(this._axisPointer=new o)).render(e,a,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){a[e]=t},t.getAxisPointerClass=function(e){return e&&a[e]},t.type="axis",t}(o.Z);const l=s},74335:function(e,t,n){n.d(t,{Z:()=>o});var i=n(6836),r=n(31936);function o(e,t){var n,o=[],a=e.seriesIndex;if(null==a||!(n=t.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=r.gO(s,e);if(null==l||l<0||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)if(e.isStacked){var h=c.getBaseAxis(),d=c.getOtherAxis(h).dim,p=h.dim,f="x"===d||"radius"===d?1:0,g=s.mapDimension(p),v=[];v[f]=s.get(g,l),v[1-f]=s.get(s.getCalculationInfo("stackResultDimension"),l),o=c.dataToPoint(v)||[]}else o=c.dataToPoint(s.getValues(i.map(c.dimensions,(function(e){return s.mapDimension(e)})),l))||[];else if(u){var y=u.getBoundingRect().clone();y.applyTransform(u.transform),o=[y.x+y.width/2,y.y+y.height/2]}return{point:o,el:u}}},79510:function(e,t,n){n.d(t,{E:()=>c,z:()=>s});n(92745);var i=n(6836),r=n(53970),o=(0,n(31936).Yf)(),a=i.each;function s(e,t,n){if(!r.Z.node){var s=t.getZr();o(s).records||(o(s).records={}),function(e,t){if(o(e).initialized)return;function n(n,i){e.on(n,(function(n){var r=function(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}(t);a(o(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),function(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(r.pendings,t)}))}o(e).initialized=!0,n("click",i.curry(u,"click")),n("mousemove",i.curry(u,"mousemove")),n("globalout",l)}(s,t),(o(s).records[e]||(o(s).records[e]={})).handler=n}}function l(e,t,n){e.handler("leave",null,n)}function u(e,t,n,i){t.handler(e,n,i)}function c(e,t){if(!r.Z.node){var n=t.getZr();(o(n).records||{})[e]&&(o(n).records[e]=null)}}},17806:function(e,t,n){n.d(t,{N:()=>G});var i=n(50308),r=n(9065),o=n(6836),a=n(74777),s=n(59214),l=n(31410),u=n(42933),c=n(74692),h=n(55131),d=n(73474),p=n(31936),f=(0,p.Yf)(),g=o.clone,v=o.bind;function y(e,t,n,i){m(f(n).lastProp,i)||(f(n).lastProp=i,t?u.D(n,i,e):(n.stopAnimation(),n.attr(i)))}function m(e,t){if(o.isObject(e)&&o.isObject(t)){var n=!0;return o.each(t,(function(t,i){n=n&&m(e[i],t)})),!!n}return e===t}function x(e,t){e[t.get(["label","show"])?"show":"hide"]()}function _(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function b(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}const w=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==s){this._lastValue=r,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,r,e,t,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(e,t);if(l){var p=o.curry(y,t,d);this.updatePointerEl(l,c,p),this.updateLabelEl(l,c,p,t)}else l=this._group=new a.Z,this.createPointerEl(l,c,e,t),this.createLabelEl(l,c,e,t),n.getZr().add(l);b(l,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=c.r(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var o=f(e).pointerEl=new s[r.type](g(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=f(e).labelEl=new l.ZP(g(t.label));e.add(r),x(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=f(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=f(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),x(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,a=n.getModel("handle"),l=n.get("status");if(!a.get("show")||!l||"hide"===l)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=s.createIcon(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){h.sT(e.event)},onmousedown:v(this._onHandleDragMove,this,0,0),drift:v(this._onHandleDragMove,this),ondragend:v(this._onHandleDragEnd,this)}),i.add(r)),b(r,n,!1),r.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");o.isArray(u)||(u=[u,u]),r.scaleX=u[0]/2,r.scaleY=u[1]/2,d.T9(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){y(this._axisPointerModel,!t&&this._moveAnimation,this._handle,_(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(_(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(_(i)),f(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),d.ZH(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();var S=n(94359),M=n(23161),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=T(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=S.fk(i),h=C[s](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=M.bK(a.model,n);S.gf(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=M.bK(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=S.Zh(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=T(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(w);function T(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var C={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:S.BL([t,n[0]],[t,n[1]],A(e))}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:S.uE([t-i/2,n[0]],[i,r],A(e))}}};function A(e){return"x"===e.dim?0:1}const k=I;var L=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(n(72255).Z);const P=L;var D=n(79510),O=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";D.z("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){D.E("axisPointer",t)},t.prototype.dispose=function(e,t){D.E("axisPointer",t)},t.type="axisPointer",t}(n(65160).Z);const R=O;n(92745),n(9359),n(70104);var Z=n(74335),z=(0,p.Yf)();function E(e,t,n){var i=e.currTrigger,r=[e.x,e.y],a=e,s=e.dispatchAction||(0,o.bind)(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){F(r)&&(r=(0,Z.Z)({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=F(r),c=a.axesInfo,h=l.axesInfo,d="leave"===i||F(r),p={},f={},g={list:[],map:{}},v={showPointer:(0,o.curry)(V,f),showTooltip:(0,o.curry)(N,g)};(0,o.each)(l.coordSysMap,(function(e,t){var n=u||e.containPoint(r);(0,o.each)(l.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}(c,e);if(!d&&n&&(!c||o)){var a=o&&o.value;null!=a||u||(a=i.pointToData(r)),null!=a&&B(e,a,v,!1,p)}}))}));var y={};return(0,o.each)(h,(function(e,t){var n=e.linkGroup;n&&!f[t]&&(0,o.each)(n.axesInfo,(function(t,i){var r=f[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,H(t),H(e)))),y[e.key]=o}}))})),(0,o.each)(y,(function(e,t){B(h[t],e,v,!0,p)})),function(e,t,n){var i=n.axesInfo=[];(0,o.each)(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}(f,h,p),function(e,t,n,i){if(F(t)||!e.list.length)return void i({type:"hideTip"});var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}(g,r,e,s),function(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",a=z(i)[r]||{},s=z(i)[r]={};(0,o.each)(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&(0,o.each)(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var l=[],u=[];(0,o.each)(a,(function(e,t){!s[t]&&u.push(e)})),(0,o.each)(s,(function(e,t){!a[t]&&l.push(e)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}(h,0,n),p}}function B(e,t,n,i,r){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var s=function(e,t){var n=t.axis,i=n.dim,r=e,a=[],s=Number.MAX_VALUE,l=-1;return(0,o.each)(t.seriesModels,(function(t,u){var c,h,d=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,n);h=p.dataIndices,c=p.nestestValue}else{if(!(h=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null)).length)return;c=t.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var f=e-c,g=Math.abs(f);g<=s&&((g<s||f>=0&&l<0)&&(s=g,l=f,r=c,a.length=0),(0,o.each)(h,(function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:a,snapToValue:r}}(t,e),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&(0,o.extend)(r,l[0]),!i&&e.snap&&a.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,l),n.showTooltip(e,s,u)}else n.showPointer(e,t)}function V(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function N(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=c.zm(l),h=e.map[u];h||(h=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function H(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function F(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function G(e){i.Z.registerAxisPointerClass("CartesianAxisPointer",k),e.registerComponentModel(P),e.registerComponentView(R),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!(0,o.isArray)(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=(0,c.KM)(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},E)}},74692:function(e,t,n){n.d(t,{KM:()=>o,iG:()=>s,np:()=>u,r:()=>l,zm:()=>h});n(92745);var i=n(30057),r=n(6836);function o(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var o=t.getComponent("tooltip"),s=t.getComponent("axisPointer"),l=s.get("link",!0)||[],u=[];(0,r.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var d=h(n.model),p=e.coordSysAxesInfo[d]={};e.coordSysMap[d]=n;var f=n.model.getModel("tooltip",o);if((0,r.each)(n.getAxes(),(0,r.curry)(m,!1,null)),n.getTooltipAxes&&o&&f.get("show")){var g="axis"===f.get("trigger"),v="cross"===f.get(["axisPointer","type"]),y=n.getTooltipAxes(f.get(["axisPointer","axis"]));(g||v)&&(0,r.each)(y.baseAxes,(0,r.curry)(m,!v||"cross",g)),v&&(0,r.each)(y.otherAxes,(0,r.curry)(m,"cross",!1))}}function m(o,d,g){var v=g.model.getModel("axisPointer",s),y=v.get("show");if(y&&("auto"!==y||o||c(v))){null==d&&(d=v.get("triggerTooltip")),v=o?function(e,t,n,o,a,s){var l=t.getModel("axisPointer"),u=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],c={};(0,r.each)(u,(function(e){c[e]=(0,r.clone)(l.get(e))})),c.snap="category"!==e.type&&!!s,"cross"===l.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===a){var d=l.get(["label","show"]);if(h.show=null==d||d,!s){var p=c.lineStyle=l.get("crossStyle");p&&(0,r.defaults)(h,p.textStyle)}}return e.model.getModel("axisPointer",new i.Z(c,n,o))}(g,f,s,t,o,d):v;var m=v.get("snap"),x=v.get("triggerEmphasis"),_=h(g.model),b=d||m||"category"===g.type,w=e.axesInfo[_]={key:_,axis:g,coordSys:n,axisPointerModel:v,triggerTooltip:d,triggerEmphasis:x,involveSeries:b,snap:m,useHandle:c(v),seriesModels:[],linkGroup:null};p[_]=w,e.seriesInvolved=e.seriesInvolved||b;var S=function(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(a(o[i+"AxisId"],n.id)||a(o[i+"AxisIndex"],n.componentIndex)||a(o[i+"AxisName"],n.name))return r}}(l,g);if(null!=S){var M=u[S]||(u[S]={axesInfo:{}});M.axesInfo[_]=w,M.mapper=l[S].mapper,w.linkGroup=M}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==t.get(["axisPointer","show"],!0)&&(0,r.each)(e.coordSysAxesInfo[h(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function a(e,t){return"all"===e||(0,r.isArray)(e)&&(0,r.indexOf)(e,t)>=0||e===t}function s(e){var t=l(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=c(n);null==o&&(r.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function l(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[h(e)]}function u(e){var t=l(e);return t&&t.axisPointerModel}function c(e){return!!e.get(["handle","show"])}function h(e){return e.type+"||"+e.id}},94359:function(e,t,n){n.d(t,{BL:()=>v,Zh:()=>f,fk:()=>h,gf:()=>g,gk:()=>p,uE:()=>y});n(92745);var i=n(6836),r=n(59214),o=n(559),a=n(94485),s=n(8982),l=n(31690),u=n(64283),c=n(33666);function h(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle()).fill=null:"shadow"===n&&((t=i.getAreaStyle()).stroke=null),t}function d(e,t,n,i,r){var s=p(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),u=a.MY(l.get("padding")||0),h=l.getFont(),d=o.lP(s,h),f=r.position,g=d.width+u[1]+u[3],v=d.height+u[0]+u[2],y=r.align;"right"===y&&(f[0]-=g),"center"===y&&(f[0]-=g/2);var m=r.verticalAlign;"bottom"===m&&(f[1]-=v),"middle"===m&&(f[1]-=v/2),function(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(f,g,v,i);var x=l.get("backgroundColor");x&&"auto"!==x||(x=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:(0,c.Lr)(l,{text:s,font:h,fill:l.getTextColor(),padding:u,backgroundColor:x}),z2:10}}function p(e,t,n,r,o){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:o.precision}),s=o.formatter;if(s){var u={value:l.DX(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};i.each(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&u.seriesData.push(r)})),i.isString(s)?a=s.replace("{value}",a):i.isFunction(s)&&(a=s(u))}return a}function f(e,t,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(e,t,n,i,r,o){var a=u.Z.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),d(t,i,r,o,{position:f(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function v(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function y(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}},25248:function(e,t,n){n.d(t,{Z:()=>h});n(92745);var i=n(9065),r=n(6836),o=n(72255),a=n(8455),s=n(31936),l=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),u=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,i.__extends)(t,e),t.prototype.init=function(e,t,n){var i=c(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=c(e);(0,r.merge)(this.option,e,!0),(0,r.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;(0,r.each)([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=(0,r.createHashMap)();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return(0,r.each)(a.I,(function(n){var i=this.getReferringComponents((0,a.jQ)(n),s.iP);if(i.specified){t=!0;var o=new l;(0,r.each)(i.models,(function(e){o.add(e.componentIndex)})),e.set(n,o)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var o="vertical"===t?"y":"x";u(n.findComponents({mainType:o+"Axis"}),o)}i&&u(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function u(t,n){var o=t[0];if(o){var a=new l;if(a.add(o.componentIndex),e.set(n,a),i=!1,"x"===n||"y"===n){var u=o.getReferringComponents("grid",s.C6).models[0];u&&(0,r.each)(t,(function(e){o.componentIndex!==e.componentIndex&&u===e.getReferringComponents("grid",s.C6).models[0]&&a.add(e.componentIndex)}))}}}i&&(0,r.each)(a.I,(function(t){if(i){var r=n.findComponents({mainType:(0,a.jQ)(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new l;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");(0,r.each)([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent((0,a.jQ)(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){(0,r.each)(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent((0,a.jQ)(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;(0,r.each)([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;(0,r.each)(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(o.Z);function c(e){var t={};return(0,r.each)(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}const h=u},33012:function(e,t,n){n.d(t,{Z:()=>o});var i=n(9065),r=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.__extends)(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(n(65160).Z);const o=r},8455:function(e,t,n){n.d(t,{BL:()=>l,I:()=>r,jQ:()=>s,kc:()=>a,rg:()=>u});n(92745);var i=n(6836),r=["x","y","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function a(e){var t=e.get("coordinateSystem");return(0,i.indexOf)(o,t)>=0}function s(e){return e+"Axis"}function l(e,t){var n,r=(0,i.createHashMap)(),o=[],a=(0,i.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},(function(e){a.get(e.uid)||l(e)}));do{n=!1,e.eachComponent("dataZoom",s)}while(n);function s(e){!a.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}(e)&&(l(e),n=!0)}function l(e){a.set(e.uid,!0),o.push(e),e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return o}function u(e){var t=e.ecModel,n={infoList:[],infoMap:(0,i.createHashMap)()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(s(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,l=n.infoMap.get(a);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(a,l)),l.axisModels.push(r)}}})),n}},84716:function(e,t,n){n.d(t,{N:()=>ie});var i=n(1420),r=n(9065),o=n(25248),a=n(74440),s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.type="dataZoom.inside",t.defaultOption=(0,a.ZL)(o.Z.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(o.Z);const l=s;var u=n(33012),c=n(1237),h=(n(92745),n(18539)),d=n(55131),p=n(72871),f=n(6836);function g(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(d.sT(i.event),v(e,t,n,i,r))}function v(e,t,n,i,r){r.isAvailableBehavior=(0,f.bind)(y,null,n,i),e.trigger(t,r)}function y(e,t,n){var i=n[e];return!e||i&&(!(0,f.isString)(i)||t.event[i+"Key"])}const m=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=(0,f.bind)(n._mousedownHandler,n),r=(0,f.bind)(n._mousemoveHandler,n),o=(0,f.bind)(n._mouseupHandler,n),a=(0,f.bind)(n._mousewheelHandler,n),s=(0,f.bind)(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=(0,f.defaults)((0,f.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return(0,r.__extends)(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!d.x1(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&y("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!p.Tf(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,a=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&d.sT(e.event),v(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){d.x1(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=y("zoomOnMouseWheel",e,this._opt),n=y("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1;g(this,"zoom","zoomOnMouseWheel",e,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);g(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){p.Tf(this._zr,"globalPan")||g(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(h.Z);var x=n(73474),_=n(31936),b=n(8455),w=(0,_.Yf)();function S(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function M(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function I(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function T(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=w(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,f.createHashMap)());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=(0,b.rg)(e);(0,f.each)(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(e,t){var n={model:t,containsPoint:(0,f.curry)(I,t),dispatchAction:(0,f.curry)(M,e),dataZoomInfoMap:null,controller:null},i=n.controller=new m(e.getZr());return(0,f.each)(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(t,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=(0,f.createHashMap)())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=function(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),x.T9(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else S(i,e)}))}))}var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return(0,r.__extends)(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){w(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}(i,t,{pan:(0,f.bind)(A.pan,this),zoom:(0,f.bind)(A.zoom,this),scrollMove:(0,f.bind)(A.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=w(e).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||S(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(u.Z),A={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=L[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return(0,c.Z)(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:k((function(e,t,n,i,r,o){var a=L[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:k((function(e,t,n,i,r,o){return L[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n).signal*(e[1]-e[0])*o.scrollDelta}))};function k(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return(0,c.Z)(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var L={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const P=C;var D=n(24237);function O(e){(0,D.Z)(e),e.registerComponentModel(l),e.registerComponentView(P),T(e)}var R=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=(0,a.ZL)(o.Z.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(o.Z);const Z=R;n(22139);var z=n(46547),E=n(74777),B=n(4142),V=n(58733),N=n(31410),H=n(59214),F=n(62672),G=n(96131),W=n(34956),Y=n(73372),U=n(88458),X=n(33666),j=z.Z,q="horizontal",K="vertical",Q=["line","bar","candlestick","scatter"],J={easing:"cubicOut",duration:100,delay:0},$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return(0,r.__extends)(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=(0,f.bind)(this._onBrush,this),this._onBrushEnd=(0,f.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),x.T9(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){x.ZH(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new E.Z;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},o=this._orient===q?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=W.tE(e.option);(0,f.each)(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=W.ME(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===K&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==q||r?n===q&&r?{scaleY:a?1:-1,scaleX:-1}:n!==K||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new j({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new j({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:(0,f.bind)(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,t[1]],p=[0,t[0]],f=[[t[0],0],[0,0]],g=[],v=p[1]/(r.count()-1),y=0,m=Math.round(r.count()/t[0]);r.each([a],(function(e,t){if(m>0&&t%m)y+=v;else{var n=null==e||isNaN(e)||""===e,i=n?0:(0,G.NU)(e,u,d,!0);n&&!h&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([y,0]),g.push([y,0])),f.push([y,i]),g.push([y,i]),y+=v,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=w(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(e){var t=x.getModel(e?"selectedDataBackground":"dataBackground"),n=new E.Z,i=new B.Z({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new V.Z({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();(0,f.each)(a,(function(e){if(!(n||!0!==t&&(0,f.indexOf)(Q,e.get("type"))<0)){var a,s=i.getComponent((0,b.jQ)(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new j({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new j({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,f.each)([0,1],(function(t){var o=a.get("handleIcon");!U.Pw[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=(0,U.th)(o,-1,0,2,2,null,!0);s.attr({cursor:ee(this._orient),draggable:!0,drift:(0,f.bind)(this._onDragMove,this,t),ondragend:(0,f.bind)(this._onDragEnd,this),onmouseover:(0,f.bind)(this._showDataInfo,this,!0),onmouseout:(0,f.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=(0,G.GM)(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,Y.vF)(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var h=a.getModel("textStyle"),d=(a.get("handleLabel")||{}).show||!1;e.add(i[t]=new N.ZP({silent:!0,invisible:!d,style:(0,X.Lr)(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=(0,G.GM)(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new z.Z({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),g=.8*d,v=t.moveHandleIcon=(0,U.th)(a.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);v.silent=!0,v.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(d,10));(h=t.moveZone=new z.Z({invisible:!0,shape:{y:o[1]-y,height:d+y}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(v),r.add(h)}h.attr({draggable:!0,cursor:ee(this._orient),drift:(0,f.bind)(this._onDragMove,this,"all"),ondragstart:(0,f.bind)(this._showDataInfo,this,!0),ondragend:(0,f.bind)(this._onDragEnd,this),onmouseover:(0,f.bind)(this._showDataInfo,this,!0),onmouseout:(0,f.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[(0,G.NU)(e[0],[0,100],t,!0),(0,G.NU)(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];(0,c.Z)(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?(0,G.NU)(o.minSpan,a,r,!0):null,null!=o.maxSpan?(0,G.NU)(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=(0,G.dt)([(0,G.NU)(i[0],r,a,!0),(0,G.NU)(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=(0,G.dt)(n.slice()),r=this._size;(0,f.each)([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new z.Z,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=(0,G.dt)(this._handleEnds.slice());function h(e){var t=H.getTransform(n.handles[e].parent,this.group),a=H.transformDirection(0===e?"right":"left",t),s=this._handleWidth/2+5,l=H.applyTransform([c[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===q?"middle":a,align:r===q?a:"center",text:o[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return(0,f.isFunction)(i)?i(e,o):(0,f.isString)(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=e||this._dragging?n:t,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!i),o[1].attr("invisible",!i),r.moveHandle&&this.api[i?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,d.sT(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=H.applyTransform([t,n],r,!0),a=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new F.Z(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=(0,G.dt)([(0,G.NU)(n.x,i,r,!0),(0,G.NU)(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(d.sT(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new j({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?J:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=(0,b.rg)(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(u.Z);function ee(e){return"vertical"===e?"ns-resize":"ew-resize"}const te=$;function ne(e){e.registerComponentModel(Z),e.registerComponentView(te),(0,D.Z)(e)}function ie(e){(0,i.D)(O),(0,i.D)(ne)}},24237:function(e,t,n){n.d(t,{Z:()=>g});n(92745);var i=n(6836),r=n(8455),o=(n(9359),n(70104),n(96131)),a=n(1237),s=n(31690),l=n(4129),u=n(31936),c=i.each,h=o.dt;const d=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if((0,r.kc)(t)){var n=(0,r.jQ)(this._dimName),i=t.getReferringComponents(n,u.C6).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return i.clone(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];c(["start","end"],(function(a,c){var h=e[a],d=e[a+"Value"];"percent"===r[c]?(null==h&&(h=s[c]),d=i.parse(o.NU(h,s,n))):(t=!0,d=null==d?n[c]:i.parse(d),h=o.NU(d,n,s)),u[c]=null==d||isNaN(d)?n[c]:d,l[c]=null==h||isNaN(h)?s[c]:h})),h(u),h(l);var d=this._minMaxSpan;function p(e,t,n,r,s){var l=s?"Span":"ValueSpan";(0,a.Z)(0,e,n,"all",d["min"+l],d["max"+l]);for(var u=0;u<2;u++)t[u]=o.NU(e[u],n,r,!0),s&&(t[u]=i.parse(t[u]))}return t?p(u,l,n,s,!1):p(l,u,s,n,!0),{valueWindow:u,percentWindow:l}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var i=[1/0,-1/0];c(n,(function(e){(0,s.AH)(i,e.getData(),t)}));var r=e.getAxisModel(),o=(0,l.Qw)(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),o=e.get("filterMode"),a=this._valueWindow;"none"!==o&&c(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===o){var s=t.getStore(),l=i.map(r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,i,o=0;o<r.length;o++){var u=s.get(l[o],e),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(i=!0),h&&(t=!0),d&&(n=!0)}return i&&t&&n}))}else c(r,(function(n){if("empty"===o)e.setData(t=t.map(n,(function(e){return function(e){return e>=a[0]&&e<=a[1]}(e)?e:NaN})));else{var i={};i[n]=a,t.selectRange(i)}}));c(r,(function(e){t.setApproximateExtent(a,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;c(["min","max"],(function(i){var r=t.get(i+"Span"),a=t.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?r=o.NU(n[0]+a,n,[0,100],!0):null!=r&&(a=o.NU(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=a}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=o.M9(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();const p={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var a=e.getComponent((0,r.jQ)(i),o);t(i,o,a,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new d(t,i,o,e),n.push(r.__dzAxisProxy))}));var o=(0,i.createHashMap)();return(0,i.each)(n,(function(e){(0,i.each)(e.getTargetSeriesModels(),(function(e){o.set(e.uid,e)}))})),o},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var f=!1;function g(e){f||(f=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,p),function(e){e.registerAction("dataZoom",(function(e,t){var n=(0,r.BL)(t,e);(0,i.each)(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}},7521:function(e,t,n){n.d(t,{N:()=>c});var i=n(9065),r=n(72255),o=n(65160),a=n(21202),s=n(87705),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return(0,i.__extends)(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new s.U(this),(0,s.t)(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),(0,s.t)(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:a.fY},t}(r.Z),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return(0,i.__extends)(t,e),t.type="dataset",t}(o.Z);function c(e){e.registerComponentModel(l),e.registerComponentView(u)}},32169:function(e,t,n){n.d(t,{N:()=>re});n(22139);var i=n(9065),r=n(65160),o=n(72255),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(o.Z);const s=a;var l=n(46547),u=n(6836),c=n(46719),h=n(31936),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",h.C6).models[0]},t.type="cartesian2dAxis",t}(o.Z);u.mixin(d,c.W);var p={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},f=u.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},p),g=u.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},p);const v={category:f,value:g,time:u.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},g),log:u.defaults({logBase:10},g)};var y=n(34956),m=n(53169),x={value:1,category:1,time:1,log:1};function _(e,t,n,r){(0,u.each)(x,(function(o,a){var s=(0,u.merge)((0,u.merge)({},v[a],!0),r,!0),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return(0,i.__extends)(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=(0,y.YD)(this),i=n?(0,y.tE)(e):{},r=t.getTheme();(0,u.merge)(e,r.get(a+"Axis")),(0,u.merge)(e,this.getDefaultOption()),e.type=b(e),n&&(0,y.dt)(e,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=m.Z.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=s,n}(n);e.registerComponentModel(l)})),e.registerSubTypeDefaulter(t+"Axis",b)}function b(e){return e.type||(e.data?"category":"value")}n(92745);var w=n(31690),S=n(31117);const M=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return u.map(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),u.filter(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}();var I=n(8982),T=n(58881),C=["x","y"];function A(e){return"interval"===e.type||"time"===e.type}var k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=C,t}return(0,i.__extends)(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(A(e)&&A(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=(0,I.invert)([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new S.Z(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return(0,T.applyTransform)(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return(0,T.applyTransform)(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1])-e,r=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-i+e,a=Math.max(n[0],n[1])-r+e;return new S.Z(i,r,o,a)},t}(M);const L=k;const P=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return(0,i.__extends)(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(n(23573).Z);var D=n(23161),O=n(22976),R=n(96131),Z=n(92865),z=Math.log;function E(e,t){return e.getCoordSysModel()===t}function B(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)V(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&V(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(e){return e.dim+"_"+e.index}}function V(e){return e&&"category"!==e.type&&"time"!==e.type&&(0,w.Yb)(e)}const N=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=C,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=(0,u.keys)(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;(0,O.lM)(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):((0,w.Jk)(l,s),(0,O.lM)(l)&&(t=a))}r.length&&(t||(t=r.pop(),(0,w.Jk)(t.scale,t.model)),(0,u.each)(r,(function(e){!function(e,t,n){var i=Z.Z.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=(0,w.Xv)(e,t),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===e.type){var d=z(e.base);u=[z(u[0])/d,z(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=i.getExtent.call(e);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=i.getInterval.call(e),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=(0,O.r1)(f),v=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=(0,O.r1)(f),g=u[1]-f*a;else{e.getTicks().length-1>a&&(f=(0,O.r1)(f));var y=f*a;v=Math.ceil(u[1]/f)*f,(g=(0,R.NM)(v-y))<0&&u[0]>=0?(g=0,v=(0,R.NM)(y)):v>0&&u[1]<=0&&(v=0,g=-(0,R.NM)(y))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+f*m,v+f*x),i.setInterval.call(e,f),(m||x)&&i.setNiceExtent.call(e,g+f,v-f)}(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};(0,u.each)(n.x,(function(e){B(n,"y",e,r)})),(0,u.each)(n.y,(function(e){B(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=(0,y.ME)(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){(0,u.each)(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),function(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}(e,t?o.x:o.y)}))}s(),r&&((0,u.each)(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=(0,w.Do)(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),(0,u.each)(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}(0,u.isObject)(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",h.C6).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",h.C6).models[0],a=e.gridModel,s=this._coordsList;if(i)t=i.coordinateSystem,(0,u.indexOf)(s,t)<0&&(t=null);else if(r&&o)t=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(E(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new P(t,(0,w.aG)(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[t][i]=u,s[t]++}}}this._axesMap=a,(0,u.each)(a.x,(function(t,n){(0,u.each)(a.y,(function(r,o){var a="x"+n+"y"+o,s=new L(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(r)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){(0,u.each)((0,w.PY)(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}(0,u.each)(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if((0,D.Yh)(e)){var i=(0,D.Mk)(e),r=i.xAxisModel,o=i.yAxisModel;if(!E(r,t)||!E(o,t))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return(0,u.each)(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);(0,u.indexOf)(t,r)<0&&t.push(r),(0,u.indexOf)(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if((0,D.Yh)(e)){var t=(0,D.Mk)(e),n=t.xAxisModel,i=t.yAxisModel;0;var r=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=C,e}();var H=n(74777),F=n(59214),G=n(55857),W=n(64283),Y=n(50308),U=(0,h.Yf)();var X=["axisLine","axisTickLabel","axisName"],j=["splitArea","splitLine","minorSplitLine"],q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,i.__extends)(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new H.Z,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=D.bK(a,t),l=new W.Z(t,u.extend({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if((0,O.lM)(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));u.each(X,l.add,l),this._axisGroup.add(l.getGroup()),u.each(j,(function(e){t.get([e,"show"])&&K[e](this,this._axisGroup,t,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||F.groupTransition(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){U(this).splitAreaColors=null},t.type="cartesianAxis",t}(Y.Z),K={splitLine:function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=!1!==o.get("showMinLine"),c=!1!==o.get("showMaxLine");s=u.isArray(s)?s:[s];for(var h=i.coordinateSystem.getRect(),d=r.isHorizontal(),p=0,f=r.getTicksCoords({tickModel:o}),g=[],v=[],y=a.getLineStyle(),m=0;m<f.length;m++){var x=r.toGlobalCoord(f[m].coord);if((0!==m||l)&&(m!==f.length-1||c)){var _=f[m].tickValue;d?(g[0]=x,g[1]=h.y,v[0]=x,v[1]=h.y+h.height):(g[0]=h.x,g[1]=x,v[0]=h.x+h.width,v[1]=x);var b=p++%s.length,w=new G.Z({anid:null!=_?"line_"+_:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:u.defaults({stroke:s[b]},y),silent:!0});F.subPixelOptimizeLine(w.shape,y.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=r.toGlobalCoord(l[d][p].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new G.Z({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});F.subPixelOptimizeLine(g.shape,h.lineWidth),t.add(g)}},splitArea:function(e,t,n,i){!function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),c=i.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var d=s.length,p=U(e).splitAreaColors,f=u.createHashMap(),g=0;if(p)for(var v=0;v<h.length;v++){var y=p.get(h[v].tickValue);if(null!=y){g=(y+(d-1)*v)%d;break}}var m=r.toGlobalCoord(h[0].coord),x=a.getAreaStyle();for(s=u.isArray(s)?s:[s],v=1;v<h.length;v++){var _=r.toGlobalCoord(h[v].coord),b=void 0,w=void 0,S=void 0,M=void 0;r.isHorizontal()?(b=m,w=c.y,S=_-b,M=c.height,m=b+S):(b=c.x,w=m,S=c.width,m=w+(M=_-w));var I=h[v-1].tickValue;null!=I&&f.set(I,g),t.add(new l.Z({anid:null!=I?"area_"+I:null,shape:{x:b,y:w,width:S,height:M},style:u.defaults({fill:s[g]},x),autoBatch:!0,silent:!0})),g=(g+1)%d}U(e).splitAreaColors=f}}}(e,t,n,i)}},Q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.__extends)(t,e),t.type="xAxis",t}(q),J=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Q.type,t}return(0,i.__extends)(t,e),t.type="yAxis",t}(q);var $=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return(0,i.__extends)(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new l.Z({shape:e.coordinateSystem.getRect(),style:(0,u.defaults)({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(r.Z),ee={offset:0};function te(e){e.registerComponentView($),e.registerComponentModel(s),e.registerCoordinateSystem("cartesian2d",N),_(e,"x",d,ee),_(e,"y",d,ee),e.registerComponentView(Q),e.registerComponentView(J),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}var ne=n(17806),ie=n(1420);function re(e){(0,ie.D)(te),(0,ie.D)(ne.N)}},72871:function(e,t,n){n.d(t,{Ar:()=>s,Tf:()=>l,qn:()=>a});var i=n(62670),r=n(6836),o="\0_ec_interaction_mutex";function a(e,t,n){u(e)[t]=n}function s(e,t,n){var i=u(e);i[t]===n&&(i[t]=null)}function l(e,t){return!!u(e)[t]}function u(e){return e[o]||(e[o]={})}i.zl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},r.noop)},58351:function(e,t,n){n.d(t,{b:()=>a,l:()=>s});var i=n(34956),r=n(94485),o=n(46547);function a(e,t,n){var r=t.getBoxLayoutParams(),o=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},s=(0,i.ME)(r,a,o);(0,i.BZ)(t.get("orient"),e,t.get("itemGap"),s.width,s.height),(0,i.p$)(e,r,a,o)}function s(e,t){var n=r.MY(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new o.Z({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}},1237:function(e,t,n){function i(e,t,n,i,a,s){e=e||0;var l=n[1]-n[0];if(null!=a&&(a=o(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===i){var u=Math.abs(t[1]-t[0]);u=o(u,[0,l]),a=s=o(u,[a,s]),i=0}t[0]=o(t[0],n),t[1]=o(t[1],n);var c=r(t,i);t[i]+=e;var h,d=a||0,p=n.slice();return c.sign<0?p[0]+=d:p[1]-=d,t[i]=o(t[i],p),h=r(t,i),null!=a&&(h.sign!==c.sign||h.span<a)&&(t[1-i]=t[i]+c.sign*a),h=r(t,i),null!=s&&h.span>s&&(t[1-i]=t[i]+h.sign*s),t}function r(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function o(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}n.d(t,{Z:()=>i})},39718:function(e,t,n){n.d(t,{N:()=>j});var i=n(1420),r=(n(92745),n(9065)),o=n(6836),a=n(30057),s=n(31936),l=n(72255),u=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,r.__extends)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),o.isArray(t)&&o.each(t,(function(e,i){o.isString(e)&&(e={type:e}),t[i]=o.merge(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(a)),a.length?t=t.concat(a):r=!0}else r=!0;r&&(0,s.yu)(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=o.createHashMap(),l=o.map(i,(function(e){return(o.isString(e)||o.isNumber(e))&&(e={name:e}),r.get(e.name)?null:(r.set(e.name,!0),new a.Z(e,this,this.ecModel))}),this);this._data=o.filter(l,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;o.each(n,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;o.each(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;o.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&o.indexOf(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(l.Z);const c=u;n(22139);var h=n(6866),d=n(74777),p=n(31410),f=n(46547),g=n(59214),v=n(73372),y=n(33666),m=n(58351),x=n(34956),_=n(65160),b=n(88458),w=n(20890),S=n(89523),M=o.curry,I=o.each,T=d.Z,C=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return(0,r.__extends)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new T),this.group.add(this._selectorGroup=new T),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),a=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===a?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(r,e,t,n,s,a,l);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),d=x.ME(u,c,h),p=this.layoutInner(e,r,d,i,s,l),f=x.ME(o.defaults({width:p.width,height:p.height},u),c,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,m.l)(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,a,s){var l=this.getContentGroup(),u=o.createHashMap(),c=t.get("selectedMode"),d=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),I(t.getData(),(function(r,a){var s=r.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var p=new T;return p.newline=!0,void l.add(p)}var f=n.getSeriesByName(s)[0];if(!u.get(s)){if(f){var g=f.getData(),v=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),m=g.getVisual("style"),x=this._createItem(f,s,a,r,t,e,v,m,y,c,i);x.on("click",M(A,s,null,i,d)).on("mouseover",M(L,f.name,null,i,d)).on("mouseout",M(P,f.name,null,i,d)),n.ssr&&x.eachChild((function(e){var t=(0,S.A)(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),u.set(s,!0)}else n.eachRawSeries((function(l){if(!u.get(s)&&l.legendVisualProvider){var p=l.legendVisualProvider;if(!p.containName(s))return;var f=p.indexOfName(s),g=p.getItemVisual(f,"style"),v=p.getItemVisual(f,"legendIcon"),y=(0,h.parse)(g.fill);y&&0===y[3]&&(y[3]=.2,g=o.extend(o.extend({},g),{fill:(0,h.stringify)(y,"rgba")}));var m=this._createItem(l,s,a,r,t,e,{},g,v,c,i);m.on("click",M(A,null,s,i,d)).on("mouseover",M(L,null,s,i,d)).on("mouseout",M(P,null,s,i,d)),n.ssr&&m.eachChild((function(e){var t=(0,S.A)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),u.set(s,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,a,s)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();I(e,(function(e){var i=e.type,r=new p.ZP({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);(0,y.ni)(r,{normal:a,emphasis:s},{defaultText:e.title}),(0,v.vF)(r)}))},t.prototype._createItem=function(e,t,n,i,r,a,s,l,u,c,h){var d=e.visualDrawType,m=r.get("itemWidth"),x=r.get("itemHeight"),_=r.isSelected(t),S=i.get("symbolRotate"),M=i.get("symbolKeepAspect"),C=i.get("icon"),A=function(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),I(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?(0,w.I)(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]);"inherit"===u.stroke&&(u.stroke=i[c]);"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity);s(u,i);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(u=C||u||"roundRect",i,s,l,d,_,h),k=new T,L=i.getModel("textStyle");if(!o.isFunction(e.getLegendIcon)||C&&"inherit"!==C){var P="inherit"===C&&e.getData().getVisual("symbol")?"inherit"===S?e.getData().getVisual("symbolRotate"):S:0;k.add(function(e){var t=e.icon||"roundRect",n=(0,b.th)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:m,itemHeight:x,icon:u,iconRotate:P,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:M}))}else k.add(e.getLegendIcon({itemWidth:m,itemHeight:x,icon:u,iconRotate:S,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:M}));var D="left"===a?m+5:-5,O=a,R=r.get("formatter"),Z=t;o.isString(R)&&R?Z=R.replace("{name}",null!=t?t:""):o.isFunction(R)&&(Z=R(t));var z=_?L.getTextColor():i.get("inactiveColor");k.add(new p.ZP({style:(0,y.Lr)(L,{text:Z,x:D,y:x/2,fill:z,align:O,verticalAlign:"middle"},{inheritColor:z})}));var E=new f.Z({shape:k.getBoundingRect(),style:{fill:"transparent"}}),B=i.getModel("tooltip");return B.get("show")&&g.setTooltipConfig({el:E,componentModel:r,itemName:t,itemTooltipOption:B.option}),k.add(E),k.eachChild((function(e){e.silent=!0})),E.silent=!c,this.getContentGroup().add(k),(0,v.vF)(k),k.__legendDataIndex=n,k},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();x.BZ(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){x.BZ("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(_.Z);function A(e,t,n,i){P(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),L(e,t,n,i)}function k(e){for(var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(t=n[i].states.emphasis);)i++;return t&&t.hoverLayer}function L(e,t,n,i){k(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function P(e,t,n,i){k(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}const D=C;function O(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function R(e,t,n){var i="allSelect"===e||"inverseSelect"===e,r={},a=[];n.eachComponent({mainType:"legend",query:t},(function(n){i?n[e]():n[e](t.name),Z(n,r),a.push(n.componentIndex)}));var s={};return n.eachComponent("legend",(function(e){(0,o.each)(r,(function(t,n){e[t?"select":"unSelect"](n)})),Z(e,s)})),i?{selected:s,legendIndex:a}:{name:t.name,selected:s}}function Z(e,t){var n=t||{};return(0,o.each)(e.getData(),(function(t){var i=t.get("name");if("\n"!==i&&""!==i){var r=e.isSelected(i);(0,o.hasOwn)(n,i)?n[i]=n[i]&&r:n[i]=r}})),n}function z(e){e.registerComponentModel(c),e.registerComponentView(D),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,O),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",(0,o.curry)(R,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,o.curry)(R,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,o.curry)(R,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,o.curry)(R,"select")),e.registerAction("legendUnSelect","legendunselected",(0,o.curry)(R,"unSelect"))}(e)}var E=n(74440),B=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=(0,x.tE)(t);e.prototype.init.call(this,t,n,i),V(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),V(this,this.option,t)},t.type="legend.scroll",t.defaultOption=(0,E.ZL)(c.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(c);function V(e,t,n){var i=[1,1];i[e.getOrient().index]=0,(0,x.dt)(t,n,{type:"box",ignoreSize:!!i})}const N=B;var H=n(42933),F=d.Z,G=["width","height"],W=["x","y"],Y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,r.__extends)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new F),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new F)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,r,a,s,l){var u=this;e.prototype.renderInner.call(this,t,n,i,r,a,s,l);var c=this._controllerGroup,h=n.get("pageIconSize",!0),d=o.isArray(h)?h:[h,h];v("pagePrev",0);var f=n.getModel("pageTextStyle");function v(e,t){var i=e+"DataIndex",a=g.createIcon(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:o.bind(u._pageGo,u,i,n,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,c.add(a)}c.add(new p.ZP({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,a){var s=this.getSelectorGroup(),l=e.getOrient().index,u=G[l],c=W[l],h=G[1-l],d=W[1-l];r&&x.BZ("horizontal",s,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),f=s.getBoundingRect(),g=[-f.x,-f.y],v=o.clone(n);r&&(v[u]=n[u]-f[u]-p);var y=this._layoutContentAndController(e,i,v,l,u,h,d,c);if(r){if("end"===a)g[l]+=y[u]+p;else{var m=f[u]+p;g[l]-=m,y[c]-=m}y[u]+=f[u]+p,g[1-l]+=y[d]+y[h]/2-f[h]/2,y[h]=Math.max(y[h],f[h]),y[d]=Math.min(y[d],f[d]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,t,n,i,r,a,s,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;x.BZ(e.get("orient"),u,e.get("itemGap"),i?n.width:null,i?null:n.height),x.BZ("horizontal",h,e.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),p=h.getBoundingRect(),g=this._showController=d[r]>n[r],v=[-d.x,-d.y];t||(v[i]=u[l]);var y=[0,0],m=[-p.x,-p.y],_=o.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));g&&("end"===e.get("pageButtonPosition",!0)?m[i]+=n[r]-p[r]:y[i]+=p[r]+_);m[1-i]+=d[a]/2-p[a]/2,u.setPosition(v),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[r]=g?n[r]:d[r],b[a]=Math.max(d[a],p[a]),b[s]=Math.min(0,p[s]+m[1-i]),c.__rectSize=n[r],g){var w={x:0,y:0};w[r]=Math.max(n[r]-p[r]-_,0),w[a]=b[a],c.setClipPath(new f.Z({shape:w})),c.__rectSize=w[r]}else h.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(e);return null!=S.pageIndex&&H.D(u,{x:S.contentPosition[0],y:S.contentPosition[1]},g?e:null),this._updatePageInfoView(e,S),b},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;o.each(["pagePrev","pageNext"],(function(i){var r=null!=t[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;i&&r&&i.setStyle("text",o.isString(r)?r.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):r({current:s,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=G[r],a=W[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,v=p,y=null;f<=c;++f)(!(y=m(l[f]))&&v.e>g.s+i||y&&!x(y,g.s))&&(g=v.i>g.i?v:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),v=y;for(f=s-1,g=p,v=p,y=null;f>=-1;--f)(y=m(l[f]))&&x(v,y.s)||!(g.i<v.i)||(v=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=y;return d;function m(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(D);const U=Y;function X(e){(0,i.D)(z),e.registerComponentModel(N),e.registerComponentView(U),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}function j(e){(0,i.D)(z),(0,i.D)(X)}},22394:function(e,t,n){n.d(t,{N:()=>_t});var i=n(1420),r=n(9065),o=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.type="dataZoom.select",t}(n(25248).Z);const a=o;var s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.type="dataZoom.select",t}(n(33012).Z);const l=s;var u=n(24237);function c(e){e.registerComponentModel(a),e.registerComponentView(l),(0,u.Z)(e)}var h=n(6836),d=function(){},p={};function f(e,t){p[e]=t}function g(e){return p[e]}var v=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;h.each(this.option.feature,(function(e,n){var i=g(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),h.merge(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(n(72255).Z);const y=v;n(92745),n(22139);var m=n(559),x=n(59214),_=n(73372),b=n(30057),w=n(8942),S=n(58351),M=n(65160),I=n(74440),T=n(31410),C=n(33666),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];h.each(s,(function(e,t){u.push(t)})),new w.Z(this._featureNames||[],u).add(c).update(c).remove(h.curry(c,null)).execute(),this._featureNames=u,S.b(r,e,n),r.add(S.l(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!h.isFunction(l)&&t){var u=l.style||(l.style={}),c=m.lP(t,T.ZP.makeFont(u)),d=e.x+r.x,p=!1;e.y+r.y+o+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):d-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(c,p){var f,v=u[c],y=u[p],m=s[v],w=new b.Z(m,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===v&&(m.title=i.newTitle),v&&!y){if(function(e){return 0===e.indexOf("my")}(v))f={onclick:w.option.onclick,featureName:v};else{var S=g(v);if(!S)return;f=new S}l[v]=f}else if(!(f=l[y]))return;f.uid=(0,I.Kr)("toolbox-feature"),f.model=w,f.ecModel=t,f.api=n;var M=f instanceof d;v||!y?!w.get("show")||M&&f.unusable?M&&f.remove&&f.remove(t,n):(!function(i,s,l){var u,c,p=i.getModel("iconStyle"),f=i.getModel(["emphasis","iconStyle"]),g=s instanceof d&&s.getIcons?s.getIcons():i.get("icon"),v=i.get("title")||{};h.isString(g)?(u={})[l]=g:u=g;h.isString(v)?(c={})[l]=v:c=v;var y=i.iconPaths={};h.each(u,(function(l,u){var d=x.createIcon(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(p.getItemStyle()),d.ensureState("emphasis").style=f.getItemStyle();var g=new T.ZP({style:{text:c[u],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null,font:(0,C.qT)({fontStyle:f.get("textFontStyle"),fontFamily:f.get("textFontFamily"),fontSize:f.get("textFontSize"),fontWeight:f.get("textFontWeight")},t)},ignore:!0});d.setTextContent(g),x.setTooltipConfig({el:d,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),d.__title=c[u],d.on("mouseover",(function(){var t=f.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";g.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),d.setTextConfig({position:f.get("textPosition")||i}),g.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),g.hide()})),("emphasis"===i.get(["iconStatus",u])?_.fD:_.Mh)(d),r.add(d),d.on("click",h.bind(s.onclick,s,t,n,u)),y[u]=d}))}(w,f,v),w.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?_.fD:_.Mh)(i[e])},f instanceof d&&f.render&&f.render(w,t,n,i)):M&&f.dispose&&f.dispose(t,n)}},t.prototype.updateView=function(e,t,n,i){h.each(this._features,(function(e){e instanceof d&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){h.each(this._features,(function(n){n instanceof d&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){h.each(this._features,(function(n){n instanceof d&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(M.Z);const k=A;n(26200),n(25754),n(22246),n(71375),n(15524),n(20267),n(21917),n(56193),n(25020),n(86913),n(21478);var L=n(53970),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=L.Z.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=r?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,p=new Uint8Array(d);d--;)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var v=g.contentWindow,y=v.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),v.focus(),y.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var m=n.get("lang"),x='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',_=window.open();_.document.write(x),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(d);const D=P;var O=n(62670),R=n(31936),Z="__ec_magicType_stack__",z=[["line","bar"],["stack"]],E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return h.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(B[n]){var o,a={series:[]};h.each(z,(function(e){h.indexOf(e,n)>=0&&h.each(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(e){var t=e.subType,r=e.id,o=B[n](t,r,e,i);o&&(h.defaults(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=e.getReferringComponents(u,R.C6).models[0].componentIndex;a[u]=a[u]||[];for(var d=0;d<=c;d++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=h.merge({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},t}(d),B={line:function(e,t,n,i){if("bar"===e)return h.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return h.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===Z;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),h.merge({id:t,stack:r?"":Z},i.get(["option","stack"])||{},!0)}};O.zl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));const V=E;var N=n(55131),H=new Array(60).join("-"),F="\t";function G(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var W=new RegExp("[\t]+","g");function Y(e,t){var n=e.split(new RegExp("\n*"+H+"\n*","g")),i={series:[]};return h.each(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(F)>=0)return!0}(e)){var r=function(e){for(var t=e.split(/\n+/g),n=G(t.shift()).split(W),i=[],r=h.map(n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=G(t[o]).split(W);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}(e),o=t[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=function(e){for(var t=e.split(/\n+/g),n=G(t.shift()),i=[],r=0;r<t.length;r++){var o=G(t[r]);if(o){var a=o.split(W),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(e);i.series.push(r)}})),i}var U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),d=function(e){var t,n,i,r=function(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}(e);return{value:h.filter([(n=r.seriesGroupByCategoryAxis,i=[],h.each(n,(function(e,t){var n=e.categoryAxis,r=e.valueAxis.dim,o=[" "].concat(h.map(e.series,(function(e){return e.name}))),a=[n.model.getCategories()];h.each(e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(r),(function(e){return e})))}));for(var s=[o.join(F)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(F))}i.push(s.join("\n"))})),i.join("\n\n"+H+"\n\n")),(t=r.other,h.map(t,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),a=0;a<e-1;a++)i[a]=arguments[a];n.push((o?o+F:"")+i.join(F))})),n.join("\n")})).join("\n\n"+H+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+H+"\n\n"),meta:r.meta}}(e);if(h.isFunction(u)){var p=u(t.getOption());h.isString(p)?s.innerHTML=p:h.isDom(p)&&s.appendChild(p)}else{l.readOnly=i.get("readOnly");var f=l.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=i.get("textColor"),f.borderColor=i.get("textareaBorderColor"),f.backgroundColor=i.get("textareaColor"),l.value=d.value,s.appendChild(l)}var g=d.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),x=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var _=this;function b(){n.removeChild(r),_._dom=null}(0,N.Oo)(m,"click",b),(0,N.Oo)(x,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)b();else{var e;try{e=h.isFunction(c)?c(s,t.getOption()):Y(l.value,g)}catch(e){throw b(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),b()}})),m.innerHTML=a[1],x.innerHTML=a[2],x.style.cssText=m.style.cssText=y,!i.get("readOnly")&&v.appendChild(x),v.appendChild(m),r.appendChild(o),r.appendChild(s),r.appendChild(v),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(d);function X(e,t){return h.map(e,(function(e,n){var i=t&&t[n];if(h.isObject(i)&&!h.isArray(i)){h.isObject(e)&&!h.isArray(e)||(e={value:e});var r=null!=i.name&&null==e.name;return e=h.defaults(e,i),r&&delete e.name,e}return e}))}O.zl({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];h.each(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:X(e.data,r)})}else n.push(h.extend({type:"scatter"},e))})),t.mergeOption(h.defaults({series:n},e.newOption))}));const j=U;var q=h.each,K=(0,R.Yf)();function Q(e){var t=K(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.onclick=function(e,t){!function(e){K(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(d);O.zl({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));const $=J;var ee=n(18539),te=n(74777),ne=n(46547),ie=n(58733),re=n(4142),oe=n(72871),ae=!0,se=Math.min,le=Math.max,ue=Math.pow,ce="globalPan",he={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},de={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},pe={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},fe=0,ge=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new te.Z,n._uid="brushController_"+fe++,(0,h.each)(Fe,(function(e,t){this._handlers[t]=(0,h.bind)(e,this)}),n),n}return(0,r.__extends)(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||oe.qn(t,ce,this._uid),(0,h.each)(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=(0,h.merge)((0,h.clone)(pe),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;oe.Ar(e,ce,this._uid),(0,h.each)(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};(0,h.each)(e,(function(e){t[e.panelId]=(0,h.clone)(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=(0,h.map)(e,(function(e){return(0,h.merge)((0,h.clone)(pe),e,!0)}));var t=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new w.Z(t,e,(function(e,t){return o(e.__brushOption,t)}),o).add(a).update(a).remove((function(e){t[e]!==r&&i.group.remove(t[e])})).execute(),this;function o(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function a(o,a){var s=e[o];if(null!=a&&t[a]===r)n[o]=t[a];else{var l=n[o]=null!=a?(t[a].__brushOption=s,t[a]):ye(i,ve(i,s));_e(i,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),Me(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ee.Z);function ve(e,t){var n=We[t.brushType].createCover(e,t);return n.__brushOption=t,xe(n,t),e.group.add(n),n}function ye(e,t){var n=be(t);return n.endCreating&&(n.endCreating(e,t),xe(t,t.__brushOption)),t}function me(e,t){var n=t.__brushOption;be(t).updateCoverShape(e,t,n.range,n)}function xe(e,t){var n=t.z;null==n&&(n=1e4),e.traverse((function(e){e.z=n,e.z2=n}))}function _e(e,t){be(t).updateCommon(e,t),me(e,t)}function be(e){return We[e.__brushOption.brushType]}function we(e,t,n){var i,r=e._panels;if(!r)return ae;var o=e._transform;return(0,h.each)(r,(function(e){e.isTargetByCursor(t,n,o)&&(i=e)})),i}function Se(e,t){var n=e._panels;if(!n)return ae;var i=t.__brushOption.panelId;return null!=i?n[i]:ae}function Me(e){var t=e._covers,n=t.length;return(0,h.each)(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Ie(e,t){var n=(0,h.map)(e._covers,(function(e){var t=e.__brushOption,n=(0,h.clone)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Te(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Ce(e,t,n,i){var r=new te.Z;return r.add(new ne.Z({name:"main",style:Pe(n),silent:!0,draggable:!0,cursor:"move",drift:(0,h.curry)(Re,e,t,r,["n","s","w","e"]),ondragend:(0,h.curry)(Ie,t,{isEnd:!0})})),(0,h.each)(i,(function(n){r.add(new ne.Z({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,h.curry)(Re,e,t,r,n),ondragend:(0,h.curry)(Ie,t,{isEnd:!0})}))})),r}function Ae(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=le(r,6),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,v=f+r,y=g+r;Le(e,t,"main",a,s,f,g),i.transformable&&(Le(e,t,"w",l,u,o,y),Le(e,t,"e",d,u,o,y),Le(e,t,"n",l,u,v,o),Le(e,t,"s",l,p,v,o),Le(e,t,"nw",l,u,o,o),Le(e,t,"ne",d,u,o,o),Le(e,t,"sw",l,p,o,o),Le(e,t,"se",d,p,o,o))}function ke(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(Pe(n)),r.attr({silent:!i,cursor:i?"move":"default"}),(0,h.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?Oe(e,n[0]):function(e,t){var n=[Oe(e,t[0]),Oe(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?de[o]+"-resize":null})}))}function Le(e,t,n,i,r,o,a){var s,l,u,c,h,d=t.childOfName(n);d&&d.setShape((s=Ee(e,t,[[i,r],[i+o,r+a]]),l=se(s[0][0],s[1][0]),u=se(s[0][1],s[1][1]),c=le(s[0][0],s[1][0]),h=le(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:h-u}))}function Pe(e){return(0,h.defaults)({strokeNoScale:!0},e.brushStyle)}function De(e,t,n,i){var r=[se(e,n),se(t,i)],o=[le(e,n),le(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function Oe(e,t){var n=x.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return x.getTransform(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function Re(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=ze(t,r,o);(0,h.each)(i,(function(e){var t=he[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(De(s[0][0],s[1][0],s[0][1],s[1][1])),_e(t,n),Ie(t,{isEnd:!1})}function Ze(e,t,n,i){var r=t.__brushOption.range,o=ze(e,n,i);(0,h.each)(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),_e(e,t),Ie(e,{isEnd:!1})}function ze(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function Ee(e,t,n){var i=Se(e,t);return i&&i!==ae?i.clipPath(n,e._transform):(0,h.clone)(n)}function Be(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Ve(e,t,n){return e.childOfName("main").contain(t,n)}function Ne(e,t,n,i){var r,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1];return ue(r*r+o*o,.5)>6}(e)||o){if(a&&!o){"single"===s.brushMode&&Me(e);var l=(0,h.clone)(s);l.brushType=He(l.brushType,a),l.panelId=a===ae?null:a.panelId,o=e._creatingCover=ve(e,l),e._covers.push(o)}if(o){var u=We[He(e._brushType,a)];o.__brushOption.range=u.getCreatingRange(Ee(e,o,e._track)),i&&(ye(e,o),u.updateCommon(e,o)),me(e,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&we(e,t,n)&&Me(e)&&(r={isEnd:i,removeOnClick:!0});return r}function He(e,t){return"auto"===e?t.defaultBrushType:e}var Fe={mousedown:function(e){if(this._dragging)Ge(this,e);else if(!e.target||!e.target.draggable){Be(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=we(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=we(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===ae||s.panelId===o.panelId)&&We[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,e,i),this._dragging){Be(e);var r=Ne(this,e,i,!1);r&&Ie(this,r)}},mouseup:function(e){Ge(this,e)}};function Ge(e,t){if(e._dragging){Be(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),o=Ne(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&Ie(e,o)}}var We={lineX:Ye(0),lineY:Ye(1),rect:{createCover:function(e,t){function n(e){return e}return Ce({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Te(e);return De(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){Ae(e,t,n,i)},updateCommon:ke,contain:Ve},polygon:{createCover:function(e,t){var n=new te.Z;return n.add(new ie.Z({name:"main",style:Pe(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new re.Z({name:"main",draggable:!0,drift:(0,h.curry)(Ze,e,t),ondragend:(0,h.curry)(Ie,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:Ee(e,t,n)})},updateCommon:ke,contain:Ve}};function Ye(e){return{createCover:function(t,n){return Ce({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Te(t);return[se(n[0][e],n[1][e]),le(n[0][e],n[1][e])]},updateCoverShape:function(t,n,i,r){var o,a=Se(t,n);if(a!==ae&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),Ae(t,n,l,r)},updateCommon:ke,contain:Ve}}const Ue=ge;var Xe=n(31117),je={axisPointer:1,tooltip:1,brush:1};function qe(e){return e=Je(e),function(t){return x.clipPointsByRect(t,e)}}function Ke(e,t){return e=Je(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function Qe(e,t,n){var i=Je(e);return function(e,r){return i.contain(r[0],r[1])&&!function(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!je.hasOwnProperty(i.mainType)&&r&&r.model!==n}(e,t,n)}}function Je(e){return Xe.Z.create(e)}var $e=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],et=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=nt(t,e);(0,h.each)(it,(function(e,t){(!n||!n.include||(0,h.indexOf)(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=at[e.brushType](0,n,t);e.__rangeOffset={offset:lt[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){(0,h.each)(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&(0,h.each)(i.coordSyses,(function(i){var r=at[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){(0,h.each)(e,(function(e){var n,i,r,o,a,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=at[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?lt[e.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=ct(n),o=ct(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},e.prototype.makePanelOpts=function(e,t){return(0,h.map)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:qe(i),isTargetByCursor:Qe(i,e,n.coordSysModel),getLinearBrushOtherExtent:Ke(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&(0,h.indexOf)(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=nt(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<rt.length;s++)if(rt[s](i,o))return o}return!0},e}();function tt(e){return e[0]>e[1]&&e.reverse(),e}function nt(e,t){return(0,R.pm)(e,t,{includeMainTypes:$e})}var it={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=(0,h.createHashMap)(),a={},s={};(n||i||r)&&((0,h.each)(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),(0,h.each)(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),(0,h.each)(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];(0,h.each)(r.getCartesians(),(function(e,t){((0,h.indexOf)(n,e.getAxis("x").model)>=0||(0,h.indexOf)(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:ot.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){(0,h.each)(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:ot.geo})}))}},rt=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],ot={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(x.getTransform(e)),t}},at={lineX:(0,h.curry)(st,0),lineY:(0,h.curry)(st,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[tt([r[0],o[0]]),tt([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,h.map)(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function st(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=tt((0,h.map)([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var lt={lineX:(0,h.curry)(ut,0),lineY:(0,h.curry)(ut,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return(0,h.map)(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function ut(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function ct(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const ht=et;var dt=n(1237),pt=n(30703),ft=h.each,gt=(0,R.g0)("toolbox-dataZoom_"),vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new Ue(n.getZr()),this._brushController.on("brush",h.bind(this._onBrush,this)).mount()),function(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new ht(mt(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,i,n),function(e,t){e.setIconStatus("back",function(e){return Q(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){yt[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new ht(mt(this.model),i,{include:["grid"]}).matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(r("x",n,t[0]),r("y",n,t[1])):r({lineX:"x",lineY:"y"}[i],n,t)}})),function(e,t){var n=Q(e);q(t,(function(t,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(t)}(i,n),this._dispatchZoomAction(n)}function r(e,t,r){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(i=n)})),i}(e,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=(0,dt.Z)(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];ft(e,(function(e,n){t.push(h.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(d),yt={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=Q(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return q(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n]){i[n]=e;break}})),i}(this.ecModel))}};function mt(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}(0,pt.f)("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=mt(i),a=(0,R.pm)(e,o);return ft(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),ft(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:gt+t+o};a[n]=o,r.push(a)}}));const xt=vt;function _t(e){e.registerComponentModel(y),e.registerComponentView(k),f("saveAsImage",D),f("magicType",V),f("dataView",j),f("dataZoom",xt),f("restore",$),(0,i.D)(c)}},94439:function(e,t,n){n.d(t,{N:()=>$});var i=n(17806),r=n(1420),o=n(9065),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.__extends)(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(n(72255).Z);const s=a;n(92745),n(84283),n(22139);var l=n(6836),u=n(53970),c=n(55131),h=n(61962),d=n(94485);function p(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function f(e){if(u.Z.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var g=f(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),v=f(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function y(e,t){if(!e)return t;t=(0,d.zW)(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var m=n(96810),x=y(v,"transition"),_=y(g,"transform"),b="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(u.Z.transform3dSupported?"will-change:transform;":"");function w(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!u.Z.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=u.Z.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+_+":"+a+";":[["top",0],["left",0],[g,a]]}function S(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),c=e.get("shadowOffsetX"),h=e.get("shadowOffsetY"),p=e.getModel("textStyle"),f=(0,m.d_)(e,"html"),g=c+"px "+h+"px "+a+"px "+s;return i.push("box-shadow:"+g),t&&r&&i.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=u.Z.transformSupported?","+_+i:",left"+i+",top"+i),x+":"+r}(r,n)),o&&i.push("background-color:"+o),(0,l.each)(["width","color","radius"],(function(t){var n="border-"+t,r=(0,d.zW)(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(function(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var r=(0,l.retrieve2)(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+r+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+u+"px "+a+"px "+o),(0,l.each)(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}(p)),null!=f&&i.push("padding:"+(0,d.MY)(f).join("px ")+"px"),i.join(";")+";"}function M(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,h.YB)(e,a,n,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const I=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,u.Z.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),r=t.appendTo,o=r&&((0,l.isString)(r)?document.querySelector(r):(0,l.isDom)(r)?r:(0,l.isFunction)(r)&&r(e.getDom()));M(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler,n=i.painter.getViewportRoot();(0,c.OD)(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(o="position",(a=(r=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=b+S(e,!this._firstShow,this._longHide)+w(r[0],r[1],!0)+"border-color:"+(0,d.Lz)(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if((0,l.isString)(r)&&"item"===n.get("trigger")&&!p(n)&&(a=function(e,t,n){if(!(0,l.isString)(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=(0,d.Lz)(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",u=Math.max(1.5*Math.round(r),6),c="",h=_+":";(0,l.indexOf)(["left","right"],s)>-1?(c+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,f=u+r,g=f*Math.abs(Math.cos(p))+f*Math.abs(Math.sin(p)),v=t+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+u+"px;height:"+u+"px;z-index:-1;",(c+=";"+s+":-"+Math.round(100*((g-Math.SQRT2*r)/2+Math.SQRT2*r-(g-f)/2))/100+"px")+";"+h+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),(0,l.isString)(e))o.innerHTML=e+a;else if(e){o.innerHTML="",(0,l.isArray)(e)||(e=[e]);for(var s=0;s<e.length;s++)(0,l.isDom)(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=a,o.appendChild(u)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(M(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style,r=w(n[0],n[1]);(0,l.each)(r,(function(e){i[e[0]]=e[1]}))}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",u.Z.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout((0,l.bind)(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}();var T=n(31410),C=n(2118);function A(e){return Math.max(0,e)}function k(e){var t=A(e.shadowBlur||0),n=A(e.shadowOffsetX||0),i=A(e.shadowOffsetY||0);return{left:A(t-n),right:A(t+n),top:A(t-i),bottom:A(t+i)}}function L(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const P=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),L(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,r){var o=this;l.isObject(e)&&(0,C._y)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new T.ZP({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,m.d_)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),l.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),l.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=k(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;L(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=A(r.borderWidth||0),a=k(r);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(l.bind(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();var D=n(96131),O=n(46547),R=n(74335),Z=n(34956),z=n(30057),E=n(79510),B=n(31690),V=n(94359),N=n(31936),H=n(65160),F=n(41974),G=n(89523),W=n(22083),Y=n(83542),U=n(73474),X=new O.Z({shape:{x:-1,y:-1,width:2,height:2}}),j=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.__extends)(t,e),t.prototype.init=function(e,t){if(!u.Z.node&&t.getDom()){var n=e.getComponent("tooltip"),i=this._renderMode=(0,N.U9)(n.get("renderMode"));this._tooltipContent="richText"===i?new P(t):new I(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!u.Z.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?(0,U.T9)(this,"_updatePosition",50,"fixRate"):(0,U.ZH)(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");E.z("itemTooltip",this._api,(0,l.bind)((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!u.Z.node&&n.getDom()){var r=K(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(e,t,n){var i=(0,N.zH)(e).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=(0,N.HZ)(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(t){var n=(0,G.A)(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=X;l.x=i.x,l.y=i.y,l.update(),(0,G.A)(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var c=(0,R.Z)(i,t),h=c.point[0],d=c.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(K(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s)if("axis"===q([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var r,o;if("legend"===(0,G.A)(n).ssrType)return;this._lastDataByCoordSys=null,(0,Y.o)(n,(function(e){return null!=(0,G.A)(e).dataIndex?(r=e,!0):null!=(0,G.A)(e).tooltipConfig?(o=e,!0):void 0}),!0),r?this._showSeriesItemTooltip(e,r,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=(0,l.bind)(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=q([t.tooltipOption],i),a=this._renderMode,s=[],u=(0,m.TX)("section",{blocks:[],noHeader:!0}),c=[],h=new m.iv;(0,l.each)(e,(function(e){(0,l.each)(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=V.gk(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),p=(0,m.TX)("section",{header:o,noHeader:!(0,l.trim)(o),sortBlocks:!0,blocks:[]});u.blocks.push(p),(0,l.each)(e.seriesDataIndices,(function(u){var f=n.getSeriesByIndex(u.seriesIndex),g=u.dataIndexInside,v=f.getDataParams(g);if(!(v.dataIndex<0)){v.axisDim=e.axisDim,v.axisIndex=e.axisIndex,v.axisType=e.axisType,v.axisId=e.axisId,v.axisValue=B.DX(t.axis,{value:r}),v.axisValueLabel=o,v.marker=h.makeTooltipMarker("item",(0,d.Lz)(v.color),a);var y=(0,W.f)(f.formatTooltip(g,!0,null)),m=y.frag;if(m){var x=q([f],i).get("valueFormatter");p.blocks.push(x?(0,l.extend)({valueFormatter:x},m):m)}y.text&&c.push(y.text),s.push(v)}}))}}))})),u.blocks.reverse(),c.reverse();var p=t.position,f=o.get("order"),g=(0,m.BY)(u,h,a,f,n.get("useUTC"),o.get("textStyle"));g&&c.unshift(g);var v="richText"===a?"\n\n":"<br/>",y=c.join(v);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],p,null,h)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=(0,G.A)(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,u=r.dataIndex,c=r.dataType,h=s.getData(c),p=this._renderMode,f=e.positionDefault,g=q([h.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(null==v||"item"===v){var y=s.getDataParams(u,c),x=new m.iv;y.marker=x.makeTooltipMarker("item",(0,d.Lz)(y.color),p);var _=(0,W.f)(s.formatTooltip(u,!1,c)),b=g.get("order"),w=g.get("valueFormatter"),S=_.frag,M=S?(0,m.BY)(w?(0,l.extend)({valueFormatter:w},S):S,x,p,b,i.get("useUTC"),g.get("textStyle")):_.text,I="item_"+s.name+"_"+u;this._showOrMove(g,(function(){this._showTooltipContent(g,M,y,I,e.offsetX,e.offsetY,e.position,e.target,x)})),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i="html"===this._renderMode,r=(0,G.A)(t),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if((0,l.isString)(o)){o={content:o,formatter:o},a=!0}a&&i&&o.content&&((o=(0,l.clone)(o)).content=(0,h.F1)(o.content));var s=[o],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&s.push(u),s.push({formatter:o.content});var c=e.positionDefault,d=q(s,this._tooltipModel,c?{position:c}:null),p=d.get("content"),f=Math.random()+"",g=new m.iv;this._showOrMove(d,(function(){var n=(0,l.clone)(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,f,e.offsetX,e.offsetY,e.position,t,g)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");a=a||e.get("position");var p=t,f=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")).color;if(h)if((0,l.isString)(h)){var g=e.ecModel.get("useUTC"),v=(0,l.isArray)(n)?n[0]:n;p=h,v&&v.axisType&&v.axisType.indexOf("time")>=0&&(p=(0,F.WU)(v.axisValue,p,g)),p=(0,d.kF)(p,n,!0)}else if((0,l.isFunction)(h)){var y=(0,l.bind)((function(t,i){t===this._ticket&&(c.setContent(i,u,e,f,a),this._updatePosition(e,a,r,o,c,n,s))}),this);this._ticket=i,p=h(n,i,y)}else p=h;c.setContent(p,u,e,f,a),c.show(e,f),this._updatePosition(e,a,r,o,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||(0,l.isArray)(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,l.isArray)(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=r.getSize(),h=e.get("align"),d=e.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),(0,l.isFunction)(t)&&(t=t([n,i],o,r.el,f,{viewSize:[s,u],contentSize:c.slice()})),(0,l.isArray)(t))n=(0,D.GM)(t[0],s),i=(0,D.GM)(t[1],u);else if((0,l.isObject)(t)){var g=t;g.width=c[0],g.height=c[1];var v=(0,Z.ME)(g,{width:s,height:u});n=v.x,i=v.y,h=null,d=null}else if((0,l.isString)(t)&&a){var y=function(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,f,c,e.get("borderWidth"));n=y[0],i=y[1]}else{y=function(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(e+l+o+2>i?e-=l+o:e+=o);null!=a&&(t+u+a>r?t-=u+a:t+=a);return[e,t]}(n,i,r,s,u,h?null:20,d?null:20);n=y[0],i=y[1]}if(h&&(n-=Q(h)?c[0]/2:"right"===h?c[0]:0),d&&(i-=Q(d)?c[1]/2:"bottom"===d?c[1]:0),p(e)){y=function(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,i,r,s,u);n=y[0],i=y[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&(0,l.each)(n,(function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&(0,l.each)(a,(function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],u=o.seriesDataIndices||[];(r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===u.length)&&(0,l.each)(a,(function(e,t){var n=u[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&(0,l.each)(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!u.Z.node&&t.getDom()&&((0,U.ZH)(this,"_updatePosition"),this._tooltipContent.dispose(),E.E("itemTooltip",t))},t.type="tooltip",t}(H.Z);function q(e,t,n){var i,r=t.ecModel;n?(i=new z.Z(n,r,r),i=new z.Z(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof z.Z&&(a=a.get("tooltip",!0)),(0,l.isString)(a)&&(a={formatter:a}),a&&(i=new z.Z(a,i,r)))}return i}function K(e,t){return e.dispatchAction||(0,l.bind)(t.dispatchAction,t)}function Q(e){return"center"===e||"middle"===e}const J=j;function $(e){(0,r.D)(i.N),e.registerComponentModel(s),e.registerComponentView(J),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},l.noop),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},l.noop)}},88232:function(e,t,n){n.d(t,{N:()=>b});n(92745);var i=n(6836),r=n(2118),o=n(66278),a={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},s=function(){function e(e){if(null==(this._condVal=(0,i.isString)(e)?new RegExp(e):(0,i.isRegExp)(e)?e:null)){0,(0,r._y)("")}}return e.prototype.evaluate=function(e){var t=typeof e;return(0,i.isString)(t)?this._condVal.test(e):!!(0,i.isNumber)(t)&&this._condVal.test(e+"")},e}(),l=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),u=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),c=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),h=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),d=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:t))return!1;return!0},e}();function p(e,t){if(!0===e||!1===e){var n=new l;return n.value=e,n}return g(e)||(0,r._y)(""),e.and?f("and",e,t):e.or?f("or",e,t):e.not?function(e,t){var n=e.not,i="";0;g(n)||(0,r._y)(i);var o=new h;o.child=p(n,t),o.child||(0,r._y)(i);return o}(e,t):function(e,t){for(var n="",l=t.prepareGetValue(e),u=[],c=(0,i.keys)(e),h=e.parser,p=h?(0,o.o2)(h):null,f=0;f<c.length;f++){var g=c[f];if("parser"!==g&&!t.valueGetterAttrMap.get(g)){var v=(0,i.hasOwn)(a,g)?a[g]:g,y=e[g],m=p?p(y):y,x=(0,o.tR)(v,m)||"reg"===v&&new s(m);x||(0,r._y)(n),u.push(x)}}u.length||(0,r._y)(n);var _=new d;return _.valueGetterParam=l,_.valueParser=p,_.getValue=t.getValue,_.subCondList=u,_}(e,t)}function f(e,t,n){var o=t[e];(0,i.isArray)(o)||(0,r._y)(""),o.length||(0,r._y)("");var a="and"===e?new u:new c;return a.children=(0,i.map)(o,(function(e){return p(e,n)})),a.children.length||(0,r._y)(""),a}function g(e){return(0,i.isObject)(e)&&!(0,i.isArrayLike)(e)}var v=function(){function e(e,t){this._cond=p(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var y={type:"echarts:filter",transform:function(e){for(var t,n,o,a=e.upstream,s=(n=e.config,o={valueGetterAttrMap:(0,i.createHashMap)({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;(0,i.hasOwn)(e,"dimension")||(0,r._y)("");var n=a.getDimensionInfo(t);return n||(0,r._y)(""),{dimIdx:n.index}},getValue:function(e){return a.retrieveValueFromItem(t,e.dimIdx)}},new v(n,o)),l=[],u=0,c=a.count();u<c;u++)t=a.getRawDataItem(u),s.evaluate()&&l.push(t);return{data:l}}},m=n(21202),x=n(31936);var _={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,a="",s=(0,x.kF)(n);s.length||(0,r._y)(a);var l=[];(0,i.each)(s,(function(e){var n=e.dimension,i=e.order,s=e.parser,u=e.incomparable;if(null==n&&(0,r._y)(a),"asc"!==i&&"desc"!==i&&(0,r._y)(a),u&&"min"!==u&&"max"!==u){0,(0,r._y)("")}if("asc"!==i&&"desc"!==i){0,(0,r._y)("")}var c=t.getDimensionInfo(n);c||(0,r._y)(a);var h=s?(0,o.o2)(s):null;s&&!h&&(0,r._y)(a),l.push({dimIdx:c.index,parser:h,comparator:new o.ID(i,u)})}));var u=t.sourceFormat;u!==m.XD&&u!==m.qb&&(0,r._y)(a);for(var c=[],h=0,d=t.count();h<d;h++)c.push(t.getRawDataItem(h));return c.sort((function(e,n){for(var i=0;i<l.length;i++){var r=l[i],o=t.retrieveValueFromItem(e,r.dimIdx),a=t.retrieveValueFromItem(n,r.dimIdx);r.parser&&(o=r.parser(o),a=r.parser(a));var s=r.comparator.evaluate(o,a);if(0!==s)return s}return 0})),{data:c}}};function b(e){e.registerTransform(y),e.registerTransform(_)}},94927:function(e,t,n){n.d(t,{N:()=>Me});var i=n(1420),r=(n(92745),n(9065)),o=n(6836),a={get:function(e,t,n){var i=o.clone((s[e]||{})[t]);return n&&o.isArray(i)?i[i.length-1]:i}},s={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const l=a;var u=n(44125),c=n(7267),h=o.each;function d(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function p(e,t,n){var i={};return h(t,(function(t){var r,a=i[t]=((r=function(){}).prototype.__hidden=r.prototype,new r);h(e[t],(function(e,i){if(u.Z.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),a[i]=new u.Z(r),"opacity"===i&&((r=o.clone(r)).type="colorAlpha",a.__hidden.__alphaForOpacity=new u.Z(r))}}))})),i}var f=n(31936),g=n(96131),v=n(72255),y=u.Z.mapVisual,m=u.Z.eachVisual,x=o.isArray,_=o.each,b=g.dt,w=g.NU,S=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return(0,r.__extends)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&function(e,t,n){var i;o.each(n,(function(e){t.hasOwnProperty(e)&&d(t[e])&&(i=!0)})),i&&o.each(n,(function(n){t.hasOwnProperty(n)&&d(t[n])?e[n]=o.clone(t[n]):delete e[n]}))}(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=o.bind(e,this),this.controllerVisuals=p(this.option.controller,t,e),this.targetVisuals=p(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=f.kF(e),t},t.prototype.eachTargetSeries=function(e,t){o.each(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,a=r.precision,s=this.dataBound,l=r.formatter;n=n||["<",">"],o.isArray(e)&&(e=e.slice(),i=!0);var u=t?e:i?[c(e[0]),c(e[1])]:c(e);return o.isString(l)?l.replace("{value}",i?u[0]:u).replace("{value2}",i?u[1]:u):o.isFunction(l)?i?l(e[0],e[1]):l(e):i?e[0]===s[0]?n[0]+" "+u[1]:e[1]===s[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(e){return e===s[0]?"min":e===s[1]?"max":(+e).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,t=b([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});o.merge(i,n),o.merge(r,n);var a=this.isCategory();function s(n){x(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}s.call(this,i),s.call(this,r),function(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},_(i,(function(e,t){if(u.Z.isValidType(t)){var n=l.get(t,"inactive",a);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";_(this.stateList,(function(s){var l=this.itemSize,u=e[s];u||(u=e[s]={color:a?i:[i]}),null==u.symbol&&(u.symbol=t&&o.clone(t)||(a?r:[r])),null==u.symbolSize&&(u.symbolSize=n&&o.clone(n)||(a?l[0]:[l[0],l[0]])),u.symbol=y(u.symbol,(function(e){return"none"===e?r:e}));var c=u.symbolSize;if(null!=c){var h=-1/0;m(c,(function(e){e>h&&(h=e)})),u.symbolSize=y(c,(function(e){return w(e,[0,h],[0,l[0]],!0)}))}}),this)}.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(v.Z);const M=S;var I=n(74440),T=[20,140],C=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=T[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=T[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):o.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),o.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=g.dt((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=A(this,"outOfRange",this.getExtent()),n=A(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&r(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=(0,I.ZL)(M.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(M);function A(e,t,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}const k=C;n(22139);var L=n(30950),P=n(55131),D=n(46547),O=n(94485),R=n(34956),Z=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,r.__extends)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=O.MY(t.get("padding")||0),i=e.getBoundingRect();e.add(new D.Z({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var i=(n=n||{}).forceState,r=this.visualMapModel,a={};if("color"===t){var s=r.get("contentColor");a.color=s}function l(e){return a[e]}function c(e,t){a[e]=t}var h=r.controllerVisuals[i||r.getValueState(e)],d=u.Z.prepareVisualTypes(h);return o.each(d,(function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),u.Z.dependsOn(i,t)&&r&&r.applyVisual(e,l,c)})),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;R.p$(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(n(65160).Z);const z=Z;var E=n(31410),B=n(74777),V=n(59214),N=n(4142),H=n(1237),F=[["left","right","width"],["top","bottom","height"]];function G(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=F[a],l=[0,null,10],u={},c=0;c<3;c++)u[F[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=(0,R.ME)(u,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function W(e,t){return o.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var Y=n(559),U=n(73372),X=n(88458),j=n(40692),q=n(89523),K=n(33666),Q=n(83542),J=g.NU,$=o.each,ee=Math.min,te=Math.max,ne=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,r.__extends)(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=o.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=o.bind(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new E.ZP({style:(0,K.Lr)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,a=this._useHandle,s=G(t,this.api,i),l=n.mainGroup=this._createBarGroup(s),u=new B.Z;l.add(u),u.add(n.outOfRange=ie()),u.add(n.inRange=ie(null,a?oe(this._orient):null,o.bind(this._dragHandle,this,"all",!1),o.bind(this._dragHandle,this,"all",!0))),u.setClipPath(new D.Z({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),h=te(c.width,c.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,l,0,i,h,r),this._createHandle(t,l,1,i,h,r)),this._createIndicator(t,l,i,h,r),e.add(l)},t.prototype._createHandle=function(e,t,n,i,r,a){var s=o.bind(this._dragHandle,this,n,!1),l=o.bind(this._dragHandle,this,n,!0),u=(0,Y.GM)(e.get("handleSize"),i[0]),c=(0,X.th)(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=oe(this._orient);c.attr({cursor:h,draggable:!0,drift:s,ondragend:l,onmousemove:function(e){P.sT(e.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,U.Nj)(c,!0),t.add(c);var d=this.visualMapModel.textStyleModel,p=new E.ZP({cursor:h,draggable:!0,drift:s,onmousemove:function(e){P.sT(e.event)},ondragend:l,style:(0,K.Lr)(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[u,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=f,g.handleLabels[n]=p},t.prototype._createIndicator=function(e,t,n,i,r){var a=(0,Y.GM)(e.get("indicatorSize"),n[0]),s=(0,X.th)(e.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=e.getModel("indicatorStyle").getItemStyle();if(s instanceof j.ZP){var u=s.style;s.useStyle(o.extend({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l);t.add(s);var c=this.visualMapModel.textStyleModel,h=new E.ZP({silent:!0,invisible:!0,style:(0,K.Lr)(c,{x:0,y:0,text:""})});this.group.add(h);var d=[("horizontal"===r?i/2:6)+n[0]/2,0],p=this._shapes;p.indicator=s,p.indicatorLabel=h,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():re(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[J(t[0],n,i,!0),J(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];(0,H.Z)(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[J(i[0],r,o,!0),J(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new L.Z(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],i=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<100;r++){var o=e[0]+i*r;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:r/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new B.Z("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);$([0,1],(function(u){var c=r[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var h=J(e[u],[0,a[1]],s,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/a[0],c.x=a[0]-d/2;var p=V.applyTransform(n.handleLabelPoints[u],V.getTransform(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-d)/2:(a[0]-d)/-2;p[1]+=f}o[u].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(e,"symbolSize"),d=J(e,o,s,!0),p=a[0]-h/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=V.applyTransform(l.indicatorLabelPoint,V.getTransform(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;v.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:m?y:"middle",align:m?"center":y});var x={x:p,y:d,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),v.animateTo(_,b)}else u.attr(x),v.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=ee(te(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=ee(te(r[0],e),r[1]);var a=function(e,t,n){var i=6,r=e.get("hoverLinkDataSize");r&&(i=J(r,t,n,!0)/2);return i}(n,o,r),s=[e-a,e+a],l=J(e,r,o,!0),u=[J(s[0],r,o,!0),J(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(t||re(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=f.XI(c,h);this._dispatchHighDown("downplay",W(d[0],n)),this._dispatchHighDown("highlight",W(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if((0,Q.o)(e.target,(function(e){var n=(0,q.A)(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",W(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var r=V.getTransform(t,i?null:this.group);return o.isArray(e)?V.applyTransform(e,r,n):V.transformDirection(e,r,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(z);function ie(e,t,n,i){return new N.Z({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){P.sT(e.event)},ondragend:i})}function re(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function oe(e){return"vertical"===e?"ns-resize":"ew-resize"}const ae=ne;var se={type:"selectDataRange",event:"dataRangeSelected",update:"update"},le=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},ue=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i,r,a,s,l,h=e.pipelineContext;!t.isTargetSeries(e)||h&&h.large||n.push((i=t.stateList,r=t.targetVisuals,a=o.bind(t.getValueState,t),s=t.getDataDimensionIndex(e.getData()),l={},o.each(i,(function(e){var t=u.Z.prepareVisualTypes(r[e]);l[e]=t})),{progress:function(e,t){var n,i;function o(e){return(0,c.Or)(t,i,e)}function u(e,n){(0,c.LZ)(t,i,e,n)}null!=s&&(n=t.getDimensionIndex(s));for(var h=t.getStore();null!=(i=e.next());){var d=t.getRawDataItem(i);if(!d||!1!==d.visualMap)for(var p=null!=s?h.get(n,i):i,f=a(p),g=r[f],v=l[f],y=0,m=v.length;y<m;y++){var x=v[y];g[x]&&g[x].applyVisual(p,o,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(o.bind(ce,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(r.dimension=a,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function ce(e,t,n,i){for(var r=t.targetVisuals[i],o=u.Z.prepareVisualTypes(r),a={color:(0,c.UL)(e.getData(),"color")},s=0,l=o.length;s<l;s++){var h=o[s],d=r["opacity"===h?"__alphaForOpacity":h];d&&d.applyVisual(n,p,f)}return a.color;function p(e){return a[e]}function f(e,t){a[e]=t}}var he=o.each;function de(e){var t=e&&e.visualMap;o.isArray(t)||(t=t?[t]:[]),he(t,(function(e){if(e){pe(e,"splitList")&&!pe(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&o.isArray(t)&&he(t,(function(e){o.isObject(e)&&(pe(e,"start")&&!pe(e,"min")&&(e.min=e.start),pe(e,"end")&&!pe(e,"max")&&(e.max=e.end))}))}}))}function pe(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var fe=!1;function ge(e){fe||(fe=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(se,le),(0,o.each)(ue,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(de))}function ve(e){e.registerComponentModel(k),e.registerComponentView(ae),ge(e)}n(84283);var ye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return(0,r.__extends)(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],me[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=o.clone(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=o.map(this._pieceList,(function(e){return e=o.clone(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=u.Z.listVisualTypes(),r=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}o.each(t.pieces,(function(e){o.each(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),o.each(n,(function(e,n){var i=!1;o.each(this.stateList,(function(e){i=i||a(t,e,n)||a(t.target,e,n)}),this),!i&&o.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=l.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,o.each(i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var a=!1;o.each(i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(a?r[n]=!1:a=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=o.clone(e)},t.prototype.getValueState=function(e){var t=u.Z.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){u.Z.findPieceIndex(t,n)===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),(a=r[r.length-1].interval[1])!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return o.each(r,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function l(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=(0,I.ZL)(M.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(M),me={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var a=(i[1]-i[0])/r;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,l=i[0];s<r;l+=a,s++){var u=s===r-1?i[1]:l+a;e.push({interval:[l,u],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),(0,g.nR)(e),o.each(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;o.each(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),xe(t,e)},pieces:function(e){var t=this.option;o.each(t.pieces,(function(t,n){o.isObject(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var a=i.interval=[],s=i.close=[0,0],l=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&null==a[d];f++)a[d]=t[p[f]],s[d]=l[f],h[d]=2===f;null==a[d]&&(a[d]=c[d])}h[0]&&a[1]===1/0&&(s[0]=0),h[1]&&a[0]===-1/0&&(s[1]=0),a[0]===a[1]&&s[0]&&s[1]&&(i.value=a[0])}i.visual=u.Z.retrieveVisuals(t),e.push(i)}),this),xe(t,e),(0,g.nR)(e),o.each(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function xe(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}const _e=ye;var be=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,r.__extends)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),a=i.getTextColor(),s=this._getItemAlign(),l=t.itemSize,u=this._getViewData(),c=u.endsText,h=o.retrieve(t.get("showLabel",!0),!c),d=!t.get("selectedMode");c&&this._renderEndsText(e,c[0],l,h,s),o.each(u.viewPieceList,(function(i){var u=i.piece,c=new B.Z;c.onclick=o.bind(this._onItemClick,this,u),this._enableHoverLink(c,i.indexInModelPieceList);var p=t.getRepresentValue(u);if(this._createItemSymbol(c,p,[0,0,l[0],l[1]],d),h){var f=this.visualMapModel.getValueState(p);c.add(new E.ZP({style:{x:"right"===s?-n:l[0]+n,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:r,fill:a,opacity:"outOfRange"===f?.5:1},silent:d}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],l,h,s),R.BZ(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:W(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return G(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new B.Z,a=this.visualMapModel.textStyleModel;o.add(new E.ZP({style:(0,K.Lr)(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=o.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,i){var r=(0,X.th)(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));r.silent=i,e.add(r)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=o.clone(n.selected),a=t.getSelectedMapKey(e);"single"===i||!0===i?(r[a]=!0,o.each(r,(function(e,t){r[t]=t===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(z);const we=be;function Se(e){e.registerComponentModel(_e),e.registerComponentView(we),ge(e)}function Me(e){(0,i.D)(ve),(0,i.D)(Se)}},23573:function(e,t,n){n.d(t,{Z:()=>_});n(92745),n(84283);var i=n(6836),r=n(96131),o=n(559),a=n(31936),s=n(31690),l=(0,a.Yf)();function u(e,t){var n=i.map(t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function c(e){var t=e.getLabelModel().get("customValues");if(t){var n=(0,s.J9)(e),r=e.scale.getExtent(),o=u(e,t),a=i.filter(o,(function(e){return e>=r[0]&&e<=r[1]}));return{labels:i.map(a,(function(t){var i={value:t};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:t}}))}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=d(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=(0,s.J9)(e);return{labels:i.map(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function h(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=u(e,n);return{ticks:i.filter(o,(function(e){return e>=r[0]&&e<=r[1]}))}}return"category"===e.type?function(e,t){var n,r,o=p(e,"ticks"),a=(0,s.rk)(t),l=f(o,a);if(l)return l;t.get("show")&&!e.scale.isBlank()||(n=[]);if(i.isFunction(a))n=y(e,a,!0);else if("auto"===a){var u=d(e,e.getLabelModel());r=u.labelCategoryInterval,n=i.map(u.labels,(function(e){return e.tickValue}))}else n=v(e,r=a,!0);return g(o,a,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:i.map(e.scale.getTicks(),(function(e){return e.value}))}}function d(e,t){var n,r,o=p(e,"labels"),a=(0,s.rk)(t),u=f(o,a);return u||(i.isFunction(a)?n=y(e,a):(r="auto"===a?function(e){var t=l(e).autoInterval;return null!=t?t:l(e).autoInterval=e.calculateCategoryInterval()}(e):a,n=v(e,r)),g(o,a,{labels:n,labelCategoryInterval:r}))}function p(e,t){return l(e)[t]||(l(e)[t]=[])}function f(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function g(e,t,n){return e.push({key:t,value:n}),n}function v(e,t,n){var i=(0,s.J9)(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),l=[],u=Math.max((t||0)+1,1),c=o[0],h=r.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=(0,s.WY)(e),p=a.get("showMinLabel")||d,f=a.get("showMaxLabel")||d;p&&c!==o[0]&&v(o[0]);for(var g=c;g<=o[1];g+=u)v(g);function v(e){var t={value:e};l.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return f&&g-u!==o[1]&&v(o[1]),l}function y(e,t,n){var r=e.scale,o=(0,s.J9)(e),a=[];return i.each(r.getTicks(),(function(e){var i=r.getLabel(e),s=e.value;t(e.value,i)&&a.push(n?s:{formattedLabel:o(e),rawLabel:i,tickValue:s})})),a}var m=[0,1];function x(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}const _=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return(0,r.M9)(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&x(n=n.slice(),i.count()),(0,r.NU)(e,m,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&x(n=n.slice(),i.count());var o=(0,r.NU)(e,n,m,t);return this.scale.scale(o)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=h(this,t).ticks,o=(0,i.map)(n,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,o){var a=t.length;if(!e.onBand||n||!a)return;var s,l,u=e.getExtent();if(1===a)t[0].coord=u[0],s=t[1]={coord:u[1],tickValue:t[0].tickValue};else{var c=t[a-1].tickValue-t[0].tickValue,h=(t[a-1].coord-t[0].coord)/c;(0,i.each)(t,(function(e){e.coord-=h/2}));var d=e.scale.getExtent();l=1+d[1]-t[a-1].tickValue,s={coord:t[a-1].coord+h*l,tickValue:d[1]+1},t.push(s)}var p=u[0]>u[1];f(t[0].coord,u[0])&&(o?t[0].coord=u[0]:t.shift());o&&f(u[0],t[0].coord)&&t.unshift({coord:u[0]});f(u[1],s.coord)&&(o?s.coord=u[1]:t.pop());o&&f(s.coord,u[1])&&t.push({coord:u[1]});function f(e,t){return e=(0,r.NM)(e),t=(0,r.NM)(t),p?e>t:e<t}}(this,o,t.get("alignWithLabel"),e.clamp),o},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");e>0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return(0,i.map)(t,(function(e){return(0,i.map)(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return c(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=(0,s.J9)(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,a=r.getExtent(),u=r.count();if(a[1]-a[0]<1)return 0;var c=1;u>40&&(c=Math.max(1,Math.floor(u/40)));for(var h=a[0],d=e.dataToCoord(h+1)-e.dataToCoord(h),p=Math.abs(d*Math.cos(i)),f=Math.abs(d*Math.sin(i)),g=0,v=0;h<=a[1];h+=c){var y,m,x=o.lP(n({value:h}),t.font,"center","top");y=1.3*x.width,m=1.3*x.height,g=Math.max(g,y,7),v=Math.max(v,m,7)}var _=g/p,b=v/f;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(_,b))),S=l(e.model),M=e.getExtent(),I=S.lastAutoInterval,T=S.lastTickCount;return null!=I&&null!=T&&Math.abs(I-w)<=1&&Math.abs(T-u)<=1&&I>w&&S.axisExtent0===M[0]&&S.axisExtent1===M[1]?w=I:(S.lastTickCount=u,S.lastAutoInterval=w,S.axisExtent0=M[0],S.axisExtent1=M[1]),w}(this)},e}()},4012:function(e,t,n){function i(e,t){return e.type===t}n.d(t,{H:()=>i})},31690:function(e,t,n){n.d(t,{Yb:()=>N,Do:()=>G,PY:()=>U,AH:()=>X,aG:()=>V,rk:()=>W,WY:()=>Y,Xv:()=>E,J9:()=>H,Jk:()=>B,DX:()=>F});var i=n(6836),r=(n(92745),n(9065)),o=n(57092),a=n(53169),s=n(22976),l=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new a.Z({})),(0,i.isArray)(r)&&(r=new a.Z({categories:(0,i.map)(r,(function(e){return(0,i.isObject)(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return(0,r.__extends)(t,e),t.prototype.parse=function(e){return null==e?NaN:(0,i.isString)(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),s.XS(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),s.Fv(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(s.bA(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r<a;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(o.Z);o.Z.registerClass(l);const u=l;var c=n(92865),h=n(66130),d=n(31117),p=(n(84283),n(96131)),f=n(41974),g=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return(0,r.__extends)(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return(0,f.WU)(e.value,f.V8[(0,f.xC)((0,f.Tj)(this._minLevelUnit))]||f.V8.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return(0,f.k7)(e,t,n,r,i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),o=function(e,t,n,r){var o=1e4,a=f.FW,s=0;function l(e,t,n,i,o,a,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function u(e,i,o){var a=[],s=!i.length;if(!function(e,t,n,i){var r=p.sG(t),o=p.sG(n),a=function(e){return(0,f.q5)(r,e,i)===(0,f.q5)(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},g=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return g()}}((0,f.Tj)(e),r[0],r[1],n)){s&&(i=[{value:w(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var d=void 0,g=void 0,v=void 0,S=!1;switch(e){case"year":d=Math.max(1,Math.round(t/f.s2/365)),g=(0,f.sx)(n),v=(0,f.xL)(n);break;case"half-year":case"quarter":case"month":d=m(t),g=(0,f.CW)(n),v=(0,f.vh)(n);break;case"week":case"half-week":case"day":d=y(t,31),g=(0,f.xz)(n),v=(0,f.f5)(n),S=!0;break;case"half-day":case"quarter-day":case"hour":d=x(t),g=(0,f.Wp)(n),v=(0,f.En)(n);break;case"minute":d=_(t,!0),g=(0,f.fn)(n),v=(0,f.eN)(n);break;case"second":d=_(t,!1),g=(0,f.MV)(n),v=(0,f.rM)(n);break;case"millisecond":d=b(t),g=(0,f.RZ)(n),v=(0,f.cb)(n)}l(d,c,h,g,v,S,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var c=[],h=[],d=0,g=0,v=0;v<a.length&&s++<o;++v){var S=(0,f.Tj)(a[v]);if((0,f.$K)(a[v]))if(u(a[v],c[c.length-1]||[],h),S!==(a[v+1]?(0,f.Tj)(a[v+1]):null)){if(h.length){g=d,h.sort((function(e,t){return e.value-t.value}));for(var M=[],I=0;I<h.length;++I){var T=h[I].value;0!==I&&h[I-1].value===T||(M.push(h[I]),T>=r[0]&&T<=r[1]&&d++)}var C=(r[1]-r[0])/t;if(d>1.5*C&&g>C/1.5)break;if(c.push(M),d>C||e===a[v])break}h=[]}}0;var A=(0,i.filter)((0,i.map)(c,(function(e){return(0,i.filter)(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),k=[],L=A.length-1;for(v=0;v<A.length;++v)for(var P=A[v],D=0;D<P.length;++D)k.push({value:P[D].value,level:L-v});k.sort((function(e,t){return e.value-t.value}));var O=[];for(v=0;v<k.length;++v)0!==v&&k[v].value===k[v-1].value||O.push(k[v]);return O}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(o)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=f.s2,t[1]+=f.s2),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-f.s2}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=v.length,a=Math.min(function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n}(v,this._approxInterval,0,o),o-1);this._interval=v[a][1],this._minLevelUnit=v[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return(0,i.isNumber)(e)?e:+p.sG(e)},t.prototype.contain=function(e){return s.XS(this.parse(e),this._extent)},t.prototype.normalize=function(e){return s.Fv(this.parse(e),this._extent)},t.prototype.scale=function(e){return s.bA(e,this._extent)},t.type="time",t}(c.Z),v=[["second",f.WT],["minute",f.yR],["hour",f.dV],["quarter-day",6*f.dV],["half-day",12*f.dV],["day",1.2*f.s2],["half-week",3.5*f.s2],["week",7*f.s2],["month",31*f.s2],["quarter",95*f.s2],["half-year",f.P5/2],["year",f.P5]];function y(e,t){return(e/=f.s2)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function m(e){return(e/=30*f.s2)>6?6:e>3?3:e>2?2:1}function x(e){return(e/=f.dV)>12?12:e>6?6:e>3.5?4:e>2?2:1}function _(e,t){return(e/=t?f.yR:f.WT)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function b(e){return p.kx(e,!0)}function w(e,t,n){var i=new Date(e);switch((0,f.Tj)(t)){case"year":case"month":i[(0,f.vh)(n)](0);case"day":i[(0,f.f5)(n)](1);case"hour":i[(0,f.En)(n)](0);case"minute":i[(0,f.eN)(n)](0);case"second":i[(0,f.rM)(n)](0),i[(0,f.cb)(n)](0)}return i.getTime()}o.Z.registerClass(g);const S=g;var M=o.Z.prototype,I=c.Z.prototype,T=p.NM,C=Math.floor,A=Math.ceil,k=Math.pow,L=Math.log,P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new c.Z,t._interval=0,t}return(0,r.__extends)(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),o=I.getTicks.call(this,e);return i.map(o,(function(e){var t=e.value,i=p.NM(k(this.base,t));return i=t===n[0]&&this._fixMin?O(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?O(i,r[1]):i}}),this)},t.prototype.setExtent=function(e,t){var n=L(this.base);e=L(Math.max(0,e))/n,t=L(Math.max(0,t))/n,I.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=M.getExtent.call(this);t[0]=k(e,t[0]),t[1]=k(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=O(t[0],n[0])),this._fixMax&&(t[1]=O(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=L(e[0])/L(t),e[1]=L(e[1])/L(t),M.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=p.Xd(n);for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[p.NM(A(t[0]/i)*i),p.NM(C(t[1]/i)*i)];this._interval=i,this._niceExtent=r}},t.prototype.calcNiceExtent=function(e){I.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=L(e)/L(this.base),s.XS(e,this._extent)},t.prototype.normalize=function(e){return e=L(e)/L(this.base),s.Fv(e,this._extent)},t.prototype.scale=function(e){return e=s.bA(e,this._extent),k(this.base,e)},t.type="log",t}(o.Z),D=P.prototype;function O(e,t){return T(e,p.p8(t))}D.getMinorTicks=I.getMinorTicks,D.getLabel=I.getLabel,o.Z.registerClass(P);const R=P;var Z=n(62951),z=n(4129);function E(e,t){var n=e.type,r=(0,z.Qw)(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var o=r.min,a=r.max,s=t.ecModel;if(s&&"time"===n){var l=(0,h.Ge)("bar",s),u=!1;if(i.each(l,(function(e){u=u||e.getBaseAxis()===t.axis})),u){var c=(0,h.My)(l),d=function(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=(0,h.G_)(r,n.axis);if(void 0===s)return{min:e,max:t};var l=1/0;i.each(s,(function(e){l=Math.min(e.offset,l)}));var u=-1/0;i.each(s,(function(e){u=Math.max(e.offset+e.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,d=t-e,p=d/(1-(l+u)/a)-d;return t+=p*(u/c),e-=p*(l/c),{min:e,max:t}}(o,a,t,c);o=d.min,a=d.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function B(e,t){var n=t,i=E(e,n),r=i.extent,o=n.get("splitNumber");e instanceof R&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function V(e,t){if(t=t||e.get("type"))switch(t){case"category":return new u({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new S({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(o.Z.getClass(t)||c.Z)}}function N(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function H(e){var t,n,r=e.getLabelModel().get("formatter"),o="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,i){return e.scale.getFormattedLabel(t,i,n)}):i.isString(r)?function(t){return function(n){var i=e.scale.getLabel(n);return t.replace("{value}",null!=i?i:"")}}(r):i.isFunction(r)?(t=r,function(n,i){return null!=o&&(i=n.value-o),t(F(e,n),i,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function F(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function G(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof u?n.count():(i=n.getTicks()).length;var a,s,l,c,h,p,f,g,v=e.getLabelModel(),y=H(e),m=1;r>40&&(m=Math.ceil(r/40));for(var x=0;x<r;x+=m){var _=y(i?i[x]:{value:o[0]+x},x),b=v.getTextRect(_),w=(s=b,l=v.get("rotate")||0,c=void 0,h=void 0,p=void 0,f=void 0,g=void 0,c=l*Math.PI/180,h=s.width,p=s.height,f=h*Math.abs(Math.cos(c))+Math.abs(p*Math.sin(c)),g=h*Math.abs(Math.sin(c))+Math.abs(p*Math.cos(c)),new d.Z(s.x,s.y,f,g));a?a.union(w):a=w}return a}}function W(e){var t=e.get("interval");return null==t?"auto":t}function Y(e){return"category"===e.type&&0===W(e.getLabelModel())}function U(e,t){var n={};return i.each(e.mapDimensionsAll(t),(function(t){n[(0,Z.IR)(e,t)]=!0})),i.keys(n)}function X(e,t,n){t&&i.each(U(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}},46719:function(e,t,n){n.d(t,{W:()=>i});var i=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()},23161:function(e,t,n){n.d(t,{Mk:()=>s,Yh:()=>a,bK:()=>o});var i=n(6836),r=n(31936);function o(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,u=s?"onZero":l,c=o.dim,h=r.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,g="x"===c?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[p.onZero]=Math.max(Math.min(v,g[1]),g[0])}a.position=["y"===c?g[p[u]]:d[0],"x"===c?g[p[u]]:d[3]],a.rotation=Math.PI/2*("x"===c?0:1);a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],a.labelOffset=s?g[p[l]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),i.retrieve(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate="top"===u?-y:y,a.z2=1,a}function a(e){return"cartesian2d"===e.get("coordinateSystem")}function s(e){var t={xAxisModel:null,yAxisModel:null};return i.each(t,(function(n,i){var o=i.replace(/Model$/,""),a=e.getReferringComponents(o,r.C6).models[0];t[i]=a})),t}},4129:function(e,t,n){n.d(t,{Qw:()=>l});var i=n(6836),r=n(559),o=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var a=t.get("min",!0);null==a&&(a=t.get("startValue",!0));var s=this._modelMinRaw=a;(0,i.isFunction)(s)?this._modelMinNum=u(e,s({min:n[0],max:n[1]})):"dataMin"!==s&&(this._modelMinNum=u(e,s));var l=this._modelMaxRaw=t.get("max",!0);if((0,i.isFunction)(l)?this._modelMaxNum=u(e,l({min:n[0],max:n[1]})):"dataMax"!==l&&(this._modelMaxNum=u(e,l)),o)this._axisDataLen=t.getCategories().length;else{var c=t.get("boundaryGap"),h=(0,i.isArray)(c)?c:[c||0,c||0];"boolean"==typeof h[0]||"boolean"==typeof h[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,r.GM)(h[0],1),(0,r.GM)(h[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),s="dataMin"===this._modelMinRaw?t:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=e?r?0:NaN:t-o[0]*a),null==l&&(l=e?r?r-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=(0,i.eqNaN)(s)||(0,i.eqNaN)(l)||e&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(s=d,u=!0),null!=p&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},e.prototype.modifyDataMinMax=function(e,t){this[s[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[a[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(e,t,n){var i=e.rawExtentInfo;return i||(i=new o(e,t,n),e.rawExtentInfo=i,i)}function u(e,t){return null==t?null:(0,i.eqNaN)(t)?NaN:e.parse(t)}},62670:function(e,t,n){n.d(t,{zl:()=>Cn,je:()=>zn,Og:()=>Pn,i8:()=>gt,FU:()=>En,Ok:()=>Vn,sq:()=>Mn,jQ:()=>Zn,eU:()=>yn,I2:()=>ut.I2,RS:()=>An,zP:()=>vn,HO:()=>vt,JE:()=>xn,$j:()=>gn,qR:()=>Ln,ds:()=>wn,Hr:()=>wt,rp:()=>_n,wL:()=>kn,B9:()=>mn,yn:()=>Rn,S1:()=>fn,Pu:()=>Sn,aW:()=>bn,OB:()=>Bn,Br:()=>In,YK:()=>Tn});n(92745),n(22139);var i=n(9065),r=n(67279),o=n(6836),a=n(53970),s=n(46679),l=n(18539),u=(n(9359),n(56475),n(31936)),c=n(30057),h=n(72255),d="";"undefined"!=typeof navigator&&(d=navigator.platform||"");var p="rgba(0, 0, 0, 0.2)";const f={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:p,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:p,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:p,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:p,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:p,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:p,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var g,v,y,m=n(73279),x=n(30703),_=n(70180),b="\0_ec_inner";var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new c.Z(i),this._locale=new c.Z(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=I(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,I(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):y(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var s=i.getMediaOption(this);s.length&&(0,o.each)(s,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],s=(0,o.createHashMap)(),l=t&&t.replaceMergeMainTypeMap;(0,m.md)(this),(0,o.each)(e,(function(e,t){null!=e&&(h.Z.hasClass(t)?t&&(a.push(t),s.set(t,!0)):n[t]=null==n[t]?(0,o.clone)(e):(0,o.merge)(n[t],e,!0))})),l&&l.each((function(e,t){h.Z.hasClass(t)&&!s.get(t)&&(a.push(t),s.set(t,!0))})),h.Z.topologicalTravel(a,h.Z.getAllClassMainTypes(),(function(t){var a=(0,x.R)(this,t,u.kF(e[t])),s=i.get(t),c=s?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",d=u.ab(s,a,c);u.O0(d,t,h.Z),n[t]=null,i.set(t,null),r.set(t,0);var p,f=[],v=[],y=0;(0,o.each)(d,(function(e,n){var i=e.existing,r=e.newOption;if(r){var a="series"===t,s=h.Z.getClass(t,e.keyInfo.subType,!a);if(!s)return;if("tooltip"===t){if(p)return void 0;p=!0}if(i&&i.constructor===s)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=(0,o.extend)({componentIndex:n},e.keyInfo);i=new s(r,this,this,l),(0,o.extend)(i,l),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(f.push(i.option),v.push(i),y++):(f.push(void 0),v.push(void 0))}),this),n[t]=f,i.set(t,v),r.set(t,y),"series"===t&&g(this)}),this),this._seriesIndices||g(this)},t.prototype.getOption=function(){var e=(0,o.clone)(this.option);return(0,o.each)(e,(function(t,n){if(h.Z.hasClass(n)){for(var i=u.kF(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!u.lY(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[b],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,a=e.name,s=this._componentsMap.get(t);return s&&s.length?(null!=i?(n=[],(0,o.each)(u.kF(i),(function(e){s[e]&&n.push(s[e])}))):n=null!=r?S("id",r,s):null!=a?S("name",a,s):(0,o.filter)(s,(function(e){return!!e})),M(n,e)):[]},t.prototype.findComponents=function(e){var t,n,i,r,a,s=e.query,l=e.mainType,u=(n=l+"Index",i=l+"Id",r=l+"Name",!(t=s)||null==t[n]&&null==t[i]&&null==t[r]?null:{mainType:l,index:t[n],id:t[i],name:t[r]}),c=u?this.queryComponents(u):(0,o.filter)(this._componentsMap.get(l),(function(e){return!!e}));return a=M(c,e),e.filter?(0,o.filter)(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if((0,o.isFunction)(e)){var r=t,a=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&a.call(r,t,i,i.componentIndex)}}))}else for(var s=(0,o.isString)(e)?i.get(e):(0,o.isObject)(e)?this.findComponents(e):null,l=0;s&&l<s.length;l++){var u=s[l];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=u.U5(e,null);return(0,o.filter)(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return(0,o.filter)(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return(0,o.filter)(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){v(this),(0,o.each)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){(0,o.each)(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){v(this),(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return(0,o.each)(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return v(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){v(this);var n=[];(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=(0,o.createHashMap)(n)},t.prototype.restoreData=function(e){g(this);var t=this._componentsMap,n=[];t.each((function(e,t){h.Z.hasClass(t)&&n.push(t)})),h.Z.topologicalTravel(n,h.Z.getAllClassMainTypes(),(function(n){(0,o.each)(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}(t,e)||t.restoreData()}))}))},t.internalField=(g=function(e){var t=e._seriesIndices=[];(0,o.each)(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=(0,o.createHashMap)(t)},v=function(e){},void(y=function(e,t){e.option={},e.option[b]=1,e._componentsMap=(0,o.createHashMap)({series:[]}),e._componentsCount=(0,o.createHashMap)();var n,i,r,a=t.aria;(0,o.isObject)(a)&&null==a.enabled&&(a.enabled=!0),n=t,i=e._theme.option,r=n.color&&!n.colorLayer,(0,o.each)(i,(function(e,t){"colorLayer"===t&&r||h.Z.hasClass(t)||("object"==typeof e?n[t]=n[t]?(0,o.merge)(n[t],e,!1):(0,o.clone)(e):null==n[t]&&(n[t]=e))})),(0,o.merge)(t,f,!1),e._mergeOption(t,null)})),t}(c.Z);function S(e,t,n){if((0,o.isArray)(t)){var i=(0,o.createHashMap)();return(0,o.each)(t,(function(e){null!=e&&(null!=u.U5(e,null)&&i.set(e,!0))})),(0,o.filter)(n,(function(t){return t&&i.get(t[e])}))}var r=u.U5(t,null);return(0,o.filter)(n,(function(t){return t&&null!=r&&t[e]===r}))}function M(e,t){return t.hasOwnProperty("subType")?(0,o.filter)(e,(function(e){return e&&e.subType===t.subType})):e}function I(e){var t=(0,o.createHashMap)();return e&&(0,o.each)(u.kF(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}(0,o.mixin)(w,_._);const T=w;var C=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const A=function(e){o.each(C,(function(t){this[t]=o.bind(e[t],e)}),this)};var k=n(49051),L=/^(min|max)?(.+)$/;function P(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return(0,o.each)(e,(function(e,t){var n=t.match(L);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(i[a],e,o)||(r=!1)}})),r}const D=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&((0,o.each)((0,u.kF)(e.series),(function(e){e&&e.data&&(0,o.isTypedArray)(e.data)&&(0,o.setAsPrimitive)(e.data)})),(0,o.each)((0,u.kF)(e.dataset),(function(e){e&&e.source&&(0,o.isTypedArray)(e.source)&&(0,o.setAsPrimitive)(e.source)}))),e=(0,o.clone)(e);var i=this._optionBackup,r=function(e,t,n){var i,r,a=[],s=e.baseOption,l=e.timeline,u=e.options,c=e.media,h=!!e.media,d=!!(u||l||s&&s.timeline);s?(r=s).timeline||(r.timeline=l):((d||h)&&(e.options=e.media=null),r=e);h&&(0,o.isArray)(c)&&(0,o.each)(c,(function(e){e&&e.option&&(e.query?a.push(e):i||(i=e))}));function p(e){(0,o.each)(t,(function(t){t(e,n)}))}return p(r),(0,o.each)(u,(function(e){return p(e)})),(0,o.each)(a,(function(e){return p(e.option)})),{baseOption:r,timelineOptions:u||[],mediaDefault:i,mediaList:a}}(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],(0,o.clone)(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=(0,o.clone)(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],u=[];if(!a.length&&!s)return u;for(var c=0,h=a.length;c<h;c++)P(a[c].query,i,r)&&l.push(c);return!l.length&&s&&(l=[-1]),l.length&&(t=l,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(u=(0,o.map)(l,(function(e){return(0,o.clone)(-1===e?s.option:a[e].option)}))),this._currentMediaIndices=l,u},e}();n(70104);var O=o.each,R=o.isObject,Z=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function z(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=Z.length;n<i;n++){var r=Z[n],a=t.normal,s=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?o.merge(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),s&&s[r]&&(e[r]=e[r]||{},e[r].emphasis?o.merge(e[r].emphasis,s[r]):e[r].emphasis=s[r],s[r]=null)}}function E(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,o.defaults(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function B(e){E(e,"itemStyle"),E(e,"lineStyle"),E(e,"areaStyle"),E(e,"label"),E(e,"labelLine"),E(e,"upperLabel"),E(e,"edgeLabel")}function V(e,t){var n=R(e)&&e[t],i=R(n)&&n.textStyle;if(i){0;for(var r=0,o=u.Td.length;r<o;r++){var a=u.Td[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function N(e){e&&(B(e),V(e,"label"),e.emphasis&&V(e.emphasis,"label"))}function H(e){return o.isArray(e)?e:e?[e]:[]}function F(e){return(o.isArray(e)?e[0]:e)||{}}function G(e,t){O(H(e.series),(function(e){R(e)&&function(e){if(R(e)){z(e),B(e),V(e,"label"),V(e,"upperLabel"),V(e,"edgeLabel"),e.emphasis&&(V(e.emphasis,"label"),V(e.emphasis,"upperLabel"),V(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(z(t),N(t));var n=e.markLine;n&&(z(n),N(n));var i=e.markArea;i&&N(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var a=e.links||e.edges;if(a&&!o.isTypedArray(a))for(var s=0;s<a.length;s++)N(a[s]);o.each(e.categories,(function(e){B(e)}))}if(r&&!o.isTypedArray(r))for(s=0;s<r.length;s++)N(r[s]);if((t=e.markPoint)&&t.data){var l=t.data;for(s=0;s<l.length;s++)N(l[s])}if((n=e.markLine)&&n.data){var u=n.data;for(s=0;s<u.length;s++)o.isArray(u[s])?(N(u[s][0]),N(u[s][1])):N(u[s])}"gauge"===e.type?(V(e,"axisLabel"),V(e,"title"),V(e,"detail")):"treemap"===e.type?(E(e.breadcrumb,"itemStyle"),o.each(e.levels,(function(e){B(e)}))):"tree"===e.type&&B(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),O(n,(function(t){O(H(e[t]),(function(e){e&&(V(e,"axisLabel"),V(e.axisPointer,"label"))}))})),O(H(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;V(t,"axisLabel"),V(t&&t.axisPointer,"label")})),O(H(e.calendar),(function(e){E(e,"itemStyle"),V(e,"dayLabel"),V(e,"monthLabel"),V(e,"yearLabel")})),O(H(e.radar),(function(e){V(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),O(H(e.geo),(function(e){R(e)&&(N(e),O(H(e.regions),(function(e){N(e)})))})),O(H(e.timeline),(function(e){N(e),E(e,"label"),E(e,"itemStyle"),E(e,"controlStyle",!0);var t=e.data;o.isArray(t)&&o.each(t,(function(e){o.isObject(e)&&(E(e,"label"),E(e,"itemStyle"))}))})),O(H(e.toolbox),(function(e){E(e,"iconStyle"),O(e.feature,(function(e){E(e,"iconStyle")}))})),V(F(e.axisPointer),"label"),V(F(e.tooltip).axisPointer,"label")}function W(e){e&&(0,o.each)(Y,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var Y=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],U=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],X=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function j(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<X.length;n++){var i=X[n][1],r=X[n][0];null!=t[i]&&(t[r]=t[i])}}function q(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function K(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Q(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Q(e[n].children,t)}function J(e,t){G(e,t),e.series=(0,u.kF)(e.series),(0,o.each)(e.series,(function(e){if((0,o.isObject)(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),q(e.label),(r=e.data)&&!(0,o.isTypedArray)(r))for(var n=0;n<r.length;n++)q(r[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=function(e,t){for(var n=t.split(","),i=e,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(e,"pointer.color");null!=i&&function(e,t,n,i){for(var r,o=t.split(","),a=e,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(e,"itemStyle.color",i)}else if("bar"===t){var r;if(j(e),j(e.backgroundStyle),j(e.emphasis),(r=e.data)&&!(0,o.isTypedArray)(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(j(r[n]),j(r[n]&&r[n].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),K(e),Q(e.data,K)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&(0,o.defaults)(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),W(e)}})),e.dataRange&&(e.visualMap=e.dataRange),(0,o.each)(U,(function(t){var n=e[t];n&&((0,o.isArray)(n)||(n=[n]),(0,o.each)(n,(function(e){W(e)})))}))}var $=n(96131);function ee(e){(0,o.each)(e,(function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,p=a.get(t.stackedDimension,c);if(isNaN(p))return r;s?d=a.getRawIndex(c):h=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var v=e[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var y=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=(0,$.S$)(p,y),f=y;break}}}return i[0]=p,i[1]=f,i}))}))}var te=n(83072),ne=n(65160),ie=n(50261),re=n(46547),oe=n(40692),ae=n(42933),se=n(2916),le=n(89523),ue=n(73372),ce=n(73474),he=n(58186),de=n(73870),pe=n(32975),fe=(0,u.Yf)(),ge={itemStyle:(0,he.Z)(de.t,!0),lineStyle:(0,he.Z)(pe.v,!0)},ve={lineStyle:"stroke",itemStyle:"fill"};function ye(e,t){var n=e.visualStyleMapper||ge[t];return n||(console.warn("Unknown style type '"+t+"'."),ge.itemStyle)}function me(e,t){var n=e.visualDrawType||ve[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var xe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),a=ye(e,i)(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=me(e,i),u=a[l],c=(0,o.isFunction)(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,o.isFunction)(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||(0,o.isFunction)(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=(0,o.extend)({},a);r[l]=c(i),t.setItemVisual(n,"style",r)}}}},_e=new c.Z,be={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=ye(e,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){_e.option=n[i];var s=r(_e),l=e.ensureUniqueItemVisual(t,"style");(0,o.extend)(l,s),_e.option.decal&&(e.setItemVisual(t,"decal",_e.option.decal),_e.option.decal.dirty=!0),a in s&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},we={performRawSeries:!0,overallReset:function(e){var t=(0,o.createHashMap)();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),fe(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=fe(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=me(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}}))}}))}},Se=n(74777),Me=n(31410),Ie=n(767),Te=Math.PI;var Ce=n(49162),Ae=n(74440),ke=function(){function e(e,t,n,i){this._stageTaskMap=(0,o.createHashMap)(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,o=e.get("large")&&i>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=(0,o.createHashMap)();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;(0,o.each)(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{});(0,o.assert)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,a=this;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}(0,o.each)(e,(function(e,o){if(!i.visualType||i.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(e){s(i,e)&&(e.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);d.each((function(e){e.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(o,l){s(i,o)&&o.dirty();var u=a.getPerformArgs(o,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=(0,o.createHashMap)(),l=e.seriesType,u=e.getTargetSeries;function c(t){var o=t.uid,l=s.set(o,a&&a.get(o)||(0,Ce.v)({plan:Re,reset:Ze,count:Be}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,a=t.overallTask=t.overallTask||(0,Ce.v)({reset:Le});a.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=(0,o.createHashMap)(),u=e.seriesType,c=e.getTargetSeries,h=!0,d=!1;function p(e){var t=e.uid,n=l.set(t,s&&s.get(t)||(d=!0,(0,Ce.v)({reset:Pe,onDirty:Oe})));n.context={model:e,overallProgress:h},n.agent=a,n.__block=h,r._pipe(e,n)}(0,o.assert)(!e.createOnAllSeries,""),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(h=!1,(0,o.each)(n.getSeries(),p)),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return(0,o.isFunction)(e)&&(e={overallReset:e,seriesType:Ve(e)}),e.uid=(0,Ae.Kr)("stageHandler"),t&&(e.visualType=t),e},e}();function Le(e){e.overallReset(e.ecModel,e.api,e.payload)}function Pe(e){return e.overallProgress&&De}function De(){this.agent.dirty(),this.getDownstream().dirty()}function Oe(){this.agent&&this.agent.dirty()}function Re(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ze(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=(0,u.kF)(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?(0,o.map)(t,(function(e,t){return Ee(t)})):ze}var ze=Ee(0);function Ee(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function Be(e){return e.data.count()}function Ve(e){Ne=null;try{e(He,Fe)}catch(e){}return Ne}var Ne,He={},Fe={};function Ge(e,t){for(var n in t.prototype)e[n]=o.noop}Ge(He,T),Ge(Fe,A),He.eachSeriesByType=He.eachRawSeriesByType=function(e){Ne=e},He.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Ne=e.subType)};const We=ke;var Ye=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Ue={color:Ye,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ye]};var Xe="#B9B8CE",je="#100C2A",qe=function(){return{axisLine:{lineStyle:{color:Xe}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Ke=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Qe={darkMode:!0,color:Ke,backgroundColor:je,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Xe},pageTextStyle:{color:Xe}},textStyle:{color:Xe},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Xe}},dataZoom:{borderColor:"#71708A",textStyle:{color:Xe},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Xe}},timeline:{lineStyle:{color:Xe},label:{color:Xe},controlStyle:{color:Xe,borderColor:Xe}},calendar:{itemStyle:{color:je},dayLabel:{color:Xe},monthLabel:{color:Xe},yearLabel:{color:Xe}},timeAxis:qe(),logAxis:qe(),valueAxis:qe(),categoryAxis:qe(),line:{symbol:"circle"},graph:{color:Ke},gauge:{title:{color:Xe},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Xe},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Qe.categoryAxis.splitLine.show=!1;const Je=Qe;var $e=n(68597),et=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(o.isString(e)){var r=(0,$e.u9)(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(e,(function(e,r){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(r)&&(n[r]=e,o=!0),o||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),tt=["symbol","symbolSize","symbolRotate","symbolOffset"],nt=tt.concat(["symbolKeepAspect"]),it={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},a=!1,s=0;s<tt.length;s++){var l=tt[s],u=e.get(l);(0,o.isFunction)(u)?(a=!0,r[l]=u):i[l]=u}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual((0,o.extend)({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var c=(0,o.keys)(r);return{dataEach:a?function(t,n){for(var i=e.getRawValue(n),o=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,r[s](i,o))}}:null}}}}},rt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),i=0;i<nt.length;i++){var r=nt[i],o=n.getShallow(r,!0);null!=o&&e.setItemVisual(t,r,o)}}:null}}},ot=n(7267),at=n(2118);function st(e,t,n,i,r){var a=e+t;n.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,s=r.selected,l=0;l<s.length;l++)if(s[l].seriesIndex===t){var c=e.getData(),h=(0,u.gO)(c,r.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:(0,o.isArray)(h)?c.getName(h[0]):c.getName(h),selected:(0,o.isString)(i)?i:(0,o.extend)({},i)})}}))}var lt=n(35804),ut=n(82357),ct=n(83542),ht=n(20890);const dt=new l.Z;var pt=n(70813),ft=n(92341),gt="5.6.0",vt={zrender:"5.6.1"},yt=2e3,mt=1e3,xt=2e3,_t=3e3,bt=4500,wt={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:mt,PROGRESSIVE_LAYOUT:1100,GLOBAL:xt,CHART:_t,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:bt,ARIA:6e3,DECAL:7e3}},St="__flagInMainProcess",Mt="__pendingUpdate",It="__needsUpdateStatus",Tt=/^[a-zA-Z0-9_]+$/,Ct="__connectUpdateStatus";function At(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Lt(this,e,t);en(this.id)}}function kt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Lt(this,e,t)}}function Lt(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),l.Z.prototype[t].apply(e,n)}var Pt,Dt,Ot,Rt,Zt,zt,Et,Bt,Vt,Nt,Ht,Ft,Gt,Wt,Yt,Ut,Xt,jt,qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t}(l.Z),Kt=qt.prototype;Kt.on=kt("on"),Kt.off=kt("off");var Qt=function(e){function t(t,n,i){var a=e.call(this,new et)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},(0,o.isString)(n)&&(n=sn[n]),a._dom=t;i.ssr&&r.registerSSRDataGetter((function(e){var t=(0,le.A)(e),n=t.dataIndex;if(null!=n){var i=(0,o.createHashMap)();return i.set("series_index",t.seriesIndex),i.set("data_index",n),t.ssrType&&i.set("ssr_type",t.ssrType),i}}));var l=a._zr=r.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,o.retrieve2)(i.useDirtyRect,!1),useCoarsePointer:(0,o.retrieve2)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=(0,ce.P2)((0,o.bind)(l.flush,l),17),(n=(0,o.clone)(n))&&J(n,!0),a._theme=n,a._locale=(0,ut.D0)(i.locale||ut.sO),a._coordSysMgr=new k.Z;var u=a._api=Yt(a);function c(e,t){return e.__prio-t.__prio}return(0,s.Z)(an,c),(0,s.Z)(rn,c),a._scheduler=new We(a,u,rn,an),a._messageCenter=new qt,a._initEvents(),a.resize=(0,o.bind)(a.resize,a),l.animation.on("frame",a._onframe,a),Nt(l,a),Ht(l,a),(0,o.setAsPrimitive)(a),a}return(0,i.__extends)(t,e),t.prototype._onframe=function(){if(!this._disposed){jt(this);var e=this._scheduler;if(this[Mt]){var t=this[Mt].silent;this[St]=!0;try{Pt(this),Rt.update.call(this,null,this[Mt].updateParams)}catch(e){throw this[St]=!1,this[Mt]=null,e}this._zr.flush(),this[St]=!1,this[Mt]=null,Bt.call(this,t),Vt.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),zt(this,i),e.performVisualTasks(i),Wt(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[St])if(this._disposed)en(this.id);else{var i,r,a;if((0,o.isObject)(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,a=t.transition,t=t.notMerge),this[St]=!0,!this._model||t){var s=new D(this._api),l=this._theme,u=this._model=new T;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:r},on);var c={seriesTransition:a,optionChanged:!0};if(n)this[Mt]={silent:i,updateParams:c},this[St]=!1,this.getZr().wakeUp();else{try{Pt(this),Rt.update.call(this,null,c)}catch(e){throw this[Mt]=null,this[St]=!1,e}this._ssr||this._zr.flush(),this[Mt]=null,this[St]=!1,Bt.call(this,i),Vt.call(this,i)}}},t.prototype.setTheme=function(){(0,at.Sh)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.Z.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(a.Z.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return(0,o.each)(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,i=[],r=this;(0,o.each)(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return(0,o.each)(i,(function(e){e.group.ignore=!1})),a}en(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(cn[n]){var l=s,u=s,c=-1/0,h=-1/0,d=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();(0,o.each)(un,(function(r,s){if(r.group===n){var p=t?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas((0,o.clone)(e)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=a(f.right,c),h=a(f.bottom,h),d.push({dom:p,left:f.left,top:f.top})}}));var f=(c*=p)-(l*=p),g=(h*=p)-(u*=p),v=pt.qW.createCanvas(),y=r.init(v,{renderer:t?"svg":"canvas"});if(y.resize({width:f,height:g}),t){var m="";return(0,o.each)(d,(function(e){var t=e.left-l,n=e.top-u;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new re.Z({shape:{x:0,y:0,width:f,height:g},style:{fill:e.connectedBackgroundColor}})),(0,o.each)(d,(function(e){var t=new oe.ZP({style:{x:e.left*p-l,y:e.top*p-u,image:e.dom}});y.add(t)})),y.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}en(this.id)},t.prototype.convertToPixel=function(e,t){return Zt(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return Zt(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=u.pm(i,e);return(0,o.each)(r,(function(e,i){i.indexOf("Models")>=0&&(0,o.each)(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}en(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=u.pm(n,e,{defaultMainType:"series"});var r=i.seriesModel.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=o?(0,ot.Or)(r,o,t):(0,ot.UL)(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,i=this;(0,o.each)($t,(function(e){var t=function(t){var n,r=i.getModel(),a=t.target;if("globalout"===e?n={}:a&&(0,ct.o)(a,(function(e){var t=(0,le.A)(e);if(t&&null!=t.dataIndex){var i=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return n=i&&i.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return n=(0,o.extend)({},t.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&i["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=t,n.type=e,i._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:u,view:c},i.trigger(e,n)}};t.zrEventfulCallAtLast=!0,i._zr.on(e,t,i)})),(0,o.each)(nn,(function(e,t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),(0,o.each)(["selectchanged"],(function(e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(st("map","selectchanged",t,i,e),st("pie","selectchanged",t,i,e)):"select"===e.fromAction?(st("map","selected",t,i,e),st("pie","selected",t,i,e)):"unselect"===e.fromAction&&(st("map","unselected",t,i,e),st("pie","unselected",t,i,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?en(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)en(this.id);else{this._disposed=!0,this.getDom()&&u.P$(this.getDom(),pn,"");var e=this,t=e._api,n=e._model;(0,o.each)(e._componentsViews,(function(e){e.dispose(n,t)})),(0,o.each)(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete un[e.id]}},t.prototype.resize=function(e){if(!this[St])if(this._disposed)en(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Mt]&&(null==i&&(i=this[Mt].silent),n=!0,this[Mt]=null),this[St]=!0;try{n&&Pt(this),Rt.update.call(this,{type:"resize",animation:(0,o.extend)({duration:0},e&&e.animation)})}catch(e){throw this[St]=!1,e}this[St]=!1,Bt.call(this,i),Vt.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)en(this.id);else if((0,o.isObject)(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ln[e]){var n=ln[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?en(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=(0,o.extend)({},e);return t.type=nn[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)en(this.id);else if((0,o.isObject)(t)||(t={silent:!!t}),tn[e.type]&&this._model)if(this[St])this._pendingActions.push(e);else{var n=t.silent;Et.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&a.Z.browser.weChat&&this._throttledZrFlush(),Bt.call(this,n),Vt.call(this,n)}},t.prototype.updateLabelLayout=function(){dt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)en(this.id);else{var t=e.seriesIndex;0,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),e.hoverState===ue.wU&&e.states.emphasis?t.push("emphasis"):e.hoverState===ue.CX&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return r(e,n,i,-1/0),!0}))}}function r(e,t,n,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(o&&(o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function l(e,t){t.eachRendered((function(e){if(!ae.eq(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function c(e,n){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(ae.eq(e))return;if(e instanceof se.ZP&&(0,ue.e9)(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}Pt=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Dt(e,!0),Dt(e,!1),t.plan()},Dt=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var h=(0,$e.u9)(e.type);0,(c=new(t?ne.Z.getClass(h.main,h.sub):ie.Z.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Ot=function(e,t,n,i,r){var a=e._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c,h=n.excludeSeriesId;null!=h&&(c=(0,o.createHashMap)(),(0,o.each)(u.kF(h),(function(e){var t=u.U5(e,null);null!=t&&c.set(t,!0)}))),a&&a.eachComponent(l,(function(t){if(!(c&&null!=c.get(t.id)))if((0,ue.xp)(n))if(t instanceof te.Z)n.type!==ue.Ki||n.notBlur||t.get(["emphasis","disabled"])||(0,ue.UL)(t,n,e._api);else{var i=(0,ue.oJ)(t.mainType,t.componentIndex,n.name,e._api),r=i.focusSelf,a=i.dispatchers;n.type===ue.Ki&&r&&!n.notBlur&&(0,ue.zI)(t.mainType,t.componentIndex,e._api),a&&(0,o.each)(a,(function(e){n.type===ue.Ki?(0,ue.fD)(e):(0,ue.Mh)(e)}))}else(0,ue.aG)(n)&&t instanceof te.Z&&((0,ue.og)(t,n,e._api),(0,ue.ci)(t),Xt(e))}),e),a&&a.eachComponent(l,(function(t){c&&null!=c.get(t.id)||d(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else(0,o.each)([].concat(e._componentsViews).concat(e._chartsViews),d);function d(i){i&&i.__alive&&i[t]&&i[t](i.__model,a,e._api,n)}},Rt={prepareAndUpdate:function(e){Pt(this),Rt.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,t),zt(this,i),a.update(i,r),e(i),s.performVisualTasks(i,t),Ft(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),dt.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var a=[];i.eachComponent((function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,t);l&&l.update&&a.push(s)}else a.push(s)}}));var s=(0,o.createHashMap)();i.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var a=o.updateTransform(e,i,r,t);a&&a.update&&s.set(e.uid,1)}else s.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:s}),Wt(this,i,r,t,{},s),dt.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),ie.Z.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Ft(this,n,this._api,t,{}),dt.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),ie.Z.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,i,n._api,t)})),dt.trigger("afterupdate",i,this._api))},updateLayout:function(e){Rt.update.call(this,e)}},Zt=function(e,t,n,i){if(e._disposed)en(e.id);else{for(var r,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=u.pm(o,n),l=0;l<a.length;l++){var c=a[l];if(c[t]&&null!=(r=c[t](o,s,i)))return r}0}},zt=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},Et=function(e,t){var n=this,i=this.getModel(),r=e.type,a=e.escapeConnect,s=tn[r],l=s.actionInfo,c=(l.update||"update").split(":"),h=c.pop(),d=null!=c[0]&&(0,$e.u9)(c[0]);this[St]=!0;var p=[e],f=!1;e.batch&&(f=!0,p=(0,o.map)(e.batch,(function(t){return(t=(0,o.defaults)((0,o.extend)({},t),e)).batch=null,t})));var g,v=[],y=(0,ue.aG)(e),m=(0,ue.xp)(e);if(m&&(0,ue.T5)(this._api),(0,o.each)(p,(function(t){if((g=(g=s.action(t,n._model,n._api))||(0,o.extend)({},t)).type=l.event||g.type,v.push(g),m){var i=u.zH(e),r=i.queryOptionMap,a=i.mainTypeSpecified?r.keys()[0]:"series";Ot(n,h,t,a),Xt(n)}else y?(Ot(n,h,t,"series"),Xt(n)):d&&Ot(n,h,t,d.main,d.sub)})),"none"!==h&&!m&&!y&&!d)try{this[Mt]?(Pt(this),Rt.update.call(this,e),this[Mt]=null):Rt[h].call(this,e)}catch(e){throw this[St]=!1,e}if(g=f?{type:l.event||r,escapeConnect:a,batch:v}:v[0],this[St]=!1,!t){var x=this._messageCenter;if(x.trigger(g.type,g),y){var _={type:"selectchanged",escapeConnect:a,selected:(0,ue.C5)(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};x.trigger(_.type,_)}}},Bt=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Et.call(this,n,e)}},Vt=function(e){!e&&this.trigger("updated")},Nt=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Mt]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},Ht=function(e,t){e.on("mouseover",(function(e){var n=e.target,i=(0,ct.o)(n,ue.Av);i&&((0,ue.$l)(i,e,t._api),Xt(t))})).on("mouseout",(function(e){var n=e.target,i=(0,ct.o)(n,ue.Av);i&&((0,ue.xr)(i,e,t._api),Xt(t))})).on("click",(function(e){var n=e.target,i=(0,ct.o)(n,(function(e){return null!=(0,le.A)(e).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=(0,le.A)(i);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},Ft=function(e,t,n,i,r){!function(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,a,l=t.concat(n);(0,s.Z)(l,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),(0,o.each)(l,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,o=t.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)}))}}(t),Gt(e,t,n,i,r),(0,o.each)(e._chartsViews,(function(e){e.__alive=!1})),Wt(e,t,n,i,r),(0,o.each)(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},Gt=function(e,t,i,r,a,s){(0,o.each)(s||e._componentsViews,(function(e){var o=e.__model;l(o,e),e.render(o,t,i,r),n(o,e),c(o,e)}))},Wt=function(e,t,i,r,s,u){var h=e._scheduler;s=(0,o.extend)(s||{},{updatedSeries:t.getSeries()}),dt.trigger("series:beforeupdate",t,i,s);var d=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,r),l(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(d=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),(0,ue.ci)(t)})),h.unfinished=d||h.unfinished,dt.trigger("series:layoutlabels",t,i,s),dt.trigger("series:transition",t,i,s),t.eachSeries((function(t){var i=e._chartsMap[t.__viewId];n(t,i),c(t,i)})),function(e,t){var n=e._zr,i=n.storage,r=0;i.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!a.Z.node&&!a.Z.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),dt.trigger("series:afterupdate",t,i,s)},Xt=function(e){e[It]=!0,e.getZr().wakeUp()},jt=function(e){e[It]&&(e.getZr().storage.traverse((function(e){ae.eq(e)||t(e)})),e[It]=!1)},Yt=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){(0,ue.fD)(t,n),Xt(e)},n.prototype.leaveEmphasis=function(t,n){(0,ue.Mh)(t,n),Xt(e)},n.prototype.enterBlur=function(t){(0,ue.SX)(t),Xt(e)},n.prototype.leaveBlur=function(t){(0,ue.VP)(t),Xt(e)},n.prototype.enterSelect=function(t){(0,ue.XX)(t),Xt(e)},n.prototype.leaveSelect=function(t){(0,ue.SJ)(t),Xt(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(A))(e)},Ut=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][Ct]=t}}(0,o.each)(nn,(function(n,i){e._messageCenter.on(i,(function(n){if(cn[e.group]&&0!==e[Ct]){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];(0,o.each)(un,(function(t){t!==e&&t.group===e.group&&r.push(t)})),t(r,0),(0,o.each)(r,(function(e){1!==e[Ct]&&e.dispatchAction(i)})),t(r,2)}}))}))}}(),t}(l.Z),Jt=Qt.prototype;Jt.on=At("on"),Jt.off=At("off"),Jt.one=function(e,t,n){var i=this;(0,at.Sh)("ECharts#one is deprecated."),this.on.call(this,e,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t&&t.apply&&t.apply(this,r),i.off(e,n)}),n)};var $t=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function en(e){0}var tn={},nn={},rn=[],on=[],an=[],sn={},ln={},un={},cn={},hn=+new Date-0,dn=+new Date-0,pn="_echarts_instance_";function fn(e,t,n){var i=!(n&&n.ssr);if(i){0;var r=xn(e);if(r)return r;0}var o=new Qt(e,t,n);return o.id="ec_"+hn++,un[o.id]=o,i&&u.P$(e,pn,o.id),Ut(o),dt.trigger("afterinit",o),o}function gn(e){if((0,o.isArray)(e)){var t=e;e=null,(0,o.each)(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+dn++,(0,o.each)(t,(function(t){t.group=e}))}return cn[e]=!0,e}function vn(e){cn[e]=!1}var yn=vn;function mn(e){(0,o.isString)(e)?e=un[e]:e instanceof Qt||(e=xn(e)),e instanceof Qt&&!e.isDisposed()&&e.dispose()}function xn(e){return un[u.IL(e,pn)]}function _n(e){return un[e]}function bn(e,t){sn[e]=t}function wn(e){(0,o.indexOf)(on,e)<0&&on.push(e)}function Sn(e,t){On(rn,e,t,yt)}function Mn(e){Tn("afterinit",e)}function In(e){Tn("afterupdate",e)}function Tn(e,t){dt.on(e,t)}function Cn(e,t,n){(0,o.isFunction)(t)&&(n=t,t="");var i=(0,o.isObject)(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,nn[t]||((0,o.assert)(Tt.test(i)&&Tt.test(t)),tn[i]||(tn[i]={action:n,actionInfo:e}),nn[t]=i)}function An(e,t){k.Z.register(e,t)}function kn(e){var t=k.Z.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Ln(e,t){On(an,e,t,mt,"layout")}function Pn(e,t){On(an,e,t,_t,"visual")}var Dn=[];function On(e,t,n,i,r){if(((0,o.isFunction)(t)||(0,o.isObject)(t))&&(n=t,t=i),!((0,o.indexOf)(Dn,n)>=0)){Dn.push(n);var a=We.wrapStageHandler(n,r);a.__prio=t,a.__raw=n,e.push(a)}}function Rn(e,t){ln[e]=t}function Zn(e){(0,pt.g2)({createCanvas:e})}function zn(e,t,n){var i=(0,ft.C)("registerMap");i&&i(e,t,n)}function En(e){var t=(0,ft.C)("getMap");return t&&t(e)}var Bn=lt.DA;Pn(xt,xe),Pn(bt,be),Pn(bt,we),Pn(xt,it),Pn(bt,rt),Pn(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");n&&(i.ensureUniqueItemVisual(e,"style").decal=(0,ht.I)(n,t))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=(0,ht.I)(r,t)}}))})),wn(J),Sn(900,(function(e){var t=(0,o.createHashMap)();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),t.each(ee)})),Rn("default",(function(e,t){t=t||{},o.defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Se.Z,i=new re.Z({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,a=new Me.ZP({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),s=new re.Z({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(s),t.showSpinner&&((r=new Ie.Z({shape:{startAngle:-Te/2,endAngle:-Te/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Te/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Te/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.getBoundingRect().width,o=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*o-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:o),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),s.setShape({x:l-o,y:u-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),Cn({type:ue.Ki,event:ue.Ki,update:ue.Ki},o.noop),Cn({type:ue.yx,event:ue.yx,update:ue.yx},o.noop),Cn({type:ue.Hg,event:ue.Hg,update:ue.Hg},o.noop),Cn({type:ue.JQ,event:ue.JQ,update:ue.JQ},o.noop),Cn({type:ue.iK,event:ue.iK,update:ue.iK},o.noop),bn("light",Ue),bn("dark",Je);var Vn={}},92341:function(e,t,n){n.d(t,{C:()=>o,M:()=>r});var i={};function r(e,t){i[e]=t}function o(e){return i[e]}},53169:function(e,t,n){n.d(t,{Z:()=>a});var i=n(6836),r=0;function o(e){return(0,i.isObject)(e)&&null!=e.value?e.value:e+""}const a=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++r}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&(0,i.map)(r,o);return new e({categories:a,needCollect:!a,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!(0,i.isString)(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,i.createHashMap)(this.categories))},e}()},1420:function(e,t,n){n.d(t,{D:()=>p});n(92745);var i=n(62670),r=n(65160),o=n(50261),a=n(72255),s=n(83072),l=n(6836),u=n(92341),c=n(67279),h=[],d={registerPreprocessor:i.ds,registerProcessor:i.Pu,registerPostInit:i.sq,registerPostUpdate:i.Br,registerUpdateLifecycle:i.YK,registerAction:i.zl,registerCoordinateSystem:i.RS,registerLayout:i.qR,registerVisual:i.Og,registerTransform:i.OB,registerLoading:i.yn,registerMap:i.je,registerImpl:u.M,PRIORITY:i.Hr,ComponentModel:a.Z,ComponentView:r.Z,SeriesModel:s.Z,ChartView:o.Z,registerComponentModel:function(e){a.Z.registerClass(e)},registerComponentView:function(e){r.Z.registerClass(e)},registerSeriesModel:function(e){s.Z.registerClass(e)},registerChartView:function(e){o.Z.registerClass(e)},registerSubTypeDefaulter:function(e,t){a.Z.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){(0,c.registerPainter)(e,t)}};function p(e){(0,l.isArray)(e)?(0,l.each)(e,(function(e){p(e)})):(0,l.indexOf)(h,e)>=0||(h.push(e),(0,l.isFunction)(e)&&(e={install:e}),e.install(d))}},40716:function(e,t,n){n.d(t,{T:()=>Q});n(9359),n(31526);var i=n(31936),r=(n(92745),n(22139),n(31117)),o=n(42933),a=n(89523),s=n(96131),l=n(12115),u=(n(40793),n(62672)),c=n(2916),h=n(58733),d=n(40451),p=n(61397),f=n(24894),g=n(6836),v=n(8982),y=n(58881),m=n(73372),x=2*Math.PI,_=d.Z.CMD,b=["top","right","bottom","left"];function w(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0)}}function S(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+e,h=(s/=u)*n+t;if(Math.abs(i-r)%x<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=(0,p.m)(r),r=(0,p.m)(d)}else i=(0,p.m)(i),r=(0,p.m)(r);i>r&&(r+=x);var f=Math.atan2(s,a);if(f<0&&(f+=x),f>=i&&f<=r||f+x>=i&&f+x<=r)return l[0]=c,l[1]=h,u-n;var g=n*Math.cos(i)+e,v=n*Math.sin(i)+t,y=n*Math.cos(r)+e,m=n*Math.sin(r)+t,_=(g-a)*(g-a)+(v-s)*(v-s),b=(y-a)*(y-a)+(m-s)*(m-s);return _<b?(l[0]=g,l[1]=v,Math.sqrt(_)):(l[0]=y,l[1]=m,Math.sqrt(b))}function M(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,h=i-t,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=e+p*c,g=a[1]=t+p*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function I(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=a[0]=Math.min(Math.max(r,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var T=[];function C(e,t,n){var i=I(t.x,t.y,t.width,t.height,e.x,e.y,T);return n.set(T[0],T[1]),i}function A(e,t,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=t.data,h=e.x,d=e.y,p=0;p<c.length;){var g=c[p++];1===p&&(s=o=c[p],l=a=c[p+1]);var v=u;switch(g){case _.M:o=s=c[p++],a=l=c[p++];break;case _.L:v=M(o,a,c[p],c[p+1],h,d,T,!0),o=c[p++],a=c[p++];break;case _.C:v=(0,f.t1)(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,T),o=c[p++],a=c[p++];break;case _.Q:v=(0,f.Wr)(o,a,c[p++],c[p++],c[p],c[p+1],h,d,T),o=c[p++],a=c[p++];break;case _.A:var y=c[p++],m=c[p++],x=c[p++],b=c[p++],w=c[p++],C=c[p++];p+=1;var A=!!(1-c[p++]);i=Math.cos(w)*x+y,r=Math.sin(w)*b+m,p<=1&&(s=i,l=r),v=S(y,m,b,w,w+C,A,(h-y)*b/x+y,d,T),o=Math.cos(w+C)*x+y,a=Math.sin(w+C)*b+m;break;case _.R:v=I(s=o=c[p++],l=a=c[p++],c[p++],c[p++],h,d,T);break;case _.Z:v=M(o,a,s,l,h,d,T,!0),o=s,a=l}v<u&&(u=v,n.set(T[0],T[1]))}return u}var k=new u.Z,L=new u.Z,P=new u.Z,D=new u.Z,O=new u.Z;function R(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||b,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,h=r.anchor,d=e.getComputedTransform(),p=d&&(0,v.invert)([],d),f=t.get("length2")||0;h&&P.copy(h);for(var g=0;g<a.length;g++){w(a[g],0,s,k,D),u.Z.scaleAndAdd(L,k,D,f),L.transform(p);var y=e.getBoundingRect(),m=h?h.distance(L):e instanceof c.ZP?A(L,e.path,P):C(L,y,P);m<l&&(l=m,L.transform(d),P.transform(d),P.toArray(o[0]),L.toArray(o[1]),k.toArray(o[2]))}!function(e,t){if(!(t<=180&&t>0))return;t=t/180*Math.PI,k.fromArray(e[0]),L.fromArray(e[1]),P.fromArray(e[2]),u.Z.sub(D,k,L),u.Z.sub(O,P,L);var n=D.len(),i=O.len();if(n<.001||i<.001)return;D.scale(1/n),O.scale(1/i);var r=D.dot(O);if(Math.cos(t)<r){var o=M(L.x,L.y,P.x,P.y,k.x,k.y,Z,!1);z.fromArray(Z),z.scaleAndAdd(O,o/Math.tan(Math.PI-t));var a=P.x!==L.x?(z.x-L.x)/(P.x-L.x):(z.y-L.y)/(P.y-L.y);if(isNaN(a))return;a<0?u.Z.copy(z,L):a>1&&u.Z.copy(z,P),z.toArray(e[1])}}(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var Z=[],z=new u.Z;function E(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function B(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=y.dist(i[0],i[1]),o=y.dist(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=y.lerp([],i[1],i[0],a/r),l=y.lerp([],i[1],i[2],a/o),u=y.lerp([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}var V=n(76034),N=n(33666);function H(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function F(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:H(i&&i.shape.points)}}var G=["align","verticalAlign","width","height","fontSize"],W=new l.ZP,Y=(0,i.Yf)(),U=(0,i.Yf)();function X(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var j=["x","y","rotation"];const q=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,o){var a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();r.Z.applyTransform(u,u,l),l?W.setLocalTransform(l):(W.x=W.y=W.rotation=W.originX=W.originY=0,W.scaleX=W.scaleY=1),W.rotation=(0,p.m)(W.rotation);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();r.Z.applyTransform(c,c,d)}var f=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:f&&f.ignore,x:W.x,y:W.y,scaleX:W.scaleX,scaleY:W.scaleY,rotation:W.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");((0,g.isFunction)(i)||(0,g.keys)(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=(0,a.A)(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){R(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,l=a.__hostTarget,u=o.defaultAttr,c=void 0;c=(c=(0,g.isFunction)(o.layoutOption)?o.layoutOption(F(o,l)):o.layoutOption)||{},o.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:u.attachedPos,rotation:null!=c.rotate?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(null!=c.x?(a.x=(0,s.GM)(c.x,t),a.setStyle("x",0),d=!0):(a.x=u.x,a.setStyle("x",u.style.x)),null!=c.y?(a.y=(0,s.GM)(c.y,n),a.setStyle("y",0),d=!0):(a.y=u.y,a.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}Y(a).needsUpdateLabelLine=d,a.rotation=null!=c.rotate?c.rotate*h:u.rotation,a.scaleX=u.scaleX,a.scaleY=u.scaleY;for(var f=0;f<G.length;f++){var v=G[f];a.setStyle(v,null!=c[v]?c[v]:u.style[v])}if(c.draggable){if(a.draggable=!0,a.cursor="move",l){var y=o.seriesModel;if(null!=o.dataIndex)y=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",i(l,y.getModel("labelLine")))}}else a.off("drag"),a.cursor=u.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=(0,V.VT)(this._labelList),r=(0,g.filter)(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=(0,g.filter)(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));(0,V.WE)(r,0,t),(0,V.GI)(o,0,n);var a=(0,g.filter)(i,(function(e){return e.layoutOption.hideOverlap}));(0,V.yl)(a)},e.prototype.processLabelsOverall=function(){var e=this;(0,g.each)(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=Y(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=(0,a.A)(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),s=o.getItemModel(r),l={},u=o.getItemVisual(r,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var d=s.getModel("labelLine");!function(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<m.qc.length;l++){var u=m.qc[l],c=t[u],d="normal"===u;if(c){var p=c.get("show");if((d?s:(0,g.retrieve2)(r.states[u]&&r.states[u].ignore,s))||!(0,g.retrieve2)(p,a)){var f=d?i:i&&i.states[u];f&&(f.ignore=!0),i&&E(i,!0,u,c);continue}i||(i=new h.Z,e.setTextGuideLine(i),d||!s&&a||E(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),E(i,!1,u,c)}}if(i){(0,g.defaults)(i.style,n),i.style.fill=null;var v=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=v||!1,i.buildPath=B}}else i&&e.removeTextGuideLine()}(e,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<m.L1.length;i++){var r=m.L1[i];n[r]=e.getModel([r,t])}return n}(s),l),R(e,d)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!(0,o.eq)(e))){var r=(v=Y(n)).oldLayout,s=(0,a.A)(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(s.dataType);if(r){n.attr(r);var h=e.prevStates;h&&((0,g.indexOf)(h,"select")>=0&&n.attr(v.oldLayoutSelect),(0,g.indexOf)(h,"emphasis")>=0&&n.attr(v.oldLayoutEmphasis)),(0,o.D)(n,u,t,l)}else if(n.attr(u),!(0,N.qA)(n).valueAnimation){var d=(0,g.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,o.KZ)(n,{style:{opacity:d}},t,l)}if(v.oldLayout=u,n.states.select){var p=v.oldLayoutSelect={};X(p,u,j),X(p,n.states.select,j)}if(n.states.emphasis){var f=v.oldLayoutEmphasis={};X(f,u,j),X(f,n.states.emphasis,j)}(0,N.tD)(n,l,c,t,t)}if(i&&!i.ignore&&!i.invisible){r=(v=U(i)).oldLayout;var v,y={points:i.shape.points};r?(i.attr({shape:r}),(0,o.D)(i,{shape:y},t)):(i.setShape(y),i.style.strokePercent=0,(0,o.KZ)(i,{style:{strokePercent:1}},t)),v.oldLayout=y}},e}();var K=(0,i.Yf)();function Q(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=K(t).labelManager;i||(i=K(t).labelManager=new q),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=K(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}},76034:function(e,t,n){n.d(t,{GI:()=>l,VT:()=>o,WE:()=>s,yl:()=>u});n(92745);var i=n(90713),r=n(31117);function o(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var o=r.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var h=l?new i.Z(s,a):null;t.push({label:o,labelLine:r.labelLine,rect:c,localRect:s,obb:h,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:a})}}return t}function a(e,t,n,i,r,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=e[d],f=p.rect;(s=f[t]-l)<0&&(f[t]-=s,p.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[t]+f[n]}h>0&&o&&w(-h/a,0,a);var v,y,m=e[0],x=e[a-1];return _(),v<0&&S(-v,.8),y<0&&S(y,.8),_(),b(v,y,1),b(y,v,-1),_(),v<0&&M(-v),y<0&&M(y),u}function _(){v=m.rect[t]-i,y=r-x.rect[t]-x.rect[n]}function b(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function S(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){w(o[l]*h,0,l+1)}else for(l=a-1;l>0;l--){w(-(o[l-1]*h),l,a)}}}function M(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?w(n,0,i+1):w(-n,a-i-1,a),(e-=n)<=0)return}}function s(e,t,n,i){return a(e,"x","width",t,n,i)}function l(e,t,n,i){return a(e,"y","height",t,n,i)}function u(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new r.Z(0,0,0,0);function o(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var a=0;a<e.length;a++){var s=e[a],l=s.axisAligned,u=s.localRect,c=s.transform,h=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=s.obb,f=!1,g=0;g<t.length;g++){var v=t[g];if(n.intersect(v.rect)){if(l&&v.axisAligned){f=!0;break}if(v.obb||(v.obb=new i.Z(v.localRect,v.transform)),p||(p=new i.Z(u,c)),p.intersect(v.obb)){f=!0;break}}}f?(o(h),d&&o(d)):(h.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),t.push(s))}}},66130:function(e,t,n){n.d(t,{Bk:()=>y,G_:()=>g,Ge:()=>d,Gk:()=>h,My:()=>p,bK:()=>v});n(92745);var i=n(6836),r=n(96131),o=n(62951),a=n(8355),s=n(38951),l="__ec_stack_";function u(e){return e.get("stack")||l+e.seriesIndex}function c(e){return e.dim+e.index}function h(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a<e.count;a++)t.push((0,i.defaults)({bandWidth:o,axisKey:r,stackId:l+a},e));var s=f(t),u=[];for(a=0;a<e.count;a++){var c=s[r][l+a];c.offsetCenter=c.offset+c.width/2,u.push(c)}return u}}function d(e,t){var n=[];return t.eachSeriesByType(e,(function(e){m(e)&&n.push(e)})),n}function p(e){var t=function(e){var t={};(0,i.each)(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=e.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[r]?t[r].push(u):t[r]=[u]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(o){o.sort((function(e,t){return e-t}));for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}(e),n=[];return(0,i.each)(e,(function(e){var i,o=e.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],h=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=l?h/p*l:h}else{var f=e.getData();i=Math.abs(a[1]-a[0])/f.count()}var g=(0,r.GM)(e.get("barWidth"),i),v=(0,r.GM)(e.get("barMaxWidth"),i),y=(0,r.GM)(e.get("barMinWidth")||(x(e)?.5:1),i),m=e.get("barGap"),_=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:v,barMinWidth:y,barGap:m,barCategoryGap:_,axisKey:c(o),stackId:u(e)})})),f(n)}function f(e){var t={};(0,i.each)(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return(0,i.each)(t,(function(e,t){n[t]={};var o=e.stacks,a=e.bandWidth,s=e.categoryGap;if(null==s){var l=(0,i.keys)(o).length;s=Math.max(35-4*l,15)+"%"}var u=(0,r.GM)(s,a),c=(0,r.GM)(e.gap,1),h=e.remainedWidth,d=e.autoWidthCount,p=(h-u)/(d+(d-1)*c);p=Math.max(p,0),(0,i.each)(o,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,h-=i+c*i,d--}else{var i=p;t&&t<i&&(i=Math.min(t,h)),n&&n>i&&(i=n),i!==p&&(e.width=i,h-=i+c*i,d--)}})),p=(h-u)/(d+(d-1)*c),p=Math.max(p,0);var f,g=0;(0,i.each)(o,(function(e,t){e.width||(e.width=p),f=e,g+=e.width*(1+c)})),f&&(g-=f.width*c);var v=-g/2;(0,i.each)(o,(function(e,i){n[t][i]=n[t][i]||{bandWidth:a,offset:v,width:e.width},v+=e.width*(1+c)}))})),n}function g(e,t,n){if(e&&t){var i=e[c(t)];return null!=i&&null!=n?i[u(n)]:i}}function v(e,t){var n=d(e,t),r=p(n);(0,i.each)(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=u(e),o=r[c(n)][i],a=o.offset,s=o.width;t.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function y(e){return{seriesType:e,plan:(0,a.Z)(),reset:function(e){if(m(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),a=t.getDimensionIndex(t.mapDimension(r.dim)),l=t.getDimensionIndex(t.mapDimension(i.dim)),u=e.get("showBackground",!0),c=t.mapDimension(r.dim),h=t.getCalculationInfo("stackResultDimension"),d=(0,o.M)(t,c)&&!!t.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),f=function(e,t){var n=t.model.get("startValue");n||(n=0);return t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}(0,r),g=x(e),v=e.get("barMinHeight")||0,y=h&&t.getDimensionIndex(h),_=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(e,t){for(var i,r=e.count,o=g&&(0,s.o)(3*r),c=g&&u&&(0,s.o)(3*r),h=g&&(0,s.o)(r),m=n.master.getRect(),x=p?m.width:m.height,w=t.getStore(),S=0;null!=(i=e.next());){var M=w.get(d?y:a,i),I=w.get(l,i),T=f,C=void 0;d&&(C=+M-w.get(a,i));var A=void 0,k=void 0,L=void 0,P=void 0;if(p){var D=n.dataToPoint([M,I]);if(d)T=n.dataToPoint([C,I])[0];A=T,k=D[1]+b,L=D[0]-T,P=_,Math.abs(L)<v&&(L=(L<0?-1:1)*v)}else{D=n.dataToPoint([I,M]);if(d)T=n.dataToPoint([I,C])[1];A=D[0]+b,k=T,L=_,P=D[1]-T,Math.abs(P)<v&&(P=(P<=0?-1:1)*v)}g?(o[S]=A,o[S+1]=k,o[S+2]=p?L:P,c&&(c[S]=p?m.x:A,c[S+1]=p?k:m.y,c[S+2]=x),h[i]=i):t.setItemLayout(i,{x:A,y:k,width:L,height:P}),S+=3}g&&t.setLayout({largePoints:o,largeDataIndices:h,largeBackgroundPoints:c,valueAxisHorizontal:p})}}}}}}function m(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function x(e){return e.pipelineContext&&e.pipelineContext.large}},30703:function(e,t,n){n.d(t,{R:()=>a,f:()=>o});var i=n(6836),r=(0,i.createHashMap)();function o(e,t){(0,i.assert)(null==r.get(e)&&t),r.set(e,t)}function a(e,t,n){var i=r.get(t);if(!i)return n;var o=i(e);return o?n.concat(o):n}},64838:function(e,t,n){n.d(t,{Z:()=>a});var i=n(6836),r={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},o=function(e){return Math.round(e.length/2)};function a(e){return{seriesType:e,reset:function(e,t,n){var a=e.getData(),s=e.get("sampling"),l=e.coordinateSystem,u=a.count();if(u>10&&"cartesian2d"===l.type&&s){var c=l.getBaseAxis(),h=l.getOtherAxis(c),d=c.getExtent(),p=n.getDevicePixelRatio(),f=Math.abs(d[1]-d[0])*(p||1),g=Math.round(u/f);if(isFinite(g)&&g>1){"lttb"===s?e.setData(a.lttbDownSample(a.mapDimension(h.dim),1/g)):"minmax"===s&&e.setData(a.minmaxDownSample(a.mapDimension(h.dim),1/g));var v=void 0;(0,i.isString)(s)?v=r[s]:(0,i.isFunction)(s)&&(v=s),v&&e.setData(a.downSample(a.mapDimension(h.dim),1/g,v,o))}}}}}},91475:function(e,t,n){n.d(t,{N:()=>_});n(92745);var i=n(12336),r=n(6836),o=n(9065),a=n(18539),s=n(88762),l=n(60957),u=n(31117),c=n(65135),h=n(70813);function d(e,t,n){var i=h.qW.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}const p=function(e){function t(t,n,o){var a,s=e.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||i.KL,"string"==typeof t?a=d(t,n,o):r.isObject(t)&&(t=(a=t).id),s.id=t,s.dom=a;var l=a.style;return l&&(r.disableUserSelect(a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=o,s}return(0,o.__extends)(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=d("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new u.Z(0,0,0,0);function h(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new u.Z(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,i=1/0,r=0,c=0;c<o.length;++c){var h=o[c];if(h.intersect(e)){var d=new u.Z(0,0,0,0);d.copy(h),d.union(e),o[c]=d,n=!0;break}if(s){l.copy(e),l.union(h);var p=e.width*e.height,f=h.width*h.height,g=l.width*l.height-p-f;g<i&&(i=g,r=c)}}if(s&&(o[r].union(e),n=!0),!n)(t=new u.Z(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var d=this.__startIndex;d<this.__endIndex;++d){if(g=e[d]){var p=g.shouldBePainted(n,i,!0,!0);(v=g.__isRendered&&(g.__dirty&c.YV||!p)?g.getPrevPaintRect():null)&&h(v);var f=p&&(g.__dirty&c.YV||!g.__isRendered)?g.getPaintRect():null;f&&h(f)}}for(d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var g,v;p=(g=t[d])&&g.shouldBePainted(n,i,!0,!0);if(g&&(!p||!g.__zr)&&g.__isRendered)(v=g.getPrevPaintRect())&&h(v)}do{r=!1;for(d=0;d<o.length;)if(o[d].isZero())o.splice(d,1);else{for(var y=d+1;y<o.length;)o[d].intersect(o[y])?(r=!0,o[d].union(o[y]),o.splice(y,1)):y++;d++}}while(r);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,o=this.ctx,a=i.width,u=i.height;t=t||this.clearColor;var c=this.motionBlur&&!e,h=this.lastFrameAlpha,d=this.dpr,p=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/d,u/d));var f=this.domBack;function g(e,n,i,a){if(o.clearRect(e,n,i,a),t&&"transparent"!==t){var u=void 0;if(r.isGradientObject(t))u=(t.global||t.__width===i&&t.__height===a)&&t.__canvasGradient||(0,s.ZF)(o,t,{x:0,y:0,width:i,height:a}),t.__canvasGradient=u,t.__width=i,t.__height=a;else r.isImagePatternObject(t)&&(t.scaleX=t.scaleX||d,t.scaleY=t.scaleY||d,u=(0,l.RZ)(o,t,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=u||t,o.fillRect(e,n,i,a),o.restore()}c&&(o.save(),o.globalAlpha=h,o.drawImage(f,e,n,i,a),o.restore())}!n||c?g(0,0,a,u):n.length&&r.each(n,(function(e){g(e.x*d,e.y*d,e.width*d,e.height*d)}))},t}(a.Z);var f=n(9870),g=n(53970),v=1e5,y=314159,m=.01;const x=function(){function e(e,t,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=r.extend({},n||{}),this.dpr=n.devicePixelRatio||i.KL,this._singleCanvas=a,this.root=e,e.style&&(r.disableUserSelect(e),e.innerHTML=""),this.storage=t;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var c=e,h=c.width,d=c.height;null!=n.width&&(h=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=h*this.dpr,c.height=d*this.dpr,this._width=h,this._height=d;var f=new p(c,this,this.dpr);f.__builtin__=!0,f.initContext(),u[314159]=f,f.zlevel=y,l.push(y),this._domRoot=e}else{this._width=(0,s.ap)(e,0,n),this._height=(0,s.ap)(e,1,n);var g=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(g)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(v)),i||(i=n.ctx).save(),(0,l.Dm)(i,a,r,o===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(v)},e.prototype.paintOne=function(e,t){(0,l.RV)(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;(0,f.Z)((function(){s._paintList(e,t,n,i)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(y).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var c=!0,h=!1,d=function(r){var s,l=o[r],u=l.ctx,d=a&&l.createRepaintRects(e,t,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,d);else if(f===l.__startIndex){var m=e[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=e[s];if(r.__inHover&&(h=!0),i._doPaintEl(r,l,a,t,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&u.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=p.dpr,b=0;b<d.length;++b){var w=d[b];u.save(),u.beginPath(),u.rect(w.x*_,w.y*_,w.width*_,w.height*_),u.clip(),x(w),u.restore()}else u.save(),x(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},p=this,f=0;f<o.length;f++)d(f);return g.Z.wxa&&r.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:h}},e.prototype._doPaintEl=function(e,t,n,i,r,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&((0,l.Dm)(a,e,r,o),e.setPrevPaintRect(s))}else(0,l.Dm)(a,e,r,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=y);var n=this._layers[e];return n||((n=new p("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?r.merge(n,this._layerConfig[e],!0):this._layerConfig[e-m]&&r.merge(n,this._layerConfig[e-m],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(r>0&&e>i[0]){for(s=0;s<r-1&&!(i[s]<e&&i[s+1]>e);s++);a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&e.call(t,o,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||e.call(t,o,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((l=e[n]).zlevel!==e[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<e.length;o++){var l,u=(l=e[o]).zlevel,h=void 0;i!==u&&(i=u,s=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,s=1):h=this.getLayer(u+(s>0?m:0),this._needsManuallyCompositing),h.__builtin__||r.logError("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,t(o),a=h),l.__dirty&c.YV&&!l.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,r.each(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?r.merge(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===e||o===e+m){var a=this._layers[o];r.merge(a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(r.indexOf(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=(0,s.ap)(r,0,i),t=(0,s.ap)(r,1,i),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(y).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new p("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,r=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,u=a.length;s<u;s++){var c=a[s];(0,l.Dm)(n,c,o,s===u-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function _(e){e.registerPainter("canvas",x)}},92865:function(e,t,n){n.d(t,{Z:()=>c});n(92745);var i=n(9065),r=n(96131),o=n(94485),a=n(57092),s=n(22976),l=r.NM,u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return(0,i.__extends)(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return s.XS(e,this._extent)},t.prototype.normalize=function(e){return s.Fv(e,this._extent)},t.prototype.scale=function(e){return s.bA(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.lb(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;n[0]<i[0]&&(e?o.push({value:l(i[0]-t,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=l(a+t,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(e?o.push({value:l(s+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){for(var o=t[r],a=t[r-1],s=0,u=[],c=(o.value-a.value)/e;s<e-1;){var h=l(a.value+(s+1)*c);h>i[0]&&h<i[1]&&u.push(h),s++}n.push(u)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=r.p8(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(e.value,n,!0);return o.OD(i)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=s.Qf(i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=l(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=l(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(a.Z);a.Z.registerClass(u);const c=u},57092:function(e,t,n){n.d(t,{Z:()=>o});var i=n(68597),r=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();i.au(r);const o=r},22976:function(e,t,n){n.d(t,{Fv:()=>c,Qf:()=>o,XS:()=>u,bA:()=>h,lM:()=>r,lb:()=>s,r1:()=>a});var i=n(96131);function r(e){return"interval"===e.type||"log"===e.type}function o(e,t,n,r){var o={},a=e[1]-e[0],u=o.interval=(0,i.kx)(a/t,!0);null!=n&&u<n&&(u=o.interval=n),null!=r&&u>r&&(u=o.interval=r);var c=o.intervalPrecision=s(u);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),l(e,0,t),l(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(o.niceTickExtent=[(0,i.NM)(Math.ceil(e[0]/u)*u,c),(0,i.NM)(Math.floor(e[1]/u)*u,c)],e),o}function a(e){var t=Math.pow(10,(0,i.xW)(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,i.NM)(n*t)}function s(e){return(0,i.p8)(e)+2}function l(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function u(e,t){return e>=t[0]&&e<=t[1]}function c(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function h(e,t){return e*(t[1]-t[0])+t[0]}},20890:function(e,t,n){n.d(t,{I:()=>g});n(92745);var i=Math.round(9*Math.random()),r="function"==typeof Object.defineProperty;const o=function(){function e(){this._id="__ec_inner_"+i++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return r?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();var a=n(45974),s=n(6836),l=n(96131),u=n(88458),c=n(60957),h=n(70813),d=new o,p=new a.ZP(100),f=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function g(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&d.delete(e);var o=d.get(e);if(o)return o;var a=(0,s.defaults)(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var g={repeat:"repeat"};return function(e){for(var t,o=[n],d=!0,g=0;g<f.length;++g){var x=a[f[g]];if(null!=x&&!(0,s.isArray)(x)&&!(0,s.isString)(x)&&!(0,s.isNumber)(x)&&"boolean"!=typeof x){d=!1;break}o.push(x)}if(d){t=o.join(",")+(r?"-svg":"");var _=p.get(t);_&&(r?e.svgElement=_:e.image=_)}var b,w=y(a.dashArrayX),S=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if((0,s.isNumber)(e)){var t=Math.ceil(e);return[t,t]}var n=(0,s.map)(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),M=v(a.symbol),I=(L=w,(0,s.map)(L,(function(e){return m(e)}))),T=m(S),C=!r&&h.qW.createCanvas(),A=r&&{tag:"g",attrs:{},key:"dcl",children:[]},k=function(){for(var e=1,t=0,n=I.length;t<n;++t)e=(0,l.nl)(e,I[t]);var i=1;for(t=0,n=M.length;t<n;++t)i=(0,l.nl)(i,M[t].length);e*=i;var r=T*I.length*M.length;0;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var L;C&&(C.width=k.width*n,C.height=k.height*n,b=C.getContext("2d"));(function(){b&&(b.clearRect(0,0,C.width,C.height),a.backgroundColor&&(b.fillStyle=a.backgroundColor,b.fillRect(0,0,C.width,C.height)));for(var e=0,t=0;t<S.length;++t)e+=S[t];if(e<=0)return;var o=-T,s=0,l=0,h=0;for(;o<k.height;){if(s%2==0){for(var d=l/2%M.length,p=0,f=0,g=0;p<2*k.width;){var v=0;for(t=0;t<w[h].length;++t)v+=w[h][t];if(v<=0)break;if(f%2==0){var y=.5*(1-a.symbolSize),m=p+w[h][f]*y,x=o+S[s]*y,_=w[h][f]*a.symbolSize,I=S[s]*a.symbolSize,L=g/2%M[d].length;P(m,x,_,I,M[d][L])}p+=w[h][f],++g,++f===w[h].length&&(f=0)}++h===w.length&&(h=0)}o+=S[s],++l,++s===S.length&&(s=0)}function P(e,t,o,s,l){var h=r?1:n,d=(0,u.th)(l,e*h,t*h,o*h,s*h,a.color,a.symbolKeepAspect);if(r){var p=i.painter.renderOneToVNode(d);p&&A.children.push(p)}else(0,c.RV)(b,d)}})(),d&&p.put(t,C||A);e.image=C,e.svgElement=A,e.svgWidth=k.width,e.svgHeight=k.height}(g),g.rotation=a.rotation,g.scaleX=g.scaleY=r?1:1/n,d.set(e,g),e.dirty=!1,g}function v(e){if(!e||0===e.length)return[["rect"]];if((0,s.isString)(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!(0,s.isString)(e[n])){t=!1;break}if(t)return v([e]);var i=[];for(n=0;n<e.length;++n)(0,s.isString)(e[n])?i.push([e[n]]):i.push(e[n]);return i}function y(e){if(!e||0===e.length)return[[0,0]];if((0,s.isNumber)(e))return[[r=Math.ceil(e),r]];for(var t=!0,n=0;n<e.length;++n)if(!(0,s.isNumber)(e[n])){t=!1;break}if(t)return y([e]);var i=[];for(n=0;n<e.length;++n)if((0,s.isNumber)(e[n])){var r=Math.ceil(e[n]);i.push([r,r])}else{(r=(0,s.map)(e[n],(function(e){return Math.ceil(e)}))).length%2==1?i.push(r.concat(r)):i.push(r)}return i}function m(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}},83542:function(e,t,n){function i(e,t,n){for(var i;e&&(!t(e)||(i=e,!n));)e=e.__hostTarget||e.parent;return i}n.d(t,{o:()=>i})},88458:function(e,t,n){n.d(t,{Cq:()=>S,Pw:()=>m,th:()=>b,zp:()=>w});var i=n(6836),r=n(2916),o=n(55857),a=n(46547),s=n(44061),l=n(59214),u=n(31117),c=n(559),h=n(96131),d=r.ZP.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),p=r.ZP.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),f=r.ZP.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),e.closePath()}}),g=r.ZP.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),v={line:o.Z,rect:a.Z,roundRect:a.Z,square:a.Z,circle:s.Z,diamond:p,pin:f,arrow:g,triangle:d},y={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},m={};(0,i.each)(v,(function(e,t){m[t]=new e}));var x=r.ZP.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=(0,c.wI)(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=m[i];r||(r=m[i="rect"]),y[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function _(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function b(e,t,n,i,r,o,a){var s,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?l.makeImage(e.slice(8),new u.Z(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?l.makePath(e.slice(7),{},new u.Z(t,n,i,r),a?"center":"cover"):new x({shape:{symbolType:e,x:t,y:n,width:i,height:r}})).__isEmptyBrush=c,s.setColor=_,o&&s.setColor(o),s}function w(e){return(0,i.isArray)(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function S(e,t){if(null!=e)return(0,i.isArray)(e)||(e=[e,e]),[(0,h.GM)(e[0],t[0])||0,(0,h.GM)((0,i.retrieve2)(e[1],e[0]),t[1])||0]}},73474:function(e,t,n){n.d(t,{P2:()=>a,T9:()=>s,ZH:()=>l});var i="\0__throttleOriginMethod",r="\0__throttleRate",o="\0__throttleType";function a(e,t,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];i=(new Date).getTime(),o=this,a=e;var p=s||t,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function s(e,t,n,s){var l=e[t];if(l){var u=l[i]||l,c=l[o];if(l[r]!==n||c!==s){if(null==n||!s)return e[t]=u;(l=e[t]=a(u,n,"debounce"===s))[i]=u,l[o]=s,l[r]=n}return l}}function l(e,t){var n=e[t];n&&n[i]&&(n.clear&&n.clear(),e[t]=n[i])}},38951:function(e,t,n){n.d(t,{o:()=>a});n(26200),n(25754),n(22246),n(71375),n(15524),n(20267);var i=n(6836),r="undefined"!=typeof Float32Array,o=r?Float32Array:Array;function a(e){return(0,i.isArray)(e)?r?new Float32Array(e):e:new o(e)}},65160:function(e,t,n){n.d(t,{Z:()=>s});n(22139);var i=n(74777),r=n(74440),o=n(68597),a=function(){function e(){this.group=new i.Z,this.uid=r.Kr("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();o.dm(a),o.au(a);const s=a},7267:function(e,t,n){function i(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function r(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function o(e,t,n,i){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i)}}n.d(t,{LZ:()=>o,Or:()=>i,UL:()=>r})},9870:function(e,t,n){n.d(t,{Z:()=>i});const i=n(53970).Z.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)}},60957:function(e,t,n){n.d(t,{Dm:()=>O,RZ:()=>_,RV:()=>D});var i=n(335),r=n(40451),o=n(13418),a=n(88762),s=n(2916),l=n(40692),u=n(32216),c=n(6836);function h(e){var t,n,i=e.style,r=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,n=i.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:(0,c.isNumber)(t)?[t]:(0,c.isArray)(t)?t:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(r=(0,c.map)(r,(function(e){return e/a})),o/=a)}return[r,o]}var d=n(65135),p=n(70813),f=new r.Z(!0);function g(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function v(e){return"string"==typeof e&&"none"!==e}function y(e){var t=e.fill;return null!=t&&"none"!==t}function m(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function x(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function _(e,t,n){var i=(0,o.Gq)(t.image,t.__image,n);if((0,o.v5)(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*c.RADIAN_TO_DEGREE),a.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(a)}return r}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(e,t,n,r,o){var a=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){L(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?i.tj.opacity:s}(r||t.blend!==n.blend)&&(a||(L(e,o),a=!0),e.globalCompositeOperation=t.blend||i.tj.blend);for(var l=0;l<b.length;l++){var u=b[l];(r||t[u]!==n[u])&&(a||(L(e,o),a=!0),e[u]=e.dpr*(t[u]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(L(e,o),a=!0),e.shadowColor=t.shadowColor||i.tj.shadowColor),a}function M(e,t,n,i,r){var o=P(t,r.inHover),a=i?null:n&&P(n,r.inHover)||{};if(o===a)return!1;var s=S(e,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(L(e,r),s=!0),v(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(L(e,r),s=!0),v(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(L(e,r),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(L(e,r),s=!0),e.lineWidth=l)}for(var u=0;u<w.length;u++){var c=w[u],h=c[0];(i||o[h]!==a[h])&&(s||(L(e,r),s=!0),e[h]=o[h]||c[1])}return s}function I(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}var T=1,C=2,A=3,k=4;function L(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function P(e,t){return t&&e.__hoverStyle||e.style}function D(e,t){O(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function O(e,t,n,i){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~d.YV,void(t.__isRendered=!1);var c=t.__clipPaths,v=n.prevElClipPaths,b=!1,w=!1;if(v&&!(0,a.cF)(c,v)||(v&&v.length&&(L(e,n),e.restore(),w=b=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),c&&c.length&&(L(e,n),e.save(),function(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),I(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}(c,e,n),b=!0),n.prevElClipPaths=c),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var D=n.prevEl;D||(w=b=!0);var R,Z,z=t instanceof s.ZP&&t.autoBatch&&function(e){var t=y(e),n=g(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);b||(R=r,Z=D.transform,R&&Z?R[0]!==Z[0]||R[1]!==Z[1]||R[2]!==Z[2]||R[3]!==Z[3]||R[4]!==Z[4]||R[5]!==Z[5]:R||Z)?(L(e,n),I(e,t)):z||L(e,n);var E=P(t,n.inHover);t instanceof s.ZP?(n.lastDrawType!==T&&(w=!0,n.lastDrawType=T),M(e,t,D,w,n),z&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,i){var r,o=g(n),s=y(n),l=n.strokePercent,u=l<1,c=!t.path;t.silent&&!u||!c||t.createPathProxy();var p=t.path||f,v=t.__dirty;if(!i){var b=n.fill,w=n.stroke,S=s&&!!b.colorStops,M=o&&!!w.colorStops,I=s&&!!b.image,T=o&&!!w.image,C=void 0,A=void 0,k=void 0,L=void 0,P=void 0;(S||M)&&(P=t.getBoundingRect()),S&&(C=v?(0,a.ZF)(e,b,P):t.__canvasFillGradient,t.__canvasFillGradient=C),M&&(A=v?(0,a.ZF)(e,w,P):t.__canvasStrokeGradient,t.__canvasStrokeGradient=A),I&&(k=v||!t.__canvasFillPattern?_(e,b,t):t.__canvasFillPattern,t.__canvasFillPattern=k),T&&(L=v||!t.__canvasStrokePattern?_(e,w,t):t.__canvasStrokePattern,t.__canvasStrokePattern=k),S?e.fillStyle=C:I&&(k?e.fillStyle=k:s=!1),M?e.strokeStyle=A:T&&(L?e.strokeStyle=L:o=!1)}var D,O,R=t.getGlobalScale();p.setScale(R[0],R[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(D=(r=h(t))[0],O=r[1]);var Z=!0;(c||v&d.RH)&&(p.setDPR(e.dpr),u?p.setContext(null):(p.setContext(e),Z=!1),p.reset(),t.buildPath(p,t.shape,i),p.toStatic(),t.pathUpdated()),Z&&p.rebuildPath(e,u?l:1),D&&(e.setLineDash(D),e.lineDashOffset=O),i||(n.strokeFirst?(o&&x(e,n),s&&m(e,n)):(s&&m(e,n),o&&x(e,n))),D&&e.setLineDash([])}(e,t,E,z),z&&(n.batchFill=E.fill||"",n.batchStroke=E.stroke||"")):t instanceof u.Z?(n.lastDrawType!==A&&(w=!0,n.lastDrawType=A),M(e,t,D,w,n),function(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||p.Uo,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(i=h(t))[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(g(n)&&e.strokeText(r,n.x,n.y),y(n)&&e.fillText(r,n.x,n.y)):(y(n)&&e.fillText(r,n.x,n.y),g(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}(e,t,E)):t instanceof l.ZP?(n.lastDrawType!==C&&(w=!0,n.lastDrawType=C),function(e,t,n,i,r){S(e,P(t,r.inHover),n&&P(n,r.inHover),i,r)}(e,t,D,w,n),function(e,t,n){var i=t.__image=(0,o.Gq)(n.image,t.__image,t,t.onload);if(i&&(0,o.v5)(i)){var r=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),u=i.width/i.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;e.drawImage(i,c,h,n.sWidth,n.sHeight,r,a,s,l)}else if(n.sx&&n.sy){var d=s-(c=n.sx),p=l-(h=n.sy);e.drawImage(i,c,h,d,p,r,a,s,l)}else e.drawImage(i,r,a,s,l)}}(e,t,E)):t.getTemporalDisplayables&&(n.lastDrawType!==k&&(w=!0,n.lastDrawType=k),function(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=i.length;o<a;o++){(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),O(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),O(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),z&&i&&L(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}},88762:function(e,t,n){function i(e){return isFinite(e)}function r(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,o=n.height,a=Math.min(r,o),s=null==t.x?.5:t.x,l=null==t.y?.5:t.y,u=null==t.r?.5:t.r;return t.global||(s=s*r+n.x,l=l*o+n.y,u*=a),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5,e.createRadialGradient(s,l,0,s,l,u)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,o=null==t.x2?1:t.x2,a=null==t.y?0:t.y,s=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,a=i(a)?a:0,s=i(s)?s:0,e.createLinearGradient(r,a,o,s)}(e,t,n),o=t.colorStops,a=0;a<o.length;a++)r.addColorStop(o[a].offset,o[a].color);return r}function o(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function a(e){return parseInt(e,10)}function s(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],s=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var l=document.defaultView.getComputedStyle(e);return(e[r]||a(l[i])||a(e.style[i]))-(a(l[o])||0)-(a(l[s])||0)|0}n.d(t,{ZF:()=>r,ap:()=>s,cF:()=>o})},55131:function(e,t,n){n.d(t,{OD:()=>h,Oo:()=>d,eV:()=>l,iP:()=>c,sT:()=>f,x1:()=>g,xg:()=>p});var i=n(53970),r=n(61962),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.Z.browser.firefox&&+i.Z.browser.version.split(".")[0]<39;function l(e,t,n,i){return n=n||{},i?u(e,t,n):s&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):u(e,t,n),n}function u(e,t,n){if(i.Z.domSupported&&e.getBoundingClientRect){var o=t.clientX,s=t.clientY;if((0,r.UK)(e)){var l=e.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if((0,r.A4)(a,e,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(e){return e||window.event}function h(e,t,n){if(null!=(t=c(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];r&&l(e,r,t,n)}else{l(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&o.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function d(e,t,n,i){e.addEventListener(t,n,i)}function p(e,t,n,i){e.removeEventListener(t,n,i)}var f=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function g(e){return 2===e.which||3===e.which}},46679:function(e,t,n){n.d(t,{Z:()=>c});var i=32,r=7;function o(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){for(;r<n&&i(e[r],e[r-1])<0;)r++;!function(e,t,n){n--;for(;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}(e,t,r)}else for(;r<n&&i(e[r],e[r-1])>=0;)r++;return r-t}function a(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var o,a=e[i],s=t,l=i;s<l;)r(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function s(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){for(s=i-r;l<s&&o(e,t[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(e,t[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function l(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){for(s=r+1;l<s&&o(e,t[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(e,t[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function u(e,t){var n,i,o=r,a=0,u=[];function c(c){var h=n[c],d=i[c],p=n[c+1],f=i[c+1];i[c]=d+f,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var g=l(e[p],e,h,d,0,t);h+=g,0!==(d-=g)&&0!==(f=s(e[h+d-1],e,p,f,f-1,t))&&(d<=f?function(n,i,a,c){var h=0;for(h=0;h<i;h++)u[h]=e[n+h];var d=0,p=a,f=n;if(e[f++]=e[p++],0==--c){for(h=0;h<i;h++)e[f+h]=u[d+h];return}if(1===i){for(h=0;h<c;h++)e[f+h]=e[p+h];return void(e[f+c]=u[d])}var g,v,y,m=o;for(;;){g=0,v=0,y=!1;do{if(t(e[p],u[d])<0){if(e[f++]=e[p++],v++,g=0,0==--c){y=!0;break}}else if(e[f++]=u[d++],g++,v=0,1==--i){y=!0;break}}while((g|v)<m);if(y)break;do{if(0!==(g=l(e[p],u,d,i,0,t))){for(h=0;h<g;h++)e[f+h]=u[d+h];if(f+=g,d+=g,(i-=g)<=1){y=!0;break}}if(e[f++]=e[p++],0==--c){y=!0;break}if(0!==(v=s(u[d],e,p,c,0,t))){for(h=0;h<v;h++)e[f+h]=e[p+h];if(f+=v,p+=v,0===(c-=v)){y=!0;break}}if(e[f++]=u[d++],1==--i){y=!0;break}m--}while(g>=r||v>=r);if(y)break;m<0&&(m=0),m+=2}if((o=m)<1&&(o=1),1===i){for(h=0;h<c;h++)e[f+h]=e[p+h];e[f+c]=u[d]}else{if(0===i)throw new Error;for(h=0;h<i;h++)e[f+h]=u[d+h]}}(h,d,p,f):function(n,i,a,c){var h=0;for(h=0;h<c;h++)u[h]=e[a+h];var d=n+i-1,p=c-1,f=a+c-1,g=0,v=0;if(e[f--]=e[d--],0==--i){for(g=f-(c-1),h=0;h<c;h++)e[g+h]=u[h];return}if(1===c){for(v=(f-=i)+1,g=(d-=i)+1,h=i-1;h>=0;h--)e[v+h]=e[g+h];return void(e[f]=u[p])}var y=o;for(;;){var m=0,x=0,_=!1;do{if(t(u[p],e[d])<0){if(e[f--]=e[d--],m++,x=0,0==--i){_=!0;break}}else if(e[f--]=u[p--],x++,m=0,1==--c){_=!0;break}}while((m|x)<y);if(_)break;do{if(0!==(m=i-l(u[p],e,n,i,i-1,t))){for(i-=m,v=(f-=m)+1,g=(d-=m)+1,h=m-1;h>=0;h--)e[v+h]=e[g+h];if(0===i){_=!0;break}}if(e[f--]=u[p--],1==--c){_=!0;break}if(0!==(x=c-s(e[d],u,0,c,c-1,t))){for(c-=x,v=(f-=x)+1,g=(p-=x)+1,h=0;h<x;h++)e[v+h]=u[g+h];if(c<=1){_=!0;break}}if(e[f--]=e[d--],0==--i){_=!0;break}y--}while(m>=r||x>=r);if(_)break;y<0&&(y=0),y+=2}(o=y)<1&&(o=1);if(1===c){for(v=(f-=i)+1,g=(d-=i)+1,h=i-1;h>=0;h--)e[v+h]=e[g+h];e[f]=u[p]}else{if(0===c)throw new Error;for(g=f-(c-1),h=0;h<c;h++)e[g+h]=u[h]}}(h,d,p,f))}return n=[],i=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;c(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,c(e)}},pushRun:function(e,t){n[a]=e,i[a]=t,a+=1}}}function c(e,t,n,r){n||(n=0),r||(r=e.length);var s=r-n;if(!(s<2)){var l=0;if(s<i)a(e,n,r,n+(l=o(e,n,r,t)),t);else{var c=u(e,t),h=function(e){for(var t=0;e>=i;)t|=1&e,e>>=1;return e+t}(s);do{if((l=o(e,n,r,t))<h){var d=s;d>h&&(d=h),a(e,n,n+d,n+l,t),l=d}c.pushRun(n,l),c.mergeRuns(),s-=l,n+=l}while(0!==s);c.forceMergeRuns()}}}},67279:function(e,t,n){n.r(t),n.d(t,{getInstance:()=>he,registerPainter:()=>de,getElementSSRData:()=>pe,registerSSRDataGetter:()=>fe,dispose:()=>ue,disposeAll:()=>ce,init:()=>le,version:()=>ge});var i=n(53970),r=n(6836),o=(n(92745),n(9065)),a=n(58881),s=function(e,t){this.target=e,this.topTarget=t&&t.topTarget};const l=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new s(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new s(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=a,t!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,e),"dragleave",e.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new s(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}();var u=n(18539),c=n(55131),h=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o<a;o++){var s=i[o],l=c.eV(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in p)if(p.hasOwnProperty(t)){var n=p[t](this._track,e);if(n)return n}},e}();function d(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var p={pinch:function(e,t){var n=e.length;if(n){var i,r=(e[n-1]||{}).points,o=(e[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=d(r)/d(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},f=n(31117),g="silent";function v(){c.sT(this.event)}var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return(0,o.__extends)(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(u.Z),m=function(e,t){this.x=e,this.y=t},x=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_=new f.Z(0,0,0,0),b=function(e){function t(t,n,i,r,o){var a=e.call(this)||this;return a._hovered=new m(0,0),a.storage=t,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new y,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new l(a),a}return(0,o.__extends)(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(r.each(x,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=M(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new m(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new m(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var i=(e=e||{}).target;if(!i||!i.silent){for(var r="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:v}}(t,e,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),r=new m(e,t);if(S(i,r,e,t,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new f.Z(e-s,t-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(_.copy(c.getBoundingRect()),c.transform&&_.applyTransform(c.transform),_.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var g=0;g<d;g+=h){if(S(o,r,e+p*Math.cos(g),t+p*Math.sin(g),n),r.target)return r}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new h);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new m;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(u.Z);function w(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||g}return!1}function S(e,t,n,i,r){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==r&&!a.ignore&&(s=w(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==g)){t.target=a;break}}}function M(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){b.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,s=M(this,r,o);if("mouseup"===e&&s||(i=(n=this.findHover(r,o)).target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));const I=b;var T=n(46679),C=n(65135),A=!1;function k(){A||(A=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function L(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}const P=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=L}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,(0,T.Z)(n,L)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];for(var r=i,o=e;r;)r.parent=o,r.updateTransform(),t.push(r),o=r,r=r.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=C.YV),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(k(),u.z=0),isNaN(u.z2)&&(k(),u.z2=0),isNaN(u.zlevel)&&(k(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=r.indexOf(this._roots,e);i>=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();var D=n(9870),O=n(72879);function R(){return(new Date).getTime()}const Z=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return(0,o.__extends)(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=R()-this._pausedTime,n=t-this._time,i=this._head;i;){var r=i.next;i.step(t,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,(0,D.Z)((function t(){e._running&&((0,D.Z)(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=R(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=R(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=R()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new O.Z(e,t.loop);return this.addAnimator(n),n},t}(u.Z);var z,E,B=i.Z.domSupported,V=(E={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:z=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:r.map(z,(function(e){var t=e.replace("mouse","pointer");return E.hasOwnProperty(t)?t:e}))}),N=["mousemove","mouseup"],H=["pointermove","pointerup"],F=!1;function G(e){var t=e.pointerType;return"pen"===t||"touch"===t}function W(e){e&&(e.zrByTouch=!0)}function Y(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var U=function(e,t){this.stopPropagation=r.noop,this.stopImmediatePropagation=r.noop,this.preventDefault=r.noop,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},X={mousedown:function(e){e=(0,c.OD)(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=(0,c.OD)(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=(0,c.OD)(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){Y(this,(e=(0,c.OD)(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){F=!0,e=(0,c.OD)(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){F||(e=(0,c.OD)(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){W(e=(0,c.OD)(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),X.mousemove.call(this,e),X.mousedown.call(this,e)},touchmove:function(e){W(e=(0,c.OD)(this.dom,e)),this.handler.processGesture(e,"change"),X.mousemove.call(this,e)},touchend:function(e){W(e=(0,c.OD)(this.dom,e)),this.handler.processGesture(e,"end"),X.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&X.click.call(this,e)},pointerdown:function(e){X.mousedown.call(this,e)},pointermove:function(e){G(e)||X.mousemove.call(this,e)},pointerup:function(e){X.mouseup.call(this,e)},pointerout:function(e){G(e)||X.mouseout.call(this,e)}};r.each(["click","dblclick","contextmenu"],(function(e){X[e]=function(t){t=(0,c.OD)(this.dom,t),this.trigger(e,t)}}));var j={pointermove:function(e){G(e)||j.mousemove.call(this,e)},pointerup:function(e){j.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function q(e,t){var n=t.domHandlers;i.Z.pointerEventsSupported?r.each(V.pointer,(function(i){Q(t,i,(function(t){n[i].call(e,t)}))})):(i.Z.touchEventsSupported&&r.each(V.touch,(function(i){Q(t,i,(function(r){n[i].call(e,r),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),r.each(V.mouse,(function(i){Q(t,i,(function(r){r=(0,c.iP)(r),t.touching||n[i].call(e,r)}))})))}function K(e,t){function n(n){Q(t,n,(function(i){i=(0,c.iP)(i),Y(e,i.target)||(i=function(e,t){return(0,c.OD)(e.dom,new U(e,t),!0)}(e,i),t.domHandlers[n].call(e,i))}),{capture:!0})}i.Z.pointerEventsSupported?r.each(H,n):i.Z.touchEventsSupported||r.each(N,n)}function Q(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,(0,c.Oo)(e.domTarget,t,n,i)}function J(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&(0,c.xg)(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var $=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t};const ee=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new $(t,X),B&&(i._globalHandlerScope=new $(document,j)),q(i,i._localHandlerScope),i}return(0,o.__extends)(t,e),t.prototype.dispose=function(){J(this._localHandlerScope),B&&J(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,B&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?K(this,t):J(t)}},t}(u.Z);var te=n(6866),ne=n(12336),ie=n(74777),re={},oe={};var ae,se=function(){function e(e,t,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new P,s=n.renderer||"canvas";re[s]||(s=r.keys(re)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new re[s](t,a,n,e),u=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var c,h=i.Z.node||i.Z.worker||u?null:new ee(l.getViewportRoot(),l.root),d=n.useCoarsePointer;(null==d||"auto"===d?i.Z.touchEventsSupported:!!d)&&(c=r.retrieve2(n.pointerSize,44)),this.handler=new I(a,l,h,l.root,c),this.animation=new Z({stage:{update:u?null:function(){return o._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return(0,te.lum)(e,1)<ne.Ak;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=(0,te.lum)(t[r].color,1);return(n/=i)<ne.Ak}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=R();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=R();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ie.Z&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete oe[e])},e}();function le(e,t){var n=new se(r.guid(),e,t);return oe[n.id]=n,n}function ue(e){e.dispose()}function ce(){for(var e in oe)oe.hasOwnProperty(e)&&oe[e].dispose();oe={}}function he(e){return oe[e]}function de(e,t){re[e]=t}function pe(e){if("function"==typeof ae)return ae(e)}function fe(e){ae=e}var ge="5.6.1"}};
//# sourceMappingURL=77535.eba912cc28c9bc29.js.map