/*! * build: Vue Admin Plus * copyright: vue-admin-beautiful.com * time: 2025-01-13 14:51:57 */ "use strict";(self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[918],{37589:function(t,e,i){i.d(e,{N:function(){return f}});var o=i(50029),n=i(83384),r=i(29445),a=i(36585),s=i(68806),l=i(21481),u=i(48093),p=i(9980),h=i(9054),c=i(95728),d=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.type="single",e}(r.Z);function f(t){(0,n.D)(p.N),h.Z.registerAxisPointerClass("SingleAxisPointer",c.Z),t.registerComponentView(d),t.registerComponentView(a.Z),t.registerComponentModel(l.Z),(0,s.Z)(t,"single",l.Z,l.Z.defaultOption),t.registerCoordinateSystem("single",u.Z)}},59024:function(t,e,i){i.d(e,{N:function(){return q}});var o=i(50029),n=i(78971),r=i(39471),a=i(41576),s=i(14442),l=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode="box",i}return(0,o.ZT)(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,i=e.data||[],o=e.axisType,n=this._names=[];"category"===o?(t=[],(0,a.S6)(i,(function(e,i){var o,r=(0,s.U5)((0,s.C4)(e),"");(0,a.Kn)(e)?(o=(0,a.d9)(e),o.value=i):o=i,t.push(o),n.push(r)}))):t=i;var l={category:"ordinal",time:"time",value:"number"}[o]||"number",u=this._data=new r.Z([{name:"value",type:l}],this);u.initData(t,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.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:[]},e}(n.Z),u=l,p=i(65846),h=i(61279),c=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.type="timeline.slider",e.defaultOption=(0,h.ZL)(u.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:[]}),e}(u);(0,a.jB)(c,p.X.prototype);var d=c,f=i(82279),g=i(43582),v=i(62948),y=i(98626),m=i(4983),x=i(26926),_=i(87218),S=i(84606),M=i(29445),b=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.type="timeline",e}(M.Z),w=b,T=i(5862),C=function(t){function e(e,i,o,n){var r=t.call(this,e,i,o)||this;return r.type=n||"value",r}return(0,o.ZT)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(T.Z),I=C,k=i(28397),D=i(35038),L=i(54520),A=i(3191),Z=i(98370),z=i(45234),O=i(4920),V=i(3678),P=i(61465),H=Math.PI,B=(0,s.Yf)(),R=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,i){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var o=this._layout(t,i),n=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(o,t);t.formatTooltip=function(t){var e=s.scale.getLabel({value:t});return(0,P.TX)("nameValue",{noName:!0,value:e})},(0,a.S6)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](o,n,s,t)}),this),this._renderAxisLabel(o,r,s,t),this._position(o,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var i,o=t.get(["label","position"]),n=t.get("orient"),r=N(t,e);i=null==o||"auto"===o?"horizontal"===n?r.y+r.height/2=0||"+"===i?"left":"right"},h={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:H/2},d="vertical"===n?r.height:r.width,f=t.getModel("controlStyle"),g=f.get("show",!0),v=g?f.get("itemSize"):0,y=g?f.get("itemGap"):0,m=v+y,x=t.get(["label","rotate"])||0;x=x*H/180;var _=f.get("position",!0),S=g&&f.get("showPlayBtn",!0),M=g&&f.get("showPrevBtn",!0),b=g&&f.get("showNextBtn",!0),w=0,T=d;"left"===_||"bottom"===_?(S&&(s=[0,0],w+=m),M&&(l=[w,0],w+=m),b&&(u=[T-v,0],T-=m)):(S&&(s=[T-v,0],T-=m),M&&(l=[0,0],w+=m),b&&(u=[T-v,0],T-=m));var C=[w,T];return t.get("inverse")&&C.reverse(),{viewRect:r,mainLength:d,orient:n,rotation:c[n],labelRotation:x,labelPosOpt:i,labelAlign:t.get(["label","align"])||p[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[n],playPosition:s,prevBtnPosition:l,nextBtnPosition:u,axisExtent:C,controlSize:v,controlGap:y}},e.prototype._position=function(t,e){var i=this._mainGroup,o=this._labelGroup,n=t.viewRect;if("vertical"===t.orient){var r=g.Ue(),s=n.x,l=n.y+n.height;g.Iu(r,r,[-s,-l]),g.U1(r,r,-H/2),g.Iu(r,r,[s,l]),n=n.clone(),n.applyTransform(r)}var u=m(n),p=m(i.getBoundingRect()),h=m(o.getBoundingRect()),c=[i.x,i.y],d=[o.x,o.y];d[0]=c[0]=u[0][0];var f=t.labelPosOpt;if(null==f||(0,a.HD)(f)){var v="+"===f?0:1;x(c,p,u,1,v),x(d,h,u,1,1-v)}else{v=f>=0?0:1;x(c,p,u,1,v),d[1]=c[1]+f}function y(t){t.originX=u[0][0]-t.x,t.originY=u[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function x(t,e,i,o,n){t[o]+=i[o][n]-e[o][n]}i.setPosition(c),o.setPosition(d),i.rotation=o.rotation=t.rotation,y(i),y(o)},e.prototype._createAxis=function(t,e){var i=e.getData(),o=e.get("axisType"),n=E(e,o);n.getTicks=function(){return i.mapArray(["value"],(function(t){return{value:t}}))};var r=i.getDataExtent("value");n.setExtent(r[0],r[1]),n.calcNiceTicks();var a=new I("value",n,t.axisExtent,o);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new v.Z;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,i,o){var n=i.getExtent();if(o.get(["lineStyle","show"])){var r=new y.Z({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:(0,a.l7)({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(r);var s=this._progressLine=new y.Z({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:(0,a.ce)({lineCap:"round",lineWidth:r.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(s)}},e.prototype._renderAxisTick=function(t,e,i,o){var n=this,r=o.getData(),s=i.scale.getTicks();this._tickSymbols=[],(0,a.S6)(s,(function(t){var s=i.dataToCoord(t.value),l=r.getItemModel(t.value),u=l.getModel("itemStyle"),p=l.getModel(["emphasis","itemStyle"]),h=l.getModel(["progress","itemStyle"]),c={x:s,y:0,onclick:(0,a.ak)(n._changeTimeline,n,t.value)},d=X(l,u,e,c);d.ensureState("emphasis").style=p.getItemStyle(),d.ensureState("progress").style=h.getItemStyle(),(0,V.vF)(d);var f=(0,O.A)(d);l.get("tooltip")?(f.dataIndex=t.value,f.dataModel=o):f.dataIndex=f.dataModel=null,n._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,i,o){var n=this,r=i.getLabelModel();if(r.get("show")){var s=o.getData(),l=i.getViewLabels();this._tickLabels=[],(0,a.S6)(l,(function(o){var r=o.tickValue,l=s.getItemModel(r),u=l.getModel("label"),p=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),c=i.dataToCoord(o.tickValue),d=new m.ZP({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:(0,a.ak)(n._changeTimeline,n,r),silent:!1,style:(0,_.Lr)(u,{text:o.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=(0,_.Lr)(p),d.ensureState("progress").style=(0,_.Lr)(h),e.add(d),(0,V.vF)(d),B(d).dataIndex=r,n._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,i,o){var n=t.controlSize,r=t.rotation,s=o.getModel("controlStyle").getItemStyle(),l=o.getModel(["emphasis","controlStyle"]).getItemStyle(),u=o.getPlayState(),p=o.get("inverse",!0);function h(t,i,u,p){if(t){var h=(0,z.GM)((0,a.pD)(o.get(["controlStyle",i+"BtnSize"]),n),n),c=[0,-h/2,h,h],d=F(o,i+"Icon",c,{x:t[0],y:t[1],originX:n/2,originY:0,rotation:p?-r:0,rectHover:!0,style:s,onclick:u});d.ensureState("emphasis").style=l,e.add(d),(0,V.vF)(d)}}h(t.nextBtnPosition,"next",(0,a.ak)(this._changeTimeline,this,p?"-":"+")),h(t.prevBtnPosition,"prev",(0,a.ak)(this._changeTimeline,this,p?"+":"-")),h(t.playPosition,u?"stop":"play",(0,a.ak)(this._handlePlayClick,this,!u),!0)},e.prototype._renderCurrentPointer=function(t,e,i,o){var n=o.getData(),r=o.getCurrentIndex(),s=n.getItemModel(r).getModel("checkpointStyle"),l=this,u={onCreate:function(t){t.draggable=!0,t.drift=(0,a.ak)(l._handlePointerDrag,l),t.ondragend=(0,a.ak)(l._handlePointerDragend,l),G(t,l._progressLine,r,i,o,!0)},onUpdate:function(t){G(t,l._progressLine,r,i,o)}};this._currentPointer=X(s,s,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var i=this._toAxisCoord(t)[0],o=this._axis,n=D.dt(o.getExtent().slice());i>n[1]&&(i=n[1]),ii.getHeight()&&(s.position="top",g=!0);var v=g?-5-c.height:r+10;d+c.width/2>i.getWidth()?(s.position=["100%",v],p.align="right"):d-c.width/2<0&&(s.position=[0,v],p.align="left")}}))}function _(n,r){var a,l=y[n],h=y[r],c=u[l],g=new f.Z(c,t,t.ecModel);if(o&&null!=o.newTitle&&o.featureName===l&&(c.title=o.newTitle),l&&!h){if(S(l))a={onclick:g.option.onclick,featureName:l};else{var v=(0,s.Bm)(l);if(!v)return;a=new v}p[l]=a}else if(a=p[h],!a)return;a.uid=(0,m.Kr)("toolbox-feature"),a.model=g,a.ecModel=e,a.api=i;var x=a instanceof s.f1;l||!h?!g.get("show")||x&&a.unusable?x&&a.remove&&a.remove(e,i):(M(g,a,l),g.setIconStatus=function(t,e){var i=this.option,o=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,o[t]&&("emphasis"===e?d.fD:d.Mh)(o[t])},a instanceof s.f1&&a.render&&a.render(g,e,i,o)):x&&a.dispose&&a.dispose(e,i)}function M(o,u,p){var h,f,g=o.getModel("iconStyle"),v=o.getModel(["emphasis","iconStyle"]),y=u instanceof s.f1&&u.getIcons?u.getIcons():o.get("icon"),m=o.get("title")||{};a.HD(y)?(h={},h[p]=y):h=y,a.HD(m)?(f={},f[p]=m):f=m;var _=o.iconPaths={};a.S6(h,(function(s,p){var h=c.createIcon(s,{},{x:-r/2,y:-r/2,width:r,height:r});h.setStyle(g.getItemStyle());var y=h.ensureState("emphasis");y.style=v.getItemStyle();var m=new x.ZP({style:{text:f[p],align:v.get("textAlign"),borderRadius:v.get("textBorderRadius"),padding:v.get("textPadding"),fill:null},ignore:!0});h.setTextContent(m),c.setTooltipConfig({el:h,componentModel:t,itemName:p,formatterParamsExtra:{title:f[p]}}),h.__title=f[p],h.on("mouseover",(function(){var e=v.getItemStyle(),o=l?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";m.setStyle({fill:v.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:v.get("textBackgroundColor")}),h.setTextConfig({position:v.get("textPosition")||o}),m.ignore=!t.get("showTitle"),i.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==o.get(["iconStatus",p])&&i.leaveEmphasis(this),m.hide()})),("emphasis"===o.get(["iconStatus",p])?d.fD:d.Mh)(h),n.add(h),h.on("click",a.ak(u.onclick,u,e,i,p)),_[p]=h}))}},e.prototype.updateView=function(t,e,i,o){a.S6(this._features,(function(t){t instanceof s.f1&&t.updateView&&t.updateView(t.model,e,i,o)}))},e.prototype.remove=function(t,e){a.S6(this._features,(function(i){i instanceof s.f1&&i.remove&&i.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){a.S6(this._features,(function(i){i instanceof s.f1&&i.dispose&&i.dispose(t,e)}))},e.type="toolbox",e}(y.Z);function S(t){return 0===t.indexOf("my")}var M=_,b=i(70574),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.onclick=function(t,e){var i=this.model,o=i.get("name")||t.get("title.0.text")||"echarts",n="svg"===e.getZr().painter.getType(),r=n?"svg":i.get("type",!0)||"png",s=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=b.Z.browser;if((0,a.mf)(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=o+"."+r,u.target="_blank",u.href=s;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||n){var h=s.split(","),c=h[0].indexOf("base64")>-1,d=n?decodeURIComponent(h[1]):h[1];c&&(d=window.atob(d));var f=o+"."+r;if(window.navigator.msSaveOrOpenBlob){var g=d.length,v=new Uint8Array(g);while(g--)v[g]=d.charCodeAt(g);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,f)}else{var m=document.createElement("iframe");document.body.appendChild(m);var x=m.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(d),_.close(),x.focus(),_.execCommand("SaveAs",!0,f),document.body.removeChild(m)}}else{var S=i.get("lang"),M='',w=window.open();w.document.write(M),w.document.title=o}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(s.f1),T=w,C=i(96642),I=i(14442),k="__ec_magicType_stack__",D=[["line","bar"],["stack"]],L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return a.S6(t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,i){var o=this.model,n=o.get(["seriesIndex",i]);if(A[i]){var r,s={series:[]},l=function(t){var e=t.subType,n=t.id,r=A[i](e,n,t,o);r&&(a.ce(r,t.option),s.series.push(r));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var p=u.dim,h=p+"Axis",c=t.getReferringComponents(h,I.C6).models[0],d=c.componentIndex;s[h]=s[h]||[];for(var f=0;f<=d;f++)s[h][d]=s[h][d]||{};s[h][d].boundaryGap="bar"===i}}};a.S6(D,(function(t){a.cq(t,i)>=0&&a.S6(t,(function(t){o.setIconStatus(t,"normal")}))})),o.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==n?null:{seriesIndex:n}},l);var u=i;"stack"===i&&(r=a.TS({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),"emphasis"!==o.get(["iconStatus",i])&&(u="tiled")),e.dispatchAction({type:"changeMagicType",currentType:u,newOption:s,newTitle:r,featureName:"magicType"})}},e}(s.f1),A={line:function(t,e,i,o){if("bar"===t)return a.TS({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},o.get(["option","line"])||{},!0)},bar:function(t,e,i,o){if("line"===t)return a.TS({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},o.get(["option","bar"])||{},!0)},stack:function(t,e,i,o){var n=i.get("stack")===k;if("line"===t||"bar"===t)return o.setIconStatus("stack",n?"normal":"emphasis"),a.TS({id:e,stack:n?"":k},o.get(["option","stack"])||{},!0)}};C.zl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var Z=L,z=i(48043),O=new Array(60).join("-"),V="\t";function P(t){var e={},i=[],o=[];return t.eachRawSeries((function(t){var n=t.coordinateSystem;if(!n||"cartesian2d"!==n.type&&"polar"!==n.type)i.push(t);else{var r=n.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;e[a]||(e[a]={categoryAxis:r,valueAxis:n.getOtherAxis(r),series:[]},o.push({axisDim:r.dim,axisIndex:r.index})),e[a].series.push(t)}else i.push(t)}})),{seriesGroupByCategoryAxis:e,other:i,meta:o}}function H(t){var e=[];return a.S6(t,(function(t,i){var o=t.categoryAxis,n=t.valueAxis,r=n.dim,s=[" "].concat(a.UI(t.series,(function(t){return t.name}))),l=[o.model.getCategories()];a.S6(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var u=[s.join(V)],p=0;p=0)return!0}var F=new RegExp("["+V+"]+","g");function X(t){for(var e=t.split(/\n+/g),i=E(e.shift()).split(F),o=[],n=a.UI(i,(function(t){return{name:t,data:[]}})),r=0;r1?"emphasis":"normal")}function lt(t,e,i,o,n){var r=i._isZoomActive;o&&"takeGlobalCursor"===o.type&&(r="dataZoomSelect"===o.key&&o.dataZoomSelectActive),i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var a=new $.Z(at(t),e,{include:["grid"]}),s=a.makePanelOpts(n,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));i._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(0,et.f)("dataZoom",(function(t){var e=t.getComponent("toolbox",0),i=["feature","dataZoom"];if(e&&null!=e.get(i)){var o=e.getModel(i),n=[],r=at(o),a=(0,I.pm)(t,r);return it(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),it(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),n}function s(t,e,i){var r=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:ot+e+r};a[i]=r,n.push(a)}}));var ut=nt;function pt(t){t.registerComponentModel(p),t.registerComponentView(M),(0,s.ls)("saveAsImage",T),(0,s.ls)("magicType",Z),(0,s.ls)("dataView",j),(0,s.ls)("dataZoom",ut),(0,s.ls)("restore",q),(0,o.D)(n.N)}},46842:function(t,e,i){i.d(e,{N:function(){return ht}});var o=i(9980),n=i(83384),r=i(50029),a=i(78971),s=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,r.ZT)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(a.Z),l=s,u=i(41576),p=i(70574),h=i(48043),c=i(25516),d=i(63441);function f(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function g(t){if(p.Z.domSupported)for(var e=document.documentElement.style,i=0,o=t.length;i-1?(l+="top:50%",p+="translateY(-50%) rotate("+(r="left"===a?-225:-45)+"deg)"):(l+="left:50%",p+="translateX(-50%) rotate("+(r="top"===a?225:45)+"deg)");var h=r*Math.PI/180,c=s+n,f=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),g=Math.round(100*((f-Math.SQRT2*n)/2+Math.SQRT2*n-(f-c)/2))/100;l+=";"+a+":-"+g+"px";var v=e+" solid "+n+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+p+";","border-bottom:"+v,"border-right:"+v,"background-color:"+o+";"];return'
'}function C(t,e){var i="cubic-bezier(0.23,1,0.32,1)",o=" "+t/2+"s "+i,n="opacity"+o+",visibility"+o;return e||(o=" "+t+"s "+i,n+=p.Z.transformSupported?","+M+o:",left"+o+",top"+o),S+":"+n}function I(t,e,i){var o=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!p.Z.transformSupported)return i?"top:"+n+";left:"+o+";":[["top",n],["left",o]];var r=p.Z.transform3dSupported,a="translate"+(r?"3d":"")+"("+o+","+n+(r?",0":"")+")";return i?"top:0;left:0;"+M+":"+a+";":[["top",0],["left",0],[v,a]]}function k(t){var e=[],i=t.get("fontSize"),o=t.getTextColor();o&&e.push("color:"+o),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px");var n=t.get("textShadowColor"),r=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return n&&r&&e.push("text-shadow:"+a+"px "+s+"px "+r+"px "+n),(0,u.S6)(["decoration","align"],(function(i){var o=t.get(i);o&&e.push("text-"+i+":"+o)})),e.join(";")}function D(t,e,i){var o=[],n=t.get("transitionDuration"),r=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=(0,_.d_)(t,"html"),f=l+"px "+p+"px "+a+"px "+s;return o.push("box-shadow:"+f),e&&n&&o.push(C(n,i)),r&&o.push("background-color:"+r),(0,u.S6)(["width","color","radius"],(function(e){var i="border-"+e,n=(0,d.zW)(i),r=t.get(n);null!=r&&o.push(i+":"+r+("color"===e?"":"px"))})),o.push(k(h)),null!=c&&o.push("padding:"+(0,d.MY)(c).join("px ")+"px"),o.join(";")+";"}function L(t,e,i,o,n){var r=e&&e.painter;if(i){var a=r&&r.getViewportRoot();a&&(0,c.YB)(t,a,document.body,o,n)}else{t[0]=o,t[1]=n;var s=r&&r.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var A=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,p.Z.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var n=this._zr=e.getZr(),r=this._appendToBody=i&&i.appendToBody;L(this._styleCoord,n,r,e.getWidth()/2,e.getHeight()/2),r?document.body.appendChild(o):t.appendChild(o),this._container=t;var a=this;o.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},o.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=n.handler,i=n.painter.getViewportRoot();(0,h.OD)(i,t,!0),e.dispatch("mousemove",t)}},o.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=x(e,"position"),o=e.style;"absolute"!==o.position&&"absolute"!==i&&(o.position="relative");var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,o=i.style,n=this._styleCoord;i.innerHTML?o.cssText=b+D(t,!this._firstShow,this._longHide)+I(n[0],n[1],!0)+"border-color:"+(0,d.Lz)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,o,n){var r=this.el;if(null!=t){var a="";if((0,u.HD)(n)&&"item"===i.get("trigger")&&!f(i)&&(a=T(i,o,n)),(0,u.HD)(t))r.innerHTML=t+a;else if(t){r.innerHTML="",(0,u.kJ)(t)||(t=[t]);for(var s=0;s=0?this._tryShow(i,o):"leave"===t&&this._hide(o))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,o=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,i,o){if(o.from!==this.uid&&!p.Z.node&&i.getDom()){var n=nt(o,i);this._ticket="";var r=o.dataByCoordSys,a=ut(o,e,i);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:o.position,positionDefault:"bottom"},n)}else if(o.tooltip&&null!=o.x&&null!=o.y){var l=et;l.x=o.x,l.y=o.y,l.update(),(0,q.A)(l).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:l},n)}else if(r)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:r,tooltipOption:o.tooltipOption},n);else if(null!=o.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,o))return;var u=(0,F.Z)(o,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:o.position,positionDefault:"bottom"},n)}else null!=o.x&&null!=o.y&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},n))}},e.prototype.manuallyHideTip=function(t,e,i,o){var n=this._tooltipContent;this._tooltipModel&&n.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(nt(o,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,o){var n=o.seriesIndex,r=o.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=n&&null!=r&&null!=a){var s=e.getSeriesByIndex(n);if(s){var l=s.getData(),u=ot([l.getItemModel(r),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:n,dataIndex:r,position:o.position}),!0}}},e.prototype._tryShow=function(t,e){var i=t.target,o=this._tooltipModel;if(o){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,t);else if(i){var r,a;this._lastDataByCoordSys=null,(0,$.o)(i,(function(t){return null!=(0,q.A)(t).dataIndex?(r=t,!0):null!=(0,q.A)(t).tooltipConfig?(a=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=(0,u.ak)(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,o=this._tooltipModel,n=[e.offsetX,e.offsetY],r=ot([e.tooltipOption],o),a=this._renderMode,s=[],l=(0,_.TX)("section",{blocks:[],noHeader:!0}),p=[],h=new _.iv;(0,u.S6)(t,(function(t){(0,u.S6)(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value;if(e&&null!=n){var r=Y.gk(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),c=(0,_.TX)("section",{header:r,noHeader:!(0,u.fy)(r),sortBlocks:!0,blocks:[]});l.blocks.push(c),(0,u.S6)(t.seriesDataIndices,(function(l){var f=i.getSeriesByIndex(l.seriesIndex),g=l.dataIndexInside,v=f.getDataParams(g);if(!(v.dataIndex<0)){v.axisDim=t.axisDim,v.axisIndex=t.axisIndex,v.axisType=t.axisType,v.axisId=t.axisId,v.axisValue=U.DX(e.axis,{value:n}),v.axisValueLabel=r,v.marker=h.makeTooltipMarker("item",(0,d.Lz)(v.color),a);var y=(0,Q.f)(f.formatTooltip(g,!0,null)),m=y.frag;if(m){var x=ot([f],o).get("valueFormatter");c.blocks.push(x?(0,u.l7)({valueFormatter:x},m):m)}y.text&&p.push(y.text),s.push(v)}}))}}))})),l.blocks.reverse(),p.reverse();var c=e.position,f=r.get("order"),g=(0,_.BY)(l,h,a,f,i.get("useUTC"),r.get("textStyle"));g&&p.unshift(g);var v="richText"===a?"\n\n":"
",y=p.join(v);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,c,n[0],n[1],this._tooltipContent,s):this._showTooltipContent(r,y,s,Math.random()+"",n[0],n[1],c,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,i){var o=this._ecModel,n=(0,q.A)(e),r=n.seriesIndex,a=o.getSeriesByIndex(r),s=n.dataModel||a,l=n.dataIndex,p=n.dataType,h=s.getData(p),c=this._renderMode,f=t.positionDefault,g=ot([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(null==v||"item"===v){var y=s.getDataParams(l,p),m=new _.iv;y.marker=m.makeTooltipMarker("item",(0,d.Lz)(y.color),c);var x=(0,Q.f)(s.formatTooltip(l,!1,p)),S=g.get("order"),M=g.get("valueFormatter"),b=x.frag,w=b?(0,_.BY)(M?(0,u.l7)({valueFormatter:M},b):b,m,c,S,o.get("useUTC"),g.get("textStyle")):x.text,T="item_"+s.name+"_"+l;this._showOrMove(g,(function(){this._showTooltipContent(g,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)})),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:r,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var o=(0,q.A)(e),n=o.tooltipConfig,r=n.option||{};if((0,u.HD)(r)){var a=r;r={content:a,formatter:a}}var s=[r],l=this._ecModel.getComponent(o.componentMainType,o.componentIndex);l&&s.push(l),s.push({formatter:r.content});var p=t.positionDefault,h=ot(s,this._tooltipModel,p?{position:p}:null),c=h.get("content"),d=Math.random()+"",f=new _.iv;this._showOrMove(h,(function(){var i=(0,u.d9)(h.get("formatterParams")||{});this._showTooltipContent(h,c,i,d,t.offsetX,t.offsetY,t.position,e,f)})),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,o,n,r,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var p=this._tooltipContent;p.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,f=this._getNearestPoint([n,r],i,t.get("trigger"),t.get("borderColor")),g=f.color;if(h)if((0,u.HD)(h)){var v=t.ecModel.get("useUTC"),y=(0,u.kJ)(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=h,m&&(c=(0,K.WU)(y.axisValue,c,v)),c=(0,d.kF)(c,i,!0)}else if((0,u.mf)(h)){var x=(0,u.ak)((function(e,o){e===this._ticket&&(p.setContent(o,l,t,g,a),this._updatePosition(t,a,n,r,p,i,s))}),this);this._ticket=o,c=h(i,o,x)}else c=h;p.setContent(c,l,t,g,a),p.show(t,g),this._updatePosition(t,a,n,r,p,i,s)}},e.prototype._getNearestPoint=function(t,e,i,o){return"axis"===i||(0,u.kJ)(e)?{color:o||("html"===this._renderMode?"#fff":"none")}:(0,u.kJ)(e)?void 0:{color:o||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,o,n,r,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var p=n.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),(0,u.mf)(e)&&(e=e([i,o],r,n.el,d,{viewSize:[s,l],contentSize:p.slice()})),(0,u.kJ)(e))i=(0,E.GM)(e[0],s),o=(0,E.GM)(e[1],l);else if((0,u.Kn)(e)){var g=e;g.width=p[0],g.height=p[1];var v=(0,X.ME)(g,{width:s,height:l});i=v.x,o=v.y,h=null,c=null}else if((0,u.HD)(e)&&a){var y=st(e,d,p,t.get("borderWidth"));i=y[0],o=y[1]}else{y=rt(i,o,n,s,l,h?null:20,c?null:20);i=y[0],o=y[1]}if(h&&(i-=lt(h)?p[0]/2:"right"===h?p[0]:0),c&&(o-=lt(c)?p[1]/2:"bottom"===c?p[1]:0),f(t)){y=at(i,o,n,s,l);i=y[0],o=y[1]}n.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,o=this._cbParamsList,n=!!i&&i.length===t.length;return n&&(0,u.S6)(i,(function(i,r){var a=i.dataByAxis||[],s=t[r]||{},l=s.dataByAxis||[];n=n&&a.length===l.length,n&&(0,u.S6)(a,(function(t,i){var r=l[i]||{},a=t.seriesDataIndices||[],s=r.seriesDataIndices||[];n=n&&t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&a.length===s.length,n&&(0,u.S6)(a,(function(t,e){var i=s[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})),o&&(0,u.S6)(t.seriesDataIndices,(function(t){var i=t.seriesIndex,r=e[i],a=o[i];r&&a&&a.data!==r.data&&(n=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!p.Z.node&&e.getDom()&&((0,tt.ZH)(this,"_updatePosition"),this._tooltipContent.dispose(),W.E("itemTooltip",e))},e.type="tooltip",e}(J.Z);function ot(t,e,i){var o,n=e.ecModel;i?(o=new G.Z(i,n,n),o=new G.Z(e.option,o,n)):o=e;for(var r=t.length-1;r>=0;r--){var a=t[r];a&&(a instanceof G.Z&&(a=a.get("tooltip",!0)),(0,u.HD)(a)&&(a={formatter:a}),a&&(o=new G.Z(a,o,n)))}return o}function nt(t,e){return t.dispatchAction||(0,u.ak)(e.dispatchAction,e)}function rt(t,e,i,o,n,r,a){var s=i.getSize(),l=s[0],u=s[1];return null!=r&&(t+l+r+2>o?t-=l+r:t+=r),null!=a&&(e+u+a>n?e-=u+a:e+=a),[t,e]}function at(t,e,i,o,n){var r=i.getSize(),a=r[0],s=r[1];return t=Math.min(t+a,o)-a,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function st(t,e,i,o){var n=i[0],r=i[1],a=Math.ceil(Math.SQRT2*o)+8,s=0,l=0,u=e.width,p=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+p/2-r/2;break;case"top":s=e.x+u/2-n/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-n/2,l=e.y+p+a;break;case"left":s=e.x-n-a,l=e.y+p/2-r/2;break;case"right":s=e.x+u+a,l=e.y+p/2-r/2}return[s,l]}function lt(t){return"center"===t||"middle"===t}function ut(t,e,i){var o=(0,j.zH)(t).queryOptionMap,n=o.keys()[0];if(n&&"series"!==n){var r=(0,j.HZ)(e,n,o.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s,l=i.getViewOfComponentModel(a);return l.group.traverse((function(e){var i=(0,q.A)(e).tooltipConfig;if(i&&i.name===t.name)return s=e,!0})),s?{componentMainType:n,componentIndex:a.componentIndex,el:s}:void 0}}}var pt=it;function ht(t){(0,n.D)(o.N),t.registerComponentModel(l),t.registerComponentView(pt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},u.ZT),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},u.ZT)}},95018:function(t,e,i){i.d(e,{w:function(){return s}});var o=i(41576),n=i(61465),r=i(99812),a=i(14442);function s(t){var e,i,s,u,p=t.series,h=t.dataIndex,c=t.multipleSeries,d=p.getData(),f=d.mapDimensionsAll("defaultedTooltip"),g=f.length,v=p.getRawValue(h),y=(0,o.kJ)(v),m=(0,n.jT)(p,h);if(g>1||y&&!g){var x=l(v,p,h,f,m);e=x.inlineValues,i=x.inlineValueTypes,s=x.blocks,u=x.inlineValues[0]}else if(g){var _=d.getDimensionInfo(f[0]);u=e=(0,r.hk)(d,h,f[0]),i=_.type}else u=e=y?v[0]:v;var S=(0,a.yu)(p),M=S&&p.name||"",b=d.getName(h),w=c?M:b;return(0,n.TX)("section",{header:M,noHeader:c||!S,sortParam:u,blocks:[(0,n.TX)("nameValue",{markerType:"item",markerColor:m,name:w,noName:!(0,o.fy)(w),value:e,valueType:i})].concat(s||[])})}function l(t,e,i,a,s){var l=e.getData(),u=(0,o.u4)(t,(function(t,e,i){var o=l.getDimensionInfo(i);return t||o&&!1!==o.tooltip&&null!=o.displayName}),!1),p=[],h=[],c=[];function d(t,e){var i=l.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(u?c.push((0,n.TX)("nameValue",{markerType:"subItem",markerColor:s,name:i.displayName,value:t,valueType:i.type})):(p.push(t),h.push(i.type)))}return a.length?(0,o.S6)(a,(function(t){d((0,r.hk)(l,i,t),t)})):(0,o.S6)(t,d),{inlineValues:p,inlineValueTypes:h,blocks:c}}},61465:function(t,e,i){i.d(e,{BY:function(){return m},TX:function(){return c},d_:function(){return C},iv:function(){return I},jT:function(){return T}});var o=i(25516),n=i(63441),r=i(41576),a=i(23828),s=i(35038),l="line-height:1";function u(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,r=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,o.F1)(n+"")+"px;color:"+(0,o.F1)(i)+";font-weight:"+(0,o.F1)(r+""),valueStyle:"font-size:"+(0,o.F1)(s+"")+"px;color:"+(0,o.F1)(a)+";font-weight:"+(0,o.F1)(l+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var p=[0,10,20,30],h=["","\n","\n\n","\n\n\n"];function c(t,e){return e.type=t,e}function d(t){return"section"===t.type}function f(t){return d(t)?v:y}function g(t){if(d(t)){var e=0,i=t.blocks.length,o=i>1||i>0&&!t.noHeader;return(0,r.S6)(t.blocks,(function(t){var i=g(t);i>=e&&(e=i+ +(o&&(!i||d(t)&&!t.noHeader)))})),e}return 0}function v(t,e,i,s){var p=e.noHeader,h=x(g(e)),c=[],d=e.blocks||[];(0,r.hu)(!d||(0,r.kJ)(d)),d=d||[];var v=t.orderMode;if(e.sortBlocks&&v){d=d.slice();var y={valueAsc:"asc",valueDesc:"desc"};if((0,r.RI)(y,v)){var m=new a.ID(y[v],null);d.sort((function(t,e){return m.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===v&&d.reverse()}(0,r.S6)(d,(function(i,o){var n=e.valueFormatter,a=f(i)(n?(0,r.l7)((0,r.l7)({},t),{valueFormatter:n}):t,i,o>0?h.html:0,s);null!=a&&c.push(a)}));var S="richText"===t.renderMode?c.join(h.richText):_(c.join(""),p?i:h.html);if(p)return S;var M=(0,n.uX)(e.header,"ordinal",t.useUTC),w=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?b(t,M,w)+h.richText+S:_('
'+(0,o.F1)(M)+"
"+S,i)}function y(t,e,i,o){var a=t.renderMode,s=e.noName,l=e.noValue,p=!e.markerType,h=e.name,c=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return t=(0,r.kJ)(t)?t:[t],(0,r.UI)(t,(function(t,e){return(0,n.uX)(t,(0,r.kJ)(v)?v[e]:v,c)}))};if(!s||!l){var f=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=s?"":(0,n.uX)(h,"ordinal",c),v=e.valueType,y=l?[]:d(e.value),m=!p||!s,x=!p&&s,T=u(o,a),C=T.nameStyle,I=T.valueStyle;return"richText"===a?(p?"":f)+(s?"":b(t,g,C))+(l?"":w(t,y,m,x,I)):_((p?"":f)+(s?"":S(g,!p,C))+(l?"":M(y,m,x,I)),i)}}function m(t,e,i,o,n,r){if(t){var a=f(t),s={useUTC:n,renderMode:i,orderMode:o,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,r)}}function x(t){return{html:p[t],richText:h[t]}}function _(t,e){var i='
',o="margin: "+e+"px 0 0";return'
'+t+i+"
"}function S(t,e,i){var n=e?"margin-left:2px":"";return''+(0,o.F1)(t)+""}function M(t,e,i,n){var a=i?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=(0,r.kJ)(t)?t:[t],''+(0,r.UI)(t,(function(t){return(0,o.F1)(t)})).join("  ")+""}function b(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function w(t,e,i,o,n){var a=[n],s=o?10:20;return i&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,r.kJ)(e)?e.join(" "):e,a)}function T(t,e){var i=t.getData().getItemVisual(e,"style"),o=i[t.visualDrawType];return(0,n.Lz)(o)}function C(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}var I=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.jj)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var o="richText"===i?this._generateStyleName():null,a=(0,n.A0)({color:e,type:t,renderMode:i,markerId:o});return(0,r.HD)(a)?a:(this.richTextStyles[o]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};(0,r.kJ)(e)?(0,r.S6)(e,(function(t){return(0,r.l7)(i,t)})):(0,r.l7)(i,e);var o=this._generateStyleName();return this.richTextStyles[o]=i,"{"+o+"|"+t+"}"},t}()},42633:function(t,e,i){i.d(e,{N:function(){return h}});var o=i(41033),n=i(41576),r=i(23645),a={type:"echarts:filter",transform:function(t){for(var e,i=t.upstream,a=(0,o.a)(t.config,{valueGetterAttrMap:(0,n.kW)({dimension:!0}),prepareGetValue:function(t){var e="",o=t.dimension;(0,n.RI)(t,"dimension")||(0,r._y)(e);var a=i.getDimensionInfo(o);return a||(0,r._y)(e),{dimIdx:a.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}}),s=[],l=0,u=i.count();l"],n.kJ(t)&&(t=t.slice(),o=!0);var u=e?t:o?[p(t[0]),p(t[1])]:p(t);return n.HD(l)?l.replace("{value}",o?u[0]:u).replace("{value2}",o?u[1]:u):n.mf(l)?o?l(t[0],t[1]):l(t):o?t[0]===s[0]?i[0]+" "+u[1]:t[1]===s[1]?i[1]+" "+u[0]:u[0]+" - "+u[1]:u;function p(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var n=i[o],r=t.getDimensionInfo(n);if(!r.isCalculationCoord)return r.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},o=e.target||(e.target={}),s=e.controller||(e.controller={});n.TS(o,i),n.TS(s,i);var l=this.isCategory();function u(i){d(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")}}function p(t,e,i){var o=t[e],n=t[i];o&&!n&&(n=t[i]={},f(o,(function(t,e){if(a.Z.isValidType(e)){var i=r.Z.get(e,"inactive",l);null!=i&&(n[e]=i,"color"!==e||n.hasOwnProperty("opacity")||n.hasOwnProperty("colorAlpha")||(n.opacity=[0,0]))}})))}function g(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,o=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";f(this.stateList,(function(r){var s=this.itemSize,u=t[r];u||(u=t[r]={color:l?o:[o]}),null==u.symbol&&(u.symbol=e&&n.d9(e)||(l?a:[a])),null==u.symbolSize&&(u.symbolSize=i&&n.d9(i)||(l?s[0]:[s[0],s[0]])),u.symbol=h(u.symbol,(function(t){return"none"===t?a:t}));var p=u.symbolSize;if(null!=p){var d=-1/0;c(p,(function(t){t>d&&(d=t)})),u.symbolSize=h(p,(function(t){return v(t,[0,d],[0,s[0]],!0)}))}}),this)}u.call(this,o),u.call(this,s),p.call(this,o,"inRange","outOfRange"),g.call(this,s)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(p.Z);e["Z"]=y},2814:function(t,e,i){var o=i(50029),n=i(41576),r=i(41446),a=i(63441),s=i(84606),l=i(28107),u=i(29445),p=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.autoPositionValues={left:1,right:1,top:1,bottom:1},i}return(0,o.ZT)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,i,o){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,i,o):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,i=a.MY(e.get("padding")||0),o=t.getBoundingRect();t.add(new r.Z({z2:-1,silent:!0,shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[3]+i[1],height:o.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,i){i=i||{};var o=i.forceState,r=this.visualMapModel,a={};if("color"===e){var s=r.get("contentColor");a.color=s}function u(t){return a[t]}function p(t,e){a[t]=e}var h=r.controllerVisuals[o||r.getValueState(t)],c=l.Z.prepareVisualTypes(h);return n.S6(c,(function(o){var n=h[o];i.convertOpacityToAlpha&&"opacity"===o&&(o="colorAlpha",n=h.__alphaForOpacity),l.Z.dependsOn(o,e)&&n&&n.applyVisual(t,u,p)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,i=this.api;s.p$(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,e,i,o){},e.type="visualMap",e}(u.Z);e["Z"]=p},80130:function(t,e,i){i.d(e,{H:function(){return s},X:function(){return a}});var o=i(41576),n=i(84606),r=[["left","right","width"],["top","bottom","height"]];function a(t,e,i){var o=t.option,a=o.align;if(null!=a&&"auto"!==a)return a;for(var s={width:e.getWidth(),height:e.getHeight()},l="horizontal"===o.orient?1:0,u=r[l],p=[0,null,10],h={},c=0;c<3;c++)h[r[1-l][c]]=p[c],h[u[c]]=2===c?i[0]:o[u[c]];var d=[["x","width",3],["y","height",0]][l],f=(0,n.ME)(h,s,o.padding);return u[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*s[d[1]]?0:1]}function s(t,e){return o.S6(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},3506:function(t,e,i){i.d(e,{N:function(){return a}});var o=i(83384),n=i(36435),r=i(95195);function a(t){(0,o.D)(n.N),(0,o.D)(r.N)}},70396:function(t,e,i){i.d(e,{Z:function(){return g}});var o={type:"selectDataRange",event:"dataRangeSelected",update:"update"},n=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},r=i(41576),a=i(83586),s=i(28107),l=i(10195),u=[{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",(function(e){var o=t.pipelineContext;!e.isTargetSeries(t)||o&&o.large||i.push(a.Z7(e.stateList,e.targetVisuals,r.ak(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),i}},{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),o=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var n=e.getVisualMeta(r.ak(p,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(i);a>=0&&(n.dimension=a,o.push(n))}})),t.getData().setVisual("visualMeta",o)}}];function p(t,e,i,o){for(var n=e.targetVisuals[o],r=s.Z.prepareVisualTypes(n),a={color:(0,l.UL)(t.getData(),"color")},u=0,p=r.length;u0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(o,n),(0,r.S6)(u,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(c))}},36435:function(t,e,i){i.d(e,{N:function(){return X}});var o=i(50029),n=i(41576),r=i(2616),a=i(35038),s=i(61279),l=[20,140],u=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.prototype.optionUpdated=function(e,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=l[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=l[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):n.kJ(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),n.S6(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=a.dt((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(i){var o=[],n=i.getData();n.each(this.getDataDimensionIndex(n),(function(e,i){t[0]<=e&&e<=t[1]&&o.push(i)}),this),e.push({seriesId:i.id,dataIndex:o})}),this),e},e.prototype.getVisualMeta=function(t){var e=p(this,"outOfRange",this.getExtent()),i=p(this,"inRange",this.option.range.slice()),o=[];function n(e,i){o.push({value:e,color:t(e,i)})}for(var r=0,a=0,s=i.length,l=e.length;at[1])break;o.push({color:this.getControllerVisual(a,"color",e),offset:r/i})}return o.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),o},e.prototype._createBarPoints=function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new v.Z("horizontal"!==e||i?"horizontal"===e&&i?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||i?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,n=i.handleThumbs,r=i.handleLabels,a=o.itemSize,s=o.getExtent();A([0,1],(function(l){var u=n[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var p=L(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(p,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var c=m.applyTransform(i.handleLabelPoints[l],m.getTransform(u,this.group));r[l].setStyle({x:c[0],y:c[1],text:o.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",i.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,i,o){var n=this.visualMapModel,r=n.getExtent(),a=n.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",p),c=this.getControllerVisual(t,"symbolSize"),d=L(t,r,s,!0),f=a[0]-c/2,g={x:u.x,y:u.y};u.y=d,u.x=f;var v=m.applyTransform(l.indicatorLabelPoint,m.getTransform(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var x=this._applyTransform("left",l.mainGroup),_=this._orient,S="horizontal"===_;y.setStyle({text:(i||"")+n.formatValueText(e),verticalAlign:S?x:"middle",align:S?"center":x});var M={x:f,y:d,style:{fill:h}},b={style:{x:v[0],y:v[1]}};if(n.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(M,w),y.animateTo(b,w)}else u.attr(M),y.attr(b);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var C=0;Cn[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var p=this._hoverLinkDataIndices,h=[];(e||R(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var c=M.XI(p,h);this._dispatchHighDown("downplay",S.H(c[0],i)),this._dispatchHighDown("highlight",S.H(c[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,D.o)(t.target,(function(t){var i=(0,I.A)(t);if(null!=i.dataIndex)return e=i,!0}),!0),e){var i=this.ecModel.getSeriesByIndex(e.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var n=i.getData(e.dataType),r=n.getStore().get(o.getDataDimensionIndex(n),e.dataIndex);isNaN(r)||this._showIndicator(r,r)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var i=0;i0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=n.d9(t)},e.prototype.getValueState=function(t){var e=a.Z.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],i=this._pieceList;return this.eachTargetSeries((function(o){var n=[],r=o.getData();r.each(this.getDataDimensionIndex(r),(function(e,o){var r=a.Z.findPieceIndex(e,i);r===t&&n.push(o)}),this),e.push({seriesId:o.id,dataIndex:n})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],i=["",""],o=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),a=r[r.length-1].interval[1],a!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return n.S6(r,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:i}}function l(n,r){var a=o.getRepresentValue({interval:n});r||(r=o.getValueState(a));var s=t(a,r);n[0]===-1/0?i[0]=s:n[1]===1/0?i[1]=s:e.push({value:n[0],color:s},{value:n[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,u.ZL)(r.Z.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(r.Z),h={splitNumber:function(t){var e=this.option,i=Math.min(e.precision,20),o=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var a=(o[1]-o[0])/r;while(+a.toFixed(i)!==a&&i<5)i++;e.precision=i,a=+a.toFixed(i),e.minOpen&&t.push({interval:[-1/0,o[0]],close:[0,0]});for(var s=0,u=o[0];s","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function c(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var d=p,f=i(2814),g=i(62948),v=i(4983),y=i(28397),m=i(84606),x=i(80130),_=i(87218),S=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return(0,o.ZT)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),o=e.textStyleModel,r=o.getFont(),a=o.getTextColor(),s=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),p=u.endsText,h=n.Jv(e.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],l,h,s),n.S6(u.viewPieceList,(function(o){var u=o.piece,p=new g.Z;p.onclick=n.ak(this._onItemClick,this,u),this._enableHoverLink(p,o.indexInModelPieceList);var c=e.getRepresentValue(u);if(this._createItemSymbol(p,c,[0,0,l[0],l[1]]),h){var d=this.visualMapModel.getValueState(c);p.add(new v.ZP({style:{x:"right"===s?-i:l[0]+i,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:r,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(p)}),this),p&&this._renderEndsText(t,p[1],l,h,s),m.BZ(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var i=this;t.on("mouseover",(function(){return o("highlight")})).on("mouseout",(function(){return o("downplay")}));var o=function(t){var o=i.visualMapModel;o.option.hoverLink&&i.api.dispatchAction({type:t,batch:x.H(o.findTargetDataIndices(e),o)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return x.X(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},e.prototype._renderEndsText=function(t,e,i,o,n){if(e){var r=new g.Z,a=this.visualMapModel.textStyleModel;r.add(new v.ZP({style:(0,_.Lr)(a,{x:o?"right"===n?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?n:"center",text:e})})),t.add(r)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=n.UI(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),o=t.get("orient"),r=t.get("inverse");return("horizontal"===o?r:!r)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},e.prototype._createItemSymbol=function(t,e,i){t.add((0,y.th)(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,i=e.option,o=i.selectedMode;if(o){var r=n.d9(i.selected),a=e.getSelectedMapKey(t);"single"===o||!0===o?(r[a]=!0,n.S6(r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(f.Z),M=S,b=i(70396);function w(t){t.registerComponentModel(d),t.registerComponentView(M),(0,b.Z)(t)}}}]);