@perses-dev/bar-chart-plugin 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/__mf/js/{590.3c10d0f7.js → 590.a5dd7884.js} +1 -1
  2. package/__mf/js/{BarChart.d4f68948.js → BarChart.8e296a7f.js} +3 -3
  3. package/__mf/js/async/223.2a63471a.js +1 -0
  4. package/__mf/js/async/243.3cf97a29.js +2 -0
  5. package/__mf/js/async/{331.987fc9d1.js → 331.23bb9dc0.js} +2 -2
  6. package/__mf/js/async/409.fca0580b.js +1 -0
  7. package/__mf/js/async/530.cf128e42.js +7 -0
  8. package/__mf/js/async/530.cf128e42.js.LICENSE.txt +21 -0
  9. package/__mf/js/async/{802.393c9711.js → 640.968c5b1b.js} +2 -2
  10. package/__mf/js/async/845.7d81dd14.js +73 -0
  11. package/__mf/js/async/922.599a817c.js +1 -0
  12. package/__mf/js/async/{__federation_expose_BarChart.4fe4d1a3.js → __federation_expose_BarChart.fe8a77fb.js} +1 -1
  13. package/__mf/js/main.ba0be5dd.js +1 -0
  14. package/lib/utils.d.ts +2 -1
  15. package/lib/utils.d.ts.map +1 -1
  16. package/lib/utils.js.map +1 -1
  17. package/mf-manifest.json +29 -27
  18. package/mf-stats.json +29 -27
  19. package/package.json +4 -4
  20. package/__mf/js/async/162.5c4c80cc.js +0 -73
  21. package/__mf/js/async/360.49d19c17.js +0 -29
  22. package/__mf/js/async/360.49d19c17.js.LICENSE.txt +0 -37
  23. package/__mf/js/async/552.35c9929e.js +0 -1
  24. package/__mf/js/async/610.18610b4a.js +0 -1
  25. package/__mf/js/async/679.4c9ca4ca.js +0 -2
  26. package/__mf/js/main.ac95f394.js +0 -1
  27. /package/__mf/js/async/{679.4c9ca4ca.js.LICENSE.txt → 243.3cf97a29.js.LICENSE.txt} +0 -0
  28. /package/__mf/js/async/{331.987fc9d1.js.LICENSE.txt → 331.23bb9dc0.js.LICENSE.txt} +0 -0
  29. /package/__mf/js/async/{162.5c4c80cc.js.LICENSE.txt → 845.7d81dd14.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkBarChart=self.webpackChunkBarChart||[]).push([["552"],{78846:function(e,t,i){i.d(t,{N:()=>A});var n=i(69988),o=i(7185),a=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},r=function(e){function t(t){var i=e.call(this,t)||this;return i.type="pointer",i}return(0,n.ZT)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var i=Math.cos,n=Math.sin,o=t.r,a=t.width,r=t.angle,s=t.x-i(r)*a*(a>=o/3?1:2),l=t.y-n(r)*a*(a>=o/3?1:2);r=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+i(r)*a,t.y+n(r)*a),e.lineTo(t.x+i(t.angle)*o,t.y+n(t.angle)*o),e.lineTo(t.x-i(r)*a,t.y-n(r)*a),e.lineTo(s,l)},t}(o.ZP),s=i(53511),l=i(72859),u=i(76150),c=i(99858),h=i(37293),p=i(98306),d=i(33361),g=i(58050),f=i(82517),m=i(2699),y=i(5965),v=i(63287),x=i(67975),_=i(10428),b=i(97694);function S(e,t){var i=null==e?"":e+"";return t&&((0,x.isString)(t)?i=t.replace("{value}",i):(0,x.isFunction)(t)&&(i=t(e))),i}var M=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.render=function(e,t,i){this.group.removeAll();var n,o,a=e.get(["axisLine","lineStyle","color"]),r=(n=e.get("center"),o=Math.min(i.getWidth(),i.getHeight()),{cx:(0,f.GM)(n[0],i.getWidth()),cy:(0,f.GM)(n[1],i.getHeight()),r:(0,f.GM)(e.get("radius"),o/2)});this._renderMain(e,t,i,a,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,i,n,o){var a=this.group,r=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap")?m.Z:s.C,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),f=[l,u];(0,b.L)(f,!r),l=f[0];for(var y=(u=f[1])-l,v=l,_=[],S=0;p&&S<n.length;S++){var M=new h({shape:{startAngle:v,endAngle:u=l+y*Math.min(Math.max(n[S][0],0),1),cx:o.cx,cy:o.cy,clockwise:r,r0:o.r-g,r:o.r},silent:!0});M.setStyle({fill:n[S][1]}),M.setStyle(d.getLineStyle(["color","width"])),_.push(M),v=u}_.reverse(),(0,x.each)(_,function(e){return a.add(e)});var w=function(e){var t;if(e<=0)return n[0][1];for(t=0;t<n.length;t++)if(n[t][0]>=e&&(0===t?0:n[t-1][0])<e)return n[t][1];return n[t-1][1]};this._renderTicks(e,t,i,w,o,l,u,r,g),this._renderTitleAndDetail(e,t,i,w,o),this._renderAnchor(e,o),this._renderPointer(e,t,i,w,o,l,u,r,g)},t.prototype._renderTicks=function(e,t,i,n,o,a,r,s,c){for(var h,p,g=this.group,m=o.cx,y=o.cy,v=o.r,_=+e.get("min"),b=+e.get("max"),M=e.getModel("splitLine"),w=e.getModel("axisTick"),I=e.getModel("axisLabel"),A=e.get("splitNumber"),T=w.get("splitNumber"),C=(0,f.GM)(M.get("length"),v),D=(0,f.GM)(w.get("length"),v),Z=a,L=(r-a)/A,O=L/T,k=M.getModel("lineStyle").getLineStyle(),P=w.getModel("lineStyle").getLineStyle(),N=M.get("distance"),V=0;V<=A;V++){if(h=Math.cos(Z),p=Math.sin(Z),M.get("show")){var R=N?N+c:c,z=new l.Z({shape:{x1:h*(v-R)+m,y1:p*(v-R)+y,x2:h*(v-C-R)+m,y2:p*(v-C-R)+y},style:k,silent:!0});"auto"===k.stroke&&z.setStyle({stroke:n(V/A)}),g.add(z)}if(I.get("show")){var R=I.get("distance")+N,E=S((0,f.NM)(V/A*(b-_)+_),I.get("formatter")),G=n(V/A),B=h*(v-C-R)+m,H=p*(v-C-R)+y,W=I.get("rotate"),F=0;"radial"===W?(F=-Z+2*Math.PI)>Math.PI/2&&(F+=Math.PI):"tangential"===W?F=-Z-Math.PI/2:(0,x.isNumber)(W)&&(F=W*Math.PI/180),0===F?g.add(new u.ZP({style:(0,d.Lr)(I,{text:E,x:B,y:H,verticalAlign:p<-.8?"top":p>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:G}),silent:!0})):g.add(new u.ZP({style:(0,d.Lr)(I,{text:E,x:B,y:H,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:B,originY:H,rotation:F}))}if(w.get("show")&&V!==A){var R=w.get("distance");R=R?R+c:c;for(var X=0;X<=T;X++){h=Math.cos(Z),p=Math.sin(Z);var Y=new l.Z({shape:{x1:h*(v-R)+m,y1:p*(v-R)+y,x2:h*(v-D-R)+m,y2:p*(v-D-R)+y},silent:!0,style:P});"auto"===P.stroke&&Y.setStyle({stroke:n((V+X/T)/A)}),g.add(Y),Z+=O}Z-=O}else Z+=L}},t.prototype._renderPointer=function(e,t,i,n,o,a,l,u,h){var d=this.group,g=this._data,b=this._progressEls,S=[],M=e.get(["pointer","show"]),w=e.getModel("progress"),I=w.get("show"),A=e.getData(),T=A.mapDimension("value"),C=+e.get("min"),D=+e.get("max"),Z=[C,D],L=[a,l];function O(t,i){var n,a=A.getItemModel(t).getModel("pointer"),s=(0,f.GM)(a.get("width"),o.r),l=(0,f.GM)(a.get("length"),o.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),h=(0,f.GM)(c[0],o.r),p=(0,f.GM)(c[1],o.r),d=a.get("keepAspect");return(n=u?(0,y.th)(u,h-s/2,p-l,s,l,null,d):new r({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:p}})).rotation=-(i+Math.PI/2),n.x=o.cx,n.y=o.cy,n}function k(e,t){var i=w.get("roundCap")?m.Z:s.C,n=w.get("overlap"),r=n?w.get("width"):h/A.count(),l=n?o.r-r:o.r-(e+1)*r,c=n?o.r:o.r-e*r,p=new i({shape:{startAngle:a,endAngle:t,cx:o.cx,cy:o.cy,clockwise:u,r0:l,r:c}});return n&&(p.z2=D-A.get(T,e)%D),p}(I||M)&&(A.diff(g).add(function(t){var i=A.get(T,t);if(M){var n=O(t,a);c.KZ(n,{rotation:-((isNaN(+i)?L[0]:(0,f.NU)(i,Z,L,!0))+Math.PI/2)},e),d.add(n),A.setItemGraphicEl(t,n)}if(I){var o=k(t,a),r=w.get("clip");c.KZ(o,{shape:{endAngle:(0,f.NU)(i,Z,L,r)}},e),d.add(o),(0,_.Q)(e.seriesIndex,A.dataType,t,o),S[t]=o}}).update(function(t,i){var n=A.get(T,t);if(M){var o=g.getItemGraphicEl(i),r=o?o.rotation:a,s=O(t,r);s.rotation=r,c.D(s,{rotation:-((isNaN(+n)?L[0]:(0,f.NU)(n,Z,L,!0))+Math.PI/2)},e),d.add(s),A.setItemGraphicEl(t,s)}if(I){var l=b[i],u=k(t,l?l.shape.endAngle:a),h=w.get("clip");c.D(u,{shape:{endAngle:(0,f.NU)(n,Z,L,h)}},e),d.add(u),(0,_.Q)(e.seriesIndex,A.dataType,t,u),S[t]=u}}).execute(),A.each(function(e){var t=A.getItemModel(e),i=t.getModel("emphasis"),o=i.get("focus"),a=i.get("blurScope"),r=i.get("disabled");if(M){var s=A.getItemGraphicEl(e),l=A.getItemVisual(e,"style"),u=l.fill;if(s instanceof v.ZP){var c=s.style;s.useStyle((0,x.extend)({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",n((0,f.NU)(A.get(T,e),Z,[0,1],!0))),s.z2EmphasisLift=0,(0,p.WO)(s,t),(0,p.k5)(s,o,a,r)}if(I){var h=S[e];h.useStyle(A.getItemVisual(e,"style")),h.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,(0,p.WO)(h,t),(0,p.k5)(h,o,a,r)}}),this._progressEls=S)},t.prototype._renderAnchor=function(e,t){var i=e.getModel("anchor");if(i.get("show")){var n=i.get("size"),o=i.get("icon"),a=i.get("offsetCenter"),r=i.get("keepAspect"),s=(0,y.th)(o,t.cx-n/2+(0,f.GM)(a[0],t.r),t.cy-n/2+(0,f.GM)(a[1],t.r),n,n,null,r);s.z2=+!!i.get("showAbove"),s.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,i,n,o){var a=this,r=e.getData(),s=r.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),p=new h.Z,g=[],m=[],y=e.isAnimationEnabled(),v=e.get(["pointer","showAbove"]);r.diff(this._data).add(function(e){g[e]=new u.ZP({silent:!0}),m[e]=new u.ZP({silent:!0})}).update(function(e,t){g[e]=a._titleEls[t],m[e]=a._detailEls[t]}).execute(),r.each(function(t){var i=r.getItemModel(t),a=r.get(s,t),u=new h.Z,x=n((0,f.NU)(a,[l,c],[0,1],!0)),_=i.getModel("title");if(_.get("show")){var b=_.get("offsetCenter"),M=o.cx+(0,f.GM)(b[0],o.r),w=o.cy+(0,f.GM)(b[1],o.r),I=g[t];I.attr({z2:2*!v,style:(0,d.Lr)(_,{x:M,y:w,text:r.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:x})}),u.add(I)}var A=i.getModel("detail");if(A.get("show")){var T=A.get("offsetCenter"),C=o.cx+(0,f.GM)(T[0],o.r),D=o.cy+(0,f.GM)(T[1],o.r),Z=(0,f.GM)(A.get("width"),o.r),L=(0,f.GM)(A.get("height"),o.r),O=e.get(["progress","show"])?r.getItemVisual(t,"style").fill:x,I=m[t],k=A.get("formatter");I.attr({z2:2*!v,style:(0,d.Lr)(A,{x:C,y:D,text:S(a,k),width:isNaN(Z)?null:Z,height:isNaN(L)?null:L,align:"center",verticalAlign:"middle"},{inheritColor:O})}),(0,d.pe)(I,{normal:A},a,function(e){return S(e,k)}),y&&(0,d.tD)(I,t,r,e,{getFormattedLabel:function(e,t,i,n,o,r){return S(r?r.interpolatedValue:a,k)}}),u.add(I)}p.add(u)}),this.group.add(p),this._titleEls=g,this._detailEls=m},t.type="gauge",t}(g.Z),w=i(78939),I=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.visualStyleAccessPath="itemStyle",i}return(0,n.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,w.Z)(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(i(2021).Z);function A(e){e.registerChartView(M),e.registerSeriesModel(I)}},27835:function(e,t,i){i.d(t,{N:()=>_});var n=i(69988),o=i(29790),a=i(31969),r=i(63287),s=i(98306),l=i(49906),u=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=l.qW.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,i,n,o,a){var r=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),p=e.length;c.width=t,c.height=i;for(var d=0;d<p;++d){var g=e[d],f=g[0],m=g[1],y=n(g[2]);h.globalAlpha=y,h.drawImage(r,f-u,m-u)}if(!c.width||!c.height)return c;for(var v=h.getImageData(0,0,c.width,c.height),x=v.data,_=0,b=x.length,S=this.minOpacity,M=this.maxOpacity-S;_<b;){var y=x[_+3]/256,w=4*Math.floor(255*y);if(y>0){var I=a(y)?s:l;y>0&&(y=y*M+S),x[_++]=I[w],x[_++]=I[w+1],x[_++]=I[w+2],x[_++]=I[w+3]*y*256}else _+=4}return h.putImageData(v,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=l.qW.createCanvas()),t=this.pointSize+this.blurSize,i=2*t;e.width=i,e.height=i;var n=e.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),e},e.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,n=i[t]||(i[t]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,r=0;r<256;r++)e[t](r/255,!0,o),n[a++]=o[0],n[a++]=o[1],n[a++]=o[2],n[a++]=o[3];return n},e}(),c=i(67975),h=i(58050),p=i(82667),d=i(33361);function g(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var f=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.render=function(e,t,i){t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(i){i===e&&(n=t)})}),this._progressiveEls=null,this.group.removeAll();var n,o=e.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):g(o)&&this._renderOnGeo(o,e,n,i)},t.prototype.incrementalPrepareRender=function(e,t,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,i,n){var o=t.coordinateSystem;o&&(g(o)?this.render(t,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){o.traverseElements(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,i,n,o){var r,l,u,c,h=e.coordinateSystem,g=(0,p.H)(h,"cartesian2d");if(g){var f=h.getAxis("x"),m=h.getAxis("y");r=f.getBandWidth()+.5,l=m.getBandWidth()+.5,u=f.scale.getExtent(),c=m.scale.getExtent()}for(var y=this.group,v=e.getData(),x=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),b=e.getModel(["select","itemStyle"]).getItemStyle(),S=e.get(["itemStyle","borderRadius"]),M=(0,d.k3)(e),w=e.getModel("emphasis"),I=w.get("focus"),A=w.get("blurScope"),T=w.get("disabled"),C=g?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],D=i;D<n;D++){var Z=void 0,L=v.getItemVisual(D,"style");if(g){var O=v.get(C[0],D),k=v.get(C[1],D);if(isNaN(v.get(C[2],D))||isNaN(O)||isNaN(k)||O<u[0]||O>u[1]||k<c[0]||k>c[1])continue;var P=h.dataToPoint([O,k]);Z=new a.Z({shape:{x:P[0]-r/2,y:P[1]-l/2,width:r,height:l},style:L})}else{if(isNaN(v.get(C[1],D)))continue;Z=new a.Z({z2:1,shape:h.dataToRect([v.get(C[0],D)]).contentShape,style:L})}if(v.hasItemOption){var N=v.getItemModel(D),V=N.getModel("emphasis");x=V.getModel("itemStyle").getItemStyle(),_=N.getModel(["blur","itemStyle"]).getItemStyle(),b=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),I=V.get("focus"),A=V.get("blurScope"),T=V.get("disabled"),M=(0,d.k3)(N)}Z.shape.r=S;var R=e.getRawValue(D),z="-";R&&null!=R[2]&&(z=R[2]+""),(0,d.ni)(Z,M,{labelFetcher:e,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:z}),Z.ensureState("emphasis").style=x,Z.ensureState("blur").style=_,Z.ensureState("select").style=b,(0,s.k5)(Z,I,A,T),Z.incremental=o,o&&(Z.states.emphasis.hoverLayer=!0),y.add(Z),v.setItemGraphicEl(D,Z),this._progressiveEls&&this._progressiveEls.push(Z)}},t.prototype._renderOnGeo=function(e,t,i,n){var o,a,s,l,h,p,d,g=i.targetVisuals.inRange,f=i.targetVisuals.outOfRange,m=t.getData(),y=this._hmLayer||this._hmLayer||new u;y.blurSize=t.get("blurSize"),y.pointSize=t.get("pointSize"),y.minOpacity=t.get("minOpacity"),y.maxOpacity=t.get("maxOpacity");var v=e.getViewRect().clone(),x=e.getRoamTransform();v.applyTransform(x);var _=Math.max(v.x,0),b=Math.max(v.y,0),S=Math.min(v.width+v.x,n.getWidth()),M=Math.min(v.height+v.y,n.getHeight()),w=S-_,I=M-b,A=[m.mapDimension("lng"),m.mapDimension("lat"),m.mapDimension("value")],T=m.mapArray(A,function(t,i,n){var o=e.dataToPoint([t,i]);return o[0]-=_,o[1]-=b,o.push(n),o}),C=i.getExtent(),D="visualMap.continuous"===i.type?(o=i.option.range,a=C[1]-C[0],o=[(o[0]-C[0])/a,(o[1]-C[0])/a],function(e){return e>=o[0]&&e<=o[1]}):(s=i.getPieceList(),l=i.option.selected,h=C[1]-C[0],p=(s=c.map(s,function(e){return{interval:[(e.interval[0]-C[0])/h,(e.interval[1]-C[0])/h]}})).length,d=0,function(e){var t;for(t=d;t<p;t++){var i=s[t].interval;if(i[0]<=e&&e<=i[1]){d=t;break}}if(t===p)for(t=d-1;t>=0;t--){var i=s[t].interval;if(i[0]<=e&&e<=i[1]){d=t;break}}return t>=0&&t<p&&l[t]});y.update(T,w,I,g.color.getNormalizer(),{inRange:g.color.getColorMapper(),outOfRange:f.color.getColorMapper()},D);var Z=new r.ZP({style:{width:w,height:I,x:_,y:b,image:y.canvas},silent:!0});this.group.add(Z)},t.type="heatmap",t}(h.Z),m=i(2021),y=i(30984),v=i(49801),x=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,y.Z)(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=v.Z.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(m.Z);function _(e){e.registerChartView(f),e.registerSeriesModel(x)}},2215:function(e,t,i){i.d(t,{Z:()=>I});var n=i(69988),o=i(67975),a=i(77605),r=i(5965),s=i(72859),l=i(20121),u=i(7185),c=s.Z.prototype,h=l.Z.prototype,p=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function d(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}(0,n.ZT)(function(){return null!==p&&p.apply(this,arguments)||this},p);var g=function(e){function t(t){var i=e.call(this,t)||this;return i.type="ec-line",i}return(0,n.ZT)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new p},t.prototype.buildPath=function(e,t){d(t)?c.buildPath.call(this,e,t):h.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return d(this.shape)?c.pointAt.call(this,e):h.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,i=d(t)?[t.x2-t.x1,t.y2-t.y1]:h.tangentAt.call(this,e);return a.normalize(i,i)},t}(u.ZP),f=i(99858),m=i(37293),y=i(98306),v=i(33361),x=i(82517),_=["fromSymbol","toSymbol"];function b(e){return"_"+e+"Type"}function S(e,t,i){var n=t.getItemVisual(i,e);if(!n||"none"===n)return n;var o=t.getItemVisual(i,e+"Size"),a=t.getItemVisual(i,e+"Rotate"),s=t.getItemVisual(i,e+"Offset"),l=t.getItemVisual(i,e+"KeepAspect"),u=r.zp(o),c=r.Cq(s||0,u);return n+u+c+(a||"")+(l||"")}function M(e,t,i){var n=t.getItemVisual(i,e);if(n&&"none"!==n){var o=t.getItemVisual(i,e+"Size"),a=t.getItemVisual(i,e+"Rotate"),s=t.getItemVisual(i,e+"Offset"),l=t.getItemVisual(i,e+"KeepAspect"),u=r.zp(o),c=r.Cq(s||0,u),h=r.th(n,-u[0]/2+c[0],-u[1]/2+c[1],u[0],u[1],null,l);return h.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,h.name=e,h}}function w(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var i=t[2];i?(e.cpx1=i[0],e.cpy1=i[1]):(e.cpx1=NaN,e.cpy1=NaN)}let I=function(e){function t(t,i,n){var o=e.call(this)||this;return o._createLine(t,i,n),o}return(0,n.ZT)(t,e),t.prototype._createLine=function(e,t,i){var n,a,r=e.hostModel,s=(n=e.getItemLayout(t),w((a=new g({name:"line",subPixelOptimize:!0})).shape,n),a);s.shape.percent=0,f.KZ(s,{shape:{percent:1}},r,t),this.add(s),(0,o.each)(_,function(i){var n=M(i,e,t);this.add(n),this[b(i)]=S(i,e,t)},this),this._updateCommonStl(e,t,i)},t.prototype.updateData=function(e,t,i){var n=e.hostModel,a=this.childOfName("line"),r=e.getItemLayout(t),s={shape:{}};w(s.shape,r),f.D(a,s,n,t),(0,o.each)(_,function(i){var n=S(i,e,t),o=b(i);if(this[o]!==n){this.remove(this.childOfName(i));var a=M(i,e,t);this.add(a)}this[o]=n},this),this._updateCommonStl(e,t,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,i){var n=e.hostModel,a=this.childOfName("line"),r=i&&i.emphasisLineStyle,s=i&&i.blurLineStyle,l=i&&i.selectLineStyle,u=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,p=i&&i.blurScope;if(!i||e.hasItemOption){var d=e.getItemModel(t),g=d.getModel("emphasis");r=g.getModel("lineStyle").getLineStyle(),s=d.getModel(["blur","lineStyle"]).getLineStyle(),l=d.getModel(["select","lineStyle"]).getLineStyle(),c=g.get("disabled"),h=g.get("focus"),p=g.get("blurScope"),u=(0,v.k3)(d)}var f=e.getItemVisual(t,"style"),m=f.stroke;a.useStyle(f),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=r,a.ensureState("blur").style=s,a.ensureState("select").style=l,(0,o.each)(_,function(e){var t=this.childOfName(e);if(t){t.setColor(m),t.style.opacity=f.opacity;for(var i=0;i<y.L1.length;i++){var n=y.L1[i],o=a.getState(n);if(o){var r=o.style||{},s=t.ensureState(n),l=s.style||(s.style={});null!=r.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=r.stroke),null!=r.opacity&&(l.opacity=r.opacity)}}t.markRedraw()}},this);var b=n.getRawValue(t);(0,v.ni)(this,u,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,i){return n.getFormattedLabel(t,i,e.dataType)}},inheritColor:m||"#000",defaultOpacity:f.opacity,defaultText:(null==b?e.getName(t):isFinite(b)?(0,x.NM)(b):b)+""});var S=this.getTextContent();if(S){var M=u.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=M.get("position")||"middle";var w=M.get("distance");(0,o.isArray)(w)||(w=[w,w]),S.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),(0,y.k5)(this,h,p,c)},t.prototype.highlight=function(){(0,y.fD)(this)},t.prototype.downplay=function(){(0,y.Mh)(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");w(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),i=this.getTextContent();if(e||t||i&&!i.ignore){for(var n=1,o=this.parent;o;)o.scaleX&&(n/=o.scaleX),o=o.parent;var r=this.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),u=r.pointAt(s),c=a.sub([],u,l);if(a.normalize(c,c),e&&(e.setPosition(l),M(e,0),e.scaleX=e.scaleY=n*s,e.markRedraw()),t&&(t.setPosition(u),M(t,1),t.scaleX=t.scaleY=n*s,t.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,p=void 0,d=i.__labelDistance,g=d[0]*n,f=d[1]*n,m=s/2,y=r.tangentAt(m),v=[y[1],-y[0]],x=r.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var _=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(y[1],y[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var S=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-f,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=f,p="top";break;default:S=0,p="middle"}switch(i.__position){case"end":i.x=c[0]*g+u[0],i.y=c[1]*f+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*g+l[0],i.y=-c[1]*f+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*_+l[0],i.y=l[1]+S,h=y[0]<0?"right":"left",i.originX=-g*_,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+S,h="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*_+u[0],i.y=u[1]+S,h=y[0]>=0?"right":"left",i.originX=g*_,i.originY=-S}i.scaleX=i.scaleY=n,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||h})}}}function M(e,t){var i=e.__specifiedRotation;if(null==i){var n=r.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else e.attr("rotation",i)}},t}(m.Z)},9460:function(e,t,i){i.d(t,{Z:()=>c});var n=i(37293),o=i(29790),a=i(2215),r=i(33361);function s(e){var t=e.hostModel,i=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:i.get("disabled"),blurScope:i.get("blurScope"),focus:i.get("focus"),labelStatesModels:(0,r.k3)(t)}}function l(e){return isNaN(e[0])||isNaN(e[1])}function u(e){return e&&!l(e[0])&&!l(e[1])}let c=function(){function e(e){this.group=new n.Z,this._LineCtor=e||a.Z}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this.group,n=this._lineData;this._lineData=e,n||i.removeAll();var o=s(e);e.diff(n).add(function(i){t._doAdd(e,i,o)}).update(function(i,a){t._doUpdate(n,e,a,i,o)}).remove(function(e){i.remove(n.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=s(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function i(e){var t;e.isGroup||(t=e).animators&&t.animators.length>0||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=e.start;n<e.end;n++)if(u(t.getItemLayout(n))){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(i),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){o.traverseElements(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,i){if(u(e.getItemLayout(t))){var n=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,n),this.group.add(n)}},e.prototype._doUpdate=function(e,t,i,n,o){var a=e.getItemGraphicEl(i);if(!u(t.getItemLayout(n))){this.group.remove(a);return}a?a.updateData(t,n,o):a=new this._LineCtor(t,n,o),t.setItemGraphicEl(n,a),this.group.add(a)},e}()},3802:function(e,t,i){i.d(t,{Z:()=>g});var n=i(69988),o=i(5965),a=i(37293),r=i(99858),s=i(10428),l=i(98306),u=i(16072),c=i(67975),h=i(33361),p=i(63287);function d(e,t){this.parent.drift(e,t)}let g=function(e){function t(t,i,n,o){var a=e.call(this)||this;return a.updateData(t,i,n,o),a}return(0,n.ZT)(t,e),t.prototype._createSymbol=function(e,t,i,n,a){this.removeAll();var r=(0,o.th)(e,-1,-1,2,2,null,a);r.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),r.drift=d,this._symbolType=e,this.add(r)},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,l.fD)(this.childAt(0))},t.prototype.downplay=function(){(0,l.Mh)(this.childAt(0))},t.prototype.setZ=function(e,t){var i=this.childAt(0);i.zlevel=e,i.z=t},t.prototype.setDraggable=function(e,t){var i=this.childAt(0);i.draggable=e,i.cursor=!t&&e?"move":i.cursor},t.prototype.updateData=function(e,i,n,o){this.silent=!1;var a=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,e,i,l,h)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):r.D(p,d,s,i),(0,r.Zi)(p)}if(this._updateCommon(e,i,l,n,o),u){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,r.KZ(p,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,i,n,a){var r,s,d,g,f,m,y,v,x,_=this.childAt(0),b=e.hostModel;if(n&&(r=n.emphasisItemStyle,s=n.blurItemStyle,d=n.selectItemStyle,g=n.focus,f=n.blurScope,y=n.labelStatesModels,v=n.hoverScale,x=n.cursorStyle,m=n.emphasisDisabled),!n||e.hasItemOption){var S=n&&n.itemModel?n.itemModel:e.getItemModel(t),M=S.getModel("emphasis");r=M.getModel("itemStyle").getItemStyle(),d=S.getModel(["select","itemStyle"]).getItemStyle(),s=S.getModel(["blur","itemStyle"]).getItemStyle(),g=M.get("focus"),f=M.get("blurScope"),m=M.get("disabled"),y=(0,h.k3)(S),v=M.getShallow("scale"),x=S.getShallow("cursor")}var w=e.getItemVisual(t,"symbolRotate");_.attr("rotation",(w||0)*Math.PI/180||0);var I=(0,o.Cq)(e.getItemVisual(t,"symbolOffset"),i);I&&(_.x=I[0],_.y=I[1]),x&&_.attr("cursor",x);var A=e.getItemVisual(t,"style"),T=A.fill;if(_ instanceof p.ZP){var C=_.style;_.useStyle((0,c.extend)({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},A))}else _.__isEmptyBrush?_.useStyle((0,c.extend)({},A)):_.useStyle(A),_.style.decal=null,_.setColor(T,a&&a.symbolInnerColor),_.style.strokeNoScale=!0;var D=e.getItemVisual(t,"liftZ"),Z=this._z2;null!=D?null==Z&&(this._z2=_.z2,_.z2+=D):null!=Z&&(_.z2=Z,this._z2=null);var L=a&&a.useNameLabel;(0,h.ni)(_,y,{labelFetcher:b,labelDataIndex:t,defaultText:function(t){return L?e.getName(t):(0,u.H)(e,t)},inheritColor:T,defaultOpacity:A.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var O=_.ensureState("emphasis");O.style=r,_.ensureState("select").style=d,_.ensureState("blur").style=s;var k=null==v||!0===v?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;O.scaleX=this._sizeX*k,O.scaleY=this._sizeY*k,this.setSymbolScale(1),(0,l.k5)(this,g,f,m)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,i){var n=this.childAt(0),o=(0,s.A)(this).dataIndex,a=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&r.bX(l,{style:{opacity:0}},t,{dataIndex:o,removeOpt:a,cb:function(){n.removeTextContent()}})}else n.removeTextContent();r.bX(n,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:o,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return(0,o.zp)(e.getItemVisual(t,"symbolSize"))},t}(a.Z)},5434:function(e,t,i){i.d(t,{Z:()=>p});var n=i(37293),o=i(99858),a=i(29790),r=i(3802),s=i(67975),l=i(33361);function u(e,t,i,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(i,"symbol")}function c(e){return null==e||(0,s.isObject)(e)||(e={isIgnore:e}),e||{}}function h(e){var t=e.hostModel,i=t.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:(0,l.k3)(t),cursorStyle:t.get("cursor")}}let p=function(){function e(e){this.group=new n.Z,this._SymbolCtor=e||r.Z}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=c(t);var i=this.group,n=e.hostModel,a=this._data,r=this._SymbolCtor,s=t.disableAnimation,l=h(e),p={disableAnimation:s},d=t.getSymbolPoint||function(t){return e.getItemLayout(t)};a||i.removeAll(),e.diff(a).add(function(n){var o=d(n);if(u(e,o,n,t)){var a=new r(e,n,l,p);a.setPosition(o),e.setItemGraphicEl(n,a),i.add(a)}}).update(function(c,h){var g=a.getItemGraphicEl(h),f=d(c);if(!u(e,f,c,t)){i.remove(g);return}var m=e.getItemVisual(c,"symbol")||"circle",y=g&&g.getSymbolType&&g.getSymbolType();if(!g||y&&y!==m)i.remove(g),(g=new r(e,c,l,p)).setPosition(f);else{g.updateData(e,c,l,p);var v={x:f[0],y:f[1]};s?g.attr(v):o.D(g,v,n)}i.add(g),e.setItemGraphicEl(c,g)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&t.fadeOut(function(){i.remove(t)},n)}).execute(),this._getSymbolPoint=d,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,i){var n=e._getSymbolPoint(i);t.setPosition(n),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=h(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,i){function n(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=c(i);for(var o=e.start;o<e.end;o++){var a=t.getItemLayout(o);if(u(t,a,o,i)){var r=new this._SymbolCtor(t,o,this._seriesScope);r.traverse(n),r.setPosition(a),this.group.add(r),t.setItemGraphicEl(o,r),this._progressiveEls.push(r)}}},e.prototype.eachRendered=function(e){a.traverseElements(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},i.hostModel)}):t.removeAll()},e}()},78939:function(e,t,i){i.d(t,{Z:()=>r});var n=i(56904),o=i(83208),a=i(67975);function r(e,t,i){t=(0,a.isArray)(t)&&{coordDimensions:t}||(0,a.extend)({encodeDefine:e.getEncode()},t);var r=e.getSource(),s=(0,n.Z)(r,t).dimensions,l=new o.Z(s,e);return l.initData(r,i),l}},44811:function(e,t,i){i.d(t,{N:()=>B});var n=i(69988),o=i(30984),a=i(2021),r=i(5965),s=i(37293),l=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.hasSymbolVisual=!0,i}return(0,n.ZT)(t,e),t.prototype.getInitialData=function(e){return(0,o.Z)(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new s.Z,i=(0,r.th)("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(i),i.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),a="none"===n?"circle":n,l=.8*e.itemHeight,u=(0,r.th)(a,(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?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.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}(a.Z),u=i(67975),c=i(5434),h=i(3802),p=i(97384);function d(e,t,i){var n,o,a,r,s=e.getBaseAxis(),l=e.getOtherAxis(s),c=(n=l,o=i,a=0,r=n.scale.getExtent(),"start"===o?a=r[0]:"end"===o?a=r[1]:(0,u.isNumber)(o)&&!isNaN(o)?a=o:r[0]>0?a=r[0]:r[1]<0&&(a=r[1]),a),h=s.dim,d=l.dim,g=t.mapDimension(d),f=t.mapDimension(h),m=+("x"===d||"radius"===d),y=(0,u.map)(e.dimensions,function(e){return t.mapDimension(e)}),v=!1,x=t.getCalculationInfo("stackResultDimension");return(0,p.M)(t,y[0])&&(v=!0,y[0]=x),(0,p.M)(t,y[1])&&(v=!0,y[1]=x),{dataDimsForPoint:y,valueStart:c,valueAxisDim:d,baseAxisDim:h,stacked:!!v,valueDim:g,baseDim:f,baseDataOffset:m,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function g(e,t,i,n){var o=NaN;e.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=e.valueStart);var a=e.baseDataOffset,r=[];return r[a]=i.get(e.baseDim,n),r[1-a]=o,t.dataToPoint(r)}var f=i(98845),m=i(44235),y=i(99858),v=i(76150),x=i(86571),_=i(95999),b=i(58050),S=i(21730),M=i(82667),w=i(98306),I=i(33361),A=i(16072),T=i(10428),C=i(40814),D=i(54411);function Z(e,t){if(e.length===t.length){for(var i=0;i<e.length;i++)if(e[i]!==t[i])return;return!0}}function L(e){for(var t=1/0,i=1/0,n=-1/0,o=-1/0,a=0;a<e.length;){var r=e[a++],s=e[a++];isNaN(r)||(t=Math.min(r,t),n=Math.max(r,n)),isNaN(s)||(i=Math.min(s,i),o=Math.max(s,o))}return[[t,i],[n,o]]}function O(e,t){var i=L(e),n=i[0],o=i[1],a=L(t),r=a[0],s=a[1];return Math.max(Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function k(e){return u.isNumber(e)?e:.5*!!e}function P(e,t,i,n){var o=t.getBaseAxis(),a=+("x"!==o.dim&&"radius"!==o.dim),r=[],s=0,l=[],u=[],c=[],h=[];if(n){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||h.push(e[s],e[s+1]);e=h}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],r.push(u[0],u[1]),i){case"end":l[a]=c[a],l[1-a]=u[1-a],r.push(l[0],l[1]);break;case"middle":var p=(u[a]+c[a])/2,d=[];l[a]=d[a]=p,l[1-a]=u[1-a],d[1-a]=c[1-a],r.push(l[0],l[1]),r.push(d[0],d[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],r.push(l[0],l[1])}return r.push(e[s++],e[s++]),r}function N(e,t){return[e[2*t],e[2*t+1]]}function V(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<w.L1.length;t++)if(e.get([w.L1[t],"endLabel","show"]))return!0;return!1}function R(e,t,i,n){if(!(0,M.H)(t,"cartesian2d"))return(0,S.X0)(t,i,n);var o=n.getModel("endLabel"),a=o.get("valueAnimation"),r=n.getData(),s={lastFrameIndex:0},l=V(n)?function(i,n){e._endLabelOnDuring(i,n,r,s,a,o,t)}:null,u=t.getBaseAxis().isHorizontal(),c=(0,S.ID)(t,i,n,function(){var t=e._endLabel;t&&i&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}var z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.ZT)(t,e),t.prototype.init=function(){var e=new s.Z,t=new c.Z;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,i){var n,o=this,a=e.coordinateSystem,r=this.group,s=e.getData(),l=e.getModel("lineStyle"),c=e.getModel("areaStyle"),p=s.getLayout("points")||[],v="polar"===a.type,x=this._coordSys,_=this._symbolDraw,b=this._polyline,S=this._polygon,M=this._lineGroup,I=!t.ssr&&e.get("animation"),A=!c.isEmpty(),L=c.get("origin"),O=d(a,s,L),N=A&&function(e,t,i){if(!i.valueDim)return[];for(var n=t.count(),o=(0,f.o)(2*n),a=0;a<n;a++){var r=g(i,e,t,a);o[2*a]=r[0],o[2*a+1]=r[1]}return o}(a,s,O),V=e.get("showSymbol"),z=e.get("connectNulls"),E=V&&!v&&function(e,t,i){var n=e.get("showAllSymbol"),o="auto"===n;if(!n||o){var a=i.getAxesByScale("ordinal")[0];if(!(!a||o&&function(e,t){var i=e.getExtent(),n=Math.abs(i[1]-i[0])/e.scale.count();isNaN(n)&&(n=0);for(var o=t.count(),a=Math.max(1,Math.round(o/5)),r=0;r<o;r+=a)if(1.5*h.Z.getSymbolSize(t,r)[+!!e.isHorizontal()]>n)return!1;return!0}(a,t))){var r=t.mapDimension(a.dim),s={};return u.each(a.getViewLabels(),function(e){s[a.scale.getRawOrdinalNumber(e.tickValue)]=1}),function(e){return!s.hasOwnProperty(t.get(r,e))}}}}(e,s,a),G=this._data;G&&G.eachItemGraphicEl(function(e,t){e.__temp&&(r.remove(e),G.setItemGraphicEl(t,null))}),V||_.remove(),r.add(M);var B=!v&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&(null!=(n=a.getArea()).width?(n.x-=.1,n.y-=.1,n.width+=.2,n.height+=.2):n.r0&&(n.r0-=.5,n.r+=.5)),this._clipShapeForSymbol=n;var H=function(e,t,i){var n,o,a=e.getVisual("visualMeta");if(a&&a.length&&e.count()&&"cartesian2d"===t.type){for(var r=a.length-1;r>=0;r--){var s=e.getDimensionInfo(a[r].dimension);if("x"===(n=s&&s.coordDim)||"y"===n){o=a[r];break}}if(o){var l=t.getAxis(n),c=u.map(o.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),h=c.length,p=o.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),p.reverse());var d=function(e,t){var i,n,o=[],a=e.length;function r(e,t,i){var n=e.coord,o=(i-n)/(t.coord-n);return{coord:i,color:(0,D.lerp)(o,[e.color,t.color])}}for(var s=0;s<a;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){n?o.push(r(n,l,t)):i&&o.push(r(i,l,0),r(i,l,t));break}else i&&(o.push(r(i,l,0)),i=null),o.push(l),n=l}return o}(c,"x"===n?i.getWidth():i.getHeight()),g=d.length;if(!g&&h)return c[0].coord<0?p[1]?p[1]:c[h-1].color:p[0]?p[0]:c[0].color;var f=d[0].coord-10,y=d[g-1].coord+10,v=y-f;if(v<.001)return"transparent";u.each(d,function(e){e.offset=(e.coord-f)/v}),d.push({offset:g?d[g-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:g?d[0].offset:.5,color:p[0]||"transparent"});var x=new m.Z(0,0,0,0,d,!0);return x[n]=f,x[n+"2"]=y,x}}}(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(b&&x.type===a.type&&B===this._step){A&&!S?S=this._newPolygon(p,N):S&&!A&&(M.remove(S),S=this._polygon=null),v||this._initOrUpdateEndLabel(e,a,(0,C.Lz)(H));var W=M.getClipPath();if(W){var F=R(this,a,!1,e);y.KZ(W,{shape:F.shape},e)}else M.setClipPath(R(this,a,!0,e));V&&_.updateData(s,{isIgnore:E,clipShape:n,disableAnimation:!0,getSymbolPoint:function(e){return[p[2*e],p[2*e+1]]}}),Z(this._stackedOnPoints,N)&&Z(this._points,p)||(I?this._doUpdateAnimation(s,N,a,i,B,L,z):(B&&(p=P(p,a,B,z),N&&(N=P(N,a,B,z))),b.setShape({points:p}),S&&S.setShape({points:p,stackedOnPoints:N})))}else V&&_.updateData(s,{isIgnore:E,clipShape:n,disableAnimation:!0,getSymbolPoint:function(e){return[p[2*e],p[2*e+1]]}}),I&&this._initSymbolLabelAnimation(s,a,n),B&&(p=P(p,a,B,z),N&&(N=P(N,a,B,z))),b=this._newPolyline(p),A?S=this._newPolygon(p,N):S&&(M.remove(S),S=this._polygon=null),v||this._initOrUpdateEndLabel(e,a,(0,C.Lz)(H)),M.setClipPath(R(this,a,!0,e));var X=e.getModel("emphasis"),Y=X.get("focus"),U=X.get("blurScope"),K=X.get("disabled");b.useStyle(u.defaults(l.getLineStyle(),{fill:"none",stroke:H,lineJoin:"bevel"})),(0,w.WO)(b,e,"lineStyle"),b.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(b.getState("emphasis").style.lineWidth=+b.style.lineWidth+1),(0,T.A)(b).seriesIndex=e.seriesIndex,(0,w.k5)(b,Y,U,K);var j=k(e.get("smooth")),q=e.get("smoothMonotone");if(b.setShape({smooth:j,smoothMonotone:q,connectNulls:z}),S){var Q=s.getCalculationInfo("stackedOnSeries"),$=0;S.useStyle(u.defaults(c.getAreaStyle(),{fill:H,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Q&&($=k(Q.get("smooth"))),S.setShape({smooth:j,stackedOnSmooth:$,smoothMonotone:q,connectNulls:z}),(0,w.WO)(S,e,"areaStyle"),(0,T.A)(S).seriesIndex=e.seriesIndex,(0,w.k5)(S,Y,U,K)}var J=function(e){o._changePolyState(e)};s.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=s,this._coordSys=a,this._stackedOnPoints=N,this._points=p,this._step=B,this._valueOrigin=L,e.get("triggerLineEvent")&&(this.packEventData(e,b),S&&this.packEventData(e,S))},t.prototype.packEventData=function(e,t){(0,T.A)(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,i,n){var o=e.getData(),a=x.gO(o,n);if(this._changePolyState("emphasis"),a instanceof Array||null==a||!(a>=0))b.Z.prototype.highlight.call(this,e,t,i,n);else{var r=o.getLayout("points"),s=o.getItemGraphicEl(a);if(!s){var l=r[2*a],u=r[2*a+1];if(isNaN(l)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,p=e.get("z")||0;(s=new h.Z(o,a)).x=l,s.y=u,s.setZ(c,p);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=p,d.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},t.prototype.downplay=function(e,t,i,n){var o=e.getData(),a=x.gO(o,n);if(this._changePolyState("normal"),null!=a&&a>=0){var r=o.getItemGraphicEl(a);r&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay())}else b.Z.prototype.downplay.call(this,e,t,i,n)},t.prototype._changePolyState=function(e){var t=this._polygon;(0,w.Gl)(this._polyline,e),t&&(0,w.Gl)(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new _.X({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new _.K({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,t,i){var n,o,a=t.getBaseAxis(),r=a.inverse;"cartesian2d"===t.type?(n=a.isHorizontal(),o=!1):"polar"===t.type&&(n="angle"===a.dim,o=!0);var s=e.hostModel,l=s.get("animationDuration");u.isFunction(l)&&(l=l(null));var c=s.get("animationDelay")||0,h=u.isFunction(c)?c(null):c;e.eachItemGraphicEl(function(e,a){if(e){var s=[e.x,e.y],p=void 0,d=void 0,g=void 0;if(i){if(o){var f=t.pointToCoord(s);n?(p=i.startAngle,d=i.endAngle,g=-f[1]/180*Math.PI):(p=i.r0,d=i.r,g=f[0])}else n?(p=i.x,d=i.x+i.width,g=e.x):(p=i.y+i.height,d=i.y,g=e.y)}var m=d===p?0:(g-p)/(d-p);r&&(m=1-m);var y=u.isFunction(c)?c(a):l*m+h,v=e.getSymbolPath(),x=v.getTextContent();e.attr({scaleX:0,scaleY:0}),e.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),v.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,i){var n=e.getModel("endLabel");if(V(e)){var o,a,r,s=e.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||((c=this._endLabel=new v.ZP({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=function(e){for(var t,i,n=e.length/2;n>0&&(t=e[2*n-2],i=e[2*n-1],isNaN(t)||isNaN(i));n--);return n-1}(u);h>=0&&((0,I.ni)(l,(0,I.k3)(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:h,defaultText:function(e,t,i){return null!=i?(0,A.O)(s,i):(0,A.H)(s,e)},enableTextSetter:!0},(a=(o=t.getBaseAxis()).isHorizontal(),r=o.inverse,{normal:{align:n.get("align")||(a?r?"right":"left":"center"),verticalAlign:n.get("verticalAlign")||(a?"middle":r?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,i,n,o,a,r){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=i.getLayout("points"),c=i.hostModel,h=c.get("connectNulls"),p=a.get("precision"),d=a.get("distance")||0,g=r.getBaseAxis(),f=g.isHorizontal(),m=g.inverse,y=t.shape,v=m?f?y.x:y.y+y.height:f?y.x+y.width:y.y,_=(f?d:0)*(m?-1:1),b=(f?0:-d)*(m?-1:1),S=f?"x":"y",M=function(e,t,i){for(var n,o,a=e.length/2,r=+("x"!==i),s=0,l=-1,u=0;u<a;u++)if(!(isNaN(o=e[2*u+r])||isNaN(e[2*u+1-r]))){if(0===u){n=o;continue}if(n<=t&&o>=t||n>=t&&o<=t){l=u;break}s=u,n=o}return{range:[s,l],t:(t-n)/(o-n)}}(u,v,S),w=M.range,A=w[1]-w[0],T=void 0;if(A>=1){if(A>1&&!h){var C=N(u,w[0]);s.attr({x:C[0]+_,y:C[1]+b}),o&&(T=c.getRawValue(w[0]))}else{var C=l.getPointOn(v,S);C&&s.attr({x:C[0]+_,y:C[1]+b});var D=c.getRawValue(w[0]),Z=c.getRawValue(w[1]);o&&(T=x.pk(i,p,D,Z,M.t))}n.lastFrameIndex=w[0]}else{var L=1===e||n.lastFrameIndex>0?w[0]:0,C=N(u,L);o&&(T=c.getRawValue(L)),s.attr({x:C[0]+_,y:C[1]+b})}if(o){var O=(0,I.qA)(s);"function"==typeof O.setLabelText&&O.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,i,n,o,a,r){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,i,n,o,a,r,s){for(var l,u=(l=[],t.diff(e).add(function(e){l.push({cmd:"+",idx:e})}).update(function(e,t){l.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){l.push({cmd:"-",idx:e})}).execute(),l),c=[],h=[],p=[],m=[],y=[],v=[],x=[],_=d(o,t,r),b=e.getLayout("points")||[],S=t.getLayout("points")||[],M=0;M<u.length;M++){var w=u[M],I=!0,A=void 0,T=void 0;switch(w.cmd){case"=":A=2*w.idx,T=2*w.idx1;var C=b[A],D=b[A+1],Z=S[T],L=S[T+1];(isNaN(C)||isNaN(D))&&(C=Z,D=L),c.push(C,D),h.push(Z,L),p.push(i[A],i[A+1]),m.push(n[T],n[T+1]),x.push(t.getRawIndex(w.idx1));break;case"+":var O=w.idx,k=_.dataDimsForPoint,P=o.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);T=2*O,c.push(P[0],P[1]),h.push(S[T],S[T+1]);var N=g(_,o,t,O);p.push(N[0],N[1]),m.push(n[T],n[T+1]),x.push(t.getRawIndex(O));break;case"-":I=!1}I&&(y.push(w),v.push(v.length))}v.sort(function(e,t){return x[e]-x[t]});for(var V=c.length,R=(0,f.o)(V),z=(0,f.o)(V),E=(0,f.o)(V),G=(0,f.o)(V),B=[],M=0;M<v.length;M++){var H=v[M],W=2*M,F=2*H;R[W]=c[F],R[W+1]=c[F+1],z[W]=h[F],z[W+1]=h[F+1],E[W]=p[F],E[W+1]=p[F+1],G[W]=m[F],G[W+1]=m[F+1],B[M]=y[H]}return{current:R,next:z,stackedOnCurrent:E,stackedOnNext:G,status:B}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin,0),h=c.current,p=c.stackedOnCurrent,m=c.next,v=c.stackedOnNext;if(o&&(h=P(c.current,i,o,r),p=P(c.stackedOnCurrent,i,o,r),m=P(c.next,i,o,r),v=P(c.stackedOnNext,i,o,r)),O(h,m)>3e3||l&&O(p,v)>3e3){s.stopAnimation(),s.setShape({points:m}),l&&(l.stopAnimation(),l.setShape({points:m,stackedOnPoints:v}));return}s.shape.__points=c.current,s.shape.points=h;var x={shape:{points:m}};c.current!==h&&(x.shape.__points=c.next),s.stopAnimation(),y.D(s,x,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),y.D(l,{shape:{stackedOnPoints:v}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var _=[],b=c.status,S=0;S<b.length;S++)if("="===b[S].cmd){var M=e.getItemGraphicEl(b[S].idx1);M&&_.push({el:M,ptIdx:S})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<_.length;t++){var i=_[t].el,n=2*_[t].ptIdx;i.x=e[n],i.y=e[n+1],i.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(e,n){e.__temp&&(t.remove(e),i.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(b.Z),E=i(13706),G=i(5719);function B(e){e.registerChartView(z),e.registerSeriesModel(l),e.registerLayout((0,E.Z)("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(0,G.Z)("line"))}},95999:function(e,t,i){i.d(t,{K:()=>g,X:()=>p});var n=i(69988),o=i(7185),a=i(97694),r=i(99101),s=Math.min,l=Math.max;function u(e,t){return isNaN(e)||isNaN(t)}function c(e,t,i,n,o,a,r,c,h){for(var p,d,g,f,m,y,v=i,x=0;x<n;x++){var _=t[2*v],b=t[2*v+1];if(v>=o||v<0)break;if(u(_,b)){if(h){v+=a;continue}break}if(v===i)e[a>0?"moveTo":"lineTo"](_,b),g=_,f=b;else{var S=_-p,M=b-d;if(S*S+M*M<.5){v+=a;continue}if(r>0){for(var w=v+a,I=t[2*w],A=t[2*w+1];I===_&&A===b&&x<n;)x++,w+=a,v+=a,I=t[2*w],A=t[2*w+1],_=t[2*v],b=t[2*v+1],S=_-p,M=b-d;var T=x+1;if(h)for(;u(I,A)&&T<n;)T++,w+=a,I=t[2*w],A=t[2*w+1];var C=.5,D=0,Z=0,L=void 0,O=void 0;if(T>=n||u(I,A))m=_,y=b;else{D=I-p,Z=A-d;var k=_-p,P=I-_,N=b-d,V=A-b,R=void 0,z=void 0;if("x"===c){R=Math.abs(k),z=Math.abs(P);var E=D>0?1:-1;m=_-E*R*r,y=b,L=_+E*z*r,O=b}else if("y"===c){R=Math.abs(N),z=Math.abs(V);var G=Z>0?1:-1;m=_,y=b-G*R*r,L=_,O=b+G*z*r}else R=Math.sqrt(k*k+N*N),m=_-D*r*(1-(C=(z=Math.sqrt(P*P+V*V))/(z+R))),y=b-Z*r*(1-C),L=_+D*r*C,O=b+Z*r*C,L=s(L,l(I,_)),O=s(O,l(A,b)),L=l(L,s(I,_)),O=l(O,s(A,b)),D=L-_,Z=O-b,m=_-D*R/z,y=b-Z*R/z,m=s(m,l(p,_)),y=s(y,l(d,b)),m=l(m,s(p,_)),y=l(y,s(d,b)),D=_-m,Z=b-y,L=_+D*z/R,O=b+Z*z/R}e.bezierCurveTo(g,f,m,y,_,b),g=L,f=O}else e.lineTo(_,b)}p=_,d=b,v+=a}return x}var h=function(){this.smooth=0,this.smoothConstraint=!0},p=function(e){function t(t){var i=e.call(this,t)||this;return i.type="ec-polyline",i}return(0,n.ZT)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new h},t.prototype.buildPath=function(e,t){var i=t.points,n=0,o=i.length/2;if(t.connectNulls){for(;o>0&&u(i[2*o-2],i[2*o-1]);o--);for(;n<o&&u(i[2*n],i[2*n+1]);n++);}for(;n<o;)n+=c(e,i,n,o,o,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 i,n,o=this.path.data,s=a.Z.CMD,l="x"===t,u=[],c=0;c<o.length;){var h=o[c++],p=void 0,d=void 0,g=void 0,f=void 0,m=void 0,y=void 0,v=void 0;switch(h){case s.M:i=o[c++],n=o[c++];break;case s.L:if(p=o[c++],d=o[c++],(v=l?(e-i)/(p-i):(e-n)/(d-n))<=1&&v>=0){var x=l?(d-n)*v+n:(p-i)*v+i;return l?[e,x]:[x,e]}i=p,n=d;break;case s.C:p=o[c++],d=o[c++],g=o[c++],f=o[c++],m=o[c++],y=o[c++];var _=l?(0,r.kD)(i,p,g,m,e,u):(0,r.kD)(n,d,f,y,e,u);if(_>0)for(var b=0;b<_;b++){var S=u[b];if(S<=1&&S>=0){var x=l?(0,r.af)(n,d,f,y,S):(0,r.af)(i,p,g,m,S);return l?[e,x]:[x,e]}}i=m,n=y}}},t}(o.ZP),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.ZT)(t,e),t}(h),g=function(e){function t(t){var i=e.call(this,t)||this;return i.type="ec-polygon",i}return(0,n.ZT)(t,e),t.prototype.getDefaultShape=function(){return new d},t.prototype.buildPath=function(e,t){var i=t.points,n=t.stackedOnPoints,o=0,a=i.length/2,r=t.smoothMonotone;if(t.connectNulls){for(;a>0&&u(i[2*a-2],i[2*a-1]);a--);for(;o<a&&u(i[2*o],i[2*o+1]);o++);}for(;o<a;){var s=c(e,i,o,a,a,1,t.smooth,r,t.connectNulls);c(e,n,o+s-1,s,a,-1,t.stackedOnSmooth,r,t.connectNulls),o+=s+1,e.closePath()}},t}(o.ZP)},85731:function(e,t,i){i.d(t,{N:()=>E});var n=i(52914),o=i(82517),a=i(50651),r=i(67975),s=i(97694),l=2*Math.PI,u=Math.PI/180;function c(e,t){return a.ME(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function h(e,t){var i,n,a=c(e,t),s=e.get("center"),l=e.get("radius");r.isArray(l)||(l=[0,l]);var u=(0,o.GM)(a.width,t.getWidth()),h=(0,o.GM)(a.height,t.getHeight()),p=Math.min(u,h),d=(0,o.GM)(l[0],p/2),g=(0,o.GM)(l[1],p/2),f=e.coordinateSystem;if(f){var m=f.dataToPoint(s);i=m[0]||0,n=m[1]||0}else r.isArray(s)||(s=[s,s]),i=(0,o.GM)(s[0],u)+a.x,n=(0,o.GM)(s[1],h)+a.y;return{cx:i,cy:n,r0:d,r:g}}function p(e,t,i){t.eachSeriesByType(e,function(e){var t=e.getData(),n=t.mapDimension("value"),a=c(e,i),r=h(e,i),p=r.cx,d=r.cy,g=r.r,f=r.r0,m=-e.get("startAngle")*u,y=e.get("endAngle"),v=e.get("padAngle")*u;y="auto"===y?m-l:-y*u;var x=e.get("minAngle")*u+v,_=0;t.each(n,function(e){!isNaN(e)&&_++});var b=t.getSum(n),S=Math.PI/(b||_)*2,M=e.get("clockwise"),w=e.get("roseType"),I=e.get("stillShowZeroSum"),A=t.getDataExtent(n);A[0]=0;var T=M?1:-1,C=[m,y],D=T*v/2;(0,s.L)(C,!M),m=C[0];var Z=Math.abs((y=C[1])-m),L=Z,O=0,k=m;if(t.setLayout({viewRect:a,r:g}),t.each(n,function(e,i){if(isNaN(e)){t.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:p,cy:d,r0:f,r:w?NaN:g});return}(n="area"!==w?0===b&&I?S:e*S:Z/_)<x?(n=x,L-=x):O+=e;var n,a=k+T*n,r=0,s=0;v>n?s=r=k+T*n/2:(r=k+D,s=a-D),t.setItemLayout(i,{angle:n,startAngle:r,endAngle:s,clockwise:M,cx:p,cy:d,r0:f,r:w?(0,o.NU)(e,A,[f,g]):g}),k=a}),L<l&&_){if(L<=.001){var P=Z/_;t.each(n,function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i);n.angle=P;var o=0,a=0;P<v?a=o=m+T*(i+.5)*P:(o=m+T*i*P+D,a=m+T*(i+1)*P-D),n.startAngle=o,n.endAngle=a}})}else S=L/O,k=m,t.each(n,function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i),o=n.angle===x?x:e*S,a=0,r=0;o<v?r=a=k+T*o/2:(a=k+D,r=k+T*o-D),n.startAngle=a,n.endAngle=r,k+=T*o}})}})}var d=i(31260),g=i(69988),f=i(76150),m=i(99858),y=i(61099),v=i(53511),x=i(98306),_=i(58050),b=i(91145),S=i(9655),M=i(67285),w=Math.PI/180;function I(e,t,i,n,o,a,r,s,l,u){if(!(e.length<2)){for(var c=e.length,h=0;h<c;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var p=e[h].label.x-u;e[h].linePoints[1][0]+=p,e[h].label.x=u}(0,M.GI)(e,l,l+r)&&function(e){for(var a={list:[],maxY:0},r={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>i?r:a,c=Math.abs(l.label.y-i);if(c>=u.maxY){var h=l.label.x-t-l.len2*o,p=n+l.len,g=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;u.rB=g,u.maxY=c}u.list.push(l)}d(a),d(r)}(e)}function d(e){for(var a=e.rB,r=a*a,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-i),c=n+l.len,h=t+(Math.sqrt(c*c*(1-Math.abs(u*u/r)))+l.len2)*o,p=h-l.label.x,d=l.targetTextWidth-p*o;A(l,d,!0),l.label.x=h}}}function A(e,t,i){if(void 0===i&&(i=!1),null==e.labelStyleWidth){var n=e.label,o=n.style,a=e.rect,r=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,c=a.width+(r?0:l);if(t<c||i){var h=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var p=n.getBoundingRect();n.setStyle("width",Math.ceil(p.width)),n.setStyle("backgroundColor",r)}else{var d=t-l,g=t<c?d:i?d>e.unconstrainedWidth?null:d:null;n.setStyle("width",g)}var f=n.getBoundingRect();a.width=f.width;var m=(n.style.margin||0)+2.1;a.height=f.height+m,a.y-=(a.height-h)/2}}}function T(e){return"center"===e.position}var C=i(33361),D=i(10061),Z=function(e){function t(t,i,n){var o=e.call(this)||this;o.z2=2;var a=new f.ZP;return o.setTextContent(a),o.updateData(t,i,n,!0),o}return(0,g.ZT)(t,e),t.prototype.updateData=function(e,t,i,n){var o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=(0,r.extend)((0,D.T)(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle)){this.setShape(u);return}if(n){this.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(m.KZ(this,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),this.originX=u.cx,this.originY=u.cy):"scale"===c?(this.shape.r=l.r0,m.KZ(this,{shape:{r:l.r}},o,t)):null!=i?(this.setShape({startAngle:i,endAngle:i}),m.KZ(this,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(this.shape.endAngle=l.startAngle,m.D(this,{shape:{endAngle:l.endAngle}},o,t))}else(0,m.Zi)(this),m.D(this,{shape:u},o,t);this.useStyle(e.getItemVisual(t,"style")),(0,x.WO)(this,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(h)*p,g=Math.sin(h)*p,f=a.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(o,e,t),this.ensureState("emphasis").shape=(0,r.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},(0,D.T)(s.getModel("itemStyle"),l)),(0,r.extend)(this.ensureState("select"),{x:d,y:g,shape:(0,D.T)(a.getModel(["select","itemStyle"]),l)}),(0,r.extend)(this.ensureState("blur"),{shape:(0,D.T)(a.getModel(["blur","itemStyle"]),l)});var y=this.getTextGuideLine(),v=this.getTextContent();y&&(0,r.extend)(y.ensureState("select"),{x:d,y:g}),(0,r.extend)(v.ensureState("select"),{x:d,y:g}),(0,x.k5)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t,i){var n=t.getItemModel(i),o=n.getModel("labelLine"),a=t.getItemVisual(i,"style"),s=a&&a.fill,l=a&&a.opacity;(0,C.ni)(this,(0,C.k3)(n),{labelFetcher:t.hostModel,labelDataIndex:i,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(i,"normal")||t.getName(i)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new y.Z,this.setTextGuideLine(h)),(0,S.Iu)(this,(0,S.$x)(n),{stroke:s,opacity:(0,r.retrieve3)(o.get(["lineStyle","opacity"]),l,1)})}},t}(v.C),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return(0,g.ZT)(t,e),t.prototype.render=function(e,t,i,n){var a,s=e.getData(),l=this._data,u=this.group;if(!l&&s.count()>0){for(var c=s.getItemLayout(0),p=1;isNaN(c&&c.startAngle)&&p<s.count();++p)c=s.getItemLayout(p);c&&(a=c.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===s.count()&&e.get("showEmptyCircle")){var d=new v.C({shape:h(e,i)});d.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,u.add(d)}s.diff(l).add(function(e){var t=new Z(s,e,a);s.setItemGraphicEl(e,t),u.add(t)}).update(function(e,t){var i=l.getItemGraphicEl(t);i.updateData(s,e,a),i.off("click"),u.add(i),s.setItemGraphicEl(e,i)}).remove(function(t){var i=l.getItemGraphicEl(t);m.XD(i,e,t)}).execute(),function(e){var t,i,n=e.getData(),a=[],s=!1,l=(e.get("minShowLabelAngle")||0)*w,u=n.getLayout("viewRect"),c=n.getLayout("r"),h=u.width,p=u.x,d=u.y,g=u.height;function f(e){e.ignore=!0}n.each(function(e){var u,d,g,m,y=n.getItemGraphicEl(e),v=y.shape,x=y.getTextContent(),_=y.getTextGuideLine(),S=n.getItemModel(e),M=S.getModel("label"),w=M.get("position")||S.get(["emphasis","label","position"]),I=M.get("distanceToLabelLine"),A=M.get("alignTo"),T=(0,o.GM)(M.get("edgeDistance"),h),C=M.get("bleedMargin"),D=S.getModel("labelLine"),Z=D.get("length");Z=(0,o.GM)(Z,h);var L=D.get("length2");if(L=(0,o.GM)(L,h),Math.abs(v.endAngle-v.startAngle)<l){(0,r.each)(x.states,f),x.ignore=!0,_&&((0,r.each)(_.states,f),_.ignore=!0);return}if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(x)){var O=(v.startAngle+v.endAngle)/2,k=Math.cos(O),P=Math.sin(O);t=v.cx,i=v.cy;var N="inside"===w||"inner"===w;if("center"===w)u=v.cx,d=v.cy,m="center";else{var V=(N?(v.r+v.r0)/2*k:v.r*k)+t,R=(N?(v.r+v.r0)/2*P:v.r*P)+i;if(u=V+3*k,d=R+3*P,!N){var z=V+k*(Z+c-v.r),E=R+P*(Z+c-v.r),G=z+(k<0?-1:1)*L;u="edge"===A?k<0?p+T:p+h-T:G+(k<0?-I:I),d=E,g=[[V,R],[z,E],[G,E]]}m=N?"center":"edge"===A?k>0?"right":"left":k>0?"left":"right"}var B=Math.PI,H=0,W=M.get("rotate");if((0,r.isNumber)(W))H=B/180*W;else if("center"===w)H=0;else if("radial"===W||!0===W)H=k<0?-O+B:-O;else if("tangential"===W&&"outside"!==w&&"outer"!==w){var F=Math.atan2(k,P);F<0&&(F=2*B+F),P>0&&(F=B+F),H=F-B}if(s=!!H,x.x=u,x.y=d,x.rotation=H,x.setStyle({verticalAlign:"middle"}),N){x.setStyle({align:m});var X=x.states.select;X&&(X.x+=x.x,X.y+=x.y)}else{var Y=x.getBoundingRect().clone();Y.applyTransform(x.getComputedTransform());var U=(x.style.margin||0)+2.1;Y.y-=U/2,Y.height+=U,a.push({label:x,labelLine:_,position:w,len:Z,len2:L,minTurnAngle:D.get("minTurnAngle"),maxSurfaceAngle:D.get("maxSurfaceAngle"),surfaceNormal:new b.Z(k,P),linePoints:g,textAlign:m,labelDistance:I,labelAlignTo:A,edgeDistance:T,bleedMargin:C,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:x.style.width})}y.setTextConfig({inside:N})}}),!s&&e.get("avoidLabelOverlap")&&function(e,t,i,n,o,a,r,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<e.length;p++){var d=e[p].label;!T(e[p])&&(d.x<t?(c=Math.min(c,d.x),l.push(e[p])):(h=Math.max(h,d.x),u.push(e[p])))}for(var p=0;p<e.length;p++){var g=e[p];if(!T(g)&&g.linePoints){if(null!=g.labelStyleWidth)continue;var d=g.label,f=g.linePoints,m=void 0;m="edge"===g.labelAlignTo?d.x<t?f[2][0]-g.labelDistance-r-g.edgeDistance:r+o-g.edgeDistance-f[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?d.x<t?c-r-g.bleedMargin:r+o-h-g.bleedMargin:d.x<t?d.x-r-g.bleedMargin:r+o-d.x-g.bleedMargin,g.targetTextWidth=m,A(g,m)}}I(u,t,i,n,1,o,a,r,s,h),I(l,t,i,n,-1,o,a,r,s,c);for(var p=0;p<e.length;p++){var g=e[p];if(!T(g)&&g.linePoints){var d=g.label,f=g.linePoints,y="edge"===g.labelAlignTo,v=d.style.padding,x=v?v[1]+v[3]:0,_=d.style.backgroundColor?0:x,b=g.rect.width+_,S=f[1][0]-f[2][0];y?d.x<t?f[2][0]=r+g.edgeDistance+b+g.labelDistance:f[2][0]=r+o-g.edgeDistance-b-g.labelDistance:(d.x<t?f[2][0]=d.x+g.labelDistance:f[2][0]=d.x-g.labelDistance,f[1][0]=f[2][0]+S),f[1][1]=f[2][1]=d.y}}}(a,t,i,c,h,g,p,d);for(var m=0;m<a.length;m++){var y=a[m],v=y.label,x=y.labelLine,_=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:y.textAlign}),_&&((0,r.each)(v.states,f),v.ignore=!0);var M=v.states.select;M&&(M.x+=v.x,M.y+=v.y)}if(x){var C=y.linePoints;_||!C?((0,r.each)(x.states,f),x.ignore=!0):((0,S.qK)(C,y.minTurnAngle),(0,S._A)(C,y.surfaceNormal,y.maxSurfaceAngle),x.setShape({points:C}),v.__hostTarget.textGuideLineConfig={anchor:new b.Z(C[0][0],C[0][1])})}}}(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=s)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var i=t.getData().getItemLayout(0);if(i){var n=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(n*n+o*o);return a<=i.r&&a>=i.r0}},t.type="pie",t}(_.Z),O=i(78939),k=i(86571),P=i(86451),N=i(26435),V=i(2021),R=k.Yf(),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,g.ZT)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new N.Z(r.bind(this.getData,this),r.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return(0,O.Z)(this,{coordDimensions:["value"],encodeDefaulter:r.curry(P.Ss,this)})},t.prototype.getDataParams=function(t){var i=this.getData(),n=R(i),a=n.seats;if(!a){var r=[];i.each(i.mapDimension("value"),function(e){r.push(e)}),a=n.seats=(0,o.HD)(r,i.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){k.Cc(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(V.Z);function E(e){e.registerChartView(L),e.registerSeriesModel(z),(0,n.y)("pie",e.registerAction),e.registerLayout((0,r.curry)(p,"pie")),e.registerProcessor((0,d.Z)("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var i=e.getData();i.filterSelf(function(e){var t=i.mapDimension("value"),n=i.get(t,e);return!(0,r.isNumber)(n)||!!isNaN(n)||!(n<0)})}})}},8890:function(e,t,i){i.d(t,{N:()=>x});var n=i(36232),o=i(69988),a=i(30984),r=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.hasSymbolVisual=!0,i}return(0,o.ZT)(t,e),t.prototype.getInitialData=function(e,t){return(0,a.Z)(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,i){return i.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(i(2021).Z),s=i(5434),l=i(9495),u=i(7185),c=i(37293),h=i(5965),p=i(10428),d=function(){},g=function(e){function t(t){var i=e.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return(0,o.ZT)(t,e),t.prototype.getDefaultShape=function(){return new d},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var i,n=t.points,o=t.size,a=this.symbolProxy,r=a.shape,s=e.getContext?e.getContext():e,l=s&&o[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,i=this._off;i<n.length;){var c=n[i++],h=n[i++];!(isNaN(c)||isNaN(h))&&(!u||u.contain(c,h))&&(r.x=c-o[0]/2,r.y=h-o[1]/2,r.width=o[0],r.height=o[1],a.buildPath(e,r,!0))}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.afterBrush=function(){var e,t=this.shape,i=t.points,n=t.size,o=this._ctx,a=this.softClipShape;if(o){for(e=this._off;e<i.length;){var r=i[e++],s=i[e++];!(isNaN(r)||isNaN(s))&&(!a||a.contain(r,s))&&o.fillRect(r-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var i=this.shape,n=i.points,o=i.size,a=Math.max(o[0],4),r=Math.max(o[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,u=n[l]-a/2,c=n[l+1]-r/2;if(e>=u&&t>=c&&e<=u+a&&t<=c+r)return s}return -1},t.prototype.contain=function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect();return(e=i[0],t=i[1],n.contain(e,t))?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,i=t.points,n=t.size,o=n[0],a=n[1],r=1/0,s=1/0,u=-1/0,c=-1/0,h=0;h<i.length;){var p=i[h++],d=i[h++];r=Math.min(p,r),u=Math.max(p,u),s=Math.min(d,s),c=Math.max(d,c)}e=this._rect=new l.Z(r-o/2,s-a/2,u-r+o,c-s+a)}return e},t}(u.ZP),f=function(){function e(){this.group=new c.Z}return e.prototype.updateData=function(e,t){this._clear();var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(e){if(null!=e.startIndex){var i=(e.endIndex-e.startIndex)*2,n=8*e.startIndex;t=new Float32Array(t.buffer,n,i)}e.setShape("points",t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,i){var n=this._newAdded[0],o=t.getLayout("points"),a=n&&n.shape.points;if(a&&a.length<2e4){var r=a.length,s=new Float32Array(r+o.length);s.set(a),s.set(o,r),n.endIndex=e.end,n.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:o}),this._setCommon(l,t,i)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new g({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,i){var n=t.hostModel;i=i||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=i.clipShape||null,e.symbolProxy=(0,h.th)(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<4;e.useStyle(n.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var r=t.getVisual("style"),s=r&&r.fill;s&&e.setColor(s);var l=(0,p.A)(e);l.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){l.dataIndex=null;var i=e.hoverDataIdx;i>=0&&(l.dataIndex=i+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),m=i(13706),y=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.render=function(e,t,i){var n=e.getData();this._updateSymbolDraw(n,e).updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,i){var n=e.getData();this._updateSymbolDraw(n,e).incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,i){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=(0,m.Z)("").reset(e,t,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var i=this._symbolDraw,n=t.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new f:new s.Z,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(i(58050).Z),v=i(28525);function x(e){(0,n.D)(v.N),e.registerSeriesModel(r),e.registerChartView(y),e.registerLayout((0,m.Z)("scatter"))}},84677:function(e,t,i){i.d(t,{Z:()=>c});var n=i(69988),o=i(67975),a=i(45352),r=i(46500),s=i(86571),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}();function u(e){var t={};return(0,o.each)(["start","end","startValue","endValue","throttle"],function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}let c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t,i){var n=u(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this._doInit(n)},t.prototype.mergeOption=function(e){var t=u(e);(0,o.merge)(this.option,e,!0),(0,o.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;(0,o.each)([["start","startValue"],["end","endValue"]],function(e,n){"value"===this._rangePropMode[n]&&(t[e[0]]=i[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=(0,o.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,o.each)(r.I,function(i){var n=this.getReferringComponents((0,r.jQ)(i),s.iP);if(n.specified){t=!0;var a=new l;(0,o.each)(n.models,function(e){a.add(e.componentIndex)}),e.set(i,a)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var i=this.ecModel,n=!0,a="vertical"===t?"y":"x",u=i.findComponents({mainType:a+"Axis"});if(c(u,a),n){var u=i.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});c(u,"single")}function c(t,i){var a=t[0];if(a){var r=new l;if(r.add(a.componentIndex),e.set(i,r),n=!1,"x"===i||"y"===i){var u=a.getReferringComponents("grid",s.C6).models[0];u&&(0,o.each)(t,function(e){a.componentIndex!==e.componentIndex&&u===e.getReferringComponents("grid",s.C6).models[0]&&r.add(e.componentIndex)})}}}n&&(0,o.each)(r.I,function(t){if(n){var o=i.findComponents({mainType:(0,r.jQ)(t),filter:function(e){return"category"===e.get("type",!0)}});if(o[0]){var a=new l;a.add(o[0].componentIndex),e.set(t,a),n=!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,i=this.get("rangeMode");(0,o.each)([["start","startValue"],["end","endValue"]],function(n,o){var a=null!=e[n[0]],r=null!=e[n[1]];a&&!r?t[o]="percent":!a&&r?t[o]="value":i?t[o]=i[o]:a&&(t[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,i){null==e&&(e=this.ecModel.getComponent((0,r.jQ)(t),i))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(i,n){(0,o.each)(i.indexList,function(i){e.call(t,n,i)})})},t.prototype.getAxisProxy=function(e,t){var i=this.getAxisModel(e,t);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[t])return this.ecModel.getComponent((0,r.jQ)(e),t)},t.prototype.setRawRange=function(e){var t=this.option,i=this.settledOption;(0,o.each)([["start","startValue"],["end","endValue"]],function(n){(null!=e[n[0]]||null!=e[n[1]])&&(t[n[0]]=i[n[0]]=e[n[0]],t[n[1]]=i[n[1]]=e[n[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;(0,o.each)(["start","startValue","end","endValue"],function(i){t[i]=e[i]})},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 i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var o=i[n],a=this._targetAxisInfoMap.get(o),r=0;r<a.indexList.length;r++){var s=this.getAxisProxy(o,a.indexList[r]);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}(a.Z)},82877:function(e,t,i){i.d(t,{Z:()=>o});var n=i(69988);let o=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.render=function(e,t,i,n){this.dataZoomModel=e,this.ecModel=t,this.api=i},t.type="dataZoom",t}(i(64292).Z)},46500:function(e,t,i){i.d(t,{BL:()=>l,I:()=>o,jQ:()=>s,kc:()=>r,rg:()=>u});var n=i(67975),o=["x","y","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function r(e){var t=e.get("coordinateSystem");return(0,n.indexOf)(a,t)>=0}function s(e){return e+"Axis"}function l(e,t){var i,o=(0,n.createHashMap)(),a=[],r=(0,n.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},function(e){r.get(e.uid)||l(e)});do i=!1,e.eachComponent("dataZoom",s);while(i);function s(e){var t;!r.get(e.uid)&&(t=!1,e.eachTargetAxis(function(e,i){var n=o.get(e);n&&n[i]&&(t=!0)}),t)&&(l(e),i=!0)}function l(e){r.set(e.uid,!0),a.push(e),function(e){e.eachTargetAxis(function(e,t){(o.get(e)||o.set(e,[]))[t]=!0})}(e)}return a}function u(e){var t=e.ecModel,i={infoList:[],infoMap:(0,n.createHashMap)()};return e.eachTargetAxis(function(e,n){var o=t.getComponent(s(e),n);if(o){var a=o.getCoordSysModel();if(a){var r=a.uid,l=i.infoMap.get(r);l||(l={model:a,axisModels:[]},i.infoList.push(l),i.infoMap.set(r,l)),l.axisModels.push(o)}}}),i}},48906:function(e,t,i){i.d(t,{N:()=>r});var n=i(36232),o=i(91739),a=i(7791);function r(e){(0,n.D)(o.N),(0,n.D)(a.N)}},88526:function(e,t,i){i.d(t,{Z:()=>f});var n=i(67975),o=i(46500),a=i(82517),r=i(12920),s=i(16035),l=i(14020),u=i(86571),c=n.each,h=a.dt,p=function(){function e(e,t,i,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=i}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,o.kc)(t)){var i=(0,o.jQ)(this._dimName),n=t.getReferringComponents(i,u.C6).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return n.clone(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,i=this._dataExtent,n=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];c(["start","end"],function(r,c){var h=e[r],p=e[r+"Value"];"percent"===o[c]?(null==h&&(h=s[c]),p=n.parse(a.NU(h,s,i))):(t=!0,p=null==p?i[c]:n.parse(p),h=a.NU(p,i,s)),u[c]=null==p||isNaN(p)?i[c]:p,l[c]=null==h||isNaN(h)?s[c]:h}),h(u),h(l);var p=this._minMaxSpan;function d(e,t,i,o,s){var l=s?"Span":"ValueSpan";(0,r.Z)(0,e,i,"all",p["min"+l],p["max"+l]);for(var u=0;u<2;u++)t[u]=a.NU(e[u],i,o,!0),s&&(t[u]=n.parse(t[u]))}return t?d(u,l,i,s,!1):d(l,u,s,i,!0),{valueWindow:u,percentWindow:l}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t,i,n,o,a,r=this.getTargetSeriesModels();this._dataExtent=(t=this,i=this._dimName,n=[1/0,-1/0],c(r,function(e){(0,s.AH)(n,e.getData(),i)}),o=t.getAxisModel(),[(a=(0,l.Qw)(o.axis.scale,o,n).calculate()).min,a.max]),this._updateMinMaxSpan();var u=this.calculateDataWindow(e.settledOption);this._valueWindow=u.valueWindow,this._percentWindow=u.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var i=this._dimName,o=this.getTargetSeriesModels(),a=e.get("filterMode"),r=this._valueWindow;"none"!==a&&c(o,function(e){var t=e.getData(),o=t.mapDimensionsAll(i);if(o.length){if("weakFilter"===a){var s=t.getStore(),l=n.map(o,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,i,n,a=0;a<o.length;a++){var u=s.get(l[a],e),c=!isNaN(u),h=u<r[0],p=u>r[1];if(c&&!h&&!p)return!0;c&&(n=!0),h&&(t=!0),p&&(i=!0)}return n&&t&&i})}else c(o,function(i){if("empty"===a)e.setData(t=t.map(i,function(e){var t;return(t=e)>=r[0]&&t<=r[1]?e:NaN}));else{var n={};n[i]=r,t.selectRange(n)}});c(o,function(e){t.setApproximateExtent(r,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;c(["min","max"],function(n){var o=t.get(n+"Span"),r=t.get(n+"ValueSpan");null!=r&&(r=this.getAxisModel().axis.scale.parse(r)),null!=r?o=a.NU(i[0]+r,i,[0,100],!0):null!=o&&(r=a.NU(o,[0,100],i,!0)-i[0]),e[n+"Span"]=o,e[n+"ValueSpan"]=r},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var n=a.M9(i,[0,500]);n=Math.min(n,20);var o=e.axis.scale.rawExtentInfo;0!==t[0]&&o.setDeterminedMinMax("min",+i[0].toFixed(n)),100!==t[1]&&o.setDeterminedMinMax("max",+i[1].toFixed(n)),o.freeze()}},e}();let d={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(n,a){var r=e.getComponent((0,o.jQ)(n),a);t(n,a,r,i)})})}t(function(e,t,i,n){i.__dzAxisProxy=null});var i=[];t(function(t,n,o,a){o.__dzAxisProxy||(o.__dzAxisProxy=new p(t,n,a,e),i.push(o.__dzAxisProxy))});var a=(0,n.createHashMap)();return(0,n.each)(i,function(e){(0,n.each)(e.getTargetSeriesModels(),function(e){a.set(e.uid,e)})}),a},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,i){e.getAxisProxy(t,i).reset(e)}),e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).filterData(e,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy();if(t){var i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}};var g=!1;function f(e){!g&&(g=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,d),function(e){e.registerAction("dataZoom",function(e,t){var i=(0,o.BL)(t,e);(0,n.each)(i,function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}},91739:function(e,t,i){i.d(t,{N:()=>M});var n=i(69988),o=i(84677),a=i(4587),r=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(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),s=i(82877),l=i(12920),u=i(37892),c=i(19774),h=i(86571),p=i(67975),d=i(46500),g=(0,h.Yf)();function f(e,t){if(t){e.removeKey(t.model.uid);var i=t.controller;i&&i.dispose()}}function m(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function y(e,t,i,n){return e.coordinateSystem.containPoint([i,n])}var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return(0,n.ZT)(t,e),t.prototype.render=function(t,i,n){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),function(e,t,i){g(e).coordSysRecordMap.each(function(e){var n=e.dataZoomInfoMap.get(t.uid);n&&(n.getRange=i)})}(n,t,{pan:(0,p.bind)(x.pan,this),zoom:(0,p.bind)(x.zoom,this),scrollMove:(0,p.bind)(x.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function(e,t){for(var i=g(e).coordSysRecordMap,n=i.keys(),o=0;o<n.length;o++){var a=n[o],r=i.get(a),s=r.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||f(i,r))}}})(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(s.Z),x={zoom:function(e,t,i,n){var o=this.range,a=o.slice(),r=e.axisModels[0];if(r){var s=b[t](null,[n.originX,n.originY],r,i,e),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/n.scale,0);a[0]=(a[0]-u)*c+u,a[1]=(a[1]-u)*c+u;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if((0,l.Z)(0,a,[0,100],0,h.minSpan,h.maxSpan),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}},pan:_(function(e,t,i,n,o,a){var r=b[n]([a.oldX,a.oldY],[a.newX,a.newY],t,o,i);return r.signal*(e[1]-e[0])*r.pixel/r.pixelLength}),scrollMove:_(function(e,t,i,n,o,a){return b[n]([0,0],[a.scrollDelta,a.scrollDelta],t,o,i).signal*(e[1]-e[0])*a.scrollDelta})};function _(e){return function(t,i,n,o){var a=this.range,r=a.slice(),s=t.axisModels[0];if(s){var u=e(r,s,t,i,n,o);if((0,l.Z)(u,r,[0,100],"all"),this.range=r,a[0]!==r[0]||a[1]!==r[1])return r}}}var b={grid:function(e,t,i,n,o){var a=i.axis,r={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(r.pixel=t[0]-e[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=a.inverse?1:-1):(r.pixel=t[1]-e[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=a.inverse?-1:1),r},polar:function(e,t,i,n,o){var a=i.axis,r={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===i.mainType?(r.pixel=t[0]-e[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=a.inverse?1:-1):(r.pixel=t[1]-e[1],r.pixelLength=u[1]-u[0],r.pixelStart=u[0],r.signal=a.inverse?-1:1),r},singleAxis:function(e,t,i,n,o){var a=i.axis,r=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=a.inverse?-1:1),s}},S=i(88526);function M(e){(0,S.Z)(e),e.registerComponentModel(r),e.registerComponentView(v),function(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=g(t),n=i.coordSysRecordMap||(i.coordSysRecordMap=(0,p.createHashMap)());n.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){var i=(0,d.rg)(e);(0,p.each)(i.infoList,function(i){var o,a,r,s=i.model.uid,l=n.get(s)||n.set(s,(r=(a={model:o=i.model,containsPoint:(0,p.curry)(y,o),dispatchAction:(0,p.curry)(m,t),dataZoomInfoMap:null,controller:null}).controller=new u.Z(t.getZr()),(0,p.each)(["pan","zoom","scrollMove"],function(e){r.on(e,function(t){var i=[];a.dataZoomInfoMap.each(function(n){if(t.isAvailableBehavior(n.model.option)){var o=(n.getRange||{})[e],r=o&&o(n.dzReferCoordSysInfo,a.model.mainType,a.controller,t);!n.model.get("disabled",!0)&&r&&i.push({dataZoomId:n.model.id,start:r[0],end:r[1]})}}),i.length&&a.dispatchAction(i)})}),a));(l.dataZoomInfoMap||(l.dataZoomInfoMap=(0,p.createHashMap)())).set(e.uid,{dzReferCoordSysInfo:i,model:e,getRange:null})})}),n.each(function(e){var t,i,o,a,r,s=e.controller,l=e.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(r=l.get(u))}if(!r){f(n,e);return}var h=(i="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,l.each(function(e){var n=e.model,r=!n.get("disabled",!0)&&(!n.get("zoomLock",!0)||"move");o[i+r]>o[i+t]&&(t=r),a=a&&n.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}});s.enable(h.controlType,h.opt),s.setPointerChecker(e.containsPoint),c.T9(e,"dispatchAction",r.model.get("throttle",!0),"fixRate")})})}(e)}},7791:function(e,t,i){i.d(t,{N:()=>k});var n=i(69988),o=i(84677),a=i(4587),r=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(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:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(o.Z),s=i(67975),l=i(9474),u=i(31969),c=i(37293),h=i(24484),p=i(61099),d=i(76150),g=i(29790),f=i(91145),m=i(19774),y=i(82877),v=i(82517),x=i(50651),_=i(12920),b=i(46500),S=i(98306),M=i(5965),w=i(33361),I=u.Z,A="horizontal",T="vertical",C=["line","bar","candlestick","scatter"],D={easing:"cubicOut",duration:100,delay:0},Z=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._displayables={},i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=(0,s.bind)(this._onBrush,this),this._onBrushEnd=(0,s.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,i,n,o){if(e.prototype.render.apply(this,arguments),m.T9(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){m.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 c.Z;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,i=e.get("brushSelect"),n=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===A?{right:o.width-n.x-n.width,top:o.height-30-7-7*!!i,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},r=x.tE(e.option);(0,s.each)(["right","top","width","height"],function(e){"ph"===r[e]&&(r[e]=a[e])});var l=x.ME(r,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===T&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),a=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==A||o?i===A&&o?{scaleY:r?1:-1,scaleX:-1}:i!==T||o?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1});var s=e.getBoundingRect([a]);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,i=this._displayables.sliderGroup,n=e.get("brushSelect");i.add(new I({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new I({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:(0,s.bind)(this._onClickPanel,this)}),a=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,i=this._shadowSize||[],n=e.series,o=n.getRawData(),a=n.getShadowDim&&n.getShadowDim(),r=a&&o.getDimensionInfo(a)?n.getShadowDim():e.otherDim;if(null!=r){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||r!==this._shadowDim||t[0]!==i[0]||t[1]!==i[1]){var u,d=o.getDataExtent(r),g=(d[1]-d[0])*.3;d=[d[0]-g,d[1]+g];var f=[0,t[1]],m=[0,t[0]],y=[[t[0],0],[0,0]],x=[],_=m[1]/(o.count()-1),b=0,S=Math.round(o.count()/t[0]);o.each([r],function(e,t){if(S>0&&t%S){b+=_;return}var i=null==e||isNaN(e)||""===e,n=i?0:(0,v.NU)(e,d,f,!0);i&&!u&&t?(y.push([y[y.length-1][0],0]),x.push([x[x.length-1][0],0])):!i&&u&&(y.push([b,0]),x.push([b,0])),y.push([b,n]),x.push([b,n]),b+=_,u=i}),s=this._shadowPolygonPts=y,l=this._shadowPolylinePts=x}this._shadowData=o,this._shadowDim=r,this._shadowSize=[t[0],t[1]];for(var M=this.dataZoomModel,w=0;w<3;w++){var I=function(e){var t=M.getModel(e?"selectedDataBackground":"dataBackground"),i=new c.Z,n=new h.Z({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new p.Z({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return i.add(n),i.add(o),i}(1===w);this._displayables.sliderGroup.add(I),this._displayables.dataShadowSegs.push(I)}}}},t.prototype._prepareDataShadowInfo=function(){var e,t=this.dataZoomModel,i=t.get("showDataShadow");if(!1!==i){var n=this.ecModel;return t.eachTargetAxis(function(o,a){var r=t.getAxisProxy(o,a).getTargetSeriesModels();(0,s.each)(r,function(t){if(!(e||!0!==i&&0>(0,s.indexOf)(C,t.get("type")))){var r,l=n.getComponent((0,b.jQ)(o),a).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[o],c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(r=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),e={thisAxis:l,series:t,thisDim:o,otherDim:u,otherAxisInverse:r}}},this)},this),e}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,i=t.handles=[null,null],n=t.handleLabels=[null,null],o=this._displayables.sliderGroup,a=this._size,r=this.dataZoomModel,l=this.api,c=r.get("borderRadius")||0,h=r.get("brushSelect"),p=t.filler=new I({silent:h,style:{fill:r.get("fillerColor")},textConfig:{position:"inside"}});o.add(p),o.add(new I({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,s.each)([0,1],function(t){var a=r.get("handleIcon");!M.Pw[a]&&0>a.indexOf("path://")&&0>a.indexOf("image://")&&(a="path://"+a);var l=(0,M.th)(a,-1,0,2,2,null,!0);l.attr({cursor:L(this._orient),draggable:!0,drift:(0,s.bind)(this._onDragMove,this,t),ondragend:(0,s.bind)(this._onDragEnd,this),onmouseover:(0,s.bind)(this._showDataInfo,this,!0),onmouseout:(0,s.bind)(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=r.get("handleSize");this._handleHeight=(0,v.GM)(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(r.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,S.vF)(l);var h=r.get("handleColor");null!=h&&(l.style.fill=h),o.add(i[t]=l);var p=r.getModel("textStyle");e.add(n[t]=new d.ZP({silent:!0,invisible:!0,style:(0,w.Lr)(p,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:p.getTextColor(),font:p.getFont()}),z2:10}))},this);var g=p;if(h){var f=(0,v.GM)(r.get("moveHandleSize"),a[1]),m=t.moveHandle=new u.Z({style:r.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),y=.8*f,x=t.moveHandleIcon=(0,M.th)(r.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);x.silent=!0,x.y=a[1]+f/2-.5,m.ensureState("emphasis").style=r.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _=Math.min(a[1]/2,Math.max(f,10));(g=t.moveZone=new u.Z({invisible:!0,shape:{y:a[1]-_,height:f+_}})).on("mouseover",function(){l.enterEmphasis(m)}).on("mouseout",function(){l.leaveEmphasis(m)}),o.add(m),o.add(x),o.add(g)}g.attr({draggable:!0,cursor:L(this._orient),drift:(0,s.bind)(this._onDragMove,this,"all"),ondragstart:(0,s.bind)(this._showDataInfo,this,!0),ondragend:(0,s.bind)(this._onDragEnd,this),onmouseover:(0,s.bind)(this._showDataInfo,this,!0),onmouseout:(0,s.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[(0,v.NU)(e[0],[0,100],t,!0),(0,v.NU)(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),a=i.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];(0,_.Z)(t,n,o,i.get("zoomLock")?"all":e,null!=a.minSpan?(0,v.NU)(a.minSpan,r,o,!0):null,null!=a.maxSpan?(0,v.NU)(a.maxSpan,r,o,!0):null);var s=this._range,l=this._range=(0,v.dt)([(0,v.NU)(n[0],o,r,!0),(0,v.NU)(n[1],o,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,i=this._handleEnds,n=(0,v.dt)(i.slice()),o=this._size;(0,s.each)([0,1],function(e){var n=t.handles[e],a=this._handleHeight;n.attr({scaleX:a/2,scaleY:a/2,x:i[e]+(e?-1:1),y:o[1]/2-a/2})},this),t.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var a={x:n[0],width:n[1]-n[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",a.x+a.width/2));for(var r=t.dataShadowSegs,l=[0,n[0],n[1],o[0]],c=0;c<r.length;c++){var h=r[c],p=h.getClipPath();p||(p=new u.Z,h.setClipPath(p)),p.setShape({x:l[c],y:0,width:l[c+1]-l[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,i=this._displayables,n=i.handleLabels,o=this._orient,a=["",""];if(t.get("showDetail")){var r=t.findRepresentativeAxisProxy();if(r){var s=r.getAxisModel().axis,l=this._range,u=e?r.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:r.getDataValueWindow();a=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=(0,v.dt)(this._handleEnds.slice());function h(e){var t=g.getTransform(i.handles[e].parent,this.group),r=g.transformDirection(0===e?"right":"left",t),s=this._handleWidth/2+5,l=g.applyTransform([c[e]+(0===e?-s:s),this._size[1]/2],t);n[e].setStyle({x:l[0],y:l[1],verticalAlign:o===A?"middle":r,align:o===A?r:"center",text:a[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var i=this.dataZoomModel,n=i.get("labelFormatter"),o=i.get("labelPrecision");(null==o||"auto"===o)&&(o=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return(0,s.isFunction)(n)?n(e,a):(0,s.isString)(n)?n.replace("{value}",a):a},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,i=t.handleLabels;i[0].attr("invisible",!e),i[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,i,n){this._dragging=!0,l.sT(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),a=g.applyTransform([t,i],o,!0),r=this._updateInterval(e,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),r&&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,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0)&&!(i[0]>t[0])&&!(i[1]<0)&&!(i[1]>t[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,a=this._updateInterval("all",i[0]-o);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,i=e.offsetY;this._brushStart=new f.Z(t,i),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 i=t.shape;if(!(+new Date-this._brushStartTime<200&&5>Math.abs(i.width))){var n=this._getViewExtent(),o=[0,100];this._range=(0,v.dt)([(0,v.NU)(i.x,n,o,!0),(0,v.NU)(i.x+i.width,n,o,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(l.sT(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new I({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var a=this._brushStart,r=this._displayables.sliderGroup,s=r.transformCoordToLocal(e,t),l=r.transformCoordToLocal(a.x,a.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),o.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?D: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 i=t[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var n=this.api.getWidth(),o=this.api.getHeight();e={x:.2*n,y:.2*o,width:.6*n,height:.6*o}}return e},t.type="dataZoom.slider",t}(y.Z);function L(e){return"vertical"===e?"ns-resize":"ew-resize"}var O=i(88526);function k(e){e.registerComponentModel(r),e.registerComponentView(Z),(0,O.Z)(e)}},10933:function(e,t,i){i.d(t,{Z:()=>$});var n=i(69988),o=i(67975),a=i(77654),r=i(37293),s=i(31969),l=i(29790),u=i(61099),c=i(24484),h=i(20619),p=i(82787),d=Math.min,g=Math.max,f=Math.pow,m="globalPan",y={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},v={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},x={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},_=0,b=function(e){function t(t){var i=e.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new r.Z,i._uid="brushController_"+_++,(0,o.each)(K,function(e,t){this._handlers[t]=(0,o.bind)(e,this)},i),i}return(0,n.ZT)(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||h.qn(t,m,this._uid),(0,o.each)(this._handlers,function(e,i){t.on(i,e)}),this._brushType=e.brushType,this._brushOption=(0,o.merge)((0,o.clone)(x),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;h.Ar(e,m,this._uid),(0,o.each)(this._handlers,function(t,i){e.off(i,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};(0,o.each)(e,function(e){t[e.panelId]=(0,o.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,o.map)(e,function(e){return(0,o.merge)((0,o.clone)(x),e,!0)});var t=this._covers,i=this._covers=[],n=this,a=this._creatingCover;return new p.Z(t,e,function(e,t){return r(e.__brushOption,t)},r).add(s).update(s).remove(function(e){t[e]!==a&&n.group.remove(t[e])}).execute(),this;function r(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function s(o,r){var s=e[o];if(null!=r&&t[r]===a)i[o]=t[r];else{var l=i[o]=null!=r?(t[r].__brushOption=s,t[r]):M(n,S(n,s));A(n,l)}}},t.prototype.unmount=function(){return this.enableBrush(!1),Z(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(a.Z);function S(e,t){var i=q[t.brushType].createCover(e,t);return i.__brushOption=t,I(i,t),e.group.add(i),i}function M(e,t){var i=T(t);return i.endCreating&&(i.endCreating(e,t),I(t,t.__brushOption)),t}function w(e,t){var i=t.__brushOption;T(t).updateCoverShape(e,t,i.range,i)}function I(e,t){var i=t.z;null==i&&(i=1e4),e.traverse(function(e){e.z=i,e.z2=i})}function A(e,t){T(t).updateCommon(e,t),w(e,t)}function T(e){return q[e.__brushOption.brushType]}function C(e,t,i){var n,a=e._panels;if(!a)return!0;var r=e._transform;return(0,o.each)(a,function(e){e.isTargetByCursor(t,i,r)&&(n=e)}),n}function D(e,t){var i=e._panels;if(!i)return!0;var n=t.__brushOption.panelId;return null==n||i[n]}function Z(e){var t=e._covers,i=t.length;return(0,o.each)(t,function(t){e.group.remove(t)},e),t.length=0,!!i}function L(e,t){var i=(0,o.map)(e._covers,function(e){var t=e.__brushOption,i=(0,o.clone)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:i}});e.trigger("brush",{areas:i,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function O(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function k(e,t,i,n){var a=new r.Z;return a.add(new s.Z({name:"main",style:R(i),silent:!0,draggable:!0,cursor:"move",drift:(0,o.curry)(G,e,t,a,["n","s","w","e"]),ondragend:(0,o.curry)(L,t,{isEnd:!0})})),(0,o.each)(n,function(i){a.add(new s.Z({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,o.curry)(G,e,t,a,i),ondragend:(0,o.curry)(L,t,{isEnd:!0})}))}),a}function P(e,t,i,n){var o=n.brushStyle.lineWidth||0,a=g(o,6),r=i[0][0],s=i[1][0],l=r-o/2,u=s-o/2,c=i[0][1],h=i[1][1],p=c-a+o/2,d=h-a+o/2,f=c-r,m=h-s,y=f+o,v=m+o;V(e,t,"main",r,s,f,m),n.transformable&&(V(e,t,"w",l,u,a,v),V(e,t,"e",p,u,a,v),V(e,t,"n",l,u,y,a),V(e,t,"s",l,d,y,a),V(e,t,"nw",l,u,a,a),V(e,t,"ne",p,u,a,a),V(e,t,"sw",l,d,a,a),V(e,t,"se",p,d,a,a))}function N(e,t){var i=t.__brushOption,n=i.transformable,a=t.childAt(0);a.useStyle(R(i)),a.attr({silent:!n,cursor:n?"move":"default"}),(0,o.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o,a,r,s=t.childOfName(i.join("")),l=1===i.length?E(e,i[0]):(("e"===(r=[E(o=e,(a=i)[0]),E(o,a[1])])[0]||"w"===r[0])&&r.reverse(),r.join(""));s&&s.attr({silent:!n,invisible:!n,cursor:n?v[l]+"-resize":null})})}function V(e,t,i,n,o,a,r){var s,l,u,c=t.childOfName(i);c&&c.setShape((l=d((s=W(e,t,[[n,o],[n+a,o+r]]))[0][0],s[1][0]),{x:l,y:u=d(s[0][1],s[1][1]),width:g(s[0][0],s[1][0])-l,height:g(s[0][1],s[1][1])-u}))}function R(e){return(0,o.defaults)({strokeNoScale:!0},e.brushStyle)}function z(e,t,i,n){var o=[d(e,i),d(t,n)],a=[g(e,i),g(t,n)];return[[o[0],a[0]],[o[1],a[1]]]}function E(e,t){return({left:"w",right:"e",top:"n",bottom:"s"})[l.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[t],l.getTransform(e.group))]}function G(e,t,i,n,a,r){var s=i.__brushOption,l=e.toRectRange(s.range),u=H(t,a,r);(0,o.each)(n,function(e){var t=y[e];l[t[0]][t[1]]+=u[t[0]]}),s.range=e.fromRectRange(z(l[0][0],l[1][0],l[0][1],l[1][1])),A(t,i),L(t,{isEnd:!1})}function B(e,t,i,n){var a=t.__brushOption.range,r=H(e,i,n);(0,o.each)(a,function(e){e[0]+=r[0],e[1]+=r[1]}),A(e,t),L(e,{isEnd:!1})}function H(e,t,i){var n=e.group,o=n.transformCoordToLocal(t,i),a=n.transformCoordToLocal(0,0);return[o[0]-a[0],o[1]-a[1]]}function W(e,t,i){var n=D(e,t);return n&&!0!==n?n.clipPath(i,e._transform):(0,o.clone)(i)}function F(e){var t=e.event;t.preventDefault&&t.preventDefault()}function X(e,t,i){return e.childOfName("main").contain(t,i)}function Y(e,t,i,n){var a,r=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(i.slice()),function(e){var t=e._track;if(!t.length)return!1;var i=t[t.length-1],n=t[0],o=i[0]-n[0],a=i[1]-n[1];return f(o*o+a*a,.5)>6}(e)||r){if(s&&!r){"single"===l.brushMode&&Z(e);var u=(0,o.clone)(l);u.brushType=U(u.brushType,s),u.panelId=!0===s?null:s.panelId,r=e._creatingCover=S(e,u),e._covers.push(r)}if(r){var c=q[U(e._brushType,s)];r.__brushOption.range=c.getCreatingRange(W(e,r,e._track)),n&&(M(e,r),c.updateCommon(e,r)),w(e,r),a={isEnd:n}}}else n&&"single"===l.brushMode&&l.removeOnClick&&C(e,t,i)&&Z(e)&&(a={isEnd:n,removeOnClick:!0});return a}function U(e,t){return"auto"===e?t.defaultBrushType:e}var K={mousedown:function(e){if(this._dragging)j(this,e);else if(!e.target||!e.target.draggable){F(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=C(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,i=e.offsetY,n=this.group.transformCoordToLocal(t,i);if(!function(e,t,i){if(!(!e._brushType||(n=e,o=t.offsetX,a=t.offsetY,r=n._zr,o<0||o>r.getWidth()||a<0||a>r.getHeight()))){var n,o,a,r,s=e._zr,l=e._covers,u=C(e,t,i);if(!e._dragging)for(var c=0;c<l.length;c++){var h=l[c].__brushOption;if(u&&(!0===u||h.panelId===u.panelId)&&q[h.brushType].contain(l[c],i[0],i[1]))return}u&&s.setCursorStyle("crosshair")}}(this,e,n),this._dragging){F(e);var o=Y(this,e,n,!1);o&&L(this,o)}},mouseup:function(e){j(this,e)}};function j(e,t){if(e._dragging){F(t);var i=t.offsetX,n=t.offsetY,o=e.group.transformCoordToLocal(i,n),a=Y(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&L(e,a)}}var q={lineX:Q(0),lineY:Q(1),rect:{createCover:function(e,t){function i(e){return e}return k({toRectRange:i,fromRectRange:i},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=O(e);return z(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,i,n){P(e,t,i,n)},updateCommon:N,contain:X},polygon:{createCover:function(e,t){var i=new r.Z;return i.add(new u.Z({name:"main",style:R(t),silent:!0})),i},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new c.Z({name:"main",draggable:!0,drift:(0,o.curry)(B,e,t),ondragend:(0,o.curry)(L,e,{isEnd:!0})}))},updateCoverShape:function(e,t,i,n){t.childAt(0).setShape({points:W(e,t,i)})},updateCommon:N,contain:X}};function Q(e){return{createCover:function(t,i){return k({toRectRange:function(t){var i=[t,[0,100]];return e&&i.reverse(),i},fromRectRange:function(t){return t[e]}},t,i,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var i=O(t);return[d(i[0][e],i[1][e]),g(i[0][e],i[1][e])]},updateCoverShape:function(t,i,n,o){var a,r=D(t,i);if(!0!==r&&r.getLinearBrushOtherExtent)a=r.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),P(t,i,l,o)},updateCommon:N,contain:X}}let $=b},89262:function(e,t,i){i.d(t,{Z:()=>x});var n=i(67975),o=i(29790),a=i(34921),r=i(86571),s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l=function(){function e(e,t,i){var o=this;this._targetInfoList=[];var a=c(t,e);(0,n.each)(h,function(e,t){(!i||!i.include||(0,n.indexOf)(i.include,t)>=0)&&e(a,o._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=g[e.brushType](0,i,t);e.__rangeOffset={offset:m[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,i){(0,n.each)(e,function(e){var o=this.findTargetInfo(e,t);o&&!0!==o&&(0,n.each)(o.coordSyses,function(n){var o=g[e.brushType](1,n,e.range,!0);i(e,o.values,n,t)})},this)},e.prototype.setInputRanges=function(e,t){(0,n.each)(e,function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n,o,a,r,s,l=g[e.brushType](0,i.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?m[e.brushType](l.values,u.offset,(n=l.xyMinMax,o=u.xyMinMax,a=v(n),r=v(o),isNaN((s=[a[0]/r[0],a[1]/r[1]])[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):l.values}},this)},e.prototype.makePanelOpts=function(e,t){return(0,n.map)(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:a.x0(n),isTargetByCursor:a.G(n,e,i.coordSysModel),getLinearBrushOtherExtent:a.VM(n)}})},e.prototype.controlSeries=function(e,t,i){var o=this.findTargetInfo(e,i);return!0===o||o&&(0,n.indexOf)(o.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=c(t,e),o=0;o<i.length;o++){var a=i[o],r=e.panelId;if(r){if(a.panelId===r)return a}else for(var s=0;s<p.length;s++)if(p[s](n,a))return a}return!0},e}();function u(e){return e[0]>e[1]&&e.reverse(),e}function c(e,t){return(0,r.pm)(e,t,{includeMainTypes:s})}var h={grid:function(e,t){var i=e.xAxisModels,o=e.yAxisModels,a=e.gridModels,r=(0,n.createHashMap)(),s={},l={};(i||o||a)&&((0,n.each)(i,function(e){var t=e.axis.grid.model;r.set(t.id,t),s[t.id]=!0}),(0,n.each)(o,function(e){var t=e.axis.grid.model;r.set(t.id,t),l[t.id]=!0}),(0,n.each)(a,function(e){r.set(e.id,e),s[e.id]=!0,l[e.id]=!0}),r.each(function(e){var a=e.coordinateSystem,r=[];(0,n.each)(a.getCartesians(),function(e,t){((0,n.indexOf)(i,e.getAxis("x").model)>=0||(0,n.indexOf)(o,e.getAxis("y").model)>=0)&&r.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:d.grid,xAxisDeclared:s[e.id],yAxisDeclared:l[e.id]})}))},geo:function(e,t){(0,n.each)(e.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:d.geo})})}},p=[function(e,t){var i=e.xAxisModel,n=e.yAxisModel,o=e.gridModel;return!o&&i&&(o=i.axis.grid.model),!o&&n&&(o=n.axis.grid.model),o&&o===t.gridModel},function(e,t){var i=e.geoModel;return i&&i===t.geoModel}],d={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(o.getTransform(e)),t}},g={lineX:(0,n.curry)(f,0),lineY:(0,n.curry)(f,1),rect:function(e,t,i,n){var o=e?t.pointToData([i[0][0],i[1][0]],n):t.dataToPoint([i[0][0],i[1][0]],n),a=e?t.pointToData([i[0][1],i[1][1]],n):t.dataToPoint([i[0][1],i[1][1]],n),r=[u([o[0],a[0]]),u([o[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(e,t,i,o){var a=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,n.map)(i,function(i){var n=e?t.pointToData(i,o):t.dataToPoint(i,o);return a[0][0]=Math.min(a[0][0],n[0]),a[1][0]=Math.min(a[1][0],n[1]),a[0][1]=Math.max(a[0][1],n[0]),a[1][1]=Math.max(a[1][1],n[1]),n}),xyMinMax:a}}};function f(e,t,i,o){var a=i.getAxis(["x","y"][e]),r=u((0,n.map)([0,1],function(e){return t?a.coordToData(a.toLocalCoord(o[e]),!0):a.toGlobalCoord(a.dataToCoord(o[e]))})),s=[];return s[e]=r,s[1-e]=[NaN,NaN],{values:r,xyMinMax:s}}var m={lineX:(0,n.curry)(y,0),lineY:(0,n.curry)(y,1),rect:function(e,t,i){return[[e[0][0]-i[0]*t[0][0],e[0][1]-i[0]*t[0][1]],[e[1][0]-i[1]*t[1][0],e[1][1]-i[1]*t[1][1]]]},polygon:function(e,t,i){return(0,n.map)(e,function(e,n){return[e[0]-i[0]*t[n][0],e[1]-i[1]*t[n][1]]})}};function y(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function v(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}let x=l},37892:function(e,t,i){i.d(t,{Z:()=>h});var n=i(69988),o=i(77654),a=i(9474),r=i(20619),s=i(67975);function l(e,t,i,n,o){e.pointerChecker&&e.pointerChecker(n,o.originX,o.originY)&&(a.sT(n.event),u(e,t,i,n,o))}function u(e,t,i,n,o){o.isAvailableBehavior=(0,s.bind)(c,null,i,n),e.trigger(t,o)}function c(e,t,i){var n=i[e];return!e||n&&(!(0,s.isString)(n)||t.event[n+"Key"])}let h=function(e){function t(t){var i=e.call(this)||this;i._zr=t;var n=(0,s.bind)(i._mousedownHandler,i),o=(0,s.bind)(i._mousemoveHandler,i),a=(0,s.bind)(i._mouseupHandler,i),r=(0,s.bind)(i._mousewheelHandler,i),l=(0,s.bind)(i._pinchHandler,i);return i.enable=function(e,i){this.disable(),this._opt=(0,s.defaults)((0,s.clone)(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),(!0===e||"move"===e||"pan"===e)&&(t.on("mousedown",n),t.on("mousemove",o),t.on("mouseup",a)),(!0===e||"scale"===e||"zoom"===e)&&(t.on("mousewheel",r),t.on("pinch",l))},i.disable=function(){t.off("mousedown",n),t.off("mousemove",o),t.off("mouseup",a),t.off("mousewheel",r),t.off("pinch",l)},i}return(0,n.ZT)(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(!a.x1(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var i=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!c("moveOnMouseMove",e,this._opt)||"pinch"===e.gestureEvent||r.Tf(this._zr,"globalPan"))){var t=e.offsetX,i=e.offsetY,n=this._x,o=this._y;this._x=t,this._y=i,this._opt.preventDefaultMouseMove&&a.sT(e.event),u(this,"pan","moveOnMouseMove",e,{dx:t-n,dy:i-o,oldX:n,oldY:o,newX:t,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){a.x1(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=c("zoomOnMouseWheel",e,this._opt),i=c("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,o=Math.abs(n),a=e.offsetX,r=e.offsetY;if(0!==n&&(t||i)){if(t){var s=o>3?1.4:o>1?1.2:1.1;l(this,"zoom","zoomOnMouseWheel",e,{scale:n>0?s:1/s,originX:a,originY:r,isAvailableBehavior:null})}if(i){var u=Math.abs(n);l(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(n>0?1:-1)*(u>3?.4:u>1?.15:.05),originX:a,originY:r,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!r.Tf(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;l(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(o.Z)},34921:function(e,t,i){i.d(t,{G:()=>l,VM:()=>s,x0:()=>r});var n=i(9495),o=i(70226),a=i(29790);function r(e){return e=u(e),function(t){return a.clipPointsByRect(t,e)}}function s(e,t){return e=u(e),function(i){var n=null!=t?t:i,o=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(o||0)]}}function l(e,t,i){var n=u(e);return function(e,a){return n.contain(a[0],a[1])&&!(0,o.l)(e,t,i)}}function u(e){return n.Z.create(e)}},70226:function(e,t,i){i.d(t,{l:()=>o});var n={axisPointer:1,tooltip:1,brush:1};function o(e,t,i){var o=t.getComponentByElement(e.topTarget),a=o&&o.coordinateSystem;return o&&o!==i&&!n.hasOwnProperty(o.mainType)&&a&&a.model!==i}},20619:function(e,t,i){i.d(t,{Ar:()=>s,Tf:()=>l,qn:()=>r});var n=i(59161),o=i(67975),a="\0_ec_interaction_mutex";function r(e,t,i){u(e)[t]=i}function s(e,t,i){var n=u(e);n[t]===i&&(n[t]=null)}function l(e,t){return!!u(e)[t]}function u(e){return e[a]||(e[a]={})}n.zl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},o.noop)},60630:function(e,t,i){i.d(t,{b:()=>r,l:()=>s});var n=i(50651),o=i(40814),a=i(31969);function r(e,t,i){var o=t.getBoxLayoutParams(),a=t.get("padding"),r={width:i.getWidth(),height:i.getHeight()},s=(0,n.ME)(o,r,a);(0,n.BZ)(t.get("orient"),e,t.get("itemGap"),s.width,s.height),(0,n.p$)(e,o,r,a)}function s(e,t){var i=o.MY(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new a.Z({shape:{x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1})}},12920:function(e,t,i){function n(e,t,i,n,r,s){e=e||0;var l,u=i[1]-i[0];if(null!=r&&(r=a(r,[0,u])),null!=s&&(s=Math.max(s,null!=r?r:0)),"all"===n){var c=Math.abs(t[1]-t[0]);c=a(c,[0,u]),r=s=a(c,[r,s]),n=0}t[0]=a(t[0],i),t[1]=a(t[1],i);var h=o(t,n);t[n]+=e;var p=r||0,d=i.slice();return h.sign<0?d[0]+=p:d[1]-=p,t[n]=a(t[n],d),l=o(t,n),null!=r&&(l.sign!==h.sign||l.span<r)&&(t[1-n]=t[n]+h.sign*r),l=o(t,n),null!=s&&l.span>s&&(t[1-n]=t[n]+l.sign*s),t}function o(e,t){var i=e[t]-e[1-t];return{span:Math.abs(i),sign:i>0?-1:i<0?1:t?-1:1}}function a(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}i.d(t,{Z:()=>n})},27806:function(e,t,i){i.d(t,{N:()=>H});var n=i(36232),o=i(69988),a=i(67975),r=i(16505),s=i(86571),l=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.layoutMode={type:"box",ignoreSize:!0},i}return(0,o.ZT)(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,i){e.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,i=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),a.isArray(t)&&a.each(t,function(e,n){var o;a.isString(e)&&(e={type:e}),t[n]=a.merge(e,"all"===(o=e.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===o?{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),t=!0;break}}t||this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],i=[];e.eachRawSeries(function(n){var o,a=n.name;if(i.push(a),n.legendVisualProvider){var r=n.legendVisualProvider.getAllNames();e.isSeriesFiltered(n)||(i=i.concat(r)),r.length?t=t.concat(r):o=!0}else o=!0;o&&(0,s.yu)(n)&&t.push(n.name)}),this._availableNames=i;var n=this.get("data")||t,o=a.createHashMap(),l=a.map(n,function(e){return((a.isString(e)||a.isNumber(e))&&(e={name:e}),o.get(e.name))?null:(o.set(e.name,!0),new r.Z(e,this,this.ecModel))},this);this._data=a.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 i=this._data;a.each(i,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;a.each(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;a.each(e,function(e){var i=e.get("name",!0);t.hasOwnProperty(i)||(t[i]=!0),t[i]=!t[i]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&a.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}(i(45352).Z),u=i(54411),c=i(37293),h=i(76150),p=i(31969),d=i(29790),g=i(98306),f=i(33361),m=i(60630),y=i(50651),v=i(64292),x=i(5965),_=i(96151),b=i(10428),S=a.curry,M=a.each,w=c.Z,I=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.newlineDisabled=!1,i}return(0,o.ZT)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new w),this.group.add(this._selectorGroup=new w),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),r=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===r?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||"auto"===l)&&(l="horizontal"===r?"end":"start"),this.renderInner(o,e,t,i,s,r,l);var u=e.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),p=y.ME(u,c,h),d=this.layoutInner(e,o,p,n,s,l),g=y.ME(a.defaults({width:d.width,height:d.height},u),c,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,m.l)(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,i,n,o,r,s){var l=this.getContentGroup(),c=a.createHashMap(),h=t.get("selectedMode"),p=[];i.eachRawSeries(function(e){e.get("legendHoverLink")||p.push(e.id)}),M(t.getData(),function(o,r){var s=o.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var d=new w;d.newline=!0,l.add(d);return}var g=i.getSeriesByName(s)[0];if(!c.get(s)){if(g){var f=g.getData(),m=f.getVisual("legendLineStyle")||{},y=f.getVisual("legendIcon"),v=f.getVisual("style"),x=this._createItem(g,s,r,o,t,e,m,v,y,h,n);x.on("click",S(A,s,null,n,p)).on("mouseover",S(C,g.name,null,n,p)).on("mouseout",S(D,g.name,null,n,p)),i.ssr&&x.eachChild(function(e){var t=(0,b.A)(e);t.seriesIndex=g.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),c.set(s,!0)}else i.eachRawSeries(function(l){if(!c.get(s)&&l.legendVisualProvider){var d=l.legendVisualProvider;if(d.containName(s)){var g=d.indexOfName(s),f=d.getItemVisual(g,"style"),m=d.getItemVisual(g,"legendIcon"),y=(0,u.parse)(f.fill);y&&0===y[3]&&(y[3]=.2,f=a.extend(a.extend({},f),{fill:(0,u.stringify)(y,"rgba")}));var v=this._createItem(l,s,r,o,t,e,{},f,m,h,n);v.on("click",S(A,null,s,n,p)).on("mouseover",S(C,null,s,n,p)).on("mouseout",S(D,null,s,n,p)),i.ssr&&v.eachChild(function(e){var t=(0,b.A)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),c.set(s,!0)}}},this)}},this),o&&this._createSelector(o,t,n,r,s)},t.prototype._createSelector=function(e,t,i,n,o){var a=this.getSelectorGroup();M(e,function(e){var n=e.type,o=new h.ZP({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});a.add(o);var r=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);(0,f.ni)(o,{normal:r,emphasis:s},{defaultText:e.title}),(0,g.vF)(o)})},t.prototype._createItem=function(e,t,i,n,o,r,s,l,u,c,m){var y=e.visualDrawType,v=o.get("itemWidth"),b=o.get("itemHeight"),S=o.isSelected(t),I=n.get("symbolRotate"),A=n.get("symbolKeepAspect"),T=n.get("icon"),C=function(e,t,i,n,o,a,r){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=2*(t.lineWidth>0)),M(e,function(i,n){"inherit"===e[n]&&(e[n]=t[n])})}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,_.I)(h,r):n.decal,"inherit"===u.fill&&(u.fill=n[o]),"inherit"===u.stroke&&(u.stroke=n[c]),"inherit"===u.opacity&&(u.opacity=("fill"===o?n:i).opacity),s(u,n);var p=t.getModel("lineStyle"),d=p.getLineStyle();if(s(d,i),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===d.stroke&&(d.stroke=n.fill),!a){var g=t.get("inactiveBorderWidth"),f=u[c];u.lineWidth="auto"===g?n.lineWidth>0&&f?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(u=T||u||"roundRect",n,s,l,y,S,m),D=new w,Z=n.getModel("textStyle");if(a.isFunction(e.getLegendIcon)&&(!T||"inherit"===T))D.add(e.getLegendIcon({itemWidth:v,itemHeight:b,icon:u,iconRotate:I,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:A}));else{var L,O,k,P="inherit"===T&&e.getData().getVisual("symbol")?"inherit"===I?e.getData().getVisual("symbolRotate"):I:0;D.add((O=(L={itemWidth:v,itemHeight:b,icon:u,iconRotate:P,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:A}).icon||"roundRect",(k=(0,x.th)(O,0,0,L.itemWidth,L.itemHeight,L.itemStyle.fill,L.symbolKeepAspect)).setStyle(L.itemStyle),k.rotation=(L.iconRotate||0)*Math.PI/180,k.setOrigin([L.itemWidth/2,L.itemHeight/2]),O.indexOf("empty")>-1&&(k.style.stroke=k.style.fill,k.style.fill="#fff",k.style.lineWidth=2),k))}var N=o.get("formatter"),V=t;a.isString(N)&&N?V=N.replace("{name}",null!=t?t:""):a.isFunction(N)&&(V=N(t));var R=S?Z.getTextColor():n.get("inactiveColor");D.add(new h.ZP({style:(0,f.Lr)(Z,{text:V,x:"left"===r?v+5:-5,y:b/2,fill:R,align:r,verticalAlign:"middle"},{inheritColor:R})}));var z=new p.Z({shape:D.getBoundingRect(),style:{fill:"transparent"}}),E=n.getModel("tooltip");return E.get("show")&&d.setTooltipConfig({el:z,componentModel:o,itemName:t,itemTooltipOption:E.option}),D.add(z),D.eachChild(function(e){e.silent=!0}),z.silent=!c,this.getContentGroup().add(D),(0,g.vF)(D),D.__legendDataIndex=i,D},t.prototype.layoutInner=function(e,t,i,n,o,a){var r=this.getContentGroup(),s=this.getSelectorGroup();y.BZ(e.get("orient"),r,e.get("itemGap"),i.width,i.height);var l=r.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),r.markRedraw(),!o)return r.x=u[0],r.y=u[1],this.group.getBoundingRect();y.BZ("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=0===d?"width":"height",f=0===d?"height":"width",m=0===d?"y":"x";"end"===a?h[d]+=l[g]+p:u[d]+=c[g]+p,h[1-d]+=l[f]/2-c[f]/2,s.x=h[0],s.y=h[1],r.x=u[0],r.y=u[1];var v={x:0,y:0};return v[g]=l[g]+p+c[g],v[f]=Math.max(l[f],c[f]),v[m]=Math.min(0,c[m]+h[1-d]),v},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(v.Z);function A(e,t,i,n){D(e,t,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),C(e,t,i,n)}function T(e){for(var t,i=e.getZr().storage.getDisplayList(),n=0,o=i.length;n<o&&!(t=i[n].states.emphasis);)n++;return t&&t.hoverLayer}function C(e,t,i,n){T(i)||i.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function D(e,t,i,n){T(i)||i.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function Z(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function L(e,t,i){var n,o={},r="toggleSelected"===e;return i.eachComponent("legend",function(i){r&&null!=n?i[n?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?i[e]():(i[e](t.name),n=i.isSelected(t.name));var s=i.getData();(0,a.each)(s,function(e){var t=e.get("name");if("\n"!==t&&""!==t){var n=i.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&n:o[t]=n}})}),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}function O(e){e.registerComponentModel(l),e.registerComponentView(I),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Z),e.registerSubTypeDefaulter("legend",function(){return"plain"}),e.registerAction("legendToggleSelect","legendselectchanged",(0,a.curry)(L,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,a.curry)(L,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,a.curry)(L,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,a.curry)(L,"select")),e.registerAction("legendUnSelect","legendunselected",(0,a.curry)(L,"unSelect"))}var k=i(4587),P=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,i,n){var o=(0,y.tE)(t);e.prototype.init.call(this,t,i,n),N(this,t,o)},t.prototype.mergeOption=function(t,i){e.prototype.mergeOption.call(this,t,i),N(this,this.option,t)},t.type="legend.scroll",t.defaultOption=(0,k.ZL)(l.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}(l);function N(e,t,i){var n=e.getOrient(),o=[1,1];o[n.index]=0,(0,y.dt)(t,i,{type:"box",ignoreSize:!!o})}var V=i(99858),R=c.Z,z=["width","height"],E=["x","y"],G=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.newlineDisabled=!0,i._currentIndex=0,i}return(0,o.ZT)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new R),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new R)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,i,n,o,r,s,l){var u=this;e.prototype.renderInner.call(this,t,i,n,o,r,s,l);var c=this._controllerGroup,p=i.get("pageIconSize",!0),g=a.isArray(p)?p:[p,p];m("pagePrev",0);var f=i.getModel("pageTextStyle");function m(e,t){var n=d.createIcon(i.get("pageIcons",!0)[i.getOrient().name][t],{onclick:a.bind(u._pageGo,u,e+"DataIndex",i,o)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});n.name=e,c.add(n)}c.add(new h.ZP({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),m("pageNext",1)},t.prototype.layoutInner=function(e,t,i,n,o,r){var s=this.getSelectorGroup(),l=e.getOrient().index,u=z[l],c=E[l],h=z[1-l],p=E[1-l];o&&y.BZ("horizontal",s,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=s.getBoundingRect(),f=[-g.x,-g.y],m=a.clone(i);o&&(m[u]=i[u]-g[u]-d);var v=this._layoutContentAndController(e,n,m,l,u,h,p,c);if(o){if("end"===r)f[l]+=v[u]+d;else{var x=g[u]+d;f[l]-=x,v[c]-=x}v[u]+=g[u]+d,f[1-l]+=v[p]+v[h]/2-g[h]/2,v[h]=Math.max(v[h],g[h]),v[p]=Math.min(v[p],g[p]+f[1-l]),s.x=f[0],s.y=f[1],s.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,i,n,o,r,s,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;y.BZ(e.get("orient"),u,e.get("itemGap"),n?i.width:null,n?null:i.height),y.BZ("horizontal",h,e.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),g=h.getBoundingRect(),f=this._showController=d[o]>i[o],m=[-d.x,-d.y];t||(m[n]=u[l]);var v=[0,0],x=[-g.x,-g.y],_=a.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?x[n]+=i[o]-g[o]:v[n]+=g[o]+_),x[1-n]+=d[r]/2-g[r]/2,u.setPosition(m),c.setPosition(v),h.setPosition(x);var b={x:0,y:0};if(b[o]=f?i[o]:d[o],b[r]=Math.max(d[r],g[r]),b[s]=Math.min(0,g[s]+x[1-n]),c.__rectSize=i[o],f){var S={x:0,y:0};S[o]=Math.max(i[o]-g[o]-_,0),S[r]=b[r],c.setClipPath(new p.Z({shape:S})),c.__rectSize=S[o]}else h.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(e);return null!=M.pageIndex&&V.D(u,{x:M.contentPosition[0],y:M.contentPosition[1]},f?e:null),this._updatePageInfoView(e,M),b},t.prototype._pageGo=function(e,t,i){var n=this._getPageInfo(t)[e];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var i=this._controllerGroup;a.each(["pagePrev","pageNext"],function(n){var o=null!=t[n+"DataIndex"],a=i.childOfName(n);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")});var n=i.childOfName("pageText"),o=e.get("pageFormatter"),r=t.pageIndex,s=null!=r?r+1:0,l=t.pageCount;n&&o&&n.setStyle("text",a.isString(o)?o.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):o({current:s,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,a=z[o],r=E[o],s=this._findTargetItemIndex(t),l=i.children(),u=l[s],c=l.length,h=+!!c,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=v(u);p.contentPosition[o]=-d.s;for(var g=s+1,f=d,m=d,y=null;g<=c;++g)(!(y=v(l[g]))&&m.e>f.s+n||y&&!x(y,f.s))&&(f=m.i>f.i?m:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),m=y;for(var g=s-1,f=d,m=d,y=null;g>=-1;--g)(!(y=v(l[g]))||!x(m,y.s))&&f.i<m.i&&(m=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y;return p;function v(e){if(e){var t=e.getBoundingRect(),i=t[r]+e[r];return{s:i,e:i+t[a],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+n}},t.prototype._findTargetItemIndex=function(e){var t,i;return this._showController?(this.getContentGroup().eachChild(function(n,o){var a=n.__legendDataIndex;null==i&&null!=a&&(i=o),a===e&&(t=o)}),null!=t?t:i):0},t.type="legend.scroll",t}(I);function B(e){(0,n.D)(O),e.registerComponentModel(P),e.registerComponentView(G),function(e){e.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;null!=i&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(i)})})}(e)}function H(e){(0,n.D)(O),(0,n.D)(B)}},13737:function(e,t,i){i.d(t,{Z:()=>d});var n=i(69988),o=i(67975),a=i(4647),r=i(28780),s=i(45352),l=i(86571),u=i(31481);function c(e){(0,l.Cc)(e,"label",["show"])}var h=(0,l.Yf)(),p=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.createdBySelf=!1,i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(a.Z.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,i,n){var a=this.mainType;i||t.eachSeries(function(e){var i=e.get(this.mainType,!0),r=h(e)[a];if(!i||!i.data){h(e)[a]=null;return}r?r._mergeOption(i,t,!0):(n&&c(i),o.each(i.data,function(e){e instanceof Array?(c(e[0]),c(e[1])):c(e)}),r=this.createMarkerModelFromSeries(i,this,t),o.extend(r,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),r.__hostSeries=e),h(e)[a]=r},this)},t.prototype.formatTooltip=function(e,t,i){var n=this.getData(),o=this.getRawValue(e),a=n.getName(e);return(0,u.TX)("section",{header:this.name,blocks:[(0,u.TX)("nameValue",{name:a,value:o,noName:!a,noValue:null==o})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return h(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(s.Z);o.mixin(p,r.X.prototype);let d=p},87309:function(e,t,i){i.d(t,{Z:()=>c});var n=i(69988),o=i(64292),a=i(67975),r=i(13737),s=i(86571),l=i(98306),u=(0,s.Yf)();let c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.init=function(){this.markerGroupMap=(0,a.createHashMap)()},t.prototype.render=function(e,t,i){var n=this,o=this.markerGroupMap;o.each(function(e){u(e).keep=!1}),t.eachSeries(function(e){var o=r.Z.getMarkerModelFromSeries(e,n.type);o&&n.renderSeries(e,o,t,i)}),o.each(function(e){u(e).keep||n.group.remove(e.group)})},t.prototype.markKeep=function(e){u(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var i=this;(0,a.each)(e,function(e){var n=r.Z.getMarkerModelFromSeries(e,i.type);n&&n.getData().eachItemGraphicEl(function(e){e&&(t?(0,l.SX)(e):(0,l.VP)(e))})})},t.type="marker",t}(o.Z)},25936:function(e,t,i){i.d(t,{Z:()=>o});var n=i(67975);function o(e,t){if(!e)return!1;for(var i=(0,n.isArray)(e)?e:[e],o=0;o<i.length;o++)if(i[o]&&i[o][t])return!0;return!1}},98857:function(e,t,i){i.d(t,{N:()=>L});var n=i(25936),o=i(69988),a=i(13737),r=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(a.Z),s=i(54411),l=i(83208),u=i(82517),c=i(37293),h=i(24484),p=i(99858),d=i(98306),g=i(14285),f=i(87309),m=i(67975),y=i(82667),v=i(86571),x=i(43928),_=i(33361),b=i(10428),S=i(54503),M=(0,v.Yf)(),w=function(e,t,i,n){var o=n[0],a=n[1];if(o&&a){var r=g.Z3(e,o),s=g.Z3(e,a),l=r.coord,u=s.coord;l[0]=(0,m.retrieve)(l[0],-1/0),l[1]=(0,m.retrieve)(l[1],-1/0),u[0]=(0,m.retrieve)(u[0],1/0),u[1]=(0,m.retrieve)(u[1],1/0);var c=(0,m.mergeAll)([{},r,s]);return c.coord=[r.coord,s.coord],c.x0=r.x,c.y0=r.y,c.x1=s.x,c.y1=s.y,c}};function I(e){return!isNaN(e)&&!isFinite(e)}function A(e,t,i,n){var o=1-e;return I(t[o])&&I(i[o])}function T(e,t){var i=t.coord[0],n=t.coord[1],o={coord:i,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return(0,y.H)(e,"cartesian2d")?!!(i&&n&&(A(1,i,n,e)||A(0,i,n,e)))||g.i6(e,o,a):g.mQ(e,o)||g.mQ(e,a)}function C(e,t,i,n,o){var a,r=n.coordinateSystem,s=e.getItemModel(t),l=u.GM(s.get(i[0]),o.getWidth()),c=u.GM(s.get(i[1]),o.getHeight());if(isNaN(l)||isNaN(c)){if(n.getMarkerPosition){var h=e.getValues(["x0","y0"],t),p=e.getValues(["x1","y1"],t),d=r.clampData(h),g=r.clampData(p),f=[];"x0"===i[0]?f[0]=d[0]>g[0]?p[0]:h[0]:f[0]=d[0]>g[0]?h[0]:p[0],"y0"===i[1]?f[1]=d[1]>g[1]?p[1]:h[1]:f[1]=d[1]>g[1]?h[1]:p[1],a=n.getMarkerPosition(f,i,!0)}else{var m=e.get(i[0],t),v=e.get(i[1],t),x=[m,v];r.clampData&&r.clampData(x,x),a=r.dataToPoint(x,!0)}if((0,y.H)(r,"cartesian2d")){var _=r.getAxis("x"),b=r.getAxis("y"),m=e.get(i[0],t),v=e.get(i[1],t);I(m)?a[0]=_.toGlobalCoord(_.getExtent()[+("x0"!==i[0])]):I(v)&&(a[1]=b.toGlobalCoord(b.getExtent()[+("y0"!==i[1])]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];return a}var D=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Z=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.updateTransform=function(e,t,i){t.eachSeries(function(e){var t=a.Z.getMarkerModelFromSeries(e,"markArea");if(t){var n=t.getData();n.each(function(t){var o=(0,m.map)(D,function(o){return C(n,t,o,e,i)});n.setItemLayout(t,o),n.getItemGraphicEl(t).setShape("points",o)})}},this)},t.prototype.renderSeries=function(e,t,i,n){var o=e.coordinateSystem,a=e.id,r=e.getData(),g=this.markerGroupMap,f=g.get(a)||g.set(a,{group:new c.Z});this.group.add(f.group),this.markKeep(f);var y=function(e,t,i){if(e){var n,o,a=(0,m.map)(e&&e.dimensions,function(e){var i=t.getData(),n=i.getDimensionInfo(i.mapDimension(e))||{};return(0,m.extend)((0,m.extend)({},n),{name:e,ordinalMeta:null})});o=(0,m.map)(["x0","y0","x1","y1"],function(e,t){return{name:e,type:a[t%2].type}}),n=new l.Z(o,i)}else o=[{name:"value",type:"float"}],n=new l.Z(o,i);var r=(0,m.map)(i.get("data"),(0,m.curry)(w,t,e,i));e&&(r=(0,m.filter)(r,(0,m.curry)(T,e)));var s=e?function(e,t,i,n){var a=e.coord[Math.floor(n/2)][n%2];return(0,S.yQ)(a,o[n])}:function(e,t,i,n){return(0,S.yQ)(e.value,o[n])};return n.initData(r,null,s),n.hasItemOption=!0,n}(o,e,t);t.setData(y),y.each(function(t){var i=(0,m.map)(D,function(i){return C(y,t,i,e,n)}),a=o.getAxis("x").scale,l=o.getAxis("y").scale,c=a.getExtent(),h=l.getExtent(),p=[a.parse(y.get("x0",t)),a.parse(y.get("x1",t))],d=[l.parse(y.get("y0",t)),l.parse(y.get("y1",t))];u.dt(p),u.dt(d);var g=!(c[0]>p[1]||c[1]<p[0]||h[0]>d[1]||h[1]<d[0]);y.setItemLayout(t,{points:i,allClipped:!g});var f=y.getItemModel(t).getModel("itemStyle").getItemStyle(),v=(0,x.UL)(r,"color");!f.fill&&(f.fill=v,(0,m.isString)(f.fill)&&(f.fill=s.modifyAlpha(f.fill,.4))),f.stroke||(f.stroke=v),y.setItemVisual(t,"style",f)}),y.diff(M(f).data).add(function(e){var t=y.getItemLayout(e);if(!t.allClipped){var i=new h.Z({shape:{points:t.points}});y.setItemGraphicEl(e,i),f.group.add(i)}}).update(function(e,i){var n=M(f).data.getItemGraphicEl(i),o=y.getItemLayout(e);o.allClipped?n&&f.group.remove(n):(n?p.D(n,{shape:{points:o.points}},t,e):n=new h.Z({shape:{points:o.points}}),y.setItemGraphicEl(e,n),f.group.add(n))}).remove(function(e){var t=M(f).data.getItemGraphicEl(e);f.group.remove(t)}).execute(),y.eachItemGraphicEl(function(e,i){var n=y.getItemModel(i),o=y.getItemVisual(i,"style");e.useStyle(y.getItemVisual(i,"style")),(0,_.ni)(e,(0,_.k3)(n),{labelFetcher:t,labelDataIndex:i,defaultText:y.getName(i)||"",inheritColor:(0,m.isString)(o.fill)?s.modifyAlpha(o.fill,1):"#000"}),(0,d.WO)(e,n),(0,d.k5)(e,null,null,n.get(["emphasis","disabled"])),(0,b.A)(e).dataModel=t}),M(f).data=y,f.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(f.Z);function L(e){e.registerComponentModel(r),e.registerComponentView(Z),e.registerPreprocessor(function(e){(0,n.Z)(e.series,"markArea")&&(e.markArea=e.markArea||{})})}},219:function(e,t,i){i.d(t,{N:()=>I});var n=i(25936),o=i(69988),a=i(13737),r=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(a.Z),s=i(83208),l=i(82517),u=i(14285),c=i(9460),h=i(87309),p=i(97384),d=i(82667),g=i(10428),f=i(67975),m=i(86571),y=i(43928),v=(0,m.Yf)(),x=function(e,t,i,n){var o,a=e.getData();if((0,f.isArray)(n))o=n;else{var r=n.type;if("min"===r||"max"===r||"average"===r||"median"===r||null!=n.xAxis||null!=n.yAxis){var s=void 0,l=void 0;if(null!=n.yAxis||null!=n.xAxis)s=t.getAxis(null!=n.yAxis?"y":"x"),l=(0,f.retrieve)(n.yAxis,n.xAxis);else{var c=u.r(n,a,t,e);s=c.valueAxis;var h=(0,p.IR)(a,c.valueDataDim);l=u.Nn(a,h,r)}var d=+("x"!==s.dim),g=1-d,m=(0,f.clone)(n),y={coord:[]};m.type=null,m.coord=[],m.coord[g]=-1/0,y.coord[g]=1/0;var v=i.get("precision");v>=0&&(0,f.isNumber)(l)&&(l=+l.toFixed(Math.min(v,20))),m.coord[d]=y.coord[d]=l,o=[m,y,{type:r,valueIndex:n.valueIndex,value:l}]}else o=[]}var x=[u.Z3(e,o[0]),u.Z3(e,o[1]),(0,f.extend)({},o[2])];return x[2].type=x[2].type||null,(0,f.merge)(x[2],x[0]),(0,f.merge)(x[2],x[1]),x};function _(e){return!isNaN(e)&&!isFinite(e)}function b(e,t,i,n){var o=1-e,a=n.dimensions[e];return _(t[o])&&_(i[o])&&t[e]===i[e]&&n.getAxis(a).containData(t[e])}function S(e,t){if("cartesian2d"===e.type){var i=t[0].coord,n=t[1].coord;if(i&&n&&(b(1,i,n,e)||b(0,i,n,e)))return!0}return u.mQ(e,t[0])&&u.mQ(e,t[1])}function M(e,t,i,n,o){var a,r=n.coordinateSystem,s=e.getItemModel(t),u=l.GM(s.get("x"),o.getWidth()),c=l.GM(s.get("y"),o.getHeight());if(isNaN(u)||isNaN(c)){if(n.getMarkerPosition)a=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var h=r.dimensions,p=e.get(h[0],t),g=e.get(h[1],t);a=r.dataToPoint([p,g])}if((0,d.H)(r,"cartesian2d")){var f=r.getAxis("x"),m=r.getAxis("y"),h=r.dimensions;_(e.get(h[0],t))?a[0]=f.toGlobalCoord(f.getExtent()[+!i]):_(e.get(h[1],t))&&(a[1]=m.toGlobalCoord(m.getExtent()[+!i]))}isNaN(u)||(a[0]=u),isNaN(c)||(a[1]=c)}else a=[u,c];e.setItemLayout(t,a)}var w=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.updateTransform=function(e,t,i){t.eachSeries(function(e){var t=a.Z.getMarkerModelFromSeries(e,"markLine");if(t){var n=t.getData(),o=v(t).from,r=v(t).to;o.each(function(t){M(o,t,!0,e,i),M(r,t,!1,e,i)}),n.each(function(e){n.setItemLayout(e,[o.getItemLayout(e),r.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,i,n){var o,a,r,l,h,p,d,m,_,b=e.coordinateSystem,w=e.id,I=e.getData(),A=this.markerGroupMap,T=A.get(w)||A.set(w,new c.Z);this.group.add(T.group);var C=(o=b,a=e,r=t,l=o?(0,f.map)(o&&o.dimensions,function(e){var t=a.getData().getDimensionInfo(a.getData().mapDimension(e))||{};return(0,f.extend)((0,f.extend)({},t),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}],h=new s.Z(l,r),p=new s.Z(l,r),d=new s.Z([],r),m=(0,f.map)(r.get("data"),(0,f.curry)(x,a,o,r)),o&&(m=(0,f.filter)(m,(0,f.curry)(S,o))),_=u.CS(!!o,l),h.initData((0,f.map)(m,function(e){return e[0]}),null,_),p.initData((0,f.map)(m,function(e){return e[1]}),null,_),d.initData((0,f.map)(m,function(e){return e[2]})),d.hasItemOption=!0,{from:h,to:p,line:d}),D=C.from,Z=C.to,L=C.line;v(t).from=D,v(t).to=Z,t.setData(L);var O=t.get("symbol"),k=t.get("symbolSize"),P=t.get("symbolRotate"),N=t.get("symbolOffset");function V(t,i,o){var a=t.getItemModel(i);M(t,i,o,e,n);var r=a.getModel("itemStyle").getItemStyle();null==r.fill&&(r.fill=(0,y.UL)(I,"color")),t.setItemVisual(i,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:(0,f.retrieve2)(a.get("symbolOffset",!0),N[+!o]),symbolRotate:(0,f.retrieve2)(a.get("symbolRotate",!0),P[+!o]),symbolSize:(0,f.retrieve2)(a.get("symbolSize"),k[+!o]),symbol:(0,f.retrieve2)(a.get("symbol",!0),O[+!o]),style:r})}(0,f.isArray)(O)||(O=[O,O]),(0,f.isArray)(k)||(k=[k,k]),(0,f.isArray)(P)||(P=[P,P]),(0,f.isArray)(N)||(N=[N,N]),C.from.each(function(e){V(D,e,!0),V(Z,e,!1)}),L.each(function(e){var t=L.getItemModel(e).getModel("lineStyle").getLineStyle();L.setItemLayout(e,[D.getItemLayout(e),Z.getItemLayout(e)]),null==t.stroke&&(t.stroke=D.getItemVisual(e,"style").fill),L.setItemVisual(e,{fromSymbolKeepAspect:D.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:D.getItemVisual(e,"symbolOffset"),fromSymbolRotate:D.getItemVisual(e,"symbolRotate"),fromSymbolSize:D.getItemVisual(e,"symbolSize"),fromSymbol:D.getItemVisual(e,"symbol"),toSymbolKeepAspect:Z.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:Z.getItemVisual(e,"symbolOffset"),toSymbolRotate:Z.getItemVisual(e,"symbolRotate"),toSymbolSize:Z.getItemVisual(e,"symbolSize"),toSymbol:Z.getItemVisual(e,"symbol"),style:t})}),T.updateData(L),C.line.eachItemGraphicEl(function(e){(0,g.A)(e).dataModel=t,e.traverse(function(e){(0,g.A)(e).dataModel=t})}),this.markKeep(T),T.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(h.Z);function I(e){e.registerComponentModel(r),e.registerComponentView(w),e.registerPreprocessor(function(e){(0,n.Z)(e.series,"markLine")&&(e.markLine=e.markLine||{})})}},17846:function(e,t,i){i.d(t,{N:()=>y});var n=i(25936),o=i(69988),a=i(13737),r=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.createMarkerModelFromSeries=function(e,i,n){return new t(e,i,n)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(a.Z),s=i(5434),l=i(82517),u=i(83208),c=i(14285),h=i(87309),p=i(67975),d=i(10428),g=i(43928);function f(e,t,i){var n=t.coordinateSystem;e.each(function(o){var a,r=e.getItemModel(o),s=l.GM(r.get("x"),i.getWidth()),u=l.GM(r.get("y"),i.getHeight());if(isNaN(s)||isNaN(u)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(n){var c=e.get(n.dimensions[0],o),h=e.get(n.dimensions[1],o);a=n.dataToPoint([c,h])}}else a=[s,u];isNaN(s)||(a[0]=s),isNaN(u)||(a[1]=u),e.setItemLayout(o,a)})}var m=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.updateTransform=function(e,t,i){t.eachSeries(function(e){var t=a.Z.getMarkerModelFromSeries(e,"markPoint");t&&(f(t.getData(),e,i),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,i,n){var o,a,r,l,h,m,y,v=e.coordinateSystem,x=e.id,_=e.getData(),b=this.markerGroupMap,S=b.get(x)||b.set(x,new s.Z),M=(o=v,a=e,r=t,l=o?(0,p.map)(o&&o.dimensions,function(e){var t=a.getData().getDimensionInfo(a.getData().mapDimension(e))||{};return(0,p.extend)((0,p.extend)({},t),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}],h=new u.Z(l,r),m=(0,p.map)(r.get("data"),(0,p.curry)(c.Z3,a)),o&&(m=(0,p.filter)(m,(0,p.curry)(c.mQ,o))),y=c.CS(!!o,l),h.initData(m,null,y),h);t.setData(M),f(t.getData(),e,n),M.each(function(e){var i=M.getItemModel(e),n=i.getShallow("symbol"),o=i.getShallow("symbolSize"),a=i.getShallow("symbolRotate"),r=i.getShallow("symbolOffset"),s=i.getShallow("symbolKeepAspect");if((0,p.isFunction)(n)||(0,p.isFunction)(o)||(0,p.isFunction)(a)||(0,p.isFunction)(r)){var l=t.getRawValue(e),u=t.getDataParams(e);(0,p.isFunction)(n)&&(n=n(l,u)),(0,p.isFunction)(o)&&(o=o(l,u)),(0,p.isFunction)(a)&&(a=a(l,u)),(0,p.isFunction)(r)&&(r=r(l,u))}var c=i.getModel("itemStyle").getItemStyle(),h=(0,g.UL)(_,"color");c.fill||(c.fill=h),M.setItemVisual(e,{symbol:n,symbolSize:o,symbolRotate:a,symbolOffset:r,symbolKeepAspect:s,style:c})}),S.updateData(M),this.group.add(S.group),M.eachItemGraphicEl(function(e){e.traverse(function(e){(0,d.A)(e).dataModel=t})}),this.markKeep(S),S.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(h.Z);function y(e){e.registerComponentModel(r),e.registerComponentView(m),e.registerPreprocessor(function(e){(0,n.Z)(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}},14285:function(e,t,i){i.d(t,{CS:()=>g,Nn:()=>f,Z3:()=>c,i6:()=>d,mQ:()=>p,r:()=>h});var n=i(82517),o=i(97384),a=i(67975),r=i(54503);function s(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function l(e,t,i,a,r,s){var l=[],u=(0,o.M)(t,a)?t.getCalculationInfo("stackResultDimension"):a,c=f(t,u,e),h=t.indicesOfNearest(u,c)[0];l[r]=t.get(i,h),l[s]=t.get(u,h);var p=t.get(a,h),d=n.p8(t.get(a,h));return(d=Math.min(d,20))>=0&&(l[s]=+l[s].toFixed(d)),[l,p]}var u={min:(0,a.curry)(l,"min"),max:(0,a.curry)(l,"max"),average:(0,a.curry)(l,"average"),median:(0,a.curry)(l,"median")};function c(e,t){if(t){var i,n=e.getData(),o=e.coordinateSystem,r=o&&o.dimensions;if(!(!isNaN(parseFloat((i=t).x))&&!isNaN(parseFloat(i.y)))&&!(0,a.isArray)(t.coord)&&(0,a.isArray)(r)){var s=h(t,n,o,e);if((t=(0,a.clone)(t)).type&&u[t.type]&&s.baseAxis&&s.valueAxis){var l=(0,a.indexOf)(r,s.baseAxis.dim),c=(0,a.indexOf)(r,s.valueAxis.dim),p=u[t.type](n,s.baseDataDim,s.valueDataDim,l,c);t.coord=p[0],t.value=p[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&(0,a.isArray)(r))for(var d=t.coord,g=0;g<2;g++)u[d[g]]&&(d[g]=f(n,n.mapDimension(r[g]),d[g]));else t.coord=[];return t}}function h(e,t,i,n){var o,a,r,s={};return null!=e.valueIndex||null!=e.valueDim?(s.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,s.valueAxis=i.getAxis((o=n,a=s.valueDataDim,(r=o.getData().getDimensionInfo(a))&&r.coordDim)),s.baseAxis=i.getOtherAxis(s.valueAxis),s.baseDataDim=t.mapDimension(s.baseAxis.dim)):(s.baseAxis=n.getBaseAxis(),s.valueAxis=i.getOtherAxis(s.baseAxis),s.baseDataDim=t.mapDimension(s.baseAxis.dim),s.valueDataDim=t.mapDimension(s.valueAxis.dim)),s}function p(e,t){return!e||!e.containData||!t.coord||!!s(t)||e.containData(t.coord)}function d(e,t,i){return!e||!e.containZone||!t.coord||!i.coord||!!s(t)||!!s(i)||e.containZone(t.coord,i.coord)}function g(e,t){return e?function(e,i,n,o){var a=o<2?e.coord&&e.coord[o]:e.value;return(0,r.yQ)(a,t[o])}:function(e,i,n,o){return(0,r.yQ)(e.value,t[o])}}function f(e,t,i){if("average"===i){var n=0,o=0;return e.each(t,function(e,t){!isNaN(e)&&(n+=e,o++)}),n/o}return"median"===i?e.getMedian(t):e.getDataExtent(t)[+("max"===i)]}},91574:function(e,t,i){i.d(t,{Bm:()=>r,f1:()=>n,ls:()=>a});var n=function(){},o={};function a(e,t){o[e]=t}function r(e){return o[e]}},55328:function(e,t,i){i.d(t,{N:()=>j});var n=i(36232),o=i(69988),a=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.type="dataZoom.select",t}(i(84677).Z),r=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.type="dataZoom.select",t}(i(82877).Z),s=i(88526);function l(e){e.registerComponentModel(a),e.registerComponentView(r),(0,s.Z)(e)}var u=i(67975),c=i(91574),h=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,o.ZT)(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;u.each(this.option.feature,function(e,i){var n=c.Bm(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),u.merge(e,n.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}(i(45352).Z),p=i(12666),d=i(29790),g=i(98306),f=i(16505),m=i(82787),y=i(60630),v=i(64292),x=i(4587),_=i(76150),b=i(33361),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.render=function(e,t,i,n){var o=this.group;if(o.removeAll(),e.get("show")){var a=+e.get("itemSize"),r="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),h=[];u.each(s,function(e,t){h.push(t)}),new m.Z(this._featureNames||[],h).add(v).update(v).remove(u.curry(v,null)).execute(),this._featureNames=h,y.b(o,e,i),o.add(y.l(o.getBoundingRect(),e)),r||o.eachChild(function(e){var t=e.__title,n=e.ensureState("emphasis"),r=n.textConfig||(n.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!u.isFunction(l)&&t){var c=l.style||(l.style={}),h=p.lP(t,_.ZP.makeFont(c)),d=e.x+o.x,g=e.y+o.y+a,f=!1;g+h.height>i.getHeight()&&(r.position="top",f=!0);var m=f?-5-h.height:a+10;d+h.width/2>i.getWidth()?(r.position=["100%",m],c.align="right"):d-h.width/2<0&&(r.position=[0,m],c.align="left")}})}function v(p,m){var y,v,S,M,w,I,A,T,C,D,Z,L=h[p],O=h[m],k=s[L],P=new f.Z(k,e,e.ecModel);if(n&&null!=n.newTitle&&n.featureName===L&&(k.title=n.newTitle),L&&!O){if(0===L.indexOf("my"))Z={onclick:P.option.onclick,featureName:L};else{var N=(0,c.Bm)(L);if(!N)return;Z=new N}l[L]=Z}else if(!(Z=l[O]))return;Z.uid=(0,x.Kr)("toolbox-feature"),Z.model=P,Z.ecModel=t,Z.api=i;var V=Z instanceof c.f1;if(!L&&O){V&&Z.dispose&&Z.dispose(t,i);return}if(!P.get("show")||V&&Z.unusable){V&&Z.remove&&Z.remove(t,i);return}y=P,v=Z,S=L,I=y.getModel("iconStyle"),A=y.getModel(["emphasis","iconStyle"]),T=v instanceof c.f1&&v.getIcons?v.getIcons():y.get("icon"),C=y.get("title")||{},u.isString(T)?(M={})[S]=T:M=T,u.isString(C)?(w={})[S]=C:w=C,D=y.iconPaths={},u.each(M,function(n,s){var l=d.createIcon(n,{},{x:-a/2,y:-a/2,width:a,height:a});l.setStyle(I.getItemStyle()),l.ensureState("emphasis").style=A.getItemStyle();var c=new _.ZP({style:{text:w[s],align:A.get("textAlign"),borderRadius:A.get("textBorderRadius"),padding:A.get("textPadding"),fill:null,font:(0,b.qT)({fontStyle:A.get("textFontStyle"),fontFamily:A.get("textFontFamily"),fontSize:A.get("textFontSize"),fontWeight:A.get("textFontWeight")},t)},ignore:!0});l.setTextContent(c),d.setTooltipConfig({el:l,componentModel:e,itemName:s,formatterParamsExtra:{title:w[s]}}),l.__title=w[s],l.on("mouseover",function(){var t=A.getItemStyle(),n=r?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";c.setStyle({fill:A.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:A.get("textBackgroundColor")}),l.setTextConfig({position:A.get("textPosition")||n}),c.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==y.get(["iconStatus",s])&&i.leaveEmphasis(this),c.hide()}),("emphasis"===y.get(["iconStatus",s])?g.fD:g.Mh)(l),o.add(l),l.on("click",u.bind(v.onclick,v,t,i,s)),D[s]=l}),P.setIconStatus=function(e,t){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[e]=t,n[e]&&("emphasis"===t?g.fD:g.Mh)(n[e])},Z instanceof c.f1&&Z.render&&Z.render(P,t,i,n)}},t.prototype.updateView=function(e,t,i,n){u.each(this._features,function(e){e instanceof c.f1&&e.updateView&&e.updateView(e.model,t,i,n)})},t.prototype.remove=function(e,t){u.each(this._features,function(i){i instanceof c.f1&&i.remove&&i.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){u.each(this._features,function(i){i instanceof c.f1&&i.dispose&&i.dispose(e,t)})},t.type="toolbox",t}(v.Z),M=i(4647),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.onclick=function(e,t){var i=this.model,n=i.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),a=o?"svg":i.get("type",!0)||"png",r=t.getConnectedDataURL({type:a,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),s=M.Z.browser;if((0,u.isFunction)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=n+"."+a,l.target="_blank",l.href=r;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=r.split(","),p=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];p&&(d=window.atob(d));var g=n+"."+a;if(window.navigator.msSaveOrOpenBlob){for(var f=d.length,m=new Uint8Array(f);f--;)m[f]=d.charCodeAt(f);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var v=document.createElement("iframe");document.body.appendChild(v);var x=v.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(d),_.close(),x.focus(),_.execCommand("SaveAs",!0,g),document.body.removeChild(v)}}else{var b=i.get("lang"),S='<body style="margin:0;"><img src="'+r+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',w=window.open();w.document.write(S),w.document.title=n}},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}(c.f1),I=i(59161),A=i(86571),T="__ec_magicType_stack__",C=[["line","bar"],["stack"]],D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),i={};return u.each(e.get("type"),function(e){t[e]&&(i[e]=t[e])}),i},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,i){var n,o=this.model,a=o.get(["seriesIndex",i]);if(Z[i]){var r={series:[]};u.each(C,function(e){u.indexOf(e,i)>=0&&u.each(e,function(e){o.setIconStatus(e,"normal")})}),o.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},function(e){var t=e.subType,n=e.id,a=Z[i](t,n,e,o);a&&(u.defaults(a,e.option),r.series.push(a));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===i||"bar"===i)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim+"Axis",h=e.getReferringComponents(c,A.C6).models[0].componentIndex;r[c]=r[c]||[];for(var p=0;p<=h;p++)r[c][h]=r[c][h]||{};r[c][h].boundaryGap="bar"===i}}});var s=i;"stack"===i&&(n=u.merge({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),"emphasis"!==o.get(["iconStatus",i])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:r,newTitle:n,featureName:"magicType"})}},t}(c.f1),Z={line:function(e,t,i,n){if("bar"===e)return u.merge({id:t,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,i,n){if("line"===e)return u.merge({id:t,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,i,n){var o=i.get("stack")===T;if("line"===e||"bar"===e)return n.setIconStatus("stack",o?"normal":"emphasis"),u.merge({id:t,stack:o?"":T},n.get(["option","stack"])||{},!0)}};I.zl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var L=i(9474),O=Array(60).join("-");function k(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var P=RegExp("[ ]+","g"),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:"hideTip"})});var i,n,o,a,r,s,l,c=t.getDom(),h=this.model;this._dom&&c.removeChild(this._dom);var p=document.createElement("div");p.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",p.style.backgroundColor=h.get("backgroundColor")||"#fff";var d=document.createElement("h4"),g=h.get("lang")||[];d.innerHTML=g[0]||h.get("title"),d.style.cssText="margin:10px 20px",d.style.color=h.get("textColor");var f=document.createElement("div"),m=document.createElement("textarea");f.style.cssText="overflow:auto";var y=h.get("optionToContent"),v=h.get("contentToOption"),x=(i={},n=[],o=[],e.eachRawSeries(function(e){var t=e.coordinateSystem;if(t&&("cartesian2d"===t.type||"polar"===t.type)){var a=t.getBaseAxis();if("category"===a.type){var r=a.dim+"_"+a.index;i[r]||(i[r]={categoryAxis:a,valueAxis:t.getOtherAxis(a),series:[]},o.push({axisDim:a.dim,axisIndex:a.index})),i[r].series.push(e)}else n.push(e)}else n.push(e)}),a={seriesGroupByCategoryAxis:i,other:n,meta:o},{value:u.filter([(r=a.seriesGroupByCategoryAxis,s=[],u.each(r,function(e,t){var i=e.categoryAxis,n=e.valueAxis.dim,o=[" "].concat(u.map(e.series,function(e){return e.name})),a=[i.model.getCategories()];u.each(e.series,function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(n),function(e){return e}))});for(var r=[o.join(" ")],l=0;l<a[0].length;l++){for(var c=[],h=0;h<a.length;h++)c.push(a[h][l]);r.push(c.join(" "))}s.push(r.join("\n"))}),s.join("\n\n"+O+"\n\n")),(l=a.other,u.map(l,function(e){var t=e.getRawData(),i=[e.name],n=[];return t.each(t.dimensions,function(){for(var e=arguments.length,o=arguments[e-1],a=t.getName(o),r=0;r<e-1;r++)n[r]=arguments[r];i.push((a?a+" ":"")+n.join(" "))}),i.join("\n")}).join("\n\n"+O+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+O+"\n\n"),meta:a.meta});if(u.isFunction(y)){var _=y(t.getOption());u.isString(_)?f.innerHTML=_:u.isDom(_)&&f.appendChild(_)}else{m.readOnly=h.get("readOnly");var b=m.style;b.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",b.color=h.get("textColor"),b.borderColor=h.get("textareaBorderColor"),b.backgroundColor=h.get("textareaColor"),m.value=x.value,f.appendChild(m)}var S=x.meta,M=document.createElement("div");M.style.cssText="position:absolute;bottom:5px;left:0;right:0";var w="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",I=document.createElement("div"),A=document.createElement("div");w+=";background-color:"+h.get("buttonColor")+";color:"+h.get("buttonTextColor");var T=this;function C(){c.removeChild(p),T._dom=null}(0,L.Oo)(I,"click",C),(0,L.Oo)(A,"click",function(){var e,i,n;if(null==v&&null!=y||null!=v&&null==y){C();return}try{u.isFunction(v)?e=v(f,t.getOption()):(i=m.value.split(RegExp("\n*"+O+"\n*","g")),n={series:[]},u.each(i,function(e,t){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(" ")>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),i=k(t.shift()).split(P),n=[],o=u.map(i,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var r=k(t[a]).split(P);n.push(r.shift());for(var s=0;s<r.length;s++)o[s]&&(o[s].data[a]=r[s])}return{series:o,categories:n}}(e),o=S[t],a=o.axisDim+"Axis";o&&(n[a]=n[a]||[],n[a][o.axisIndex]={data:i.categories},n.series=n.series.concat(i.series))}else{var i=function(e){for(var t=e.split(/\n+/g),i=k(t.shift()),n=[],o=0;o<t.length;o++){var a=k(t[o]);if(a){var r=a.split(P),s="",l=void 0,u=!1;isNaN(r[0])?(u=!0,s=r[0],r=r.slice(1),n[o]={name:s,value:[]},l=n[o].value):l=n[o]=[];for(var c=0;c<r.length;c++)l.push(+r[c]);1===l.length&&(u?n[o].value=l[0]:n[o]=l[0])}}return{name:i,data:n}}(e);n.series.push(i)}}),e=n)}catch(e){throw C(),Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),C()}),I.innerHTML=g[1],A.innerHTML=g[2],A.style.cssText=I.style.cssText=w,h.get("readOnly")||M.appendChild(A),M.appendChild(I),p.appendChild(d),p.appendChild(f),p.appendChild(M),f.style.height=c.clientHeight-80+"px",c.appendChild(p),this._dom=p},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}(c.f1);I.zl({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var i=[];u.each(e.newOption.series,function(e){var n=t.getSeriesByName(e.name)[0];if(n){var o,a=n.get("data");i.push({name:e.name,data:(o=e.data,u.map(o,function(e,t){var i=a&&a[t];if(!u.isObject(i)||u.isArray(i))return e;u.isObject(e)&&!u.isArray(e)||(e={value:e});var n=null!=i.name&&null==e.name;return e=u.defaults(e,i),n&&delete e.name,e}))})}else i.push(u.extend({type:"scatter"},e))}),t.mergeOption(u.defaults({series:i},e.newOption))});var V=u.each,R=(0,A.Yf)();function z(e){var t=R(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.onclick=function(e,t){R(e).snapshots=null,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}(c.f1);I.zl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var G=i(10933),B=i(89262),H=i(12920),W=i(33886),F=u.each,X=(0,A.g0)("toolbox-dataZoom_"),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.render=function(e,t,i,n){this._brushController||(this._brushController=new G.Z(i.getZr()),this._brushController.on("brush",u.bind(this._onBrush,this)).mount()),function(e,t,i,n,o){var a=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(a="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var r=new B.Z(K(e),t,{include:["grid"]}).makePanelOpts(o,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"});i._brushController.setPanels(r).enableBrush(!!a&&!!r.length&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,n,i),function(e,t){e.setIconStatus("back",z(t).length>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,i){U[i].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,i,n,o=e.areas;if(e.isEnd&&o.length){var a={},r=this.ecModel;this._brushController.updateCovers([]),new B.Z(K(this.model),r,{include:["grid"]}).matchOutputRanges(o,r,function(e,t,i){if("cartesian2d"===i.type){var n=e.brushType;"rect"===n?(s("x",i,t[0]),s("y",i,t[1])):s({lineX:"x",lineY:"y"}[n],i,t)}}),t=r,i=a,n=z(t),V(i,function(e,i){for(var o=n.length-1;o>=0&&!n[o][i];o--);if(o<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var r=a.getPercentRange();n[0][i]={dataZoomId:i,start:r[0],end:r[1]}}}}),n.push(i),this._dispatchZoomAction(a)}function s(e,t,i){var n,o,s,l=t.getAxis(e),u=l.model,c=(n=e,o=u,r.eachComponent({mainType:"dataZoom",subType:"select"},function(e){e.getAxisModel(n,o.componentIndex)&&(s=e)}),s),h=c.findRepresentativeAxisProxy(u).getMinMaxSpan();(null!=h.minValueSpan||null!=h.maxValueSpan)&&(i=(0,H.Z)(0,i.slice(),l.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),c&&(a[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];F(e,function(e,i){t.push(u.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}(c.f1),U={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){var e,t,i;this._dispatchZoomAction((t=(e=z(this.ecModel))[e.length-1],e.length>1&&e.pop(),i={},V(t,function(t,n){for(var o=e.length-1;o>=0;o--)if(t=e[o][n]){i[n]=t;break}}),i))}};function K(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}function j(e){e.registerComponentModel(h),e.registerComponentView(S),(0,c.ls)("saveAsImage",w),(0,c.ls)("magicType",D),(0,c.ls)("dataView",N),(0,c.ls)("dataZoom",Y),(0,c.ls)("restore",E),(0,n.D)(l)}(0,W.f)("dataZoom",function(e){var t=e.getComponent("toolbox",0),i=["feature","dataZoom"];if(t&&null!=t.get(i)){var n=t.getModel(i),o=[],a=K(n),r=(0,A.pm)(e,a);return F(r.xAxisModels,function(e){return s(e,"xAxis","xAxisIndex")}),F(r.yAxisModels,function(e){return s(e,"yAxis","yAxisIndex")}),o}function s(e,t,i){var a=e.componentIndex,r={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:X+t+a};r[i]=a,o.push(r)}})},10946:function(e,t,i){i.d(t,{Z:()=>y});var n=i(69988),o=i(67975),a=i(53835),r=i(89125),s=i(86750),l=i(86571),u=i(82517),c=i(45352),h=r.Z.mapVisual,p=r.Z.eachVisual,d=o.isArray,g=o.each,f=u.dt,m=u.NU;let y=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.stateList=["inRange","outOfRange"],i.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],i.layoutMode={type:"box",ignoreSize:!0},i.dataBound=[-1/0,1/0],i.targetVisuals={},i.controllerVisuals={},i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,t){var i=this.option;t||s.jO(i,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=s.qD(this.option.controller,t,e),this.targetVisuals=s.qD(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,i){t.push(i)}):t=l.kF(e),t},t.prototype.eachTargetSeries=function(e,t){o.each(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&e.call(t,n)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(i){i===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,i){var n,a=this.option,r=a.precision,s=this.dataBound,l=a.formatter;i=i||["<",">"],o.isArray(e)&&(e=e.slice(),n=!0);var u=t?e:n?[c(e[0]),c(e[1])]:c(e);if(o.isString(l))return l.replace("{value}",n?u[0]:u).replace("{value2}",n?u[1]:u);if(o.isFunction(l))return n?l(e[0],e[1]):l(e);if(!n)return u;return e[0]===s[0]?i[0]+" "+u[1]:e[1]===s[1]?i[1]+" "+u[0]:u[0]+" - "+u[1];function c(e){return e===s[0]?"min":e===s[1]?"max":(+e).toFixed(Math.min(r,20))}},t.prototype.resetExtent=function(){var e=this.option,t=f([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 i=e.dimensions,n=i.length-1;n>=0;n--){var o=i[n],a=e.getDimensionInfo(o);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,i={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),s=t.controller||(t.controller={});o.merge(n,i),o.merge(s,i);var l=this.isCategory();function u(i){d(t.color)&&!i.inRange&&(i.inRange={color:t.color.slice().reverse()}),i.inRange=i.inRange||{color:e.get("gradientColor")}}u.call(this,n),u.call(this,s),(function(e,t,i){var n=e[t],o=e[i];n&&!o&&(o=e[i]={},g(n,function(e,t){if(r.Z.isValidType(t)){var i=a.Z.get(t,"inactive",l);null==i||(o[t]=i,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}).call(this,n,"inRange","outOfRange"),(function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,i=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,n=this.get("inactiveColor"),a=this.getItemSymbol()||"roundRect";g(this.stateList,function(r){var s=this.itemSize,u=e[r];u||(u=e[r]={color:l?n:[n]}),null==u.symbol&&(u.symbol=t&&o.clone(t)||(l?a:[a])),null==u.symbolSize&&(u.symbolSize=i&&o.clone(i)||(l?s[0]:[s[0],s[0]])),u.symbol=h(u.symbol,function(e){return"none"===e?a:e});var c=u.symbolSize;if(null!=c){var d=-1/0;p(c,function(e){e>d&&(d=e)}),u.symbolSize=h(c,function(e){return m(e,[0,d],[0,s[0]],!0)})}},this)}).call(this,s)},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}(c.Z)},10959:function(e,t,i){i.d(t,{Z:()=>u});var n=i(69988),o=i(67975),a=i(31969),r=i(40814),s=i(50651),l=i(89125);let u=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.autoPositionValues={left:1,right:1,top:1,bottom:1},i}return(0,n.ZT)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,i,n){if(this.visualMapModel=e,!1===e.get("show")){this.group.removeAll();return}this.doRender(e,t,i,n)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,i=r.MY(t.get("padding")||0),n=e.getBoundingRect();e.add(new a.Z({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,i){var n=(i=i||{}).forceState,a=this.visualMapModel,r={};if("color"===t){var s=a.get("contentColor");r.color=s}function u(e){return r[e]}function c(e,t){r[e]=t}var h=a.controllerVisuals[n||a.getValueState(e)],p=l.Z.prepareVisualTypes(h);return o.each(p,function(n){var o=h[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",o=h.__alphaForOpacity),l.Z.dependsOn(n,t)&&o&&o.applyVisual(e,u,c)}),r[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,i=this.api;s.p$(e,t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(e,t,i,n){},t.type="visualMap",t}(i(64292).Z)},31215:function(e,t,i){i.d(t,{H:()=>s,X:()=>r});var n=i(67975),o=i(50651),a=[["left","right","width"],["top","bottom","height"]];function r(e,t,i){var n=e.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var s={width:t.getWidth(),height:t.getHeight()},l=+("horizontal"===n.orient),u=a[l],c=[0,null,10],h={},p=0;p<3;p++)h[a[1-l][p]]=c[p],h[u[p]]=2===p?i[0]:n[u[p]];var d=[["x","width",3],["y","height",0]][l],g=(0,o.ME)(h,s,n.padding);return u[(g.margin[d[2]]||0)+g[d[0]]+.5*g[d[1]]<.5*s[d[1]]?0:1]}function s(e,t){return n.each(e||[],function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}},943:function(e,t,i){i.d(t,{N:()=>r});var n=i(36232),o=i(32767),a=i(55828);function r(e){(0,n.D)(o.N),(0,n.D)(a.N)}},87145:function(e,t,i){i.d(t,{Z:()=>f});var n={type:"selectDataRange",event:"dataRangeSelected",update:"update"},o=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},a=i(67975),r=i(86750),s=i(89125),l=i(43928),u=[{createOnAllSeries:!0,reset:function(e,t){var i=[];return t.eachComponent("visualMap",function(t){var n=e.pipelineContext;t.isTargetSeries(e)&&(!n||!n.large)&&i.push(r.Z7(t.stateList,t.targetVisuals,a.bind(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),i}},{createOnAllSeries:!0,reset:function(e,t){var i=e.getData(),n=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(a.bind(c,null,e,t))||{stops:[],outerColors:[]},r=t.getDataDimensionIndex(i);r>=0&&(o.dimension=r,n.push(o))}}),e.getData().setVisual("visualMeta",n)}}];function c(e,t,i,n){for(var o=t.targetVisuals[n],a=s.Z.prepareVisualTypes(o),r={color:(0,l.UL)(e.getData(),"color")},u=0,c=a.length;u<c;u++){var h=a[u],p=o["opacity"===h?"__alphaForOpacity":h];p&&p.applyVisual(i,d,g)}return r.color;function d(e){return r[e]}function g(e,t){r[e]=t}}var h=a.each;function p(e){var t=e&&e.visualMap;a.isArray(t)||(t=t?[t]:[]),h(t,function(e){if(e){d(e,"splitList")&&!d(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&a.isArray(t)&&h(t,function(e){a.isObject(e)&&(d(e,"start")&&!d(e,"min")&&(e.min=e.start),d(e,"end")&&!d(e,"max")&&(e.max=e.end))})}})}function d(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var g=!1;function f(e){!g&&(g=!0,e.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),e.registerAction(n,o),(0,a.each)(u,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(p))}},32767:function(e,t,i){i.d(t,{N:()=>R});var n=i(69988),o=i(67975),a=i(10946),r=i(82517),s=i(4587),l=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.optionUpdated=function(t,i){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]=20),(null==t[1]||isNaN(t[1]))&&(t[1]=140)},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=r.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,i=this.getExtent();return(t[0]<=i[0]||t[0]<=e)&&(t[1]>=i[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(t,i){e[0]<=t&&t<=e[1]&&n.push(i)},this),t.push({seriesId:i.id,dataIndex:n})},this),t},t.prototype.getVisualMeta=function(e){var t=u(this,"outOfRange",this.getExtent()),i=u(this,"inRange",this.option.range.slice()),n=[];function o(t,i){n.push({value:t,color:e(t,i)})}for(var a=0,r=0,s=i.length,l=t.length;r<l&&(!i.length||t[r]<=i[0]);r++)t[r]<i[a]&&o(t[r],"outOfRange");for(var c=1;a<s;a++,c=0)c&&n.length&&o(i[a],"outOfRange"),o(i[a],"inRange");for(var c=1;r<l;r++)(!i.length||i[i.length-1]<t[r])&&(c&&(n.length&&o(n[n.length-1].value,"outOfRange"),c=0),o(t[r],"outOfRange"));var h=n.length;return{stops:n,outerColors:[h?n[0].color:"transparent",h?n[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=(0,s.ZL)(a.Z.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}(a.Z);function u(e,t,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,o=i[0],a=[],r=0;r<=200&&o<i[1];r++)a.push(o),o+=n;return a.push(i[1]),a}var c=i(44235),h=i(9474),p=i(10959),d=i(76150),g=i(37293),f=i(31969),m=i(29790),y=i(24484),v=i(12920),x=i(31215),_=i(86571),b=i(12666),S=i(98306),M=i(5965),w=i(63287),I=i(10428),A=i(33361),T=i(26501),C=r.NU,D=o.each,Z=Math.min,L=Math.max,O=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._shapes={},i._dataInterval=[],i._handleEnds=[],i._hoverLinkDataIndices=[],i}return(0,n.ZT)(t,e),t.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=o.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=o.bind(this._hideIndicator,this)},t.prototype.doRender=function(e,t,i,n){n&&"selectDataRange"===n.type&&n.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 i=e.get("text");this._renderEndsText(t,i,0),this._renderEndsText(t,i,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,i){if(t){var n=t[1-i];n=null!=n?n+"":"";var o=this.visualMapModel,a=o.get("textGap"),r=o.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([r[0]/2,0===i?-a:r[1]+a],s),u=this._applyTransform(0===i?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new d.ZP({style:(0,A.Lr)(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:n})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,i=this._shapes,n=t.itemSize,a=this._orient,r=this._useHandle,s=x.X(t,this.api,n),l=i.mainGroup=this._createBarGroup(s),u=new g.Z;l.add(u),u.add(i.outOfRange=k()),u.add(i.inRange=k(null,r?N(this._orient):null,o.bind(this._dragHandle,this,"all",!1),o.bind(this._dragHandle,this,"all",!0))),u.setClipPath(new f.Z({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),h=L(c.width,c.height);r&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(t,l,0,n,h,a),this._createHandle(t,l,1,n,h,a)),this._createIndicator(t,l,n,h,a),e.add(l)},t.prototype._createHandle=function(e,t,i,n,a,r){var s=o.bind(this._dragHandle,this,i,!1),l=o.bind(this._dragHandle,this,i,!0),u=(0,b.GM)(e.get("handleSize"),n[0]),c=(0,M.th)(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),p=N(this._orient);c.attr({cursor:p,draggable:!0,drift:s,ondragend:l,onmousemove:function(e){h.sT(e.event)}}),c.x=n[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,S.Nj)(c,!0),t.add(c);var g=this.visualMapModel.textStyleModel,f=new d.ZP({cursor:p,draggable:!0,drift:s,onmousemove:function(e){h.sT(e.event)},ondragend:l,style:(0,A.Lr)(g,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var m=[u,0],y=this._shapes;y.handleThumbs[i]=c,y.handleLabelPoints[i]=m,y.handleLabels[i]=f},t.prototype._createIndicator=function(e,t,i,n,a){var r=(0,b.GM)(e.get("indicatorSize"),i[0]),s=(0,M.th)(e.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var l=e.getModel("indicatorStyle").getItemStyle();if(s instanceof w.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 d.ZP({silent:!0,invisible:!0,style:(0,A.Lr)(c,{x:0,y:0,text:""})});this.group.add(h);var p=[("horizontal"===a?n/2:6)+i[0]/2,0],g=this._shapes;g.indicator=s,g.indicatorLabel=h,g.indicatorLabelPoint=p,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,i,n){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}!this.visualMapModel.get("realtime")===t&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?this._hovering||this._clearHoverLinkToSeries():P(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),i=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[C(t[0],i,n,!0),C(t[1],i,n,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]];(0,v.Z)(t,n,o,e,0);var a=i.getExtent();this._dataInterval=[C(n[0],o,a,!0),C(n[1],o,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,i=t.getExtent(),n=this._shapes,o=[0,t.itemSize[1]],a=e?o:this._handleEnds,r=this._createBarVisual(this._dataInterval,i,a,"inRange"),s=this._createBarVisual(i,i,o,"outOfRange");n.inRange.setStyle({fill:r.barColor}).setShape("points",r.barPoints),n.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,r)},t.prototype._createBarVisual=function(e,t,i,n){var o={forceState:n,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,o),r=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],s=this._createBarPoints(i,r);return{barColor:new c.Z(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var i=[],n=(e[1]-e[0])/100;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<100;o++){var a=e[0]+n*o;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/100})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var i=this.visualMapModel.itemSize;return[[i[0]-t[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,i=this.visualMapModel.get("inverse");return new g.Z("horizontal"!==t||i?"horizontal"===t&&i?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||i?{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 i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,a=i.handleLabels,r=n.itemSize,s=n.getExtent();D([0,1],function(l){var u=o[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=C(e[l],[0,r[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/r[0],u.x=r[0]-h/2;var p=m.applyTransform(i.handleLabelPoints[l],m.getTransform(u,this.group));a[l].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,t,i,n){var o=this.visualMapModel,a=o.getExtent(),r=o.itemSize,s=[0,r[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"),p=C(e,a,s,!0),d=r[0]-h/2,g={x:u.x,y:u.y};u.y=p,u.x=d;var f=m.applyTransform(l.indicatorLabelPoint,m.getTransform(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),x="horizontal"===this._orient;y.setStyle({text:(i||"")+o.formatValueText(t),verticalAlign:x?v:"middle",align:x?"center":v});var _={x:d,y:p,style:{fill:c}},b={style:{x:f[0],y:f[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(_,S),y.animateTo(b,S)}else u.attr(_),y.attr(b);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var w=0;w<M.length;w++)this.api.enterBlur(M[w])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,n=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);n[1]=Z(L(0,n[1]),i[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[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 i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o,a,r,s,l,u=[0,n[1]],c=i.getExtent();e=Z(L(u[0],e),u[1]);var h=(o=i,a=c,r=u,s=6,(l=o.get("hoverLinkDataSize"))&&(s=C(l,a,r,!0)/2),s),p=[e-h,e+h],d=C(e,u,c,!0),g=[C(p[0],u,c,!0),C(p[1],u,c,!0)];p[0]<u[0]&&(g[0]=-1/0),p[1]>u[1]&&(g[1]=1/0),t&&(g[0]===-1/0?this._showIndicator(d,g[1],"< ",h):g[1]===1/0?this._showIndicator(d,g[0],"> ",h):this._showIndicator(d,d,"≈ ",h));var f=this._hoverLinkDataIndices,m=[];(t||P(i))&&(m=this._hoverLinkDataIndices=i.findTargetDataIndices(g));var y=_.XI(f,m);this._dispatchHighDown("downplay",x.H(y[0],i)),this._dispatchHighDown("highlight",x.H(y[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){if((0,T.o)(e.target,function(e){var i=(0,I.A)(e);if(null!=i.dataIndex)return t=i,!0},!0),t){var t,i=this.ecModel.getSeriesByIndex(t.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(i)){var o=i.getData(t.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},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 i=0;i<t.length;i++)this.api.leaveBlur(t[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",x.H(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,i,n){var a=m.getTransform(t,n?null:this.group);return o.isArray(e)?m.applyTransform(e,a,i):m.transformDirection(e,a,i)},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}(p.Z);function k(e,t,i,n){return new y.Z({shape:{points:e},draggable:!!i,cursor:t,drift:i,onmousemove:function(e){h.sT(e.event)},ondragend:n})}function P(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function N(e){return"vertical"===e?"ns-resize":"ew-resize"}var V=i(87145);function R(e){e.registerComponentModel(l),e.registerComponentView(O),(0,V.Z)(e)}},55828:function(e,t,i){i.d(t,{N:()=>S});var n=i(69988),o=i(67975),a=i(10946),r=i(89125),s=i(53835),l=i(82517),u=i(4587),c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i._pieceList=[],i}return(0,n.ZT)(t,e),t.prototype.optionUpdated=function(t,i){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],h[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var a=this.option.categories;this.resetVisual(function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=o.clone(a)):(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,i={},n=r.Z.listVisualTypes(),a=this.isCategory();function l(e,t,i){return e&&e[t]&&e[t].hasOwnProperty(i)}o.each(t.pieces,function(e){o.each(n,function(t){e.hasOwnProperty(t)&&(i[t]=1)})}),o.each(i,function(e,i){var n=!1;o.each(this.stateList,function(e){n=n||l(t,e,i)||l(t.target,e,i)},this),n||o.each(this.stateList,function(e){(t[e]||(t[e]={}))[i]=s.Z.get(i,"inRange"===e?"active":"inactive",a)})},this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var i=this.option,n=this._pieceList,a=(t?i:e).selected||{};if(i.selected=a,o.each(n,function(e,t){var i=this.getSelectedMapKey(e);a.hasOwnProperty(i)||(a[i]=!0)},this),"single"===i.selectedMode){var r=!1;o.each(n,function(e,t){var i=this.getSelectedMapKey(e);a[i]&&(r?a[i]=!1:r=!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=r.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=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],a=n.getData();a.each(this.getDataDimensionIndex(a),function(t,n){r.Z.findPieceIndex(t,i)===e&&o.push(n)},this),t.push({seriesId:n.id,dataIndex:o})},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 i=e.interval||[];t=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],i=["",""],n=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),(r=a[a.length-1].interval[1])!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return o.each(a,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:i}}function l(o,a){var r=n.getRepresentValue({interval:o});a||(a=n.getValueState(r));var s=e(r,a);o[0]===-1/0?i[0]=s:o[1]===1/0?i[1]=s:t.push({value:o[0],color:s},{value:o[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=(0,u.ZL)(a.Z.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}(a.Z),h={splitNumber:function(e){var t=this.option,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var r=(n[1]-n[0])/a;+r.toFixed(i)!==r&&i<5;)i++;t.precision=i,r=+r.toFixed(i),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var s=0,u=n[0];s<a;u+=r,s++){var c=s===a-1?n[1]:u+r;e.push({interval:[u,c],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),(0,l.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),p(t,e)},pieces:function(e){var t=this.option;o.each(t.pieces,function(t,i){o.isObject(t)||(t={value:t});var n={text:"",index:i};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var a=n.value=t.value;n.interval=[a,a],n.close=[1,1]}else{for(var s=n.interval=[],l=n.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],p=0;p<2;p++){for(var d=[["gte","gt","min"],["lte","lt","max"]][p],g=0;g<3&&null==s[p];g++)s[p]=t[d[g]],l[p]=u[g],h[p]=2===g;null==s[p]&&(s[p]=c[p])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(n.value=s[0])}n.visual=r.Z.retrieveVisuals(t),e.push(n)},this),p(t,e),(0,l.nR)(e),o.each(e,function(e){var t=e.close,i=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,i)},this)}};function p(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}var d=i(10959),g=i(37293),f=i(76150),m=i(5965),y=i(50651),v=i(31215),x=i(33361),_=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.ZT)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,i=t.get("textGap"),n=t.textStyleModel,a=n.getFont(),r=n.getTextColor(),s=this._getItemAlign(),l=t.itemSize,u=this._getViewData(),c=u.endsText,h=o.retrieve(t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],l,h,s),o.each(u.viewPieceList,function(n){var u=n.piece,c=new g.Z;c.onclick=o.bind(this._onItemClick,this,u),this._enableHoverLink(c,n.indexInModelPieceList);var p=t.getRepresentValue(u);if(this._createItemSymbol(c,p,[0,0,l[0],l[1]]),h){var d=this.visualMapModel.getValueState(p);c.add(new f.ZP({style:{x:"right"===s?-i:l[0]+i,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:a,fill:r,opacity:"outOfRange"===d?.5:1}}))}e.add(c)},this),c&&this._renderEndsText(e,c[1],l,h,s),y.BZ(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var i=this;e.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(e){var n=i.visualMapModel;n.option.hoverLink&&i.api.dispatchAction({type:e,batch:v.H(n.findTargetDataIndices(t),n)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return v.X(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},t.prototype._renderEndsText=function(e,t,i,n,o){if(t){var a=new g.Z,r=this.visualMapModel.textStyleModel;a.add(new f.ZP({style:(0,x.Lr)(r,{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=o.map(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),i=e.get("text"),n=e.get("orient"),a=e.get("inverse");return("horizontal"===n?a:!a)?t.reverse():i&&(i=i.slice().reverse()),{viewPieceList:t,endsText:i}},t.prototype._createItemSymbol=function(e,t,i){e.add((0,m.th)(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,i=t.option,n=i.selectedMode;if(n){var a=o.clone(i.selected),r=t.getSelectedMapKey(e);"single"===n||!0===n?(a[r]=!0,o.each(a,function(e,t){a[t]=t===r})):a[r]=!a[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(d.Z),b=i(87145);function S(e){e.registerComponentModel(c),e.registerComponentView(_),(0,b.Z)(e)}},9655:function(e,t,i){i.d(t,{$x:()=>O,Iu:()=>L,_A:()=>C,d:()=>w,qK:()=>T});var n=i(91145),o=i(7185),a=i(61099),r=i(97694),s=i(66790),l=i(99101),u=i(67975),c=i(49634),h=i(77605),p=i(98306),d=2*Math.PI,g=r.Z.CMD,f=["top","right","bottom","left"];function m(e,t,i,n,o,a,r,s){var l=i-e,u=n-t,c=Math.sqrt(l*l+u*u),h=((o-e)*(l/=c)+(a-t)*(u/=c))/c;s&&(h=Math.min(Math.max(h,0),1)),h*=c;var p=r[0]=e+h*l,d=r[1]=t+h*u;return Math.sqrt((p-o)*(p-o)+(d-a)*(d-a))}function y(e,t,i,n,o,a,r){i<0&&(e+=i,i=-i),n<0&&(t+=n,n=-n);var s=e+i,l=t+n,u=r[0]=Math.min(Math.max(o,e),s),c=r[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-o)*(u-o)+(c-a)*(c-a))}var v=[],x=new n.Z,_=new n.Z,b=new n.Z,S=new n.Z,M=new n.Z;function w(e,t){if(e){var i=e.getTextGuideLine(),a=e.getTextContent();if(a&&i){var r=e.textGuideLineConfig||{},u=[[0,0],[0,0],[0,0]],h=r.candidates||f,p=a.getBoundingRect().clone();p.applyTransform(a.getComputedTransform());var M=1/0,w=r.anchor,I=e.getComputedTransform(),A=I&&(0,c.invert)([],I),C=t.get("length2")||0;w&&b.copy(w);for(var D=0;D<h.length;D++){!function(e,t,i,n,o){var a=i.width,r=i.height;switch(e){case"top":n.set(i.x+a/2,i.y-0),o.set(0,-1);break;case"bottom":n.set(i.x+a/2,i.y+r+0),o.set(0,1);break;case"left":n.set(i.x-t,i.y+r/2),o.set(-1,0);break;case"right":n.set(i.x+a+t,i.y+r/2),o.set(1,0)}}(h[D],0,p,x,S),n.Z.scaleAndAdd(_,x,S,C),_.transform(A);var Z=e.getBoundingRect(),L=w?w.distance(_):e instanceof o.ZP?function(e,t,i){for(var n,o,a=0,r=0,u=0,c=0,h=1/0,p=t.data,f=e.x,x=e.y,_=0;_<p.length;){var b=p[_++];1===_&&(a=p[_],r=p[_+1],u=a,c=r);var S=h;switch(b){case g.M:u=p[_++],c=p[_++],a=u,r=c;break;case g.L:S=m(a,r,p[_],p[_+1],f,x,v,!0),a=p[_++],r=p[_++];break;case g.C:S=(0,l.t1)(a,r,p[_++],p[_++],p[_++],p[_++],p[_],p[_+1],f,x,v),a=p[_++],r=p[_++];break;case g.Q:S=(0,l.Wr)(a,r,p[_++],p[_++],p[_],p[_+1],f,x,v),a=p[_++],r=p[_++];break;case g.A:var M=p[_++],w=p[_++],I=p[_++],A=p[_++],T=p[_++],C=p[_++];_+=1;var D=!!(1-p[_++]);n=Math.cos(T)*I+M,o=Math.sin(T)*A+w,_<=1&&(u=n,c=o);var Z=(f-M)*A/I+M;S=function(e,t,i,n,o,a,r,l,u){var c=Math.sqrt((r-=e)*r+(l-=t)*l),h=(r/=c)*i+e,p=(l/=c)*i+t;if(Math.abs(n-o)%d<1e-4)return u[0]=h,u[1]=p,c-i;if(a){var g=n;n=(0,s.m)(o),o=(0,s.m)(g)}else n=(0,s.m)(n),o=(0,s.m)(o);n>o&&(o+=d);var f=Math.atan2(l,r);if(f<0&&(f+=d),f>=n&&f<=o||f+d>=n&&f+d<=o)return u[0]=h,u[1]=p,c-i;var m=i*Math.cos(n)+e,y=i*Math.sin(n)+t,v=i*Math.cos(o)+e,x=i*Math.sin(o)+t,_=(m-r)*(m-r)+(y-l)*(y-l),b=(v-r)*(v-r)+(x-l)*(x-l);return _<b?(u[0]=m,u[1]=y,Math.sqrt(_)):(u[0]=v,u[1]=x,Math.sqrt(b))}(M,w,A,T,T+C,D,Z,x,v),a=Math.cos(T+C)*I+M,r=Math.sin(T+C)*A+w;break;case g.R:S=y(u=a=p[_++],c=r=p[_++],p[_++],p[_++],f,x,v);break;case g.Z:S=m(a,r,u,c,f,x,v,!0),a=u,r=c}S<h&&(h=S,i.set(v[0],v[1]))}return h}(_,e.path,b):function(e,t,i){var n=y(t.x,t.y,t.width,t.height,e.x,e.y,v);return i.set(v[0],v[1]),n}(_,Z,b);L<M&&(M=L,_.transform(I),b.transform(I),b.toArray(u[0]),_.toArray(u[1]),x.toArray(u[2]))}T(u,t.get("minTurnAngle")),i.setShape({points:u})}}}var I=[],A=new n.Z;function T(e,t){if(t<=180&&t>0){t=t/180*Math.PI,x.fromArray(e[0]),_.fromArray(e[1]),b.fromArray(e[2]),n.Z.sub(S,x,_),n.Z.sub(M,b,_);var i=S.len(),o=M.len();if(!(i<.001)&&!(o<.001)&&(S.scale(1/i),M.scale(1/o),Math.cos(t)<S.dot(M))){var a=m(_.x,_.y,b.x,b.y,x.x,x.y,I,!1);A.fromArray(I),A.scaleAndAdd(M,a/Math.tan(Math.PI-t));var r=b.x!==_.x?(A.x-_.x)/(b.x-_.x):(A.y-_.y)/(b.y-_.y);if(isNaN(r))return;r<0?n.Z.copy(A,_):r>1&&n.Z.copy(A,b),A.toArray(e[1])}}}function C(e,t,i){if(i<=180&&i>0){i=i/180*Math.PI,x.fromArray(e[0]),_.fromArray(e[1]),b.fromArray(e[2]),n.Z.sub(S,_,x),n.Z.sub(M,b,_);var o=S.len(),a=M.len();if(!(o<.001)&&!(a<.001)&&(S.scale(1/o),M.scale(1/a),S.dot(t)<Math.cos(i))){var r=m(_.x,_.y,b.x,b.y,x.x,x.y,I,!1);A.fromArray(I);var s=Math.PI/2,l=s+Math.acos(M.dot(t))-i;if(l>=s)n.Z.copy(A,b);else{A.scaleAndAdd(M,r/Math.tan(Math.PI/2-l));var u=b.x!==_.x?(A.x-_.x)/(b.x-_.x):(A.y-_.y)/(b.y-_.y);if(isNaN(u))return;u<0?n.Z.copy(A,_):u>1&&n.Z.copy(A,b)}A.toArray(e[1])}}}function D(e,t,i,n){var o="normal"===i,a=o?e:e.ensureState(i);a.ignore=t;var r=n.get("smooth");r&&!0===r&&(r=.3),a.shape=a.shape||{},r>0&&(a.shape.smooth=r);var s=n.getModel("lineStyle").getLineStyle();o?e.useStyle(s):a.style=s}function Z(e,t){var i=t.smooth,n=t.points;if(n){if(e.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var o=h.dist(n[0],n[1]),a=h.dist(n[1],n[2]);if(!o||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var r=Math.min(o,a)*i,s=h.lerp([],n[1],n[0],r/o),l=h.lerp([],n[1],n[2],r/a),u=h.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],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}}function L(e,t,i){var n=e.getTextGuideLine(),o=e.getTextContent();if(!o){n&&e.removeTextGuideLine();return}for(var r=t.normal,s=r.get("show"),l=o.ignore,c=0;c<p.qc.length;c++){var h=p.qc[c],d=t[h],g="normal"===h;if(d){var f=d.get("show");if((g?l:(0,u.retrieve2)(o.states[h]&&o.states[h].ignore,l))||!(0,u.retrieve2)(f,s)){var m=g?n:n&&n.states[h];m&&(m.ignore=!0),n&&D(n,!0,h,d);continue}!n&&(n=new a.Z,e.setTextGuideLine(n),g||!l&&s||D(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),D(n,!1,h,d)}}if(n){(0,u.defaults)(n.style,i),n.style.fill=null;var y=r.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=y||!1,n.buildPath=Z}}function O(e,t){t=t||"labelLine";for(var i={normal:e.getModel(t)},n=0;n<p.L1.length;n++){var o=p.L1[n];i[o]=e.getModel([o,t])}return i}},13706:function(e,t,i){i.d(t,{Z:()=>s});var n=i(67975),o=i(93149),a=i(97384),r=i(98845);function s(e,t){return{seriesType:e,plan:(0,o.Z)(),reset:function(e){var i=e.getData(),o=e.coordinateSystem,s=e.pipelineContext,l=t||s.large;if(o){var u=(0,n.map)(o.dimensions,function(e){return i.mapDimension(e)}).slice(0,2),c=u.length,h=i.getCalculationInfo("stackResultDimension");(0,a.M)(i,u[0])&&(u[0]=h),(0,a.M)(i,u[1])&&(u[1]=h);var p=i.getStore(),d=i.getDimensionIndex(u[0]),g=i.getDimensionIndex(u[1]);return c&&{progress:function(e,t){for(var i=e.end-e.start,n=l&&(0,r.o)(i*c),a=[],s=[],u=e.start,h=0;u<e.end;u++){var f=void 0;if(1===c){var m=p.get(d,u);f=o.dataToPoint(m,null,s)}else a[0]=p.get(d,u),a[1]=p.get(g,u),f=o.dataToPoint(a,null,s);l?(n[h++]=f[0],n[h++]=f[1]):t.setItemLayout(u,f.slice())}l&&t.setLayout("points",n)}}}}}}},31260:function(e,t,i){i.d(t,{Z:()=>n});function n(e){return{seriesType:e,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(i&&i.length){var n=e.getData();n.filterSelf(function(e){for(var t=n.getName(e),o=0;o<i.length;o++)if(!i[o].isSelected(t))return!1;return!0})}}}}},26435:function(e,t,i){i.d(t,{Z:()=>n});let n=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}()},89125:function(e,t,i){i.d(t,{Z:()=>x});var n=i(67975),o=i(54411),a=i(82517),r=n.each,s=n.isObject,l=function(){function e(t){var i,o,a=t.mappingMethod,s=t.type,l=this.option=n.clone(t);this.type=s,this.mappingMethod=a,this._normalizeData=v[a];var c=e.visualHandlers[s];this.applyVisual=c.applyVisual,this.getColorMapper=c.getColorMapper,this._normalizedToVisual=c._normalizedToVisual[a],"piecewise"===a?(u(l),o=(i=l).pieceList,i.hasSpecialVisual=!1,n.each(o,function(e,t){e.originIndex=t,null!=e.visual&&(i.hasSpecialVisual=!0)})):"category"===a?l.categories?function(e){var t=e.categories,i=e.categoryMap={},o=e.visual;if(r(t,function(e,t){i[e]=t}),!n.isArray(o)){var a=[];n.isObject(o)?r(o,function(e,t){var n=i[t];a[null!=n?n:-1]=e}):a[-1]=o,o=y(e,a)}for(var s=t.length-1;s>=0;s--)null==o[s]&&(delete i[t[s]],t.pop())}(l):u(l,!0):(n.assert("linear"!==a||l.dataExtent),u(l))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return n.bind(this._normalizeData,this)},e.listVisualTypes=function(){return n.keys(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,i){n.isObject(e)?n.each(e,t,i):t.call(i,e)},e.mapVisual=function(t,i,o){var a,r=n.isArray(t)?[]:n.isObject(t)?{}:(a=!0,null);return e.eachVisual(t,function(e,t){var n=i.call(o,e,t);a?r=n:r[t]=n}),r},e.retrieveVisuals=function(t){var i,n={};return t&&r(e.visualHandlers,function(e,o){t.hasOwnProperty(o)&&(n[o]=t[o],i=!0)}),i?n:null},e.prepareVisualTypes=function(e){if(n.isArray(e))e=e.slice();else{if(!s(e))return[];var t=[];r(e,function(e,i){t.push(i)}),e=t}return e.sort(function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1}),e},e.dependsOn=function(e,t){return"color"===t?!!(e&&0===e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,i){for(var o,a=1/0,r=0,s=t.length;r<s;r++){var l=t[r].value;if(null!=l){if(l===e||n.isString(l)&&l===e+"")return r;i&&w(l,r)}}for(var r=0,s=t.length;r<s;r++){var u,c,h,p,d,g,f,m,y,v,x,_,b=t[r],S=b.interval,M=b.close;if(S){if(S[0]===-1/0){if(u=M[1],c=e,h=S[1],u?c<=h:c<h)return r}else if(S[1]===1/0){if(p=M[0],d=S[0],g=e,p?d<=g:d<g)return r}else{if(f=M[0],m=S[0],y=e,(f?m<=y:m<y)&&(v=M[1],x=e,_=S[1],v?x<=_:x<_))return r}i&&w(S[0],r),i&&w(S[1],r)}}if(i)return e===1/0?t.length-1:e===-1/0?0:o;function w(t,i){var n=Math.abs(t-e);n<a&&(a=n,o=i)}},e.visualHandlers={color:{applyVisual:p("color"),getColorMapper:function(){var e=this.option;return n.bind("category"===e.mappingMethod?function(e,t){return t||(e=this._normalizeData(e)),d.call(this,e)}:function(t,i,n){var a=!!n;return i||(t=this._normalizeData(t)),n=o.fastLerp(t,e.parsedVisual,n),a?n:o.stringify(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return o.stringify(o.fastLerp(e,this.option.parsedVisual),"rgba")},category:d,piecewise:function(e,t){var i=m.call(this,t);return null==i&&(i=o.stringify(o.fastLerp(e,this.option.parsedVisual),"rgba")),i},fixed:g}},colorHue:c(function(e,t){return o.modifyHSL(e,t)}),colorSaturation:c(function(e,t){return o.modifyHSL(e,null,t)}),colorLightness:c(function(e,t){return o.modifyHSL(e,null,null,t)}),colorAlpha:c(function(e,t){return o.modifyAlpha(e,t)}),decal:{applyVisual:p("decal"),_normalizedToVisual:{linear:null,category:d,piecewise:null,fixed:null}},opacity:{applyVisual:p("opacity"),_normalizedToVisual:f([0,1])},liftZ:{applyVisual:p("liftZ"),_normalizedToVisual:{linear:g,category:g,piecewise:g,fixed:g}},symbol:{applyVisual:function(e,t,i){i("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:h,category:d,piecewise:function(e,t){var i=m.call(this,t);return null==i&&(i=h.call(this,e)),i},fixed:g}},symbolSize:{applyVisual:p("symbolSize"),_normalizedToVisual:f([0,1])}},e}();function u(e,t){var i=e.visual,o=[];n.isObject(i)?r(i,function(e){o.push(e)}):null!=i&&o.push(i),t||1!==o.length||({color:1,symbol:1}).hasOwnProperty(e.type)||(o[1]=o[0]),y(e,o)}function c(e){return{applyVisual:function(t,i,n){var o=this.mapValueToVisual(t);n("color",e(i("color"),o))},_normalizedToVisual:f([0,1])}}function h(e){var t=this.option.visual;return t[Math.round((0,a.NU)(e,[0,1],[0,t.length-1],!0))]||{}}function p(e){return function(t,i,n){n(e,this.mapValueToVisual(t))}}function d(e){var t=this.option.visual;return t[this.option.loop&&-1!==e?e%t.length:e]}function g(){return this.option.visual[0]}function f(e){return{linear:function(t){return(0,a.NU)(t,e,this.option.visual,!0)},category:d,piecewise:function(t,i){var n=m.call(this,i);return null==n&&(n=(0,a.NU)(t,e,this.option.visual,!0)),n},fixed:g}}function m(e){var t=this.option,i=t.pieceList;if(t.hasSpecialVisual){var n=l.findPieceIndex(e,i),o=i[n];if(o&&o.visual)return o.visual[this.type]}}function y(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=n.map(t,function(e){return o.parse(e)||[0,0,0,1]})),t}var v={linear:function(e){return(0,a.NU)(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,i=l.findPieceIndex(e,t,!0);if(null!=i)return(0,a.NU)(i,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?-1:t},fixed:n.noop};let x=l},53835:function(e,t,i){i.d(t,{Z:()=>a});var n=i(67975),o={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]}};let a={get:function(e,t,i){var a=n.clone((o[e]||{})[t]);return i&&n.isArray(a)?a[a.length-1]:a}}},86750:function(e,t,i){i.d(t,{$p:()=>c,Z7:()=>h,jO:()=>u,qD:()=>l});var n=i(67975),o=i(89125),a=i(43928),r=n.each;function s(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function l(e,t,i){var a={};return r(t,function(t){var s,l=a[t]=((s=function(){}).prototype.__hidden=s.prototype,new s);r(e[t],function(e,a){if(o.Z.isValidType(a)){var r={type:a,visual:e};i&&i(r,t),l[a]=new o.Z(r),"opacity"===a&&((r=n.clone(r)).type="colorAlpha",l.__hidden.__alphaForOpacity=new o.Z(r))}})}),a}function u(e,t,i){var o;n.each(i,function(e){t.hasOwnProperty(e)&&s(t[e])&&(o=!0)}),o&&n.each(i,function(i){t.hasOwnProperty(i)&&s(t[i])?e[i]=n.clone(t[i]):delete e[i]})}function c(e,t,i,r,s,l){var u,c={};function h(e){return(0,a.Or)(i,u,e)}function p(e,t){(0,a.LZ)(i,u,e,t)}function d(e,n){u=null==l?e:n;var o=i.getRawDataItem(u);if(!o||!1!==o.visualMap)for(var a=r.call(s,e),d=t[a],g=c[a],f=0,m=g.length;f<m;f++){var y=g[f];d[y]&&d[y].applyVisual(e,h,p)}}n.each(e,function(e){var i=o.Z.prepareVisualTypes(t[e]);c[e]=i}),null==l?i.each(d):i.each([l],d)}function h(e,t,i,r){var s={};return n.each(e,function(e){var i=o.Z.prepareVisualTypes(t[e]);s[e]=i}),{progress:function(e,n){function o(e){return(0,a.Or)(n,c,e)}function l(e,t){(0,a.LZ)(n,c,e,t)}null!=r&&(u=n.getDimensionIndex(r));for(var u,c,h=n.getStore();null!=(c=e.next());){var p=n.getRawDataItem(c);if(!p||!1!==p.visualMap)for(var d=null!=r?h.get(u,c):c,g=i(d),f=t[g],m=s[g],y=0,v=m.length;y<v;y++){var x=m[y];f[x]&&f[x].applyVisual(d,o,l)}}}}}}}]);