locust 2.29.1.dev34__py3-none-any.whl → 2.29.1.dev39__py3-none-any.whl
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.
- locust/_version.py +6 -2
- locust/contrib/fasthttp.py +55 -18
- locust/dispatch.py +7 -6
- locust/event.py +32 -0
- locust/runners.py +13 -22
- locust/stats.py +4 -17
- locust/user/sequential_taskset.py +8 -6
- locust/webui/dist/assets/{index-84c63e70.js → index-e9ad42b4.js} +2 -2
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- {locust-2.29.1.dev34.dist-info → locust-2.29.1.dev39.dist-info}/METADATA +31 -26
- locust-2.29.1.dev39.dist-info/RECORD +49 -0
- locust-2.29.1.dev39.dist-info/WHEEL +4 -0
- locust-2.29.1.dev39.dist-info/entry_points.txt +3 -0
- locust/test/__init__.py +0 -15
- locust/test/fake_module1_for_env_test.py +0 -7
- locust/test/fake_module2_for_env_test.py +0 -7
- locust/test/mock_locustfile.py +0 -56
- locust/test/mock_logging.py +0 -28
- locust/test/test_debugging.py +0 -39
- locust/test/test_dispatch.py +0 -4170
- locust/test/test_env.py +0 -283
- locust/test/test_fasthttp.py +0 -785
- locust/test/test_http.py +0 -325
- locust/test/test_interruptable_task.py +0 -48
- locust/test/test_load_locustfile.py +0 -228
- locust/test/test_locust_class.py +0 -831
- locust/test/test_log.py +0 -237
- locust/test/test_main.py +0 -2264
- locust/test/test_old_wait_api.py +0 -0
- locust/test/test_parser.py +0 -450
- locust/test/test_runners.py +0 -4342
- locust/test/test_sequential_taskset.py +0 -137
- locust/test/test_stats.py +0 -866
- locust/test/test_tags.py +0 -440
- locust/test/test_taskratio.py +0 -94
- locust/test/test_users.py +0 -69
- locust/test/test_util.py +0 -33
- locust/test/test_wait_time.py +0 -79
- locust/test/test_web.py +0 -1257
- locust/test/test_zmqrpc.py +0 -58
- locust/test/testcases.py +0 -248
- locust/test/util.py +0 -88
- locust-2.29.1.dev34.dist-info/RECORD +0 -79
- locust-2.29.1.dev34.dist-info/WHEEL +0 -5
- locust-2.29.1.dev34.dist-info/entry_points.txt +0 -2
- locust-2.29.1.dev34.dist-info/top_level.txt +0 -1
- {locust-2.29.1.dev34.dist-info → locust-2.29.1.dev39.dist-info}/LICENSE +0 -0
@@ -240,11 +240,11 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
240
240
|
|
241
241
|
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ke(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=Qd([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new u_;m.marker=y.makeTooltipMarker("item",Ru(m.color),h);var x=lN(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?pN(_?q({valueFormatter:_},b):b,y,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ke(n),o=a.tooltipConfig,s=o.option||{};if(oe(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Qd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new u_;this._showOrMove(d,function(){var g=Te(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(oe(d)){var g=r.ecModel.get("useUTC"),m=Y(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Bx(m.axisValue,h,g)),h=aj(h,i,!0)}else if(Se(d)){var x=ce(function(S,_){S===this._ticket&&(f.setContent(_,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Se(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),Y(n))i=ne(n[0],u),a=ne(n[1],c);else if(_e(n)){var v=n;v.width=f[0],v.height=f[1];var g=pr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=_Oe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=SOe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=w$(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=w$(h)?f[1]/2:h==="bottom"?f[1]:0),I7(r)){var m=bOe(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&R(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&R(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],S=a[y];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){rt.node||!n.getDom()||(Kp(this,"_updatePosition"),this._tooltipContent.dispose(),OA("itemTooltip",n))},t.type="tooltip",t}(Ut);function Qd(e,t,r){var n=t.ecModel,i;r?(i=new wt(r,n,n),i=new wt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof wt&&(o=o.get("tooltip",!0)),oe(o)&&(o={formatter:o}),o&&(i=new wt(o,i,n)))}return i}function _$(e,t){return e.dispatchAction||ce(t.dispatchAction,t)}function SOe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function bOe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function _Oe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function w$(e){return e==="center"||e==="middle"}function wOe(e,t,r){var n=Pk(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Pv(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ke(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const COe=xOe;function TOe(e){Fe(Yv),e.registerComponentModel(iOe),e.registerComponentView(COe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var AOe=["rect","polygon","keep","clear"];function MOe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];R(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),kOe(s),t&&!s.length&&s.push.apply(s,AOe)}}function kOe(e){var t={};R(e,function(r){t[r]=1}),e.length=0,R(t,function(r,n){e.push(n)})}var C$=R;function T$(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function VA(e,t,r){var n={};return C$(t,function(a){var o=n[a]=i();C$(e[a],function(s,l){if(Or.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Or(u),l==="opacity"&&(u=Te(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Or(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function L7(e,t,r){var n;R(r,function(i){t.hasOwnProperty(i)&&T$(t[i])&&(n=!0)}),n&&R(r,function(i){t.hasOwnProperty(i)&&T$(t[i])?e[i]=Te(t[i]):delete e[i]})}function IOe(e,t,r,n,i,a){var o={};R(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return sI(r,s,f)}function u(f,d){Zj(r,s,f,d)}a==null?r.each(c):r.each([a],c);function c(f,d){s=a==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],m=0,y=g.length;m<y;m++){var x=g[m];v[x]&&v[x].applyVisual(f,l,u)}}}function POe(e,t,r,n){var i={};return R(e,function(a){var o=Or.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(_){return sI(s,f,_)}function c(_,b){Zj(s,f,_,b)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var p=n!=null?d.get(l,f):f,v=r(p),g=t[v],m=i[v],y=0,x=m.length;y<x;y++){var S=m[y];g[S]&&g[S].applyVisual(p,u,c)}}}}}function DOe(e){var t=e.brushType,r={point:function(n){return A$[t].point(n,r,e)},rect:function(n){return A$[t].rect(n,r,e)}};return r}var A$={lineX:M$(0),lineY:M$(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Hl(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=n[0];if(Hl(n,i,a)||Hl(n,i+o,a)||Hl(n,i,a+s)||Hl(n,i+o,a+s)||Ne.create(e).contain(l[0],l[1])||mh(i,a,i+o,a,n)||mh(i,a,i,a+s,n)||mh(i+o,a,i+o,a+s,n)||mh(i,a+s,i+o,a+s,n))return!0}}};function M$(e){var t=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[e];return Jd(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Jd(s[0],o)||Jd(s[1],o)||Jd(o[0],s)||Jd(o[1],s)}}}}function Jd(e,t){return t[0]<=e&&e<=t[1]}var k$=["inBrush","outOfBrush"],Tw="__ecBrushSelect",GA="__ecInBrushSelectEvent";function E7(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new vP(t.option,e);r.setInputRanges(t.areas,e)})}function ROe(e,t,r){var n=[],i,a;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),E7(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Te(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],p=!1;s||(i=u.throttleType,a=u.throttleDelay);var v=Z(o.areas,function(_){var b=NOe[_.brushType],w=be({boundingRect:b?b(_):void 0},_);return w.selectors=DOe(w),w}),g=VA(o.option,k$,function(_){_.mappingMethod="fixed"});Y(c)&&R(c,function(_){f[_]=1});function m(_){return c==="all"||!!f[_]}function y(_){return!!_.length}e.eachSeries(function(_,b){var w=h[b]=[];_.subType==="parallel"?x(_,b):S(_,b,w)});function x(_,b){var w=_.coordinateSystem;p=p||w.hasAxisBrushed(),m(b)&&w.eachActiveState(_.getData(),function(C,A){C==="active"&&(d[A]=1)})}function S(_,b,w){if(!(!_.brushSelector||OOe(o,b))&&(R(v,function(A){o.brushTargetManager.controlSeries(A,_,e)&&w.push(A),p=p||y(w)}),m(b)&&y(w))){var C=_.getData();C.each(function(A){I$(_,w,C,A)&&(d[A]=1)})}}e.eachSeries(function(_,b){var w={seriesId:_.id,seriesIndex:b,seriesName:_.name,dataIndex:[]};l.selected.push(w);var C=h[b],A=_.getData(),T=m(b)?function(M){return d[M]?(w.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return I$(_,C,A,M)?(w.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(b)?p:y(C))&&IOe(k$,g,A,T)})}),LOe(t,i,a,n,r)}function LOe(e,t,r,n,i){if(i){var a=e.getZr();if(!a[GA]){a[Tw]||(a[Tw]=EOe);var o=ld(a,Tw,r,t);o(e,n)}}}function EOe(e,t){if(!e.isDisposed()){var r=e.getZr();r[GA]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[GA]=!1}}function I$(e,t,r,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(n,r,o.selectors,o))return!0}}function OOe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Y(r)?ze(r,t)<0:t!==r)}var NOe={rect:function(e){return P$(e.range)},polygon:function(e){for(var t,r=e.range,n=0,i=r.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&P$(t)}};function P$(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var zOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new XI(n.getZr())).on("brush",ce(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){E7(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Te(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Te(i),$from:n})},t.type="brush",t}(Ut);const BOe=zOe;var $Oe="#ddd",FOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&L7(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:$Oe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return D$(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=D$(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(tt);function D$(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new wt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const VOe=FOe;var GOe=["rect","polygon","lineX","lineY","keep","clear"],HOe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,R(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return R(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:GOe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(hi);const WOe=HOe;function jOe(e){e.registerComponentView(BOe),e.registerComponentModel(VOe),e.registerPreprocessor(MOe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ROe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rr),Rc("brush",WOe)}var UOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(tt),qOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ee(r.get("textBaseline"),r.get("textVerticalAlign")),c=new nt({style:_t(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new nt({style:_t(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){T0(p,"_"+r.get("target"))}),v&&h.on("click",function(){T0(v,"_"+r.get("subtarget"))}),ke(c).eventData=ke(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=pr(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=a.getBoundingRect();var _=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var w=new Je({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Ut);function YOe(e){e.registerComponentModel(UOe),e.registerComponentView(qOe)}var XOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],R(n,function(u,c){var f=hr(Kf(u),""),d;_e(u)?(d=Te(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new un([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(tt);const R$=XOe;var O7=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Js(R$.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(R$);ur(O7,rI.prototype);const ZOe=O7;var KOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Ut);const QOe=KOe;var JOe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ra);const eNe=JOe;var Aw=Math.PI,L$=et(),tNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Sr("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=nNe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":oe(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Aw/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=r.get(["label","rotate"])||0;m=m*Aw/180;var y,x,S,_=d.get("position",!0),b=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),A=0,T=f;_==="left"||_==="bottom"?(b&&(y=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(S=[T-p,0],T-=g)):(b&&(y=[T-p,0],T-=g),w&&(x=[0,0],A+=g),C&&(S=[T-p,0],T-=g));var M=[A,T];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Ci(),l=o.x,u=o.y+o.height;Va(s,s,[-l,-u]),Wu(s,s,-Aw/2),Va(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),d=y(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||oe(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,m(i),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function y(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,_,b,w,C){S[w]+=b[w][C]-_[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=rNe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new eNe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Me;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Tr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:q({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Tr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:be({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ce(o._changeTimeline,o,u.value)},g=E$(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),pu(g);var m=ke(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],R(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new nt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ce(o._changeTimeline,o,f),silent:!1,style:_t(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=_t(p),m.ensureState("progress").style=_t(v),n.add(m),pu(m),L$(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ce(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ce(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ce(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Ji(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=iNe(a,p+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),pu(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ce(u._handlePointerDrag,u),f.ondragend=ce(u._handlePointerDragend,u),O$(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){O$(f,u._progressLine,s,i,a)}};this._currentPointer=E$(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=yi(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return Yi(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",L$(i[a]).dataIndex<=r)},t.type="timeline.slider",t}(QOe);function rNe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new vI({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new B9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Vs}}function nNe(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function iNe(e,t,r,n){var i=n.style,a=Ev(e.get(["controlStyle",t]),n||{},new Ne(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function E$(e,t,r,n,i,a){var o=t.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=e.get("symbol");i=lr(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=Oe({rectHover:!0,z2:100},n,!0);var u=ud(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Uu(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function O$(e,t,r,n,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const aNe=tNe;function oNe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var i=r.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),be({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function sNe(e){var t=e&&e.timeline;Y(t)||(t=t?[t]:[]),R(t,function(r){r&&lNe(r)})}function lNe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),N$(e),Ul(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Ul(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Ul(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}R(e.data||[],function(i){_e(i)&&!Y(i)&&(!Ul(i,"value")&&Ul(i,"name")&&(i.value=i.name),N$(i))})}function N$(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};R(n,function(o,s){!a[s]&&!Ul(i,s)&&(i[s]=o)}),r.label&&!Ul(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Ul(e,t){return e.hasOwnProperty(t)}function uNe(e){e.registerComponentModel(ZOe),e.registerComponentView(aNe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),oNe(e),e.registerPreprocessor(sNe)}function yP(e,t){if(!e)return!1;for(var r=Y(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function Cm(e){ku(e,"label",["show"])}var Tm=et(),N7=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(rt.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Tm(s)[o];if(!l||!l.data){Tm(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&Cm(l),R(l.data,function(c){c instanceof Array?(Cm(c[0]),Cm(c[1])):Cm(c)}),u=this.createMarkerModelFromSeries(l,this,n),q(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Tm(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Sr("section",{header:this.name,blocks:[Sr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return Tm(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(tt);ur(N7,rI.prototype);const Ws=N7;var cNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Ws);const fNe=cNe;function HA(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function dNe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Am(e,t,r,n,i,a){var o=[],s=Fs(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=xP(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(r,c),o[a]=t.get(l,c);var f=t.get(n,c),d=Ta(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var Mw={min:Ie(Am,"min"),max:Ie(Am,"max"),average:Ie(Am,"average"),median:Ie(Am,"median")};function cv(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!dNe(t)&&!Y(t.coord)&&Y(i)){var a=z7(t,r,n,e);if(t=Te(t),t.type&&Mw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=Mw[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)Mw[u[c]]&&(u[c]=xP(r,r.mapDimension(i[c]),u[c]));return t}}function z7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(hNe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function hNe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function fv(e,t){return e&&e.containData&&t.coord&&!HA(t)?e.containData(t.coord):!0}function pNe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!HA(t)&&!HA(r)?e.containZone(t.coord,r.coord):!0}function B7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ms(o,t[a])}:function(r,n,i,a){return Ms(r.value,t[a])}}function xP(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var kw=et(),vNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ge()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){kw(s).keep=!1}),n.eachSeries(function(s){var l=Ws.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!kw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){kw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;R(r,function(a){var o=Ws.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?dW(l):Nk(l))})}})},t.type="marker",t}(Ut);const SP=vNe;function z$(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=ne(a.get("x"),r.getWidth()),l=ne(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var gNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ws.getMarkerModelFromSeries(a,"markPoint");o&&(z$(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Gv),f=mNe(o,r,n);n.setData(f),z$(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Se(p)||Se(v)||Se(g)||Se(m)){var x=n.getRawValue(d),S=n.getDataParams(d);Se(p)&&(p=p(x,S)),Se(v)&&(v=v(x,S)),Se(g)&&(g=g(x,S)),Se(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=zv(l,"color");_.fill||(_.fill=b),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:_})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){ke(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(SP);function mNe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return q(q({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new un(n,r),a=Z(r.get("data"),Ie(cv,t));e&&(a=dt(a,Ie(fv,e)));var o=B7(!!e,n);return i.initData(a,null,o),i}const yNe=gNe;function xNe(e){e.registerComponentModel(fNe),e.registerComponentView(yNe),e.registerPreprocessor(function(t){yP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var SNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ws);const bNe=SNe;var Mm=et(),_Ne=function(e,t,r,n){var i=e.getData(),a;if(Y(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Cr(n.yAxis,n.xAxis);else{var u=z7(n,i,t,e);s=u.valueAxis;var c=C9(i,u.valueDataDim);l=xP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Te(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&it(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[cv(e,a[0]),cv(e,a[1]),q({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function Q0(e){return!isNaN(e)&&!isFinite(e)}function B$(e,t,r,n){var i=1-e,a=n.dimensions[e];return Q0(t[i])&&Q0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function wNe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(B$(1,r,n,e)||B$(0,r,n,e)))return!0}return fv(e,t[0])&&fv(e,t[1])}function Iw(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get("x"),i.getWidth()),u=ne(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(Yu(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;Q0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Q0(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var CNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ws.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Mm(o).from,u=Mm(o).to;l.each(function(c){Iw(l,c,!0,a,i),Iw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new HI);this.group.add(c.group);var f=TNe(o,r,n),d=f.from,h=f.to,p=f.line;Mm(n).from=d,Mm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");Y(v)||(v=[v,v]),Y(g)||(g=[g,g]),Y(m)||(m=[m,m]),Y(y)||(y=[y,y]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var _=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),_.stroke==null&&(_.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:_})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){ke(S).dataModel=n,S.traverse(function(_){ke(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);Iw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=zv(l,"color")),S.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ee(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Ee(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Ee(w.get("symbolSize"),g[b?0:1]),symbol:Ee(w.get("symbol",!0),v[b?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(SP);function TNe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return q(q({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new un(n,r),a=new un(n,r),o=new un([],r),s=Z(r.get("data"),Ie(_Ne,t,e,r));e&&(s=dt(s,Ie(wNe,e)));var l=B7(!!e,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const ANe=CNe;function MNe(e){e.registerComponentModel(bNe),e.registerComponentView(ANe),e.registerPreprocessor(function(t){yP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var kNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ws);const INe=kNe;var km=et(),PNe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=cv(e,i),s=cv(e,a),l=o.coord,u=s.coord;l[0]=Cr(l[0],-1/0),l[1]=Cr(l[1],-1/0),u[0]=Cr(u[0],1/0),u[1]=Cr(u[1],1/0);var c=yk([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function J0(e){return!isNaN(e)&&!isFinite(e)}function $$(e,t,r,n){var i=1-e;return J0(t[i])&&J0(r[i])}function DNe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Yu(e,"cartesian2d")?r&&n&&($$(1,r,n)||$$(0,r,n))?!0:pNe(e,i,a):fv(e,i)||fv(e,a)}function F$(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get(r[0]),i.getWidth()),u=ne(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(Yu(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);J0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):J0(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var V$=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],RNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ws.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(V$,function(f){return F$(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Me});this.group.add(c.group),this.markKeep(c);var f=LNe(o,r,n);n.setData(f),f.each(function(d){var h=Z(V$,function(C){return F$(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];yi(y),yi(x);var S=!(g[0]>y[1]||g[1]<y[0]||m[0]>x[1]||m[1]<x[0]),_=!S;f.setItemLayout(d,{points:h,allClipped:_});var b=f.getItemModel(d).getModel("itemStyle").getItemStyle(),w=zv(l,"color");b.fill||(b.fill=w,oe(b.fill)&&(b.fill=d0(b.fill,.4))),b.stroke||(b.stroke=w),f.setItemVisual(d,"style",b)}),f.diff(km(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var p=new Rn({shape:{points:h.points}});f.setItemGraphicEl(d,p),c.group.add(p)}}).update(function(d,h){var p=km(c).data.getItemGraphicEl(h),v=f.getItemLayout(d);v.allClipped?p&&c.group.remove(p):(p?at(p,{shape:{points:v.points}},n,d):p=new Rn({shape:{points:v.points}}),f.setItemGraphicEl(d,p),c.group.add(p))}).remove(function(d){var h=km(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var p=f.getItemModel(h),v=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),Br(d,xr(p),{labelFetcher:n,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:oe(v.fill)?d0(v.fill,1):"#000"}),zr(d,p),jt(d,null,null,p.get(["emphasis","disabled"])),ke(d).dataModel=n}),km(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(SP);function LNe(e,t,r){var n,i,a=["x0","y0","x1","y1"];if(e){var o=Z(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return q(q({},f),{name:u,ordinalMeta:null})});i=Z(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new un(i,r)}else i=[{name:"value",type:"float"}],n=new un(i,r);var s=Z(r.get("data"),Ie(PNe,t,e,r));e&&(s=dt(s,Ie(DNe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return Ms(h,i[d])}:function(u,c,f,d){return Ms(u.value,i[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}const ENe=RNe;function ONe(e){e.registerComponentModel(INe),e.registerComponentView(ENe),e.registerPreprocessor(function(t){yP(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var NNe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},zNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Y(n)&&R(n,function(a,o){oe(a)&&(a={type:a}),n[o]=Oe(a,NNe(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&Ik(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ge(),s=Z(a,function(l){return(oe(l)||it(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new wt(l,this,this.ecModel))},this);this._data=dt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;R(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;R(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;R(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ze(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(tt);const WA=zNe;var _c=Ie,jA=R,Im=Me,BNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Im),this.group.add(this._selectorGroup=new Im),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=pr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=pr(be({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=A7(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ge(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),jA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===`
|
242
242
|
`)){var g=new Im;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),_=y.getVisual("style"),b=this._createItem(m,v,p,h,n,r,x,_,S,f,a);b.on("click",_c(G$,v,null,a,d)).on("mouseover",_c(UA,m.name,null,a,d)).on("mouseout",_c(qA,m.name,null,a,d)),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var A=C.indexOfName(v),T=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),k=Wn(T.fill);k&&k[3]===0&&(k[3]=.2,T=q(q({},T),{fill:fo(k,"rgba")}));var I=this._createItem(w,v,p,h,n,r,{},T,M,f,a);I.on("click",_c(G$,null,v,a,d)).on("mouseover",_c(UA,null,v,a,d)).on("mouseout",_c(qA,null,v,a,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();jA(r,function(u){var c=u.type,f=new nt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Br(f,{normal:d,emphasis:h},{defaultText:u.title}),pu(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=$Ne(c,a,l,u,h,g,d),_=new Im,b=a.getModel("textStyle");if(Se(r.getLegendIcon)&&(!x||x==="inherit"))_.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;_.add(FNe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,A=s,T=o.get("formatter"),M=n;oe(T)&&T?M=T.replace("{name}",n??""):Se(T)&&(M=T(n));var k=g?b.getTextColor():a.get("inactiveColor");_.add(new nt({style:_t(b,{text:M,x:C,y:v/2,fill:k,align:A,verticalAlign:"middle"},{inheritColor:k})}));var I=new Je({shape:_.getBoundingRect(),invisible:!0}),D=a.getModel("tooltip");return D.get("show")&&ed({el:I,componentModel:o,itemName:n,itemTooltipOption:D.option}),_.add(I),_.eachChild(function(L){L.silent=!0}),I.silent=!f,this.getContentGroup().add(_),pu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();gu(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){gu("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[m]=Math.max(c[m],d[m]),x[y]=Math.min(0,d[y]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ut);function $Ne(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),jA(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Df(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function FNe(e){var t=e.icon||"roundRect",r=lr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function G$(e,t,r,n){qA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),UA(e,t,r,n)}function $7(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function UA(e,t,r,n){$7(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function qA(e,t,r,n){$7(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const F7=BNe;function VNe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function eh(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();R(s,function(l){var u=l.get("name");if(!(u===`
|
243
|
-
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function GNe(e){e.registerAction("legendToggleSelect","legendselectchanged",Ie(eh,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ie(eh,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ie(eh,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ie(eh,"select")),e.registerAction("legendUnSelect","legendunselected",Ie(eh,"unSelect"))}function V7(e){e.registerComponentModel(WA),e.registerComponentView(F7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,VNe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),GNe(e)}var HNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=id(r);e.prototype.init.call(this,r,n,i),H$(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),H$(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Js(WA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(WA);function H$(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,$s(t,r,{type:"box",ignoreSize:!!i})}const WNe=HNe;var W$=Me,Pw=["width","height"],Dw=["x","y"],jNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new W$),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new W$)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=Y(f)?f:[f,f];p("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new nt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var m=v+"DataIndex",y=Ev(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ce(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=v,c.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=Pw[u],f=Dw[u],d=Pw[1-u],h=Dw[1-u];o&&gu("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],m=Te(i);o&&(m[c]=i[c]-v[c]-p);var y=this._layoutContentAndController(r,a,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+p;else{var x=v[c]+p;g[u]-=x,y[f]-=x}y[c]+=v[c]+p,g[1-u]+=y[h]+y[d]/2-v[d]/2,y[d]=Math.max(y[d],v[d]),y[h]=Math.min(y[h],v[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;gu(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),gu("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Ee(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Je({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&at(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Pw[o],l=Dw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i<y.i&&(y=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p;function S(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function _(b,w){return b.e>=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(F7);const UNe=jNe;function qNe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function YNe(e){Fe(V7),e.registerComponentModel(WNe),e.registerComponentView(UNe),qNe(e)}function XNe(e){Fe(V7),Fe(YNe)}var ZNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Js(uv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(uv);const KNe=ZNe;var bP=et();function QNe(e,t,r){bP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function JNe(e,t){for(var r=bP(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||G7(r,o))}}}function G7(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function eze(e,t){var r={model:t,containsPoint:Ie(rze,t),dispatchAction:Ie(tze,e),dataZoomInfoMap:null,controller:null},n=r.controller=new Uv(e.getZr());return R(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function tze(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function rze(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function nze(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function ize(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=bP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ge());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=w7(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,eze(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){G7(i,a);return}var c=nze(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ld(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var aze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),QNe(i,r,{pan:ce(Rw.pan,this),zoom:ce(Rw.zoom,this),scrollMove:ce(Rw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){JNe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(dP),Rw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Lw[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:j$(function(e,t,r,n,i,a){var o=Lw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:j$(function(e,t,r,n,i,a){var o=Lw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function j$(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Zu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Lw={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const oze=aze;function H7(e){hP(e),e.registerComponentModel(KNe),e.registerComponentView(oze),ize(e)}var sze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Js(uv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(uv);const lze=sze;var th=Je,U$=7,uze=1,Ew=30,cze=7,rh="horizontal",q$="vertical",fze=5,dze=["line","bar","candlestick","scatter"],hze={easing:"cubicOut",duration:100,delay:0},pze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ce(this._onBrush,this),this._onBrushEnd=ce(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ld(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Kp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Me;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?cze:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===rh?{right:s.width-o.x-o.width,top:s.height-Ew-U$-a,width:o.width,height:Ew}:{right:U$,top:o.y,width:Ew,height:o.height},u=id(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=pr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===q$&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===rh&&!o?{scaleY:l?1:-1,scaleX:1}:i===rh&&o?{scaleY:l?1:-1,scaleX:-1}:i===q$&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new th({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new th({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ce(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(A,T){if(x>0&&T%x){y+=m;return}var M=A==null||isNaN(A)||A==="",k=M?0:ft(A,f,h,!0);M&&!S&&T?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(A){var T=_.getModel(A?"selectedDataBackground":"dataBackground"),M=new Me,k=new Rn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new En({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(n!==!0&&ze(dze,u.get("type"))<0)){var c=a.getComponent(ps(o),s).axis,f=vze(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new th({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new th({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:uze,fill:"rgba(0,0,0,0)"}})),R([0,1],function(x){var S=l.get("handleIcon");!k0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=lr(S,-1,0,2,2,null,!0);_.attr({cursor:Y$(this._orient),draggable:!0,drift:ce(this._onDragMove,this,x),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ne(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),pu(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var A=l.getModel("textStyle");r.add(a[x]=new nt({silent:!0,invisible:!0,style:_t(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var p=ne(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Je({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=lr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Je({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:Y$(this._orient),drift:ce(this._onDragMove,this,"all"),ondragstart:ce(this._showDataInfo,this,!0),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ft(r[0],[0,100],n,!0),ft(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Zu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ft(s.minSpan,l,o,!0):null,s.maxSpan!=null?ft(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=yi([ft(a[0],o,l,!0),ft(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=yi(i.slice()),o=this._size;R([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Je,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=yi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=vu(i.handles[p].parent,this.group),g=Nx(p===0?"right":"left",v),m=this._handleWidth/2+fze,y=Yi([d[p]+(p===0?-m:m),this._size[1]/2],v);a[p].setStyle({x:y[0],y:y[1],verticalAlign:o===rh?"middle":g,align:o===rh?g:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Se(a)?a(r,s):oe(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,bo(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Yi([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=yi([ft(i.x,o,s,!0),ft(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(bo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new th({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?hze:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=w7(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(dP);function vze(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Y$(e){return e==="vertical"?"ns-resize":"ew-resize"}const gze=pze;function W7(e){e.registerComponentModel(lze),e.registerComponentView(gze),hP(e)}function mze(e){Fe(H7),Fe(W7)}var yze={get:function(e,t,r){var n=Te((xze[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},xze={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const j7=yze;var X$=Or.mapVisual,Sze=Or.eachVisual,bze=Y,Z$=R,_ze=yi,wze=ft,Cze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&L7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ce(r,this),this.controllerVisuals=VA(this.option.controller,n,r),this.targetVisuals=VA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=pt(r),n},t.prototype.eachTargetSeries=function(r,n){R(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Se(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=_ze([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){bze(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},Z$(p,function(g,m){if(Or.isValidType(m)){var y=j7.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";Z$(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Te(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Te(h)||(s?y[0]:[y[0],y[0]])),x.symbol=X$(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;Sze(S,function(b){b>_&&(_=b)}),x.symbolSize=X$(S,function(b){return wze(b,[0,_],[0,y[0]],!0)})}},this)}},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(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(tt);const e1=Cze;var K$=[20,140],Tze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=K$[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=K$[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=yi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=Q$(this,"outOfRange",this.getExtent()),i=Q$(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Js(e1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(e1);function Q$(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}const Aze=Tze;var Mze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=nd(n.get("padding")||0),a=r.getBoundingRect();r.add(new Je({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var f=o.controllerVisuals[a||o.getValueState(r)],d=Or.prepareVisualTypes(f);return R(d,function(h){var p=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=f.__alphaForOpacity),Or.dependsOn(h,n)&&p&&p.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;Hx(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(Ut);const U7=Mze;var J$=[["left","right","width"],["top","bottom","height"]];function q7(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=J$[o],l=[0,null,10],u={},c=0;c<3;c++)u[J$[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=pr(u,a,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function vy(e,t){return R(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var ca=ft,kze=R,eF=Math.min,Ow=Math.max,Ize=12,Pze=6,Dze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.doRender=function(r,n,i,a){this._api=i,(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new nt({style:_t(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=q7(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new Me;u.add(c),c.add(i.outOfRange=tF()),c.add(i.inRange=tF(null,s?nF(this._orient):null,ce(this._dragHandle,this,"all",!1),ce(this._dragHandle,this,"all",!0))),c.setClipPath(new Je({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=Ow(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,d,o),this._createHandle(n,u,1,a,d,o)),this._createIndicator(n,u,a,d,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=ce(this._dragHandle,this,i,!1),u=ce(this._dragHandle,this,i,!0),c=Ji(r.get("handleSize"),a[0]),f=lr(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=nF(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){bo(m.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),tu(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,p=new nt({cursor:d,draggable:!0,drift:l,onmousemove:function(m){bo(m.event)},ondragend:u,style:_t(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[i]=f,g.handleLabelPoints[i]=v,g.handleLabels[i]=p},t.prototype._createIndicator=function(r,n,i,a,o){var s=Ji(r.get("indicatorSize"),i[0]),l=lr(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof $r){var c=l.style;l.useStyle(q({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new nt({silent:!0,invisible:!0,style:_t(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?a/2:Pze)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():rF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[ca(n[0],i,a,!0),ca(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Zu(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[ca(a[0],o,s,!0),ca(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Rv(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Me(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();kze([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=ca(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Yi(i.handleLabelPoints[c],vu(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=ca(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Yi(c.indicatorLabelPoint,vu(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;M<T.length;M++)this._api.enterBlur(T[M])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=eF(Ow(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=eF(Ow(o[0],r),o[1]);var l=Rze(i,s,o),u=[r-l,r+l],c=ca(r,o,s,!0),f=[ca(u[0],o,s,!0),ca(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||rF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=xye(d,h);this._dispatchHighDown("downplay",vy(p[0],i)),this._dispatchHighDown("highlight",vy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(nu(r.target,function(l){var u=ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this._api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",vy(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=vu(n,a?null:this.group);return Y(r)?Yi(r,o,i):Nx(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(U7);function tF(e,t,r,n){return new Rn({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){bo(i.event)},ondragend:n})}function Rze(e,t,r){var n=Ize/2,i=e.get("hoverLinkDataSize");return i&&(n=ca(i,t,r,!0)/2),n}function rF(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function nF(e){return e==="vertical"?"ns-resize":"ew-resize"}const Lze=Dze;var Eze={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Oze=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},Nze=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(POe(n.stateList,n.targetVisuals,ce(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(ce(zze,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function zze(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:zv(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(h){return o[h]}function d(h,p){o[h]=p}}var iF=R;function Bze(e){var t=e&&e.visualMap;Y(t)||(t=t?[t]:[]),iF(t,function(r){if(r){wc(r,"splitList")&&!wc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Y(n)&&iF(n,function(i){_e(i)&&(wc(i,"start")&&!wc(i,"min")&&(i.min=i.start),wc(i,"end")&&!wc(i,"max")&&(i.max=i.end))})}})}function wc(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var aF=!1;function Y7(e){aF||(aF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(Eze,Oze),R(Nze,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Bze))}function X7(e){e.registerComponentModel(Aze),e.registerComponentView(Lze),Y7(e)}var $ze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Fze[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Te(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=Te(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();R(r.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&R(this.stateList,function(c){(r[c]||(r[c]={}))[l]=j7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,R(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Te(r)},t.prototype.getValueState=function(r){var n=Or.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Or.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Js(e1.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}(e1),Fze={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),QE(e),R(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;R(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),oF(t,e)},pieces:function(e){var t=this.option;R(t.pieces,function(r,n){_e(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=r[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Or.retrieveVisuals(r),e.push(i)},this),oF(t,e),QE(e),R(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function oF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const Vze=$ze;var Gze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Cr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),R(c.viewPieceList,function(h){var p=h.piece,v=new Me;v.onclick=ce(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new nt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),gu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:vy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return q7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Me,l=this.visualMapModel.textStyleModel;s.add(new nt({style:_t(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(lr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Te(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(U7);const Hze=Gze;function Z7(e){e.registerComponentModel(Vze),e.registerComponentView(Hze),Y7(e)}function Wze(e){Fe(X7),Fe(Z7)}var jze={label:{enabled:!0},decal:{show:!1}},sF=et(),Uze={};function qze(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Te(jze);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ge();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),sF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Se(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=YT(d.ecModel,d.name,Uze,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=sF(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=YT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?q(q({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=be(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var x=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,A){if(A<v){var T=void 0,M=C.get("name"),k=M?"withName":"withoutName";T=d>1?c.get(["series","multiple",k]):c.get(["series","single",k]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var D=c.get(["data","partialData"]);T+=o(D,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var L=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),V=[],N=0;N<I.count();N++)if(N<h){var F=I.getName(N),E=I.getValues(N),G=c.get(["data",F?"withName":"withoutName"]);V.push(o(G,{name:F,value:E.join(L)}))}T+=V.join(L)+z,x.push(T)}});var _=c.getModel(["series","multiple","separator"]),b=_.get("middle"),w=_.get("end");g+=x.join(b)+w,f.setAttribute("aria-label",g)}}}function o(u,c){if(!oe(u))return u;var f=u;return R(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function Yze(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},R(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function Xze(e){e.registerPreprocessor(Yze),e.registerVisual(e.PRIORITY.VISUAL.ARIA,qze)}var lF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Zze=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):Pge(t)?t:null;if(r==null){var n="";lt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):it(r)?this._condVal.test(t+""):!1},e}(),Kze=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Qze=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),Jze=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),e5e=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),t5e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function _P(e,t){if(e===!0||e===!1){var r=new Kze;return r.value=e,r}var n="";return K7(e)||lt(n),e.and?uF("and",e,t):e.or?uF("or",e,t):e.not?r5e(e,t):n5e(e,t)}function uF(e,t,r){var n=t[e],i="";Y(n)||lt(i),n.length||lt(i);var a=e==="and"?new Qze:new Jze;return a.children=Z(n,function(o){return _P(o,r)}),a.children.length||lt(i),a}function r5e(e,t){var r=e.not,n="";K7(r)||lt(n);var i=new e5e;return i.child=_P(r,t),i.child||lt(n),i}function n5e(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=Ye(e),o=e.parser,s=o?Mj(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=fe(lF,u)?lF[u]:u,f=e[u],d=s?s(f):f,h=Oxe(c,d)||c==="reg"&&new Zze(d);h||lt(r),i.push(h)}}i.length||lt(r);var p=new t5e;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function K7(e){return _e(e)&&!Zr(e)}var i5e=function(){function e(t,r){this._cond=_P(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function a5e(e,t){return new i5e(e,t)}var o5e={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=a5e(e.config,{valueGetterAttrMap:ge({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;fe(s,"dimension")||lt(l);var c=t.getDimensionInfo(u);return c||lt(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},s5e={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=pt(r);i.length||lt(n);var a=[];R(i,function(c){var f=c.dimension,d=c.order,h=c.parser,p=c.incomparable;if(f==null&<(n),d!=="asc"&&d!=="desc"&<(n),p&&p!=="min"&&p!=="max"){var v="";lt(v)}if(d!=="asc"&&d!=="desc"){var g="";lt(g)}var m=t.getDimensionInfo(f);m||lt(n);var y=h?Mj(h):null;h&&!y&<(n),a.push({dimIdx:m.index,parser:y,comparator:new Ij(d,p)})});var o=t.sourceFormat;o!==Kr&&o!==Di&<(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<a.length;d++){var h=a[d],p=t.retrieveValueFromItem(c,h.dimIdx),v=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var g=h.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function l5e(e){e.registerTransform(o5e),e.registerTransform(s5e)}var u5e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new Lj(this),dN(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),dN(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Oa},t}(tt),c5e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Ut);function f5e(e){e.registerComponentModel(u5e),e.registerComponentView(c5e)}var la=Wa.CMD;function Zc(e,t){return Math.abs(e-t)<1e-5}function YA(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(I,D){i&&i.length>2&&n.push(i),i=[I,D]}function c(I,D,L,z){Zc(I,L)&&Zc(D,z)||i.push(I,D,L,z,L,z)}function f(I,D,L,z,V,N){var F=Math.abs(D-I),E=Math.tan(F/4)*4/3,G=D<I?-1:1,j=Math.cos(I),B=Math.sin(I),U=Math.cos(D),X=Math.sin(D),W=j*V+L,ee=B*N+z,te=U*V+L,ie=X*N+z,re=V*E*G,Q=N*E*G;i.push(W-re*B,ee+Q*j,te+re*X,ie-Q*U,te,ie)}for(var d,h,p,v,g=0;g<r;){var m=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,l=o,(m===la.L||m===la.C||m===la.Q)&&(i=[s,l])),m){case la.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case la.L:d=t[g++],h=t[g++],c(a,o,d,h),a=d,o=h;break;case la.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case la.Q:d=t[g++],h=t[g++],p=t[g++],v=t[g++],i.push(a+2/3*(d-a),o+2/3*(h-o),p+2/3*(d-p),v+2/3*(h-v),p,v),a=p,o=v;break;case la.A:var x=t[g++],S=t[g++],_=t[g++],b=t[g++],w=t[g++],C=t[g++]+w;g+=1;var A=!t[g++];d=Math.cos(w)*_+x,h=Math.sin(w)*b+S,y?(s=d,l=h,u(s,l)):c(a,o,d,h),a=Math.cos(C)*_+x,o=Math.sin(C)*b+S;for(var T=(A?-1:1)*Math.PI/2,M=w;A?M>C:M<C;M+=T){var k=A?Math.max(M+T,C):Math.min(M+T,C);f(M,k,x,S,_,b)}break;case la.R:s=a=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case la.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function XA(e,t,r,n,i,a,o,s,l,u){if(Zc(e,r)&&Zc(t,n)&&Zc(i,o)&&Zc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x<f&&S<f){l.push(o,s);return}var _=d*v+h*g,b=-d*m-h*y,w=x-_*_,C=S-b*b;if(w<f&&_>=0&&C<f&&b>=0){l.push(o,s);return}var A=[],T=[];zs(e,r,i,o,.5,A),zs(t,n,a,s,.5,T),XA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),XA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function d5e(e,t){var r=YA(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],h=a[u++],p=a[u++],v=a[u++];XA(s,l,c,f,d,h,p,v,o,t),s=p,l=v}n.push(o)}return n}function Q7(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function cF(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=Q7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],v=0;v<f[h];v++){var g={};c?(g.startAngle=a+d*h,g.endAngle=a+d*(h+1),g.r0=n+p*v,g.r=n+p*(v+1)):(g.startAngle=a+p*v,g.endAngle=a+p*(v+1),g.r0=n+d*h,g.r=n+d*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function h5e(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=Q7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],p=0;p<o[d];p++){var v={};v[u]=d*f,v[c]=p*h,v[s]=f,v[l]=h,v.x+=e.x,v.y+=e.y,r.push(v)}}function fF(e,t,r,n){return e*n-r*t}function p5e(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=fF(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-i,p=t-a,v=fF(h,p,c,f)/d;return v<0||v>1?null:new Le(v*l+e,v*u+t)}function v5e(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function Cc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function g5e(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=p5e(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:v5e(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(g,m){return g.projPt-m.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[d],v=[h],a=u.idx+1;a<=c.idx;a++)Cc(p,e[a].slice());Cc(p,h),Cc(p,d);for(var a=c.idx+1;a<=u.idx+n;a++)Cc(v,e[a%n].slice());return Cc(v,d),Cc(v,h),[{points:p},{points:v}]}function dF(e){var t=e.points,r=[],n=[];Px(t,r,n);var i=new Ne(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Le,c=new Le;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),g5e(t,u,c)}function t1(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);t1(e,a[0],i,n),t1(e,a[1],r-i,n)}return n}function m5e(e,t){for(var r=[],n=0;n<t;n++)r.push(Bk(e));return r}function y5e(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function x5e(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function S5e(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":h5e(n,t,r),i=Je;break;case"sector":cF(n,t,r),i=Dn;break;case"circle":cF({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Dn;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Z(d5e(e.getUpdatedPathProxy(),o),function(m){return x5e(m)}),l=s.length;if(l===0)t1(dF,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=Z(s,function(m){var y=[],x=[];Px(m,y,x);var S=(x[1]-y[1])*(x[0]-y[0]);return c+=S,{poly:m,area:S}});f.sort(function(m,y){return y.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(h.area/c*t);p<0||(t1(dF,{points:h.poly},p,r),d-=p)}}i=Rn;break}if(!i)return m5e(e,t);for(var v=[],u=0;u<r.length;u++){var g=new i;g.setShape(r[u]),y5e(e,g),v.push(g)}return v}function b5e(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var p=o[h-2],v=o[h-1],g=o[h++],m=o[h++],y=o[h++],x=o[h++],S=o[h++],_=o[h++];if(d<=0){f.push(g,m,y,x,S,_);continue}for(var b=Math.min(d,c-1)+1,w=1;w<=b;w++){var C=w/b;zs(p,g,y,S,C,i),zs(v,m,x,_,C,a),p=i[3],v=a[3],f.push(i[1],a[1],i[2],a[2],p,v),g=i[5],m=a[5],y=i[6],x=a[6]}d-=b-1}return o===e?[f,t]:[e,f]}function hF(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function _5e(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=b5e(l,u),c=r[0],f=r[1],n=c,i=f):(f=hF(i||l,l),c=l):(c=hF(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function pF(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function w5e(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,p=e[h]-r[0],v=e[h+1]-r[1],g=t[d]-n[0],m=t[d+1]-n[1],y=g-p,x=m-v;f+=y*y+x*x}f<a&&(a=f,o=u)}return o}function C5e(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function T5e(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=pF(s),c=pF(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],h=0,p=1/0,v=[],g=s.length;a&&(s=C5e(s));for(var m=w5e(s,l,u,c)*6,y=g-2,x=0;x<y;x+=2){var S=(m+x)%y+2;f[x+2]=s[S]-u[0],f[x+3]=s[S+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],r>0)for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x<s.length;x+=2){var T=f[x],M=f[x+1],k=l[x]-c[0],I=l[x+1]-c[1],D=k*C-I*w,L=k*w+I*C;v[x]=D,v[x+1]=L;var z=D-T,V=L-M;A+=z*z+V*V}if(A<p){p=A,h=b;for(var N=0;N<v.length;N++)d[N]=v[N]}}else for(var F=0;F<g;F+=2)d[F]=l[F]-c[0],d[F+1]=l[F+1]-c[1];i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return i}function r1(e){return e.__isCombineMorphing}var J7="__mOriginal_";function n1(e,t,r){var n=J7+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function ap(e,t){var r=J7+t;e[r]&&(e[t]=e[r],e[r]=null)}function vF(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function eq(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=_5e(YA(r),YA(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&vF(a,s),l&&vF(o,l),n1(t,"updateTransform",{replace:u}),t.transform=null;var c=T5e(a,o,10,Math.PI),f=[];n1(t,"buildPath",{replace:function(d){for(var h=t.__morphT,p=1-h,v=[],g=0;g<c.length;g++){var m=c[g],y=m.from,x=m.to,S=m.rotation*h,_=m.fromCp,b=m.toCp,w=Math.sin(S),C=Math.cos(S);Km(v,_,b,h);for(var A=0;A<y.length;A+=2){var T=y[A],M=y[A+1],k=x[A],I=x[A+1],D=T*p+k*h,L=M*p+I*h;f[A]=D*C-L*w+v[0],f[A+1]=D*w+L*C+v[1]}var z=f[0],V=f[1];d.moveTo(z,V);for(var A=2;A<y.length;){var k=f[A++],I=f[A++],N=f[A++],F=f[A++],E=f[A++],G=f[A++];z===k&&V===I&&N===E&&F===G?d.lineTo(E,G):d.bezierCurveTo(k,I,N,F,E,G),z=E,V=G}}}})}function wP(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;eq(e,t),t.__morphT=0;function a(){ap(t,"buildPath"),ap(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},be({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function A5e(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function i1(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:A5e(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function tq(e){return S5e(e.path,e.count)}function ZA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function M5e(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];r1(w)?i(w.childrenRef()):w instanceof je&&n.push(w)}}i(e);var a=n.length;if(!a)return ZA();var o=r.dividePath||tq,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),ZA();n=i1(n),s=i1(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new oo,d=0;d<a;d++){var h=n[d],p=s[d];p.parent=t,p.copyTransform(f),c||eq(h,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(_){for(var b=0;b<s.length;b++)s[b].addSelfToZr(_)}n1(t,"addSelfToZr",{after:function(_){v(_)}}),n1(t,"removeSelfFromZr",{after:function(_){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(_)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,ap(t,"addSelfToZr"),ap(t,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,x=function(){y--,y===0&&(g(),l&&l())},d=0;d<m;d++){var S=c?be({delay:(r.delay||0)+c(d,m,n[d],s[d]),done:x},r):r;wP(n[d],s[d],S)}else t.__morphT=0,t.animateTo({__morphT:1},be({during:function(_){for(var b=0;b<m;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(_)},done:function(){g();for(var _=0;_<e.length;_++)ap(e[_],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function k5e(e,t,r){var n=t.length,i=[],a=r.dividePath||tq;function o(h){for(var p=0;p<h.length;p++){var v=h[p];r1(v)?o(v.childrenRef()):v instanceof je&&i.push(v)}}if(r1(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(Bk(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),ZA()}i=i1(i),t=i1(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?be({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;wP(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function gF(e){return Y(e[0])}function mF(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var I5e={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=Bk(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function Nw(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Jf("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;gF(e)&&(u=e,c=t),gF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,A=y?w:b[0];if(r1(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?be({delay:s(x,S)},l):l;wP(C,A,T),a(C,A,C,A,T)}}else for(var M=be({dividePath:I5e[r],individualDelay:s&&function(V,N,F,E){return s(V+x,S)}},l),k=y?M5e(b,w,M):k5e(w,b,M),I=k.fromIndividuals,D=k.toIndividuals,L=I.length,z=0;z<L;z++){var T=s?be({delay:s(z,L)},l):l;a(I[z],D[z],y?b[z]:m.one,y?m.one:b[z],T)}}for(var d=u?u===e:e.length>t.length,h=u?mF(c,u):mF(d?t:e,[d?e:t]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var g=0,v=0;v<h.length;v++)f(h[v],d,g,p),g+=h[v].many.length}function Bl(e){if(!e)return[];if(Y(e)){for(var t=[],r=0;r<e.length;r++)t.push(Bl(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof je&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var rq=1e4,P5e=et();function D5e(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function yF(e){var t=[];return R(e,function(r){var n=r.data;if(!(n.count()>rq))for(var i=n.getIndices(),a=D5e(n),o=0;o<i.length;o++)t.push({dataGroupId:r.dataGroupId,data:n,dim:r.dim||a,divide:r.divide,dataIndex:o})}),t}function zw(e,t,r){e.traverse(function(n){n instanceof je&&Lt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function Bw(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Tc(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function R5e(e,t,r){var n=Jf("update",r,t);n&&e.traverse(function(i){if(i instanceof Ti){var a=p1e(i);a&&i.animateFrom({style:a},n)}})}function L5e(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function nq(e,t,r){var n=yF(e),i=yF(t);function a(m,y,x,S,_){(x||m)&&y.animateFrom({style:x&&x!==m?q(q({},x.style),m.style):m.style},_)}function o(m){for(var y=0;y<m.length;y++)if(m[y].dim)return m[y].dim}var s=o(n),l=o(i),u=!1;function c(m,y){return function(x){var S=x.data,_=x.dataIndex;if(y)return S.getId(_);var b=x.dataGroupId,w=m?s||l:l||s,C=w&&S.getDimensionInfo(w),A=C&&C.ordinalMeta;if(C){var T=S.get(C.name,_);return A&&A.categories[T]||T+""}var M=S.getRawDataItem(_);return M&&M.groupId?M.groupId+"":b||S.getId(_)}}var f=L5e(n,i),d={};if(!f)for(var h=0;h<i.length;h++){var p=i[h],v=p.data.getItemGraphicEl(p.dataIndex);v&&(d[v.id]=!0)}function g(m,y){var x=n[y],S=i[m],_=S.data.hostModel,b=x.data.getItemGraphicEl(x.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);if(b===w){w&&R5e(w,S.dataIndex,_);return}b&&d[b.id]||w&&(Tc(w),b?(Tc(b),Bw(b),u=!0,Nw(Bl(b),Bl(w),S.divide,_,m,a)):zw(w,_,m))}new To(n,i,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(m,y){var x=i[m],S=x.data,_=S.hostModel,b=S.getItemGraphicEl(x.dataIndex),w=dt(Z(y,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==b&&!d[C.id]});b&&(Tc(b),w.length?(R(w,function(C){Tc(C),Bw(C)}),u=!0,Nw(Bl(w),Bl(b),x.divide,_,m,a)):zw(b,_,x.dataIndex))}).updateOneToMany(function(m,y){var x=n[y],S=x.data.getItemGraphicEl(x.dataIndex);if(!(S&&d[S.id])){var _=dt(Z(m,function(w){return i[w].data.getItemGraphicEl(i[w].dataIndex)}),function(w){return w&&w!==S}),b=i[m[0]].data.hostModel;_.length&&(R(_,function(w){return Tc(w)}),S?(Tc(S),Bw(S),u=!0,Nw(Bl(S),Bl(_),x.divide,b,m[0],a)):R(_,function(w){return zw(w,b,m[0])}))}}).updateManyToMany(function(m,y){new To(y,m,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return i[x].data.getId(i[x].dataIndex)}).update(function(x,S){g(m[x],y[S])}).execute()}).execute(),u&&R(t,function(m){var y=m.data,x=y.hostModel,S=x&&r.getViewOfSeriesModel(x),_=Jf("update",x,0);S&&x.isAnimationEnabled()&&_&&_.duration>0&&S.group.traverse(function(b){b instanceof je&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function xF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function SF(e){return Y(e)?e.sort().join(","):e}function es(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function E5e(e,t){var r=ge(),n=ge(),i=ge();return R(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=xF(a),c=SF(u);n.set(c,{dataGroupId:s,data:l}),Y(u)&&R(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),R(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=xF(a),u=SF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:es(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:es(s),data:s}]});else if(Y(l)){var f=[];R(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:es(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:es(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:es(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:es(s)})}}}}),r}function bF(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function O5e(e,t,r,n){var i=[],a=[];R(pt(e.from),function(o){var s=bF(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:es(t.oldData[s]),dim:o.dimension})}),R(pt(e.to),function(o){var s=bF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:es(l),dim:o.dimension})}}),i.length>0&&a.length>0&&nq(i,a,n)}function N5e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){R(pt(n.seriesTransition),function(i){R(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][uy]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=P5e(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)R(pt(a),function(h){O5e(h,i,n,r)});else{var o=E5e(i,n);R(o.keys(),function(h){var p=o.get(h);nq(p.oldSeries,p.newSeries,r)})}R(n.updatedSeries,function(h){h[uy]&&(h[uy]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<rq&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Fe([Jwe]);Fe([Uwe]);Fe([wCe,VCe,eTe,VTe,iAe,QAe,I2e,vMe,HMe,QMe,uke,hIe,FIe,JIe,xPe,APe,WPe,eDe,hDe,bDe,EDe,xRe]);Fe(GRe);Fe(_Le);Fe(Q8);Fe($Le);Fe(BU);Fe(ULe);Fe(tEe);Fe(rOe);Fe(TOe);Fe(Yv);Fe(jOe);Fe(YOe);Fe(uNe);Fe(xNe);Fe(MNe);Fe(ONe);Fe(XNe);Fe(mze);Fe(H7);Fe(W7);Fe(Wze);Fe(X7);Fe(Z7);Fe(Xze);Fe(l5e);Fe(f5e);Fe(N5e);Fe(dwe);const KA=e=>e?new Date(e).toLocaleString():"",z5e=e=>e?new Date(e).toLocaleTimeString():"",op="#b3c3bc",QA="#5b6f66";dI("locust",{backgroundColor:"#27272a",textStyle:{color:op},title:{textStyle:{color:op}}});const B5e=({charts:e,title:t,seriesData:r,colors:n})=>({legend:{icon:"circle",inactiveColor:op,textStyle:{color:op}},title:{text:t,x:10,y:10},dataZoom:[{type:"inside",start:0,end:50}],tooltip:{trigger:"axis",formatter:i=>i&&Array.isArray(i)&&i.length>0&&i.some(a=>!!a.value)?i.reduce((a,{axisValue:o,color:s,seriesName:l,value:u},c)=>`
|
243
|
+
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function GNe(e){e.registerAction("legendToggleSelect","legendselectchanged",Ie(eh,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ie(eh,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ie(eh,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ie(eh,"select")),e.registerAction("legendUnSelect","legendunselected",Ie(eh,"unSelect"))}function V7(e){e.registerComponentModel(WA),e.registerComponentView(F7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,VNe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),GNe(e)}var HNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=id(r);e.prototype.init.call(this,r,n,i),H$(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),H$(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Js(WA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(WA);function H$(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,$s(t,r,{type:"box",ignoreSize:!!i})}const WNe=HNe;var W$=Me,Pw=["width","height"],Dw=["x","y"],jNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new W$),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new W$)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=Y(f)?f:[f,f];p("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new nt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var m=v+"DataIndex",y=Ev(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ce(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=v,c.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=Pw[u],f=Dw[u],d=Pw[1-u],h=Dw[1-u];o&&gu("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],m=Te(i);o&&(m[c]=i[c]-v[c]-p);var y=this._layoutContentAndController(r,a,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+p;else{var x=v[c]+p;g[u]-=x,y[f]-=x}y[c]+=v[c]+p,g[1-u]+=y[h]+y[d]/2-v[d]/2,y[d]=Math.max(y[d],v[d]),y[h]=Math.min(y[h],v[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;gu(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),gu("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Ee(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Je({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&at(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Pw[o],l=Dw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i<y.i&&(y=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=x;return p;function S(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function _(b,w){return b.e>=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(F7);const UNe=jNe;function qNe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function YNe(e){Fe(V7),e.registerComponentModel(WNe),e.registerComponentView(UNe),qNe(e)}function XNe(e){Fe(V7),Fe(YNe)}var ZNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Js(uv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(uv);const KNe=ZNe;var bP=et();function QNe(e,t,r){bP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function JNe(e,t){for(var r=bP(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||G7(r,o))}}}function G7(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function eze(e,t){var r={model:t,containsPoint:Ie(rze,t),dispatchAction:Ie(tze,e),dataZoomInfoMap:null,controller:null},n=r.controller=new Uv(e.getZr());return R(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function tze(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function rze(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function nze(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function ize(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=bP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ge());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=w7(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,eze(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){G7(i,a);return}var c=nze(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ld(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var aze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),QNe(i,r,{pan:ce(Rw.pan,this),zoom:ce(Rw.zoom,this),scrollMove:ce(Rw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){JNe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(dP),Rw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Lw[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:j$(function(e,t,r,n,i,a){var o=Lw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:j$(function(e,t,r,n,i,a){var o=Lw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function j$(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Zu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Lw={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const oze=aze;function H7(e){hP(e),e.registerComponentModel(KNe),e.registerComponentView(oze),ize(e)}var sze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Js(uv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(uv);const lze=sze;var th=Je,U$=7,uze=1,Ew=30,cze=7,rh="horizontal",q$="vertical",fze=5,dze=["line","bar","candlestick","scatter"],hze={easing:"cubicOut",duration:100,delay:0},pze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ce(this._onBrush,this),this._onBrushEnd=ce(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ld(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Kp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Me;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?cze:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===rh?{right:s.width-o.x-o.width,top:s.height-Ew-U$-a,width:o.width,height:Ew}:{right:U$,top:o.y,width:Ew,height:o.height},u=id(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=pr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===q$&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===rh&&!o?{scaleY:l?1:-1,scaleX:1}:i===rh&&o?{scaleY:l?1:-1,scaleX:-1}:i===q$&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new th({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new th({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ce(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(A,T){if(x>0&&T%x){y+=m;return}var M=A==null||isNaN(A)||A==="",k=M?0:ft(A,f,h,!0);M&&!S&&T?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(A){var T=_.getModel(A?"selectedDataBackground":"dataBackground"),M=new Me,k=new Rn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new En({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(n!==!0&&ze(dze,u.get("type"))<0)){var c=a.getComponent(ps(o),s).axis,f=vze(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new th({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new th({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:uze,fill:"rgba(0,0,0,0)"}})),R([0,1],function(x){var S=l.get("handleIcon");!k0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=lr(S,-1,0,2,2,null,!0);_.attr({cursor:Y$(this._orient),draggable:!0,drift:ce(this._onDragMove,this,x),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ne(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),pu(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var A=l.getModel("textStyle");r.add(a[x]=new nt({silent:!0,invisible:!0,style:_t(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var p=ne(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Je({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=lr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Je({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:Y$(this._orient),drift:ce(this._onDragMove,this,"all"),ondragstart:ce(this._showDataInfo,this,!0),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ft(r[0],[0,100],n,!0),ft(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Zu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ft(s.minSpan,l,o,!0):null,s.maxSpan!=null?ft(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=yi([ft(a[0],o,l,!0),ft(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=yi(i.slice()),o=this._size;R([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Je,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=yi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=vu(i.handles[p].parent,this.group),g=Nx(p===0?"right":"left",v),m=this._handleWidth/2+fze,y=Yi([d[p]+(p===0?-m:m),this._size[1]/2],v);a[p].setStyle({x:y[0],y:y[1],verticalAlign:o===rh?"middle":g,align:o===rh?g:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Se(a)?a(r,s):oe(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,bo(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Yi([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=yi([ft(i.x,o,s,!0),ft(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(bo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new th({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?hze:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=w7(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(dP);function vze(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Y$(e){return e==="vertical"?"ns-resize":"ew-resize"}const gze=pze;function W7(e){e.registerComponentModel(lze),e.registerComponentView(gze),hP(e)}function mze(e){Fe(H7),Fe(W7)}var yze={get:function(e,t,r){var n=Te((xze[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},xze={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const j7=yze;var X$=Or.mapVisual,Sze=Or.eachVisual,bze=Y,Z$=R,_ze=yi,wze=ft,Cze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&L7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ce(r,this),this.controllerVisuals=VA(this.option.controller,n,r),this.targetVisuals=VA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=pt(r),n},t.prototype.eachTargetSeries=function(r,n){R(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Se(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=_ze([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){bze(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},Z$(p,function(g,m){if(Or.isValidType(m)){var y=j7.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";Z$(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Te(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Te(h)||(s?y[0]:[y[0],y[0]])),x.symbol=X$(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;Sze(S,function(b){b>_&&(_=b)}),x.symbolSize=X$(S,function(b){return wze(b,[0,_],[0,y[0]],!0)})}},this)}},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(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(tt);const e1=Cze;var K$=[20,140],Tze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=K$[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=K$[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=yi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=Q$(this,"outOfRange",this.getExtent()),i=Q$(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Js(e1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(e1);function Q$(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}const Aze=Tze;var Mze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=nd(n.get("padding")||0),a=r.getBoundingRect();r.add(new Je({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var f=o.controllerVisuals[a||o.getValueState(r)],d=Or.prepareVisualTypes(f);return R(d,function(h){var p=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=f.__alphaForOpacity),Or.dependsOn(h,n)&&p&&p.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;Hx(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(Ut);const U7=Mze;var J$=[["left","right","width"],["top","bottom","height"]];function q7(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=J$[o],l=[0,null,10],u={},c=0;c<3;c++)u[J$[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=pr(u,a,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function vy(e,t){return R(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var ca=ft,kze=R,eF=Math.min,Ow=Math.max,Ize=12,Pze=6,Dze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.doRender=function(r,n,i,a){this._api=i,(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new nt({style:_t(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=q7(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new Me;u.add(c),c.add(i.outOfRange=tF()),c.add(i.inRange=tF(null,s?nF(this._orient):null,ce(this._dragHandle,this,"all",!1),ce(this._dragHandle,this,"all",!0))),c.setClipPath(new Je({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=Ow(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,d,o),this._createHandle(n,u,1,a,d,o)),this._createIndicator(n,u,a,d,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=ce(this._dragHandle,this,i,!1),u=ce(this._dragHandle,this,i,!0),c=Ji(r.get("handleSize"),a[0]),f=lr(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=nF(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){bo(m.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),tu(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,p=new nt({cursor:d,draggable:!0,drift:l,onmousemove:function(m){bo(m.event)},ondragend:u,style:_t(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[i]=f,g.handleLabelPoints[i]=v,g.handleLabels[i]=p},t.prototype._createIndicator=function(r,n,i,a,o){var s=Ji(r.get("indicatorSize"),i[0]),l=lr(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof $r){var c=l.style;l.useStyle(q({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new nt({silent:!0,invisible:!0,style:_t(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?a/2:Pze)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():rF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[ca(n[0],i,a,!0),ca(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Zu(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[ca(a[0],o,s,!0),ca(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Rv(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Me(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();kze([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=ca(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Yi(i.handleLabelPoints[c],vu(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=ca(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Yi(c.indicatorLabelPoint,vu(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;M<T.length;M++)this._api.enterBlur(T[M])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=eF(Ow(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=eF(Ow(o[0],r),o[1]);var l=Rze(i,s,o),u=[r-l,r+l],c=ca(r,o,s,!0),f=[ca(u[0],o,s,!0),ca(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||rF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=xye(d,h);this._dispatchHighDown("downplay",vy(p[0],i)),this._dispatchHighDown("highlight",vy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(nu(r.target,function(l){var u=ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this._api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",vy(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=vu(n,a?null:this.group);return Y(r)?Yi(r,o,i):Nx(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(U7);function tF(e,t,r,n){return new Rn({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){bo(i.event)},ondragend:n})}function Rze(e,t,r){var n=Ize/2,i=e.get("hoverLinkDataSize");return i&&(n=ca(i,t,r,!0)/2),n}function rF(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function nF(e){return e==="vertical"?"ns-resize":"ew-resize"}const Lze=Dze;var Eze={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Oze=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},Nze=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(POe(n.stateList,n.targetVisuals,ce(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(ce(zze,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function zze(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:zv(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(h){return o[h]}function d(h,p){o[h]=p}}var iF=R;function Bze(e){var t=e&&e.visualMap;Y(t)||(t=t?[t]:[]),iF(t,function(r){if(r){wc(r,"splitList")&&!wc(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Y(n)&&iF(n,function(i){_e(i)&&(wc(i,"start")&&!wc(i,"min")&&(i.min=i.start),wc(i,"end")&&!wc(i,"max")&&(i.max=i.end))})}})}function wc(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var aF=!1;function Y7(e){aF||(aF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(Eze,Oze),R(Nze,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Bze))}function X7(e){e.registerComponentModel(Aze),e.registerComponentView(Lze),Y7(e)}var $ze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Fze[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Te(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=Te(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();R(r.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&R(this.stateList,function(c){(r[c]||(r[c]={}))[l]=j7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,R(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Te(r)},t.prototype.getValueState=function(r){var n=Or.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Or.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Js(e1.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}(e1),Fze={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),QE(e),R(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;R(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),oF(t,e)},pieces:function(e){var t=this.option;R(t.pieces,function(r,n){_e(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=r[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Or.retrieveVisuals(r),e.push(i)},this),oF(t,e),QE(e),R(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function oF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const Vze=$ze;var Gze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Cr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),R(c.viewPieceList,function(h){var p=h.piece,v=new Me;v.onclick=ce(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new nt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),gu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:vy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return q7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Me,l=this.visualMapModel.textStyleModel;s.add(new nt({style:_t(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(lr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Te(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(U7);const Hze=Gze;function Z7(e){e.registerComponentModel(Vze),e.registerComponentView(Hze),Y7(e)}function Wze(e){Fe(X7),Fe(Z7)}var jze={label:{enabled:!0},decal:{show:!1}},sF=et(),Uze={};function qze(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Te(jze);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ge();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),sF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Se(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=YT(d.ecModel,d.name,Uze,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=sF(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=YT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?q(q({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=be(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var x=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,A){if(A<v){var T=void 0,M=C.get("name"),k=M?"withName":"withoutName";T=d>1?c.get(["series","multiple",k]):c.get(["series","single",k]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var D=c.get(["data","partialData"]);T+=o(D,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var L=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),V=[],N=0;N<I.count();N++)if(N<h){var F=I.getName(N),E=I.getValues(N),G=c.get(["data",F?"withName":"withoutName"]);V.push(o(G,{name:F,value:E.join(L)}))}T+=V.join(L)+z,x.push(T)}});var _=c.getModel(["series","multiple","separator"]),b=_.get("middle"),w=_.get("end");g+=x.join(b)+w,f.setAttribute("aria-label",g)}}}function o(u,c){if(!oe(u))return u;var f=u;return R(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function Yze(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},R(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function Xze(e){e.registerPreprocessor(Yze),e.registerVisual(e.PRIORITY.VISUAL.ARIA,qze)}var lF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Zze=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):Pge(t)?t:null;if(r==null){var n="";lt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):it(r)?this._condVal.test(t+""):!1},e}(),Kze=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Qze=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),Jze=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),e5e=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),t5e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function _P(e,t){if(e===!0||e===!1){var r=new Kze;return r.value=e,r}var n="";return K7(e)||lt(n),e.and?uF("and",e,t):e.or?uF("or",e,t):e.not?r5e(e,t):n5e(e,t)}function uF(e,t,r){var n=t[e],i="";Y(n)||lt(i),n.length||lt(i);var a=e==="and"?new Qze:new Jze;return a.children=Z(n,function(o){return _P(o,r)}),a.children.length||lt(i),a}function r5e(e,t){var r=e.not,n="";K7(r)||lt(n);var i=new e5e;return i.child=_P(r,t),i.child||lt(n),i}function n5e(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=Ye(e),o=e.parser,s=o?Mj(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=fe(lF,u)?lF[u]:u,f=e[u],d=s?s(f):f,h=Oxe(c,d)||c==="reg"&&new Zze(d);h||lt(r),i.push(h)}}i.length||lt(r);var p=new t5e;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function K7(e){return _e(e)&&!Zr(e)}var i5e=function(){function e(t,r){this._cond=_P(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function a5e(e,t){return new i5e(e,t)}var o5e={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=a5e(e.config,{valueGetterAttrMap:ge({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;fe(s,"dimension")||lt(l);var c=t.getDimensionInfo(u);return c||lt(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},s5e={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=pt(r);i.length||lt(n);var a=[];R(i,function(c){var f=c.dimension,d=c.order,h=c.parser,p=c.incomparable;if(f==null&<(n),d!=="asc"&&d!=="desc"&<(n),p&&p!=="min"&&p!=="max"){var v="";lt(v)}if(d!=="asc"&&d!=="desc"){var g="";lt(g)}var m=t.getDimensionInfo(f);m||lt(n);var y=h?Mj(h):null;h&&!y&<(n),a.push({dimIdx:m.index,parser:y,comparator:new Ij(d,p)})});var o=t.sourceFormat;o!==Kr&&o!==Di&<(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<a.length;d++){var h=a[d],p=t.retrieveValueFromItem(c,h.dimIdx),v=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var g=h.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function l5e(e){e.registerTransform(o5e),e.registerTransform(s5e)}var u5e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new Lj(this),dN(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),dN(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Oa},t}(tt),c5e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Ut);function f5e(e){e.registerComponentModel(u5e),e.registerComponentView(c5e)}var la=Wa.CMD;function Zc(e,t){return Math.abs(e-t)<1e-5}function YA(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(I,D){i&&i.length>2&&n.push(i),i=[I,D]}function c(I,D,L,z){Zc(I,L)&&Zc(D,z)||i.push(I,D,L,z,L,z)}function f(I,D,L,z,V,N){var F=Math.abs(D-I),E=Math.tan(F/4)*4/3,G=D<I?-1:1,j=Math.cos(I),B=Math.sin(I),U=Math.cos(D),X=Math.sin(D),W=j*V+L,ee=B*N+z,te=U*V+L,ie=X*N+z,re=V*E*G,Q=N*E*G;i.push(W-re*B,ee+Q*j,te+re*X,ie-Q*U,te,ie)}for(var d,h,p,v,g=0;g<r;){var m=t[g++],y=g===1;switch(y&&(a=t[g],o=t[g+1],s=a,l=o,(m===la.L||m===la.C||m===la.Q)&&(i=[s,l])),m){case la.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case la.L:d=t[g++],h=t[g++],c(a,o,d,h),a=d,o=h;break;case la.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case la.Q:d=t[g++],h=t[g++],p=t[g++],v=t[g++],i.push(a+2/3*(d-a),o+2/3*(h-o),p+2/3*(d-p),v+2/3*(h-v),p,v),a=p,o=v;break;case la.A:var x=t[g++],S=t[g++],_=t[g++],b=t[g++],w=t[g++],C=t[g++]+w;g+=1;var A=!t[g++];d=Math.cos(w)*_+x,h=Math.sin(w)*b+S,y?(s=d,l=h,u(s,l)):c(a,o,d,h),a=Math.cos(C)*_+x,o=Math.sin(C)*b+S;for(var T=(A?-1:1)*Math.PI/2,M=w;A?M>C:M<C;M+=T){var k=A?Math.max(M+T,C):Math.min(M+T,C);f(M,k,x,S,_,b)}break;case la.R:s=a=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case la.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function XA(e,t,r,n,i,a,o,s,l,u){if(Zc(e,r)&&Zc(t,n)&&Zc(i,o)&&Zc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x<f&&S<f){l.push(o,s);return}var _=d*v+h*g,b=-d*m-h*y,w=x-_*_,C=S-b*b;if(w<f&&_>=0&&C<f&&b>=0){l.push(o,s);return}var A=[],T=[];zs(e,r,i,o,.5,A),zs(t,n,a,s,.5,T),XA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),XA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function d5e(e,t){var r=YA(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],h=a[u++],p=a[u++],v=a[u++];XA(s,l,c,f,d,h,p,v,o,t),s=p,l=v}n.push(o)}return n}function Q7(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function cF(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=Q7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],v=0;v<f[h];v++){var g={};c?(g.startAngle=a+d*h,g.endAngle=a+d*(h+1),g.r0=n+p*v,g.r=n+p*(v+1)):(g.startAngle=a+p*v,g.endAngle=a+p*(v+1),g.r0=n+d*h,g.r=n+d*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function h5e(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=Q7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],p=0;p<o[d];p++){var v={};v[u]=d*f,v[c]=p*h,v[s]=f,v[l]=h,v.x+=e.x,v.y+=e.y,r.push(v)}}function fF(e,t,r,n){return e*n-r*t}function p5e(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=fF(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-i,p=t-a,v=fF(h,p,c,f)/d;return v<0||v>1?null:new Le(v*l+e,v*u+t)}function v5e(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function Cc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function g5e(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=p5e(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:v5e(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(g,m){return g.projPt-m.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[d],v=[h],a=u.idx+1;a<=c.idx;a++)Cc(p,e[a].slice());Cc(p,h),Cc(p,d);for(var a=c.idx+1;a<=u.idx+n;a++)Cc(v,e[a%n].slice());return Cc(v,d),Cc(v,h),[{points:p},{points:v}]}function dF(e){var t=e.points,r=[],n=[];Px(t,r,n);var i=new Ne(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Le,c=new Le;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),g5e(t,u,c)}function t1(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);t1(e,a[0],i,n),t1(e,a[1],r-i,n)}return n}function m5e(e,t){for(var r=[],n=0;n<t;n++)r.push(Bk(e));return r}function y5e(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function x5e(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function S5e(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":h5e(n,t,r),i=Je;break;case"sector":cF(n,t,r),i=Dn;break;case"circle":cF({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Dn;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Z(d5e(e.getUpdatedPathProxy(),o),function(m){return x5e(m)}),l=s.length;if(l===0)t1(dF,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=Z(s,function(m){var y=[],x=[];Px(m,y,x);var S=(x[1]-y[1])*(x[0]-y[0]);return c+=S,{poly:m,area:S}});f.sort(function(m,y){return y.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(h.area/c*t);p<0||(t1(dF,{points:h.poly},p,r),d-=p)}}i=Rn;break}if(!i)return m5e(e,t);for(var v=[],u=0;u<r.length;u++){var g=new i;g.setShape(r[u]),y5e(e,g),v.push(g)}return v}function b5e(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var p=o[h-2],v=o[h-1],g=o[h++],m=o[h++],y=o[h++],x=o[h++],S=o[h++],_=o[h++];if(d<=0){f.push(g,m,y,x,S,_);continue}for(var b=Math.min(d,c-1)+1,w=1;w<=b;w++){var C=w/b;zs(p,g,y,S,C,i),zs(v,m,x,_,C,a),p=i[3],v=a[3],f.push(i[1],a[1],i[2],a[2],p,v),g=i[5],m=a[5],y=i[6],x=a[6]}d-=b-1}return o===e?[f,t]:[e,f]}function hF(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function _5e(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=b5e(l,u),c=r[0],f=r[1],n=c,i=f):(f=hF(i||l,l),c=l):(c=hF(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function pF(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function w5e(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,p=e[h]-r[0],v=e[h+1]-r[1],g=t[d]-n[0],m=t[d+1]-n[1],y=g-p,x=m-v;f+=y*y+x*x}f<a&&(a=f,o=u)}return o}function C5e(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function T5e(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=pF(s),c=pF(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],h=0,p=1/0,v=[],g=s.length;a&&(s=C5e(s));for(var m=w5e(s,l,u,c)*6,y=g-2,x=0;x<y;x+=2){var S=(m+x)%y+2;f[x+2]=s[S]-u[0],f[x+3]=s[S+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],r>0)for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x<s.length;x+=2){var T=f[x],M=f[x+1],k=l[x]-c[0],I=l[x+1]-c[1],D=k*C-I*w,L=k*w+I*C;v[x]=D,v[x+1]=L;var z=D-T,V=L-M;A+=z*z+V*V}if(A<p){p=A,h=b;for(var N=0;N<v.length;N++)d[N]=v[N]}}else for(var F=0;F<g;F+=2)d[F]=l[F]-c[0],d[F+1]=l[F+1]-c[1];i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return i}function r1(e){return e.__isCombineMorphing}var J7="__mOriginal_";function n1(e,t,r){var n=J7+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function ap(e,t){var r=J7+t;e[r]&&(e[t]=e[r],e[r]=null)}function vF(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function eq(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=_5e(YA(r),YA(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&vF(a,s),l&&vF(o,l),n1(t,"updateTransform",{replace:u}),t.transform=null;var c=T5e(a,o,10,Math.PI),f=[];n1(t,"buildPath",{replace:function(d){for(var h=t.__morphT,p=1-h,v=[],g=0;g<c.length;g++){var m=c[g],y=m.from,x=m.to,S=m.rotation*h,_=m.fromCp,b=m.toCp,w=Math.sin(S),C=Math.cos(S);Km(v,_,b,h);for(var A=0;A<y.length;A+=2){var T=y[A],M=y[A+1],k=x[A],I=x[A+1],D=T*p+k*h,L=M*p+I*h;f[A]=D*C-L*w+v[0],f[A+1]=D*w+L*C+v[1]}var z=f[0],V=f[1];d.moveTo(z,V);for(var A=2;A<y.length;){var k=f[A++],I=f[A++],N=f[A++],F=f[A++],E=f[A++],G=f[A++];z===k&&V===I&&N===E&&F===G?d.lineTo(E,G):d.bezierCurveTo(k,I,N,F,E,G),z=E,V=G}}}})}function wP(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;eq(e,t),t.__morphT=0;function a(){ap(t,"buildPath"),ap(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},be({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function A5e(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function i1(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:A5e(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function tq(e){return S5e(e.path,e.count)}function ZA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function M5e(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];r1(w)?i(w.childrenRef()):w instanceof je&&n.push(w)}}i(e);var a=n.length;if(!a)return ZA();var o=r.dividePath||tq,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),ZA();n=i1(n),s=i1(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new oo,d=0;d<a;d++){var h=n[d],p=s[d];p.parent=t,p.copyTransform(f),c||eq(h,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(_){for(var b=0;b<s.length;b++)s[b].addSelfToZr(_)}n1(t,"addSelfToZr",{after:function(_){v(_)}}),n1(t,"removeSelfFromZr",{after:function(_){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(_)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,ap(t,"addSelfToZr"),ap(t,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,x=function(){y--,y===0&&(g(),l&&l())},d=0;d<m;d++){var S=c?be({delay:(r.delay||0)+c(d,m,n[d],s[d]),done:x},r):r;wP(n[d],s[d],S)}else t.__morphT=0,t.animateTo({__morphT:1},be({during:function(_){for(var b=0;b<m;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(_)},done:function(){g();for(var _=0;_<e.length;_++)ap(e[_],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function k5e(e,t,r){var n=t.length,i=[],a=r.dividePath||tq;function o(h){for(var p=0;p<h.length;p++){var v=h[p];r1(v)?o(v.childrenRef()):v instanceof je&&i.push(v)}}if(r1(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(Bk(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),ZA()}i=i1(i),t=i1(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?be({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;wP(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function gF(e){return Y(e[0])}function mF(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var I5e={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=Bk(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function Nw(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Jf("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;gF(e)&&(u=e,c=t),gF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,A=y?w:b[0];if(r1(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?be({delay:s(x,S)},l):l;wP(C,A,T),a(C,A,C,A,T)}}else for(var M=be({dividePath:I5e[r],individualDelay:s&&function(V,N,F,E){return s(V+x,S)}},l),k=y?M5e(b,w,M):k5e(w,b,M),I=k.fromIndividuals,D=k.toIndividuals,L=I.length,z=0;z<L;z++){var T=s?be({delay:s(z,L)},l):l;a(I[z],D[z],y?b[z]:m.one,y?m.one:b[z],T)}}for(var d=u?u===e:e.length>t.length,h=u?mF(c,u):mF(d?t:e,[d?e:t]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var g=0,v=0;v<h.length;v++)f(h[v],d,g,p),g+=h[v].many.length}function Bl(e){if(!e)return[];if(Y(e)){for(var t=[],r=0;r<e.length;r++)t.push(Bl(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof je&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var rq=1e4,P5e=et();function D5e(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function yF(e){var t=[];return R(e,function(r){var n=r.data;if(!(n.count()>rq))for(var i=n.getIndices(),a=D5e(n),o=0;o<i.length;o++)t.push({dataGroupId:r.dataGroupId,data:n,dim:r.dim||a,divide:r.divide,dataIndex:o})}),t}function zw(e,t,r){e.traverse(function(n){n instanceof je&&Lt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function Bw(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Tc(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function R5e(e,t,r){var n=Jf("update",r,t);n&&e.traverse(function(i){if(i instanceof Ti){var a=p1e(i);a&&i.animateFrom({style:a},n)}})}function L5e(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function nq(e,t,r){var n=yF(e),i=yF(t);function a(m,y,x,S,_){(x||m)&&y.animateFrom({style:x&&x!==m?q(q({},x.style),m.style):m.style},_)}function o(m){for(var y=0;y<m.length;y++)if(m[y].dim)return m[y].dim}var s=o(n),l=o(i),u=!1;function c(m,y){return function(x){var S=x.data,_=x.dataIndex;if(y)return S.getId(_);var b=x.dataGroupId,w=m?s||l:l||s,C=w&&S.getDimensionInfo(w),A=C&&C.ordinalMeta;if(C){var T=S.get(C.name,_);return A&&A.categories[T]||T+""}var M=S.getRawDataItem(_);return M&&M.groupId?M.groupId+"":b||S.getId(_)}}var f=L5e(n,i),d={};if(!f)for(var h=0;h<i.length;h++){var p=i[h],v=p.data.getItemGraphicEl(p.dataIndex);v&&(d[v.id]=!0)}function g(m,y){var x=n[y],S=i[m],_=S.data.hostModel,b=x.data.getItemGraphicEl(x.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);if(b===w){w&&R5e(w,S.dataIndex,_);return}b&&d[b.id]||w&&(Tc(w),b?(Tc(b),Bw(b),u=!0,Nw(Bl(b),Bl(w),S.divide,_,m,a)):zw(w,_,m))}new To(n,i,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(m,y){var x=i[m],S=x.data,_=S.hostModel,b=S.getItemGraphicEl(x.dataIndex),w=dt(Z(y,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==b&&!d[C.id]});b&&(Tc(b),w.length?(R(w,function(C){Tc(C),Bw(C)}),u=!0,Nw(Bl(w),Bl(b),x.divide,_,m,a)):zw(b,_,x.dataIndex))}).updateOneToMany(function(m,y){var x=n[y],S=x.data.getItemGraphicEl(x.dataIndex);if(!(S&&d[S.id])){var _=dt(Z(m,function(w){return i[w].data.getItemGraphicEl(i[w].dataIndex)}),function(w){return w&&w!==S}),b=i[m[0]].data.hostModel;_.length&&(R(_,function(w){return Tc(w)}),S?(Tc(S),Bw(S),u=!0,Nw(Bl(S),Bl(_),x.divide,b,m[0],a)):R(_,function(w){return zw(w,b,m[0])}))}}).updateManyToMany(function(m,y){new To(y,m,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return i[x].data.getId(i[x].dataIndex)}).update(function(x,S){g(m[x],y[S])}).execute()}).execute(),u&&R(t,function(m){var y=m.data,x=y.hostModel,S=x&&r.getViewOfSeriesModel(x),_=Jf("update",x,0);S&&x.isAnimationEnabled()&&_&&_.duration>0&&S.group.traverse(function(b){b instanceof je&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function xF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function SF(e){return Y(e)?e.sort().join(","):e}function es(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function E5e(e,t){var r=ge(),n=ge(),i=ge();return R(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=xF(a),c=SF(u);n.set(c,{dataGroupId:s,data:l}),Y(u)&&R(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),R(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=xF(a),u=SF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:es(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:es(s),data:s}]});else if(Y(l)){var f=[];R(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:es(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:es(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:es(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:es(s)})}}}}),r}function bF(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function O5e(e,t,r,n){var i=[],a=[];R(pt(e.from),function(o){var s=bF(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:es(t.oldData[s]),dim:o.dimension})}),R(pt(e.to),function(o){var s=bF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:es(l),dim:o.dimension})}}),i.length>0&&a.length>0&&nq(i,a,n)}function N5e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){R(pt(n.seriesTransition),function(i){R(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][uy]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=P5e(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)R(pt(a),function(h){O5e(h,i,n,r)});else{var o=E5e(i,n);R(o.keys(),function(h){var p=o.get(h);nq(p.oldSeries,p.newSeries,r)})}R(n.updatedSeries,function(h){h[uy]&&(h[uy]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<rq&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Fe([Jwe]);Fe([Uwe]);Fe([wCe,VCe,eTe,VTe,iAe,QAe,I2e,vMe,HMe,QMe,uke,hIe,FIe,JIe,xPe,APe,WPe,eDe,hDe,bDe,EDe,xRe]);Fe(GRe);Fe(_Le);Fe(Q8);Fe($Le);Fe(BU);Fe(ULe);Fe(tEe);Fe(rOe);Fe(TOe);Fe(Yv);Fe(jOe);Fe(YOe);Fe(uNe);Fe(xNe);Fe(MNe);Fe(ONe);Fe(XNe);Fe(mze);Fe(H7);Fe(W7);Fe(Wze);Fe(X7);Fe(Z7);Fe(Xze);Fe(l5e);Fe(f5e);Fe(N5e);Fe(dwe);const KA=e=>e?new Date(e).toLocaleString():"",z5e=e=>e?new Date(e).toLocaleTimeString():"",op="#b3c3bc",QA="#5b6f66";dI("locust",{backgroundColor:"#27272a",textStyle:{color:op},title:{textStyle:{color:op}}});const B5e=({charts:e,title:t,seriesData:r,colors:n})=>({legend:{icon:"circle",inactiveColor:op,textStyle:{color:op}},title:{text:t,x:10,y:10},dataZoom:[{type:"inside",start:0,end:100}],tooltip:{trigger:"axis",formatter:i=>i&&Array.isArray(i)&&i.length>0&&i.some(a=>!!a.value)?i.reduce((a,{axisValue:o,color:s,seriesName:l,value:u},c)=>`
|
244
244
|
${c===0?KA(o):""}
|
245
245
|
${a}
|
246
246
|
<br>
|
247
247
|
<span style="color:${s};">
|
248
248
|
${l}: ${u}
|
249
249
|
</span>
|
250
|
-
`,""):"No data",axisPointer:{animation:!0},textStyle:{color:op,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:QA}},axisLabel:{formatter:z5e},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:QA}}},series:r,grid:{x:60,y:70,x2:40,y2:40},color:n,toolbox:{feature:{saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),$5e=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),F5e=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:QA},data:(e.markers||[]).map(t=>({xAxis:t}))});function V5e({charts:e,title:t,lines:r,colors:n}){const[i,a]=O.useState(null),o=O.useRef(null);return O.useEffect(()=>{if(!o.current)return;const s=Mbe(o.current,"locust");s.setOption(B5e({charts:e,title:t,seriesData:$5e({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",kbe("swarmCharts"),a(s),()=>{Ibe(s),window.removeEventListener("resize",l)}},[o]),O.useEffect(()=>{const s=r.every(({key:l})=>!!e[l]);i&&s&&i.setOption({xAxis:{data:e.time},series:r.map(({key:l},u)=>({data:e[l],...u===0?{markLine:F5e(e)}:{}}))})},[e,i,r]),P.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const iq=Ra.percentilesToChart?Ra.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],G5e=["#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"].slice(0,iq.length).concat("#eeff00"),H5e=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[...iq,{name:"Average Response Time",key:"totalAvgResponseTime"}],colors:G5e},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function aq({charts:e}){return P.jsx("div",{children:H5e.map((t,r)=>P.jsx(V5e,{...t,charts:e},`swarm-chart-${r}`))})}const W5e=({ui:{charts:e}})=>({charts:e}),j5e=Ln(W5e)(aq);function U5e(e){return(e*100).toFixed(1)+"%"}function JA({classRatio:e}){return P.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>P.jsxs("li",{children:[`${U5e(r)} ${t}`,n&&P.jsx(JA,{classRatio:n})]},`nested-ratio-${t}`))})}function oq({ratios:{perClass:e,total:t}}){return!e&&!t?null:P.jsxs("div",{children:[e&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Ratio Per Class"}),P.jsx(JA,{classRatio:e})]}),t&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Total Ratio"}),P.jsx(JA,{classRatio:t})]})]})}const q5e=({ui:{ratios:e}})=>({ratios:e}),Y5e=Ln(q5e)(oq),X5e=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:$K}];function Z5e({workers:e=[]}){return P.jsx(qf,{defaultSortKey:"id",rows:e,structure:X5e})}const K5e=({ui:{workers:e}})=>({workers:e}),Q5e=Ln(K5e)(Z5e),J5e=[{component:hge,key:"stats",title:"Statistics"},{component:j5e,key:"charts",title:"Charts"},{component:Qve,key:"failures",title:"Failures"},{component:Xve,key:"exceptions",title:"Exceptions"},{component:Y5e,key:"ratios",title:"Current Ratio"},{component:ige,key:"reports",title:"Download Data"},{component:tge,key:i6,title:"Logs"}],eBe=[{component:Q5e,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],tBe=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},rBe=()=>window.location.search?BK(window.location.search):null,nBe={query:rBe()},sq=ci({name:"url",initialState:nBe,reducers:{setUrl:Tv}}),iBe=sq.actions,aBe=sq.reducer;function oBe({hasNotification:e,title:t}){return P.jsxs(Qe,{sx:{display:"flex",alignItems:"center"},children:[e&&P.jsx(ek,{color:"secondary"}),P.jsx("span",{children:t})]})}function sBe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=O.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),tBe({tab:c}),n({query:{tab:c}}),o(u)};return P.jsxs(jf,{maxWidth:"xl",children:[P.jsx(Qe,{sx:{mb:2},children:P.jsx(iue,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>P.jsx(Hse,{label:P.jsx(oBe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Uve},u)=>a===u&&P.jsx(l,{},`tabpabel-${u}`))]})}const lBe=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=eBe.filter(({shouldDisplayTab:o})=>o(e)),a=[...J5e,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},uBe={setNotification:o6.setNotification,setUrl:iBe.setUrl},cBe=Ln(lBe,uBe)(sBe);var CF;const fBe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:(CF=Ra.history)==null?void 0:CF.reduce(q1,{}),ratios:{},userCount:0};var TF;const dBe=(TF=Ra.percentilesToChart)==null?void 0:TF.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),hBe=e=>q1(e,{...dBe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),lq=ci({name:"ui",initialState:fBe,reducers:{setUi:Tv,updateCharts:(e,{payload:t})=>({...e,charts:q1(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...hBe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),$w=lq.actions,pBe=lq.reducer,_F=2e3;function vBe(){const e=Kl(QM.setSwarm),t=Kl($w.setUi),r=Kl($w.updateCharts),n=Kl($w.updateChartMarkers),i=Zs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Pce(),{data:f,refetch:d}=Dce(),{data:h,refetch:p}=Rce(),v=i.state===mi.SPAWNING||i.state==mi.RUNNING,g=()=>{if(!u)return;const{currentResponseTimePercentiles:m,extendedStats:y,stats:x,errors:S,totalRps:_,totalFailPerSec:b,failRatio:w,workers:C,userCount:A,totalAvgResponseTime:T}=u,M=new Date().toUTCString();s&&(l(!1),n(M));const k=dh(_,2),I=dh(b,2),D=dh(w*100),L={...m,currentRps:k,currentFailPerSec:I,totalAvgResponseTime:dh(T,2),userCount:A,time:M};t({extendedStats:y,stats:x,errors:S,totalRps:k,failRatio:D,workers:C,userCount:A}),r(L)};O.useEffect(()=>{u&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),fh(g,_F,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),fh(c,_F,{shouldRunInterval:v}),fh(d,5e3,{shouldRunInterval:v}),fh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===mi.RUNNING&&a.current===mi.STOPPED&&l(!0),a.current=i.state},[i.state,a])}function gBe({isDarkMode:e,swarmState:t}){vBe(),mfe();const r=O.useMemo(()=>WM(e?Si.DARK:Si.LIGHT),[e]);return P.jsxs(IM,{theme:r,children:[P.jsx(BM,{}),P.jsx(cfe,{children:t===mi.READY?P.jsx(r6,{}):P.jsx(cBe,{})})]})}const mBe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),yBe=Ln(mBe)(gBe),xBe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function SBe({responseTimes:e}){const t=O.useMemo(()=>Object.keys(e[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[e]);return P.jsx(qf,{hasTotalRow:!0,rows:e,structure:[...xBe,...t]})}const bBe=WM(window.theme||$G);function _Be({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return P.jsxs(IM,{theme:bBe,children:[P.jsx(BM,{}),P.jsxs(jf,{maxWidth:"lg",sx:{my:4},children:[P.jsxs(Qe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[P.jsx(We,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&P.jsx(on,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),P.jsxs(Qe,{sx:{my:2},children:[P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"During:"}),P.jsxs(We,{children:[KA(r)," - ",KA(n)]})]}),P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"Target Host:"}),P.jsx(We,{children:a||"None"})]}),P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"Script:"}),P.jsx(We,{children:e})]})]}),P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),P.jsx(Z6,{stats:s})]}),!!u.length&&P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),P.jsx(SBe,{responseTimes:u})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),P.jsx(q6,{errors:l})]}),!!o.length&&P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),P.jsx(U6,{exceptions:o})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),P.jsx(aq,{charts:i})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),P.jsx(oq,{ratios:c})]})]})]})]})}const wBe=w1({[i0.reducerPath]:i0.reducer,logViewer:gfe,notification:dfe,swarm:Zce,theme:VG,ui:pBe,url:aBe}),CBe=Y4({reducer:wBe,middleware:e=>e().concat(i0.middleware)});function TBe(){if(sR){const e=Y4({reducer:w1({theme:VG})});return P.jsx(aR,{store:e,children:P.jsx(wue,{...sR})})}else return lR?P.jsx(_Be,{...lR}):P.jsx(aR,{store:CBe,children:P.jsx(yBe,{})})}function ABe({error:e}){return P.jsxs("div",{role:"alert",children:[P.jsx("p",{children:"Something went wrong"}),e.message&&P.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",P.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const MBe=Vw.createRoot(document.getElementById("root"));MBe.render(P.jsx(zX,{fallbackRender:ABe,children:P.jsx(TBe,{})}));
|
250
|
+
`,""):"No data",axisPointer:{animation:!0},textStyle:{color:op,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:QA}},axisLabel:{formatter:z5e},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:QA}}},series:r,grid:{x:60,y:70,x2:40,y2:40},color:n,toolbox:{feature:{restore:{show:!1,title:"Reset"},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),$5e=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),F5e=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:QA},data:(e.markers||[]).map(t=>({xAxis:t}))});function V5e({charts:e,title:t,lines:r,colors:n}){const[i,a]=O.useState(null),o=O.useRef(null);return O.useEffect(()=>{if(!o.current)return;const s=Mbe(o.current,"locust");s.setOption(B5e({charts:e,title:t,seriesData:$5e({charts:e,lines:r}),colors:n})),s.on("datazoom",u=>{const{batch:c}=u;if(!c)return;const[{start:f,end:d}]=c;f>0&&d<100?s.setOption({toolbox:{feature:{restore:{show:!0}}},dataZoom:[{type:"inside",start:f,end:d},{type:"slider",show:!0,start:f,end:d}]}):s.setOption({toolbox:{feature:{restore:{show:!1}}},dataZoom:[{type:"inside",start:f,end:d},{type:"slider",show:!1,start:f,end:d}]})});const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",kbe("swarmCharts"),a(s),()=>{Ibe(s),window.removeEventListener("resize",l)}},[o]),O.useEffect(()=>{const s=r.every(({key:l})=>!!e[l]);i&&s&&i.setOption({xAxis:{data:e.time},series:r.map(({key:l},u)=>({data:e[l],...u===0?{markLine:F5e(e)}:{}}))})},[e,i,r]),P.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const iq=Ra.percentilesToChart?Ra.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],G5e=["#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"].slice(0,iq.length).concat("#eeff00"),H5e=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[...iq,{name:"Average Response Time",key:"totalAvgResponseTime"}],colors:G5e},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function aq({charts:e}){return P.jsx("div",{children:H5e.map((t,r)=>P.jsx(V5e,{...t,charts:e},`swarm-chart-${r}`))})}const W5e=({ui:{charts:e}})=>({charts:e}),j5e=Ln(W5e)(aq);function U5e(e){return(e*100).toFixed(1)+"%"}function JA({classRatio:e}){return P.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>P.jsxs("li",{children:[`${U5e(r)} ${t}`,n&&P.jsx(JA,{classRatio:n})]},`nested-ratio-${t}`))})}function oq({ratios:{perClass:e,total:t}}){return!e&&!t?null:P.jsxs("div",{children:[e&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Ratio Per Class"}),P.jsx(JA,{classRatio:e})]}),t&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Total Ratio"}),P.jsx(JA,{classRatio:t})]})]})}const q5e=({ui:{ratios:e}})=>({ratios:e}),Y5e=Ln(q5e)(oq),X5e=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:$K}];function Z5e({workers:e=[]}){return P.jsx(qf,{defaultSortKey:"id",rows:e,structure:X5e})}const K5e=({ui:{workers:e}})=>({workers:e}),Q5e=Ln(K5e)(Z5e),J5e=[{component:hge,key:"stats",title:"Statistics"},{component:j5e,key:"charts",title:"Charts"},{component:Qve,key:"failures",title:"Failures"},{component:Xve,key:"exceptions",title:"Exceptions"},{component:Y5e,key:"ratios",title:"Current Ratio"},{component:ige,key:"reports",title:"Download Data"},{component:tge,key:i6,title:"Logs"}],eBe=[{component:Q5e,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],tBe=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},rBe=()=>window.location.search?BK(window.location.search):null,nBe={query:rBe()},sq=ci({name:"url",initialState:nBe,reducers:{setUrl:Tv}}),iBe=sq.actions,aBe=sq.reducer;function oBe({hasNotification:e,title:t}){return P.jsxs(Qe,{sx:{display:"flex",alignItems:"center"},children:[e&&P.jsx(ek,{color:"secondary"}),P.jsx("span",{children:t})]})}function sBe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=O.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),tBe({tab:c}),n({query:{tab:c}}),o(u)};return P.jsxs(jf,{maxWidth:"xl",children:[P.jsx(Qe,{sx:{mb:2},children:P.jsx(iue,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>P.jsx(Hse,{label:P.jsx(oBe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Uve},u)=>a===u&&P.jsx(l,{},`tabpabel-${u}`))]})}const lBe=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=eBe.filter(({shouldDisplayTab:o})=>o(e)),a=[...J5e,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},uBe={setNotification:o6.setNotification,setUrl:iBe.setUrl},cBe=Ln(lBe,uBe)(sBe);var CF;const fBe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:(CF=Ra.history)==null?void 0:CF.reduce(q1,{}),ratios:{},userCount:0};var TF;const dBe=(TF=Ra.percentilesToChart)==null?void 0:TF.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),hBe=e=>q1(e,{...dBe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),lq=ci({name:"ui",initialState:fBe,reducers:{setUi:Tv,updateCharts:(e,{payload:t})=>({...e,charts:q1(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...hBe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),$w=lq.actions,pBe=lq.reducer,_F=2e3;function vBe(){const e=Kl(QM.setSwarm),t=Kl($w.setUi),r=Kl($w.updateCharts),n=Kl($w.updateChartMarkers),i=Zs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Pce(),{data:f,refetch:d}=Dce(),{data:h,refetch:p}=Rce(),v=i.state===mi.SPAWNING||i.state==mi.RUNNING,g=()=>{if(!u)return;const{currentResponseTimePercentiles:m,extendedStats:y,stats:x,errors:S,totalRps:_,totalFailPerSec:b,failRatio:w,workers:C,userCount:A,totalAvgResponseTime:T}=u,M=new Date().toUTCString();s&&(l(!1),n(M));const k=dh(_,2),I=dh(b,2),D=dh(w*100),L={...m,currentRps:k,currentFailPerSec:I,totalAvgResponseTime:dh(T,2),userCount:A,time:M};t({extendedStats:y,stats:x,errors:S,totalRps:k,failRatio:D,workers:C,userCount:A}),r(L)};O.useEffect(()=>{u&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),fh(g,_F,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),fh(c,_F,{shouldRunInterval:v}),fh(d,5e3,{shouldRunInterval:v}),fh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===mi.RUNNING&&a.current===mi.STOPPED&&l(!0),a.current=i.state},[i.state,a])}function gBe({isDarkMode:e,swarmState:t}){vBe(),mfe();const r=O.useMemo(()=>WM(e?Si.DARK:Si.LIGHT),[e]);return P.jsxs(IM,{theme:r,children:[P.jsx(BM,{}),P.jsx(cfe,{children:t===mi.READY?P.jsx(r6,{}):P.jsx(cBe,{})})]})}const mBe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),yBe=Ln(mBe)(gBe),xBe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function SBe({responseTimes:e}){const t=O.useMemo(()=>Object.keys(e[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[e]);return P.jsx(qf,{hasTotalRow:!0,rows:e,structure:[...xBe,...t]})}const bBe=WM(window.theme||$G);function _Be({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return P.jsxs(IM,{theme:bBe,children:[P.jsx(BM,{}),P.jsxs(jf,{maxWidth:"lg",sx:{my:4},children:[P.jsxs(Qe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[P.jsx(We,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&P.jsx(on,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),P.jsxs(Qe,{sx:{my:2},children:[P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"During:"}),P.jsxs(We,{children:[KA(r)," - ",KA(n)]})]}),P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"Target Host:"}),P.jsx(We,{children:a||"None"})]}),P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"Script:"}),P.jsx(We,{children:e})]})]}),P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),P.jsx(Z6,{stats:s})]}),!!u.length&&P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),P.jsx(SBe,{responseTimes:u})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),P.jsx(q6,{errors:l})]}),!!o.length&&P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),P.jsx(U6,{exceptions:o})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),P.jsx(aq,{charts:i})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),P.jsx(oq,{ratios:c})]})]})]})]})}const wBe=w1({[i0.reducerPath]:i0.reducer,logViewer:gfe,notification:dfe,swarm:Zce,theme:VG,ui:pBe,url:aBe}),CBe=Y4({reducer:wBe,middleware:e=>e().concat(i0.middleware)});function TBe(){if(sR){const e=Y4({reducer:w1({theme:VG})});return P.jsx(aR,{store:e,children:P.jsx(wue,{...sR})})}else return lR?P.jsx(_Be,{...lR}):P.jsx(aR,{store:CBe,children:P.jsx(yBe,{})})}function ABe({error:e}){return P.jsxs("div",{role:"alert",children:[P.jsx("p",{children:"Something went wrong"}),e.message&&P.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",P.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const MBe=Vw.createRoot(document.getElementById("root"));MBe.render(P.jsx(zX,{fallbackRender:ABe,children:P.jsx(TBe,{})}));
|