diff --git a/api/frontend/web/assets/index-TD6zDcPt.js b/api/frontend/web/assets/index-Cuq_bkbw.js similarity index 99% rename from api/frontend/web/assets/index-TD6zDcPt.js rename to api/frontend/web/assets/index-Cuq_bkbw.js index 598bcee..101cfa8 100644 --- a/api/frontend/web/assets/index-TD6zDcPt.js +++ b/api/frontend/web/assets/index-Cuq_bkbw.js @@ -77,7 +77,7 @@ PERFORMANCE OF THIS SOFTWARE. `:"
",g=f.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,h,A[0],A[1],this._tooltipContent,l):this._showTooltipContent(o,g,l,Math.random()+"",A[0],A[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,A=Ct(n),o=A.seriesIndex,s=i.getSeriesByIndex(o),l=A.dataModel||s,u=A.dataIndex,f=A.dataType,c=l.getData(f),h=this._renderMode,v=e.positionDefault,d=Ol([c.getItemModel(u),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,f),y=new kg;g.marker=y.makeTooltipMarker("item",go(g.color),h);var m=Ux(l.formatTooltip(u,!1,f)),w=d.get("order"),_=d.get("valueFormatter"),B=m.frag,C=B?Nx(_?V({valueFormatter:_},B):B,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,S,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",A=Ct(n),o=A.tooltipConfig,s=o.option||{},l=s.encodeHTMLContent;if(nt(s)){var u=s;s={content:u,formatter:u},l=!0}l&&i&&s.content&&(s=mt(s),s.content=Dr(s.content));var f=[s],c=this._ecModel.getComponent(A.componentMainType,A.componentIndex);c&&f.push(c),f.push({formatter:s.content});var h=e.positionDefault,v=Ol(f,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new kg;this._showOrMove(v,function(){var y=mt(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,e.offsetX,e.offsetY,e.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,A,o,s,l,u){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var c=e.get("formatter");s=s||e.get("position");var h=n,v=this._getNearestPoint([A,o],a,e.get("trigger"),e.get("borderColor")),d=v.color;if(c)if(nt(c)){var p=e.ecModel.get("useUTC"),g=K(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=jd(g.axisValue,h,p)),h=AU(h,a,!0)}else if(vt(c)){var m=it(function(w,_){w===this._ticket&&(f.setContent(_,u,e,d,s),this._updatePosition(e,s,A,o,f,a,l))},this);this._ticket=i,h=c(a,i,m)}else h=c;f.setContent(h,u,e,d,s),f.show(e,d),this._updatePosition(e,s,A,o,f,a,l)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||K(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!K(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,A,o,s){var l=this._api.getWidth(),u=this._api.getHeight();n=n||e.get("position");var f=A.getSize(),c=e.get("align"),h=e.get("verticalAlign"),v=s&&s.getBoundingRect().clone();if(s&&v.applyTransform(s.transform),vt(n)&&(n=n([a,i],o,A.el,v,{viewSize:[l,u],contentSize:f.slice()})),K(n))a=et(n[0],l),i=et(n[1],u);else if(yt(n)){var d=n;d.width=f[0],d.height=f[1];var p=Le(d,{width:l,height:u});a=p.x,i=p.y,c=null,h=null}else if(nt(n)&&s){var g=Net(n,v,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=Oet(a,i,A,l,u,c?null:20,h?null:20);a=g[0],i=g[1]}if(c&&(a-=$F(c)?f[0]/2:c==="right"?f[0]:0),h&&(i-=$F(h)?f[1]/2:h==="bottom"?f[1]:0),CH(e)){var g=ket(a,i,A,l,u);a=g[0],i=g[1]}A.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,A=!!a&&a.length===e.length;return A&&T(a,function(o,s){var l=o.dataByAxis||[],u=e[s]||{},f=u.dataByAxis||[];A=A&&l.length===f.length,A&&T(l,function(c,h){var v=f[h]||{},d=c.seriesDataIndices||[],p=v.seriesDataIndices||[];A=A&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===p.length,A&&T(d,function(g,y){var m=p[y];A=A&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&T(c.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(A=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!A},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Ut.node||!n.getDom()||(lf(this,"_updatePosition"),this._tooltipContent.dispose(),xw("itemTooltip",n))},t.type="tooltip",t}(de);function Ol(r,t,e){var n=t.ecModel,a;e?(a=new Yt(e,n,n),a=new Yt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var A=r[i];A&&(A instanceof Yt&&(A=A.get("tooltip",!0)),nt(A)&&(A={formatter:A}),A&&(a=new Yt(A,a,n)))}return a}function ZF(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function Oet(r,t,e,n,a,i,A){var o=e.getSize(),s=o[0],l=o[1];return i!=null&&(r+s+i+2>n?r-=s+i:r+=i),A!=null&&(t+l+A>a?t-=l+A:t+=A),[r,t]}function ket(r,t,e,n,a){var i=e.getSize(),A=i[0],o=i[1];return r=Math.min(r+A,n)-A,t=Math.min(t+o,a)-o,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Net(r,t,e,n){var a=e[0],i=e[1],A=Math.ceil(Math.SQRT2*n)+8,o=0,s=0,l=t.width,u=t.height;switch(r){case"inside":o=t.x+l/2-a/2,s=t.y+u/2-i/2;break;case"top":o=t.x+l/2-a/2,s=t.y-i-A;break;case"bottom":o=t.x+l/2-a/2,s=t.y+u+A;break;case"left":o=t.x-a-A,s=t.y+u/2-i/2;break;case"right":o=t.x+l+A,s=t.y+u/2-i/2}return[o,s]}function $F(r){return r==="center"||r==="middle"}function Vet(r,t,e){var n=qB(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Qf(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),A=i.models[0];if(A){var o=e.getViewOfComponentModel(A),s;if(o.group.traverse(function(l){var u=Ct(l).tooltipConfig;if(u&&u.name===r.name)return s=l,!0}),s)return{componentMainType:a,componentIndex:A.componentIndex,el:s}}}}function Get(r){Lt(Jf),r.registerComponentModel(xet),r.registerComponentView(Het),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var Ket=["rect","polygon","keep","clear"];function zet(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];T(e,function(s){var l=s.hasOwnProperty("toolbox")?s.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;K(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),A=i.brush||(i.brush={}),o=A.type||(A.type=[]);o.push.apply(o,n),Wet(o),t&&!o.length&&o.push.apply(o,Ket)}}function Wet(r){var t={};T(r,function(e){t[e]=1}),r.length=0,T(t,function(e,n){r.push(n)})}var JF=T;function qF(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Dw(r,t,e){var n={};return JF(t,function(i){var A=n[i]=a();JF(r[i],function(o,s){if(He.isValidType(s)){var l={type:s,visual:o};e&&e(l,i),A[s]=new He(l),s==="opacity"&&(l=mt(l),l.type="colorAlpha",A.__hidden.__alphaForOpacity=new He(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var A=new i;return A}}function TH(r,t,e){var n;T(e,function(a){t.hasOwnProperty(a)&&qF(t[a])&&(n=!0)}),n&&T(e,function(a){t.hasOwnProperty(a)&&qF(t[a])?r[a]=mt(t[a]):delete r[a]})}function Xet(r,t,e,n,a,i){var A={};T(r,function(f){var c=He.prepareVisualTypes(t[f]);A[f]=c});var o;function s(f){return T_(e,o,f)}function l(f,c){ZU(e,o,f,c)}e.each(u);function u(f,c){o=f;var h=e.getRawDataItem(o);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),d=t[v],p=A[v],g=0,y=p.length;gt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&nE(t)}};function nE(r){return new Dt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var ert=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new uC(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){IH(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(a),$from:n})},t.type="brush",t}(de),rrt="#ddd",nrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&TH(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:rrt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(n){return aE(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=aE(this.option,e),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}(Rt);function aE(r,t){return Et({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Yt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var art=["rect","polygon","lineX","lineY","keep","clear"],irt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,A,o;n.eachComponent({mainType:"brush"},function(s){i=s.brushType,A=s.brushOption.brushMode||"single",o=o||!!s.areas.length}),this._brushType=i,this._brushMode=A,T(e.get("type",!0),function(s){e.setIconStatus(s,(s==="keep"?A==="multiple":s==="clear"?o:s===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return T(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,A=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?A==="multiple"?"single":"multiple":A}})},t.getDefaultOption=function(e){var n={show:!0,type:art.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:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(on);function Art(r){r.registerComponentView(ert),r.registerComponentModel(nrt),r.registerPreprocessor(zet),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,$et),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Be),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Be),us("brush",irt)}var ort=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}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}(Rt),srt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,A=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),l=xt(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Gt({style:oe(A,{text:e.get("text"),fill:A.getTextColor()},{disableBox:!0}),z2:10}),f=u.getBoundingRect(),c=e.get("subtext"),h=new Gt({style:oe(o,{text:c,fill:o.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){Mv(v,"_"+e.get("target"))}),d&&h.on("click",function(){Mv(d,"_"+e.get("subtarget"))}),Ct(u).eventData=Ct(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(u),c&&i.add(h);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=Le(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),s==="middle"&&(s="center"),s==="right"?m.x+=m.width:s==="center"&&(m.x+=m.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var w={align:s,verticalAlign:l};u.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=m.margin,B=e.getItemStyle(["color","opacity"]);B.fill=e.get("backgroundColor");var C=new Nt({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(de);function lrt(r){r.registerComponentModel(ort),r.registerComponentView(srt)}var iE=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],A;a==="category"?(A=[],T(n,function(l,u){var f=De($s(l),""),c;yt(l)?(c=mt(l),c.value=u):c=u,A.push(c),i.push(f)})):A=n;var o={category:"ordinal",time:"time",value:"number"}[a]||"number",s=this._data=new mr([{name:"value",type:o}],this);s.initData(A,i)},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}(Rt),FH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=nA(iE.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}(iE);Fe(FH,Ap.prototype);var urt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(de),frt=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this,e,n,a)||this;return A.type=i||"value",A}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(kn),nm=Math.PI,AE=Vt(),crt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),A=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(l){var u=s.scale.getLabel({value:l});return ke("nameValue",{noName:!0,value:u})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,A,s,e)},this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),A=vrt(e,n),o;a==null||a==="auto"?o=i==="horizontal"?A.y+A.height/2=0||o==="+"?"left":"right"},l={horizontal:o>=0||o==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:nm/2},f=i==="vertical"?A.height:A.width,c=e.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,p=v+d,g=e.get(["label","rotate"])||0;g=g*nm/180;var y,m,w,_=c.get("position",!0),B=h&&c.get("showPlayBtn",!0),C=h&&c.get("showPrevBtn",!0),S=h&&c.get("showNextBtn",!0),x=0,b=f;_==="left"||_==="bottom"?(B&&(y=[0,0],x+=p),C&&(m=[x,0],x+=p),S&&(w=[b-v,0],b-=p)):(B&&(y=[b-v,0],b-=p),C&&(m=[0,0],x+=p),S&&(w=[b-v,0],b-=p));var I=[x,b];return e.get("inverse")&&I.reverse(),{viewRect:A,mainLength:f,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:o,labelAlign:e.get(["label","align"])||s[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:I,controlSize:v,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,A=e.viewRect;if(e.orient==="vertical"){var o=Wr(),s=A.x,l=A.y+A.height;va(o,o,[-s,-l]),Co(o,o,-nm/2),va(o,o,[s,l]),A=A.clone(),A.applyTransform(o)}var u=y(A),f=y(a.getBoundingRect()),c=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var p=d==="+"?0:1;m(h,f,u,1,p),m(v,c,u,1,1-p)}else{var p=d>=0?0:1;m(h,f,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=e.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,_,B,C,S){w[C]+=B[C][S]-_[C][S]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),A=hrt(n,i);A.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var o=a.getDataExtent("value");A.setExtent(o[0],o[1]),A.calcNiceTicks();var s=new frt("value",A,e.axisExtent,i);return s.model=n,s},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var A=a.getExtent();if(i.get(["lineStyle","show"])){var o=new Pe({shape:{x1:A[0],y1:0,x2:A[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(o);var s=this._progressLine=new Pe({shape:{x1:A[0],x2:this._currentPointer?this._currentPointer.x:A[0],y1:0,y2:0},style:gt({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(s)}},t.prototype._renderAxisTick=function(e,n,a,i){var A=this,o=i.getData(),s=a.scale.getTicks();this._tickSymbols=[],T(s,function(l){var u=a.dataToCoord(l.value),f=o.getItemModel(l.value),c=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:it(A._changeTimeline,A,l.value)},p=oE(f,c,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),no(p);var g=Ct(p);f.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,A._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(e,n,a,i){var A=this,o=a.getLabelModel();if(o.get("show")){var s=i.getData(),l=a.getViewLabels();this._tickLabels=[],T(l,function(u){var f=u.tickValue,c=s.getItemModel(f),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new Gt({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:it(A._changeTimeline,A,f),silent:!1,style:oe(h,{text:u.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});g.ensureState("emphasis").style=oe(v),g.ensureState("progress").style=oe(d),n.add(g),no(g),AE(g).dataIndex=f,A._tickLabels.push(g)})}},t.prototype._renderControl=function(e,n,a,i){var A=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),f=i.get("inverse",!0);c(e.nextBtnPosition,"next",it(this._changeTimeline,this,f?"-":"+")),c(e.prevBtnPosition,"prev",it(this._changeTimeline,this,f?"+":"-")),c(e.playPosition,u?"stop":"play",it(this._handlePlayClick,this,!u),!0);function c(h,v,d,p){if(h){var g=Rn(xt(i.get(["controlStyle",v+"BtnSize"]),A),A),y=[0,-g/2,g,g],m=drt(i,v+"Icon",y,{x:h[0],y:h[1],originX:A/2,originY:0,rotation:p?-o:0,rectHover:!0,style:s,onclick:d});m.ensureState("emphasis").style=l,n.add(m),no(m)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var A=i.getData(),o=i.getCurrentIndex(),s=A.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(f){f.draggable=!0,f.drift=it(l._handlePointerDrag,l),f.ondragend=it(l._handlePointerDragend,l),sE(f,l._progressLine,o,a,i,!0)},onUpdate:function(f){sE(f,l._progressLine,o,a,i)}};this._currentPointer=oE(s,s,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,A=fn(i.getExtent().slice());a>A[1]&&(a=A[1]),a=0&&(A[i]=+A[i].toFixed(c)),[A,f]}var am={min:bt(Ah,"min"),max:bt(Ah,"max"),average:bt(Ah,"average"),median:bt(Ah,"median")};function Cf(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!Brt(t)&&!K(t.coord)&&K(a)){var i=EH(t,e,n,r);if(t=mt(t),t.type&&am[t.type]&&i.baseAxis&&i.valueAxis){var A=Qt(a,i.baseAxis.dim),o=Qt(a,i.valueAxis.dim),s=am[t.type](e,i.baseDataDim,i.valueDataDim,A,o);t.coord=s[0],t.value=s[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(a))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)am[l[u]]&&(l[u]=OC(e,e.mapDimension(a[u]),l[u]));return t}}function EH(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(_rt(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function _rt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Sf(r,t){return r&&r.containData&&t.coord&&!Lw(t)?r.containData(t.coord):!0}function Crt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Lw(t)&&!Lw(e)?r.containZone(t.coord,e.coord):!0}function DH(r,t){return r?function(e,n,a,i){var A=i<2?e.coord&&e.coord[i]:e.value;return Oi(A,t[i])}:function(e,n,a,i){return Oi(e.value,t[i])}}function OC(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,A){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var im=Vt(),kC=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,a){var i=this,A=this.markerGroupMap;A.each(function(o){im(o).keep=!1}),n.eachSeries(function(o){var s=Ja.getMarkerModelFromSeries(o,i.type);s&&i.renderSeries(o,s,n,a)}),A.each(function(o){!im(o).keep&&i.group.remove(o.group)})},t.prototype.markKeep=function(e){im(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;T(e,function(i){var A=Ja.getMarkerModelFromSeries(i,a.type);if(A){var o=A.getData();o.eachItemGraphicEl(function(s){s&&(n?CM(s):i_(s))})}})},t.type="marker",t}(de);function uE(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),A,o=et(i.get("x"),e.getWidth()),s=et(i.get("y"),e.getHeight());if(!isNaN(o)&&!isNaN(s))A=[o,s];else if(t.getMarkerPosition)A=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var l=r.get(n.dimensions[0],a),u=r.get(n.dimensions[1],a);A=n.dataToPoint([l,u])}isNaN(o)||(A[0]=o),isNaN(s)||(A[1]=s),r.setItemLayout(a,A)})}var Srt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markPoint");A&&(uE(A.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new Kf),f=xrt(A,e,n);n.setData(f),uE(n.getData(),e,i),f.each(function(c){var h=f.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(vt(v)||vt(d)||vt(p)||vt(g)){var m=n.getRawValue(c),w=n.getDataParams(c);vt(v)&&(v=v(m,w)),vt(d)&&(d=d(m,w)),vt(p)&&(p=p(m,w)),vt(g)&&(g=g(m,w))}var _=h.getModel("itemStyle").getItemStyle(),B=kf(s,"color");_.fill||(_.fill=B),f.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:_})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(c){c.traverse(function(h){Ct(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(kC);function xrt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(o){var s=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return V(V({},s),{name:o,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=Y(e.get("data"),bt(Cf,t));r&&(i=Jt(i,bt(Sf,r)));var A=DH(!!r,n);return a.initData(i,null,A),a}function brt(r){r.registerComponentModel(wrt),r.registerComponentView(Srt),r.registerPreprocessor(function(t){HC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Trt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},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}(Ja),oh=Vt(),Irt=function(r,t,e,n){var a=r.getData(),i;if(K(n))i=n;else{var A=n.type;if(A==="min"||A==="max"||A==="average"||A==="median"||n.xAxis!=null||n.yAxis!=null){var o=void 0,s=void 0;if(n.yAxis!=null||n.xAxis!=null)o=t.getAxis(n.yAxis!=null?"y":"x"),s=Ge(n.yAxis,n.xAxis);else{var l=EH(n,a,t,r);o=l.valueAxis;var u=S2(a,l.valueDataDim);s=OC(a,u,A)}var f=o.dim==="x"?0:1,c=1-f,h=mt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=e.get("precision");d>=0&&Kt(s)&&(s=+s.toFixed(Math.min(d,20))),h.coord[f]=v.coord[f]=s,i=[h,v,{type:A,valueIndex:n.valueIndex,value:s}]}else i=[]}var p=[Cf(r,i[0]),Cf(r,i[1]),V({},i[2])];return p[2].type=p[2].type||null,Et(p[2],p[0]),Et(p[2],p[1]),p};function id(r){return!isNaN(r)&&!isFinite(r)}function fE(r,t,e,n){var a=1-r,i=n.dimensions[r];return id(t[a])&&id(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function Frt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(fE(1,e,n,r)||fE(0,e,n,r)))return!0}return Sf(r,t[0])&&Sf(r,t[1])}function Am(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get("x"),a.getWidth()),l=et(A.get("y"),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition)o=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var u=i.dimensions,f=r.get(u[0],t),c=r.get(u[1],t);o=i.dataToPoint([f,c])}if(To(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;id(r.get(u[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):id(r.get(u[1],t))&&(o[1]=v.toGlobalCoord(v.getExtent()[e?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}r.setItemLayout(t,o)}var Ert=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markLine");if(A){var o=A.getData(),s=oh(A).from,l=oh(A).to;s.each(function(u){Am(s,u,!0,i,a),Am(l,u,!1,i,a)}),o.each(function(u){o.setItemLayout(u,[s.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new lC);this.group.add(u.group);var f=Drt(A,e,n),c=f.from,h=f.to,v=f.line;oh(n).from=c,oh(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");K(d)||(d=[d,d]),K(p)||(p=[p,p]),K(g)||(g=[g,g]),K(y)||(y=[y,y]),f.from.each(function(w){m(c,w,!0),m(h,w,!1)}),v.each(function(w){var _=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[c.getItemLayout(w),h.getItemLayout(w)]),_.stroke==null&&(_.stroke=c.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:c.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(w,"symbolOffset"),fromSymbolRotate:c.getItemVisual(w,"symbolRotate"),fromSymbolSize:c.getItemVisual(w,"symbolSize"),fromSymbol:c.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:_})}),u.updateData(v),f.line.eachItemGraphicEl(function(w){Ct(w).dataModel=n,w.traverse(function(_){Ct(_).dataModel=n})});function m(w,_,B){var C=w.getItemModel(_);Am(w,_,B,e,i);var S=C.getModel("itemStyle").getItemStyle();S.fill==null&&(S.fill=kf(s,"color")),w.setItemVisual(_,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:xt(C.get("symbolOffset",!0),y[B?0:1]),symbolRotate:xt(C.get("symbolRotate",!0),g[B?0:1]),symbolSize:xt(C.get("symbolSize"),p[B?0:1]),symbol:xt(C.get("symbol",!0),d[B?0:1]),style:S})}this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(kC);function Drt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(l){var u=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return V(V({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=new mr(n,e),A=new mr([],e),o=Y(e.get("data"),bt(Irt,t,r,e));r&&(o=Jt(o,bt(Frt,r)));var s=DH(!!r,n);return a.initData(Y(o,function(l){return l[0]}),null,s),i.initData(Y(o,function(l){return l[1]}),null,s),A.initData(Y(o,function(l){return l[2]})),A.hasItemOption=!0,{from:a,to:i,line:A}}function Qrt(r){r.registerComponentModel(Trt),r.registerComponentView(Ert),r.registerPreprocessor(function(t){HC(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Lrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},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}(Ja),sh=Vt(),Mrt=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var A=Cf(r,a),o=Cf(r,i),s=A.coord,l=o.coord;s[0]=Ge(s[0],-1/0),s[1]=Ge(s[1],-1/0),l[0]=Ge(l[0],1/0),l[1]=Ge(l[1],1/0);var u=NB([{},A,o]);return u.coord=[A.coord,o.coord],u.x0=A.x,u.y0=A.y,u.x1=o.x,u.y1=o.y,u}};function Ad(r){return!isNaN(r)&&!isFinite(r)}function cE(r,t,e,n){var a=1-r;return Ad(t[a])&&Ad(e[a])}function Urt(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return To(r,"cartesian2d")?e&&n&&(cE(1,e,n)||cE(0,e,n))?!0:Crt(r,a,i):Sf(r,a)||Sf(r,i)}function hE(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get(e[0]),a.getWidth()),l=et(A.get(e[1]),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],t),f=r.getValues(["x1","y1"],t),c=i.clampData(u),h=i.clampData(f),v=[];e[0]==="x0"?v[0]=c[0]>h[0]?f[0]:u[0]:v[0]=c[0]>h[0]?u[0]:f[0],e[1]==="y0"?v[1]=c[1]>h[1]?f[1]:u[1]:v[1]=c[1]>h[1]?u[1]:f[1],o=n.getMarkerPosition(v,e,!0)}else{var d=r.get(e[0],t),p=r.get(e[1],t),g=[d,p];i.clampData&&i.clampData(g,g),o=i.dataToPoint(g,!0)}if(To(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(e[0],t),p=r.get(e[1],t);Ad(d)?o[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):Ad(p)&&(o[1]=m.toGlobalCoord(m.getExtent()[e[1]==="y0"?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}return o}var vE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Prt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markArea");if(A){var o=A.getData();o.each(function(s){var l=Y(vE,function(f){return hE(o,s,f,i,a)});o.setItemLayout(s,l);var u=o.getItemGraphicEl(s);u.setShape("points",l)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new _t});this.group.add(u.group),this.markKeep(u);var f=Rrt(A,e,n);n.setData(f),f.each(function(c){var h=Y(vE,function(S){return hE(f,c,S,e,i)}),v=A.getAxis("x").scale,d=A.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(f.get("x0",c)),v.parse(f.get("x1",c))],m=[d.parse(f.get("y0",c)),d.parse(f.get("y1",c))];fn(y),fn(m);var w=!(p[0]>y[1]||p[1]m[1]||g[1]=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}(Rt),Yo=bt,Uw=T,lh=_t,QH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new lh),this.group.add(this._selectorGroup=new lh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var A=e.get("align"),o=e.get("orient");(!A||A==="auto")&&(A=e.get("left")==="right"&&o==="vertical"?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||l==="auto")&&(l=o==="horizontal"?"end":"start"),this.renderInner(A,e,n,a,s,o,l);var u=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),h=Le(u,f,c),v=this.layoutInner(e,A,h,i,s,l),d=Le(gt({width:v.width,height:v.height},u),f,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wH(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this.getContentGroup(),u=ft(),f=n.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Uw(n.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` `)){var p=new lh;p.newline=!0,l.add(p);return}var g=a.getSeriesByName(d)[0];if(!u.get(d))if(g){var y=g.getData(),m=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),_=y.getVisual("style"),B=this._createItem(g,d,v,h,n,e,m,_,w,f,i);B.on("click",Yo(dE,d,null,i,c)).on("mouseover",Yo(Pw,g.name,null,i,c)).on("mouseout",Yo(Rw,g.name,null,i,c)),a.ssr&&B.eachChild(function(C){var S=Ct(C);S.seriesIndex=g.seriesIndex,S.dataIndex=v,S.ssrType="legend"}),u.set(d,!0)}else a.eachRawSeries(function(C){if(!u.get(d)&&C.legendVisualProvider){var S=C.legendVisualProvider;if(!S.containName(d))return;var x=S.indexOfName(d),b=S.getItemVisual(x,"style"),I=S.getItemVisual(x,"legendIcon"),F=Xr(b.fill);F&&F[3]===0&&(F[3]=.2,b=V(V({},b),{fill:Oa(F,"rgba")}));var E=this._createItem(C,d,v,h,n,e,{},b,I,f,i);E.on("click",Yo(dE,null,d,i,c)).on("mouseover",Yo(Pw,null,d,i,c)).on("mouseout",Yo(Rw,null,d,i,c)),a.ssr&&E.eachChild(function(D){var Q=Ct(D);Q.seriesIndex=C.seriesIndex,Q.dataIndex=v,Q.ssrType="legend"}),u.set(d,!0)}},this)},this),A&&this._createSelector(A,n,i,o,s)},t.prototype._createSelector=function(e,n,a,i,A){var o=this.getSelectorGroup();Uw(e,function(l){var u=l.type,f=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});o.add(f);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Je(f,{normal:c,emphasis:h},{defaultText:l.title}),no(f)})},t.prototype._createItem=function(e,n,a,i,A,o,s,l,u,f,c){var h=e.visualDrawType,v=A.get("itemWidth"),d=A.get("itemHeight"),p=A.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var w=krt(u,i,s,l,h,p,c),_=new lh,B=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!m||m==="inherit"))_.add(e.getLegendIcon({itemWidth:v,itemHeight:d,icon:u,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var C=m==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;_.add(Nrt({itemWidth:v,itemHeight:d,icon:u,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var S=o==="left"?v+5:-5,x=o,b=A.get("formatter"),I=n;nt(b)&&b?I=b.replace("{name}",n??""):vt(b)&&(I=b(n));var F=p?B.getTextColor():i.get("inactiveColor");_.add(new Gt({style:oe(B,{text:I,x:S,y:d/2,fill:F,align:x,verticalAlign:"middle"},{inheritColor:F})}));var E=new Nt({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&js({el:E,componentModel:A,itemName:n,itemTooltipOption:D.option}),_.add(E),_.eachChild(function(Q){Q.silent=!0}),E.silent=!f,this.getContentGroup().add(_),no(_),_.__legendDataIndex=a,_},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getContentGroup(),l=this.getSelectorGroup();io(e.get("orient"),s,e.get("itemGap"),a.width,a.height);var u=s.getBoundingRect(),f=[-u.x,-u.y];if(l.markRedraw(),s.markRedraw(),A){io("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),h=[-c.x,-c.y],v=e.get("selectorButtonGap",!0),d=e.getOrient().index,p=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";o==="end"?h[d]+=u[p]+v:f[d]+=c[p]+v,h[1-d]+=u[g]/2-c[g]/2,l.x=h[0],l.y=h[1],s.x=f[0],s.y=f[1];var m={x:0,y:0};return m[p]=u[p]+v+c[p],m[g]=Math.max(u[g],c[g]),m[y]=Math.min(0,c[y]+h[1-d]),m}else return s.x=f[0],s.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(de);function krt(r,t,e,n,a,i,A){function o(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Uw(p,function(y,m){p[m]==="inherit"&&(p[m]=g[m])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=s.getShallow("decal");l.decal=!f||f==="inherit"?n.decal:Hs(f,A),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:e).opacity),o(l,n);var c=t.getModel("lineStyle"),h=c.getLineStyle();if(o(h,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),d=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&d?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function Nrt(r){var t=r.icon||"roundRect",e=Ie(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function dE(r,t,e,n){Rw(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Pw(r,t,e,n)}function LH(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[A],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=xt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var w=e.get("pageButtonPosition",!0);w==="end"?y[i]+=a[A]-v[A]:g[i]+=v[A]+m}y[1-i]+=h[o]/2-v[o]/2,u.setPosition(p),f.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[A]=d?a[A]:h[A],_[o]=Math.max(h[o],v[o]),_[s]=Math.min(0,v[s]+y[1-i]),f.__rectSize=a[A],d){var B={x:0,y:0};B[A]=Math.max(a[A]-v[A]-m,0),B[o]=_[o],f.setClipPath(new Nt({shape:B})),f.__rectSize=B[A]}else c.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&zt(u,{x:C.contentPosition[0],y:C.contentPosition[1]},d?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",c=n[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),A=e.get("pageFormatter"),o=n.pageIndex,s=o!=null?o+1:0,l=n.pageCount;i&&A&&i.setStyle("text",nt(A)?A.replace("{current}",s==null?"":s+"").replace("{total}",l==null?"":l+""):A({current:s,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,A=e.getOrient().index,o=om[A],s=sm[A],l=this._findTargetItemIndex(n),u=a.children(),f=u[l],c=u.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var d=w(f);v.contentPosition[A]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=c;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!_(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!_(y,m.s))&&g.i=C&&B.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(A,o){var s=A.__legendDataIndex;i==null&&s!=null&&(i=o),s===e&&(n=o)}),n??i},t.type="legend.scroll",t}(QH);function Wrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Xrt(r){Lt(MH),r.registerComponentModel(Krt),r.registerComponentView(zrt),Wrt(r)}function Yrt(r){Lt(MH),Lt(Xrt)}var Zrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=nA(_f.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_f),NC=Vt();function $rt(r,t,e){NC(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function Jrt(r,t){for(var e=NC(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=o),a=a&&A.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function rnt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=NC(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ft());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var A=gH(i);T(A.infoList,function(o){var s=o.model.uid,l=a.get(s)||a.set(s,qrt(e,o.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=ft());u.set(i.uid,{dzReferCoordSysInfo:o,model:i,getRange:null})})}),a.each(function(i){var A=i.controller,o,s=i.dataZoomInfoMap;if(s){var l=s.keys()[0];l!=null&&(o=s.get(l))}if(!o){UH(a,i);return}var u=ent(s);A.enable(u.controlType,u.opt),A.setPointerChecker(i.containsPoint),Al(i,"dispatchAction",o.model.get("throttle",!0),"fixRate")})})}var nnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),$rt(a,e,{pan:it(lm.pan,this),zoom:it(lm.zoom,this),scrollMove:it(lm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Jrt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(QC),lm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),A=r.axisModels[0];if(A){var o=um[t](null,[n.originX,n.originY],A,e,r),s=(o.signal>0?o.pixelStart+o.pixelLength-o.pixel:o.pixel-o.pixelStart)/o.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-s)*l+s,i[1]=(i[1]-s)*l+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:yE(function(r,t,e,n,a,i){var A=um[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return A.signal*(r[1]-r[0])*A.pixel/A.pixelLength}),scrollMove:yE(function(r,t,e,n,a,i){var A=um[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return A.signal*(r[1]-r[0])*i.scrollDelta})};function yE(r){return function(t,e,n,a){var i=this.range,A=i.slice(),o=t.axisModels[0];if(o){var s=r(A,o,t,e,n,a);if(Fo(s,A,[0,100],"all"),this.range=A,i[0]!==A[0]||i[1]!==A[1])return A}}}var um={grid:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(A.pixel=t[0]-r[0],A.pixelLength=o.width,A.pixelStart=o.x,A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=o.height,A.pixelStart=o.y,A.signal=i.inverse?-1:1),A},polar:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return r=r?o.pointToCoord(r):[0,0],t=o.pointToCoord(t),e.mainType==="radiusAxis"?(A.pixel=t[0]-r[0],A.pixelLength=s[1]-s[0],A.pixelStart=s[0],A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=l[1]-l[0],A.pixelStart=l[0],A.signal=i.inverse?-1:1),A},singleAxis:function(r,t,e,n,a){var i=e.axis,A=a.model.coordinateSystem.getRect(),o={};return r=r||[0,0],i.orient==="horizontal"?(o.pixel=t[0]-r[0],o.pixelLength=A.width,o.pixelStart=A.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=A.height,o.pixelStart=A.y,o.signal=i.inverse?-1:1),o}};function PH(r){LC(r),r.registerComponentModel(Zrt),r.registerComponentView(nnt),rnt(r)}var ant=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=nA(_f.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}(_f),Vl=Nt,mE=7,int=1,fm=30,Ant=7,Gl="horizontal",wE="vertical",ont=5,snt=["line","bar","candlestick","scatter"],lnt={easing:"cubicOut",duration:100,delay:0},unt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Al(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lf(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?Ant:0,A=this._findCoordRect(),o={width:n.getWidth(),height:n.getHeight()},s=this._orient===Gl?{right:o.width-A.x-A.width,top:o.height-fm-mE-i,width:A.width,height:fm}:{right:mE,top:A.y,width:fm,height:A.height},l=nl(e.option);T(["right","top","width","height"],function(f){l[f]==="ph"&&(l[f]=s[f])});var u=Le(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===wE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),A=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a===Gl&&!A?{scaleY:s?1:-1,scaleX:1}:a===Gl&&A?{scaleY:s?1:-1,scaleX:-1}:a===wE&&!A?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([o]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Vl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var A=new Vl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(A.on("mousedown",this._onBrushStart,this),A.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(A)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,A=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&A.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(A!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=A.getDataExtent(s),c=(f[1]-f[0])*.3;f=[f[0]-c,f[1]+c];var h=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(A.count()-1),y=0,m=Math.round(A.count()/n[0]),w;A.each([s],function(x,b){if(m>0&&b%m){y+=g;return}var I=x==null||isNaN(x)||x==="",F=I?0:$t(x,f,h,!0);I&&!w&&b?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!I&&w&&(d.push([y,0]),p.push([y,0])),d.push([y,F]),p.push([y,F]),y+=g,w=I}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=A,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function B(x){var b=_.getModel(x?"selectedDataBackground":"dataBackground"),I=new _t,F=new Sr({shape:{points:l},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new xr({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(F),I.add(E),I}for(var C=0;C<3;C++){var S=B(C===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(A,o){var s=e.getAxisProxy(A,o).getTargetSeriesModels();T(s,function(l){if(!a&&!(n!==!0&&Qt(snt,l.get("type"))<0)){var u=i.getComponent(Li(A),o).axis,f=fnt(A),c,h=l.coordinateSystem;f!=null&&h.getOtherAxis&&(c=h.getOtherAxis(u).inverse),f=l.getData().mapDimension(f),a={thisAxis:u,series:l,thisDim:A,otherDim:f,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],A=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,f=s.get("brushSelect"),c=n.filler=new Vl({silent:f,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});A.add(c),A.add(new Vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:int,fill:"rgba(0,0,0,0)"}})),T([0,1],function(m){var w=s.get("handleIcon");!Rv[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=Ie(w,-1,0,2,2,null,!0);_.attr({cursor:BE(this._orient),draggable:!0,drift:it(this._onDragMove,this,m),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var B=_.getBoundingRect(),C=s.get("handleSize");this._handleHeight=et(C,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,_.setStyle(s.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),no(_);var S=s.get("handleColor");S!=null&&(_.style.fill=S),A.add(a[m]=_);var x=s.getModel("textStyle");e.add(i[m]=new Gt({silent:!0,invisible:!0,style:oe(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=c;if(f){var v=et(s.get("moveHandleSize"),o[1]),d=n.moveHandle=new Nt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=Ie(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+v/2-.5,d.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(v,10));h=n.moveZone=new Nt({invisible:!0,shape:{y:o[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),A.add(d),A.add(g),A.add(h)}h.attr({draggable:!0,cursor:BE(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],n,!0),$t(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,A=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Fo(n,i,A,a.get("zoomLock")?"all":e,o.minSpan!=null?$t(o.minSpan,s,A,!0):null,o.maxSpan!=null?$t(o.maxSpan,s,A,!0):null);var l=this._range,u=this._range=fn([$t(i[0],A,s,!0),$t(i[1],A,s,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=fn(a.slice()),A=this._size;T([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:A[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:A[1]});var o={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(o),n.moveZone.setShape(o),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=n.dataShadowSegs,l=[0,i[0],i[1],A[0]],u=0;un[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,A=(i[0]+i[1])/2,o=this._updateInterval("all",a[0]-A);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new It(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var A=this._getViewExtent(),o=[0,100];this._range=fn([$t(a.x,A,o,!0),$t(a.x+a.width,A,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,A=a.brushRect;A||(A=a.brushRect=new Vl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(A)),A.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,l=s.transformCoordToLocal(e,n),u=s.transformCoordToLocal(o.x,o.y),f=this._size;l[0]=Math.max(Math.min(f[0],l[0]),0),A.setShape({x:u[0],y:0,width:l[0]-u[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?lnt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=gH(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),A=this.api.getHeight();e={x:i*.2,y:A*.2,width:i*.6,height:A*.6}}return e},t.type="dataZoom.slider",t}(QC);function fnt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function BE(r){return r==="vertical"?"ns-resize":"ew-resize"}function RH(r){r.registerComponentModel(ant),r.registerComponentView(unt),LC(r)}function cnt(r){Lt(PH),Lt(RH)}var HH={get:function(r,t,e){var n=mt((hnt[r]||{})[t]);return e&&K(n)?n[n.length-1]:n}},hnt={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]}},_E=He.mapVisual,vnt=He.eachVisual,dnt=K,CE=T,pnt=fn,gnt=$t,od=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&TH(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Dw(this.option.controller,n,e),this.targetVisuals=Dw(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){T(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,A=i.precision,o=this.dataBound,s=i.formatter,l;a=a||["<",">"],K(e)&&(e=e.slice(),l=!0);var u=n?e:l?[f(e[0]),f(e[1])]:f(e);if(nt(s))return s.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(vt(s))return l?s(e[0],e[1]):s(e);if(l)return e[0]===o[0]?a[0]+" "+u[1]:e[1]===o[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function f(c){return c===o[0]?"min":c===o[1]?"max":(+c).toFixed(Math.min(A,20))}},t.prototype.resetExtent=function(){var e=this.option,n=pnt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var A=a[i],o=e.getDimensionInfo(A);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),A=n.controller||(n.controller={});Et(i,a),Et(A,a);var o=this.isCategory();s.call(this,i),s.call(this,A),l.call(this,i,"inRange","outOfRange"),u.call(this,A);function s(f){dnt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function l(f,c,h){var v=f[c],d=f[h];v&&!d&&(d=f[h]={},CE(v,function(p,g){if(He.isValidType(g)){var y=HH.get(g,"inactive",o);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(f){var c=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";CE(this.stateList,function(g){var y=this.itemSize,m=f[g];m||(m=f[g]={color:o?v:[v]}),m.symbol==null&&(m.symbol=c&&mt(c)||(o?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&mt(h)||(o?y[0]:[y[0],y[0]])),m.symbol=_E(m.symbol,function(B){return B==="none"?p:B});var w=m.symbolSize;if(w!=null){var _=-1/0;vnt(w,function(B){B>_&&(_=B)}),m.symbolSize=_E(w,function(B){return gnt(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(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Rt),SE=[20,140],ynt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=SE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=SE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):K(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=fn((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],A=a.getData();A.each(this.getDataDimensionIndex(A),function(o,s){e[0]<=o&&o<=e[1]&&i.push(s)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=xE(this,"outOfRange",this.getExtent()),a=xE(this,"inRange",this.option.range.slice()),i=[];function A(h,v){i.push({value:h,color:e(h,v)})}for(var o=0,s=0,l=a.length,u=n.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",n),offset:o/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,A=a.handleThumbs,o=a.handleLabels,s=i.itemSize,l=i.getExtent();mnt([0,1],function(u){var f=A[u];f.setStyle("fill",n.handlesColor[u]),f.y=e[u];var c=Jn(e[u],[0,s[1]],l,!0),h=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=h/s[0],f.x=s[0]-h/2;var v=Un(a.handleLabelPoints[u],ao(f,this.group));o[u].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var A=this.visualMapModel,o=A.getExtent(),s=A.itemSize,l=[0,s[1]],u=this._shapes,f=u.indicator;if(f){f.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),v=this.getControllerVisual(e,"symbolSize"),d=Jn(e,o,l,!0),p=s[0]-v/2,g={x:f.x,y:f.y};f.y=d,f.x=p;var y=Un(u.indicatorLabelPoint,ao(f,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),_=this._orient,B=_==="horizontal";m.setStyle({text:(a||"")+A.formatValueText(n),verticalAlign:B?w:"middle",align:B?"center":w});var C={x:p,y:d,style:{fill:h}},S={style:{x:y[0],y:y[1]}};if(A.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(C,x),m.animateTo(S,x)}else f.attr(C),m.attr(S);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var I=0;IA[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(u,f[1],"< ",s):f[1]===1/0?this._showIndicator(u,f[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var c=this._hoverLinkDataIndices,h=[];(n||FE(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=FK(c,h);this._dispatchHighDown("downplay",nv(v[0],a)),this._dispatchHighDown("highlight",nv(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(XA(e.target,function(s){var l=Ct(s);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var A=a.getData(n.dataType),o=A.getStore().get(i.getDataDimensionIndex(A),n.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=A,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Tnt(r,t,e,n){for(var a=t.targetVisuals[n],i=He.prepareVisualTypes(a),A={color:kf(r.getData(),"color")},o=0,s=i.length;o0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Snt,xnt),T(bnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Int))}function VH(r){r.registerComponentModel(ynt),r.registerComponentView(_nt),NH(r)}var Fnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Ent[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(A,o){a==="categories"?(A.mappingMethod="category",A.categories=mt(i)):(A.dataExtent=this.getExtent(),A.mappingMethod="piecewise",A.pieceList=Y(this._pieceList,function(s){return s=mt(s),o!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=He.listVisualTypes(),i=this.isCategory();T(e.pieces,function(o){T(a,function(s){o.hasOwnProperty(s)&&(n[s]=1)})}),T(n,function(o,s){var l=!1;T(this.stateList,function(u){l=l||A(e,u,s)||A(e.target,u,s)},this),!l&&T(this.stateList,function(u){(e[u]||(e[u]={}))[s]=HH.get(s,u==="inRange"?"active":"inactive",i)})},this);function A(o,s,l){return o&&o[s]&&o[s].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,A=(n?a:e).selected||{};if(a.selected=A,T(i,function(s,l){var u=this.getSelectedMapKey(s);A.hasOwnProperty(u)||(A[u]=!0)},this),a.selectedMode==="single"){var o=!1;T(i,function(s,l){var u=this.getSelectedMapKey(s);A[u]&&(o?A[u]=!1:o=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=mt(e)},t.prototype.getValueState=function(e){var n=He.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var A=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){var u=He.findPieceIndex(s,a);u===e&&A.push(l)},this),n.push({seriesId:i.id,dataIndex:A})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function A(u,f){var c=i.getRepresentValue({interval:u});f||(f=i.getValueState(c));var h=e(c,f);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var o=this._pieceList.slice();if(!o.length)o.push({interval:[-1/0,1/0]});else{var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}var l=-1/0;return T(o,function(u){var f=u.interval;f&&(f[0]>l&&A([l,f[0]],"outOfRange"),A(f.slice()),l=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=nA(od.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}(od),Ent={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var A=0,o=n[0];A","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function LE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Dnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,A=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),l=n.itemSize,u=this._getViewData(),f=u.endsText,c=Ge(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],l,c,s),T(u.viewPieceList,function(h){var v=h.piece,d=new _t;d.onclick=it(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,l[0],l[1]]),c){var g=this.visualMapModel.getValueState(p);d.add(new Gt({style:{x:s==="right"?-a:l[0]+a,y:l[1]/2,text:v.text,verticalAlign:"middle",align:s,font:A,fill:o,opacity:g==="outOfRange"?.5:1}}))}e.add(d)},this),f&&this._renderEndsText(e,f[1],l,c,s),io(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(A){var o=a.visualMapModel;o.option.hoverLink&&a.api.dispatchAction({type:A,batch:nv(o.findTargetDataIndices(n),o)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return kH(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,A){if(n){var o=new _t,s=this.visualMapModel.textStyleModel;o.add(new Gt({style:oe(s,{x:i?A==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?A:"center",text:n})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Y(e.getPieceList(),function(o,s){return{piece:o,indexInModelPieceList:s}}),a=e.get("text"),i=e.get("orient"),A=e.get("inverse");return(i==="horizontal"?A:!A)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(Ie(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var A=mt(a.selected),o=n.getSelectedMapKey(e);i==="single"||i===!0?(A[o]=!0,T(A,function(s,l){A[l]=l===o})):A[o]=!A[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:A})}},t.type="visualMap.piecewise",t}(OH);function GH(r){r.registerComponentModel(Fnt),r.registerComponentView(Dnt),NH(r)}function Qnt(r){Lt(VH),Lt(GH)}var Lnt={label:{enabled:!0},decal:{show:!1}},ME=Vt(),Mnt={};function Unt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Lnt);Et(n.label,r.getLocaleModel().get("aria"),!1),Et(e.option,n,!1),a(),i();function a(){var l=e.getModel("decal"),u=l.get("show");if(u){var f=ft();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=f.get(c.type);h||(h={},f.set(c.type,h)),ME(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(vt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=R0(c.ecModel,c.name,Mnt,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=c.getRawData(),d={},p=ME(c).scope;h.each(function(_){var B=h.getRawIndex(_);d[B]=_});var g=v.count();v.each(function(_){var B=d[_],C=v.getName(_)||_+"",S=R0(c.ecModel,C,p,g),x=h.getItemVisual(B,"decal");h.setItemVisual(B,"decal",w(x,S))})}function w(_,B){var C=_?V(V({},B),_):B;return C.dirty=!0,C}})}}function i(){var l=t.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=gt(f.option,u),!!f.get("enabled")){if(f.get("description")){l.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),p;if(!(c<1)){var g=o();if(g){var y=f.get(["general","withTitle"]);p=A(y,{title:g})}else p=f.get(["general","withoutTitle"]);var m=[],w=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=A(w,{seriesCount:c}),r.eachSeries(function(S,x){if(x1?f.get(["series","multiple",F]):f.get(["series","single",F]),b=A(b,{seriesId:S.seriesIndex,seriesName:S.get("name"),seriesType:s(S.subType)});var E=S.getData();if(E.count()>h){var D=f.get(["data","partialData"]);b+=A(D,{displayCnt:h})}else b+=f.get(["data","allData"]);for(var Q=f.get(["data","separator","middle"]),M=f.get(["data","separator","end"]),R=[],P=0;P":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Hnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):ZV(t)?t:null;if(e==null){var n="";Xt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Kt(e)?this._condVal.test(t+""):!1},r}(),Ont=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),knt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[E,D]}function u(E,D,Q,M){gs(E,Q)&&gs(D,M)||a.push(E,D,Q,M,Q,M)}function f(E,D,Q,M,R,P){var O=Math.abs(D-E),G=Math.tan(O/4)*4/3,X=DS:I2&&n.push(a),n}function Ow(r,t,e,n,a,i,A,o,s,l){if(gs(r,e)&&gs(t,n)&&gs(a,A)&&gs(i,o)){s.push(A,o);return}var u=2/l,f=u*u,c=A-r,h=o-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=e-r,p=n-t,g=a-A,y=i-o,m=d*d+p*p,w=g*g+y*y;if(m=0&&S=0){s.push(A,o);return}var x=[],b=[];Wi(r,e,a,A,.5,x),Wi(t,n,i,o,.5,b),Ow(x[0],b[0],x[1],b[1],x[2],b[2],x[3],b[3],s,l),Ow(x[4],b[4],x[5],b[5],x[6],b[6],x[7],b[7],s,l)}function tat(r,t){var e=Hw(r),n=[];t=t||1;for(var a=0;a0)for(var l=0;lMath.abs(l),f=zH([s,l],u?0:1,t),c=(u?o:l)/f.length,h=0;ha,A=zH([n,a],i?0:1,t),o=i?"width":"height",s=i?"height":"width",l=i?"x":"y",u=i?"y":"x",f=r[o]/A.length,c=0;c1?null:new It(d*s+r,d*l+t)}function nat(r,t,e){var n=new It;It.sub(n,e,t),n.normalize();var a=new It;It.sub(a,r,t);var i=a.dot(n);return i}function $o(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function aat(r,t,e){for(var n=r.length,a=[],i=0;iA?(l.x=u.x=o+i/2,l.y=s,u.y=s+A):(l.y=u.y=s+A/2,l.x=o,u.x=o+i),aat(t,l,u)}function sd(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);sd(r,i[0],a,n),sd(r,i[1],e-a,n)}return n}function iat(r,t){for(var e=[],n=0;n0;l/=2){var u=0,f=0;(r&l)>0&&(u=1),(t&l)>0&&(f=1),o+=l*l*(3*u^f),f===0&&(u===1&&(r=l-1-r,t=l-1-t),s=r,r=t,t=s)}return o}function fd(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=Y(r,function(o){var s=o.getBoundingRect(),l=o.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),f=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),a=Math.max(f,a),[u,f]}),A=Y(i,function(o,s){return{cp:o,z:vat(o[0],o[1],t,e,n,a),path:r[s]}});return A.sort(function(o,s){return o.z-s.z}).map(function(o){return o.path})}function YH(r){return sat(r.path,r.count)}function kw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dat(r,t,e){var n=[];function a(_){for(var B=0;B<_.length;B++){var C=_[B];ld(C)?a(C.childrenRef()):C instanceof Mt&&n.push(C)}}a(r);var i=n.length;if(!i)return kw();var A=e.dividePath||YH,o=A({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),kw();n=fd(n),o=fd(o);for(var s=e.done,l=e.during,u=e.individualDelay,f=new La,c=0;c=0;a--)if(!e[a].many.length){var s=e[o].many;if(s.length<=1)if(o)o=0;else return e;var i=s.length,l=Math.ceil(i/2);e[a].many=s.slice(l,i),e[o].many=s.slice(0,l),o++}return e}var gat={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var o=n.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},A),l,u;GE(r)&&(l=r,u=t),GE(t)&&(l=t,u=r);function f(g,y,m,w,_){var B=g.many,C=g.one;if(B.length===1&&!_){var S=y?B[0]:C,x=y?C:B[0];if(ld(S))f({many:[S],one:x},!0,m,w,!0);else{var b=o?gt({delay:o(m,w)},s):s;GC(S,x,b),i(S,x,S,x,b)}}else for(var I=gt({dividePath:gat[e],individualDelay:o&&function(R,P,O,G){return o(R+m,w)}},s),F=y?dat(B,C,I):pat(C,B,I),E=F.fromIndividuals,D=F.toIndividuals,Q=E.length,M=0;Mt.length,h=l?KE(u,l):KE(c?t:r,[c?r:t]),v=0,d=0;dZH))for(var i=n.getIndices(),A=0;A0&&B.group.traverse(function(S){S instanceof Mt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function ZE(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function $E(r){return K(r)?r.sort().join(","):r}function _i(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Sat(r,t){var e=ft(),n=ft(),a=ft();return T(r.oldSeries,function(i,A){var o=r.oldDataGroupIds[A],s=r.oldData[A],l=ZE(i),u=$E(l);n.set(u,{dataGroupId:o,data:s}),K(l)&&T(l,function(f){a.set(f,{key:u,dataGroupId:o,data:s})})}),T(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var A=i.get("dataGroupId"),o=i.getData(),s=ZE(i),l=$E(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:_i(u.data),data:u.data}],newSeries:[{dataGroupId:A,divide:_i(o),data:o}]});else if(K(s)){var f=[];T(s,function(v){var d=n.get(v);d.data&&f.push({dataGroupId:d.dataGroupId,divide:_i(d.data),data:d.data})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{dataGroupId:A,data:o,divide:_i(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:_i(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:A,data:o,divide:_i(o)})}}}}),e}function JE(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[o],data:t.oldData[o],divide:_i(t.oldData[o]),groupIdDim:A.dimension})}),T(qt(r.to),function(A){var o=JE(e.updatedSeries,A);if(o>=0){var s=e.updatedSeries[o].getData();i.push({dataGroupId:t.oldDataGroupIds[o],data:s,divide:_i(s),groupIdDim:A.dimension})}}),a.length>0&&i.length>0&&$H(a,i,n)}function bat(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){T(qt(n.seriesTransition),function(a){T(qt(a.to),function(i){for(var A=n.updatedSeries,o=0;o0?`${t}d`:e>0?`${e}h`:n>0?`${n}m`:`${a}s`}const Eat={class:"online-status"},Dat=Bo({__name:"OutlineAnime",props:{color:{},spreadColor:{},isOnline:{type:Boolean}},setup(r){const t=r;return(e,n)=>(Er(),Fn("div",Eat,[St("div",{class:"dot",style:Ga({backgroundColor:t.color})},null,4),e.isOnline?(Er(),Fn("div",{key:0,class:"pulse",style:Ga({backgroundColor:t.spreadColor})},null,4)):jQ("",!0)]))}}),Qat=Ws(Dat,[["__scopeId","data-v-311f3e51"]]),Lat={class:"disk"},Mat={class:"hover-text"},Uat={class:"left-text"},Pat={class:"disk-text"},Rat={class:"right-text"},Hat={class:"disk-text"},Oat={class:"progress-bar",style:{display:"flex","align-items":"center"}},kat={style:{color:"var(--text-color-2)"}},Nat={class:"percentage",style:{"text-align":"right"}},Vat=Bo({__name:"Disk",props:{mountpoint:{},device:{},used:{},total:{},fstype:{}},setup(r){const t=r,e=iv(t.used/t.total*100),n=Av(t.used/t.total*100);return(a,i)=>(Er(),Fn("div",Lat,[St("div",Mat,[St("div",Uat,[St("span",Pat,Ce(t.mountpoint),1)]),St("div",Rat,[St("span",Hat,Ce(la(Nw)(t.used,t.total))+" ["+Ce(t.fstype)+"]",1)])]),St("div",Oat,[St("div",{class:"disk-total",style:Ga([{backgroundColor:la(n)},{"margin-right":"0.5rem"}])},[St("div",{class:"disk-used",style:Ga({width:t.used/t.total*100+"%",backgroundColor:la(e)})},null,4)],4),St("div",kat,[St("div",Nat,Ce((t.used/t.total*100).toFixed(1))+"%",1)])])]))}}),Gat=Ws(Vat,[["__scopeId","data-v-5ea12808"]]);/*! +`||l==="")){var u=A.isSelected(l);n.hasOwnProperty(l)?n[l]=n[l]&&u:n[l]=u}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function Grt(r){r.registerAction("legendToggleSelect","legendselectchanged",bt(Nl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",bt(Nl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",bt(Nl,"inverseSelect")),r.registerAction("legendSelect","legendselected",bt(Nl,"select")),r.registerAction("legendUnSelect","legendunselected",bt(Nl,"unSelect"))}function MH(r){r.registerComponentModel(Mw),r.registerComponentView(QH),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Vrt),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Grt(r)}var Krt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,a){var i=nl(e);r.prototype.init.call(this,e,n,a),pE(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),pE(this,this.option,e)},t.type="legend.scroll",t.defaultOption=nA(Mw.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}(Mw);function pE(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,Yi(t,e,{type:"box",ignoreSize:!!a})}var gE=_t,om=["width","height"],sm=["x","y"],zrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new gE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gE)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this;r.prototype.renderInner.call(this,e,n,a,i,A,o,s);var u=this._controllerGroup,f=n.get("pageIconSize",!0),c=K(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");u.add(new Gt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,p){var g=d+"DataIndex",y=Hf(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:it(l._pageGo,l,g,n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=d,u.add(y)}},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getSelectorGroup(),l=e.getOrient().index,u=om[l],f=sm[l],c=om[1-l],h=sm[1-l];A&&io("horizontal",s,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),d=s.getBoundingRect(),p=[-d.x,-d.y],g=mt(a);A&&(g[u]=a[u]-d[u]-v);var y=this._layoutContentAndController(e,i,g,l,u,c,h,f);if(A){if(o==="end")p[l]+=y[u]+v;else{var m=d[u]+v;p[l]-=m,y[f]-=m}y[u]+=d[u]+v,p[1-l]+=y[h]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[h]=Math.min(y[h],d[h]+p[1-l]),s.x=p[0],s.y=p[1],s.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,n,a,i,A,o,s,l){var u=this.getContentGroup(),f=this._containerGroup,c=this._controllerGroup;io(e.get("orient"),u,e.get("itemGap"),i?a.width:null,i?null:a.height),io("horizontal",c,e.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),v=c.getBoundingRect(),d=this._showController=h[A]>a[A],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=xt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var w=e.get("pageButtonPosition",!0);w==="end"?y[i]+=a[A]-v[A]:g[i]+=v[A]+m}y[1-i]+=h[o]/2-v[o]/2,u.setPosition(p),f.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[A]=d?a[A]:h[A],_[o]=Math.max(h[o],v[o]),_[s]=Math.min(0,v[s]+y[1-i]),f.__rectSize=a[A],d){var B={x:0,y:0};B[A]=Math.max(a[A]-v[A]-m,0),B[o]=_[o],f.setClipPath(new Nt({shape:B})),f.__rectSize=B[A]}else c.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&zt(u,{x:C.contentPosition[0],y:C.contentPosition[1]},d?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",c=n[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),A=e.get("pageFormatter"),o=n.pageIndex,s=o!=null?o+1:0,l=n.pageCount;i&&A&&i.setStyle("text",nt(A)?A.replace("{current}",s==null?"":s+"").replace("{total}",l==null?"":l+""):A({current:s,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,A=e.getOrient().index,o=om[A],s=sm[A],l=this._findTargetItemIndex(n),u=a.children(),f=u[l],c=u.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var d=w(f);v.contentPosition[A]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=c;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!_(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!_(y,m.s))&&g.i=C&&B.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(A,o){var s=A.__legendDataIndex;i==null&&s!=null&&(i=o),s===e&&(n=o)}),n??i},t.type="legend.scroll",t}(QH);function Wrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Xrt(r){Lt(MH),r.registerComponentModel(Krt),r.registerComponentView(zrt),Wrt(r)}function Yrt(r){Lt(MH),Lt(Xrt)}var Zrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=nA(_f.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_f),NC=Vt();function $rt(r,t,e){NC(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function Jrt(r,t){for(var e=NC(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=o),a=a&&A.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function rnt(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=NC(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ft());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var A=gH(i);T(A.infoList,function(o){var s=o.model.uid,l=a.get(s)||a.set(s,qrt(e,o.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=ft());u.set(i.uid,{dzReferCoordSysInfo:o,model:i,getRange:null})})}),a.each(function(i){var A=i.controller,o,s=i.dataZoomInfoMap;if(s){var l=s.keys()[0];l!=null&&(o=s.get(l))}if(!o){UH(a,i);return}var u=ent(s);A.enable(u.controlType,u.opt),A.setPointerChecker(i.containsPoint),Al(i,"dispatchAction",o.model.get("throttle",!0),"fixRate")})})}var nnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),$rt(a,e,{pan:it(lm.pan,this),zoom:it(lm.zoom,this),scrollMove:it(lm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Jrt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(QC),lm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),A=r.axisModels[0];if(A){var o=um[t](null,[n.originX,n.originY],A,e,r),s=(o.signal>0?o.pixelStart+o.pixelLength-o.pixel:o.pixel-o.pixelStart)/o.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-s)*l+s,i[1]=(i[1]-s)*l+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:yE(function(r,t,e,n,a,i){var A=um[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return A.signal*(r[1]-r[0])*A.pixel/A.pixelLength}),scrollMove:yE(function(r,t,e,n,a,i){var A=um[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return A.signal*(r[1]-r[0])*i.scrollDelta})};function yE(r){return function(t,e,n,a){var i=this.range,A=i.slice(),o=t.axisModels[0];if(o){var s=r(A,o,t,e,n,a);if(Fo(s,A,[0,100],"all"),this.range=A,i[0]!==A[0]||i[1]!==A[1])return A}}}var um={grid:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(A.pixel=t[0]-r[0],A.pixelLength=o.width,A.pixelStart=o.x,A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=o.height,A.pixelStart=o.y,A.signal=i.inverse?-1:1),A},polar:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return r=r?o.pointToCoord(r):[0,0],t=o.pointToCoord(t),e.mainType==="radiusAxis"?(A.pixel=t[0]-r[0],A.pixelLength=s[1]-s[0],A.pixelStart=s[0],A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=l[1]-l[0],A.pixelStart=l[0],A.signal=i.inverse?-1:1),A},singleAxis:function(r,t,e,n,a){var i=e.axis,A=a.model.coordinateSystem.getRect(),o={};return r=r||[0,0],i.orient==="horizontal"?(o.pixel=t[0]-r[0],o.pixelLength=A.width,o.pixelStart=A.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=A.height,o.pixelStart=A.y,o.signal=i.inverse?-1:1),o}};function PH(r){LC(r),r.registerComponentModel(Zrt),r.registerComponentView(nnt),rnt(r)}var ant=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=nA(_f.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}(_f),Vl=Nt,mE=7,int=1,fm=30,Ant=7,Gl="horizontal",wE="vertical",ont=5,snt=["line","bar","candlestick","scatter"],lnt={easing:"cubicOut",duration:100,delay:0},unt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Al(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lf(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?Ant:0,A=this._findCoordRect(),o={width:n.getWidth(),height:n.getHeight()},s=this._orient===Gl?{right:o.width-A.x-A.width,top:o.height-fm-mE-i,width:A.width,height:fm}:{right:mE,top:A.y,width:fm,height:A.height},l=nl(e.option);T(["right","top","width","height"],function(f){l[f]==="ph"&&(l[f]=s[f])});var u=Le(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===wE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),A=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a===Gl&&!A?{scaleY:s?1:-1,scaleX:1}:a===Gl&&A?{scaleY:s?1:-1,scaleX:-1}:a===wE&&!A?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([o]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Vl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var A=new Vl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(A.on("mousedown",this._onBrushStart,this),A.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(A)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,A=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&A.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(A!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=A.getDataExtent(s),c=(f[1]-f[0])*.3;f=[f[0]-c,f[1]+c];var h=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(A.count()-1),y=0,m=Math.round(A.count()/n[0]),w;A.each([s],function(x,b){if(m>0&&b%m){y+=g;return}var I=x==null||isNaN(x)||x==="",F=I?0:$t(x,f,h,!0);I&&!w&&b?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!I&&w&&(d.push([y,0]),p.push([y,0])),d.push([y,F]),p.push([y,F]),y+=g,w=I}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=A,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function B(x){var b=_.getModel(x?"selectedDataBackground":"dataBackground"),I=new _t,F=new Sr({shape:{points:l},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new xr({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(F),I.add(E),I}for(var C=0;C<3;C++){var S=B(C===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(A,o){var s=e.getAxisProxy(A,o).getTargetSeriesModels();T(s,function(l){if(!a&&!(n!==!0&&Qt(snt,l.get("type"))<0)){var u=i.getComponent(Li(A),o).axis,f=fnt(A),c,h=l.coordinateSystem;f!=null&&h.getOtherAxis&&(c=h.getOtherAxis(u).inverse),f=l.getData().mapDimension(f),a={thisAxis:u,series:l,thisDim:A,otherDim:f,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],A=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,f=s.get("brushSelect"),c=n.filler=new Vl({silent:f,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});A.add(c),A.add(new Vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:int,fill:"rgba(0,0,0,0)"}})),T([0,1],function(m){var w=s.get("handleIcon");!Rv[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=Ie(w,-1,0,2,2,null,!0);_.attr({cursor:BE(this._orient),draggable:!0,drift:it(this._onDragMove,this,m),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var B=_.getBoundingRect(),C=s.get("handleSize");this._handleHeight=et(C,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,_.setStyle(s.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),no(_);var S=s.get("handleColor");S!=null&&(_.style.fill=S),A.add(a[m]=_);var x=s.getModel("textStyle");e.add(i[m]=new Gt({silent:!0,invisible:!0,style:oe(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=c;if(f){var v=et(s.get("moveHandleSize"),o[1]),d=n.moveHandle=new Nt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=Ie(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+v/2-.5,d.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(v,10));h=n.moveZone=new Nt({invisible:!0,shape:{y:o[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),A.add(d),A.add(g),A.add(h)}h.attr({draggable:!0,cursor:BE(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],n,!0),$t(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,A=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Fo(n,i,A,a.get("zoomLock")?"all":e,o.minSpan!=null?$t(o.minSpan,s,A,!0):null,o.maxSpan!=null?$t(o.maxSpan,s,A,!0):null);var l=this._range,u=this._range=fn([$t(i[0],A,s,!0),$t(i[1],A,s,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=fn(a.slice()),A=this._size;T([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:A[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:A[1]});var o={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(o),n.moveZone.setShape(o),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=n.dataShadowSegs,l=[0,i[0],i[1],A[0]],u=0;un[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,A=(i[0]+i[1])/2,o=this._updateInterval("all",a[0]-A);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new It(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var A=this._getViewExtent(),o=[0,100];this._range=fn([$t(a.x,A,o,!0),$t(a.x+a.width,A,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,A=a.brushRect;A||(A=a.brushRect=new Vl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(A)),A.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,l=s.transformCoordToLocal(e,n),u=s.transformCoordToLocal(o.x,o.y),f=this._size;l[0]=Math.max(Math.min(f[0],l[0]),0),A.setShape({x:u[0],y:0,width:l[0]-u[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?lnt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=gH(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),A=this.api.getHeight();e={x:i*.2,y:A*.2,width:i*.6,height:A*.6}}return e},t.type="dataZoom.slider",t}(QC);function fnt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function BE(r){return r==="vertical"?"ns-resize":"ew-resize"}function RH(r){r.registerComponentModel(ant),r.registerComponentView(unt),LC(r)}function cnt(r){Lt(PH),Lt(RH)}var HH={get:function(r,t,e){var n=mt((hnt[r]||{})[t]);return e&&K(n)?n[n.length-1]:n}},hnt={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]}},_E=He.mapVisual,vnt=He.eachVisual,dnt=K,CE=T,pnt=fn,gnt=$t,od=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&TH(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Dw(this.option.controller,n,e),this.targetVisuals=Dw(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){T(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,A=i.precision,o=this.dataBound,s=i.formatter,l;a=a||["<",">"],K(e)&&(e=e.slice(),l=!0);var u=n?e:l?[f(e[0]),f(e[1])]:f(e);if(nt(s))return s.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(vt(s))return l?s(e[0],e[1]):s(e);if(l)return e[0]===o[0]?a[0]+" "+u[1]:e[1]===o[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function f(c){return c===o[0]?"min":c===o[1]?"max":(+c).toFixed(Math.min(A,20))}},t.prototype.resetExtent=function(){var e=this.option,n=pnt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var A=a[i],o=e.getDimensionInfo(A);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),A=n.controller||(n.controller={});Et(i,a),Et(A,a);var o=this.isCategory();s.call(this,i),s.call(this,A),l.call(this,i,"inRange","outOfRange"),u.call(this,A);function s(f){dnt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function l(f,c,h){var v=f[c],d=f[h];v&&!d&&(d=f[h]={},CE(v,function(p,g){if(He.isValidType(g)){var y=HH.get(g,"inactive",o);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(f){var c=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";CE(this.stateList,function(g){var y=this.itemSize,m=f[g];m||(m=f[g]={color:o?v:[v]}),m.symbol==null&&(m.symbol=c&&mt(c)||(o?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&mt(h)||(o?y[0]:[y[0],y[0]])),m.symbol=_E(m.symbol,function(B){return B==="none"?p:B});var w=m.symbolSize;if(w!=null){var _=-1/0;vnt(w,function(B){B>_&&(_=B)}),m.symbolSize=_E(w,function(B){return gnt(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(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Rt),SE=[20,140],ynt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=SE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=SE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):K(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=fn((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],A=a.getData();A.each(this.getDataDimensionIndex(A),function(o,s){e[0]<=o&&o<=e[1]&&i.push(s)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=xE(this,"outOfRange",this.getExtent()),a=xE(this,"inRange",this.option.range.slice()),i=[];function A(h,v){i.push({value:h,color:e(h,v)})}for(var o=0,s=0,l=a.length,u=n.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",n),offset:o/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,A=a.handleThumbs,o=a.handleLabels,s=i.itemSize,l=i.getExtent();mnt([0,1],function(u){var f=A[u];f.setStyle("fill",n.handlesColor[u]),f.y=e[u];var c=Jn(e[u],[0,s[1]],l,!0),h=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=h/s[0],f.x=s[0]-h/2;var v=Un(a.handleLabelPoints[u],ao(f,this.group));o[u].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var A=this.visualMapModel,o=A.getExtent(),s=A.itemSize,l=[0,s[1]],u=this._shapes,f=u.indicator;if(f){f.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),v=this.getControllerVisual(e,"symbolSize"),d=Jn(e,o,l,!0),p=s[0]-v/2,g={x:f.x,y:f.y};f.y=d,f.x=p;var y=Un(u.indicatorLabelPoint,ao(f,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),_=this._orient,B=_==="horizontal";m.setStyle({text:(a||"")+A.formatValueText(n),verticalAlign:B?w:"middle",align:B?"center":w});var C={x:p,y:d,style:{fill:h}},S={style:{x:y[0],y:y[1]}};if(A.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(C,x),m.animateTo(S,x)}else f.attr(C),m.attr(S);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var I=0;IA[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(u,f[1],"< ",s):f[1]===1/0?this._showIndicator(u,f[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var c=this._hoverLinkDataIndices,h=[];(n||FE(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=FK(c,h);this._dispatchHighDown("downplay",nv(v[0],a)),this._dispatchHighDown("highlight",nv(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(XA(e.target,function(s){var l=Ct(s);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var A=a.getData(n.dataType),o=A.getStore().get(i.getDataDimensionIndex(A),n.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=A,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Tnt(r,t,e,n){for(var a=t.targetVisuals[n],i=He.prepareVisualTypes(a),A={color:kf(r.getData(),"color")},o=0,s=i.length;o0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Snt,xnt),T(bnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Int))}function VH(r){r.registerComponentModel(ynt),r.registerComponentView(_nt),NH(r)}var Fnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Ent[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(A,o){a==="categories"?(A.mappingMethod="category",A.categories=mt(i)):(A.dataExtent=this.getExtent(),A.mappingMethod="piecewise",A.pieceList=Y(this._pieceList,function(s){return s=mt(s),o!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=He.listVisualTypes(),i=this.isCategory();T(e.pieces,function(o){T(a,function(s){o.hasOwnProperty(s)&&(n[s]=1)})}),T(n,function(o,s){var l=!1;T(this.stateList,function(u){l=l||A(e,u,s)||A(e.target,u,s)},this),!l&&T(this.stateList,function(u){(e[u]||(e[u]={}))[s]=HH.get(s,u==="inRange"?"active":"inactive",i)})},this);function A(o,s,l){return o&&o[s]&&o[s].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,A=(n?a:e).selected||{};if(a.selected=A,T(i,function(s,l){var u=this.getSelectedMapKey(s);A.hasOwnProperty(u)||(A[u]=!0)},this),a.selectedMode==="single"){var o=!1;T(i,function(s,l){var u=this.getSelectedMapKey(s);A[u]&&(o?A[u]=!1:o=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=mt(e)},t.prototype.getValueState=function(e){var n=He.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var A=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){var u=He.findPieceIndex(s,a);u===e&&A.push(l)},this),n.push({seriesId:i.id,dataIndex:A})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function A(u,f){var c=i.getRepresentValue({interval:u});f||(f=i.getValueState(c));var h=e(c,f);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var o=this._pieceList.slice();if(!o.length)o.push({interval:[-1/0,1/0]});else{var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}var l=-1/0;return T(o,function(u){var f=u.interval;f&&(f[0]>l&&A([l,f[0]],"outOfRange"),A(f.slice()),l=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=nA(od.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}(od),Ent={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var A=0,o=n[0];A","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function LE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Dnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,A=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),l=n.itemSize,u=this._getViewData(),f=u.endsText,c=Ge(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],l,c,s),T(u.viewPieceList,function(h){var v=h.piece,d=new _t;d.onclick=it(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,l[0],l[1]]),c){var g=this.visualMapModel.getValueState(p);d.add(new Gt({style:{x:s==="right"?-a:l[0]+a,y:l[1]/2,text:v.text,verticalAlign:"middle",align:s,font:A,fill:o,opacity:g==="outOfRange"?.5:1}}))}e.add(d)},this),f&&this._renderEndsText(e,f[1],l,c,s),io(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(A){var o=a.visualMapModel;o.option.hoverLink&&a.api.dispatchAction({type:A,batch:nv(o.findTargetDataIndices(n),o)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return kH(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,A){if(n){var o=new _t,s=this.visualMapModel.textStyleModel;o.add(new Gt({style:oe(s,{x:i?A==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?A:"center",text:n})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Y(e.getPieceList(),function(o,s){return{piece:o,indexInModelPieceList:s}}),a=e.get("text"),i=e.get("orient"),A=e.get("inverse");return(i==="horizontal"?A:!A)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(Ie(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var A=mt(a.selected),o=n.getSelectedMapKey(e);i==="single"||i===!0?(A[o]=!0,T(A,function(s,l){A[l]=l===o})):A[o]=!A[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:A})}},t.type="visualMap.piecewise",t}(OH);function GH(r){r.registerComponentModel(Fnt),r.registerComponentView(Dnt),NH(r)}function Qnt(r){Lt(VH),Lt(GH)}var Lnt={label:{enabled:!0},decal:{show:!1}},ME=Vt(),Mnt={};function Unt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Lnt);Et(n.label,r.getLocaleModel().get("aria"),!1),Et(e.option,n,!1),a(),i();function a(){var l=e.getModel("decal"),u=l.get("show");if(u){var f=ft();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=f.get(c.type);h||(h={},f.set(c.type,h)),ME(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(vt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=R0(c.ecModel,c.name,Mnt,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=c.getRawData(),d={},p=ME(c).scope;h.each(function(_){var B=h.getRawIndex(_);d[B]=_});var g=v.count();v.each(function(_){var B=d[_],C=v.getName(_)||_+"",S=R0(c.ecModel,C,p,g),x=h.getItemVisual(B,"decal");h.setItemVisual(B,"decal",w(x,S))})}function w(_,B){var C=_?V(V({},B),_):B;return C.dirty=!0,C}})}}function i(){var l=t.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=gt(f.option,u),!!f.get("enabled")){if(f.get("description")){l.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),p;if(!(c<1)){var g=o();if(g){var y=f.get(["general","withTitle"]);p=A(y,{title:g})}else p=f.get(["general","withoutTitle"]);var m=[],w=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=A(w,{seriesCount:c}),r.eachSeries(function(S,x){if(x1?f.get(["series","multiple",F]):f.get(["series","single",F]),b=A(b,{seriesId:S.seriesIndex,seriesName:S.get("name"),seriesType:s(S.subType)});var E=S.getData();if(E.count()>h){var D=f.get(["data","partialData"]);b+=A(D,{displayCnt:h})}else b+=f.get(["data","allData"]);for(var Q=f.get(["data","separator","middle"]),M=f.get(["data","separator","end"]),R=[],P=0;P":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Hnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):ZV(t)?t:null;if(e==null){var n="";Xt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Kt(e)?this._condVal.test(t+""):!1},r}(),Ont=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),knt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[E,D]}function u(E,D,Q,M){gs(E,Q)&&gs(D,M)||a.push(E,D,Q,M,Q,M)}function f(E,D,Q,M,R,P){var O=Math.abs(D-E),G=Math.tan(O/4)*4/3,X=DS:I2&&n.push(a),n}function Ow(r,t,e,n,a,i,A,o,s,l){if(gs(r,e)&&gs(t,n)&&gs(a,A)&&gs(i,o)){s.push(A,o);return}var u=2/l,f=u*u,c=A-r,h=o-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=e-r,p=n-t,g=a-A,y=i-o,m=d*d+p*p,w=g*g+y*y;if(m=0&&S=0){s.push(A,o);return}var x=[],b=[];Wi(r,e,a,A,.5,x),Wi(t,n,i,o,.5,b),Ow(x[0],b[0],x[1],b[1],x[2],b[2],x[3],b[3],s,l),Ow(x[4],b[4],x[5],b[5],x[6],b[6],x[7],b[7],s,l)}function tat(r,t){var e=Hw(r),n=[];t=t||1;for(var a=0;a0)for(var l=0;lMath.abs(l),f=zH([s,l],u?0:1,t),c=(u?o:l)/f.length,h=0;ha,A=zH([n,a],i?0:1,t),o=i?"width":"height",s=i?"height":"width",l=i?"x":"y",u=i?"y":"x",f=r[o]/A.length,c=0;c1?null:new It(d*s+r,d*l+t)}function nat(r,t,e){var n=new It;It.sub(n,e,t),n.normalize();var a=new It;It.sub(a,r,t);var i=a.dot(n);return i}function $o(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function aat(r,t,e){for(var n=r.length,a=[],i=0;iA?(l.x=u.x=o+i/2,l.y=s,u.y=s+A):(l.y=u.y=s+A/2,l.x=o,u.x=o+i),aat(t,l,u)}function sd(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);sd(r,i[0],a,n),sd(r,i[1],e-a,n)}return n}function iat(r,t){for(var e=[],n=0;n0;l/=2){var u=0,f=0;(r&l)>0&&(u=1),(t&l)>0&&(f=1),o+=l*l*(3*u^f),f===0&&(u===1&&(r=l-1-r,t=l-1-t),s=r,r=t,t=s)}return o}function fd(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=Y(r,function(o){var s=o.getBoundingRect(),l=o.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),f=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),a=Math.max(f,a),[u,f]}),A=Y(i,function(o,s){return{cp:o,z:vat(o[0],o[1],t,e,n,a),path:r[s]}});return A.sort(function(o,s){return o.z-s.z}).map(function(o){return o.path})}function YH(r){return sat(r.path,r.count)}function kw(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dat(r,t,e){var n=[];function a(_){for(var B=0;B<_.length;B++){var C=_[B];ld(C)?a(C.childrenRef()):C instanceof Mt&&n.push(C)}}a(r);var i=n.length;if(!i)return kw();var A=e.dividePath||YH,o=A({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),kw();n=fd(n),o=fd(o);for(var s=e.done,l=e.during,u=e.individualDelay,f=new La,c=0;c=0;a--)if(!e[a].many.length){var s=e[o].many;if(s.length<=1)if(o)o=0;else return e;var i=s.length,l=Math.ceil(i/2);e[a].many=s.slice(l,i),e[o].many=s.slice(0,l),o++}return e}var gat={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var o=n.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},A),l,u;GE(r)&&(l=r,u=t),GE(t)&&(l=t,u=r);function f(g,y,m,w,_){var B=g.many,C=g.one;if(B.length===1&&!_){var S=y?B[0]:C,x=y?C:B[0];if(ld(S))f({many:[S],one:x},!0,m,w,!0);else{var b=o?gt({delay:o(m,w)},s):s;GC(S,x,b),i(S,x,S,x,b)}}else for(var I=gt({dividePath:gat[e],individualDelay:o&&function(R,P,O,G){return o(R+m,w)}},s),F=y?dat(B,C,I):pat(C,B,I),E=F.fromIndividuals,D=F.toIndividuals,Q=E.length,M=0;Mt.length,h=l?KE(u,l):KE(c?t:r,[c?r:t]),v=0,d=0;dZH))for(var i=n.getIndices(),A=0;A0&&B.group.traverse(function(S){S instanceof Mt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function ZE(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function $E(r){return K(r)?r.sort().join(","):r}function _i(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Sat(r,t){var e=ft(),n=ft(),a=ft();return T(r.oldSeries,function(i,A){var o=r.oldDataGroupIds[A],s=r.oldData[A],l=ZE(i),u=$E(l);n.set(u,{dataGroupId:o,data:s}),K(l)&&T(l,function(f){a.set(f,{key:u,dataGroupId:o,data:s})})}),T(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var A=i.get("dataGroupId"),o=i.getData(),s=ZE(i),l=$E(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:_i(u.data),data:u.data}],newSeries:[{dataGroupId:A,divide:_i(o),data:o}]});else if(K(s)){var f=[];T(s,function(v){var d=n.get(v);d.data&&f.push({dataGroupId:d.dataGroupId,divide:_i(d.data),data:d.data})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{dataGroupId:A,data:o,divide:_i(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:_i(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:A,data:o,divide:_i(o)})}}}}),e}function JE(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[o],data:t.oldData[o],divide:_i(t.oldData[o]),groupIdDim:A.dimension})}),T(qt(r.to),function(A){var o=JE(e.updatedSeries,A);if(o>=0){var s=e.updatedSeries[o].getData();i.push({dataGroupId:t.oldDataGroupIds[o],data:s,divide:_i(s),groupIdDim:A.dimension})}}),a.length>0&&i.length>0&&$H(a,i,n)}function bat(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){T(qt(n.seriesTransition),function(a){T(qt(a.to),function(i){for(var A=n.updatedSeries,o=0;o0?`${t}d`:e>0?`${e}h`:n>0?`${n}m`:`${a}s`}const Eat={class:"online-status"},Dat=Bo({__name:"OutlineAnime",props:{color:{},spreadColor:{},isOnline:{type:Boolean}},setup(r){const t=r;return(e,n)=>(Er(),Fn("div",Eat,[St("div",{class:"dot",style:Ga({backgroundColor:t.color})},null,4),e.isOnline?(Er(),Fn("div",{key:0,class:"pulse",style:Ga({backgroundColor:t.spreadColor})},null,4)):jQ("",!0)]))}}),Qat=Ws(Dat,[["__scopeId","data-v-311f3e51"]]),Lat={class:"disk"},Mat={class:"hover-text"},Uat={class:"left-text"},Pat={class:"disk-text"},Rat={class:"right-text"},Hat={class:"disk-text"},Oat={class:"progress-bar",style:{display:"flex","align-items":"center"}},kat={style:{color:"var(--text-color-2)"}},Nat={class:"percentage",style:{"text-align":"right"}},Vat=Bo({__name:"Disk",props:{mountpoint:{},device:{},used:{},total:{},fstype:{}},setup(r){const t=r,e=iv(t.used/t.total*100),n=Av(t.used/t.total*100);return(a,i)=>(Er(),Fn("div",Lat,[St("div",Mat,[St("div",Uat,[St("span",Pat,Ce(t.mountpoint),1)]),St("div",Rat,[St("span",Hat,Ce(la(Nw)(t.used,t.total))+" ["+Ce(t.fstype)+"]",1)])]),St("div",Oat,[St("div",{class:"disk-total",style:Ga([{backgroundColor:la(n)},{"margin-right":"0.5rem"}])},[St("div",{class:"disk-used",style:Ga({width:t.used/t.total*100+"%",backgroundColor:la(e)})},null,4)],4),St("div",kat,[St("div",Nat,Ce((t.used/t.total*100).toFixed(1))+"%",1)])])]))}}),Gat=Ws(Vat,[["__scopeId","data-v-5ea12808"]]);/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License diff --git a/api/frontend/web/index.html b/api/frontend/web/index.html index 633c679..0547bce 100644 --- a/api/frontend/web/index.html +++ b/api/frontend/web/index.html @@ -7,7 +7,7 @@ Server Status - +