@pulzr/perses-timeseries-panel 0.1.1 → 0.1.3
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.
- package/README.md +4 -2
- package/__mf/js/{PulzrTimeSeriesChart.eb206e7530.js → PulzrTimeSeriesChart.8af05eb298.js} +2 -2
- package/__mf/js/async/{0.a7a60859ff.js → 0.97d9b1e0c4.js} +2 -2
- package/__mf/js/async/{07.6a1ab71a6e.js → 07.f2f50f0b10.js} +2 -2
- package/__mf/js/async/{0p.4b7b7441bd.js → 0p.4e1d1fe39a.js} +2 -2
- package/__mf/js/async/{1.1bacdad3fc.js → 1.aceea72600.js} +2 -2
- package/__mf/js/async/{2.3c0601342d.js → 2.d99477aed1.js} +2 -2
- package/__mf/js/async/{24.4833014747.js → 24.317de98277.js} +1 -1
- package/__mf/js/async/{3.537049c421.js → 3.7d1614f6e7.js} +1 -1
- package/__mf/js/async/4.b3b501a5a4.js +1 -0
- package/__mf/js/async/{5.292f2ba515.js → 5.900dc50d56.js} +1 -1
- package/__mf/js/async/{6.01a0af5def.js → 6.91e38df626.js} +1 -1
- package/__mf/js/async/{6x.4f5157fcfd.js → 6x.fd1c612797.js} +1 -1
- package/__mf/js/async/{7.5c5a20a2ef.js → 7.dcc88aa9b6.js} +2 -2
- package/__mf/js/async/{9.d638f9ad72.js → 9.c3bada9a67.js} +1 -1
- package/__mf/js/async/{__federation_expose_PulzrTimeSeriesChart.1ecd3bfe63.js → __federation_expose_PulzrTimeSeriesChart.cde156b788.js} +1 -1
- package/__mf/js/async/{aw.0895f2e8a3.js → aw.70e118cbc9.js} +1 -1
- package/__mf/js/async/b.71a696a6e8.js +1 -0
- package/__mf/js/async/{c.9b7255b276.js → c.2d6088333b.js} +1 -1
- package/__mf/js/async/{f.80778b3699.js → f.96d3bb04bb.js} +2 -2
- package/__mf/js/async/{f6.818edc5319.js → f6.89ff65957d.js} +1 -1
- package/__mf/js/async/{g.55f4db5fa3.js → g.692bd4d1a6.js} +1 -1
- package/__mf/js/async/{i.6515de5494.js → i.e37122ab8c.js} +1 -1
- package/__mf/js/async/{k.af403a2f16.js → k.6b0ad1bfcf.js} +2 -2
- package/__mf/js/async/kk.2c9a7e0b39.js +1 -0
- package/__mf/js/async/{m.b2fd11df7f.js → m.4678fdbb11.js} +2 -2
- package/__mf/js/async/{n.e353fdf181.js → n.0f1729eb57.js} +1 -1
- package/__mf/js/async/{o.b195d1b760.js → o.0d3a98da9a.js} +1 -1
- package/__mf/js/async/{o8.2089f70780.js → o8.c61bd6ac39.js} +1 -1
- package/__mf/js/async/{os.649d2d1c69.js → os.ad10d51845.js} +2 -2
- package/__mf/js/async/{p.4e6cb48fdc.js → p.318393ba38.js} +2 -2
- package/__mf/js/async/{pj.d354a4b7a1.js → pj.99233c78ca.js} +1 -1
- package/__mf/js/async/{s.c12d54d939.js → s.d7727bb096.js} +1 -1
- package/__mf/js/async/{s9.a104a9bb13.js → s9.fb2e5e8a04.js} +1 -1
- package/__mf/js/async/{se.43e2e817e5.js → se.5e663361de.js} +2 -2
- package/__mf/js/async/{sp.4ba0c579a7.js → sp.0f633853b4.js} +1 -1
- package/__mf/js/async/{sr.a7a17e65dd.js → sr.19b889668c.js} +1 -1
- package/__mf/js/async/{t.37b5b07b14.js → t.d2b9f3a9ba.js} +1 -1
- package/__mf/js/async/{tl.b9dcf8fd67.js → tl.924f906110.js} +1 -1
- package/__mf/js/async/{uz.0a77ef6b1c.js → uz.0d07cc3f87.js} +1 -1
- package/__mf/js/async/{x.c93331fb46.js → x.d9c364c1d4.js} +1 -1
- package/__mf/js/async/{xr.22c10fba88.js → xr.87b81c2efb.js} +1 -1
- package/__mf/js/async/{y.421fe538ec.js → y.cc71ee1d51.js} +1 -1
- package/__mf/js/async/{yk.5db25f8283.js → yk.b74f365b85.js} +2 -2
- package/__mf/js/{main.2f3f6601d3.js → main.ad2fd370ef.js} +2 -2
- package/lib/TimeSeriesChartPanel.d.ts.map +1 -1
- package/lib/TimeSeriesChartPanel.js +2 -2
- package/lib/TimeSeriesChartPanel.js.map +1 -1
- package/lib/time-series-chart-model.d.ts +2 -0
- package/lib/time-series-chart-model.d.ts.map +1 -1
- package/lib/time-series-chart-model.js.map +1 -1
- package/lib/utils/data-transform.d.ts +13 -0
- package/lib/utils/data-transform.d.ts.map +1 -1
- package/lib/utils/data-transform.js +43 -0
- package/lib/utils/data-transform.js.map +1 -1
- package/mf-manifest.json +42 -42
- package/mf-stats.json +42 -42
- package/package.json +1 -1
- package/__mf/js/async/4.94dedfde28.js +0 -1
- package/__mf/js/async/b.9153abdadc.js +0 -1
- package/__mf/js/async/kk.7ef2f70c52.js +0 -1
- /package/__mf/js/async/{0.a7a60859ff.js.LICENSE.txt → 0.97d9b1e0c4.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{07.6a1ab71a6e.js.LICENSE.txt → 07.f2f50f0b10.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{0p.4b7b7441bd.js.LICENSE.txt → 0p.4e1d1fe39a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1.1bacdad3fc.js.LICENSE.txt → 1.aceea72600.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2.3c0601342d.js.LICENSE.txt → 2.d99477aed1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7.5c5a20a2ef.js.LICENSE.txt → 7.dcc88aa9b6.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{f.80778b3699.js.LICENSE.txt → f.96d3bb04bb.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{k.af403a2f16.js.LICENSE.txt → k.6b0ad1bfcf.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{m.b2fd11df7f.js.LICENSE.txt → m.4678fdbb11.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{os.649d2d1c69.js.LICENSE.txt → os.ad10d51845.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{p.4e6cb48fdc.js.LICENSE.txt → p.318393ba38.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{se.43e2e817e5.js.LICENSE.txt → se.5e663361de.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{yk.5db25f8283.js.LICENSE.txt → yk.b74f365b85.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.chunk_PulzrTimeSeriesChart_0_1_1=self.chunk_PulzrTimeSeriesChart_0_1_1||[]).push([["tl"],{Qe(e,t,i){var n=i("iY"),r=i("uS"),a=i("W5"),o=(0,i("xN").$r)(),l=["percent","easing","shape","style","extra"];i.d(t,{},{$:function(e){e.stopAnimation("keyframe"),e.attr(o(e))},L:function e(t,i,s){if(s.isAnimationEnabled()&&i){if((0,n.isArray)(i))return void(0,n.each)(i,function(i){e(t,i,s)});var u=i.keyframes,c=i.duration;if(s&&null==c){var h=(0,a.Jw)("enter",s,0);c=h&&h.duration}if(u&&c){var d=o(t);(0,n.each)(r.rd,function(e){var r;e&&!t[e]||(u.sort(function(e,t){return e.percent-t.percent}),(0,n.each)(u,function(a){var o=t.animators,s=e?a[e]:a;if(s){var u=(0,n.keys)(s);if(e||(u=(0,n.filter)(u,function(e){return 0>(0,n.indexOf)(l,e)})),u.length){r||((r=t.animate(e,i.loop,!0)).scope="keyframe");for(var h=0;h<o.length;h++)o[h]!==r&&o[h].targetName===r.targetName&&o[h].stopTracks(u);e&&(d[e]=d[e]||{});var p=e?d[e]:d;(0,n.each)(u,function(i){p[i]=((e?t[e]:t)||{})[i]}),r.whenWithKeys(c*a.percent,s,u,a.easing)}}}),r&&r.delay(i.delay||0).duration(c).start(i.easing))})}}}})},uS(e,t,i){var n=i("xN"),r=i("iY"),a=i("oi"),o=i("el"),l=i("W5"),s=i("Pk"),u=i("P7"),c={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},h=(0,r.keys)(c);(0,r.reduce)(u.Wx,function(e,t){return e[t]=1,e},{}),u.Wx.join(", ");var d=["","style","shape","extra"],p=(0,n.$r)();function g(e,t,i,n,a){var o=e+"Animation",s=(0,l.Jw)(e,n,a)||{},u=p(t).userDuring;return s.duration>0&&(s.during=u?(0,r.bind)(x,{el:t,userDuring:u}):null,s.setToFinal=!0,s.scope=e),(0,r.extend)(s,i[o]),s}function f(e,t){for(var i=p(e).leaveToProps,n=0;n<d.length;n++){var a=d[n],o=a?t[a]:t;o&&o.leaveTo&&(i||(i=p(e).leaveToProps={}),a&&(i[a]=i[a]||{}),(0,r.extend)(a?i[a]:i,o.leaveTo))}}function v(e){return"all"===e}var y={},m={setTransform:function(e,t){return y.el[e]=t,this},getTransform:function(e){return y.el[e]},setShape:function(e,t){var i=y.el;return(i.shape||(i.shape={}))[e]=t,i.dirtyShape&&i.dirtyShape(),this},getShape:function(e){var t=y.el.shape;if(t)return t[e]},setStyle:function(e,t){var i=y.el,n=i.style;return n&&(n[e]=t,i.dirtyStyle&&i.dirtyStyle()),this},getStyle:function(e){var t=y.el.style;if(t)return t[e]},setExtra:function(e,t){return(y.el.extra||(y.el.extra={}))[e]=t,this},getExtra:function(e){var t=y.el.extra;if(t)return t[e]}};function x(){var e=this.el;if(e){var t=p(e).userDuring,i=this.userDuring;if(t!==i){this.el=this.userDuring=null;return}y.el=e,i(m)}}function S(e,t,i,a){var o,l=i[e];if(l){var s=t[e];if(s){var u=i.transition,c=l.transition;if(c)if(o||(o=a[e]={}),v(c))(0,r.extend)(o,s);else for(var h=(0,n.qB)(c),d=0;d<h.length;d++){var p=h[d],g=s[p];o[p]=g}else if(v(u)||(0,r.indexOf)(u,e)>=0){o||(o=a[e]={});for(var f=(0,r.keys)(s),d=0;d<f.length;d++){var y,m,p=f[d],g=s[p];y=l[p],m=g,((0,r.isArrayLike)(y)?y!==m:null!=y&&isFinite(y))&&(o[p]=g)}}}}}function w(e,t,i){var n=t[e];if(n)for(var o=i[e]={},l=(0,r.keys)(n),s=0;s<l.length;s++){var u=l[s];o[u]=(0,a.F)(n[u])}}i.d(t,{},{aB:f,h8:function(e,t,i,n){if(e){var r=e.parent,a=p(e).leaveToProps;if(a){var o=g("update",e,t,i,0);o.done=function(){r&&r.remove(e),n&&n()},e.animateTo(a,o)}else r&&r.remove(e),n&&n()}},ho:v,rd:d,rh:function(e,t,i,a){var l,y,m=(a=a||{}).dataIndex,x=a.isInit,b=a.clearStyle,A=i.isAnimationEnabled(),M=p(e),I=t.style;M.userDuring=t.during;var _={},C={};if(function(e,t){for(var i=0;i<h.length;i++){var n=h[i],r=c[n],a=e[n];a&&(t[r[0]]=a[0],t[r[1]]=a[1])}for(var i=0;i<u.Wx.length;i++){var o=u.Wx[i];null!=e[o]&&(t[o]=e[o])}}(t,C),"compound"===e.type)for(var O=e.shape.paths,L=t.shape.paths,T=0;T<L.length;T++)w("shape",L[T],O[T]);else w("shape",t,C),w("extra",t,C);if(!x&&A&&(function(e,t,i){for(var r=t.transition,a=v(r)?u.Wx:(0,n.qB)(r||[]),o=0;o<a.length;o++){var l=a[o];if("style"!==l&&"shape"!==l&&"extra"!==l){var s=e[l];i[l]=s}}}(e,t,_),S("shape",e,t,_),S("extra",e,t,_),function(e,t,i,a){if(i){var o,l=e.style;if(l){var s=i.transition,u=t.transition;if(s&&!v(s)){var c=(0,n.qB)(s);o||(o=a.style={});for(var h=0;h<c.length;h++){var d=c[h],p=l[d];o[d]=p}}else if(e.getAnimationStyleProps&&(v(u)||v(s)||(0,r.indexOf)(u,"style")>=0)){var g=e.getAnimationStyleProps(),f=g?g.style:null;if(f){o||(o=a.style={});for(var y=(0,r.keys)(i),h=0;h<y.length;h++){var d=y[h];if(f[d]){var p=l[d];o[d]=p}}}}}}}(e,t,I,_)),C.style=I,function(e,t,i){var n=t.style;if(!e.isGroup&&n){if(i){e.useStyle({});for(var r=e.animators,a=0;a<r.length;a++){var o=r[a];"style"===o.targetName&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}(e,C,b),l=e,y=t,(0,r.hasOwn)(y,"silent")&&(l.silent=y.silent),(0,r.hasOwn)(y,"ignore")&&(l.ignore=y.ignore),l instanceof o.Ay&&(0,r.hasOwn)(y,"invisible")&&(l.invisible=y.invisible),l instanceof s.Ay&&(0,r.hasOwn)(y,"autoBatch")&&(l.autoBatch=y.autoBatch),A)if(x){var P={};(0,r.each)(d,function(e){var i=e?t[e]:t;i&&i.enterFrom&&(e&&(P[e]=P[e]||{}),(0,r.extend)(e?P[e]:P,i.enterFrom))});var D=g("enter",e,t,i,m);D.duration>0&&e.animateFrom(P,D)}else{var V=e,k=t,z=m||0,R=i,N=_;if(N){var B=g("update",V,k,R,z);B.duration>0&&V.animateFrom(N,B)}}f(e,t),I?e.dirty():e.markRedraw()}})},Q6(e,t,i){i.d(t,{a:()=>ed});var n=i("i4"),r=i("hy"),a=i("xN"),o=i("yd"),l={color:"fill",borderColor:"stroke"},s={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},u=(0,a.$r)(),c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return(0,r.A)(null,this)},t.prototype.getDataParams=function(t,i,n){var r=e.prototype.getDataParams.call(this,t,i);return n&&(r.info=u(n).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(o.A),h=i("iY"),d=i("Pk"),p=i("uf"),g=i("s5"),f=i("s2"),v=i("jZ"),y=i("zY"),m=i("LP"),x=i("F4"),S=i("g2"),w=i("nT"),b=i("YQ"),A=i("WN9"),M=i("hHP"),I=i("lN");function _(e,t){return t=t||[0,0],h.map(["x","y"],function(i,n){var r=this.getAxis(i),a=t[n],o=e[n]/2;return"category"===r.type?(0,I.D)(r).w:Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))},this)}var C=i("uc");function O(e,t){return t=t||[0,0],h.map([0,1],function(i){var n=t[i],r=e[i]/2,a=[],o=[];return a[i]=n-r,o[i]=n+r,a[1-i]=o[1-i]=t[1-i],Math.abs(this.dataToPoint(a)[i]-this.dataToPoint(o)[i])},this)}function L(e,t){var i=this.getAxis(),n=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===i.type?(0,I.D)(i).w:Math.abs(i.dataToCoord(n-r)-i.dataToCoord(n+r))}function T(e,t){return t=t||[0,0],h.map(["Radius","Angle"],function(i,n){var r=this["get"+i+"Axis"](),a=t[n],o=e[n]/2,l="category"===r.type?(0,I.D)(r).w:Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o));return"Angle"===i&&(l=l*Math.PI/180),l},this)}var P=i("el"),D=i("ZJ"),V=i("nXY"),k=i("Upd"),z=i("uS"),R=i("Qe"),N=i("LV"),B=i("g8w"),E="emphasis",G="normal",W="blur",H="select",F=[G,E,W,H],Y={normal:["itemStyle"],emphasis:[E,"itemStyle"],blur:[W,"itemStyle"],select:[H,"itemStyle"]},Z={normal:["label"],emphasis:[E,"label"],blur:[W,"label"],select:[H,"label"]},X=["x","y"],q={normal:{},emphasis:{},blur:{},select:{}},U={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:h.bind(_,e)}}},geo:function(e){var t=e.view,i=t.getBoundingRect();return{coordSys:{type:"geo",x:i.x,y:i.y,width:i.width,height:i.height,zoom:(0,C._)(t)},api:{coord:function(t){return e.dataToPoint(t)},size:h.bind(O,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:(0,h.bind)(L,e)}}},polar:function(e){var t=e.getRadiusAxis(),i=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(n){var r=t.dataToRadius(n[0]),a=i.dataToAngle(n[1]),o=e.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o},size:h.bind(T,e)}}},calendar:function(e){var t=e.getRect(),i=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(t,i){return e.dataToPoint(t,i)},layout:function(t,i){return e.dataToLayout(t,i)}}}},matrix:function(e){var t=e.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,i){return e.dataToPoint(t,i)},layout:function(t,i){return e.dataToLayout(t,i)}}}}};function J(e){return e instanceof d.Ay}function K(e){return e instanceof P.Ay}var j=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.render=function(e,t,i,n){this._progressiveEls=null;var r=this._data,a=e.getData(),o=this.group,l=et(e,a,t,i);r||o.removeAll(),a.diff(r).add(function(t){ei(i,null,t,l(t,n),e,o,a)}).remove(function(t){var i=r.getItemGraphicEl(t);i&&(0,z.h8)(i,u(i).option,e)}).update(function(t,s){ei(i,r.getItemGraphicEl(s),t,l(t,n),e,o,a)}).execute();var s=e.get("clip",!0)?(0,M.Ip)(e.coordinateSystem,!1,e):null;s?o.setClipPath(s):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,i,n,r){var o=t.getData(),l=et(t,o,i,n),s=this._progressiveEls=[];function u(e){e.isGroup||(e.incremental=(0,a.i2)(t),e.ensureState("emphasis").hoverLayer=p.HOVER_LAYER_FOR_INCREMENTAL)}for(var c=e.start;c<e.end;c++){var h=ei(null,null,c,l(c,r),t,this.group,o);h&&(h.traverse(u),s.push(h))}},t.prototype.eachRendered=function(e){p.traverseElements(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,i,n){var r=t.element;if(null==r||i.name===r)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===r)return!0;return!1},t.type="custom",t}(A.A);function $(e){var t,i=e.type;if("path"===i){var n=e.shape,r=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=eh(n);u(t=p.makePath(a,null,r,n.layout||"center")).customPathData=a}else if("image"===i)u(t=new g.Ay({})).customImagePath=e.style.image;else if("text"===i)t=new f.Ay({});else if("group"===i)t=new v.A;else if("compoundPath"===i){var n=e.shape;if(!n||!n.paths){var o="";(0,V.$8)(o)}var l=(0,h.map)(n.paths,function(e){if("path"===e.type)return p.makePath(e.shape.pathData,e,null);var t=p.getShapeClass(e.type);return t||(0,V.$8)(""),new t});t=new y.A({shape:{paths:l}})}else{var s=p.getShapeClass(i);if(!s){var o="";(0,V.$8)(o)}t=new s}return u(t).customGraphicType=i,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Q(e,t,i,n,r,a,o){(0,R.$)(t);var l=r&&r.normal.cfg;l&&t.setTextConfig(l),n&&null==n.transition&&(n.transition=X);var s=n&&n.style;if(s){"text"===t.type&&((0,h.hasOwn)(s,"textFill")&&(s.fill=s.textFill),(0,h.hasOwn)(s,"textStroke")&&(s.stroke=s.textStroke));var u=void 0,c=J(t)?s.decal:null;e&&c&&(c.dirty=!0,u=(0,k.w)(c,e)),s.__decalPattern=u}if(K(t)&&s){var u=s.__decalPattern;u&&(s.decal=u)}(0,z.rh)(t,n,a,{dataIndex:i,isInit:o,clearStyle:!0}),(0,R.L)(t,n.keyframeAnimation,a)}function ee(e,t,i,n,r){var a=t.isGroup?null:t,o=r&&r[e].cfg;if(a){var l=a.ensureState(e);if(!1===n){var s=a.getState(e);s&&(s.style=null)}else l.style=n||null;o&&(l.textConfig=o),(0,m.DW)(a)}}function et(e,t,i,n){var r,a,o,u,c=e.get("renderItem");if("string"==typeof c){var d=(0,N.Z)(c);d&&(c=d)}var p=e.coordinateSystem,g={};p&&(g=p.prepareCustoms?p.prepareCustoms(p):U[p.type](p));for(var f=(0,h.defaults)({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(e,i){return null==i&&(i=o),t.getStore().get(t.getDimensionIndex(e||0),i)},style:function(i,n){null==n&&(n=o);var r=t.getItemVisual(n,"style"),a=r&&r.fill,l=r&&r.opacity,s=C(n,G).getItemStyle();null!=a&&(s.fill=a),null!=l&&(s.opacity=l);var u={inheritColor:(0,h.isString)(a)?a:B.A.color.neutral99},c=O(n,G),d=x.VB(c,null,u,!1,!0);d.text=c.getShallow("show")?(0,h.retrieve2)(e.getFormattedLabel(n,G),(0,S.i)(t,n)):null;var p=x.sD(c,u,!1);return T(i,s),s=(0,D.Fs)(s,d,p),i&&L(s,i),s.legacy=!0,s},ordinalRawValue:function(e,i){null==i&&(i=o),e=e||0;var n=t.getDimensionInfo(e);if(!n){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,i):void 0}var a=t.get(n.name,i),l=n&&n.ordinalMeta;return l?l.categories[a]:a},styleEmphasis:function(i,n){null==n&&(n=o);var r=C(n,E).getItemStyle(),a=O(n,E),l=x.VB(a,null,null,!0,!0);l.text=a.getShallow("show")?(0,h.retrieve3)(e.getFormattedLabel(n,E),e.getFormattedLabel(n,G),(0,S.i)(t,n)):null;var s=x.sD(a,null,!0);return T(i,r),r=(0,D.Fs)(r,l,s),i&&L(r,i),r.legacy=!0,r},visual:function(e,i){if(null==i&&(i=o),(0,h.hasOwn)(l,e)){var n=t.getItemVisual(i,"style");return n?n[l[e]]:null}if((0,h.hasOwn)(s,e))return t.getItemVisual(i,e)},barLayout:function(e){if("cartesian2d"===p.type){var t=p.getBaseAxis();return(0,w.aR)((0,h.defaults)({axis:t},e))}},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(e){return x.c8(e,i)}},g.api||{}),v={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:g.coordSys,dataInsideLength:t.count(),encode:(r=e.getData(),a={},(0,h.each)(r.dimensions,function(e){var t=r.getDimensionInfo(e);if(!t.isExtraCoord){var i=t.coordDim;(a[i]=a[i]||[])[t.coordDimIndex]=r.getDimensionIndex(e)}}),a),itemPayload:e.get("itemPayload")||{}},y={},m={},b={},A={},M=0;M<F.length;M++){var I=F[M];b[I]=e.getModel(Y[I]),A[I]=e.getModel(Z[I])}function _(e){return e===o?u||(u=t.getItemModel(e)):t.getItemModel(e)}function C(e,i){return t.hasItemOption?e===o?y[i]||(y[i]=_(e).getModel(Y[i])):_(e).getModel(Y[i]):b[i]}function O(e,i){return t.hasItemOption?e===o?m[i]||(m[i]=_(e).getModel(Z[i])):_(e).getModel(Z[i]):A[i]}return function(e,i){return o=e,u=null,y={},m={},c&&c((0,h.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:i?i.type:null},v),f)};function L(e,t){for(var i in t)(0,h.hasOwn)(t,i)&&(e[i]=t[i])}function T(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function ei(e,t,i,n,r,a,o){if(!n)return void a.remove(t);var l=en(e,t,i,n,r,a);return l&&o.setItemGraphicEl(i,l),l&&(0,m.Lm)(l,n.focus,n.blurScope,n.emphasisDisabled),l}function en(e,t,i,n,r,a){var o,l=-1,s=t;t&&er(t,n,r)&&(l=(0,h.indexOf)(a.childrenRef(),t),t=null);var c=!t,d=t;d?d.clearStates():(d=$(n),s&&((o=d).copyTransform(s),K(o)&&K(s)&&(o.setStyle(s.style),o.z=s.z,o.z2=s.z2,o.zlevel=s.zlevel,o.invisible=s.invisible,o.ignore=s.ignore,J(o)&&J(s)&&o.setShape(s.shape)))),!1===n.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),n.tooltipDisabled&&(d.tooltipDisabled=!0),q.normal.cfg=q.normal.conOpt=q.emphasis.cfg=q.emphasis.conOpt=q.blur.cfg=q.blur.conOpt=q.select.cfg=q.select.conOpt=null,q.isLegacy=!1,function(e,t,i,n,r,a){if(!e.isGroup&&"compoundPath"!==e.type){ea(i,null,a),ea(i,E,a);var o=a.normal.conOpt,l=a.emphasis.conOpt,s=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=l||null!=u||null!=s){var c=e.getTextContent();if(!1===o)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=$(o),e.setTextContent(c)),Q(null,c,t,o,null,n,r);for(var h=o&&o.style,d=0;d<F.length;d++){var p=F[d];if(p!==G){var g=a[p].conOpt;ee(p,c,g,el(o,g,p),null)}}h?c.dirty():c.markRedraw()}}}}(d,i,n,r,c,q),function(e,t,i,n,r){var a=i.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&er(o,a,n)&&(o=null),o||(o=$(a),e.setClipPath(o)),Q(null,o,t,a,null,n,r)}}(d,i,n,r,c),Q(e,d,i,n,q,r,c),(0,h.hasOwn)(n,"info")&&(u(d).info=n.info);for(var p=0;p<F.length;p++){var g=F[p];if(g!==G){var f=eo(n,g),v=el(n,f,g);ee(g,d,f,v,q)}}var y=d;if(!y.isGroup){var m=r.currentZ,x=r.currentZLevel;y.z=m,y.zlevel=x;var S=n.z2;null!=S&&(y.z2=S||0);for(var w=0;w<F.length;w++)!function(e,t,i){var n=i===G,r=n?t:eo(t,i),a=r?r.z2:null;null!=a&&((n?e:e.ensureState(i)).z2=a||0)}(y,n,F[w])}return"group"===n.type&&function(e,t,i,n,r){var a=n.children,o=a?a.length:0,l=n.$mergeChildren,s="byName"===l||n.diffChildrenByName,c=!1===l;if(o||s||c){if(s){return f={api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:i,seriesModel:r,group:t},new b.A(f.oldChildren,f.newChildren,es,es,f).add(eu).update(eu).remove(ec).execute()}c&&t.removeAll();for(var h=0;h<o;h++){var d=a[h],p=t.childAt(h);d?(null==d.ignore&&(d.ignore=!1),en(e,p,i,d,r,t)):p.ignore=!0}for(var g=t.childCount()-1;g>=h;g--){var f,v,y,m,x=t.childAt(g);v=t,y=x,m=r,y&&(0,z.h8)(y,u(v).option,m)}}}(e,d,i,n,r),l>=0?a.replaceAt(d,l):a.add(d),d}function er(e,t,i){var n,r=u(e),a=t.type,o=t.shape,l=t.style;return i.isUniversalTransitionEnabled()||null!=a&&a!==r.customGraphicType||"path"===a&&(n=o)&&((0,h.hasOwn)(n,"pathData")||(0,h.hasOwn)(n,"d"))&&eh(o)!==r.customPathData||"image"===a&&(0,h.hasOwn)(l,"image")&&l.image!==r.customImagePath}function ea(e,t,i){var n=t?eo(e,t):e,r=t?el(e,n,E):e.style,a=e.type,o=n?n.textConfig:null,l=e.textContent,s=l?t?eo(l,t):l:null;if(r&&(i.isLegacy||(0,D.ex)(r,a,!!o,!!s))){i.isLegacy=!0;var u=(0,D.lH)(r,a,!t);!o&&u.textConfig&&(o=u.textConfig),!s&&u.textContent&&(s=u.textContent)}if(!t&&s){var c=s;c.type||(c.type="text")}var h=t?i[t]:i.normal;h.cfg=o,h.conOpt=s}function eo(e,t){return t?e?e[t]:null:e}function el(e,t,i){var n=t&&t.style;return null==n&&i===E&&e&&(n=e.styleEmphasis),n}function es(e,t){var i=e&&e.name;return null!=i?i:"e\0\0"+t}function eu(e,t){var i=this.context,n=null!=e?i.newChildren[e]:null,r=null!=t?i.oldChildren[t]:null;en(i.api,r,i.dataIndex,n,i.seriesModel,i.group)}function ec(e){var t=this.context,i=t.oldChildren[e];i&&(0,z.h8)(i,u(i).option,t.seriesModel)}function eh(e){return e&&(e.pathData||e.d)}function ed(e){e.registerChartView(j),e.registerSeriesModel(c)}},FJ(e,t,i){i.d(t,{a:()=>O});var n=i("i4"),r=i("Pk"),a=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},o=function(e){function t(t){var i=e.call(this,t)||this;return i.type="pointer",i}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var i=Math.cos,n=Math.sin,r=t.r,a=t.width,o=t.angle,l=t.x-i(o)*a*(a>=r/3?1:2),s=t.y-n(o)*a*(a>=r/3?1:2);o=t.angle-Math.PI/2,e.moveTo(l,s),e.lineTo(t.x+i(o)*a,t.y+n(o)*a),e.lineTo(t.x+i(t.angle)*r,t.y+n(t.angle)*r),e.lineTo(t.x-i(o)*a,t.y-n(o)*a),e.lineTo(l,s)},t}(r.Ay),l=i("Qz"),s=i("xz"),u=i("s2"),c=i("W5"),h=i("jZ"),d=i("LP"),p=i("F4"),g=i("WN9"),f=i("MB"),v=i("fC"),y=i("up"),m=i("s5"),x=i("iY"),S=i("FL"),w=i("Ig");function b(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 A=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.render=function(e,t,i){this.group.removeAll();var n,r,a=e.get(["axisLine","lineStyle","color"]),o=(n=e.get("center"),r=Math.min(i.getWidth(),i.getHeight()),{cx:(0,f.lo)(n[0],i.getWidth()),cy:(0,f.lo)(n[1],i.getHeight()),r:(0,f.lo)(e.get("radius"),r/2)});this._renderMain(e,t,i,a,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,i,n,r){var a=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap")?v.A:l.A,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),f=[s,u];(0,w.q)(f,!o),s=f[0];for(var y=(u=f[1])-s,m=s,S=[],b=0;d&&b<n.length;b++){var A=new h({shape:{startAngle:m,endAngle:u=s+y*Math.min(Math.max(n[b][0],0),1),cx:r.cx,cy:r.cy,clockwise:o,r0:r.r-g,r:r.r},silent:!0});A.setStyle({fill:n[b][1]}),A.setStyle(p.getLineStyle(["color","width"])),S.push(A),m=u}S.reverse(),(0,x.each)(S,function(e){return a.add(e)});var M=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,M,r,s,u,o,g),this._renderTitleAndDetail(e,t,i,M,r),this._renderAnchor(e,r),this._renderPointer(e,t,i,M,r,s,u,o,g)},t.prototype._renderTicks=function(e,t,i,n,r,a,o,l,c){for(var h,d,g=this.group,v=r.cx,y=r.cy,m=r.r,S=+e.get("min"),w=+e.get("max"),A=e.getModel("splitLine"),M=e.getModel("axisTick"),I=e.getModel("axisLabel"),_=e.get("splitNumber"),C=M.get("splitNumber"),O=(0,f.lo)(A.get("length"),m),L=(0,f.lo)(M.get("length"),m),T=a,P=(o-a)/_,D=P/C,V=A.getModel("lineStyle").getLineStyle(),k=M.getModel("lineStyle").getLineStyle(),z=A.get("distance"),R=0;R<=_;R++){if(h=Math.cos(T),d=Math.sin(T),A.get("show")){var N=z?z+c:c,B=new s.A({shape:{x1:h*(m-N)+v,y1:d*(m-N)+y,x2:h*(m-O-N)+v,y2:d*(m-O-N)+y},style:V,silent:!0});"auto"===V.stroke&&B.setStyle({stroke:n(R/_)}),g.add(B)}if(I.get("show")){var N=I.get("distance")+z,E=b((0,f.LI)(R*(w-S)/_+S,f.Rl),I.get("formatter")),G=n(R/_),W=h*(m-O-N)+v,H=d*(m-O-N)+y,F=I.get("rotate"),Y=0;"radial"===F?(Y=-T+2*Math.PI)>Math.PI/2&&(Y+=Math.PI):"tangential"===F?Y=-T-Math.PI/2:(0,x.isNumber)(F)&&(Y=F*Math.PI/180),0===Y?g.add(new u.Ay({style:(0,p.VB)(I,{text:E,x:W,y:H,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:G}),silent:!0})):g.add(new u.Ay({style:(0,p.VB)(I,{text:E,x:W,y:H,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:W,originY:H,rotation:Y}))}if(M.get("show")&&R!==_){var N=M.get("distance");N=N?N+c:c;for(var Z=0;Z<=C;Z++){h=Math.cos(T),d=Math.sin(T);var X=new s.A({shape:{x1:h*(m-N)+v,y1:d*(m-N)+y,x2:h*(m-L-N)+v,y2:d*(m-L-N)+y},silent:!0,style:k});"auto"===k.stroke&&X.setStyle({stroke:n((R+Z/C)/_)}),g.add(X),T+=D}T-=D}else T+=P}},t.prototype._renderPointer=function(e,t,i,n,r,a,s,u,h){var p=this.group,g=this._data,w=this._progressEls,b=[],A=e.get(["pointer","show"]),M=e.getModel("progress"),I=M.get("show"),_=e.getData(),C=_.mapDimension("value"),O=+e.get("min"),L=+e.get("max"),T=[O,L],P=[a,s];function D(t,i){var n,a=_.getItemModel(t).getModel("pointer"),l=(0,f.lo)(a.get("width"),r.r),s=(0,f.lo)(a.get("length"),r.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),h=(0,f.lo)(c[0],r.r),d=(0,f.lo)(c[1],r.r),p=a.get("keepAspect");return(n=u?(0,y.v5)(u,h-l/2,d-s,l,s,null,p):new o({shape:{angle:-Math.PI/2,width:l,r:s,x:h,y:d}})).rotation=-(i+Math.PI/2),n.x=r.cx,n.y=r.cy,n}function V(e,t){var i=M.get("roundCap")?v.A:l.A,n=M.get("overlap"),o=n?M.get("width"):h/_.count(),s=n?r.r-o:r.r-(e+1)*o,c=n?r.r:r.r-e*o,d=new i({shape:{startAngle:a,endAngle:t,cx:r.cx,cy:r.cy,clockwise:u,r0:s,r:c}});return n&&(d.z2=(0,f.Cb)(_.get(C,e),[O,L],[100,0],!0)),d}(I||A)&&(_.diff(g).add(function(t){var i=_.get(C,t);if(A){var n=D(t,a);c.LW(n,{rotation:-((isNaN(+i)?P[0]:(0,f.Cb)(i,T,P,!0))+Math.PI/2)},e),p.add(n),_.setItemGraphicEl(t,n)}if(I){var r=V(t,a),o=M.get("clip");c.LW(r,{shape:{endAngle:(0,f.Cb)(i,T,P,o)}},e),p.add(r),(0,S.a)(e.seriesIndex,_.dataType,t,r),b[t]=r}}).update(function(t,i){var n=_.get(C,t);if(A){var r=g.getItemGraphicEl(i),o=r?r.rotation:a,l=D(t,o);l.rotation=o,c.oi(l,{rotation:-((isNaN(+n)?P[0]:(0,f.Cb)(n,T,P,!0))+Math.PI/2)},e),p.add(l),_.setItemGraphicEl(t,l)}if(I){var s=w[i],u=V(t,s?s.shape.endAngle:a),h=M.get("clip");c.oi(u,{shape:{endAngle:(0,f.Cb)(n,T,P,h)}},e),p.add(u),(0,S.a)(e.seriesIndex,_.dataType,t,u),b[t]=u}}).execute(),_.each(function(e){var t=_.getItemModel(e),i=t.getModel("emphasis"),r=i.get("focus"),a=i.get("blurScope"),o=i.get("disabled"),l=n((0,f.Cb)(_.get(C,e),T,[0,1],!0));if(A){var s=_.getItemGraphicEl(e),u=_.getItemVisual(e,"style"),c=u.fill;if(s instanceof m.Ay){var h=s.style;s.useStyle((0,x.extend)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else s.useStyle(u),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",l),s.z2EmphasisLift=0,(0,d.Mx)(s,t),(0,d.Lm)(s,r,a,o)}if(I){var p=b[e];p.useStyle(_.getItemVisual(e,"style")),p.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),"auto"===p.style.fill&&p.setStyle("fill",l),p.z2EmphasisLift=0,(0,d.Mx)(p,t),(0,d.Lm)(p,r,a,o)}}),this._progressEls=b)},t.prototype._renderAnchor=function(e,t){var i=e.getModel("anchor");if(i.get("show")){var n=i.get("size"),r=i.get("icon"),a=i.get("offsetCenter"),o=i.get("keepAspect"),l=(0,y.v5)(r,t.cx-n/2+(0,f.lo)(a[0],t.r),t.cy-n/2+(0,f.lo)(a[1],t.r),n,n,null,o);l.z2=+!!i.get("showAbove"),l.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,i,n,r){var a=this,o=e.getData(),l=o.mapDimension("value"),s=+e.get("min"),c=+e.get("max"),d=new h.A,g=[],v=[],y=e.isAnimationEnabled(),m=e.get(["pointer","showAbove"]);o.diff(this._data).add(function(e){g[e]=new u.Ay({silent:!0}),v[e]=new u.Ay({silent:!0})}).update(function(e,t){g[e]=a._titleEls[t],v[e]=a._detailEls[t]}).execute(),o.each(function(t){var i=o.getItemModel(t),a=o.get(l,t),u=new h.A,x=n((0,f.Cb)(a,[s,c],[0,1],!0)),S=i.getModel("title");if(S.get("show")){var w=S.get("offsetCenter"),A=r.cx+(0,f.lo)(w[0],r.r),M=r.cy+(0,f.lo)(w[1],r.r),I=g[t];I.attr({z2:2*!m,style:(0,p.VB)(S,{x:A,y:M,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:x})}),u.add(I)}var _=i.getModel("detail");if(_.get("show")){var C=_.get("offsetCenter"),O=r.cx+(0,f.lo)(C[0],r.r),L=r.cy+(0,f.lo)(C[1],r.r),T=(0,f.lo)(_.get("width"),r.r),P=(0,f.lo)(_.get("height"),r.r),D=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:x,I=v[t],V=_.get("formatter");I.attr({z2:2*!m,style:(0,p.VB)(_,{x:O,y:L,text:b(a,V),width:isNaN(T)?null:T,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:D})}),(0,p.Oh)(I,{normal:_},a,function(e){return b(e,V)}),y&&(0,p.xb)(I,t,o,e,{getFormattedLabel:function(e,t,i,n,r,o){return b(o?o.interpolatedValue:a,V)}}),u.add(I)}d.add(u)}),this.group.add(d),this._titleEls=g,this._detailEls=v},t.type="gauge",t}(g.A),M=i("OZ"),I=i("yd"),_=i("g8w"),C=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.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,M.A)(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,_.A.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:_.A.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:_.A.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:_.A.color.axisLabel,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:_.A.color.neutral00,borderWidth:0,borderColor:_.A.color.theme["0"]}},title:{show:!0,offsetCenter:[0,"20%"],color:_.A.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:_.A.color.transparent,borderWidth:0,borderColor:_.A.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:_.A.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(I.A);function O(e){e.registerChartView(A),e.registerSeriesModel(C)}},dJ(e,t,i){i.d(t,{a:()=>b});var n=i("i4"),r=i("uf"),a=i("Vb"),o=i("s5"),l=i("LP"),s=i("mZ"),u=i("g8w"),c=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=s.yh.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,i,n,r,a){var o=this._getBrush(),l=this._getGradient(r,"inRange"),s=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=e.length;c.width=t,c.height=i;for(var p=0;p<d;++p){var g=e[p],f=g[0],v=g[1],y=n(g[2]);h.globalAlpha=y,h.drawImage(o,f-u,v-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),x=m.data,S=0,w=x.length,b=this.minOpacity,A=this.maxOpacity-b;S<w;){var y=x[S+3]/256,M=4*Math.floor(255*y);if(y>0){var I=a(y)?l:s;y>0&&(y=y*A+b),x[S++]=I[M],x[S++]=I[M+1],x[S++]=I[M+2],x[S++]=I[M+3]*y*256}else S+=4}return h.putImageData(m,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=s.yh.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=u.A.color.neutral99,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)),r=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,r),n[a++]=r[0],n[a++]=r[1],n[a++]=r[2],n[a++]=r[3];return n},e}(),h=i("iY"),d=i("WN9"),p=i("mR"),g=i("F4"),f=i("lN"),v=i("xN"),y=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(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,r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type||"matrix"===r.type?this._renderOnGridLike(e,i,0,e.getData().count()):(0,p.L)(r)&&this._renderOnGeo(r,e,n,i)},t.prototype.incrementalPrepareRender=function(e,t,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,i,n){var r=t.coordinateSystem;r&&((0,p.L)(r)?this.render(t,i,n):(this._progressiveEls=[],this._renderOnGridLike(t,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){r.traverseElements(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,i,n,o){var s,u,c,d,y=e.coordinateSystem,m=(0,p.g)(y,"cartesian2d"),x=(0,p.g)(y,"matrix");if(m){var S=y.getAxis("x"),w=y.getAxis("y");s=(0,f.D)(S).w+.5,u=(0,f.D)(w).w+.5,c=S.scale.getExtent(),d=w.scale.getExtent()}for(var b=this.group,A=e.getData(),M=e.getModel(["emphasis","itemStyle"]).getItemStyle(),I=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),C=e.get(["itemStyle","borderRadius"]),O=(0,g.lx)(e),L=e.getModel("emphasis"),T=L.get("focus"),P=L.get("blurScope"),D=L.get("disabled"),V=m||x?[A.mapDimension("x"),A.mapDimension("y"),A.mapDimension("value")]:[A.mapDimension("time"),A.mapDimension("value")],k=i;k<n;k++){var z=void 0,R=A.getItemVisual(k,"style");if(m){var N=A.get(V[0],k),B=A.get(V[1],k);if(isNaN(A.get(V[2],k))||isNaN(N)||isNaN(B)||N<c[0]||N>c[1]||B<d[0]||B>d[1])continue;var E=y.dataToPoint([N,B]);z=new a.A({shape:{x:E[0]-s/2,y:E[1]-u/2,width:s,height:u},style:R})}else if(x){var G=y.dataToLayout([A.get(V[0],k),A.get(V[1],k)]).rect;if(h.eqNaN(G.x))continue;z=new a.A({z2:1,shape:G,style:R})}else{if(isNaN(A.get(V[1],k)))continue;var W=y.dataToLayout([A.get(V[0],k)]),G=W.contentRect||W.rect;if(h.eqNaN(G.x)||h.eqNaN(G.y))continue;z=new a.A({z2:1,shape:G,style:R})}if(A.hasItemOption){var H=A.getItemModel(k),F=H.getModel("emphasis");M=F.getModel("itemStyle").getItemStyle(),I=H.getModel(["blur","itemStyle"]).getItemStyle(),_=H.getModel(["select","itemStyle"]).getItemStyle(),C=H.get(["itemStyle","borderRadius"]),T=F.get("focus"),P=F.get("blurScope"),D=F.get("disabled"),O=(0,g.lx)(H)}z.shape.r=C;var Y=e.getRawValue(k),Z="-";Y&&null!=Y[2]&&(Z=Y[2]+""),(0,g.qM)(z,O,{labelFetcher:e,labelDataIndex:k,defaultOpacity:R.opacity,defaultText:Z}),z.ensureState("emphasis").style=M,z.ensureState("blur").style=I,z.ensureState("select").style=_,(0,l.Lm)(z,T,P,D),z.incremental=(0,v.i2)(e,o),o&&(z.states.emphasis.hoverLayer=r.HOVER_LAYER_FOR_INCREMENTAL),b.add(z),A.setItemGraphicEl(k,z),this._progressiveEls&&this._progressiveEls.push(z)}},t.prototype._renderOnGeo=function(e,t,i,n){var r,a,l,s,u,d,p,g=i.targetVisuals.inRange,f=i.targetVisuals.outOfRange,v=t.getData(),y=this._hmLayer||this._hmLayer||new c;y.blurSize=t.get("blurSize"),y.pointSize=t.get("pointSize"),y.minOpacity=t.get("minOpacity"),y.maxOpacity=t.get("maxOpacity");var m=e.getViewRect().clone(),x=e.getRoamTransform();m.applyTransform(x);var S=Math.max(m.x,0),w=Math.max(m.y,0),b=Math.min(m.width+m.x,n.getWidth()),A=Math.min(m.height+m.y,n.getHeight()),M=b-S,I=A-w,_=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],C=v.mapArray(_,function(t,i,n){var r=e.dataToPoint([t,i]);return r[0]-=S,r[1]-=w,r.push(n),r}),O=i.getExtent(),L="visualMap.continuous"===i.type?(r=i.option.range,a=O[1]-O[0],r=[(r[0]-O[0])/a,(r[1]-O[0])/a],function(e){return e>=r[0]&&e<=r[1]}):(l=i.getPieceList(),s=i.option.selected,u=O[1]-O[0],d=(l=h.map(l,function(e){return{interval:[(e.interval[0]-O[0])/u,(e.interval[1]-O[0])/u]}})).length,p=0,function(e){var t;for(t=p;t<d;t++){var i=l[t].interval;if(i[0]<=e&&e<=i[1]){p=t;break}}if(t===d)for(t=p-1;t>=0;t--){var i=l[t].interval;if(i[0]<=e&&e<=i[1]){p=t;break}}return t>=0&&t<d&&s[t]});y.update(C,M,I,g.color.getNormalizer(),{inRange:g.color.getColorMapper(),outOfRange:f.color.getColorMapper()},L);var T=new o.Ay({style:{width:M,height:I,x:S,y:w,image:y.canvas},silent:!0});this.group.add(T)},t.type="heatmap",t}(d.A),m=i("yd"),x=i("hy"),S=i("Ww"),w=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,x.A)(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=S.Ay.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","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:u.A.color.primary}}},t}(m.A);function b(e){e.registerChartView(y),e.registerSeriesModel(w)}},OZ(e,t,i){var n=i("CG"),r=i("oo"),a=i("iY");i.d(t,{},{A:function(e,t,i){t=(0,a.isArray)(t)&&{coordDimensions:t}||(0,a.extend)({encodeDefine:e.getEncode()},t);var o=e.getSource(),l=(0,n.A)(o,t).dimensions,s=new r.A(l,e);return s.initData(o,i),s}})},CV(e,t,i){i.d(t,{a:()=>F});var n=i("GN"),r=i("oL"),a=i("i4"),o=i("iY"),l=i("s2"),s=i("W5"),u=i("Jx"),c=i("Qz"),h=i("LP"),d=i("WN9"),p=i("OZ"),g=i("xN"),f=i("MB"),v=i("rk"),y=i("P2"),m=i("yd"),x=i("Ww"),S=g.$r(),w=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,a.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new y.A(o.bind(this.getData,this),o.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return(0,p.A)(this,{coordDimensions:["value"],encodeDefaulter:o.curry(v.ln,this)})},t.prototype.getDataParams=function(t){var i=this.getData(),n=S(i),r=n.seats;if(!r){var a=[];i.each(i.mapDimension("value"),function(e){a.push(e)}),r=n.seats=(0,f.kM)(a,i.hostModel.get("percentPrecision"))}var o=e.prototype.getDataParams.call(this,t);return o.percent=r[t]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){g.M5(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,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(m.A);(0,x.kf)({fullType:w.type,getCoord2:function(e){return e.getShallow("center")}});var b=i("zM"),A=i("Y8"),M=i("rP"),I=i("EV"),_=Math.PI/180;function C(e,t,i,n,r,a,o,l,s,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 d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}(0,I.Zv)(e,1,s,s+o)&&function(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},l=0;l<e.length;l++)if("none"===e[l].labelAlignTo){var s=e[l],u=s.label.y>i?o:a,c=Math.abs(s.label.y-i);if(c>=u.maxY){var h=s.label.x-t-s.len2*r,d=n+s.len;u.rB=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d,u.maxY=c}u.list.push(s)}p(a),p(o)}(e)}function p(e){for(var a=e.rB,o=a*a,l=0;l<e.list.length;l++){var s=e.list[l],u=Math.abs(s.label.y-i),c=n+s.len,h=t+(Math.sqrt(Math.abs(c*c*(1-u*u/o)))+s.len2)*r,d=h-s.label.x,p=s.targetTextWidth-d*r;O(s,p,!0),s.label.x=h}}}function O(e,t,i){if(null==e.labelStyleWidth){var n=e.label,r=n.style,a=e.rect,o=r.backgroundColor,l=r.padding,s=l?l[1]+l[3]:0,u=r.overflow,c=a.width+(o?0:s);if(t<c||i){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-s);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var d=t-s,p=t<c?d:i?d>e.unconstrainedWidth?null:d:null;n.setStyle("width",p)}L(a,n)}}}function L(e,t){P.rect=e,(0,I.Wy)(P,t,T)}var T={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},P={};function D(e){return"center"===e.position}var V=i("F4"),k=i("Z0"),z=i("Ig"),R=i("db"),N=2*Math.PI,B=Math.PI/180,E=(0,g.O9)("pie",function(e,t){e.eachSeriesByType("pie",function(e){var i=e.getData(),n=i.mapDimension("value"),r=(0,R.zH)(e,t),a=r.cx,o=r.cy,l=r.r,s=r.r0,u=r.viewRect,c=-e.get("startAngle")*B,h=e.get("endAngle"),d=e.get("padAngle")*B;h="auto"===h?c-N:-h*B;var p=e.get("minAngle")*B+d,g=0;i.each(n,function(e){!isNaN(e)&&g++});var v=i.getSum(n),y=Math.PI/(v||g)*2,m=e.get("clockwise"),x=e.get("roseType"),S=e.get("stillShowZeroSum"),w=i.getDataExtent(n);w[0]=0;var b=m?1:-1,A=[c,h],M=b*d/2;(0,z.q)(A,!m),c=A[0],h=A[1];var I=G(e);I.startAngle=c,I.endAngle=h,I.clockwise=m,I.cx=a,I.cy=o,I.r=l,I.r0=s;var _=Math.abs(h-c),C=_,O=0,L=c;if(i.setLayout({viewRect:u,r:l}),i.each(n,function(e,t){if(isNaN(e))return void i.setItemLayout(t,{angle:0/0,startAngle:0/0,endAngle:0/0,clockwise:m,cx:a,cy:o,r0:s,r:x?0/0:l});(n="area"!==x?0===v&&S?y:e*y:_/g)<p?(n=p,C-=p):O+=e;var n,r=L+b*n,u=0,c=0;d>n?c=u=L+b*n/2:(u=L+M,c=r-M),i.setItemLayout(t,{angle:n,startAngle:u,endAngle:c,clockwise:m,cx:a,cy:o,r0:s,r:x?(0,f.Cb)(e,w,[s,l]):l}),L=r}),C<N&&g)if(C<=.001){var T=_/g;i.each(n,function(e,t){if(!isNaN(e)){var n=i.getItemLayout(t);n.angle=T;var r=0,a=0;T<d?a=r=c+b*(t+.5)*T:(r=c+b*t*T+M,a=c+b*(t+1)*T-M),n.startAngle=r,n.endAngle=a}})}else y=C/O,L=c,i.each(n,function(e,t){if(!isNaN(e)){var n=i.getItemLayout(t),r=n.angle===p?p:e*y,a=0,o=0;r<d?o=a=L+b*r/2:(a=L+M,o=L+b*r-M),n.startAngle=a,n.endAngle=o,L+=b*r}})})}),G=(0,g.$r)(),W=function(e){function t(t,i,n){var r=e.call(this)||this;r.z2=2;var a=new l.Ay;return r.setTextContent(a),r.updateData(t,i,n,!0),r}return(0,a.C6)(t,e),t.prototype.updateData=function(e,t,i,n){var r=e.hostModel,a=e.getItemModel(t),l=a.getModel("emphasis"),u=e.getItemLayout(t),c=(0,o.extend)((0,k.i)(a.getModel("itemStyle"),u,!0),u);if(isNaN(c.startAngle))return void this.setShape(c);if(n){this.setShape(c);var d=r.getShallow("animationType");r.ecModel.ssr?(s.LW(this,{scaleX:0,scaleY:0},r,{dataIndex:t,isFrom:!0}),this.originX=c.cx,this.originY=c.cy):"scale"===d?(this.shape.r=u.r0,s.LW(this,{shape:{r:u.r}},r,t)):null!=i?(this.setShape({startAngle:i,endAngle:i}),s.LW(this,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},r,t)):(this.shape.endAngle=u.startAngle,s.oi(this,{shape:{endAngle:u.endAngle}},r,t))}else(0,s.ap)(this),s.oi(this,{shape:c},r,t);this.useStyle(e.getItemVisual(t,"style")),(0,h.Mx)(this,a);var p=(u.startAngle+u.endAngle)/2,g=r.get("selectedOffset"),f=Math.cos(p)*g,v=Math.sin(p)*g,y=a.getShallow("cursor");y&&this.attr("cursor",y),this._updateLabel(r,e,t),this.ensureState("emphasis").shape=(0,o.extend)({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},(0,k.i)(l.getModel("itemStyle"),u)),(0,o.extend)(this.ensureState("select"),{x:f,y:v,shape:(0,k.i)(a.getModel(["select","itemStyle"]),u)}),(0,o.extend)(this.ensureState("blur"),{shape:(0,k.i)(a.getModel(["blur","itemStyle"]),u)});var m=this.getTextGuideLine(),x=this.getTextContent();m&&(0,o.extend)(m.ensureState("select"),{x:f,y:v}),(0,o.extend)(x.ensureState("select"),{x:f,y:v}),(0,h.Lm)(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,t,i){var n=t.getItemModel(i),r=n.getModel("labelLine"),a=t.getItemVisual(i,"style"),l=a&&a.fill,s=a&&a.opacity;(0,V.qM)(this,(0,V.lx)(n),{labelFetcher:t.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:s,defaultText:e.getFormattedLabel(i,"normal")||t.getName(i)});var c=this.getTextContent();this.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=n.get(["label","position"]);if("outside"!==h&&"outer"!==h)this.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new u.A,this.setTextGuideLine(d)),(0,M.eR)(this,(0,M.rv)(n),{stroke:l,opacity:(0,o.retrieve3)(r.get(["lineStyle","opacity"]),s,1)})}},t}(c.A),H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t.ignoreLabelLineUpdate=!0,t}return(0,a.C6)(t,e),t.prototype.render=function(e,t,i,n){var r,a=e.getData(),l=this._data,u=this.group;if(!l&&a.count()>0){for(var h=a.getItemLayout(0),d=1;isNaN(h&&h.startAngle)&&d<a.count();++d)h=a.getItemLayout(d);h&&(r=h.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===a.count()&&e.get("showEmptyCircle")){var p=G(e),g=new c.A({shape:(0,o.clone)(p)});g.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=g,u.add(g)}a.diff(l).add(function(e){var t=new W(a,e,r);a.setItemGraphicEl(e,t),u.add(t)}).update(function(e,t){var i=l.getItemGraphicEl(t);i.updateData(a,e,r),i.off("click"),u.add(i),a.setItemGraphicEl(e,i)}).remove(function(t){var i=l.getItemGraphicEl(t);s.t5(i,e,t)}).execute(),function(e){var t,i,n=e.getData(),r=[],a=!1,l=(e.get("minShowLabelAngle")||0)*_,s=n.getLayout("viewRect"),u=n.getLayout("r"),c=s.width,h=s.x,d=s.y,p=s.height;function g(e){e.ignore=!0}n.each(function(e){var s,d,v,y,m=n.getItemGraphicEl(e),x=m.shape,S=m.getTextContent(),w=m.getTextGuideLine(),M=n.getItemModel(e),I=M.getModel("label"),_=I.get("position")||M.get(["emphasis","label","position"]),C=I.get("distanceToLabelLine"),O=I.get("alignTo"),T=(0,f.lo)(I.get("edgeDistance"),c),P=I.get("bleedMargin");null==P&&(P=Math.min(c,p)>200?10:2);var D=M.getModel("labelLine"),V=D.get("length");V=(0,f.lo)(V,c);var k=D.get("length2");if(k=(0,f.lo)(k,c),Math.abs(x.endAngle-x.startAngle)<l){(0,o.each)(S.states,g),S.ignore=!0,w&&((0,o.each)(w.states,g),w.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}(S)){var z=(x.startAngle+x.endAngle)/2,R=Math.cos(z),N=Math.sin(z);t=x.cx,i=x.cy;var B="inside"===_||"inner"===_;if("center"===_)s=x.cx,d=x.cy,y="center";else{var E=(B?(x.r+x.r0)/2*R:x.r*R)+t,G=(B?(x.r+x.r0)/2*N:x.r*N)+i;if(s=E+3*R,d=G+3*N,!B){var W=E+R*(V+u-x.r),H=G+N*(V+u-x.r),F=W+(R<0?-1:1)*k;s="edge"===O?R<0?h+T:h+c-T:F+(R<0?-C:C),d=H,v=[[E,G],[W,H],[F,H]]}y=B?"center":"edge"===O?R>0?"right":"left":R>0?"left":"right"}var Y=Math.PI,Z=0,X=I.get("rotate");if((0,o.isNumber)(X))Z=Y/180*X;else if("center"===_)Z=0;else if("radial"===X||!0===X)Z=R<0?-z+Y:-z;else if("tangential"===X||"tangential-noflip"===X&&"outside"!==_&&"outer"!==_){var q=Math.atan2(R,N);q<0&&(q=2*Y+q),N>0&&"tangential-noflip"!==X&&(q=Y+q),Z=q-Y}if(a=!!Z,S.x=s,S.y=d,S.rotation=Z,S.setStyle({verticalAlign:"middle"}),B){S.setStyle({align:y});var U=S.states.select;U&&(U.x+=S.x,U.y+=S.y)}else{var J=new A.Ay(0,0,0,0);L(J,S),r.push({label:S,labelLine:w,position:_,len:V,len2:k,minTurnAngle:D.get("minTurnAngle"),maxSurfaceAngle:D.get("maxSurfaceAngle"),surfaceNormal:new b.A(R,N),linePoints:v,textAlign:y,labelDistance:C,labelAlignTo:O,edgeDistance:T,bleedMargin:P,rect:J,unconstrainedWidth:J.width,labelStyleWidth:S.style.width})}m.setTextConfig({inside:B})}}),!a&&e.get("avoidLabelOverlap")&&function(e,t,i,n,r,a,o,l){for(var s=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;D(e[d])||(p.x<t?(c=Math.min(c,p.x),s.push(e[d])):(h=Math.max(h,p.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var g=e[d];if(!D(g)&&g.linePoints){if(null!=g.labelStyleWidth)continue;var p=g.label,f=g.linePoints,v=void 0;v="edge"===g.labelAlignTo?p.x<t?f[2][0]-g.labelDistance-o-g.edgeDistance:o+r-g.edgeDistance-f[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?p.x<t?c-o-g.bleedMargin:o+r-h-g.bleedMargin:p.x<t?p.x-o-g.bleedMargin:o+r-p.x-g.bleedMargin,g.targetTextWidth=v,O(g,v,!1)}}C(u,t,i,n,1,r,a,o,l,h),C(s,t,i,n,-1,r,a,o,l,c);for(var d=0;d<e.length;d++){var g=e[d];if(!D(g)&&g.linePoints){var p=g.label,f=g.linePoints,y="edge"===g.labelAlignTo,m=p.style.padding,x=m?m[1]+m[3]:0,S=p.style.backgroundColor?0:x,w=g.rect.width+S,b=f[1][0]-f[2][0];y?p.x<t?f[2][0]=o+g.edgeDistance+w+g.labelDistance:f[2][0]=o+r-g.edgeDistance-w-g.labelDistance:(p.x<t?f[2][0]=p.x+g.labelDistance:f[2][0]=p.x-g.labelDistance,f[1][0]=f[2][0]+b),f[1][1]=f[2][1]=p.y}}}(r,t,i,u,c,p,h,d);for(var v=0;v<r.length;v++){var y=r[v],m=y.label,x=y.labelLine,S=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:y.textAlign}),S&&((0,o.each)(m.states,g),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(x){var I=y.linePoints;S||!I?((0,o.each)(x.states,g),x.ignore=!0):((0,M.YI)(I,y.minTurnAngle),(0,M.QK)(I,y.surfaceNormal,y.maxSurfaceAngle),x.setShape({points:I}),m.__hostTarget.textGuideLineConfig={anchor:new b.A(I[0][0],I[0][1])})}}}(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var i=t.getData().getItemLayout(0);if(i){var n=e[0]-i.cx,r=e[1]-i.cy,a=Math.sqrt(n*n+r*r);return a<=i.r&&a>=i.r0}},t.type="pie",t}(d.A);function F(e){e.registerChartView(H),e.registerSeriesModel(w),(0,n.I)("pie",e.registerAction),e.registerLayout(E),e.registerProcessor((0,r.A)("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,o.isNumber)(n)||!!isNaN(n)||!(n<0)})}})}},UN(e,t,i){i.d(t,{a:()=>Y});var n=i("xNS"),r=i("i4"),a=i("iY"),o=i("Sk"),l=i("xN"),s=i("wv"),u=i("g8w"),c=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,r.C6)(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 r;a.isString(e)&&(e={type:e}),t[n]=a.merge(e,"all"===(r=e.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===r?{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 r,a=n.name;if(i.push(a),n.legendVisualProvider){var o=n.legendVisualProvider.getAllNames();e.isSeriesFiltered(n)||(i=i.concat(o)),o.length?t=t.concat(o):r=!0}else r=!0;r&&(0,l.O0)(n)&&t.push(n.name)}),this._availableNames=i;var n=this.get("data")||t,r=a.createHashMap(),s=a.map(n,function(e){return((a.isString(e)||a.isNumber(e))&&(e={name:e}),r.get(e.name))?null:(r.set(e.name,!0),new o.A(e,this,this.ecModel))},this);this._data=a.filter(s,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",bottom:u.A.size.m,align:"auto",backgroundColor:u.A.color.transparent,borderColor:u.A.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:u.A.color.disabled,inactiveBorderColor:u.A.color.disabled,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:u.A.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:u.A.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:u.A.color.tertiary,borderWidth:1,borderColor:u.A.color.border},emphasis:{selectorLabel:{show:!0,color:u.A.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(s.A),h=i("x4z"),d=i("jZ"),p=i("s2"),g=i("Vb"),f=i("uf"),v=i("LP"),y=i("F4"),m=i("HS"),x=i("db"),S=i("BP"),w=i("up"),b=i("Upd"),A=i("FL"),M=a.curry,I=a.each,_=d.A,C=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.newlineDisabled=!1,i}return(0,r.C6)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new _),this.group.add(this._selectorGroup=new _),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 r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var l=e.get("selector",!0),s=e.get("selectorPosition",!0);l&&(!s||"auto"===s)&&(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,i,l,o,s);var u=x.Lj(e,i).refContainer,c=e.getBoxLayoutParams(),h=e.get("padding"),d=x.dV(c,u,h),p=this.layoutInner(e,r,d,n,l,s),g=x.dV(a.defaults({width:p.width,height:p.height},c),u,h);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,m.P)(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,i,n,r,o,l){var s=this.getContentGroup(),u=a.createHashMap(),c=t.get("selectedMode"),d=t.get("triggerEvent"),p=[];i.eachRawSeries(function(e){e.get("legendHoverLink")||p.push(e.id)}),I(t.getData(),function(r,o){var l=this,g=r.get("name");if(!this.newlineDisabled&&(""===g||"\n"===g)){var f=new _;f.newline=!0,s.add(f);return}var v=i.getSeriesByName(g)[0];if(!u.get(g))if(v){var y=v.getData(),m=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(v,g,o,r,t,e,m,S,x,c,n);w.on("click",M(O,g,null,n,p)).on("mouseover",M(L,v.name,null,n,p)).on("mouseout",M(T,v.name,null,n,p)),i.ssr&&w.eachChild(function(e){var t=(0,A.z)(e);t.seriesIndex=v.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),d&&w.eachChild(function(e){l.packEventData(e,t,v,o,g)}),u.set(g,!0)}else i.eachRawSeries(function(l){var s=this;if(!u.get(g)&&l.legendVisualProvider){var f=l.legendVisualProvider;if(!f.containName(g))return;var v=f.indexOfName(g),y=f.getItemVisual(v,"style"),m=f.getItemVisual(v,"legendIcon"),x=(0,h.parse)(y.fill);x&&0===x[3]&&(x[3]=.2,y=a.extend(a.extend({},y),{fill:(0,h.stringify)(x,"rgba")}));var S=this._createItem(l,g,o,r,t,e,{},y,m,c,n);S.on("click",M(O,null,g,n,p)).on("mouseover",M(L,null,g,n,p)).on("mouseout",M(T,null,g,n,p)),i.ssr&&S.eachChild(function(e){var t=(0,A.z)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),d&&S.eachChild(function(e){s.packEventData(e,t,l,o,g)}),u.set(g,!0)}},this)},this),r&&this._createSelector(r,t,n,o,l)},t.prototype.packEventData=function(e,t,i,n,r){var a={componentType:"legend",componentIndex:t.componentIndex,dataIndex:n,value:r,seriesIndex:i.seriesIndex};(0,A.z)(e).eventData=a},t.prototype._createSelector=function(e,t,i,n,r){var a=this.getSelectorGroup();I(e,function(e){var n=e.type,r=new p.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});a.add(r);var o=t.getModel("selectorLabel"),l=t.getModel(["emphasis","selectorLabel"]);(0,y.qM)(r,{normal:o,emphasis:l},{defaultText:e.title}),(0,v.iJ)(r)})},t.prototype._createItem=function(e,t,i,n,r,o,l,s,c,h,d){var m=e.visualDrawType,x=r.get("itemWidth"),S=r.get("itemHeight"),A=r.isSelected(t),M=n.get("symbolRotate"),C=n.get("symbolKeepAspect"),O=n.get("icon"),L=function(e,t,i,n,r,a,o){function l(e,t){"auto"===e.lineWidth&&(e.lineWidth=2*(t.lineWidth>0)),I(e,function(i,n){"inherit"===e[n]&&(e[n]=t[n])})}var s=t.getModel("itemStyle"),u=s.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=s.getShallow("decal");u.decal=h&&"inherit"!==h?(0,b.w)(h,o):n.decal,"inherit"===u.fill&&(u.fill=n[r]),"inherit"===u.stroke&&(u.stroke=n[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?n:i).opacity),l(u,n);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(l(p,i),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===p.stroke&&(p.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"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(c=O||c||"roundRect",n,l,s,m,A,d),T=new _,P=n.getModel("textStyle");if(a.isFunction(e.getLegendIcon)&&(!O||"inherit"===O))T.add(e.getLegendIcon({itemWidth:x,itemHeight:S,icon:c,iconRotate:M,itemStyle:L.itemStyle,lineStyle:L.lineStyle,symbolKeepAspect:C}));else{var D,V,k,z="inherit"===O&&e.getData().getVisual("symbol")?"inherit"===M?e.getData().getVisual("symbolRotate"):M:0;T.add((V=(D={itemWidth:x,itemHeight:S,icon:c,iconRotate:z,itemStyle:L.itemStyle,lineStyle:L.lineStyle,symbolKeepAspect:C}).icon||"roundRect",(k=(0,w.v5)(V,0,0,D.itemWidth,D.itemHeight,D.itemStyle.fill,D.symbolKeepAspect)).setStyle(D.itemStyle),k.rotation=(D.iconRotate||0)*Math.PI/180,k.setOrigin([D.itemWidth/2,D.itemHeight/2]),V.indexOf("empty")>-1&&(k.style.stroke=k.style.fill,k.style.fill=u.A.color.neutral00,k.style.lineWidth=2),k))}var R=r.get("formatter"),N=t;a.isString(R)&&R?N=R.replace("{name}",null!=t?t:""):a.isFunction(R)&&(N=R(t));var B=A?P.getTextColor():n.get("inactiveColor");T.add(new p.Ay({style:(0,y.VB)(P,{text:N,x:"left"===o?x+5:-5,y:S/2,fill:B,align:o,verticalAlign:"middle"},{inheritColor:B})}));var E=new g.A({shape:T.getBoundingRect(),style:{fill:"transparent"}}),G=n.getModel("tooltip");return G.get("show")&&f.setTooltipConfig({el:E,componentModel:r,itemName:t,itemTooltipOption:G.option}),T.add(E),T.eachChild(function(e){e.silent=!0}),E.silent=!h,this.getContentGroup().add(T),(0,v.iJ)(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(e,t,i,n,r,a){var o=this.getContentGroup(),l=this.getSelectorGroup();x.aP(e.get("orient"),o,e.get("itemGap"),i.width,i.height);var s=o.getBoundingRect(),u=[-s.x,-s.y];if(l.markRedraw(),o.markRedraw(),!r)return o.x=u[0],o.y=u[1],this.group.getBoundingRect();x.aP("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=0===p?"width":"height",f=0===p?"height":"width",v=0===p?"y":"x";"end"===a?h[p]+=s[g]+d:u[p]+=c[g]+d,h[1-p]+=s[f]/2-c[f]/2,l.x=h[0],l.y=h[1],o.x=u[0],o.y=u[1];var y={x:0,y:0};return y[g]=s[g]+d+c[g],y[f]=Math.max(s[f],c[f]),y[v]=Math.min(0,c[v]+h[1-p]),y},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(S.A);function O(e,t,i,n){T(e,t,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),L(e,t,i,n)}function L(e,t,i,n){i.usingTHL()||i.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function T(e,t,i,n){i.usingTHL()||i.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function P(e,t,i){var n="allSelect"===e||"inverseSelect"===e,r={},o=[];i.eachComponent({mainType:"legend",query:t},function(i){n?i[e]():i[e](t.name),D(i,r),o.push(i.componentIndex)});var l={};return i.eachComponent("legend",function(e){(0,a.each)(r,function(t,i){e[t?"select":"unSelect"](i)}),D(e,l)}),n?{selected:l,legendIndex:o}:{name:t.name,selected:l}}function D(e,t){var i=t||{};return(0,a.each)(e.getData(),function(t){var n=t.get("name");if("\n"!==n&&""!==n){var r=e.isSelected(n);(0,a.hasOwn)(i,n)?i[n]=i[n]&&r:i[n]=r}}),i}var V=(0,l.uQ)(function(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 k(e){e.registerComponentModel(c),e.registerComponentView(C),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,V),e.registerSubTypeDefaulter("legend",function(){return"plain"}),e.registerAction("legendToggleSelect","legendselectchanged",(0,a.curry)(P,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,a.curry)(P,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,a.curry)(P,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,a.curry)(P,"select")),e.registerAction("legendUnSelect","legendunselected",(0,a.curry)(P,"unSelect"))}var z=i("Af"),R=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.C6)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,i,n){var r=(0,x.vs)(t);e.prototype.init.call(this,t,i,n),N(this,t,r)},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,z.G_)(c.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:u.A.color.accent50,pageIconInactiveColor:u.A.color.accent10,pageIconSize:15,pageTextStyle:{color:u.A.color.tertiary},animationDurationUpdate:800}),t}(c);function N(e,t,i){var n=e.getOrient(),r=[1,1];r[n.index]=0,(0,x.YA)(t,i,{type:"box",ignoreSize:!!r})}var B=i("W5"),E=d.A,G=["width","height"],W=["x","y"],H=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,r.C6)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new E),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new E)},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,r,o,l,s){var u=this;e.prototype.renderInner.call(this,t,i,n,r,o,l,s);var c=this._controllerGroup,h=i.get("pageIconSize",!0),d=a.isArray(h)?h:[h,h];v("pagePrev",0);var g=i.getModel("pageTextStyle");function v(e,t){var n=f.createIcon(i.get("pageIcons",!0)[i.getOrient().name][t],{onclick:a.bind(u._pageGo,u,e+"DataIndex",i,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});n.name=e,c.add(n)}c.add(new p.Ay({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1)},t.prototype.layoutInner=function(e,t,i,n,r,o){var l=this.getSelectorGroup(),s=e.getOrient().index,u=G[s],c=W[s],h=G[1-s],d=W[1-s];r&&x.aP("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),f=[-g.x,-g.y],v=a.clone(i);r&&(v[u]=i[u]-g[u]-p);var y=this._layoutContentAndController(e,n,v,s,u,h,d,c);if(r){if("end"===o)f[s]+=y[u]+p;else{var m=g[u]+p;f[s]-=m,y[c]-=m}y[u]+=g[u]+p,f[1-s]+=y[d]+y[h]/2-g[h]/2,y[h]=Math.max(y[h],g[h]),y[d]=Math.min(y[d],g[d]+f[1-s]),l.x=f[0],l.y=f[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,t,i,n,r,o,l,s){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;x.aP(e.get("orient"),u,e.get("itemGap"),n?i.width:null,n?null:i.height),x.aP("horizontal",h,e.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),p=h.getBoundingRect(),f=this._showController=d[r]>i[r],v=[-d.x,-d.y];t||(v[n]=u[s]);var y=[0,0],m=[-p.x,-p.y],S=a.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?m[n]+=i[r]-p[r]:y[n]+=p[r]+S),m[1-n]+=d[o]/2-p[o]/2,u.setPosition(v),c.setPosition(y),h.setPosition(m);var w={x:0,y:0};if(w[r]=f?i[r]:d[r],w[o]=Math.max(d[o],p[o]),w[l]=Math.min(0,p[l]+m[1-n]),c.__rectSize=i[r],f){var b={x:0,y:0};b[r]=Math.max(i[r]-p[r]-S,0),b[o]=w[o],c.setClipPath(new g.A({shape:b})),c.__rectSize=b[r]}else h.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(e);return null!=A.pageIndex&&B.oi(u,{x:A.contentPosition[0],y:A.contentPosition[1]},f?e:null),this._updatePageInfoView(e,A),w},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 r=null!=t[n+"DataIndex"],a=i.childOfName(n);a&&(a.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")});var n=i.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,l=null!=o?o+1:0,s=t.pageCount;n&&r&&n.setStyle("text",a.isString(r)?r.replace("{current}",null==l?"":l+"").replace("{total}",null==s?"":s+""):r({current:l,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,r=e.getOrient().index,a=G[r],o=W[r],l=this._findTargetItemIndex(t),s=i.children(),u=s[l],c=s.length,h=+!!c,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[r]=-p.s;for(var g=l+1,f=p,v=p,y=null;g<=c;++g)(!(y=m(s[g]))&&v.e>f.s+n||y&&!x(y,f.s))&&(f=v.i>f.i?v:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=f.i),++d.pageCount),v=y;for(var g=l-1,f=p,v=p,y=null;g>=-1;--g)(!(y=m(s[g]))||!x(v,y.s))&&f.i<v.i&&(v=f,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=f.i),++d.pageCount,++d.pageIndex),f=y;return d;function m(e){if(e){var t=e.getBoundingRect(),i=t[o]+e[o];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,r){var a=n.__legendDataIndex;null==i&&null!=a&&(i=r),a===e&&(t=r)}),null!=t?t:i):0},t.type="legend.scroll",t}(C);function F(e){(0,n.Y)(k),e.registerComponentModel(R),e.registerComponentView(H),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)})})}function Y(e){(0,n.Y)(k),(0,n.Y)(F)}},pM(e,t,i){var n=i("i4"),r=i("iY"),a=i("VI"),o=i("h9"),l=i("Hg"),s=i("xN"),u=i("MB"),c=i("wv"),h=i("g8w"),d=o.A.mapVisual,p=o.A.eachVisual,g=r.isArray,f=r.each,v=u.Y6,y=u.Cb;t.A=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.C6)(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,t){var i=this.option;t||l.St(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=r.bind(e,this),this.controllerVisuals=l.u1(this.option.controller,t,e),this.targetVisuals=l.u1(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var i=[];return f(t,function(t){if(null!=t.seriesIndex)i.push(t.seriesIndex);else if(null!=t.seriesId){var n;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(n=e)}),n&&i.push(n.componentIndex)}}),i}var n=this.option.seriesId,a=this.option.seriesIndex;null==a&&null==n&&(a="all");var o=s.JO(this.ecModel,"series",{index:a,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return r.map(o,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){r.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,o=a.precision,l=this.dataBound,s=a.formatter;i=i||["<",">"],r.isArray(e)&&(e=e.slice(),n=!0);var u=t?e:n?[c(e[0]),c(e[1])]:c(e);if(r.isString(s))return s.replace("{value}",n?u[0]:u).replace("{value2}",n?u[1]:u);if(r.isFunction(s))return n?s(e[0],e[1]):s(e);if(!n)return u;if(e[0]===l[0])return i[0]+" "+u[1];if(e[1]===l[1])return i[1]+" "+u[0];return u[0]+" - "+u[1];function c(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=v([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,i=this.option.seriesTargets;if(i){var n=r.find(i,function(i){return null!=i.seriesIndex&&i.seriesIndex===e||null!=i.seriesId&&i.seriesId===t.ecModel.getSeriesByIndex(e).id});if(n)return n.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,i=this.getDimension(t);if(null!=i)return e.getDimensionIndex(i);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var a=n[r],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,i={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),l=t.controller||(t.controller={});r.merge(n,i),r.merge(l,i);var s=this.isCategory();function u(i){g(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,l),(function(e,t,i){var n=e[t],r=e[i];n&&!r&&(r=e[i]={},f(n,function(e,t){if(o.A.isValidType(t)){var i=a.A.get(t,"inactive",s);null!=i&&(r[t]=i,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.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";f(this.stateList,function(o){var l=this.itemSize,u=e[o];u||(u=e[o]={color:s?n:[n]}),null==u.symbol&&(u.symbol=t&&r.clone(t)||(s?a:[a])),null==u.symbolSize&&(u.symbolSize=i&&r.clone(i)||(s?l[0]:[l[0],l[0]])),u.symbol=d(u.symbol,function(e){return"none"===e?a:e});var c=u.symbolSize;if(null!=c){var h=-1/0;p(c,function(e){e>h&&(h=e)}),u.symbolSize=d(c,function(e){return y(e,[0,h],[0,l[0]],!0)})}},this)}).call(this,l)},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,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:h.A.color.transparent,borderColor:h.A.color.borderTint,contentColor:h.A.color.theme["0"],inactiveColor:h.A.color.disabled,borderWidth:0,padding:h.A.size.m,textGap:10,precision:0,textStyle:{color:h.A.color.secondary}},t}(c.A)},k7(e,t,i){var n=i("i4"),r=i("iY"),a=i("Vb"),o=i("s7"),l=i("db"),s=i("h9");t.A=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.C6)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,i,n){(this.visualMapModel=e,!1===e.get("show"))?this.group.removeAll():this.doRender(e,t,i,n)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,i=o.QX(t.get("padding")||0),n=e.getBoundingRect();e.add(new a.A({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,o={};function l(e){return o[e]}function u(e,t){o[e]=t}"color"===t&&(o.color=a.get("contentColor"));var c=a.controllerVisuals[n||a.getValueState(e)],h=s.A.prepareVisualTypes(c);return r.each(h,function(n){var r=c[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",r=c.__alphaForOpacity),s.A.dependsOn(n,t)&&r&&r.applyVisual(e,l,u)}),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,i=this.api,n=l.Lj(t,i).refContainer;l.m$(e,t.getBoxLayoutParams(),n)},t.prototype.doRender=function(e,t,i,n){},t.type="visualMap",t}(i("BP").A)},a4(e,t,i){var n=i("iY"),r=i("db"),a=[["left","right","width"],["top","bottom","height"]];i.d(t,{},{J:function(e,t,i){var n=e.option,o=n.align;if(null!=o&&"auto"!==o)return o;for(var l={width:t.getWidth(),height:t.getHeight()},s=+("horizontal"===n.orient),u=a[s],c=[0,null,10],h={},d=0;d<3;d++)h[a[1-s][d]]=c[d],h[u[d]]=2===d?i[0]:n[u[d]];var p=[["x","width",3],["y","height",0]][s],g=(0,r.dV)(h,l,n.padding);return u[(g.margin[p[2]]||0)+g[p[0]]+.5*g[p[1]]<.5*l[p[1]]?0:1]},l:function(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}})},Jm(e,t,i){var n=i("xNS"),r=i("Ja"),a=i("ob");i.d(t,{},{a:function(e){(0,n.Y)(r.a),(0,n.Y)(a.a)}})},kJ(e,t,i){i.d(t,{A:()=>f});var n={type:"selectDataRange",event:"dataRangeSelected",update:"update"},r=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},a=i("iY"),o=i("Hg"),l=i("h9"),s=i("N1e"),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(o.dS(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 r=t.getVisualMeta(a.bind(c,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(i);o>=0&&(r.dimension=o,n.push(r))}}),e.getData().setVisual("visualMeta",n)}}];function c(e,t,i,n){for(var r=t.targetVisuals[n],a=l.A.prepareVisualTypes(r),o={color:(0,s.rI)(e.getData(),"color")},u=0,c=a.length;u<c;u++){var h=a[u],d=r["opacity"===h?"__alphaForOpacity":h];d&&d.applyVisual(i,p,g)}return o.color;function p(e){return o[e]}function g(e,t){o[e]=t}}var h=a.each;function d(e){var t=e&&e.visualMap;a.isArray(t)||(t=t?[t]:[]),h(t,function(e){if(e){p(e,"splitList")&&!p(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&a.isArray(t)&&h(t,function(e){a.isObject(e)&&(p(e,"start")&&!p(e,"min")&&(e.min=e.start),p(e,"end")&&!p(e,"max")&&(e.max=e.end))})}})}function p(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,r),(0,a.each)(u,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(d))}},Ja(e,t,i){i.d(t,{a:()=>B});var n=i("i4"),r=i("iY"),a=i("pM"),o=i("MB"),l=i("Af"),s=i("g8w"),u=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(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):r.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),r.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=o.Y6((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(),n=r.retrieve2(this.option.unboundedRange,!0);return(n&&t[0]<=i[0]||t[0]<=e)&&(n&&t[1]>=i[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(i){var n=[],r=i.getData();r.each(this.getDataDimensionIndex(r),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=c(this,"outOfRange",this.getExtent()),i=c(this,"inRange",this.option.range.slice()),n=[];function r(t,i){n.push({value:t,color:e(t,i)})}for(var a=0,o=0,l=i.length,s=t.length;o<s&&(!i.length||t[o]<=i[0]);o++)t[o]<i[a]&&r(t[o],"outOfRange");for(var u=1;a<l;a++,u=0)u&&n.length&&r(i[a],"outOfRange"),r(i[a],"inRange");for(var u=1;o<s;o++)(!i.length||i[i.length-1]<t[o])&&(u&&(n.length&&r(n[n.length-1].value,"outOfRange"),u=0),r(t[o],"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,l.G_)(a.A.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:s.A.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:s.A.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:s.A.color.shadow}}),t}(a.A);function c(e,t,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,r=i[0],a=[],o=0;o<=200&&r<i[1];o++)a.push(r),r+=n;return a.push(i[1]),a}var h=i("Up"),d=i("lX"),p=i("k7"),g=i("s2"),f=i("jZ"),v=i("Vb"),y=i("uf"),m=i("hC"),x=i("bx"),S=i("a4"),w=i("xN"),b=i("KO"),A=i("LP"),M=i("up"),I=i("s5"),_=i("FL"),C=i("F4"),O=i("u1"),L=o.Cb,T=r.each,P=Math.min,D=Math.max,V=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.C6)(t,e),t.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=r.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=r.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 r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,l=this._shapes.mainGroup,s=this._applyTransform([o[0]/2,0===i?-a:o[1]+a],l),u=this._applyTransform(0===i?"bottom":"top",l),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new g.Ay({style:(0,C.VB)(h,{x:s[0],y:s[1],verticalAlign:h.get("verticalAlign")||("horizontal"===c?"middle":u),align:h.get("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,o=this._useHandle,l=S.J(t,this.api,n),s=i.mainGroup=this._createBarGroup(l),u=new f.A;s.add(u),u.add(i.outOfRange=k()),u.add(i.inRange=k(null,o?R(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0))),u.setClipPath(new v.A({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),h=D(c.width,c.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(t,s,0,n,h,a),this._createHandle(t,s,1,n,h,a)),this._createIndicator(t,s,n,h,a),e.add(s)},t.prototype._createHandle=function(e,t,i,n,a,o){var l=r.bind(this._dragHandle,this,i,!1),s=r.bind(this._dragHandle,this,i,!0),u=(0,b.lo)(e.get("handleSize"),n[0]),c=(0,M.v5)(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=R(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:s,onmousemove:function(e){d.ds(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,A.ix)(c,!0),t.add(c);var p=this.visualMapModel.textStyleModel,f=new g.Ay({cursor:h,draggable:!0,drift:l,onmousemove:function(e){d.ds(e.event)},ondragend:s,style:(0,C.VB)(p,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var v=[u,0],y=this._shapes;y.handleThumbs[i]=c,y.handleLabelPoints[i]=v,y.handleLabels[i]=f},t.prototype._createIndicator=function(e,t,i,n,a){var o=(0,b.lo)(e.get("indicatorSize"),i[0]),l=(0,M.v5)(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(l instanceof I.Ay){var u=l.style;l.useStyle(r.extend({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},s))}else l.useStyle(s);t.add(l);var c=this.visualMapModel.textStyleModel,h=new g.Ay({silent:!0,invisible:!0,style:(0,C.VB)(c,{x:0,y:0,text:""})});this.group.add(h);var d=[("horizontal"===a?n/2:6)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,i,n){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?this._hovering||this._clearHoverLinkToSeries():z(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=[L(t[0],i,n,!0),L(t[1],i,n,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var i=this.visualMapModel,n=this._handleEnds,r=[0,i.itemSize[1]];(0,x.A)(t,n,r,e,0);var a=i.getExtent();this._dataInterval=[L(n[0],r,a,!0),L(n[1],r,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,i=t.getExtent(),n=this._shapes,r=[0,t.itemSize[1]],a=e?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,i,a,"inRange"),l=this._createBarVisual(i,i,r,"outOfRange");n.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),n.outOfRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,i,n){var r={forceState:n,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,r),o=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],l=this._createBarPoints(i,o);return{barColor:new h.A(0,0,0,1,a),barPoints:l,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 r=1;r<100;r++){var a=e[0]+n*r;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:r/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 f.A("horizontal"===t&&!i?{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2}:"horizontal"===t&&i?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"===t&&!i?{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"left"===e?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,a=i.handleLabels,o=n.itemSize,l=n.getExtent(),s=this._applyTransform("left",i.mainGroup);T([0,1],function(u){var c=r[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var h=L(e[u],[0,o[1]],l,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/o[0],c.x=o[0]-d/2;var p=y.applyTransform(i.handleLabelPoints[u],y.getTransform(c,this.group));if("horizontal"===this._orient){var g="left"===s||"top"===s?(o[0]-d)/2:-((o[0]-d)/2);p[1]+=g}a[u].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,t,i,n){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,l=[0,o[1]],s=this._shapes,u=s.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(e,"symbolSize"),d=L(e,a,l,!0),p=o[0]-h/2,g={x:u.x,y:u.y};u.y=d,u.x=p;var f=y.applyTransform(s.indicatorLabelPoint,y.getTransform(u,this.group)),v=s.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",s.mainGroup),x="horizontal"===this._orient;v.setStyle({text:(i||"")+r.formatValueText(t),verticalAlign:x?m:"middle",align:x?"center":m});var S={x:p,y:d,style:{fill:c}},w={style:{x:f[0],y:f[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(S,b),v.animateTo(w,b)}else u.attr(S),v.attr(w);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},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]=P(D(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 r,a,o,l,s,u=[0,n[1]],c=i.getExtent();e=P(D(u[0],e),u[1]);var h=(r=i,a=c,o=u,l=6,(s=r.get("hoverLinkDataSize"))&&(l=L(s,a,o,!0)/2),l),d=[e-h,e+h],p=L(e,u,c,!0),g=[L(d[0],u,c,!0),L(d[1],u,c,!0)];d[0]<u[0]&&(g[0]=-1/0),d[1]>u[1]&&(g[1]=1/0),t&&(-1/0===g[0]?this._showIndicator(p,g[1],"< ",h):1/0===g[1]?this._showIndicator(p,g[0],"> ",h):this._showIndicator(p,p,"≈ ",h));var f=this._hoverLinkDataIndices,v=[];(t||z(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(g));var y=w.D6(f,v);this._dispatchHighDown("downplay",S.l(y[0],i)),this._dispatchHighDown("highlight",S.l(y[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){if((0,O.R)(e.target,function(e){var i=(0,_.z)(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 r=i.getData(t.dataType),a=r.getStore().get(n.getDataDimensionIndex(r),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",S.l(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=y.getTransform(t,n?null:this.group);return r.isArray(e)?y.applyTransform(e,a,i):y.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.A);function k(e,t,i,n){return new m.A({shape:{points:e},draggable:!!i,cursor:t,drift:i,onmousemove:function(e){d.ds(e.event)},ondragend:n})}function z(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function R(e){return"vertical"===e?"ns-resize":"ew-resize"}var N=i("kJ");function B(e){e.registerComponentModel(u),e.registerComponentView(V),(0,N.A)(e)}},ob(e,t,i){i.d(t,{a:()=>b});var n=i("i4"),r=i("iY"),a=i("pM"),o=i("h9"),l=i("VI"),s=i("MB"),u=i("Af"),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.C6)(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=r.clone(a)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=r.map(this._pieceList,function(e){return e=r.clone(e),"inRange"!==t&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,i={},n=o.A.listVisualTypes(),a=this.isCategory();function s(e,t,i){return e&&e[t]&&e[t].hasOwnProperty(i)}r.each(t.pieces,function(e){r.each(n,function(t){e.hasOwnProperty(t)&&(i[t]=1)})}),r.each(i,function(e,i){var n=!1;r.each(this.stateList,function(e){n=n||s(t,e,i)||s(t.target,e,i)},this),n||r.each(this.stateList,function(e){(t[e]||(t[e]={}))[i]=l.A.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,r.each(n,function(e,t){var i=this.getSelectedMapKey(e);a.hasOwnProperty(i)||(a[i]=!0)},this),"single"===i.selectedMode){var o=!1;r.each(n,function(e,t){var i=this.getSelectedMapKey(e);a[i]&&(o?a[i]=!1:o=!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=r.clone(e)},t.prototype.getValueState=function(e){var t=o.A.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 r=[],a=n.getData();a.each(this.getDataDimensionIndex(a),function(t,n){o.A.findPieceIndex(t,i)===e&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=-1/0===i[0]&&1/0===i[1]?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 o=a[0].interval[0];-1/0!==o&&a.unshift({interval:[-1/0,o]}),1/0!==(o=a[a.length-1].interval[1])&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var l=-1/0;return r.each(a,function(e){var t=e.interval;t&&(t[0]>l&&s([l,t[0]],"outOfRange"),s(t.slice()),l=t[1])},this),{stops:t,outerColors:i}}function s(r,a){var o=n.getRepresentValue({interval:r});a||(a=n.getValueState(o));var l=e(o,a);-1/0===r[0]?i[0]=l:1/0===r[1]?i[1]=l:t.push({value:r[0],color:l},{value:r[1],color:l})}},t.type="visualMap.piecewise",t.defaultOption=(0,u.G_)(a.A.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.A),h={splitNumber:function(e){var t=this.option,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;t.splitNumber=a=Math.max(parseInt(a,10),1);for(var o=(n[1]-n[0])/a;+o.toFixed(i)!==o&&i<5;)i++;t.precision=i,o=+o.toFixed(i),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var l=0,u=n[0];l<a;u+=o,l++){var c=l===a-1?n[1]:u+o;e.push({interval:[u,c],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),(0,s.sL)(e),r.each(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;r.each(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),d(t,e)},pieces:function(e){var t=this.option;r.each(t.pieces,function(t,i){r.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 l=n.interval=[],s=n.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],g=0;g<3&&null==l[d];g++)l[d]=t[p[g]],s[d]=u[g],h[d]=2===g;null==l[d]&&(l[d]=c[d])}h[0]&&1/0===l[1]&&(s[0]=0),h[1]&&-1/0===l[0]&&(s[1]=0),l[0]===l[1]&&s[0]&&s[1]&&(n.value=l[0])}n.visual=o.A.retrieveVisuals(t),e.push(n)},this),d(t,e),(0,s.sL)(e),r.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 d(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}var p=i("k7"),g=i("jZ"),f=i("s2"),v=i("up"),y=i("db"),m=i("a4"),x=i("F4"),S=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,i=t.get("textGap"),n=t.textStyleModel,a=this._getItemAlign(),o=t.itemSize,l=this._getViewData(),s=l.endsText,u=r.retrieve(t.get("showLabel",!0),!s),c=!t.get("selectedMode");s&&this._renderEndsText(e,s[0],o,u,a),r.each(l.viewPieceList,function(l){var s=l.piece,h=new g.A;h.onclick=r.bind(this._onItemClick,this,s),this._enableHoverLink(h,l.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(h,d,[0,0,o[0],o[1]],c),u){var p=this.visualMapModel.getValueState(d),v=n.get("align")||a;h.add(new f.Ay({style:(0,x.VB)(n,{x:"right"===v?-i:o[0]+i,y:o[1]/2,text:s.text,verticalAlign:n.get("verticalAlign")||"middle",align:v,opacity:r.retrieve2(n.get("opacity"),"outOfRange"===p?.5:1)}),silent:c}))}e.add(h)},this),s&&this._renderEndsText(e,s[1],o,u,a),y.aP(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:m.l(n.findTargetDataIndices(t),n)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return m.J(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},t.prototype._renderEndsText=function(e,t,i,n,r){if(t){var a=new g.A,o=this.visualMapModel.textStyleModel;a.add(new f.Ay({style:(0,x.VB)(o,{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?r:"center",text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=r.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,n){var r=(0,v.v5)(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color"));r.silent=n,e.add(r)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,i=t.option,n=i.selectedMode;if(n){var a=r.clone(i.selected),o=t.getSelectedMapKey(e);"single"===n||!0===n?(a[o]=!0,r.each(a,function(e,t){a[t]=t===o})):a[o]=!a[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(p.A),w=i("kJ");function b(e){e.registerComponentModel(c),e.registerComponentView(S),(0,w.A)(e)}},rP(e,t,i){var n=i("zM"),r=i("Pk"),a=i("Jx"),o=i("Ig"),l=i("QW"),s=i("mq"),u=i("iY"),c=i("AT"),h=i("xy"),d=i("LP"),p=2*Math.PI,g=o.A.CMD,f=["top","right","bottom","left"];function v(e,t,i,n,r,a,o,l){var s=i-e,u=n-t,c=Math.sqrt(s*s+u*u),h=((r-e)*(s/=c)+(a-t)*(u/=c))/c;l&&(h=Math.min(Math.max(h,0),1)),h*=c;var d=o[0]=e+h*s,p=o[1]=t+h*u;return Math.sqrt((d-r)*(d-r)+(p-a)*(p-a))}function y(e,t,i,n,r,a,o){i<0&&(e+=i,i=-i),n<0&&(t+=n,n=-n);var l=e+i,s=t+n,u=o[0]=Math.min(Math.max(r,e),l),c=o[1]=Math.min(Math.max(a,t),s);return Math.sqrt((u-r)*(u-r)+(c-a)*(c-a))}var m=[],x=new n.A,S=new n.A,w=new n.A,b=new n.A,A=new n.A,M=[],I=new n.A;function _(e,t){if(t<=180&&t>0){t=t/180*Math.PI,x.fromArray(e[0]),S.fromArray(e[1]),w.fromArray(e[2]),n.A.sub(b,x,S),n.A.sub(A,w,S);var i=b.len(),r=A.len();if(!(i<.001)&&!(r<.001)&&(b.scale(1/i),A.scale(1/r),Math.cos(t)<b.dot(A))){var a=v(S.x,S.y,w.x,w.y,x.x,x.y,M,!1);I.fromArray(M),I.scaleAndAdd(A,a/Math.tan(Math.PI-t));var o=w.x!==S.x?(I.x-S.x)/(w.x-S.x):(I.y-S.y)/(w.y-S.y);if(isNaN(o))return;o<0?n.A.copy(I,S):o>1&&n.A.copy(I,w),I.toArray(e[1])}}}function C(e,t,i,n){var r="normal"===i,a=r?e:e.ensureState(i);a.ignore=t;var o=n.get("smooth");o=!0===o?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var l=n.getModel("lineStyle").getLineStyle();r?e.useStyle(l):a.style=l}function O(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 r=h.dist(n[0],n[1]),a=h.dist(n[1],n[2]);if(!r||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(r,a)*i,l=h.lerp([],n[1],n[0],o/r),s=h.lerp([],n[1],n[2],o/a),u=h.lerp([],l,s,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],u[0],u[1]),e.bezierCurveTo(s[0],s[1],s[0],s[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}i.d(t,{},{QK:function(e,t,i){if(i<=180&&i>0){i=i/180*Math.PI,x.fromArray(e[0]),S.fromArray(e[1]),w.fromArray(e[2]),n.A.sub(b,S,x),n.A.sub(A,w,S);var r=b.len(),a=A.len();if(!(r<.001)&&!(a<.001)&&(b.scale(1/r),A.scale(1/a),b.dot(t)<Math.cos(i))){var o=v(S.x,S.y,w.x,w.y,x.x,x.y,M,!1);I.fromArray(M);var l=Math.PI/2,s=l+Math.acos(A.dot(t))-i;if(s>=l)n.A.copy(I,w);else{I.scaleAndAdd(A,o/Math.tan(Math.PI/2-s));var u=w.x!==S.x?(I.x-S.x)/(w.x-S.x):(I.y-S.y)/(w.y-S.y);if(isNaN(u))return;u<0?n.A.copy(I,S):u>1&&n.A.copy(I,w)}I.toArray(e[1])}}},YI:_,eR:function(e,t,i){var n=e.getTextGuideLine(),r=e.getTextContent();if(!r){n&&e.removeTextGuideLine();return}for(var o=t.normal,l=o.get("show"),s=r.ignore,c=0;c<d.wV.length;c++){var h=d.wV[c],p=t[h],g="normal"===h;if(p){var f=p.get("show");if((g?s:(0,u.retrieve2)(r.states[h]&&r.states[h].ignore,s))||!(0,u.retrieve2)(f,l)){var v=g?n:n&&n.states[h];v&&(v.ignore=!0),n&&C(n,!0,h,p);continue}!n&&(n=new a.A,e.setTextGuideLine(n),g||!s&&l||C(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),C(n,!1,h,p)}}if(n){(0,u.defaults)(n.style,i),n.style.fill=null;var y=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=y||!1,n.buildPath=O}},lB:function(e,t){if(e){var i=e.getTextGuideLine(),a=e.getTextContent();if(a&&i){var o=e.textGuideLineConfig||{},u=[[0,0],[0,0],[0,0]],h=o.candidates||f,d=a.getBoundingRect().clone();d.applyTransform(a.getComputedTransform());var A=1/0,M=o.anchor,I=e.getComputedTransform(),C=I&&(0,c.invert)([],I),O=t.get("length2")||0;M&&w.copy(M);for(var L=0;L<h.length;L++){!function(e,t,i,n){var r=t.width,a=t.height;switch(e){case"top":i.set(t.x+r/2,t.y-0),n.set(0,-1);break;case"bottom":i.set(t.x+r/2,t.y+a+0),n.set(0,1);break;case"left":i.set(t.x-0,t.y+a/2),n.set(-1,0);break;case"right":i.set(t.x+r+0,t.y+a/2),n.set(1,0)}}(h[L],d,x,b),n.A.scaleAndAdd(S,x,b,O),S.transform(C);var T=e.getBoundingRect(),P=M?M.distance(S):e instanceof r.Ay?function(e,t,i){for(var n,r,a=0,o=0,u=0,c=0,h=1/0,d=t.data,f=e.x,x=e.y,S=0;S<d.length;){var w=d[S++];1===S&&(a=d[S],o=d[S+1],u=a,c=o);var b=h;switch(w){case g.M:u=d[S++],c=d[S++],a=u,o=c;break;case g.L:b=v(a,o,d[S],d[S+1],f,x,m,!0),a=d[S++],o=d[S++];break;case g.C:b=(0,s.Et)(a,o,d[S++],d[S++],d[S++],d[S++],d[S],d[S+1],f,x,m),a=d[S++],o=d[S++];break;case g.Q:b=(0,s.kh)(a,o,d[S++],d[S++],d[S],d[S+1],f,x,m),a=d[S++],o=d[S++];break;case g.A:var A=d[S++],M=d[S++],I=d[S++],_=d[S++],C=d[S++],O=d[S++];S+=1;var L=!!(1-d[S++]);n=Math.cos(C)*I+A,r=Math.sin(C)*_+M,S<=1&&(u=n,c=r);var T=(f-A)*_/I+A;b=function(e,t,i,n,r,a,o,s,u){var c=Math.sqrt((o-=e)*o+(s-=t)*s),h=(o/=c)*i+e,d=(s/=c)*i+t;if(Math.abs(n-r)%p<1e-4)return u[0]=h,u[1]=d,c-i;if(a){var g=n;n=(0,l.n)(r),r=(0,l.n)(g)}else n=(0,l.n)(n),r=(0,l.n)(r);n>r&&(r+=p);var f=Math.atan2(s,o);if(f<0&&(f+=p),f>=n&&f<=r||f+p>=n&&f+p<=r)return u[0]=h,u[1]=d,c-i;var v=i*Math.cos(n)+e,y=i*Math.sin(n)+t,m=i*Math.cos(r)+e,x=i*Math.sin(r)+t,S=(v-o)*(v-o)+(y-s)*(y-s),w=(m-o)*(m-o)+(x-s)*(x-s);return S<w?(u[0]=v,u[1]=y,Math.sqrt(S)):(u[0]=m,u[1]=x,Math.sqrt(w))}(A,M,_,C,C+O,L,T,x,m),a=Math.cos(C+O)*I+A,o=Math.sin(C+O)*_+M;break;case g.R:b=y(u=a=d[S++],c=o=d[S++],d[S++],d[S++],f,x,m);break;case g.Z:b=v(a,o,u,c,f,x,m,!0),a=u,o=c}b<h&&(h=b,i.set(m[0],m[1]))}return h}(S,e.path,w):function(e,t,i){var n=y(t.x,t.y,t.width,t.height,e.x,e.y,m);return i.set(m[0],m[1]),n}(S,T,w);P<A&&(A=P,S.transform(I),w.transform(I),w.toArray(u[0]),S.toArray(u[1]),x.toArray(u[2]))}_(u,t.get("minTurnAngle")),i.setShape({points:u})}}},rv:function(e,t){t=t||"labelLine";for(var i={normal:e.getModel(t)},n=0;n<d.BV.length;n++){var r=d.BV[n];i[r]=e.getModel([r,t])}return i}})},oL(e,t,i){i.d(t,{},{A:function(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),r=0;r<i.length;r++)if(!i[r].isSelected(t))return!1;return!0})}}}}})},ZJ(e,t,i){var n=i("iY"),r=i("g8w");function a(e,t){t&&(t.font=t.textFont||t.font,(0,n.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),(0,n.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),(0,n.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),(0,n.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),(0,n.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),(0,n.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),(0,n.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),(0,n.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),(0,n.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),(0,n.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),(0,n.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),(0,n.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),(0,n.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),(0,n.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),(0,n.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function o(e,t){t&&((0,n.hasOwn)(t,"fill")&&(e.textFill=t.fill),(0,n.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),(0,n.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),(0,n.hasOwn)(t,"font")&&(e.font=t.font),(0,n.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),(0,n.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),(0,n.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),(0,n.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),(0,n.hasOwn)(t,"align")&&(e.textAlign=t.align),(0,n.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),(0,n.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),(0,n.hasOwn)(t,"width")&&(e.textWidth=t.width),(0,n.hasOwn)(t,"height")&&(e.textHeight=t.height),(0,n.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),(0,n.hasOwn)(t,"padding")&&(e.textPadding=t.padding),(0,n.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),(0,n.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),(0,n.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),(0,n.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),(0,n.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),(0,n.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),(0,n.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),(0,n.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),(0,n.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),(0,n.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),(0,n.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}i.d(t,{},{Fs:function(e,t,i){e.textPosition=e.textPosition||i.position||"inside",null!=i.offset&&(e.textOffset=i.offset),null!=i.rotation&&(e.textRotation=i.rotation),null!=i.distance&&(e.textDistance=i.distance);var a=e.textPosition.indexOf("inside")>=0,l=e.fill||r.A.color.neutral99;o(e,t);var s=null==e.textFill;return a?s&&(e.textFill=i.insideFill||r.A.color.neutral00,!e.textStroke&&i.insideStroke&&(e.textStroke=i.insideStroke),e.textStroke||(e.textStroke=l),null==e.textStrokeWidth&&(e.textStrokeWidth=2)):(s&&(e.textFill=e.fill||i.outsideFill||r.A.color.neutral00),!e.textStroke&&i.outsideStroke&&(e.textStroke=i.outsideStroke)),e.text=t.text,e.rich=t.rich,(0,n.each)(t.rich,function(e){o(e,e)}),e},ex:function(e,t,i,r){return e&&(e.legacy||!1!==e.legacy&&!i&&!r&&"tspan"!==t&&("text"===t||(0,n.hasOwn)(e,"text")))},lH:function(e,t,i){var r,o,l;if("text"===t)l=e;else{l={},(0,n.hasOwn)(e,"text")&&(l.text=e.text),(0,n.hasOwn)(e,"rich")&&(l.rich=e.rich),(0,n.hasOwn)(e,"textFill")&&(l.fill=e.textFill),(0,n.hasOwn)(e,"textStroke")&&(l.stroke=e.textStroke),(0,n.hasOwn)(e,"fontFamily")&&(l.fontFamily=e.fontFamily),(0,n.hasOwn)(e,"fontSize")&&(l.fontSize=e.fontSize),(0,n.hasOwn)(e,"fontStyle")&&(l.fontStyle=e.fontStyle),(0,n.hasOwn)(e,"fontWeight")&&(l.fontWeight=e.fontWeight),o={type:"text",style:l,silent:!0},r={};var s=(0,n.hasOwn)(e,"textPosition");i?r.position=s?e.textPosition:"inside":s&&(r.position=e.textPosition),(0,n.hasOwn)(e,"textPosition")&&(r.position=e.textPosition),(0,n.hasOwn)(e,"textOffset")&&(r.offset=e.textOffset),(0,n.hasOwn)(e,"textRotation")&&(r.rotation=e.textRotation),(0,n.hasOwn)(e,"textDistance")&&(r.distance=e.textDistance)}return a(l,e),(0,n.each)(l.rich,function(e){a(e,e)}),{textConfig:r,textContent:o}}})},P2(e,t){t.A=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}()},h9(e,t,i){var n=i("iY"),r=i("x4z"),a=i("MB"),o=n.each,l=n.isObject,s=function(){function e(t){var i,r,a=t.mappingMethod,l=t.type,s=this.option=n.clone(t);this.type=l,this.mappingMethod=a,this._normalizeData=m[a];var c=e.visualHandlers[l];this.applyVisual=c.applyVisual,this.getColorMapper=c.getColorMapper,this._normalizedToVisual=c._normalizedToVisual[a],"piecewise"===a?(u(s),r=(i=s).pieceList,i.hasSpecialVisual=!1,n.each(r,function(e,t){e.originIndex=t,null!=e.visual&&(i.hasSpecialVisual=!0)})):"category"===a?s.categories?function(e){var t=e.categories,i=e.categoryMap={},r=e.visual;if(o(t,function(e,t){i[e]=t}),!n.isArray(r)){var a=[];n.isObject(r)?o(r,function(e,t){var n=i[t];a[null!=n?n:-1]=e}):a[-1]=r,r=y(e,a)}for(var l=t.length-1;l>=0;l--)null==r[l]&&(delete i[t[l]],t.pop())}(s):u(s,!0):(n.assert("linear"!==a||s.dataExtent),u(s))}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,r){var a,o=n.isArray(t)?[]:n.isObject(t)?{}:(a=!0,null);return e.eachVisual(t,function(e,t){var n=i.call(r,e,t);a?o=n:o[t]=n}),o},e.retrieveVisuals=function(t){var i,n={};return t&&o(e.visualHandlers,function(e,r){t.hasOwnProperty(r)&&(n[r]=t[r],i=!0)}),i?n:null},e.prepareVisualTypes=function(e){if(n.isArray(e))e=e.slice();else{if(!l(e))return[];var t=[];o(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 r,a=1/0,o=0,l=t.length;o<l;o++){var s=t[o].value;if(null!=s){if(s===e||n.isString(s)&&s===e+"")return o;i&&M(s,o)}}for(var o=0,l=t.length;o<l;o++){var u,c,h,d,p,g,f,v,y,m,x,S,w=t[o],b=w.interval,A=w.close;if(b){if(-1/0===b[0]){if(u=A[1],c=e,h=b[1],u?c<=h:c<h)return o}else if(1/0===b[1]){if(d=A[0],p=b[0],g=e,d?p<=g:p<g)return o}else{if(f=A[0],v=b[0],y=e,(f?v<=y:v<y)&&(m=A[1],x=e,S=b[1],m?x<=S:x<S))return o}i&&M(b[0],o),i&&M(b[1],o)}}if(i)return 1/0===e?t.length-1:-1/0===e?0:r;function M(t,i){var n=Math.abs(t-e);n<a&&(a=n,r=i)}},e.visualHandlers={color:{applyVisual:d("color"),getColorMapper:function(){var e=this.option;return n.bind("category"===e.mappingMethod?function(e,t){return t||(e=this._normalizeData(e)),p.call(this,e)}:function(t,i,n){var a=!!n;return i||(t=this._normalizeData(t)),n=r.fastLerp(t,e.parsedVisual,n),a?n:r.stringify(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")},category:p,piecewise:function(e,t){var i=v.call(this,t);return null==i&&(i=r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")),i},fixed:g}},colorHue:c(function(e,t){return r.modifyHSL(e,t)}),colorSaturation:c(function(e,t){return r.modifyHSL(e,null,t)}),colorLightness:c(function(e,t){return r.modifyHSL(e,null,null,t)}),colorAlpha:c(function(e,t){return r.modifyAlpha(e,t)}),decal:{applyVisual:d("decal"),_normalizedToVisual:{linear:null,category:p,piecewise:null,fixed:null}},opacity:{applyVisual:d("opacity"),_normalizedToVisual:f([0,1])},liftZ:{applyVisual:d("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:p,piecewise:function(e,t){var i=v.call(this,t);return null==i&&(i=h.call(this,e)),i},fixed:g}},symbolSize:{applyVisual:d("symbolSize"),_normalizedToVisual:f([0,1])}},e}();function u(e,t){var i=e.visual,r=[];n.isObject(i)?o(i,function(e){r.push(e)}):null!=i&&r.push(i),t||1!==r.length||({color:1,symbol:1}).hasOwnProperty(e.type)||(r[1]=r[0]),y(e,r)}function c(e){return{applyVisual:function(t,i,n){var r=this.mapValueToVisual(t);n("color",e(i("color"),r))},_normalizedToVisual:f([0,1])}}function h(e){var t=this.option.visual;return t[Math.round((0,a.Cb)(e,[0,1],[0,t.length-1],!0))]||{}}function d(e){return function(t,i,n){n(e,this.mapValueToVisual(t))}}function p(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.Cb)(t,e,this.option.visual,!0)},category:p,piecewise:function(t,i){var n=v.call(this,i);return null==n&&(n=(0,a.Cb)(t,e,this.option.visual,!0)),n},fixed:g}}function v(e){var t=this.option,i=t.pieceList;if(t.hasSpecialVisual){var n=s.findPieceIndex(e,i),r=i[n];if(r&&r.visual)return r.visual[this.type]}}function y(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=n.map(t,function(e){return r.parse(e)||[0,0,0,1]})),t}var m={linear:function(e){return(0,a.Cb)(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,i=s.findPieceIndex(e,t,!0);if(null!=i)return(0,a.Cb)(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};t.A=s},VI(e,t,i){var n=i("iY"),r={color:{active:["#006edd","#e0ffff"],inactive:[i("g8w").A.color.transparent]},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]}};t.A={get:function(e,t,i){var a=n.clone((r[e]||{})[t]);return i&&n.isArray(a)?a[a.length-1]:a}}},Hg(e,t,i){var n=i("iY"),r=i("h9"),a=i("N1e"),o=n.each;function l(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}i.d(t,{},{R3:function(e,t,i,o,l,s){var u,c={};function h(e){return(0,a.Ez)(i,u,e)}function d(e,t){(0,a.oZ)(i,u,e,t)}function p(e,n){u=null==s?e:n;var r=i.getRawDataItem(u);if(!r||!1!==r.visualMap)for(var a=o.call(l,e),p=t[a],g=c[a],f=0,v=g.length;f<v;f++){var y=g[f];p[y]&&p[y].applyVisual(e,h,d)}}n.each(e,function(e){var i=r.A.prepareVisualTypes(t[e]);c[e]=i}),null==s?i.each(p):i.each([s],p)},St:function(e,t,i){var r;n.each(i,function(e){t.hasOwnProperty(e)&&l(t[e])&&(r=!0)}),r&&n.each(i,function(i){t.hasOwnProperty(i)&&l(t[i])?e[i]=n.clone(t[i]):delete e[i]})},dS:function(e,t,i,o){var l={};return n.each(e,function(e){var i=r.A.prepareVisualTypes(t[e]);l[e]=i}),{progress:function(e,n){function r(e){return(0,a.Ez)(n,c,e)}function s(e,t){(0,a.oZ)(n,c,e,t)}null!=o&&(u=n.getDimensionIndex(o));for(var u,c,h=n.getStore();null!=(c=e.next());){var d=n.getRawDataItem(c);if(!d||!1!==d.visualMap)for(var p=null!=o?h.get(u,c):c,g=i(p),f=t[g],v=l[g],y=0,m=v.length;y<m;y++){var x=v[y];f[x]&&f[x].applyVisual(p,r,s)}}}}},u1:function(e,t,i){var a={};return o(t,function(t){var l,s=a[t]=((l=function(){}).prototype.__hidden=l.prototype,new l);o(e[t],function(e,a){if(r.A.isValidType(a)){var o={type:a,visual:e};i&&i(o,t),s[a]=new r.A(o),"opacity"===a&&((o=n.clone(o)).type="colorAlpha",s.__hidden.__alphaForOpacity=new r.A(o))}})}),a}})}}]);
|
|
1
|
+
"use strict";(self.chunk_PulzrTimeSeriesChart_0_1_3=self.chunk_PulzrTimeSeriesChart_0_1_3||[]).push([["tl"],{Qe(e,t,i){var n=i("iY"),r=i("uS"),a=i("W5"),o=(0,i("xN").$r)(),l=["percent","easing","shape","style","extra"];i.d(t,{},{$:function(e){e.stopAnimation("keyframe"),e.attr(o(e))},L:function e(t,i,s){if(s.isAnimationEnabled()&&i){if((0,n.isArray)(i))return void(0,n.each)(i,function(i){e(t,i,s)});var u=i.keyframes,c=i.duration;if(s&&null==c){var h=(0,a.Jw)("enter",s,0);c=h&&h.duration}if(u&&c){var d=o(t);(0,n.each)(r.rd,function(e){var r;e&&!t[e]||(u.sort(function(e,t){return e.percent-t.percent}),(0,n.each)(u,function(a){var o=t.animators,s=e?a[e]:a;if(s){var u=(0,n.keys)(s);if(e||(u=(0,n.filter)(u,function(e){return 0>(0,n.indexOf)(l,e)})),u.length){r||((r=t.animate(e,i.loop,!0)).scope="keyframe");for(var h=0;h<o.length;h++)o[h]!==r&&o[h].targetName===r.targetName&&o[h].stopTracks(u);e&&(d[e]=d[e]||{});var p=e?d[e]:d;(0,n.each)(u,function(i){p[i]=((e?t[e]:t)||{})[i]}),r.whenWithKeys(c*a.percent,s,u,a.easing)}}}),r&&r.delay(i.delay||0).duration(c).start(i.easing))})}}}})},uS(e,t,i){var n=i("xN"),r=i("iY"),a=i("oi"),o=i("el"),l=i("W5"),s=i("Pk"),u=i("P7"),c={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},h=(0,r.keys)(c);(0,r.reduce)(u.Wx,function(e,t){return e[t]=1,e},{}),u.Wx.join(", ");var d=["","style","shape","extra"],p=(0,n.$r)();function g(e,t,i,n,a){var o=e+"Animation",s=(0,l.Jw)(e,n,a)||{},u=p(t).userDuring;return s.duration>0&&(s.during=u?(0,r.bind)(x,{el:t,userDuring:u}):null,s.setToFinal=!0,s.scope=e),(0,r.extend)(s,i[o]),s}function f(e,t){for(var i=p(e).leaveToProps,n=0;n<d.length;n++){var a=d[n],o=a?t[a]:t;o&&o.leaveTo&&(i||(i=p(e).leaveToProps={}),a&&(i[a]=i[a]||{}),(0,r.extend)(a?i[a]:i,o.leaveTo))}}function v(e){return"all"===e}var y={},m={setTransform:function(e,t){return y.el[e]=t,this},getTransform:function(e){return y.el[e]},setShape:function(e,t){var i=y.el;return(i.shape||(i.shape={}))[e]=t,i.dirtyShape&&i.dirtyShape(),this},getShape:function(e){var t=y.el.shape;if(t)return t[e]},setStyle:function(e,t){var i=y.el,n=i.style;return n&&(n[e]=t,i.dirtyStyle&&i.dirtyStyle()),this},getStyle:function(e){var t=y.el.style;if(t)return t[e]},setExtra:function(e,t){return(y.el.extra||(y.el.extra={}))[e]=t,this},getExtra:function(e){var t=y.el.extra;if(t)return t[e]}};function x(){var e=this.el;if(e){var t=p(e).userDuring,i=this.userDuring;if(t!==i){this.el=this.userDuring=null;return}y.el=e,i(m)}}function S(e,t,i,a){var o,l=i[e];if(l){var s=t[e];if(s){var u=i.transition,c=l.transition;if(c)if(o||(o=a[e]={}),v(c))(0,r.extend)(o,s);else for(var h=(0,n.qB)(c),d=0;d<h.length;d++){var p=h[d],g=s[p];o[p]=g}else if(v(u)||(0,r.indexOf)(u,e)>=0){o||(o=a[e]={});for(var f=(0,r.keys)(s),d=0;d<f.length;d++){var y,m,p=f[d],g=s[p];y=l[p],m=g,((0,r.isArrayLike)(y)?y!==m:null!=y&&isFinite(y))&&(o[p]=g)}}}}}function w(e,t,i){var n=t[e];if(n)for(var o=i[e]={},l=(0,r.keys)(n),s=0;s<l.length;s++){var u=l[s];o[u]=(0,a.F)(n[u])}}i.d(t,{},{aB:f,h8:function(e,t,i,n){if(e){var r=e.parent,a=p(e).leaveToProps;if(a){var o=g("update",e,t,i,0);o.done=function(){r&&r.remove(e),n&&n()},e.animateTo(a,o)}else r&&r.remove(e),n&&n()}},ho:v,rd:d,rh:function(e,t,i,a){var l,y,m=(a=a||{}).dataIndex,x=a.isInit,b=a.clearStyle,A=i.isAnimationEnabled(),M=p(e),I=t.style;M.userDuring=t.during;var _={},C={};if(function(e,t){for(var i=0;i<h.length;i++){var n=h[i],r=c[n],a=e[n];a&&(t[r[0]]=a[0],t[r[1]]=a[1])}for(var i=0;i<u.Wx.length;i++){var o=u.Wx[i];null!=e[o]&&(t[o]=e[o])}}(t,C),"compound"===e.type)for(var O=e.shape.paths,L=t.shape.paths,T=0;T<L.length;T++)w("shape",L[T],O[T]);else w("shape",t,C),w("extra",t,C);if(!x&&A&&(function(e,t,i){for(var r=t.transition,a=v(r)?u.Wx:(0,n.qB)(r||[]),o=0;o<a.length;o++){var l=a[o];if("style"!==l&&"shape"!==l&&"extra"!==l){var s=e[l];i[l]=s}}}(e,t,_),S("shape",e,t,_),S("extra",e,t,_),function(e,t,i,a){if(i){var o,l=e.style;if(l){var s=i.transition,u=t.transition;if(s&&!v(s)){var c=(0,n.qB)(s);o||(o=a.style={});for(var h=0;h<c.length;h++){var d=c[h],p=l[d];o[d]=p}}else if(e.getAnimationStyleProps&&(v(u)||v(s)||(0,r.indexOf)(u,"style")>=0)){var g=e.getAnimationStyleProps(),f=g?g.style:null;if(f){o||(o=a.style={});for(var y=(0,r.keys)(i),h=0;h<y.length;h++){var d=y[h];if(f[d]){var p=l[d];o[d]=p}}}}}}}(e,t,I,_)),C.style=I,function(e,t,i){var n=t.style;if(!e.isGroup&&n){if(i){e.useStyle({});for(var r=e.animators,a=0;a<r.length;a++){var o=r[a];"style"===o.targetName&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}(e,C,b),l=e,y=t,(0,r.hasOwn)(y,"silent")&&(l.silent=y.silent),(0,r.hasOwn)(y,"ignore")&&(l.ignore=y.ignore),l instanceof o.Ay&&(0,r.hasOwn)(y,"invisible")&&(l.invisible=y.invisible),l instanceof s.Ay&&(0,r.hasOwn)(y,"autoBatch")&&(l.autoBatch=y.autoBatch),A)if(x){var P={};(0,r.each)(d,function(e){var i=e?t[e]:t;i&&i.enterFrom&&(e&&(P[e]=P[e]||{}),(0,r.extend)(e?P[e]:P,i.enterFrom))});var D=g("enter",e,t,i,m);D.duration>0&&e.animateFrom(P,D)}else{var V=e,k=t,z=m||0,R=i,N=_;if(N){var B=g("update",V,k,R,z);B.duration>0&&V.animateFrom(N,B)}}f(e,t),I?e.dirty():e.markRedraw()}})},Q6(e,t,i){i.d(t,{a:()=>ed});var n=i("i4"),r=i("hy"),a=i("xN"),o=i("yd"),l={color:"fill",borderColor:"stroke"},s={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},u=(0,a.$r)(),c=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return(0,r.A)(null,this)},t.prototype.getDataParams=function(t,i,n){var r=e.prototype.getDataParams.call(this,t,i);return n&&(r.info=u(n).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(o.A),h=i("iY"),d=i("Pk"),p=i("uf"),g=i("s5"),f=i("s2"),v=i("jZ"),y=i("zY"),m=i("LP"),x=i("F4"),S=i("g2"),w=i("nT"),b=i("YQ"),A=i("WN9"),M=i("hHP"),I=i("lN");function _(e,t){return t=t||[0,0],h.map(["x","y"],function(i,n){var r=this.getAxis(i),a=t[n],o=e[n]/2;return"category"===r.type?(0,I.D)(r).w:Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))},this)}var C=i("uc");function O(e,t){return t=t||[0,0],h.map([0,1],function(i){var n=t[i],r=e[i]/2,a=[],o=[];return a[i]=n-r,o[i]=n+r,a[1-i]=o[1-i]=t[1-i],Math.abs(this.dataToPoint(a)[i]-this.dataToPoint(o)[i])},this)}function L(e,t){var i=this.getAxis(),n=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===i.type?(0,I.D)(i).w:Math.abs(i.dataToCoord(n-r)-i.dataToCoord(n+r))}function T(e,t){return t=t||[0,0],h.map(["Radius","Angle"],function(i,n){var r=this["get"+i+"Axis"](),a=t[n],o=e[n]/2,l="category"===r.type?(0,I.D)(r).w:Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o));return"Angle"===i&&(l=l*Math.PI/180),l},this)}var P=i("el"),D=i("ZJ"),V=i("nXY"),k=i("Upd"),z=i("uS"),R=i("Qe"),N=i("LV"),B=i("g8w"),E="emphasis",G="normal",W="blur",H="select",F=[G,E,W,H],Y={normal:["itemStyle"],emphasis:[E,"itemStyle"],blur:[W,"itemStyle"],select:[H,"itemStyle"]},Z={normal:["label"],emphasis:[E,"label"],blur:[W,"label"],select:[H,"label"]},X=["x","y"],q={normal:{},emphasis:{},blur:{},select:{}},U={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:h.bind(_,e)}}},geo:function(e){var t=e.view,i=t.getBoundingRect();return{coordSys:{type:"geo",x:i.x,y:i.y,width:i.width,height:i.height,zoom:(0,C._)(t)},api:{coord:function(t){return e.dataToPoint(t)},size:h.bind(O,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:(0,h.bind)(L,e)}}},polar:function(e){var t=e.getRadiusAxis(),i=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(n){var r=t.dataToRadius(n[0]),a=i.dataToAngle(n[1]),o=e.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o},size:h.bind(T,e)}}},calendar:function(e){var t=e.getRect(),i=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(t,i){return e.dataToPoint(t,i)},layout:function(t,i){return e.dataToLayout(t,i)}}}},matrix:function(e){var t=e.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,i){return e.dataToPoint(t,i)},layout:function(t,i){return e.dataToLayout(t,i)}}}}};function J(e){return e instanceof d.Ay}function K(e){return e instanceof P.Ay}var j=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.render=function(e,t,i,n){this._progressiveEls=null;var r=this._data,a=e.getData(),o=this.group,l=et(e,a,t,i);r||o.removeAll(),a.diff(r).add(function(t){ei(i,null,t,l(t,n),e,o,a)}).remove(function(t){var i=r.getItemGraphicEl(t);i&&(0,z.h8)(i,u(i).option,e)}).update(function(t,s){ei(i,r.getItemGraphicEl(s),t,l(t,n),e,o,a)}).execute();var s=e.get("clip",!0)?(0,M.Ip)(e.coordinateSystem,!1,e):null;s?o.setClipPath(s):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,i,n,r){var o=t.getData(),l=et(t,o,i,n),s=this._progressiveEls=[];function u(e){e.isGroup||(e.incremental=(0,a.i2)(t),e.ensureState("emphasis").hoverLayer=p.HOVER_LAYER_FOR_INCREMENTAL)}for(var c=e.start;c<e.end;c++){var h=ei(null,null,c,l(c,r),t,this.group,o);h&&(h.traverse(u),s.push(h))}},t.prototype.eachRendered=function(e){p.traverseElements(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,i,n){var r=t.element;if(null==r||i.name===r)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===r)return!0;return!1},t.type="custom",t}(A.A);function $(e){var t,i=e.type;if("path"===i){var n=e.shape,r=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=eh(n);u(t=p.makePath(a,null,r,n.layout||"center")).customPathData=a}else if("image"===i)u(t=new g.Ay({})).customImagePath=e.style.image;else if("text"===i)t=new f.Ay({});else if("group"===i)t=new v.A;else if("compoundPath"===i){var n=e.shape;if(!n||!n.paths){var o="";(0,V.$8)(o)}var l=(0,h.map)(n.paths,function(e){if("path"===e.type)return p.makePath(e.shape.pathData,e,null);var t=p.getShapeClass(e.type);return t||(0,V.$8)(""),new t});t=new y.A({shape:{paths:l}})}else{var s=p.getShapeClass(i);if(!s){var o="";(0,V.$8)(o)}t=new s}return u(t).customGraphicType=i,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Q(e,t,i,n,r,a,o){(0,R.$)(t);var l=r&&r.normal.cfg;l&&t.setTextConfig(l),n&&null==n.transition&&(n.transition=X);var s=n&&n.style;if(s){"text"===t.type&&((0,h.hasOwn)(s,"textFill")&&(s.fill=s.textFill),(0,h.hasOwn)(s,"textStroke")&&(s.stroke=s.textStroke));var u=void 0,c=J(t)?s.decal:null;e&&c&&(c.dirty=!0,u=(0,k.w)(c,e)),s.__decalPattern=u}if(K(t)&&s){var u=s.__decalPattern;u&&(s.decal=u)}(0,z.rh)(t,n,a,{dataIndex:i,isInit:o,clearStyle:!0}),(0,R.L)(t,n.keyframeAnimation,a)}function ee(e,t,i,n,r){var a=t.isGroup?null:t,o=r&&r[e].cfg;if(a){var l=a.ensureState(e);if(!1===n){var s=a.getState(e);s&&(s.style=null)}else l.style=n||null;o&&(l.textConfig=o),(0,m.DW)(a)}}function et(e,t,i,n){var r,a,o,u,c=e.get("renderItem");if("string"==typeof c){var d=(0,N.Z)(c);d&&(c=d)}var p=e.coordinateSystem,g={};p&&(g=p.prepareCustoms?p.prepareCustoms(p):U[p.type](p));for(var f=(0,h.defaults)({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(e,i){return null==i&&(i=o),t.getStore().get(t.getDimensionIndex(e||0),i)},style:function(i,n){null==n&&(n=o);var r=t.getItemVisual(n,"style"),a=r&&r.fill,l=r&&r.opacity,s=C(n,G).getItemStyle();null!=a&&(s.fill=a),null!=l&&(s.opacity=l);var u={inheritColor:(0,h.isString)(a)?a:B.A.color.neutral99},c=O(n,G),d=x.VB(c,null,u,!1,!0);d.text=c.getShallow("show")?(0,h.retrieve2)(e.getFormattedLabel(n,G),(0,S.i)(t,n)):null;var p=x.sD(c,u,!1);return T(i,s),s=(0,D.Fs)(s,d,p),i&&L(s,i),s.legacy=!0,s},ordinalRawValue:function(e,i){null==i&&(i=o),e=e||0;var n=t.getDimensionInfo(e);if(!n){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,i):void 0}var a=t.get(n.name,i),l=n&&n.ordinalMeta;return l?l.categories[a]:a},styleEmphasis:function(i,n){null==n&&(n=o);var r=C(n,E).getItemStyle(),a=O(n,E),l=x.VB(a,null,null,!0,!0);l.text=a.getShallow("show")?(0,h.retrieve3)(e.getFormattedLabel(n,E),e.getFormattedLabel(n,G),(0,S.i)(t,n)):null;var s=x.sD(a,null,!0);return T(i,r),r=(0,D.Fs)(r,l,s),i&&L(r,i),r.legacy=!0,r},visual:function(e,i){if(null==i&&(i=o),(0,h.hasOwn)(l,e)){var n=t.getItemVisual(i,"style");return n?n[l[e]]:null}if((0,h.hasOwn)(s,e))return t.getItemVisual(i,e)},barLayout:function(e){if("cartesian2d"===p.type){var t=p.getBaseAxis();return(0,w.aR)((0,h.defaults)({axis:t},e))}},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(e){return x.c8(e,i)}},g.api||{}),v={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:g.coordSys,dataInsideLength:t.count(),encode:(r=e.getData(),a={},(0,h.each)(r.dimensions,function(e){var t=r.getDimensionInfo(e);if(!t.isExtraCoord){var i=t.coordDim;(a[i]=a[i]||[])[t.coordDimIndex]=r.getDimensionIndex(e)}}),a),itemPayload:e.get("itemPayload")||{}},y={},m={},b={},A={},M=0;M<F.length;M++){var I=F[M];b[I]=e.getModel(Y[I]),A[I]=e.getModel(Z[I])}function _(e){return e===o?u||(u=t.getItemModel(e)):t.getItemModel(e)}function C(e,i){return t.hasItemOption?e===o?y[i]||(y[i]=_(e).getModel(Y[i])):_(e).getModel(Y[i]):b[i]}function O(e,i){return t.hasItemOption?e===o?m[i]||(m[i]=_(e).getModel(Z[i])):_(e).getModel(Z[i]):A[i]}return function(e,i){return o=e,u=null,y={},m={},c&&c((0,h.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:i?i.type:null},v),f)};function L(e,t){for(var i in t)(0,h.hasOwn)(t,i)&&(e[i]=t[i])}function T(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function ei(e,t,i,n,r,a,o){if(!n)return void a.remove(t);var l=en(e,t,i,n,r,a);return l&&o.setItemGraphicEl(i,l),l&&(0,m.Lm)(l,n.focus,n.blurScope,n.emphasisDisabled),l}function en(e,t,i,n,r,a){var o,l=-1,s=t;t&&er(t,n,r)&&(l=(0,h.indexOf)(a.childrenRef(),t),t=null);var c=!t,d=t;d?d.clearStates():(d=$(n),s&&((o=d).copyTransform(s),K(o)&&K(s)&&(o.setStyle(s.style),o.z=s.z,o.z2=s.z2,o.zlevel=s.zlevel,o.invisible=s.invisible,o.ignore=s.ignore,J(o)&&J(s)&&o.setShape(s.shape)))),!1===n.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),n.tooltipDisabled&&(d.tooltipDisabled=!0),q.normal.cfg=q.normal.conOpt=q.emphasis.cfg=q.emphasis.conOpt=q.blur.cfg=q.blur.conOpt=q.select.cfg=q.select.conOpt=null,q.isLegacy=!1,function(e,t,i,n,r,a){if(!e.isGroup&&"compoundPath"!==e.type){ea(i,null,a),ea(i,E,a);var o=a.normal.conOpt,l=a.emphasis.conOpt,s=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=l||null!=u||null!=s){var c=e.getTextContent();if(!1===o)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=$(o),e.setTextContent(c)),Q(null,c,t,o,null,n,r);for(var h=o&&o.style,d=0;d<F.length;d++){var p=F[d];if(p!==G){var g=a[p].conOpt;ee(p,c,g,el(o,g,p),null)}}h?c.dirty():c.markRedraw()}}}}(d,i,n,r,c,q),function(e,t,i,n,r){var a=i.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&er(o,a,n)&&(o=null),o||(o=$(a),e.setClipPath(o)),Q(null,o,t,a,null,n,r)}}(d,i,n,r,c),Q(e,d,i,n,q,r,c),(0,h.hasOwn)(n,"info")&&(u(d).info=n.info);for(var p=0;p<F.length;p++){var g=F[p];if(g!==G){var f=eo(n,g),v=el(n,f,g);ee(g,d,f,v,q)}}var y=d;if(!y.isGroup){var m=r.currentZ,x=r.currentZLevel;y.z=m,y.zlevel=x;var S=n.z2;null!=S&&(y.z2=S||0);for(var w=0;w<F.length;w++)!function(e,t,i){var n=i===G,r=n?t:eo(t,i),a=r?r.z2:null;null!=a&&((n?e:e.ensureState(i)).z2=a||0)}(y,n,F[w])}return"group"===n.type&&function(e,t,i,n,r){var a=n.children,o=a?a.length:0,l=n.$mergeChildren,s="byName"===l||n.diffChildrenByName,c=!1===l;if(o||s||c){if(s){return f={api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:i,seriesModel:r,group:t},new b.A(f.oldChildren,f.newChildren,es,es,f).add(eu).update(eu).remove(ec).execute()}c&&t.removeAll();for(var h=0;h<o;h++){var d=a[h],p=t.childAt(h);d?(null==d.ignore&&(d.ignore=!1),en(e,p,i,d,r,t)):p.ignore=!0}for(var g=t.childCount()-1;g>=h;g--){var f,v,y,m,x=t.childAt(g);v=t,y=x,m=r,y&&(0,z.h8)(y,u(v).option,m)}}}(e,d,i,n,r),l>=0?a.replaceAt(d,l):a.add(d),d}function er(e,t,i){var n,r=u(e),a=t.type,o=t.shape,l=t.style;return i.isUniversalTransitionEnabled()||null!=a&&a!==r.customGraphicType||"path"===a&&(n=o)&&((0,h.hasOwn)(n,"pathData")||(0,h.hasOwn)(n,"d"))&&eh(o)!==r.customPathData||"image"===a&&(0,h.hasOwn)(l,"image")&&l.image!==r.customImagePath}function ea(e,t,i){var n=t?eo(e,t):e,r=t?el(e,n,E):e.style,a=e.type,o=n?n.textConfig:null,l=e.textContent,s=l?t?eo(l,t):l:null;if(r&&(i.isLegacy||(0,D.ex)(r,a,!!o,!!s))){i.isLegacy=!0;var u=(0,D.lH)(r,a,!t);!o&&u.textConfig&&(o=u.textConfig),!s&&u.textContent&&(s=u.textContent)}if(!t&&s){var c=s;c.type||(c.type="text")}var h=t?i[t]:i.normal;h.cfg=o,h.conOpt=s}function eo(e,t){return t?e?e[t]:null:e}function el(e,t,i){var n=t&&t.style;return null==n&&i===E&&e&&(n=e.styleEmphasis),n}function es(e,t){var i=e&&e.name;return null!=i?i:"e\0\0"+t}function eu(e,t){var i=this.context,n=null!=e?i.newChildren[e]:null,r=null!=t?i.oldChildren[t]:null;en(i.api,r,i.dataIndex,n,i.seriesModel,i.group)}function ec(e){var t=this.context,i=t.oldChildren[e];i&&(0,z.h8)(i,u(i).option,t.seriesModel)}function eh(e){return e&&(e.pathData||e.d)}function ed(e){e.registerChartView(j),e.registerSeriesModel(c)}},FJ(e,t,i){i.d(t,{a:()=>O});var n=i("i4"),r=i("Pk"),a=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},o=function(e){function t(t){var i=e.call(this,t)||this;return i.type="pointer",i}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var i=Math.cos,n=Math.sin,r=t.r,a=t.width,o=t.angle,l=t.x-i(o)*a*(a>=r/3?1:2),s=t.y-n(o)*a*(a>=r/3?1:2);o=t.angle-Math.PI/2,e.moveTo(l,s),e.lineTo(t.x+i(o)*a,t.y+n(o)*a),e.lineTo(t.x+i(t.angle)*r,t.y+n(t.angle)*r),e.lineTo(t.x-i(o)*a,t.y-n(o)*a),e.lineTo(l,s)},t}(r.Ay),l=i("Qz"),s=i("xz"),u=i("s2"),c=i("W5"),h=i("jZ"),d=i("LP"),p=i("F4"),g=i("WN9"),f=i("MB"),v=i("fC"),y=i("up"),m=i("s5"),x=i("iY"),S=i("FL"),w=i("Ig");function b(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 A=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.render=function(e,t,i){this.group.removeAll();var n,r,a=e.get(["axisLine","lineStyle","color"]),o=(n=e.get("center"),r=Math.min(i.getWidth(),i.getHeight()),{cx:(0,f.lo)(n[0],i.getWidth()),cy:(0,f.lo)(n[1],i.getHeight()),r:(0,f.lo)(e.get("radius"),r/2)});this._renderMain(e,t,i,a,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,i,n,r){var a=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),h=c.get("roundCap")?v.A:l.A,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),f=[s,u];(0,w.q)(f,!o),s=f[0];for(var y=(u=f[1])-s,m=s,S=[],b=0;d&&b<n.length;b++){var A=new h({shape:{startAngle:m,endAngle:u=s+y*Math.min(Math.max(n[b][0],0),1),cx:r.cx,cy:r.cy,clockwise:o,r0:r.r-g,r:r.r},silent:!0});A.setStyle({fill:n[b][1]}),A.setStyle(p.getLineStyle(["color","width"])),S.push(A),m=u}S.reverse(),(0,x.each)(S,function(e){return a.add(e)});var M=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,M,r,s,u,o,g),this._renderTitleAndDetail(e,t,i,M,r),this._renderAnchor(e,r),this._renderPointer(e,t,i,M,r,s,u,o,g)},t.prototype._renderTicks=function(e,t,i,n,r,a,o,l,c){for(var h,d,g=this.group,v=r.cx,y=r.cy,m=r.r,S=+e.get("min"),w=+e.get("max"),A=e.getModel("splitLine"),M=e.getModel("axisTick"),I=e.getModel("axisLabel"),_=e.get("splitNumber"),C=M.get("splitNumber"),O=(0,f.lo)(A.get("length"),m),L=(0,f.lo)(M.get("length"),m),T=a,P=(o-a)/_,D=P/C,V=A.getModel("lineStyle").getLineStyle(),k=M.getModel("lineStyle").getLineStyle(),z=A.get("distance"),R=0;R<=_;R++){if(h=Math.cos(T),d=Math.sin(T),A.get("show")){var N=z?z+c:c,B=new s.A({shape:{x1:h*(m-N)+v,y1:d*(m-N)+y,x2:h*(m-O-N)+v,y2:d*(m-O-N)+y},style:V,silent:!0});"auto"===V.stroke&&B.setStyle({stroke:n(R/_)}),g.add(B)}if(I.get("show")){var N=I.get("distance")+z,E=b((0,f.LI)(R*(w-S)/_+S,f.Rl),I.get("formatter")),G=n(R/_),W=h*(m-O-N)+v,H=d*(m-O-N)+y,F=I.get("rotate"),Y=0;"radial"===F?(Y=-T+2*Math.PI)>Math.PI/2&&(Y+=Math.PI):"tangential"===F?Y=-T-Math.PI/2:(0,x.isNumber)(F)&&(Y=F*Math.PI/180),0===Y?g.add(new u.Ay({style:(0,p.VB)(I,{text:E,x:W,y:H,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:G}),silent:!0})):g.add(new u.Ay({style:(0,p.VB)(I,{text:E,x:W,y:H,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:W,originY:H,rotation:Y}))}if(M.get("show")&&R!==_){var N=M.get("distance");N=N?N+c:c;for(var Z=0;Z<=C;Z++){h=Math.cos(T),d=Math.sin(T);var X=new s.A({shape:{x1:h*(m-N)+v,y1:d*(m-N)+y,x2:h*(m-L-N)+v,y2:d*(m-L-N)+y},silent:!0,style:k});"auto"===k.stroke&&X.setStyle({stroke:n((R+Z/C)/_)}),g.add(X),T+=D}T-=D}else T+=P}},t.prototype._renderPointer=function(e,t,i,n,r,a,s,u,h){var p=this.group,g=this._data,w=this._progressEls,b=[],A=e.get(["pointer","show"]),M=e.getModel("progress"),I=M.get("show"),_=e.getData(),C=_.mapDimension("value"),O=+e.get("min"),L=+e.get("max"),T=[O,L],P=[a,s];function D(t,i){var n,a=_.getItemModel(t).getModel("pointer"),l=(0,f.lo)(a.get("width"),r.r),s=(0,f.lo)(a.get("length"),r.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),h=(0,f.lo)(c[0],r.r),d=(0,f.lo)(c[1],r.r),p=a.get("keepAspect");return(n=u?(0,y.v5)(u,h-l/2,d-s,l,s,null,p):new o({shape:{angle:-Math.PI/2,width:l,r:s,x:h,y:d}})).rotation=-(i+Math.PI/2),n.x=r.cx,n.y=r.cy,n}function V(e,t){var i=M.get("roundCap")?v.A:l.A,n=M.get("overlap"),o=n?M.get("width"):h/_.count(),s=n?r.r-o:r.r-(e+1)*o,c=n?r.r:r.r-e*o,d=new i({shape:{startAngle:a,endAngle:t,cx:r.cx,cy:r.cy,clockwise:u,r0:s,r:c}});return n&&(d.z2=(0,f.Cb)(_.get(C,e),[O,L],[100,0],!0)),d}(I||A)&&(_.diff(g).add(function(t){var i=_.get(C,t);if(A){var n=D(t,a);c.LW(n,{rotation:-((isNaN(+i)?P[0]:(0,f.Cb)(i,T,P,!0))+Math.PI/2)},e),p.add(n),_.setItemGraphicEl(t,n)}if(I){var r=V(t,a),o=M.get("clip");c.LW(r,{shape:{endAngle:(0,f.Cb)(i,T,P,o)}},e),p.add(r),(0,S.a)(e.seriesIndex,_.dataType,t,r),b[t]=r}}).update(function(t,i){var n=_.get(C,t);if(A){var r=g.getItemGraphicEl(i),o=r?r.rotation:a,l=D(t,o);l.rotation=o,c.oi(l,{rotation:-((isNaN(+n)?P[0]:(0,f.Cb)(n,T,P,!0))+Math.PI/2)},e),p.add(l),_.setItemGraphicEl(t,l)}if(I){var s=w[i],u=V(t,s?s.shape.endAngle:a),h=M.get("clip");c.oi(u,{shape:{endAngle:(0,f.Cb)(n,T,P,h)}},e),p.add(u),(0,S.a)(e.seriesIndex,_.dataType,t,u),b[t]=u}}).execute(),_.each(function(e){var t=_.getItemModel(e),i=t.getModel("emphasis"),r=i.get("focus"),a=i.get("blurScope"),o=i.get("disabled"),l=n((0,f.Cb)(_.get(C,e),T,[0,1],!0));if(A){var s=_.getItemGraphicEl(e),u=_.getItemVisual(e,"style"),c=u.fill;if(s instanceof m.Ay){var h=s.style;s.useStyle((0,x.extend)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else s.useStyle(u),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",l),s.z2EmphasisLift=0,(0,d.Mx)(s,t),(0,d.Lm)(s,r,a,o)}if(I){var p=b[e];p.useStyle(_.getItemVisual(e,"style")),p.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),"auto"===p.style.fill&&p.setStyle("fill",l),p.z2EmphasisLift=0,(0,d.Mx)(p,t),(0,d.Lm)(p,r,a,o)}}),this._progressEls=b)},t.prototype._renderAnchor=function(e,t){var i=e.getModel("anchor");if(i.get("show")){var n=i.get("size"),r=i.get("icon"),a=i.get("offsetCenter"),o=i.get("keepAspect"),l=(0,y.v5)(r,t.cx-n/2+(0,f.lo)(a[0],t.r),t.cy-n/2+(0,f.lo)(a[1],t.r),n,n,null,o);l.z2=+!!i.get("showAbove"),l.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,i,n,r){var a=this,o=e.getData(),l=o.mapDimension("value"),s=+e.get("min"),c=+e.get("max"),d=new h.A,g=[],v=[],y=e.isAnimationEnabled(),m=e.get(["pointer","showAbove"]);o.diff(this._data).add(function(e){g[e]=new u.Ay({silent:!0}),v[e]=new u.Ay({silent:!0})}).update(function(e,t){g[e]=a._titleEls[t],v[e]=a._detailEls[t]}).execute(),o.each(function(t){var i=o.getItemModel(t),a=o.get(l,t),u=new h.A,x=n((0,f.Cb)(a,[s,c],[0,1],!0)),S=i.getModel("title");if(S.get("show")){var w=S.get("offsetCenter"),A=r.cx+(0,f.lo)(w[0],r.r),M=r.cy+(0,f.lo)(w[1],r.r),I=g[t];I.attr({z2:2*!m,style:(0,p.VB)(S,{x:A,y:M,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:x})}),u.add(I)}var _=i.getModel("detail");if(_.get("show")){var C=_.get("offsetCenter"),O=r.cx+(0,f.lo)(C[0],r.r),L=r.cy+(0,f.lo)(C[1],r.r),T=(0,f.lo)(_.get("width"),r.r),P=(0,f.lo)(_.get("height"),r.r),D=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:x,I=v[t],V=_.get("formatter");I.attr({z2:2*!m,style:(0,p.VB)(_,{x:O,y:L,text:b(a,V),width:isNaN(T)?null:T,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:D})}),(0,p.Oh)(I,{normal:_},a,function(e){return b(e,V)}),y&&(0,p.xb)(I,t,o,e,{getFormattedLabel:function(e,t,i,n,r,o){return b(o?o.interpolatedValue:a,V)}}),u.add(I)}d.add(u)}),this.group.add(d),this._titleEls=g,this._detailEls=v},t.type="gauge",t}(g.A),M=i("OZ"),I=i("yd"),_=i("g8w"),C=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.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,M.A)(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,_.A.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:_.A.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:_.A.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:_.A.color.axisLabel,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:_.A.color.neutral00,borderWidth:0,borderColor:_.A.color.theme["0"]}},title:{show:!0,offsetCenter:[0,"20%"],color:_.A.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:_.A.color.transparent,borderWidth:0,borderColor:_.A.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:_.A.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(I.A);function O(e){e.registerChartView(A),e.registerSeriesModel(C)}},dJ(e,t,i){i.d(t,{a:()=>b});var n=i("i4"),r=i("uf"),a=i("Vb"),o=i("s5"),l=i("LP"),s=i("mZ"),u=i("g8w"),c=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=s.yh.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,i,n,r,a){var o=this._getBrush(),l=this._getGradient(r,"inRange"),s=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=e.length;c.width=t,c.height=i;for(var p=0;p<d;++p){var g=e[p],f=g[0],v=g[1],y=n(g[2]);h.globalAlpha=y,h.drawImage(o,f-u,v-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),x=m.data,S=0,w=x.length,b=this.minOpacity,A=this.maxOpacity-b;S<w;){var y=x[S+3]/256,M=4*Math.floor(255*y);if(y>0){var I=a(y)?l:s;y>0&&(y=y*A+b),x[S++]=I[M],x[S++]=I[M+1],x[S++]=I[M+2],x[S++]=I[M+3]*y*256}else S+=4}return h.putImageData(m,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=s.yh.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=u.A.color.neutral99,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)),r=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,r),n[a++]=r[0],n[a++]=r[1],n[a++]=r[2],n[a++]=r[3];return n},e}(),h=i("iY"),d=i("WN9"),p=i("mR"),g=i("F4"),f=i("lN"),v=i("xN"),y=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(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,r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type||"matrix"===r.type?this._renderOnGridLike(e,i,0,e.getData().count()):(0,p.L)(r)&&this._renderOnGeo(r,e,n,i)},t.prototype.incrementalPrepareRender=function(e,t,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,i,n){var r=t.coordinateSystem;r&&((0,p.L)(r)?this.render(t,i,n):(this._progressiveEls=[],this._renderOnGridLike(t,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){r.traverseElements(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,i,n,o){var s,u,c,d,y=e.coordinateSystem,m=(0,p.g)(y,"cartesian2d"),x=(0,p.g)(y,"matrix");if(m){var S=y.getAxis("x"),w=y.getAxis("y");s=(0,f.D)(S).w+.5,u=(0,f.D)(w).w+.5,c=S.scale.getExtent(),d=w.scale.getExtent()}for(var b=this.group,A=e.getData(),M=e.getModel(["emphasis","itemStyle"]).getItemStyle(),I=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),C=e.get(["itemStyle","borderRadius"]),O=(0,g.lx)(e),L=e.getModel("emphasis"),T=L.get("focus"),P=L.get("blurScope"),D=L.get("disabled"),V=m||x?[A.mapDimension("x"),A.mapDimension("y"),A.mapDimension("value")]:[A.mapDimension("time"),A.mapDimension("value")],k=i;k<n;k++){var z=void 0,R=A.getItemVisual(k,"style");if(m){var N=A.get(V[0],k),B=A.get(V[1],k);if(isNaN(A.get(V[2],k))||isNaN(N)||isNaN(B)||N<c[0]||N>c[1]||B<d[0]||B>d[1])continue;var E=y.dataToPoint([N,B]);z=new a.A({shape:{x:E[0]-s/2,y:E[1]-u/2,width:s,height:u},style:R})}else if(x){var G=y.dataToLayout([A.get(V[0],k),A.get(V[1],k)]).rect;if(h.eqNaN(G.x))continue;z=new a.A({z2:1,shape:G,style:R})}else{if(isNaN(A.get(V[1],k)))continue;var W=y.dataToLayout([A.get(V[0],k)]),G=W.contentRect||W.rect;if(h.eqNaN(G.x)||h.eqNaN(G.y))continue;z=new a.A({z2:1,shape:G,style:R})}if(A.hasItemOption){var H=A.getItemModel(k),F=H.getModel("emphasis");M=F.getModel("itemStyle").getItemStyle(),I=H.getModel(["blur","itemStyle"]).getItemStyle(),_=H.getModel(["select","itemStyle"]).getItemStyle(),C=H.get(["itemStyle","borderRadius"]),T=F.get("focus"),P=F.get("blurScope"),D=F.get("disabled"),O=(0,g.lx)(H)}z.shape.r=C;var Y=e.getRawValue(k),Z="-";Y&&null!=Y[2]&&(Z=Y[2]+""),(0,g.qM)(z,O,{labelFetcher:e,labelDataIndex:k,defaultOpacity:R.opacity,defaultText:Z}),z.ensureState("emphasis").style=M,z.ensureState("blur").style=I,z.ensureState("select").style=_,(0,l.Lm)(z,T,P,D),z.incremental=(0,v.i2)(e,o),o&&(z.states.emphasis.hoverLayer=r.HOVER_LAYER_FOR_INCREMENTAL),b.add(z),A.setItemGraphicEl(k,z),this._progressiveEls&&this._progressiveEls.push(z)}},t.prototype._renderOnGeo=function(e,t,i,n){var r,a,l,s,u,d,p,g=i.targetVisuals.inRange,f=i.targetVisuals.outOfRange,v=t.getData(),y=this._hmLayer||this._hmLayer||new c;y.blurSize=t.get("blurSize"),y.pointSize=t.get("pointSize"),y.minOpacity=t.get("minOpacity"),y.maxOpacity=t.get("maxOpacity");var m=e.getViewRect().clone(),x=e.getRoamTransform();m.applyTransform(x);var S=Math.max(m.x,0),w=Math.max(m.y,0),b=Math.min(m.width+m.x,n.getWidth()),A=Math.min(m.height+m.y,n.getHeight()),M=b-S,I=A-w,_=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],C=v.mapArray(_,function(t,i,n){var r=e.dataToPoint([t,i]);return r[0]-=S,r[1]-=w,r.push(n),r}),O=i.getExtent(),L="visualMap.continuous"===i.type?(r=i.option.range,a=O[1]-O[0],r=[(r[0]-O[0])/a,(r[1]-O[0])/a],function(e){return e>=r[0]&&e<=r[1]}):(l=i.getPieceList(),s=i.option.selected,u=O[1]-O[0],d=(l=h.map(l,function(e){return{interval:[(e.interval[0]-O[0])/u,(e.interval[1]-O[0])/u]}})).length,p=0,function(e){var t;for(t=p;t<d;t++){var i=l[t].interval;if(i[0]<=e&&e<=i[1]){p=t;break}}if(t===d)for(t=p-1;t>=0;t--){var i=l[t].interval;if(i[0]<=e&&e<=i[1]){p=t;break}}return t>=0&&t<d&&s[t]});y.update(C,M,I,g.color.getNormalizer(),{inRange:g.color.getColorMapper(),outOfRange:f.color.getColorMapper()},L);var T=new o.Ay({style:{width:M,height:I,x:S,y:w,image:y.canvas},silent:!0});this.group.add(T)},t.type="heatmap",t}(d.A),m=i("yd"),x=i("hy"),S=i("Ww"),w=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.getInitialData=function(e,t){return(0,x.A)(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=S.Ay.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","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:u.A.color.primary}}},t}(m.A);function b(e){e.registerChartView(y),e.registerSeriesModel(w)}},OZ(e,t,i){var n=i("CG"),r=i("oo"),a=i("iY");i.d(t,{},{A:function(e,t,i){t=(0,a.isArray)(t)&&{coordDimensions:t}||(0,a.extend)({encodeDefine:e.getEncode()},t);var o=e.getSource(),l=(0,n.A)(o,t).dimensions,s=new r.A(l,e);return s.initData(o,i),s}})},CV(e,t,i){i.d(t,{a:()=>F});var n=i("GN"),r=i("oL"),a=i("i4"),o=i("iY"),l=i("s2"),s=i("W5"),u=i("Jx"),c=i("Qz"),h=i("LP"),d=i("WN9"),p=i("OZ"),g=i("xN"),f=i("MB"),v=i("rk"),y=i("P2"),m=i("yd"),x=i("Ww"),S=g.$r(),w=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,a.C6)(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new y.A(o.bind(this.getData,this),o.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return(0,p.A)(this,{coordDimensions:["value"],encodeDefaulter:o.curry(v.ln,this)})},t.prototype.getDataParams=function(t){var i=this.getData(),n=S(i),r=n.seats;if(!r){var a=[];i.each(i.mapDimension("value"),function(e){a.push(e)}),r=n.seats=(0,f.kM)(a,i.hostModel.get("percentPrecision"))}var o=e.prototype.getDataParams.call(this,t);return o.percent=r[t]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){g.M5(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,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(m.A);(0,x.kf)({fullType:w.type,getCoord2:function(e){return e.getShallow("center")}});var b=i("zM"),A=i("Y8"),M=i("rP"),I=i("EV"),_=Math.PI/180;function C(e,t,i,n,r,a,o,l,s,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 d=e[h].label.x-u;e[h].linePoints[1][0]+=d,e[h].label.x=u}(0,I.Zv)(e,1,s,s+o)&&function(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},l=0;l<e.length;l++)if("none"===e[l].labelAlignTo){var s=e[l],u=s.label.y>i?o:a,c=Math.abs(s.label.y-i);if(c>=u.maxY){var h=s.label.x-t-s.len2*r,d=n+s.len;u.rB=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d,u.maxY=c}u.list.push(s)}p(a),p(o)}(e)}function p(e){for(var a=e.rB,o=a*a,l=0;l<e.list.length;l++){var s=e.list[l],u=Math.abs(s.label.y-i),c=n+s.len,h=t+(Math.sqrt(Math.abs(c*c*(1-u*u/o)))+s.len2)*r,d=h-s.label.x,p=s.targetTextWidth-d*r;O(s,p,!0),s.label.x=h}}}function O(e,t,i){if(null==e.labelStyleWidth){var n=e.label,r=n.style,a=e.rect,o=r.backgroundColor,l=r.padding,s=l?l[1]+l[3]:0,u=r.overflow,c=a.width+(o?0:s);if(t<c||i){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-s);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var d=t-s,p=t<c?d:i?d>e.unconstrainedWidth?null:d:null;n.setStyle("width",p)}L(a,n)}}}function L(e,t){P.rect=e,(0,I.Wy)(P,t,T)}var T={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},P={};function D(e){return"center"===e.position}var V=i("F4"),k=i("Z0"),z=i("Ig"),R=i("db"),N=2*Math.PI,B=Math.PI/180,E=(0,g.O9)("pie",function(e,t){e.eachSeriesByType("pie",function(e){var i=e.getData(),n=i.mapDimension("value"),r=(0,R.zH)(e,t),a=r.cx,o=r.cy,l=r.r,s=r.r0,u=r.viewRect,c=-e.get("startAngle")*B,h=e.get("endAngle"),d=e.get("padAngle")*B;h="auto"===h?c-N:-h*B;var p=e.get("minAngle")*B+d,g=0;i.each(n,function(e){!isNaN(e)&&g++});var v=i.getSum(n),y=Math.PI/(v||g)*2,m=e.get("clockwise"),x=e.get("roseType"),S=e.get("stillShowZeroSum"),w=i.getDataExtent(n);w[0]=0;var b=m?1:-1,A=[c,h],M=b*d/2;(0,z.q)(A,!m),c=A[0],h=A[1];var I=G(e);I.startAngle=c,I.endAngle=h,I.clockwise=m,I.cx=a,I.cy=o,I.r=l,I.r0=s;var _=Math.abs(h-c),C=_,O=0,L=c;if(i.setLayout({viewRect:u,r:l}),i.each(n,function(e,t){if(isNaN(e))return void i.setItemLayout(t,{angle:0/0,startAngle:0/0,endAngle:0/0,clockwise:m,cx:a,cy:o,r0:s,r:x?0/0:l});(n="area"!==x?0===v&&S?y:e*y:_/g)<p?(n=p,C-=p):O+=e;var n,r=L+b*n,u=0,c=0;d>n?c=u=L+b*n/2:(u=L+M,c=r-M),i.setItemLayout(t,{angle:n,startAngle:u,endAngle:c,clockwise:m,cx:a,cy:o,r0:s,r:x?(0,f.Cb)(e,w,[s,l]):l}),L=r}),C<N&&g)if(C<=.001){var T=_/g;i.each(n,function(e,t){if(!isNaN(e)){var n=i.getItemLayout(t);n.angle=T;var r=0,a=0;T<d?a=r=c+b*(t+.5)*T:(r=c+b*t*T+M,a=c+b*(t+1)*T-M),n.startAngle=r,n.endAngle=a}})}else y=C/O,L=c,i.each(n,function(e,t){if(!isNaN(e)){var n=i.getItemLayout(t),r=n.angle===p?p:e*y,a=0,o=0;r<d?o=a=L+b*r/2:(a=L+M,o=L+b*r-M),n.startAngle=a,n.endAngle=o,L+=b*r}})})}),G=(0,g.$r)(),W=function(e){function t(t,i,n){var r=e.call(this)||this;r.z2=2;var a=new l.Ay;return r.setTextContent(a),r.updateData(t,i,n,!0),r}return(0,a.C6)(t,e),t.prototype.updateData=function(e,t,i,n){var r=e.hostModel,a=e.getItemModel(t),l=a.getModel("emphasis"),u=e.getItemLayout(t),c=(0,o.extend)((0,k.i)(a.getModel("itemStyle"),u,!0),u);if(isNaN(c.startAngle))return void this.setShape(c);if(n){this.setShape(c);var d=r.getShallow("animationType");r.ecModel.ssr?(s.LW(this,{scaleX:0,scaleY:0},r,{dataIndex:t,isFrom:!0}),this.originX=c.cx,this.originY=c.cy):"scale"===d?(this.shape.r=u.r0,s.LW(this,{shape:{r:u.r}},r,t)):null!=i?(this.setShape({startAngle:i,endAngle:i}),s.LW(this,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},r,t)):(this.shape.endAngle=u.startAngle,s.oi(this,{shape:{endAngle:u.endAngle}},r,t))}else(0,s.ap)(this),s.oi(this,{shape:c},r,t);this.useStyle(e.getItemVisual(t,"style")),(0,h.Mx)(this,a);var p=(u.startAngle+u.endAngle)/2,g=r.get("selectedOffset"),f=Math.cos(p)*g,v=Math.sin(p)*g,y=a.getShallow("cursor");y&&this.attr("cursor",y),this._updateLabel(r,e,t),this.ensureState("emphasis").shape=(0,o.extend)({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},(0,k.i)(l.getModel("itemStyle"),u)),(0,o.extend)(this.ensureState("select"),{x:f,y:v,shape:(0,k.i)(a.getModel(["select","itemStyle"]),u)}),(0,o.extend)(this.ensureState("blur"),{shape:(0,k.i)(a.getModel(["blur","itemStyle"]),u)});var m=this.getTextGuideLine(),x=this.getTextContent();m&&(0,o.extend)(m.ensureState("select"),{x:f,y:v}),(0,o.extend)(x.ensureState("select"),{x:f,y:v}),(0,h.Lm)(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,t,i){var n=t.getItemModel(i),r=n.getModel("labelLine"),a=t.getItemVisual(i,"style"),l=a&&a.fill,s=a&&a.opacity;(0,V.qM)(this,(0,V.lx)(n),{labelFetcher:t.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:s,defaultText:e.getFormattedLabel(i,"normal")||t.getName(i)});var c=this.getTextContent();this.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=n.get(["label","position"]);if("outside"!==h&&"outer"!==h)this.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new u.A,this.setTextGuideLine(d)),(0,M.eR)(this,(0,M.rv)(n),{stroke:l,opacity:(0,o.retrieve3)(r.get(["lineStyle","opacity"]),s,1)})}},t}(c.A),H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t.ignoreLabelLineUpdate=!0,t}return(0,a.C6)(t,e),t.prototype.render=function(e,t,i,n){var r,a=e.getData(),l=this._data,u=this.group;if(!l&&a.count()>0){for(var h=a.getItemLayout(0),d=1;isNaN(h&&h.startAngle)&&d<a.count();++d)h=a.getItemLayout(d);h&&(r=h.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===a.count()&&e.get("showEmptyCircle")){var p=G(e),g=new c.A({shape:(0,o.clone)(p)});g.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=g,u.add(g)}a.diff(l).add(function(e){var t=new W(a,e,r);a.setItemGraphicEl(e,t),u.add(t)}).update(function(e,t){var i=l.getItemGraphicEl(t);i.updateData(a,e,r),i.off("click"),u.add(i),a.setItemGraphicEl(e,i)}).remove(function(t){var i=l.getItemGraphicEl(t);s.t5(i,e,t)}).execute(),function(e){var t,i,n=e.getData(),r=[],a=!1,l=(e.get("minShowLabelAngle")||0)*_,s=n.getLayout("viewRect"),u=n.getLayout("r"),c=s.width,h=s.x,d=s.y,p=s.height;function g(e){e.ignore=!0}n.each(function(e){var s,d,v,y,m=n.getItemGraphicEl(e),x=m.shape,S=m.getTextContent(),w=m.getTextGuideLine(),M=n.getItemModel(e),I=M.getModel("label"),_=I.get("position")||M.get(["emphasis","label","position"]),C=I.get("distanceToLabelLine"),O=I.get("alignTo"),T=(0,f.lo)(I.get("edgeDistance"),c),P=I.get("bleedMargin");null==P&&(P=Math.min(c,p)>200?10:2);var D=M.getModel("labelLine"),V=D.get("length");V=(0,f.lo)(V,c);var k=D.get("length2");if(k=(0,f.lo)(k,c),Math.abs(x.endAngle-x.startAngle)<l){(0,o.each)(S.states,g),S.ignore=!0,w&&((0,o.each)(w.states,g),w.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}(S)){var z=(x.startAngle+x.endAngle)/2,R=Math.cos(z),N=Math.sin(z);t=x.cx,i=x.cy;var B="inside"===_||"inner"===_;if("center"===_)s=x.cx,d=x.cy,y="center";else{var E=(B?(x.r+x.r0)/2*R:x.r*R)+t,G=(B?(x.r+x.r0)/2*N:x.r*N)+i;if(s=E+3*R,d=G+3*N,!B){var W=E+R*(V+u-x.r),H=G+N*(V+u-x.r),F=W+(R<0?-1:1)*k;s="edge"===O?R<0?h+T:h+c-T:F+(R<0?-C:C),d=H,v=[[E,G],[W,H],[F,H]]}y=B?"center":"edge"===O?R>0?"right":"left":R>0?"left":"right"}var Y=Math.PI,Z=0,X=I.get("rotate");if((0,o.isNumber)(X))Z=Y/180*X;else if("center"===_)Z=0;else if("radial"===X||!0===X)Z=R<0?-z+Y:-z;else if("tangential"===X||"tangential-noflip"===X&&"outside"!==_&&"outer"!==_){var q=Math.atan2(R,N);q<0&&(q=2*Y+q),N>0&&"tangential-noflip"!==X&&(q=Y+q),Z=q-Y}if(a=!!Z,S.x=s,S.y=d,S.rotation=Z,S.setStyle({verticalAlign:"middle"}),B){S.setStyle({align:y});var U=S.states.select;U&&(U.x+=S.x,U.y+=S.y)}else{var J=new A.Ay(0,0,0,0);L(J,S),r.push({label:S,labelLine:w,position:_,len:V,len2:k,minTurnAngle:D.get("minTurnAngle"),maxSurfaceAngle:D.get("maxSurfaceAngle"),surfaceNormal:new b.A(R,N),linePoints:v,textAlign:y,labelDistance:C,labelAlignTo:O,edgeDistance:T,bleedMargin:P,rect:J,unconstrainedWidth:J.width,labelStyleWidth:S.style.width})}m.setTextConfig({inside:B})}}),!a&&e.get("avoidLabelOverlap")&&function(e,t,i,n,r,a,o,l){for(var s=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;D(e[d])||(p.x<t?(c=Math.min(c,p.x),s.push(e[d])):(h=Math.max(h,p.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var g=e[d];if(!D(g)&&g.linePoints){if(null!=g.labelStyleWidth)continue;var p=g.label,f=g.linePoints,v=void 0;v="edge"===g.labelAlignTo?p.x<t?f[2][0]-g.labelDistance-o-g.edgeDistance:o+r-g.edgeDistance-f[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?p.x<t?c-o-g.bleedMargin:o+r-h-g.bleedMargin:p.x<t?p.x-o-g.bleedMargin:o+r-p.x-g.bleedMargin,g.targetTextWidth=v,O(g,v,!1)}}C(u,t,i,n,1,r,a,o,l,h),C(s,t,i,n,-1,r,a,o,l,c);for(var d=0;d<e.length;d++){var g=e[d];if(!D(g)&&g.linePoints){var p=g.label,f=g.linePoints,y="edge"===g.labelAlignTo,m=p.style.padding,x=m?m[1]+m[3]:0,S=p.style.backgroundColor?0:x,w=g.rect.width+S,b=f[1][0]-f[2][0];y?p.x<t?f[2][0]=o+g.edgeDistance+w+g.labelDistance:f[2][0]=o+r-g.edgeDistance-w-g.labelDistance:(p.x<t?f[2][0]=p.x+g.labelDistance:f[2][0]=p.x-g.labelDistance,f[1][0]=f[2][0]+b),f[1][1]=f[2][1]=p.y}}}(r,t,i,u,c,p,h,d);for(var v=0;v<r.length;v++){var y=r[v],m=y.label,x=y.labelLine,S=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:y.textAlign}),S&&((0,o.each)(m.states,g),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(x){var I=y.linePoints;S||!I?((0,o.each)(x.states,g),x.ignore=!0):((0,M.YI)(I,y.minTurnAngle),(0,M.QK)(I,y.surfaceNormal,y.maxSurfaceAngle),x.setShape({points:I}),m.__hostTarget.textGuideLineConfig={anchor:new b.A(I[0][0],I[0][1])})}}}(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var i=t.getData().getItemLayout(0);if(i){var n=e[0]-i.cx,r=e[1]-i.cy,a=Math.sqrt(n*n+r*r);return a<=i.r&&a>=i.r0}},t.type="pie",t}(d.A);function F(e){e.registerChartView(H),e.registerSeriesModel(w),(0,n.I)("pie",e.registerAction),e.registerLayout(E),e.registerProcessor((0,r.A)("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,o.isNumber)(n)||!!isNaN(n)||!(n<0)})}})}},UN(e,t,i){i.d(t,{a:()=>Y});var n=i("xNS"),r=i("i4"),a=i("iY"),o=i("Sk"),l=i("xN"),s=i("wv"),u=i("g8w"),c=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,r.C6)(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 r;a.isString(e)&&(e={type:e}),t[n]=a.merge(e,"all"===(r=e.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===r?{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 r,a=n.name;if(i.push(a),n.legendVisualProvider){var o=n.legendVisualProvider.getAllNames();e.isSeriesFiltered(n)||(i=i.concat(o)),o.length?t=t.concat(o):r=!0}else r=!0;r&&(0,l.O0)(n)&&t.push(n.name)}),this._availableNames=i;var n=this.get("data")||t,r=a.createHashMap(),s=a.map(n,function(e){return((a.isString(e)||a.isNumber(e))&&(e={name:e}),r.get(e.name))?null:(r.set(e.name,!0),new o.A(e,this,this.ecModel))},this);this._data=a.filter(s,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",bottom:u.A.size.m,align:"auto",backgroundColor:u.A.color.transparent,borderColor:u.A.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:u.A.color.disabled,inactiveBorderColor:u.A.color.disabled,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:u.A.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:u.A.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:u.A.color.tertiary,borderWidth:1,borderColor:u.A.color.border},emphasis:{selectorLabel:{show:!0,color:u.A.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(s.A),h=i("x4z"),d=i("jZ"),p=i("s2"),g=i("Vb"),f=i("uf"),v=i("LP"),y=i("F4"),m=i("HS"),x=i("db"),S=i("BP"),w=i("up"),b=i("Upd"),A=i("FL"),M=a.curry,I=a.each,_=d.A,C=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i.newlineDisabled=!1,i}return(0,r.C6)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new _),this.group.add(this._selectorGroup=new _),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 r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var l=e.get("selector",!0),s=e.get("selectorPosition",!0);l&&(!s||"auto"===s)&&(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,i,l,o,s);var u=x.Lj(e,i).refContainer,c=e.getBoxLayoutParams(),h=e.get("padding"),d=x.dV(c,u,h),p=this.layoutInner(e,r,d,n,l,s),g=x.dV(a.defaults({width:p.width,height:p.height},c),u,h);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,m.P)(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,i,n,r,o,l){var s=this.getContentGroup(),u=a.createHashMap(),c=t.get("selectedMode"),d=t.get("triggerEvent"),p=[];i.eachRawSeries(function(e){e.get("legendHoverLink")||p.push(e.id)}),I(t.getData(),function(r,o){var l=this,g=r.get("name");if(!this.newlineDisabled&&(""===g||"\n"===g)){var f=new _;f.newline=!0,s.add(f);return}var v=i.getSeriesByName(g)[0];if(!u.get(g))if(v){var y=v.getData(),m=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(v,g,o,r,t,e,m,S,x,c,n);w.on("click",M(O,g,null,n,p)).on("mouseover",M(L,v.name,null,n,p)).on("mouseout",M(T,v.name,null,n,p)),i.ssr&&w.eachChild(function(e){var t=(0,A.z)(e);t.seriesIndex=v.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),d&&w.eachChild(function(e){l.packEventData(e,t,v,o,g)}),u.set(g,!0)}else i.eachRawSeries(function(l){var s=this;if(!u.get(g)&&l.legendVisualProvider){var f=l.legendVisualProvider;if(!f.containName(g))return;var v=f.indexOfName(g),y=f.getItemVisual(v,"style"),m=f.getItemVisual(v,"legendIcon"),x=(0,h.parse)(y.fill);x&&0===x[3]&&(x[3]=.2,y=a.extend(a.extend({},y),{fill:(0,h.stringify)(x,"rgba")}));var S=this._createItem(l,g,o,r,t,e,{},y,m,c,n);S.on("click",M(O,null,g,n,p)).on("mouseover",M(L,null,g,n,p)).on("mouseout",M(T,null,g,n,p)),i.ssr&&S.eachChild(function(e){var t=(0,A.z)(e);t.seriesIndex=l.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),d&&S.eachChild(function(e){s.packEventData(e,t,l,o,g)}),u.set(g,!0)}},this)},this),r&&this._createSelector(r,t,n,o,l)},t.prototype.packEventData=function(e,t,i,n,r){var a={componentType:"legend",componentIndex:t.componentIndex,dataIndex:n,value:r,seriesIndex:i.seriesIndex};(0,A.z)(e).eventData=a},t.prototype._createSelector=function(e,t,i,n,r){var a=this.getSelectorGroup();I(e,function(e){var n=e.type,r=new p.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});a.add(r);var o=t.getModel("selectorLabel"),l=t.getModel(["emphasis","selectorLabel"]);(0,y.qM)(r,{normal:o,emphasis:l},{defaultText:e.title}),(0,v.iJ)(r)})},t.prototype._createItem=function(e,t,i,n,r,o,l,s,c,h,d){var m=e.visualDrawType,x=r.get("itemWidth"),S=r.get("itemHeight"),A=r.isSelected(t),M=n.get("symbolRotate"),C=n.get("symbolKeepAspect"),O=n.get("icon"),L=function(e,t,i,n,r,a,o){function l(e,t){"auto"===e.lineWidth&&(e.lineWidth=2*(t.lineWidth>0)),I(e,function(i,n){"inherit"===e[n]&&(e[n]=t[n])})}var s=t.getModel("itemStyle"),u=s.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=s.getShallow("decal");u.decal=h&&"inherit"!==h?(0,b.w)(h,o):n.decal,"inherit"===u.fill&&(u.fill=n[r]),"inherit"===u.stroke&&(u.stroke=n[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?n:i).opacity),l(u,n);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(l(p,i),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===p.stroke&&(p.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"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(c=O||c||"roundRect",n,l,s,m,A,d),T=new _,P=n.getModel("textStyle");if(a.isFunction(e.getLegendIcon)&&(!O||"inherit"===O))T.add(e.getLegendIcon({itemWidth:x,itemHeight:S,icon:c,iconRotate:M,itemStyle:L.itemStyle,lineStyle:L.lineStyle,symbolKeepAspect:C}));else{var D,V,k,z="inherit"===O&&e.getData().getVisual("symbol")?"inherit"===M?e.getData().getVisual("symbolRotate"):M:0;T.add((V=(D={itemWidth:x,itemHeight:S,icon:c,iconRotate:z,itemStyle:L.itemStyle,lineStyle:L.lineStyle,symbolKeepAspect:C}).icon||"roundRect",(k=(0,w.v5)(V,0,0,D.itemWidth,D.itemHeight,D.itemStyle.fill,D.symbolKeepAspect)).setStyle(D.itemStyle),k.rotation=(D.iconRotate||0)*Math.PI/180,k.setOrigin([D.itemWidth/2,D.itemHeight/2]),V.indexOf("empty")>-1&&(k.style.stroke=k.style.fill,k.style.fill=u.A.color.neutral00,k.style.lineWidth=2),k))}var R=r.get("formatter"),N=t;a.isString(R)&&R?N=R.replace("{name}",null!=t?t:""):a.isFunction(R)&&(N=R(t));var B=A?P.getTextColor():n.get("inactiveColor");T.add(new p.Ay({style:(0,y.VB)(P,{text:N,x:"left"===o?x+5:-5,y:S/2,fill:B,align:o,verticalAlign:"middle"},{inheritColor:B})}));var E=new g.A({shape:T.getBoundingRect(),style:{fill:"transparent"}}),G=n.getModel("tooltip");return G.get("show")&&f.setTooltipConfig({el:E,componentModel:r,itemName:t,itemTooltipOption:G.option}),T.add(E),T.eachChild(function(e){e.silent=!0}),E.silent=!h,this.getContentGroup().add(T),(0,v.iJ)(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(e,t,i,n,r,a){var o=this.getContentGroup(),l=this.getSelectorGroup();x.aP(e.get("orient"),o,e.get("itemGap"),i.width,i.height);var s=o.getBoundingRect(),u=[-s.x,-s.y];if(l.markRedraw(),o.markRedraw(),!r)return o.x=u[0],o.y=u[1],this.group.getBoundingRect();x.aP("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=0===p?"width":"height",f=0===p?"height":"width",v=0===p?"y":"x";"end"===a?h[p]+=s[g]+d:u[p]+=c[g]+d,h[1-p]+=s[f]/2-c[f]/2,l.x=h[0],l.y=h[1],o.x=u[0],o.y=u[1];var y={x:0,y:0};return y[g]=s[g]+d+c[g],y[f]=Math.max(s[f],c[f]),y[v]=Math.min(0,c[v]+h[1-p]),y},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(S.A);function O(e,t,i,n){T(e,t,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),L(e,t,i,n)}function L(e,t,i,n){i.usingTHL()||i.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function T(e,t,i,n){i.usingTHL()||i.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function P(e,t,i){var n="allSelect"===e||"inverseSelect"===e,r={},o=[];i.eachComponent({mainType:"legend",query:t},function(i){n?i[e]():i[e](t.name),D(i,r),o.push(i.componentIndex)});var l={};return i.eachComponent("legend",function(e){(0,a.each)(r,function(t,i){e[t?"select":"unSelect"](i)}),D(e,l)}),n?{selected:l,legendIndex:o}:{name:t.name,selected:l}}function D(e,t){var i=t||{};return(0,a.each)(e.getData(),function(t){var n=t.get("name");if("\n"!==n&&""!==n){var r=e.isSelected(n);(0,a.hasOwn)(i,n)?i[n]=i[n]&&r:i[n]=r}}),i}var V=(0,l.uQ)(function(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 k(e){e.registerComponentModel(c),e.registerComponentView(C),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,V),e.registerSubTypeDefaulter("legend",function(){return"plain"}),e.registerAction("legendToggleSelect","legendselectchanged",(0,a.curry)(P,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,a.curry)(P,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,a.curry)(P,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,a.curry)(P,"select")),e.registerAction("legendUnSelect","legendunselected",(0,a.curry)(P,"unSelect"))}var z=i("Af"),R=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,r.C6)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,i,n){var r=(0,x.vs)(t);e.prototype.init.call(this,t,i,n),N(this,t,r)},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,z.G_)(c.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:u.A.color.accent50,pageIconInactiveColor:u.A.color.accent10,pageIconSize:15,pageTextStyle:{color:u.A.color.tertiary},animationDurationUpdate:800}),t}(c);function N(e,t,i){var n=e.getOrient(),r=[1,1];r[n.index]=0,(0,x.YA)(t,i,{type:"box",ignoreSize:!!r})}var B=i("W5"),E=d.A,G=["width","height"],W=["x","y"],H=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,r.C6)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new E),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new E)},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,r,o,l,s){var u=this;e.prototype.renderInner.call(this,t,i,n,r,o,l,s);var c=this._controllerGroup,h=i.get("pageIconSize",!0),d=a.isArray(h)?h:[h,h];v("pagePrev",0);var g=i.getModel("pageTextStyle");function v(e,t){var n=f.createIcon(i.get("pageIcons",!0)[i.getOrient().name][t],{onclick:a.bind(u._pageGo,u,e+"DataIndex",i,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});n.name=e,c.add(n)}c.add(new p.Ay({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1)},t.prototype.layoutInner=function(e,t,i,n,r,o){var l=this.getSelectorGroup(),s=e.getOrient().index,u=G[s],c=W[s],h=G[1-s],d=W[1-s];r&&x.aP("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),f=[-g.x,-g.y],v=a.clone(i);r&&(v[u]=i[u]-g[u]-p);var y=this._layoutContentAndController(e,n,v,s,u,h,d,c);if(r){if("end"===o)f[s]+=y[u]+p;else{var m=g[u]+p;f[s]-=m,y[c]-=m}y[u]+=g[u]+p,f[1-s]+=y[d]+y[h]/2-g[h]/2,y[h]=Math.max(y[h],g[h]),y[d]=Math.min(y[d],g[d]+f[1-s]),l.x=f[0],l.y=f[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,t,i,n,r,o,l,s){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;x.aP(e.get("orient"),u,e.get("itemGap"),n?i.width:null,n?null:i.height),x.aP("horizontal",h,e.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),p=h.getBoundingRect(),f=this._showController=d[r]>i[r],v=[-d.x,-d.y];t||(v[n]=u[s]);var y=[0,0],m=[-p.x,-p.y],S=a.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?m[n]+=i[r]-p[r]:y[n]+=p[r]+S),m[1-n]+=d[o]/2-p[o]/2,u.setPosition(v),c.setPosition(y),h.setPosition(m);var w={x:0,y:0};if(w[r]=f?i[r]:d[r],w[o]=Math.max(d[o],p[o]),w[l]=Math.min(0,p[l]+m[1-n]),c.__rectSize=i[r],f){var b={x:0,y:0};b[r]=Math.max(i[r]-p[r]-S,0),b[o]=w[o],c.setClipPath(new g.A({shape:b})),c.__rectSize=b[r]}else h.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(e);return null!=A.pageIndex&&B.oi(u,{x:A.contentPosition[0],y:A.contentPosition[1]},f?e:null),this._updatePageInfoView(e,A),w},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 r=null!=t[n+"DataIndex"],a=i.childOfName(n);a&&(a.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")});var n=i.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,l=null!=o?o+1:0,s=t.pageCount;n&&r&&n.setStyle("text",a.isString(r)?r.replace("{current}",null==l?"":l+"").replace("{total}",null==s?"":s+""):r({current:l,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,r=e.getOrient().index,a=G[r],o=W[r],l=this._findTargetItemIndex(t),s=i.children(),u=s[l],c=s.length,h=+!!c,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[r]=-p.s;for(var g=l+1,f=p,v=p,y=null;g<=c;++g)(!(y=m(s[g]))&&v.e>f.s+n||y&&!x(y,f.s))&&(f=v.i>f.i?v:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=f.i),++d.pageCount),v=y;for(var g=l-1,f=p,v=p,y=null;g>=-1;--g)(!(y=m(s[g]))||!x(v,y.s))&&f.i<v.i&&(v=f,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=f.i),++d.pageCount,++d.pageIndex),f=y;return d;function m(e){if(e){var t=e.getBoundingRect(),i=t[o]+e[o];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,r){var a=n.__legendDataIndex;null==i&&null!=a&&(i=r),a===e&&(t=r)}),null!=t?t:i):0},t.type="legend.scroll",t}(C);function F(e){(0,n.Y)(k),e.registerComponentModel(R),e.registerComponentView(H),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)})})}function Y(e){(0,n.Y)(k),(0,n.Y)(F)}},pM(e,t,i){var n=i("i4"),r=i("iY"),a=i("VI"),o=i("h9"),l=i("Hg"),s=i("xN"),u=i("MB"),c=i("wv"),h=i("g8w"),d=o.A.mapVisual,p=o.A.eachVisual,g=r.isArray,f=r.each,v=u.Y6,y=u.Cb;t.A=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.C6)(t,e),t.prototype.init=function(e,t,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,t){var i=this.option;t||l.St(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=r.bind(e,this),this.controllerVisuals=l.u1(this.option.controller,t,e),this.targetVisuals=l.u1(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var i=[];return f(t,function(t){if(null!=t.seriesIndex)i.push(t.seriesIndex);else if(null!=t.seriesId){var n;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(n=e)}),n&&i.push(n.componentIndex)}}),i}var n=this.option.seriesId,a=this.option.seriesIndex;null==a&&null==n&&(a="all");var o=s.JO(this.ecModel,"series",{index:a,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return r.map(o,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){r.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,o=a.precision,l=this.dataBound,s=a.formatter;i=i||["<",">"],r.isArray(e)&&(e=e.slice(),n=!0);var u=t?e:n?[c(e[0]),c(e[1])]:c(e);if(r.isString(s))return s.replace("{value}",n?u[0]:u).replace("{value2}",n?u[1]:u);if(r.isFunction(s))return n?s(e[0],e[1]):s(e);if(!n)return u;if(e[0]===l[0])return i[0]+" "+u[1];if(e[1]===l[1])return i[1]+" "+u[0];return u[0]+" - "+u[1];function c(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=v([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,i=this.option.seriesTargets;if(i){var n=r.find(i,function(i){return null!=i.seriesIndex&&i.seriesIndex===e||null!=i.seriesId&&i.seriesId===t.ecModel.getSeriesByIndex(e).id});if(n)return n.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,i=this.getDimension(t);if(null!=i)return e.getDimensionIndex(i);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var a=n[r],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,i={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),l=t.controller||(t.controller={});r.merge(n,i),r.merge(l,i);var s=this.isCategory();function u(i){g(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,l),(function(e,t,i){var n=e[t],r=e[i];n&&!r&&(r=e[i]={},f(n,function(e,t){if(o.A.isValidType(t)){var i=a.A.get(t,"inactive",s);null!=i&&(r[t]=i,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.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";f(this.stateList,function(o){var l=this.itemSize,u=e[o];u||(u=e[o]={color:s?n:[n]}),null==u.symbol&&(u.symbol=t&&r.clone(t)||(s?a:[a])),null==u.symbolSize&&(u.symbolSize=i&&r.clone(i)||(s?l[0]:[l[0],l[0]])),u.symbol=d(u.symbol,function(e){return"none"===e?a:e});var c=u.symbolSize;if(null!=c){var h=-1/0;p(c,function(e){e>h&&(h=e)}),u.symbolSize=d(c,function(e){return y(e,[0,h],[0,l[0]],!0)})}},this)}).call(this,l)},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,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:h.A.color.transparent,borderColor:h.A.color.borderTint,contentColor:h.A.color.theme["0"],inactiveColor:h.A.color.disabled,borderWidth:0,padding:h.A.size.m,textGap:10,precision:0,textStyle:{color:h.A.color.secondary}},t}(c.A)},k7(e,t,i){var n=i("i4"),r=i("iY"),a=i("Vb"),o=i("s7"),l=i("db"),s=i("h9");t.A=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.C6)(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,i,n){(this.visualMapModel=e,!1===e.get("show"))?this.group.removeAll():this.doRender(e,t,i,n)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,i=o.QX(t.get("padding")||0),n=e.getBoundingRect();e.add(new a.A({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,o={};function l(e){return o[e]}function u(e,t){o[e]=t}"color"===t&&(o.color=a.get("contentColor"));var c=a.controllerVisuals[n||a.getValueState(e)],h=s.A.prepareVisualTypes(c);return r.each(h,function(n){var r=c[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",r=c.__alphaForOpacity),s.A.dependsOn(n,t)&&r&&r.applyVisual(e,l,u)}),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,i=this.api,n=l.Lj(t,i).refContainer;l.m$(e,t.getBoxLayoutParams(),n)},t.prototype.doRender=function(e,t,i,n){},t.type="visualMap",t}(i("BP").A)},a4(e,t,i){var n=i("iY"),r=i("db"),a=[["left","right","width"],["top","bottom","height"]];i.d(t,{},{J:function(e,t,i){var n=e.option,o=n.align;if(null!=o&&"auto"!==o)return o;for(var l={width:t.getWidth(),height:t.getHeight()},s=+("horizontal"===n.orient),u=a[s],c=[0,null,10],h={},d=0;d<3;d++)h[a[1-s][d]]=c[d],h[u[d]]=2===d?i[0]:n[u[d]];var p=[["x","width",3],["y","height",0]][s],g=(0,r.dV)(h,l,n.padding);return u[(g.margin[p[2]]||0)+g[p[0]]+.5*g[p[1]]<.5*l[p[1]]?0:1]},l:function(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}})},Jm(e,t,i){var n=i("xNS"),r=i("Ja"),a=i("ob");i.d(t,{},{a:function(e){(0,n.Y)(r.a),(0,n.Y)(a.a)}})},kJ(e,t,i){i.d(t,{A:()=>f});var n={type:"selectDataRange",event:"dataRangeSelected",update:"update"},r=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},a=i("iY"),o=i("Hg"),l=i("h9"),s=i("N1e"),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(o.dS(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 r=t.getVisualMeta(a.bind(c,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(i);o>=0&&(r.dimension=o,n.push(r))}}),e.getData().setVisual("visualMeta",n)}}];function c(e,t,i,n){for(var r=t.targetVisuals[n],a=l.A.prepareVisualTypes(r),o={color:(0,s.rI)(e.getData(),"color")},u=0,c=a.length;u<c;u++){var h=a[u],d=r["opacity"===h?"__alphaForOpacity":h];d&&d.applyVisual(i,p,g)}return o.color;function p(e){return o[e]}function g(e,t){o[e]=t}}var h=a.each;function d(e){var t=e&&e.visualMap;a.isArray(t)||(t=t?[t]:[]),h(t,function(e){if(e){p(e,"splitList")&&!p(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&a.isArray(t)&&h(t,function(e){a.isObject(e)&&(p(e,"start")&&!p(e,"min")&&(e.min=e.start),p(e,"end")&&!p(e,"max")&&(e.max=e.end))})}})}function p(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,r),(0,a.each)(u,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(d))}},Ja(e,t,i){i.d(t,{a:()=>B});var n=i("i4"),r=i("iY"),a=i("pM"),o=i("MB"),l=i("Af"),s=i("g8w"),u=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(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):r.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),r.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=o.Y6((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(),n=r.retrieve2(this.option.unboundedRange,!0);return(n&&t[0]<=i[0]||t[0]<=e)&&(n&&t[1]>=i[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(i){var n=[],r=i.getData();r.each(this.getDataDimensionIndex(r),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=c(this,"outOfRange",this.getExtent()),i=c(this,"inRange",this.option.range.slice()),n=[];function r(t,i){n.push({value:t,color:e(t,i)})}for(var a=0,o=0,l=i.length,s=t.length;o<s&&(!i.length||t[o]<=i[0]);o++)t[o]<i[a]&&r(t[o],"outOfRange");for(var u=1;a<l;a++,u=0)u&&n.length&&r(i[a],"outOfRange"),r(i[a],"inRange");for(var u=1;o<s;o++)(!i.length||i[i.length-1]<t[o])&&(u&&(n.length&&r(n[n.length-1].value,"outOfRange"),u=0),r(t[o],"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,l.G_)(a.A.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:s.A.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:s.A.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:s.A.color.shadow}}),t}(a.A);function c(e,t,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,r=i[0],a=[],o=0;o<=200&&r<i[1];o++)a.push(r),r+=n;return a.push(i[1]),a}var h=i("Up"),d=i("lX"),p=i("k7"),g=i("s2"),f=i("jZ"),v=i("Vb"),y=i("uf"),m=i("hC"),x=i("bx"),S=i("a4"),w=i("xN"),b=i("KO"),A=i("LP"),M=i("up"),I=i("s5"),_=i("FL"),C=i("F4"),O=i("u1"),L=o.Cb,T=r.each,P=Math.min,D=Math.max,V=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.C6)(t,e),t.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=r.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=r.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 r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,l=this._shapes.mainGroup,s=this._applyTransform([o[0]/2,0===i?-a:o[1]+a],l),u=this._applyTransform(0===i?"bottom":"top",l),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new g.Ay({style:(0,C.VB)(h,{x:s[0],y:s[1],verticalAlign:h.get("verticalAlign")||("horizontal"===c?"middle":u),align:h.get("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,o=this._useHandle,l=S.J(t,this.api,n),s=i.mainGroup=this._createBarGroup(l),u=new f.A;s.add(u),u.add(i.outOfRange=k()),u.add(i.inRange=k(null,o?R(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0))),u.setClipPath(new v.A({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),h=D(c.width,c.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(t,s,0,n,h,a),this._createHandle(t,s,1,n,h,a)),this._createIndicator(t,s,n,h,a),e.add(s)},t.prototype._createHandle=function(e,t,i,n,a,o){var l=r.bind(this._dragHandle,this,i,!1),s=r.bind(this._dragHandle,this,i,!0),u=(0,b.lo)(e.get("handleSize"),n[0]),c=(0,M.v5)(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=R(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:s,onmousemove:function(e){d.ds(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,A.ix)(c,!0),t.add(c);var p=this.visualMapModel.textStyleModel,f=new g.Ay({cursor:h,draggable:!0,drift:l,onmousemove:function(e){d.ds(e.event)},ondragend:s,style:(0,C.VB)(p,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var v=[u,0],y=this._shapes;y.handleThumbs[i]=c,y.handleLabelPoints[i]=v,y.handleLabels[i]=f},t.prototype._createIndicator=function(e,t,i,n,a){var o=(0,b.lo)(e.get("indicatorSize"),i[0]),l=(0,M.v5)(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(l instanceof I.Ay){var u=l.style;l.useStyle(r.extend({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},s))}else l.useStyle(s);t.add(l);var c=this.visualMapModel.textStyleModel,h=new g.Ay({silent:!0,invisible:!0,style:(0,C.VB)(c,{x:0,y:0,text:""})});this.group.add(h);var d=[("horizontal"===a?n/2:6)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,i,n){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?this._hovering||this._clearHoverLinkToSeries():z(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=[L(t[0],i,n,!0),L(t[1],i,n,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var i=this.visualMapModel,n=this._handleEnds,r=[0,i.itemSize[1]];(0,x.A)(t,n,r,e,0);var a=i.getExtent();this._dataInterval=[L(n[0],r,a,!0),L(n[1],r,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,i=t.getExtent(),n=this._shapes,r=[0,t.itemSize[1]],a=e?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,i,a,"inRange"),l=this._createBarVisual(i,i,r,"outOfRange");n.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),n.outOfRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,i,n){var r={forceState:n,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,r),o=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],l=this._createBarPoints(i,o);return{barColor:new h.A(0,0,0,1,a),barPoints:l,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 r=1;r<100;r++){var a=e[0]+n*r;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:r/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 f.A("horizontal"===t&&!i?{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2}:"horizontal"===t&&i?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"===t&&!i?{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"left"===e?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,a=i.handleLabels,o=n.itemSize,l=n.getExtent(),s=this._applyTransform("left",i.mainGroup);T([0,1],function(u){var c=r[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var h=L(e[u],[0,o[1]],l,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/o[0],c.x=o[0]-d/2;var p=y.applyTransform(i.handleLabelPoints[u],y.getTransform(c,this.group));if("horizontal"===this._orient){var g="left"===s||"top"===s?(o[0]-d)/2:-((o[0]-d)/2);p[1]+=g}a[u].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,t,i,n){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,l=[0,o[1]],s=this._shapes,u=s.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(e,"symbolSize"),d=L(e,a,l,!0),p=o[0]-h/2,g={x:u.x,y:u.y};u.y=d,u.x=p;var f=y.applyTransform(s.indicatorLabelPoint,y.getTransform(u,this.group)),v=s.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",s.mainGroup),x="horizontal"===this._orient;v.setStyle({text:(i||"")+r.formatValueText(t),verticalAlign:x?m:"middle",align:x?"center":m});var S={x:p,y:d,style:{fill:c}},w={style:{x:f[0],y:f[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(S,b),v.animateTo(w,b)}else u.attr(S),v.attr(w);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},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]=P(D(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 r,a,o,l,s,u=[0,n[1]],c=i.getExtent();e=P(D(u[0],e),u[1]);var h=(r=i,a=c,o=u,l=6,(s=r.get("hoverLinkDataSize"))&&(l=L(s,a,o,!0)/2),l),d=[e-h,e+h],p=L(e,u,c,!0),g=[L(d[0],u,c,!0),L(d[1],u,c,!0)];d[0]<u[0]&&(g[0]=-1/0),d[1]>u[1]&&(g[1]=1/0),t&&(-1/0===g[0]?this._showIndicator(p,g[1],"< ",h):1/0===g[1]?this._showIndicator(p,g[0],"> ",h):this._showIndicator(p,p,"≈ ",h));var f=this._hoverLinkDataIndices,v=[];(t||z(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(g));var y=w.D6(f,v);this._dispatchHighDown("downplay",S.l(y[0],i)),this._dispatchHighDown("highlight",S.l(y[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){if((0,O.R)(e.target,function(e){var i=(0,_.z)(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 r=i.getData(t.dataType),a=r.getStore().get(n.getDataDimensionIndex(r),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",S.l(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=y.getTransform(t,n?null:this.group);return r.isArray(e)?y.applyTransform(e,a,i):y.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.A);function k(e,t,i,n){return new m.A({shape:{points:e},draggable:!!i,cursor:t,drift:i,onmousemove:function(e){d.ds(e.event)},ondragend:n})}function z(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function R(e){return"vertical"===e?"ns-resize":"ew-resize"}var N=i("kJ");function B(e){e.registerComponentModel(u),e.registerComponentView(V),(0,N.A)(e)}},ob(e,t,i){i.d(t,{a:()=>b});var n=i("i4"),r=i("iY"),a=i("pM"),o=i("h9"),l=i("VI"),s=i("MB"),u=i("Af"),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.C6)(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=r.clone(a)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=r.map(this._pieceList,function(e){return e=r.clone(e),"inRange"!==t&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,i={},n=o.A.listVisualTypes(),a=this.isCategory();function s(e,t,i){return e&&e[t]&&e[t].hasOwnProperty(i)}r.each(t.pieces,function(e){r.each(n,function(t){e.hasOwnProperty(t)&&(i[t]=1)})}),r.each(i,function(e,i){var n=!1;r.each(this.stateList,function(e){n=n||s(t,e,i)||s(t.target,e,i)},this),n||r.each(this.stateList,function(e){(t[e]||(t[e]={}))[i]=l.A.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,r.each(n,function(e,t){var i=this.getSelectedMapKey(e);a.hasOwnProperty(i)||(a[i]=!0)},this),"single"===i.selectedMode){var o=!1;r.each(n,function(e,t){var i=this.getSelectedMapKey(e);a[i]&&(o?a[i]=!1:o=!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=r.clone(e)},t.prototype.getValueState=function(e){var t=o.A.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 r=[],a=n.getData();a.each(this.getDataDimensionIndex(a),function(t,n){o.A.findPieceIndex(t,i)===e&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=-1/0===i[0]&&1/0===i[1]?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 o=a[0].interval[0];-1/0!==o&&a.unshift({interval:[-1/0,o]}),1/0!==(o=a[a.length-1].interval[1])&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var l=-1/0;return r.each(a,function(e){var t=e.interval;t&&(t[0]>l&&s([l,t[0]],"outOfRange"),s(t.slice()),l=t[1])},this),{stops:t,outerColors:i}}function s(r,a){var o=n.getRepresentValue({interval:r});a||(a=n.getValueState(o));var l=e(o,a);-1/0===r[0]?i[0]=l:1/0===r[1]?i[1]=l:t.push({value:r[0],color:l},{value:r[1],color:l})}},t.type="visualMap.piecewise",t.defaultOption=(0,u.G_)(a.A.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.A),h={splitNumber:function(e){var t=this.option,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;t.splitNumber=a=Math.max(parseInt(a,10),1);for(var o=(n[1]-n[0])/a;+o.toFixed(i)!==o&&i<5;)i++;t.precision=i,o=+o.toFixed(i),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var l=0,u=n[0];l<a;u+=o,l++){var c=l===a-1?n[1]:u+o;e.push({interval:[u,c],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),(0,s.sL)(e),r.each(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;r.each(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),d(t,e)},pieces:function(e){var t=this.option;r.each(t.pieces,function(t,i){r.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 l=n.interval=[],s=n.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],g=0;g<3&&null==l[d];g++)l[d]=t[p[g]],s[d]=u[g],h[d]=2===g;null==l[d]&&(l[d]=c[d])}h[0]&&1/0===l[1]&&(s[0]=0),h[1]&&-1/0===l[0]&&(s[1]=0),l[0]===l[1]&&s[0]&&s[1]&&(n.value=l[0])}n.visual=o.A.retrieveVisuals(t),e.push(n)},this),d(t,e),(0,s.sL)(e),r.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 d(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}var p=i("k7"),g=i("jZ"),f=i("s2"),v=i("up"),y=i("db"),m=i("a4"),x=i("F4"),S=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.type=t.type,i}return(0,n.C6)(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,i=t.get("textGap"),n=t.textStyleModel,a=this._getItemAlign(),o=t.itemSize,l=this._getViewData(),s=l.endsText,u=r.retrieve(t.get("showLabel",!0),!s),c=!t.get("selectedMode");s&&this._renderEndsText(e,s[0],o,u,a),r.each(l.viewPieceList,function(l){var s=l.piece,h=new g.A;h.onclick=r.bind(this._onItemClick,this,s),this._enableHoverLink(h,l.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(h,d,[0,0,o[0],o[1]],c),u){var p=this.visualMapModel.getValueState(d),v=n.get("align")||a;h.add(new f.Ay({style:(0,x.VB)(n,{x:"right"===v?-i:o[0]+i,y:o[1]/2,text:s.text,verticalAlign:n.get("verticalAlign")||"middle",align:v,opacity:r.retrieve2(n.get("opacity"),"outOfRange"===p?.5:1)}),silent:c}))}e.add(h)},this),s&&this._renderEndsText(e,s[1],o,u,a),y.aP(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:m.l(n.findTargetDataIndices(t),n)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return m.J(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},t.prototype._renderEndsText=function(e,t,i,n,r){if(t){var a=new g.A,o=this.visualMapModel.textStyleModel;a.add(new f.Ay({style:(0,x.VB)(o,{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?r:"center",text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=r.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,n){var r=(0,v.v5)(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color"));r.silent=n,e.add(r)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,i=t.option,n=i.selectedMode;if(n){var a=r.clone(i.selected),o=t.getSelectedMapKey(e);"single"===n||!0===n?(a[o]=!0,r.each(a,function(e,t){a[t]=t===o})):a[o]=!a[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(p.A),w=i("kJ");function b(e){e.registerComponentModel(c),e.registerComponentView(S),(0,w.A)(e)}},rP(e,t,i){var n=i("zM"),r=i("Pk"),a=i("Jx"),o=i("Ig"),l=i("QW"),s=i("mq"),u=i("iY"),c=i("AT"),h=i("xy"),d=i("LP"),p=2*Math.PI,g=o.A.CMD,f=["top","right","bottom","left"];function v(e,t,i,n,r,a,o,l){var s=i-e,u=n-t,c=Math.sqrt(s*s+u*u),h=((r-e)*(s/=c)+(a-t)*(u/=c))/c;l&&(h=Math.min(Math.max(h,0),1)),h*=c;var d=o[0]=e+h*s,p=o[1]=t+h*u;return Math.sqrt((d-r)*(d-r)+(p-a)*(p-a))}function y(e,t,i,n,r,a,o){i<0&&(e+=i,i=-i),n<0&&(t+=n,n=-n);var l=e+i,s=t+n,u=o[0]=Math.min(Math.max(r,e),l),c=o[1]=Math.min(Math.max(a,t),s);return Math.sqrt((u-r)*(u-r)+(c-a)*(c-a))}var m=[],x=new n.A,S=new n.A,w=new n.A,b=new n.A,A=new n.A,M=[],I=new n.A;function _(e,t){if(t<=180&&t>0){t=t/180*Math.PI,x.fromArray(e[0]),S.fromArray(e[1]),w.fromArray(e[2]),n.A.sub(b,x,S),n.A.sub(A,w,S);var i=b.len(),r=A.len();if(!(i<.001)&&!(r<.001)&&(b.scale(1/i),A.scale(1/r),Math.cos(t)<b.dot(A))){var a=v(S.x,S.y,w.x,w.y,x.x,x.y,M,!1);I.fromArray(M),I.scaleAndAdd(A,a/Math.tan(Math.PI-t));var o=w.x!==S.x?(I.x-S.x)/(w.x-S.x):(I.y-S.y)/(w.y-S.y);if(isNaN(o))return;o<0?n.A.copy(I,S):o>1&&n.A.copy(I,w),I.toArray(e[1])}}}function C(e,t,i,n){var r="normal"===i,a=r?e:e.ensureState(i);a.ignore=t;var o=n.get("smooth");o=!0===o?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var l=n.getModel("lineStyle").getLineStyle();r?e.useStyle(l):a.style=l}function O(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 r=h.dist(n[0],n[1]),a=h.dist(n[1],n[2]);if(!r||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(r,a)*i,l=h.lerp([],n[1],n[0],o/r),s=h.lerp([],n[1],n[2],o/a),u=h.lerp([],l,s,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],u[0],u[1]),e.bezierCurveTo(s[0],s[1],s[0],s[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}i.d(t,{},{QK:function(e,t,i){if(i<=180&&i>0){i=i/180*Math.PI,x.fromArray(e[0]),S.fromArray(e[1]),w.fromArray(e[2]),n.A.sub(b,S,x),n.A.sub(A,w,S);var r=b.len(),a=A.len();if(!(r<.001)&&!(a<.001)&&(b.scale(1/r),A.scale(1/a),b.dot(t)<Math.cos(i))){var o=v(S.x,S.y,w.x,w.y,x.x,x.y,M,!1);I.fromArray(M);var l=Math.PI/2,s=l+Math.acos(A.dot(t))-i;if(s>=l)n.A.copy(I,w);else{I.scaleAndAdd(A,o/Math.tan(Math.PI/2-s));var u=w.x!==S.x?(I.x-S.x)/(w.x-S.x):(I.y-S.y)/(w.y-S.y);if(isNaN(u))return;u<0?n.A.copy(I,S):u>1&&n.A.copy(I,w)}I.toArray(e[1])}}},YI:_,eR:function(e,t,i){var n=e.getTextGuideLine(),r=e.getTextContent();if(!r){n&&e.removeTextGuideLine();return}for(var o=t.normal,l=o.get("show"),s=r.ignore,c=0;c<d.wV.length;c++){var h=d.wV[c],p=t[h],g="normal"===h;if(p){var f=p.get("show");if((g?s:(0,u.retrieve2)(r.states[h]&&r.states[h].ignore,s))||!(0,u.retrieve2)(f,l)){var v=g?n:n&&n.states[h];v&&(v.ignore=!0),n&&C(n,!0,h,p);continue}!n&&(n=new a.A,e.setTextGuideLine(n),g||!s&&l||C(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),C(n,!1,h,p)}}if(n){(0,u.defaults)(n.style,i),n.style.fill=null;var y=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=y||!1,n.buildPath=O}},lB:function(e,t){if(e){var i=e.getTextGuideLine(),a=e.getTextContent();if(a&&i){var o=e.textGuideLineConfig||{},u=[[0,0],[0,0],[0,0]],h=o.candidates||f,d=a.getBoundingRect().clone();d.applyTransform(a.getComputedTransform());var A=1/0,M=o.anchor,I=e.getComputedTransform(),C=I&&(0,c.invert)([],I),O=t.get("length2")||0;M&&w.copy(M);for(var L=0;L<h.length;L++){!function(e,t,i,n){var r=t.width,a=t.height;switch(e){case"top":i.set(t.x+r/2,t.y-0),n.set(0,-1);break;case"bottom":i.set(t.x+r/2,t.y+a+0),n.set(0,1);break;case"left":i.set(t.x-0,t.y+a/2),n.set(-1,0);break;case"right":i.set(t.x+r+0,t.y+a/2),n.set(1,0)}}(h[L],d,x,b),n.A.scaleAndAdd(S,x,b,O),S.transform(C);var T=e.getBoundingRect(),P=M?M.distance(S):e instanceof r.Ay?function(e,t,i){for(var n,r,a=0,o=0,u=0,c=0,h=1/0,d=t.data,f=e.x,x=e.y,S=0;S<d.length;){var w=d[S++];1===S&&(a=d[S],o=d[S+1],u=a,c=o);var b=h;switch(w){case g.M:u=d[S++],c=d[S++],a=u,o=c;break;case g.L:b=v(a,o,d[S],d[S+1],f,x,m,!0),a=d[S++],o=d[S++];break;case g.C:b=(0,s.Et)(a,o,d[S++],d[S++],d[S++],d[S++],d[S],d[S+1],f,x,m),a=d[S++],o=d[S++];break;case g.Q:b=(0,s.kh)(a,o,d[S++],d[S++],d[S],d[S+1],f,x,m),a=d[S++],o=d[S++];break;case g.A:var A=d[S++],M=d[S++],I=d[S++],_=d[S++],C=d[S++],O=d[S++];S+=1;var L=!!(1-d[S++]);n=Math.cos(C)*I+A,r=Math.sin(C)*_+M,S<=1&&(u=n,c=r);var T=(f-A)*_/I+A;b=function(e,t,i,n,r,a,o,s,u){var c=Math.sqrt((o-=e)*o+(s-=t)*s),h=(o/=c)*i+e,d=(s/=c)*i+t;if(Math.abs(n-r)%p<1e-4)return u[0]=h,u[1]=d,c-i;if(a){var g=n;n=(0,l.n)(r),r=(0,l.n)(g)}else n=(0,l.n)(n),r=(0,l.n)(r);n>r&&(r+=p);var f=Math.atan2(s,o);if(f<0&&(f+=p),f>=n&&f<=r||f+p>=n&&f+p<=r)return u[0]=h,u[1]=d,c-i;var v=i*Math.cos(n)+e,y=i*Math.sin(n)+t,m=i*Math.cos(r)+e,x=i*Math.sin(r)+t,S=(v-o)*(v-o)+(y-s)*(y-s),w=(m-o)*(m-o)+(x-s)*(x-s);return S<w?(u[0]=v,u[1]=y,Math.sqrt(S)):(u[0]=m,u[1]=x,Math.sqrt(w))}(A,M,_,C,C+O,L,T,x,m),a=Math.cos(C+O)*I+A,o=Math.sin(C+O)*_+M;break;case g.R:b=y(u=a=d[S++],c=o=d[S++],d[S++],d[S++],f,x,m);break;case g.Z:b=v(a,o,u,c,f,x,m,!0),a=u,o=c}b<h&&(h=b,i.set(m[0],m[1]))}return h}(S,e.path,w):function(e,t,i){var n=y(t.x,t.y,t.width,t.height,e.x,e.y,m);return i.set(m[0],m[1]),n}(S,T,w);P<A&&(A=P,S.transform(I),w.transform(I),w.toArray(u[0]),S.toArray(u[1]),x.toArray(u[2]))}_(u,t.get("minTurnAngle")),i.setShape({points:u})}}},rv:function(e,t){t=t||"labelLine";for(var i={normal:e.getModel(t)},n=0;n<d.BV.length;n++){var r=d.BV[n];i[r]=e.getModel([r,t])}return i}})},oL(e,t,i){i.d(t,{},{A:function(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),r=0;r<i.length;r++)if(!i[r].isSelected(t))return!1;return!0})}}}}})},ZJ(e,t,i){var n=i("iY"),r=i("g8w");function a(e,t){t&&(t.font=t.textFont||t.font,(0,n.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),(0,n.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),(0,n.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),(0,n.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),(0,n.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),(0,n.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),(0,n.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),(0,n.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),(0,n.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),(0,n.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),(0,n.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),(0,n.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),(0,n.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),(0,n.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),(0,n.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function o(e,t){t&&((0,n.hasOwn)(t,"fill")&&(e.textFill=t.fill),(0,n.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),(0,n.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),(0,n.hasOwn)(t,"font")&&(e.font=t.font),(0,n.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),(0,n.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),(0,n.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),(0,n.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),(0,n.hasOwn)(t,"align")&&(e.textAlign=t.align),(0,n.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),(0,n.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),(0,n.hasOwn)(t,"width")&&(e.textWidth=t.width),(0,n.hasOwn)(t,"height")&&(e.textHeight=t.height),(0,n.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),(0,n.hasOwn)(t,"padding")&&(e.textPadding=t.padding),(0,n.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),(0,n.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),(0,n.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),(0,n.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),(0,n.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),(0,n.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),(0,n.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),(0,n.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),(0,n.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),(0,n.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),(0,n.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}i.d(t,{},{Fs:function(e,t,i){e.textPosition=e.textPosition||i.position||"inside",null!=i.offset&&(e.textOffset=i.offset),null!=i.rotation&&(e.textRotation=i.rotation),null!=i.distance&&(e.textDistance=i.distance);var a=e.textPosition.indexOf("inside")>=0,l=e.fill||r.A.color.neutral99;o(e,t);var s=null==e.textFill;return a?s&&(e.textFill=i.insideFill||r.A.color.neutral00,!e.textStroke&&i.insideStroke&&(e.textStroke=i.insideStroke),e.textStroke||(e.textStroke=l),null==e.textStrokeWidth&&(e.textStrokeWidth=2)):(s&&(e.textFill=e.fill||i.outsideFill||r.A.color.neutral00),!e.textStroke&&i.outsideStroke&&(e.textStroke=i.outsideStroke)),e.text=t.text,e.rich=t.rich,(0,n.each)(t.rich,function(e){o(e,e)}),e},ex:function(e,t,i,r){return e&&(e.legacy||!1!==e.legacy&&!i&&!r&&"tspan"!==t&&("text"===t||(0,n.hasOwn)(e,"text")))},lH:function(e,t,i){var r,o,l;if("text"===t)l=e;else{l={},(0,n.hasOwn)(e,"text")&&(l.text=e.text),(0,n.hasOwn)(e,"rich")&&(l.rich=e.rich),(0,n.hasOwn)(e,"textFill")&&(l.fill=e.textFill),(0,n.hasOwn)(e,"textStroke")&&(l.stroke=e.textStroke),(0,n.hasOwn)(e,"fontFamily")&&(l.fontFamily=e.fontFamily),(0,n.hasOwn)(e,"fontSize")&&(l.fontSize=e.fontSize),(0,n.hasOwn)(e,"fontStyle")&&(l.fontStyle=e.fontStyle),(0,n.hasOwn)(e,"fontWeight")&&(l.fontWeight=e.fontWeight),o={type:"text",style:l,silent:!0},r={};var s=(0,n.hasOwn)(e,"textPosition");i?r.position=s?e.textPosition:"inside":s&&(r.position=e.textPosition),(0,n.hasOwn)(e,"textPosition")&&(r.position=e.textPosition),(0,n.hasOwn)(e,"textOffset")&&(r.offset=e.textOffset),(0,n.hasOwn)(e,"textRotation")&&(r.rotation=e.textRotation),(0,n.hasOwn)(e,"textDistance")&&(r.distance=e.textDistance)}return a(l,e),(0,n.each)(l.rich,function(e){a(e,e)}),{textConfig:r,textContent:o}}})},P2(e,t){t.A=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}()},h9(e,t,i){var n=i("iY"),r=i("x4z"),a=i("MB"),o=n.each,l=n.isObject,s=function(){function e(t){var i,r,a=t.mappingMethod,l=t.type,s=this.option=n.clone(t);this.type=l,this.mappingMethod=a,this._normalizeData=m[a];var c=e.visualHandlers[l];this.applyVisual=c.applyVisual,this.getColorMapper=c.getColorMapper,this._normalizedToVisual=c._normalizedToVisual[a],"piecewise"===a?(u(s),r=(i=s).pieceList,i.hasSpecialVisual=!1,n.each(r,function(e,t){e.originIndex=t,null!=e.visual&&(i.hasSpecialVisual=!0)})):"category"===a?s.categories?function(e){var t=e.categories,i=e.categoryMap={},r=e.visual;if(o(t,function(e,t){i[e]=t}),!n.isArray(r)){var a=[];n.isObject(r)?o(r,function(e,t){var n=i[t];a[null!=n?n:-1]=e}):a[-1]=r,r=y(e,a)}for(var l=t.length-1;l>=0;l--)null==r[l]&&(delete i[t[l]],t.pop())}(s):u(s,!0):(n.assert("linear"!==a||s.dataExtent),u(s))}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,r){var a,o=n.isArray(t)?[]:n.isObject(t)?{}:(a=!0,null);return e.eachVisual(t,function(e,t){var n=i.call(r,e,t);a?o=n:o[t]=n}),o},e.retrieveVisuals=function(t){var i,n={};return t&&o(e.visualHandlers,function(e,r){t.hasOwnProperty(r)&&(n[r]=t[r],i=!0)}),i?n:null},e.prepareVisualTypes=function(e){if(n.isArray(e))e=e.slice();else{if(!l(e))return[];var t=[];o(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 r,a=1/0,o=0,l=t.length;o<l;o++){var s=t[o].value;if(null!=s){if(s===e||n.isString(s)&&s===e+"")return o;i&&M(s,o)}}for(var o=0,l=t.length;o<l;o++){var u,c,h,d,p,g,f,v,y,m,x,S,w=t[o],b=w.interval,A=w.close;if(b){if(-1/0===b[0]){if(u=A[1],c=e,h=b[1],u?c<=h:c<h)return o}else if(1/0===b[1]){if(d=A[0],p=b[0],g=e,d?p<=g:p<g)return o}else{if(f=A[0],v=b[0],y=e,(f?v<=y:v<y)&&(m=A[1],x=e,S=b[1],m?x<=S:x<S))return o}i&&M(b[0],o),i&&M(b[1],o)}}if(i)return 1/0===e?t.length-1:-1/0===e?0:r;function M(t,i){var n=Math.abs(t-e);n<a&&(a=n,r=i)}},e.visualHandlers={color:{applyVisual:d("color"),getColorMapper:function(){var e=this.option;return n.bind("category"===e.mappingMethod?function(e,t){return t||(e=this._normalizeData(e)),p.call(this,e)}:function(t,i,n){var a=!!n;return i||(t=this._normalizeData(t)),n=r.fastLerp(t,e.parsedVisual,n),a?n:r.stringify(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")},category:p,piecewise:function(e,t){var i=v.call(this,t);return null==i&&(i=r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")),i},fixed:g}},colorHue:c(function(e,t){return r.modifyHSL(e,t)}),colorSaturation:c(function(e,t){return r.modifyHSL(e,null,t)}),colorLightness:c(function(e,t){return r.modifyHSL(e,null,null,t)}),colorAlpha:c(function(e,t){return r.modifyAlpha(e,t)}),decal:{applyVisual:d("decal"),_normalizedToVisual:{linear:null,category:p,piecewise:null,fixed:null}},opacity:{applyVisual:d("opacity"),_normalizedToVisual:f([0,1])},liftZ:{applyVisual:d("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:p,piecewise:function(e,t){var i=v.call(this,t);return null==i&&(i=h.call(this,e)),i},fixed:g}},symbolSize:{applyVisual:d("symbolSize"),_normalizedToVisual:f([0,1])}},e}();function u(e,t){var i=e.visual,r=[];n.isObject(i)?o(i,function(e){r.push(e)}):null!=i&&r.push(i),t||1!==r.length||({color:1,symbol:1}).hasOwnProperty(e.type)||(r[1]=r[0]),y(e,r)}function c(e){return{applyVisual:function(t,i,n){var r=this.mapValueToVisual(t);n("color",e(i("color"),r))},_normalizedToVisual:f([0,1])}}function h(e){var t=this.option.visual;return t[Math.round((0,a.Cb)(e,[0,1],[0,t.length-1],!0))]||{}}function d(e){return function(t,i,n){n(e,this.mapValueToVisual(t))}}function p(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.Cb)(t,e,this.option.visual,!0)},category:p,piecewise:function(t,i){var n=v.call(this,i);return null==n&&(n=(0,a.Cb)(t,e,this.option.visual,!0)),n},fixed:g}}function v(e){var t=this.option,i=t.pieceList;if(t.hasSpecialVisual){var n=s.findPieceIndex(e,i),r=i[n];if(r&&r.visual)return r.visual[this.type]}}function y(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=n.map(t,function(e){return r.parse(e)||[0,0,0,1]})),t}var m={linear:function(e){return(0,a.Cb)(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,i=s.findPieceIndex(e,t,!0);if(null!=i)return(0,a.Cb)(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};t.A=s},VI(e,t,i){var n=i("iY"),r={color:{active:["#006edd","#e0ffff"],inactive:[i("g8w").A.color.transparent]},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]}};t.A={get:function(e,t,i){var a=n.clone((r[e]||{})[t]);return i&&n.isArray(a)?a[a.length-1]:a}}},Hg(e,t,i){var n=i("iY"),r=i("h9"),a=i("N1e"),o=n.each;function l(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}i.d(t,{},{R3:function(e,t,i,o,l,s){var u,c={};function h(e){return(0,a.Ez)(i,u,e)}function d(e,t){(0,a.oZ)(i,u,e,t)}function p(e,n){u=null==s?e:n;var r=i.getRawDataItem(u);if(!r||!1!==r.visualMap)for(var a=o.call(l,e),p=t[a],g=c[a],f=0,v=g.length;f<v;f++){var y=g[f];p[y]&&p[y].applyVisual(e,h,d)}}n.each(e,function(e){var i=r.A.prepareVisualTypes(t[e]);c[e]=i}),null==s?i.each(p):i.each([s],p)},St:function(e,t,i){var r;n.each(i,function(e){t.hasOwnProperty(e)&&l(t[e])&&(r=!0)}),r&&n.each(i,function(i){t.hasOwnProperty(i)&&l(t[i])?e[i]=n.clone(t[i]):delete e[i]})},dS:function(e,t,i,o){var l={};return n.each(e,function(e){var i=r.A.prepareVisualTypes(t[e]);l[e]=i}),{progress:function(e,n){function r(e){return(0,a.Ez)(n,c,e)}function s(e,t){(0,a.oZ)(n,c,e,t)}null!=o&&(u=n.getDimensionIndex(o));for(var u,c,h=n.getStore();null!=(c=e.next());){var d=n.getRawDataItem(c);if(!d||!1!==d.visualMap)for(var p=null!=o?h.get(u,c):c,g=i(p),f=t[g],v=l[g],y=0,m=v.length;y<m;y++){var x=v[y];f[x]&&f[x].applyVisual(p,r,s)}}}}},u1:function(e,t,i){var a={};return o(t,function(t){var l,s=a[t]=((l=function(){}).prototype.__hidden=l.prototype,new l);o(e[t],function(e,a){if(r.A.isValidType(a)){var o={type:a,visual:e};i&&i(o,t),s[a]=new r.A(o),"opacity"===a&&((o=n.clone(o)).type="colorAlpha",s.__hidden.__alphaForOpacity=new r.A(o))}})}),a}})}}]);
|