123456 |
- /*!
- * build: Vue Admin Plus
- * copyright: vue-admin-beautiful.com
- * time: 2024-06-17 18:02:30
- */
- "use strict";(self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[218],{20381:function(e,t,n){n.d(t,{a:function(){return R}});var o=n(98026),i=n(15215),r=n(48170),a=n(15915),l=n(34253);function s(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var o=t.parentOption;o?t.parentId=o.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function u(e,t){var n;return o.__(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function c(e,t,n){var i=o.X$({},n),r=e[t],a=n.$action||"merge";"merge"===a?r?(o.h1(r,i,!0),(0,l.YA)(r,i,{ignoreSize:!0}),(0,l.Ir)(n,r),d(n,r),d(n,r,"shape"),d(n,r,"style"),d(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===a?e[t]=i:"remove"===a&&r&&(e[t]=null)}var p=["transition","enterFrom","leaveTo"],g=p.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function d(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var o=n?p:g,i=0;i<o.length;i++){var r=o[i];null==e[r]&&null!=t[r]&&(e[r]=t[r])}}function h(e,t){if(e&&(e.hv=t.hv=[u(t,["left","right"]),u(t,["top","bottom"])],"group"===e.type)){var n=e,o=t;null==n.width&&(n.width=o.width=0),null==n.height&&(n.height=o.height=0)}}var f=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return(0,i.C6)(t,e),t.prototype.mergeOption=function(t,n){var o=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=o},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,a=n.elements=t?[]:n.elements,l=[];this._flatten(i,l,null);var u=r.O2(a,l,"normalMerge"),p=this._elOptionsToUpdate=[];o.__(u,(function(e,t){var n=e.newOption;n&&(p.push(n),s(e,n),c(a,t,n),h(a[t],n))}),this),n.elements=o.pb(a,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){o.__(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var o=e.children;o&&o.length&&this._flatten(o,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(a.A),m=n(71519),y=n(43870),v=n(90540),_=n(82980),x=n(43199),b=n(24326),S=n(59109),A=n(69622),w=n(9848),C=n(57625),I=n(5638),M=n(92606),T={path:null,compoundPath:null,group:y.A,image:v.Ay,text:_.Ay},D=r.$r(),P=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.init=function(){this._elMap=o.nt()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,a=e.get("z"),l=e.get("zlevel");o.__(t,(function(t){var o=r.vS(t.id,null),s=null!=o?n.get(o):null,u=r.vS(t.parentId,null),c=null!=u?n.get(u):i,p=t.type,g=t.style;"text"===p&&g&&t.hv&&t.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var d=t.textContent,h=t.textConfig;if(g&&(0,w.ex)(g,p,!!h,!!d)){var f=(0,w.lH)(g,p,!0);!h&&f.textConfig&&(h=t.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var m=L(t);var y=t.$action||"merge",v="merge"===y,b="replace"===y;if(v){var S=!s,A=s;S?A=G(o,c,t.type,n):(A&&(D(A).isNew=!1),(0,M.$)(A)),A&&((0,C.rh)(A,m,e,{isInit:S}),z(A,t,a,l))}else if(b){O(s,t,n,e);var I=G(o,c,t.type,n);I&&((0,C.rh)(I,m,e,{isInit:!0}),z(I,t,a,l))}else"remove"===y&&((0,C.aB)(s,t),O(s,t,n,e));var T=n.get(o);if(T&&d)if(v){var P=T.getTextContent();P?P.attr(d):T.setTextContent(new _.Ay(d))}else b&&T.setTextContent(new _.Ay(d));if(T){var R=t.clipPath;if(R){var V=R.type,B=void 0;S=!1;if(v){var E=T.getClipPath();S=!E||D(E).type!==V,B=S?k(V):E}else b&&(S=!0,B=k(V));T.setClipPath(B),(0,C.rh)(B,R,e,{isInit:S}),(0,M.L)(B,R.keyframeAnimation,e)}var F=D(T);T.setTextConfig(h),F.option=t,N(T,e,t),x.setTooltipConfig({el:T,componentModel:e,itemName:T.name,itemTooltipOption:t.tooltip}),(0,M.L)(T,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,a=this._elMap,s=t.getWidth(),u=t.getHeight(),c=["x","y"],p=0;p<n.length;p++){var g=n[p],d=r.vS(g.id,null),h=null!=d?a.get(d):null;if(h&&h.isGroup){var f=h.parent,m=f===i,y=D(h),v=D(f);y.width=(0,b.lo)(y.option.width,m?s:v.width)||0,y.height=(0,b.lo)(y.option.height,m?u:v.height)||0}}for(p=n.length-1;p>=0;p--){g=n[p],d=r.vS(g.id,null),h=null!=d?a.get(d):null;if(h){f=h.parent,v=D(f);var _=f===i?{width:s,height:u}:{width:v.width,height:v.height},x={},S=l.m$(h,g,_,null,{hv:g.hv,boundingMode:g.bounding},x);if(!D(h).isNew&&S){for(var A=g.transition,w={},M=0;M<c.length;M++){var T=c[M],P=x[T];A&&((0,C.ho)(A)||o.qh(A,T)>=0)?w[T]=P:h[T]=P}(0,I.oi)(h,w,e,0)}else h.attr(x)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){O(n,D(n).option,t,e._lastGraphicModel)})),this._elMap=o.nt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(S.A);function k(e){var t=o.$3(T,e)?T[e]:x.getShapeClass(e);var n=new t({});return D(n).type=e,n}function G(e,t,n,o){var i=k(n);return t.add(i),o.set(e,i),D(i).id=e,D(i).isNew=!0,i}function O(e,t,n,o){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){O(e,t,n,o)})),(0,C.h8)(e,t,o),n.removeKey(D(e).id))}function z(e,t,n,i){e.isGroup||o.__([["cursor",m.Ay.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];o.$3(t,i)?e[i]=o.bZ(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),o.__(o.HP(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=o.Tn(i)?i:null}})),o.$3(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function L(e){return e=o.X$({},e),o.__(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(l.Tj),(function(t){delete e[t]})),e}function N(e,t,n){var o=(0,A.z)(e).eventData;e.silent||e.ignore||o||(o=(0,A.z)(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),o&&(o.info=n.info)}function R(e){e.registerComponentModel(f),e.registerComponentView(P),e.registerPreprocessor((function(e){var t=e.graphic;(0,o.cy)(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}},45620:function(e,t,n){n.d(t,{a:function(){return a}});var o=n(69446),i=n(97063),r=n(3087);function a(e){(0,r.Y)(o.a),(0,r.Y)(i.a)}},69446:function(e,t,n){n.d(t,{a:function(){return h}});var o=n(15215),i=n(59109),r=n(36788),a=n(10992),l=n(98026),s=n(57483),u=n(34674),c=n(40728),p=n(1284),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return(0,o.C6)(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new a.A({shape:e.coordinateSystem.getRect(),style:(0,l.NT)({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(i.A),d={offset:0};function h(e){e.registerComponentView(g),e.registerComponentModel(r.A),e.registerCoordinateSystem("cartesian2d",c.A),(0,u.A)(e,"x",s.P,d),(0,u.A)(e,"y",s.P,d),e.registerComponentView(p.xR),e.registerComponentView(p.O8),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}},14403:function(e,t,n){var o=n(15215),i=n(98026),r=n(57861),a=n(43870),l=n(10992),s=n(43199),u=n(39195),c=n(52505),p=n(23868),g=n(16563),d=!0,h=Math.min,f=Math.max,m=Math.pow,y=1e4,v=6,_=6,x="globalPan",b={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},S={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},A={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},w=0,C=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new a.A,n._uid="brushController_"+w++,(0,i.__)(oe,(function(e,t){this._handlers[t]=(0,i.oI)(e,this)}),n),n}return(0,o.C6)(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||p.s(t,x,this._uid),(0,i.__)(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=(0,i.h1)((0,i.o8)(A),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;p._r(e,x,this._uid),(0,i.__)(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};(0,i.__)(e,(function(e){t[e.panelId]=(0,i.o8)(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=(0,i.Tj)(e,(function(e){return(0,i.h1)((0,i.o8)(A),e,!0)}));var t="\0-brush-index-",n=this._covers,o=this._covers=[],r=this,a=this._creatingCover;return new g.A(n,e,s,l).add(u).update(u).remove(c).execute(),this;function l(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return l(e.__brushOption,t)}function u(t,i){var l=e[t];if(null!=i&&n[i]===a)o[t]=n[i];else{var s=o[t]=null!=i?(n[i].__brushOption=l,n[i]):M(r,I(r,l));P(r,s)}}function c(e){n[e]!==a&&r.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),z(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(r.A);function I(e,t){var n=ae[t.brushType].createCover(e,t);return n.__brushOption=t,D(n,t),e.group.add(n),n}function M(e,t){var n=k(t);return n.endCreating&&(n.endCreating(e,t),D(t,t.__brushOption)),t}function T(e,t){var n=t.__brushOption;k(t).updateCoverShape(e,t,n.range,n)}function D(e,t){var n=t.z;null==n&&(n=y),e.traverse((function(e){e.z=n,e.z2=n}))}function P(e,t){k(t).updateCommon(e,t),T(e,t)}function k(e){return ae[e.__brushOption.brushType]}function G(e,t,n){var o,r=e._panels;if(!r)return d;var a=e._transform;return(0,i.__)(r,(function(e){e.isTargetByCursor(t,n,a)&&(o=e)})),o}function O(e,t){var n=e._panels;if(!n)return d;var o=t.__brushOption.panelId;return null!=o?n[o]:d}function z(e){var t=e._covers,n=t.length;return(0,i.__)(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function L(e,t){var n=(0,i.Tj)(e._covers,(function(e){var t=e.__brushOption,n=(0,i.o8)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function N(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],o=t[0],i=n[0]-o[0],r=n[1]-o[1],a=m(i*i+r*r,.5);return a>v}function R(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function V(e,t,n,o){var r=new a.A;return r.add(new l.A({name:"main",style:W(n),silent:!0,draggable:!0,cursor:"move",drift:(0,i.cF)(j,e,t,r,["n","s","w","e"]),ondragend:(0,i.cF)(L,t,{isEnd:!0})})),(0,i.__)(o,(function(n){r.add(new l.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,i.cF)(j,e,t,r,n),ondragend:(0,i.cF)(L,t,{isEnd:!0})}))})),r}function B(e,t,n,o){var i=o.brushStyle.lineWidth||0,r=f(i,_),a=n[0][0],l=n[1][0],s=a-i/2,u=l-i/2,c=n[0][1],p=n[1][1],g=c-r+i/2,d=p-r+i/2,h=c-a,m=p-l,y=h+i,v=m+i;F(e,t,"main",a,l,h,m),o.transformable&&(F(e,t,"w",s,u,r,v),F(e,t,"e",g,u,r,v),F(e,t,"n",s,u,y,r),F(e,t,"s",s,d,y,r),F(e,t,"nw",s,u,r,r),F(e,t,"ne",g,u,r,r),F(e,t,"sw",s,d,r,r),F(e,t,"se",g,d,r,r))}function E(e,t){var n=t.__brushOption,o=n.transformable,r=t.childAt(0);r.useStyle(W(n)),r.attr({silent:!o,cursor:o?"move":"default"}),(0,i.__)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),r=1===n.length?H(e,n[0]):$(e,n);i&&i.attr({silent:!o,invisible:!o,cursor:o?S[r]+"-resize":null})}))}function F(e,t,n,o,i,r,a){var l=t.childOfName(n);l&&l.setShape(Z(q(e,t,[[o,i],[o+r,i+a]])))}function W(e){return(0,i.NT)({strokeNoScale:!0},e.brushStyle)}function X(e,t,n,o){var i=[h(e,n),h(t,o)],r=[f(e,n),f(t,o)];return[[i[0],r[0]],[i[1],r[1]]]}function Y(e){return s.getTransform(e.group)}function H(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},i=s.transformDirection(n[t],Y(e));return o[i]}function $(e,t){var n=[H(e,t[0]),H(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function j(e,t,n,o,r,a){var l=n.__brushOption,s=e.toRectRange(l.range),u=J(t,r,a);(0,i.__)(o,(function(e){var t=b[e];s[t[0]][t[1]]+=u[t[0]]})),l.range=e.fromRectRange(X(s[0][0],s[1][0],s[0][1],s[1][1])),P(t,n),L(t,{isEnd:!1})}function K(e,t,n,o){var r=t.__brushOption.range,a=J(e,n,o);(0,i.__)(r,(function(e){e[0]+=a[0],e[1]+=a[1]})),P(e,t),L(e,{isEnd:!1})}function J(e,t,n){var o=e.group,i=o.transformCoordToLocal(t,n),r=o.transformCoordToLocal(0,0);return[i[0]-r[0],i[1]-r[1]]}function q(e,t,n){var o=O(e,t);return o&&o!==d?o.clipPath(n,e._transform):(0,i.o8)(n)}function Z(e){var t=h(e[0][0],e[1][0]),n=h(e[0][1],e[1][1]),o=f(e[0][0],e[1][0]),i=f(e[0][1],e[1][1]);return{x:t,y:n,width:o-t,height:i-n}}function U(e,t,n){if(e._brushType&&!re(e,t.offsetX,t.offsetY)){var o=e._zr,i=e._covers,r=G(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var l=i[a].__brushOption;if(r&&(r===d||l.panelId===r.panelId)&&ae[l.brushType].contain(i[a],n[0],n[1]))return}r&&o.setCursorStyle("crosshair")}}function Q(e){var t=e.event;t.preventDefault&&t.preventDefault()}function ee(e,t,n){return e.childOfName("main").contain(t,n)}function te(e,t,n,o){var r,a=e._creatingCover,l=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),N(e)||a){if(l&&!a){"single"===s.brushMode&&z(e);var u=(0,i.o8)(s);u.brushType=ne(u.brushType,l),u.panelId=l===d?null:l.panelId,a=e._creatingCover=I(e,u),e._covers.push(a)}if(a){var c=ae[ne(e._brushType,l)],p=a.__brushOption;p.range=c.getCreatingRange(q(e,a,e._track)),o&&(M(e,a),c.updateCommon(e,a)),T(e,a),r={isEnd:o}}}else o&&"single"===s.brushMode&&s.removeOnClick&&G(e,t,n)&&z(e)&&(r={isEnd:o,removeOnClick:!0});return r}function ne(e,t){return"auto"===e?t.defaultBrushType:e}var oe={mousedown:function(e){if(this._dragging)ie(this,e);else if(!e.target||!e.target.draggable){Q(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=G(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,o=this.group.transformCoordToLocal(t,n);if(U(this,e,o),this._dragging){Q(e);var i=te(this,e,o,!1);i&&L(this,i)}},mouseup:function(e){ie(this,e)}};function ie(e,t){if(e._dragging){Q(t);var n=t.offsetX,o=t.offsetY,i=e.group.transformCoordToLocal(n,o),r=te(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&L(e,r)}}function re(e,t,n){var o=e._zr;return t<0||t>o.getWidth()||n<0||n>o.getHeight()}var ae={lineX:le(0),lineY:le(1),rect:{createCover:function(e,t){function n(e){return e}return V({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=R(e);return X(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,o){B(e,t,n,o)},updateCommon:E,contain:ee},polygon:{createCover:function(e,t){var n=new a.A;return n.add(new u.A({name:"main",style:W(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new c.A({name:"main",draggable:!0,drift:(0,i.cF)(K,e,t),ondragend:(0,i.cF)(L,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,o){t.childAt(0).setShape({points:q(e,t,n)})},updateCommon:E,contain:ee}};function le(e){return{createCover:function(t,n){return V({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=R(t),o=h(n[0][e],n[1][e]),i=f(n[0][e],n[1][e]);return[o,i]},updateCoverShape:function(t,n,o,i){var r,a=O(t,n);if(a!==d&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(e);else{var l=t._zr;r=[0,[l.getWidth(),l.getHeight()][1-e]]}var s=[o,r];e&&s.reverse(),B(t,n,s,i)},updateCommon:E,contain:ee}}t.A=C},98595:function(e,t,n){var o=n(98026),i=n(43199),r=n(25451),a=n(48170),l=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],s=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=c(t,e);(0,o.__)(p,(function(e,t){(!n||!n.include||(0,o.qh)(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var o=h[e.brushType](0,n,t);e.__rangeOffset={offset:m[e.brushType](o.values,e.range,[1,1]),xyMinMax:o.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){(0,o.__)(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&(0,o.__)(i.coordSyses,(function(o){var i=h[e.brushType](1,o,e.range,!0);n(e,i.values,o,t)}))}),this)},e.prototype.setInputRanges=function(e,t){(0,o.__)(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var o=h[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?m[e.brushType](o.values,i.offset,v(o.xyMinMax,i.xyMinMax)):o.values}}),this)},e.prototype.makePanelOpts=function(e,t){return(0,o.Tj)(this._targetInfoList,(function(n){var o=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:r.wd(o),isTargetByCursor:r.x$(o,e,n.coordSysModel),getLinearBrushOtherExtent:r.wx(o)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&(0,o.qh)(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,o=c(t,e),i=0;i<n.length;i++){var r=n[i],a=e.panelId;if(a){if(r.panelId===a)return r}else for(var l=0;l<g.length;l++)if(g[l](o,r))return r}return!0},e}();function u(e){return e[0]>e[1]&&e.reverse(),e}function c(e,t){return(0,a._e)(e,t,{includeMainTypes:l})}var p={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,a=(0,o.nt)(),l={},s={};(n||i||r)&&((0,o.__)(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),l[t.id]=!0})),(0,o.__)(i,(function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0})),(0,o.__)(r,(function(e){a.set(e.id,e),l[e.id]=!0,s[e.id]=!0})),a.each((function(e){var r=e.coordinateSystem,a=[];(0,o.__)(r.getCartesians(),(function(e,t){((0,o.qh)(n,e.getAxis("x").model)>=0||(0,o.qh)(i,e.getAxis("y").model)>=0)&&a.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:d.grid,xAxisDeclared:l[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){(0,o.__)(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:d.geo})}))}},g=[function(e,t){var n=e.xAxisModel,o=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&o&&(i=o.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],d={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(i.getTransform(e)),t}},h={lineX:(0,o.cF)(f,0),lineY:(0,o.cF)(f,1),rect:function(e,t,n,o){var i=e?t.pointToData([n[0][0],n[1][0]],o):t.dataToPoint([n[0][0],n[1][0]],o),r=e?t.pointToData([n[0][1],n[1][1]],o):t.dataToPoint([n[0][1],n[1][1]],o),a=[u([i[0],r[0]]),u([i[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],a=(0,o.Tj)(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:a,xyMinMax:r}}};function f(e,t,n,i){var r=n.getAxis(["x","y"][e]),a=u((0,o.Tj)([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),l=[];return l[e]=a,l[1-e]=[NaN,NaN],{values:a,xyMinMax:l}}var m={lineX:(0,o.cF)(y,0),lineY:(0,o.cF)(y,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return(0,o.Tj)(e,(function(e,o){return[e[0]-n[0]*t[o][0],e[1]-n[1]*t[o][1]]}))}};function y(e,t,n,o){return[t[0]-o[e]*n[0],t[1]-o[e]*n[1]]}function v(e,t){var n=_(e),o=_(t),i=[n[0]/o[0],n[1]/o[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function _(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}t.A=s},8027:function(e,t,n){var o=n(98026),i=n(81722),r=n(56366),a=n(72589),l=n(43870),s=n(5638),u=n(52505),c=n(39195),p=n(82591),g=n(43199),d=n(34833),h=n(59458),f=n(12616),m=n(89632),y=n(69622),v=n(23538),_=n(71519),x=n(48170),b=["rect","circle","line","ellipse","polygon","polyline","path"],S=o.nt(b),A=o.nt(b.concat(["g"])),w=o.nt(b.concat(["g"])),C=(0,x.$r)();function I(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function M(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var T=function(){function e(e){var t=new l.A;this.uid=(0,f.$Q)("ec_map_draw"),this._controller=new i.A(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new l.A),t.add(this._svgGroup=new l.A)}return e.prototype.draw=function(e,t,n,o,i){var r="geo"===e.mainType,a=e.getData&&e.getData();r&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,p=l.getTransformInfo(),g=p.raw,d=p.roam,h=!u.childAt(0)||i;h?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):s.oi(c,d,e);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,m={api:n,geo:l,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:r,transformInfoRaw:g};"geoJSON"===l.resourceType?this._buildGeoJSON(m):"geoSVG"===l.resourceType&&this._buildSVG(m),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,o)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=o.nt(),n=o.nt(),i=this._regionsGroup,r=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,g=e.geo.projection,d=g&&g.stream;function h(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function f(e){for(var t=[],n=!d&&g&&g.project,o=0;o<e.length;++o){var i=h(e[o],n);i&&t.push(i)}return t}function m(e){return{shape:{points:f(e)}}}i.removeAll(),o.__(e.geo.regions,(function(r){var f=r.name,y=t.get(f),v=n.get(f)||{},_=v.dataIdx,x=v.regionModel;y||(y=t.set(f,new l.A),i.add(y),_=s?s.indexOfName(f):null,x=e.isGeo?a.getRegionModel(f):s?s.getItemModel(_):null,n.set(f,{dataIdx:_,regionModel:x}));var b=[],S=[];o.__(r.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);d&&(t=z(t,d)),o.__(t,(function(e){b.push(new u.A(m(e)))}))}else{var n=e.points;d&&(n=z(n,d,!0)),o.__(n,(function(e){S.push(new c.A(m(e)))}))}}));var A=h(r.getCenter(),g&&g.project);function w(t,n){if(t.length){var i=new p.A({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});y.add(i),D(e,i,_,x),P(e,i,f,x,a,_,A),n&&(M(i),o.__(i.states,M))}}w(b),w(S,!0)})),t.each((function(t,o){var i=n.get(o),r=i.dataIdx,l=i.regionModel;k(e,t,o,l,a,r),G(e,t,o,l,a),O(e,t,o,l,a)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=o.nt(),r=!1;o.__(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,l=t.svgNodeTagLower,s=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=S.get(l)&&s instanceof _.Ay&&D(e,s,u,c),s instanceof _.Ay&&(s.culling=!0),s.z2EmphasisLift=0,!t.namedFrom&&(null!=w.get(l)&&P(e,s,n,c,o,u,null),k(e,s,n,c,o,u),G(e,s,n,c,o),null!=A.get(l))){var p=O(e,s,n,c,o);"self"===p&&(r=!0);var g=i.get(n)||i.set(n,[]);g.push(s)}}),this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),o=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){(0,d.DW)(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=o&&(t.opacity=o),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var o=this._regionsGroupByName;if(o){var i=o.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=h.A.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=h.A.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,l=this._controller,s=this._controllerHost;s.zoomLimit=e.get("scaleLimit"),s.zoom=i.getZoom(),l.enable(e.get("roam")||!1);var u=e.mainType;function c(){var t={type:"geoRoam",componentType:u};return t[u+"Id"]=e.id,t}l.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,r.t(s,e.dx,e.dy),n.dispatchAction(o.X$(c(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),l.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,r.x(s,e.scale,e.originX,e.originY),n.dispatchAction(o.X$(c(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),l.setPointerChecker((function(t,o,r){return i.containPoint([o,r])&&!(0,a.I)(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=C(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,o){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}();function D(e,t,n,o){var i=o.getModel("itemStyle"),r=o.getModel(["emphasis","itemStyle"]),a=o.getModel(["blur","itemStyle"]),l=o.getModel(["select","itemStyle"]),s=I(i),u=I(r),c=I(l),p=I(a),g=e.data;if(g){var h=g.getItemVisual(n,"style"),f=g.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(s.fill=h.fill),f&&(s.decal=(0,v.w)(f,e.api))}t.setStyle(s),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=p,(0,d.DW)(t)}function P(e,t,n,o,i,r,a){var l=e.data,s=e.isGeo,u=l&&isNaN(l.get(l.mapDimension("value"),r)),c=l&&l.getItemLayout(r);if(s||u||c&&c.showLabel){var p=s?n:r,g=void 0;(!l||r>=0)&&(g=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,m.qM)(t,(0,m.lx)(o),{labelFetcher:g,labelDataIndex:p,defaultText:n},d);var h=t.getTextContent();if(h&&(C(h).ignore=h.ignore,t.textConfig&&a)){var f=t.getBoundingRect().clone();t.textConfig.layoutRect=f,t.textConfig.position=[(a[0]-f.x)/f.width*100+"%",(a[1]-f.y)/f.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function k(e,t,n,o,i,r){e.data?e.data.setItemGraphicEl(r,t):(0,y.z)(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:o&&o.option||{}}}function G(e,t,n,o,i){e.data||g.setTooltipConfig({el:t,componentModel:i,itemName:n,itemTooltipOption:o.get("tooltip")})}function O(e,t,n,o,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var r=o.getModel("emphasis"),a=r.get("focus");return(0,d.Lm)(t,a,r.get("blurScope"),r.get("disabled")),e.isGeo&&(0,d.ml)(t,i,n),a}function z(e,t,n){var i,r=[];function a(){i=[]}function l(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:l,lineStart:a,lineEnd:l,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),o.__(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}t.A=T},81722:function(e,t,n){var o=n(15215),i=n(57861),r=n(35452),a=n(23868),l=n(98026),s=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var o=(0,l.oI)(n._mousedownHandler,n),i=(0,l.oI)(n._mousemoveHandler,n),r=(0,l.oI)(n._mouseupHandler,n),a=(0,l.oI)(n._mousewheelHandler,n),s=(0,l.oI)(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=(0,l.NT)((0,l.o8)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",o),t.on("mousemove",i),t.on("mouseup",r)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",o),t.off("mousemove",i),t.off("mouseup",r),t.off("mousewheel",a),t.off("pinch",s)},n}return(0,o.C6)(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!r.W5(e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,o=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,o)&&(this._x=n,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&p("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!a.Ck(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,o=this._x,i=this._y,l=t-o,s=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&r.ds(e.event),c(this,"pan","moveOnMouseMove",e,{dx:l,dy:s,oldX:o,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){r.W5(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=p("zoomOnMouseWheel",e,this._opt),n=p("moveOnMouseWheel",e,this._opt),o=e.wheelDelta,i=Math.abs(o),r=e.offsetX,a=e.offsetY;if(0!==o&&(t||n)){if(t){var l=i>3?1.4:i>1?1.2:1.1,s=o>0?l:1/l;u(this,"zoom","zoomOnMouseWheel",e,{scale:s,originX:r,originY:a,isAvailableBehavior:null})}if(n){var c=Math.abs(o),g=(o>0?1:-1)*(c>3?.4:c>1?.15:.05);u(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:g,originX:r,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!a.Ck(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;u(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(i.A);function u(e,t,n,o,i){e.pointerChecker&&e.pointerChecker(o,i.originX,i.originY)&&(r.ds(o.event),c(e,t,n,o,i))}function c(e,t,n,o,i){i.isAvailableBehavior=(0,l.oI)(p,null,n,o),e.trigger(t,i)}function p(e,t,n){var o=n[e];return!e||o&&(!(0,l.Kg)(o)||t.event[o+"Key"])}t.A=s},25451:function(e,t,n){n.d(t,{wd:function(){return a},wx:function(){return l},x$:function(){return s}});var o=n(29308),i=n(72589),r=n(43199);function a(e){return e=u(e),function(t){return r.clipPointsByRect(t,e)}}function l(e,t){return e=u(e),function(n){var o=null!=t?t:n,i=o?e.width:e.height,r=o?e.x:e.y;return[r,r+(i||0)]}}function s(e,t,n){var o=u(e);return function(e,r){return o.contain(r[0],r[1])&&!(0,i.I)(e,t,n)}}function u(e){return o.A.create(e)}},72589:function(e,t,n){n.d(t,{I:function(){return i}});var o={axisPointer:1,tooltip:1,brush:1};function i(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!o.hasOwnProperty(i.mainType)&&r&&r.model!==n}},23868:function(e,t,n){n.d(t,{Ck:function(){return s},_r:function(){return l},s:function(){return a}});var o=n(98383),i=n(98026),r="\0_ec_interaction_mutex";function a(e,t,n){var o=u(e);o[t]=n}function l(e,t,n){var o=u(e),i=o[t];i===n&&(o[t]=null)}function s(e,t){return!!u(e)[t]}function u(e){return e[r]||(e[r]={})}o.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},i.lQ)},2400:function(e,t,n){n.d(t,{P:function(){return l},Z:function(){return a}});var o=n(34253),i=n(83412),r=n(10992);function a(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},l=(0,o.dV)(i,a,r);(0,o.aP)(t.get("orient"),e,t.get("itemGap"),l.width,l.height),(0,o.m$)(e,i,a,r)}function l(e,t){var n=i.QX(t.get("padding")),o=t.getItemStyle(["color","opacity"]);return o.fill=t.get("backgroundColor"),e=new r.A({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1}),e}},56366:function(e,t,n){function o(e,t,n){var o=e.target;o.x+=t,o.y+=n,o.dirty()}function i(e,t,n,o){var i=e.target,r=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,r){var l=r.min||0,s=r.max||1/0;a=Math.max(Math.min(s,a),l)}var u=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(o-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}n.d(t,{t:function(){return o},x:function(){return i}})},98983:function(e,t,n){function o(e,t,n,o,a,l){e=e||0;var s=n[1]-n[0];if(null!=a&&(a=r(a,[0,s])),null!=l&&(l=Math.max(l,null!=a?a:0)),"all"===o){var u=Math.abs(t[1]-t[0]);u=r(u,[0,s]),a=l=r(u,[a,l]),o=0}t[0]=r(t[0],n),t[1]=r(t[1],n);var c=i(t,o);t[o]+=e;var p,g=a||0,d=n.slice();return c.sign<0?d[0]+=g:d[1]-=g,t[o]=r(t[o],d),p=i(t,o),null!=a&&(p.sign!==c.sign||p.span<a)&&(t[1-o]=t[o]+c.sign*a),p=i(t,o),null!=l&&p.span>l&&(t[1-o]=t[o]+p.sign*l),t}function i(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function r(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}n.d(t,{A:function(){return o}})},5690:function(e,t,n){n.d(t,{a:function(){return U}});var o=n(3087),i=n(15215),r=n(98026),a=n(5202),l=n(48170),s=n(15915),u=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,i.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),r.cy(t)&&r.__(t,(function(e,o){r.Kg(e)&&(e={type:e}),t[o]=r.h1(e,u(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var o=e[n].get("name");if(this.isSelected(o)){this.select(o),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(o){var i,r=o.name;if(n.push(r),o.legendVisualProvider){var a=o.legendVisualProvider,s=a.getAllNames();e.isSeriesFiltered(o)||(n=n.concat(s)),s.length?t=t.concat(s):i=!0}else i=!0;i&&(0,l.O0)(o)&&t.push(o.name)})),this._availableNames=n;var o=this.get("data")||t,i=r.nt(),s=r.Tj(o,(function(e){return(r.Kg(e)||r.Et(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new a.A(e,this,this.ecModel))}),this);this._data=r.pb(s,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var o=this._data;r.__(o,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;r.__(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;r.__(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&r.qh(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(s.A),p=c,g=n(47698),d=n(43870),h=n(82980),f=n(10992),m=n(43199),y=n(34833),v=n(89632),_=n(2400),x=n(34253),b=n(59109),S=n(62103),A=n(23538),w=n(69622),C=r.cF,I=r.__,M=d.A,T=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return(0,i.C6)(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new M),this.group.add(this._selectorGroup=new M),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),a=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===a?"right":"left");var l=e.get("selector",!0),s=e.get("selectorPosition",!0);!l||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(i,e,t,n,l,a,s);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},p=e.get("padding"),g=x.dV(u,c,p),d=this.layoutInner(e,i,g,o,l,s),h=x.dV(r.NT({width:d.width,height:d.height},u),c,p);this.group.x=h.x-d.x,this.group.y=h.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,_.P)(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,o,i,a,l){var s=this.getContentGroup(),u=r.nt(),c=t.get("selectedMode"),p=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&p.push(e.id)})),I(t.getData(),(function(i,a){var l=i.get("name");if(!this.newlineDisabled&&(""===l||"\n"===l)){var d=new M;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(l)[0];if(!u.get(l)){if(h){var f=h.getData(),m=f.getVisual("legendLineStyle")||{},y=f.getVisual("legendIcon"),v=f.getVisual("style"),_=this._createItem(h,l,a,i,t,e,m,v,y,c,o);_.on("click",C(k,l,null,o,p)).on("mouseover",C(O,h.name,null,o,p)).on("mouseout",C(z,h.name,null,o,p)),n.ssr&&_.eachChild((function(e){var t=(0,w.z)(e);t.seriesIndex=h.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),u.set(l,!0)}else n.eachRawSeries((function(s){if(!u.get(l)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(l))return;var h=d.indexOfName(l),f=d.getItemVisual(h,"style"),m=d.getItemVisual(h,"legendIcon"),y=(0,g.qg)(f.fill);y&&0===y[3]&&(y[3]=.2,f=r.X$(r.X$({},f),{fill:(0,g.As)(y,"rgba")}));var v=this._createItem(s,l,a,i,t,e,{},f,m,c,o);v.on("click",C(k,null,l,o,p)).on("mouseover",C(O,null,l,o,p)).on("mouseout",C(z,null,l,o,p)),n.ssr&&v.eachChild((function(e){var t=(0,w.z)(e);t.seriesIndex=s.seriesIndex,t.dataIndex=a,t.ssrType="legend"})),u.set(l,!0)}}),this);0}}),this),i&&this._createSelector(i,t,o,a,l)},t.prototype._createSelector=function(e,t,n,o,i){var r=this.getSelectorGroup();I(e,(function(e){var o=e.type,i=new h.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===o?"legendAllSelect":"legendInverseSelect"})}});r.add(i);var a=t.getModel("selectorLabel"),l=t.getModel(["emphasis","selectorLabel"]);(0,v.qM)(i,{normal:a,emphasis:l},{defaultText:e.title}),(0,y.iJ)(i)}))},t.prototype._createItem=function(e,t,n,o,i,a,l,s,u,c,p){var g=e.visualDrawType,d=i.get("itemWidth"),_=i.get("itemHeight"),x=i.isSelected(t),b=o.get("symbolRotate"),S=o.get("symbolKeepAspect"),A=o.get("icon");u=A||u||"roundRect";var w=D(u,o,l,s,g,x,p),C=new M,I=o.getModel("textStyle");if(!r.Tn(e.getLegendIcon)||A&&"inherit"!==A){var T="inherit"===A&&e.getData().getVisual("symbol")?"inherit"===b?e.getData().getVisual("symbolRotate"):b:0;C.add(P({itemWidth:d,itemHeight:_,icon:u,iconRotate:T,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}))}else C.add(e.getLegendIcon({itemWidth:d,itemHeight:_,icon:u,iconRotate:b,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}));var k="left"===a?d+5:-5,G=a,O=i.get("formatter"),z=t;r.Kg(O)&&O?z=O.replace("{name}",null!=t?t:""):r.Tn(O)&&(z=O(t));var L=x?I.getTextColor():o.get("inactiveColor");C.add(new h.Ay({style:(0,v.VB)(I,{text:z,x:k,y:_/2,fill:L,align:G,verticalAlign:"middle"},{inheritColor:L})}));var N=new f.A({shape:C.getBoundingRect(),style:{fill:"transparent"}}),R=o.getModel("tooltip");return R.get("show")&&m.setTooltipConfig({el:N,componentModel:i,itemName:t,itemTooltipOption:R.option}),C.add(N),C.eachChild((function(e){e.silent=!0})),N.silent=!c,this.getContentGroup().add(C),(0,y.iJ)(C),C.__legendDataIndex=n,C},t.prototype.layoutInner=function(e,t,n,o,i,r){var a=this.getContentGroup(),l=this.getSelectorGroup();x.aP(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var s=a.getBoundingRect(),u=[-s.x,-s.y];if(l.markRedraw(),a.markRedraw(),i){x.aP("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),p=[-c.x,-c.y],g=e.get("selectorButtonGap",!0),d=e.getOrient().index,h=0===d?"width":"height",f=0===d?"height":"width",m=0===d?"y":"x";"end"===r?p[d]+=s[h]+g:u[d]+=c[h]+g,p[1-d]+=s[f]/2-c[f]/2,l.x=p[0],l.y=p[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[h]=s[h]+g+c[h],y[f]=Math.max(s[f],c[f]),y[m]=Math.min(0,c[m]+p[1-d]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(b.A);function D(e,t,n,o,i,r,a){function l(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),I(e,(function(n,o){"inherit"===e[o]&&(e[o]=t[o])}))}var s=t.getModel("itemStyle"),u=s.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",p=s.getShallow("decal");u.decal=p&&"inherit"!==p?(0,A.w)(p,a):o.decal,"inherit"===u.fill&&(u.fill=o[i]),"inherit"===u.stroke&&(u.stroke=o[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?o:n).opacity),l(u,o);var g=t.getModel("lineStyle"),d=g.getLineStyle();if(l(d,n),"auto"===u.fill&&(u.fill=o.fill),"auto"===u.stroke&&(u.stroke=o.fill),"auto"===d.stroke&&(d.stroke=o.fill),!r){var h=t.get("inactiveBorderWidth"),f=u[c];u.lineWidth="auto"===h?o.lineWidth>0&&f?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=g.get("inactiveColor"),d.lineWidth=g.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function P(e){var t=e.icon||"roundRect",n=(0,S.v5)(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function k(e,t,n,o){z(e,t,n,o),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),O(e,t,n,o)}function G(e){var t,n=e.getZr().storage.getDisplayList(),o=0,i=n.length;while(o<i&&!(t=n[o].states.emphasis))o++;return t&&t.hoverLayer}function O(e,t,n,o){G(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:o})}function z(e,t,n,o){G(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:o})}var L=T;function N(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function R(e,t,n){var o,i={},a="toggleSelected"===e;return n.eachComponent("legend",(function(n){a&&null!=o?n[o?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),o=n.isSelected(t.name));var l=n.getData();(0,r.__)(l,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var o=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&o:i[t]=o}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function V(e){e.registerAction("legendToggleSelect","legendselectchanged",(0,r.cF)(R,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",(0,r.cF)(R,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",(0,r.cF)(R,"inverseSelect")),e.registerAction("legendSelect","legendselected",(0,r.cF)(R,"select")),e.registerAction("legendUnSelect","legendunselected",(0,r.cF)(R,"unSelect"))}function B(e){e.registerComponentModel(p),e.registerComponentView(L),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,N),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),V(e)}var E=n(12616),F=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,o){var i=(0,x.vs)(t);e.prototype.init.call(this,t,n,o),W(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),W(this,this.option,t)},t.type="legend.scroll",t.defaultOption=(0,E.G_)(p.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}(p);function W(e,t,n){var o=e.getOrient(),i=[1,1];i[o.index]=0,(0,x.YA)(t,n,{type:"box",ignoreSize:!!i})}var X=F,Y=n(5638),H=d.A,$=["width","height"],j=["x","y"],K=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,i.C6)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new H),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new H)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,o,i,a,l,s){var u=this;e.prototype.renderInner.call(this,t,n,o,i,a,l,s);var c=this._controllerGroup,p=n.get("pageIconSize",!0),g=r.cy(p)?p:[p,p];f("pagePrev",0);var d=n.getModel("pageTextStyle");function f(e,t){var o=e+"DataIndex",a=m.createIcon(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:r.oI(u._pageGo,u,o,n,i)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});a.name=e,c.add(a)}c.add(new h.Ay({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,t,n,o,i,a){var l=this.getSelectorGroup(),s=e.getOrient().index,u=$[s],c=j[s],p=$[1-s],g=j[1-s];i&&x.aP("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),h=l.getBoundingRect(),f=[-h.x,-h.y],m=r.o8(n);i&&(m[u]=n[u]-h[u]-d);var y=this._layoutContentAndController(e,o,m,s,u,p,g,c);if(i){if("end"===a)f[s]+=y[u]+d;else{var v=h[u]+d;f[s]-=v,y[c]-=v}y[u]+=h[u]+d,f[1-s]+=y[g]+y[p]/2-h[p]/2,y[p]=Math.max(y[p],h[p]),y[g]=Math.min(y[g],h[g]+f[1-s]),l.x=f[0],l.y=f[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,t,n,o,i,a,l,s){var u=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;x.aP(e.get("orient"),u,e.get("itemGap"),o?n.width:null,o?null:n.height),x.aP("horizontal",p,e.get("pageButtonItemGap",!0));var g=u.getBoundingRect(),d=p.getBoundingRect(),h=this._showController=g[i]>n[i],m=[-g.x,-g.y];t||(m[o]=u[s]);var y=[0,0],v=[-d.x,-d.y],_=r.bZ(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(h){var b=e.get("pageButtonPosition",!0);"end"===b?v[o]+=n[i]-d[i]:y[o]+=d[i]+_}v[1-o]+=g[a]/2-d[a]/2,u.setPosition(m),c.setPosition(y),p.setPosition(v);var S={x:0,y:0};if(S[i]=h?n[i]:g[i],S[a]=Math.max(g[a],d[a]),S[l]=Math.min(0,d[l]+v[1-o]),c.__rectSize=n[i],h){var A={x:0,y:0};A[i]=Math.max(n[i]-d[i]-_,0),A[a]=S[a],c.setClipPath(new f.A({shape:A})),c.__rectSize=A[i]}else p.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&Y.oi(u,{x:w.contentPosition[0],y:w.contentPosition[1]},h?e:null),this._updatePageInfoView(e,w),S},t.prototype._pageGo=function(e,t,n){var o=this._getPageInfo(t)[e];null!=o&&n.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;r.__(["pagePrev","pageNext"],(function(o){var i=o+"DataIndex",r=null!=t[i],a=n.childOfName(o);a&&(a.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")}));var o=n.childOfName("pageText"),i=e.get("pageFormatter"),a=t.pageIndex,l=null!=a?a+1:0,s=t.pageCount;o&&i&&o.setStyle("text",r.Kg(i)?i.replace("{current}",null==l?"":l+"").replace("{total}",null==s?"":s+""):i({current:l,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),o=this._containerGroup.__rectSize,i=e.getOrient().index,r=$[i],a=j[i],l=this._findTargetItemIndex(t),s=n.children(),u=s[l],c=s.length,p=c?1:0,g={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return g;var d=v(u);g.contentPosition[i]=-d.s;for(var h=l+1,f=d,m=d,y=null;h<=c;++h)y=v(s[h]),(!y&&m.e>f.s+o||y&&!_(y,f.s))&&(f=m.i>f.i?m:y,f&&(null==g.pageNextDataIndex&&(g.pageNextDataIndex=f.i),++g.pageCount)),m=y;for(h=l-1,f=d,m=d,y=null;h>=-1;--h)y=v(s[h]),y&&_(m,y.s)||!(f.i<m.i)||(m=f,null==g.pagePrevDataIndex&&(g.pagePrevDataIndex=f.i),++g.pageCount,++g.pageIndex),f=y;return g;function v(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[r],i:e.__legendDataIndex}}}function _(e,t){return e.e>=t&&e.s<=t+o}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,o=this.getContentGroup();return o.eachChild((function(o,i){var r=o.__legendDataIndex;null==n&&null!=r&&(n=i),r===e&&(t=i)})),null!=t?t:n},t.type="legend.scroll",t}(L),J=K;function q(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function Z(e){(0,o.Y)(B),e.registerComponentModel(X),e.registerComponentView(J),q(e)}function U(e){(0,o.Y)(B),(0,o.Y)(Z)}},82802:function(e,t,n){var o=n(15215),i=n(98026),r=n(38123),a=n(9427),l=n(15915),s=n(48170),u=n(3961);function c(e){(0,s.M5)(e,"label",["show"])}var p=(0,s.$r)(),g=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return(0,o.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(r.A.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,o){var r=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),a=p(e)[r];n&&n.data?(a?a._mergeOption(n,t,!0):(o&&c(n),i.__(n.data,(function(e){e instanceof Array?(c(e[0]),c(e[1])):c(e)})),a=this.createMarkerModelFromSeries(n,this,t),i.X$(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),p(e)[r]=a):p(e)[r]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var o=this.getData(),i=this.getRawValue(e),r=o.getName(e);return(0,u.Qx)("section",{header:this.name,blocks:[(0,u.Qx)("nameValue",{name:r,value:i,noName:!r,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return p(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(l.A);i.co(g,a.J.prototype),t.A=g},1854:function(e,t,n){var o=n(15215),i=n(59109),r=n(98026),a=n(82802),l=n(48170),s=n(34833),u=(0,l.$r)(),c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.init=function(){this.markerGroupMap=(0,r.nt)()},t.prototype.render=function(e,t,n){var o=this,i=this.markerGroupMap;i.each((function(e){u(e).keep=!1})),t.eachSeries((function(e){var i=a.A.getMarkerModelFromSeries(e,o.type);i&&o.renderSeries(e,i,t,n)})),i.each((function(e){!u(e).keep&&o.group.remove(e.group)}))},t.prototype.markKeep=function(e){u(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;(0,r.__)(e,(function(e){var o=a.A.getMarkerModelFromSeries(e,n.type);if(o){var i=o.getData();i.eachItemGraphicEl((function(e){e&&(t?(0,s.QX)(e):(0,s.JC)(e))}))}}))},t.type="marker",t}(i.A);t.A=c},72581:function(e,t,n){n.d(t,{A:function(){return i}});var o=n(98026);function i(e,t){if(!e)return!1;for(var n=(0,o.cy)(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}},81807:function(e,t,n){n.d(t,{a:function(){return z}});var o=n(72581),i=n(15215),r=n(82802),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,o){return new t(e,n,o)},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}(r.A),l=a,s=n(47698),u=n(6006),c=n(24326),p=n(43870),g=n(52505),d=n(5638),h=n(34833),f=n(71171),m=n(1854),y=n(98026),v=n(41849),_=n(48170),x=n(37395),b=n(89632),S=n(69622),A=n(31825),w=(0,_.$r)(),C=function(e,t,n,o){var i=o[0],r=o[1];if(i&&r){var a=f.xx(e,i),l=f.xx(e,r),s=a.coord,u=l.coord;s[0]=(0,y.Je)(s[0],-1/0),s[1]=(0,y.Je)(s[1],-1/0),u[0]=(0,y.Je)(u[0],1/0),u[1]=(0,y.Je)(u[1],1/0);var c=(0,y.Um)([{},a,l]);return c.coord=[a.coord,l.coord],c.x0=a.x,c.y0=a.y,c.x1=l.x,c.y1=l.y,c}};function I(e){return!isNaN(e)&&!isFinite(e)}function M(e,t,n,o){var i=1-e;return I(t[i])&&I(n[i])}function T(e,t){var n=t.coord[0],o=t.coord[1],i={coord:n,x:t.x0,y:t.y0},r={coord:o,x:t.x1,y:t.y1};return(0,v.g)(e,"cartesian2d")?!(!n||!o||!M(1,n,o,e)&&!M(0,n,o,e))||f.PN(e,i,r):f.Lq(e,i)||f.Lq(e,r)}function D(e,t,n,o,i){var r,a=o.coordinateSystem,l=e.getItemModel(t),s=c.lo(l.get(n[0]),i.getWidth()),u=c.lo(l.get(n[1]),i.getHeight());if(isNaN(s)||isNaN(u)){if(o.getMarkerPosition){var p=e.getValues(["x0","y0"],t),g=e.getValues(["x1","y1"],t),d=a.clampData(p),h=a.clampData(g),f=[];"x0"===n[0]?f[0]=d[0]>h[0]?g[0]:p[0]:f[0]=d[0]>h[0]?p[0]:g[0],"y0"===n[1]?f[1]=d[1]>h[1]?g[1]:p[1]:f[1]=d[1]>h[1]?p[1]:g[1],r=o.getMarkerPosition(f,n,!0)}else{var m=e.get(n[0],t),y=e.get(n[1],t),_=[m,y];a.clampData&&a.clampData(_,_),r=a.dataToPoint(_,!0)}if((0,v.g)(a,"cartesian2d")){var x=a.getAxis("x"),b=a.getAxis("y");m=e.get(n[0],t),y=e.get(n[1],t);I(m)?r[0]=x.toGlobalCoord(x.getExtent()["x0"===n[0]?0:1]):I(y)&&(r[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(s)||(r[0]=s),isNaN(u)||(r[1]=u)}else r=[s,u];return r}var P=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],k=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=r.A.getMarkerModelFromSeries(e,"markArea");if(t){var o=t.getData();o.each((function(t){var i=(0,y.Tj)(P,(function(i){return D(o,t,i,e,n)}));o.setItemLayout(t,i);var r=o.getItemGraphicEl(t);r.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,o){var i=e.coordinateSystem,r=e.id,a=e.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,{group:new p.A});this.group.add(u.group),this.markKeep(u);var f=G(i,e,t);t.setData(f),f.each((function(t){var n=(0,y.Tj)(P,(function(n){return D(f,t,n,e,o)})),r=i.getAxis("x").scale,l=i.getAxis("y").scale,u=r.getExtent(),p=l.getExtent(),g=[r.parse(f.get("x0",t)),r.parse(f.get("x1",t))],d=[l.parse(f.get("y0",t)),l.parse(f.get("y1",t))];c.Y6(g),c.Y6(d);var h=!(u[0]>g[1]||u[1]<g[0]||p[0]>d[1]||p[1]<d[0]),m=!h;f.setItemLayout(t,{points:n,allClipped:m});var v=f.getItemModel(t).getModel("itemStyle").getItemStyle(),_=(0,x.rI)(a,"color");v.fill||(v.fill=_,(0,y.Kg)(v.fill)&&(v.fill=s.hm(v.fill,.4))),v.stroke||(v.stroke=_),f.setItemVisual(t,"style",v)})),f.diff(w(u).data).add((function(e){var t=f.getItemLayout(e);if(!t.allClipped){var n=new g.A({shape:{points:t.points}});f.setItemGraphicEl(e,n),u.group.add(n)}})).update((function(e,n){var o=w(u).data.getItemGraphicEl(n),i=f.getItemLayout(e);i.allClipped?o&&u.group.remove(o):(o?d.oi(o,{shape:{points:i.points}},t,e):o=new g.A({shape:{points:i.points}}),f.setItemGraphicEl(e,o),u.group.add(o))})).remove((function(e){var t=w(u).data.getItemGraphicEl(e);u.group.remove(t)})).execute(),f.eachItemGraphicEl((function(e,n){var o=f.getItemModel(n),i=f.getItemVisual(n,"style");e.useStyle(f.getItemVisual(n,"style")),(0,b.qM)(e,(0,b.lx)(o),{labelFetcher:t,labelDataIndex:n,defaultText:f.getName(n)||"",inheritColor:(0,y.Kg)(i.fill)?s.hm(i.fill,1):"#000"}),(0,h.Mx)(e,o),(0,h.Lm)(e,null,null,o.get(["emphasis","disabled"])),(0,S.z)(e).dataModel=t})),w(u).data=f,u.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(m.A);function G(e,t,n){var o,i,r=["x0","y0","x1","y1"];if(e){var a=(0,y.Tj)(e&&e.dimensions,(function(e){var n=t.getData(),o=n.getDimensionInfo(n.mapDimension(e))||{};return(0,y.X$)((0,y.X$)({},o),{name:e,ordinalMeta:null})}));i=(0,y.Tj)(r,(function(e,t){return{name:e,type:a[t%2].type}})),o=new u.A(i,n)}else i=[{name:"value",type:"float"}],o=new u.A(i,n);var l=(0,y.Tj)(n.get("data"),(0,y.cF)(C,t,e,n));e&&(l=(0,y.pb)(l,(0,y.cF)(T,e)));var s=e?function(e,t,n,o){var r=e.coord[Math.floor(o/2)][o%2];return(0,A.Pn)(r,i[o])}:function(e,t,n,o){return(0,A.Pn)(e.value,i[o])};return o.initData(l,null,s),o.hasItemOption=!0,o}var O=k;function z(e){e.registerComponentModel(l),e.registerComponentView(O),e.registerPreprocessor((function(e){(0,o.A)(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}},66021:function(e,t,n){n.d(t,{a:function(){return T}});var o=n(72581),i=n(15215),r=n(82802),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,o){return new t(e,n,o)},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}(r.A),l=a,s=n(6006),u=n(24326),c=n(71171),p=n(64380),g=n(1854),d=n(65008),h=n(41849),f=n(69622),m=n(98026),y=n(48170),v=n(37395),_=(0,y.$r)(),x=function(e,t,n,o){var i,r=e.getData();if((0,m.cy)(o))i=o;else{var a=o.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=o.xAxis||null!=o.yAxis){var l=void 0,s=void 0;if(null!=o.yAxis||null!=o.xAxis)l=t.getAxis(null!=o.yAxis?"y":"x"),s=(0,m.Je)(o.yAxis,o.xAxis);else{var u=c.Yc(o,r,t,e);l=u.valueAxis;var p=(0,d.me)(r,u.valueDataDim);s=c.vz(r,p,a)}var g="x"===l.dim?0:1,h=1-g,f=(0,m.o8)(o),y={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,y.coord[h]=1/0;var v=n.get("precision");v>=0&&(0,m.Et)(s)&&(s=+s.toFixed(Math.min(v,20))),f.coord[g]=y.coord[g]=s,i=[f,y,{type:a,valueIndex:o.valueIndex,value:s}]}else i=[]}var _=[c.xx(e,i[0]),c.xx(e,i[1]),(0,m.X$)({},i[2])];return _[2].type=_[2].type||null,(0,m.h1)(_[2],_[0]),(0,m.h1)(_[2],_[1]),_};function b(e){return!isNaN(e)&&!isFinite(e)}function S(e,t,n,o){var i=1-e,r=o.dimensions[e];return b(t[i])&&b(n[i])&&t[e]===n[e]&&o.getAxis(r).containData(t[e])}function A(e,t){if("cartesian2d"===e.type){var n=t[0].coord,o=t[1].coord;if(n&&o&&(S(1,n,o,e)||S(0,n,o,e)))return!0}return c.Lq(e,t[0])&&c.Lq(e,t[1])}function w(e,t,n,o,i){var r,a=o.coordinateSystem,l=e.getItemModel(t),s=u.lo(l.get("x"),i.getWidth()),c=u.lo(l.get("y"),i.getHeight());if(isNaN(s)||isNaN(c)){if(o.getMarkerPosition)r=o.getMarkerPosition(e.getValues(e.dimensions,t));else{var p=a.dimensions,g=e.get(p[0],t),d=e.get(p[1],t);r=a.dataToPoint([g,d])}if((0,h.g)(a,"cartesian2d")){var f=a.getAxis("x"),m=a.getAxis("y");p=a.dimensions;b(e.get(p[0],t))?r[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):b(e.get(p[1],t))&&(r[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(s)||(r[0]=s),isNaN(c)||(r[1]=c)}else r=[s,c];e.setItemLayout(t,r)}var C=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=r.A.getMarkerModelFromSeries(e,"markLine");if(t){var o=t.getData(),i=_(t).from,a=_(t).to;i.each((function(t){w(i,t,!0,e,n),w(a,t,!1,e,n)})),o.each((function(e){o.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,o){var i=e.coordinateSystem,r=e.id,a=e.getData(),l=this.markerGroupMap,s=l.get(r)||l.set(r,new p.A);this.group.add(s.group);var u=I(i,e,t),c=u.from,g=u.to,d=u.line;_(t).from=c,_(t).to=g,t.setData(d);var h=t.get("symbol"),y=t.get("symbolSize"),x=t.get("symbolRotate"),b=t.get("symbolOffset");function S(t,n,i){var r=t.getItemModel(n);w(t,n,i,e,o);var l=r.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=(0,v.rI)(a,"color")),t.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:(0,m.bZ)(r.get("symbolOffset",!0),b[i?0:1]),symbolRotate:(0,m.bZ)(r.get("symbolRotate",!0),x[i?0:1]),symbolSize:(0,m.bZ)(r.get("symbolSize"),y[i?0:1]),symbol:(0,m.bZ)(r.get("symbol",!0),h[i?0:1]),style:l})}(0,m.cy)(h)||(h=[h,h]),(0,m.cy)(y)||(y=[y,y]),(0,m.cy)(x)||(x=[x,x]),(0,m.cy)(b)||(b=[b,b]),u.from.each((function(e){S(c,e,!0),S(g,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[c.getItemLayout(e),g.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:g.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:g.getItemVisual(e,"symbolOffset"),toSymbolRotate:g.getItemVisual(e,"symbolRotate"),toSymbolSize:g.getItemVisual(e,"symbolSize"),toSymbol:g.getItemVisual(e,"symbol"),style:t})})),s.updateData(d),u.line.eachItemGraphicEl((function(e){(0,f.z)(e).dataModel=t,e.traverse((function(e){(0,f.z)(e).dataModel=t}))})),this.markKeep(s),s.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(g.A);function I(e,t,n){var o;o=e?(0,m.Tj)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return(0,m.X$)((0,m.X$)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new s.A(o,n),r=new s.A(o,n),a=new s.A([],n),l=(0,m.Tj)(n.get("data"),(0,m.cF)(x,t,e,n));e&&(l=(0,m.pb)(l,(0,m.cF)(A,e)));var u=c.fY(!!e,o);return i.initData((0,m.Tj)(l,(function(e){return e[0]})),null,u),r.initData((0,m.Tj)(l,(function(e){return e[1]})),null,u),a.initData((0,m.Tj)(l,(function(e){return e[2]}))),a.hasItemOption=!0,{from:i,to:r,line:a}}var M=C;function T(e){e.registerComponentModel(l),e.registerComponentView(M),e.registerPreprocessor((function(e){(0,o.A)(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}},95508:function(e,t,n){n.d(t,{a:function(){return x}});var o=n(72581),i=n(15215),r=n(82802),a=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,o){return new t(e,n,o)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(r.A),l=a,s=n(18386),u=n(24326),c=n(6006),p=n(71171),g=n(1854),d=n(98026),h=n(69622),f=n(37395);function m(e,t,n){var o=t.coordinateSystem;e.each((function(i){var r,a=e.getItemModel(i),l=u.lo(a.get("x"),n.getWidth()),s=u.lo(a.get("y"),n.getHeight());if(isNaN(l)||isNaN(s)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(o){var c=e.get(o.dimensions[0],i),p=e.get(o.dimensions[1],i);r=o.dataToPoint([c,p])}}else r=[l,s];isNaN(l)||(r[0]=l),isNaN(s)||(r[1]=s),e.setItemLayout(i,r)}))}var y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=r.A.getMarkerModelFromSeries(e,"markPoint");t&&(m(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,o){var i=e.coordinateSystem,r=e.id,a=e.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,new s.A),c=v(i,e,t);t.setData(c),m(t.getData(),e,o),c.each((function(e){var n=c.getItemModel(e),o=n.getShallow("symbol"),i=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");if((0,d.Tn)(o)||(0,d.Tn)(i)||(0,d.Tn)(r)||(0,d.Tn)(l)){var u=t.getRawValue(e),p=t.getDataParams(e);(0,d.Tn)(o)&&(o=o(u,p)),(0,d.Tn)(i)&&(i=i(u,p)),(0,d.Tn)(r)&&(r=r(u,p)),(0,d.Tn)(l)&&(l=l(u,p))}var g=n.getModel("itemStyle").getItemStyle(),h=(0,f.rI)(a,"color");g.fill||(g.fill=h),c.setItemVisual(e,{symbol:o,symbolSize:i,symbolRotate:r,symbolOffset:l,symbolKeepAspect:s,style:g})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){(0,h.z)(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(g.A);function v(e,t,n){var o;o=e?(0,d.Tj)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return(0,d.X$)((0,d.X$)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new c.A(o,n),r=(0,d.Tj)(n.get("data"),(0,d.cF)(p.xx,t));e&&(r=(0,d.pb)(r,(0,d.cF)(p.Lq,e)));var a=p.fY(!!e,o);return i.initData(r,null,a),i}var _=y;function x(e){e.registerComponentModel(l),e.registerComponentView(_),e.registerPreprocessor((function(e){(0,o.A)(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}},71171:function(e,t,n){n.d(t,{Lq:function(){return h},PN:function(){return f},Yc:function(){return g},fY:function(){return m},vz:function(){return y},xx:function(){return p}});var o=n(24326),i=n(65008),r=n(98026),a=n(31825);function l(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function s(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function u(e,t,n,r,a,l){var s=[],u=(0,i.sJ)(t,r),c=u?t.getCalculationInfo("stackResultDimension"):r,p=y(t,c,e),g=t.indicesOfNearest(c,p)[0];s[a]=t.get(n,g),s[l]=t.get(c,g);var d=t.get(r,g),h=o.XV(t.get(r,g));return h=Math.min(h,20),h>=0&&(s[l]=+s[l].toFixed(h)),[s,d]}var c={min:(0,r.cF)(u,"min"),max:(0,r.cF)(u,"max"),average:(0,r.cF)(u,"average"),median:(0,r.cF)(u,"median")};function p(e,t){if(t){var n=e.getData(),o=e.coordinateSystem,i=o&&o.dimensions;if(!s(t)&&!(0,r.cy)(t.coord)&&(0,r.cy)(i)){var a=g(t,n,o,e);if(t=(0,r.o8)(t),t.type&&c[t.type]&&a.baseAxis&&a.valueAxis){var l=(0,r.qh)(i,a.baseAxis.dim),u=(0,r.qh)(i,a.valueAxis.dim),p=c[t.type](n,a.baseDataDim,a.valueDataDim,l,u);t.coord=p[0],t.value=p[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&(0,r.cy)(i))for(var d=t.coord,h=0;h<2;h++)c[d[h]]&&(d[h]=y(n,n.mapDimension(i[h]),d[h]));else t.coord=[];return t}}function g(e,t,n,o){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(d(o,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=o.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function d(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function h(e,t){return!(e&&e.containData&&t.coord&&!l(t))||e.containData(t.coord)}function f(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!l(t)&&!l(n))||e.containZone(t.coord,n.coord)}function m(e,t){return e?function(e,n,o,i){var r=i<2?e.coord&&e.coord[i]:e.value;return(0,a.Pn)(r,t[i])}:function(e,n,o,i){return(0,a.Pn)(e.value,t[i])}}function y(e,t,n){if("average"===n){var o=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(o+=e,i++)})),o/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}},83874:function(e,t,n){n.d(t,{a:function(){return x}});var o=n(78308),i=n(15215),r=n(59109),a=n(98026),l=n(24711),s=5,u=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},(0,a.__)(c,(function(e,t){n.getZr().on(t,this._handlers[t]=(0,a.oI)(e,this))}),this)),(0,l.N)(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){(0,l.IU)(this,"_throttledDispatchExpand"),(0,a.__)(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction((0,a.X$)({type:"parallelAxisExpand"},e))},t.type="parallel",t}(r.A),c={mousedown:function(e){p(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(p(this,"click")&&t){var n=[e.offsetX,e.offsetY],o=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(o>s)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&p(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),o=n.behavior;"jump"===o&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===o?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===o?null:{duration:0}})}}};function p(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var g=u,d=n(24130),h=n(30551),f=n(34674),m=n(61504),y=n(60755),v=n(68520),_={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function x(e){e.registerComponentView(g),e.registerComponentModel(d.A),e.registerCoordinateSystem("parallel",h.A),e.registerPreprocessor(o.A),e.registerComponentModel(m.A),e.registerComponentView(y.A),(0,f.A)(e,"parallel",m.A,_),(0,v.o)(e)}},59166:function(e,t,n){n.d(t,{a:function(){return x}});var o=n(15215),i=n(3087),r=n(22480),a=n(23953),l=n(97063),s=n(17838),u=n(34674),c=n(96413),p=n(96053),g=n(59481),d=n(13006),h=n(59109),f=n(98026),m=n(95926),y={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},v={splitNumber:5},_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="polar",t}(h.A);function x(e){(0,i.Y)(l.a),r.A.registerAxisPointerClass("PolarAxisPointer",a.A),e.registerCoordinateSystem("polar",p.A),e.registerComponentModel(s.A),e.registerComponentView(_),(0,u.A)(e,"angle",c.w2,y),(0,u.A)(e,"radius",c.vI,v),e.registerComponentView(g.A),e.registerComponentView(d.A),e.registerLayout((0,f.cF)(m.A,"bar"))}},60082:function(e,t,n){n.d(t,{a:function(){return y}});var o=n(71674),i=n(15215),r=n(98026),a=n(89598),l=n(31571),s=n(42933),u=n(39195),c=n(52505),p=n(43199),g=n(59109),d=["axisLine","axisTickLabel","axisName"],h=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,i.C6)(t,e),t.prototype.render=function(e,t,n){var o=this.group;o.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),o=r.Tj(n,(function(e){var n=e.model.get("showName")?e.name:"",o=new a.A(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return o}));r.__(o,(function(e){r.__(d,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var o=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),g=i.getModel("lineStyle"),d=a.getModel("areaStyle"),h=i.get("show"),f=a.get("show"),m=g.get("color"),y=d.get("color"),v=r.cy(m)?m:[m],_=r.cy(y)?y:[y],x=[],b=[];if("circle"===o)for(var S=n[0].getTicksCoords(),A=t.cx,w=t.cy,C=0;C<S.length;C++){if(h){var I=z(x,v,C);x[I].push(new l.A({shape:{cx:A,cy:w,r:S[C].coord}}))}if(f&&C<S.length-1){I=z(b,_,C);b[I].push(new s.A({shape:{cx:A,cy:w,r0:S[C].coord,r:S[C+1].coord}}))}}else{var M,T=r.Tj(n,(function(e,n){var o=e.getTicksCoords();return M=null==M?o.length-1:Math.min(o.length-1,M),r.Tj(o,(function(e){return t.coordToPoint(e.coord,n)}))})),D=[];for(C=0;C<=M;C++){for(var P=[],k=0;k<n.length;k++)P.push(T[k][C]);if(P[0]&&P.push(P[0].slice()),h){I=z(x,v,C);x[I].push(new u.A({shape:{points:P}}))}if(f&&D){I=z(b,_,C-1);b[I].push(new c.A({shape:{points:P.concat(D)}}))}D=P.slice().reverse()}}var G=g.getLineStyle(),O=d.getAreaStyle();r.__(b,(function(e,t){this.group.add(p.mergePath(e,{style:r.NT({stroke:"none",fill:_[t%_.length]},O),silent:!0}))}),this),r.__(x,(function(e,t){this.group.add(p.mergePath(e,{style:r.NT({fill:"none",stroke:v[t%v.length]},G),silent:!0}))}),this)}function z(e,t,n){var o=n%t.length;return e[o]=e[o]||[],o}},t.type="radar",t}(g.A),f=h,m=n(26567);function y(e){e.registerCoordinateSystem("radar",m.A),e.registerComponentModel(o.A),e.registerComponentView(f),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}},68241:function(e,t,n){n.d(t,{a:function(){return h}});var o=n(15215),i=n(3087),r=n(59109),a=n(67688),l=n(34674),s=n(86351),u=n(70751),c=n(97063),p=n(22480),g=n(76081),d=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="single",t}(r.A);function h(e){(0,i.Y)(c.a),p.A.registerAxisPointerClass("SingleAxisPointer",g.A),e.registerComponentView(d),e.registerComponentView(a.A),e.registerComponentModel(s.A),(0,l.A)(e,"single",s.A,s.A.defaultOption),e.registerCoordinateSystem("single",u.A)}},67338:function(e,t,n){n.d(t,{a:function(){return Z}});var o=n(15215),i=n(15915),r=n(6006),a=n(98026),l=n(48170),s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return(0,o.C6)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-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,t=this.option,n=t.data||[],o=t.axisType,i=this._names=[];"category"===o?(e=[],(0,a.__)(n,(function(t,n){var o,r=(0,l.vS)((0,l.vj)(t),"");(0,a.Gv)(t)?(o=(0,a.o8)(t),o.value=n):o=n,e.push(o),i.push(r)}))):e=n;var s={category:"ordinal",time:"time",value:"number"}[o]||"number",u=this._data=new r.A([{name:"value",type:s}],this);u.initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))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}(i.A),u=s,c=n(9427),p=n(12616),g=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="timeline.slider",t.defaultOption=(0,p.G_)(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:[]}),t}(u);(0,a.co)(g,c.J.prototype);var d=g,h=n(29308),f=n(45587),m=n(43870),y=n(82861),v=n(82980),_=n(43199),x=n(89632),b=n(34253),S=n(59109),A=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.type="timeline",t}(S.A),w=A,C=n(33423),I=function(e){function t(t,n,o,i){var r=e.call(this,t,n,o)||this;return r.type=i||"value",r}return(0,o.C6)(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(C.A),M=I,T=n(62103),D=n(24326),P=n(18550),k=n(12706),G=n(74562),O=n(45558),z=n(69622),L=n(34833),N=n(3961),R=Math.PI,V=(0,l.$r)(),B=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var o=this._layout(e,n),i=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,e);e.formatTooltip=function(e){var t=l.scale.getLabel({value:e});return(0,N.Qx)("nameValue",{noName:!0,value:t})},(0,a.__)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](o,i,l,e)}),this),this._renderAxisLabel(o,r,l,e),this._position(o,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,t){var n,o=e.get(["label","position"]),i=e.get("orient"),r=F(e,t);n=null==o||"auto"===o?"horizontal"===i?r.y+r.height/2<t.getHeight()/2?"-":"+":r.x+r.width/2<t.getWidth()/2?"+":"-":(0,a.Kg)(o)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][o]:o;var l,s,u,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},p={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},g={horizontal:0,vertical:R/2},d="vertical"===i?r.height:r.width,h=e.getModel("controlStyle"),f=h.get("show",!0),m=f?h.get("itemSize"):0,y=f?h.get("itemGap"):0,v=m+y,_=e.get(["label","rotate"])||0;_=_*R/180;var x=h.get("position",!0),b=f&&h.get("showPlayBtn",!0),S=f&&h.get("showPrevBtn",!0),A=f&&h.get("showNextBtn",!0),w=0,C=d;"left"===x||"bottom"===x?(b&&(l=[0,0],w+=v),S&&(s=[w,0],w+=v),A&&(u=[C-m,0],C-=v)):(b&&(l=[C-m,0],C-=v),S&&(s=[0,0],w+=v),A&&(u=[C-m,0],C-=v));var I=[w,C];return e.get("inverse")&&I.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:g[i],labelRotation:_,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||p[i],playPosition:l,prevBtnPosition:s,nextBtnPosition:u,axisExtent:I,controlSize:m,controlGap:y}},t.prototype._position=function(e,t){var n=this._mainGroup,o=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var r=f.vt(),l=i.x,s=i.y+i.height;f.Tl(r,r,[-l,-s]),f.e$(r,r,-R/2),f.Tl(r,r,[l,s]),i=i.clone(),i.applyTransform(r)}var u=v(i),c=v(n.getBoundingRect()),p=v(o.getBoundingRect()),g=[n.x,n.y],d=[o.x,o.y];d[0]=g[0]=u[0][0];var h=e.labelPosOpt;if(null==h||(0,a.Kg)(h)){var m="+"===h?0:1;_(g,c,u,1,m),_(d,p,u,1,1-m)}else{m=h>=0?0:1;_(g,c,u,1,m),d[1]=g[1]+h}function y(e){e.originX=u[0][0]-e.x,e.originY=u[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,o,i){e[o]+=n[o][i]-t[o][i]}n.setPosition(g),o.setPosition(d),n.rotation=o.rotation=e.rotation,y(n),y(o)},t.prototype._createAxis=function(e,t){var n=t.getData(),o=t.get("axisType"),i=E(t,o);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var r=n.getDataExtent("value");i.setExtent(r[0],r[1]),i.calcNiceTicks();var a=new M("value",i,e.axisExtent,o);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new m.A;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,o){var i=n.getExtent();if(o.get(["lineStyle","show"])){var r=new y.A({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:(0,a.X$)({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(r);var l=this._progressLine=new y.A({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:(0,a.NT)({lineCap:"round",lineWidth:r.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(l)}},t.prototype._renderAxisTick=function(e,t,n,o){var i=this,r=o.getData(),l=n.scale.getTicks();this._tickSymbols=[],(0,a.__)(l,(function(e){var l=n.dataToCoord(e.value),s=r.getItemModel(e.value),u=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),p=s.getModel(["progress","itemStyle"]),g={x:l,y:0,onclick:(0,a.oI)(i._changeTimeline,i,e.value)},d=X(s,u,t,g);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=p.getItemStyle(),(0,L.iJ)(d);var h=(0,z.z)(d);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=o):h.dataIndex=h.dataModel=null,i._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,o){var i=this,r=n.getLabelModel();if(r.get("show")){var l=o.getData(),s=n.getViewLabels();this._tickLabels=[],(0,a.__)(s,(function(o){var r=o.tickValue,s=l.getItemModel(r),u=s.getModel("label"),c=s.getModel(["emphasis","label"]),p=s.getModel(["progress","label"]),g=n.dataToCoord(o.tickValue),d=new v.Ay({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:(0,a.oI)(i._changeTimeline,i,r),silent:!1,style:(0,x.VB)(u,{text:o.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=(0,x.VB)(c),d.ensureState("progress").style=(0,x.VB)(p),t.add(d),(0,L.iJ)(d),V(d).dataIndex=r,i._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,o){var i=e.controlSize,r=e.rotation,l=o.getModel("controlStyle").getItemStyle(),s=o.getModel(["emphasis","controlStyle"]).getItemStyle(),u=o.getPlayState(),c=o.get("inverse",!0);function p(e,n,u,c){if(e){var p=(0,O.lo)((0,a.bZ)(o.get(["controlStyle",n+"BtnSize"]),i),i),g=[0,-p/2,p,p],d=W(o,n+"Icon",g,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:c?-r:0,rectHover:!0,style:l,onclick:u});d.ensureState("emphasis").style=s,t.add(d),(0,L.iJ)(d)}}p(e.nextBtnPosition,"next",(0,a.oI)(this._changeTimeline,this,c?"-":"+")),p(e.prevBtnPosition,"prev",(0,a.oI)(this._changeTimeline,this,c?"+":"-")),p(e.playPosition,u?"stop":"play",(0,a.oI)(this._handlePlayClick,this,!u),!0)},t.prototype._renderCurrentPointer=function(e,t,n,o){var i=o.getData(),r=o.getCurrentIndex(),l=i.getItemModel(r).getModel("checkpointStyle"),s=this,u={onCreate:function(e){e.draggable=!0,e.drift=(0,a.oI)(s._handlePointerDrag,s),e.ondragend=(0,a.oI)(s._handlePointerDragend,s),Y(e,s._progressLine,r,n,o,!0)},onUpdate:function(e){Y(e,s._progressLine,r,n,o)}};this._currentPointer=X(l,l,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,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],o=this._axis,i=D.Y6(o.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var r=this._progressLine;r&&(r.shape.x2=n,r.dirty());var a=this._findNearestTick(n),l=this.model;(t||a!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(a)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return _.applyTransform(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),o=1/0,i=this._axis;return n.each(["value"],(function(n,r){var a=i.dataToCoord(n),l=Math.abs(a-e);l<o&&(o=l,t=r)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var o=0;o<t.length;o++)t&&t[o]&&t[o].toggleState("progress",o<e);if(n)for(o=0;o<n.length;o++)n&&n[o]&&n[o].toggleState("progress",V(n[o]).dataIndex<=e)},t.type="timeline.slider",t}(w);function E(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new P.A({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new k.A({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new G.A}}function F(e,t){return b.dV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function W(e,t,n,o){var i=o.style,r=_.createIcon(e.get(["controlStyle",t]),o||{},new h.A(n[0],n[1],n[2],n[3]));return i&&r.setStyle(i),r}function X(e,t,n,o,i,r){var l=t.get("color");if(i)i.setColor(l),n.add(i),r&&r.onUpdate(i);else{var s=e.get("symbol");i=(0,T.v5)(s,-1,-1,2,2,l),i.setStyle("strokeNoScale",!0),n.add(i),r&&r.onCreate(i)}var u=t.getItemStyle(["color"]);i.setStyle(u),o=(0,a.h1)({rectHover:!0,z2:100},o,!0);var c=(0,T.xU)(e.get("symbolSize"));o.scaleX=c[0]/2,o.scaleY=c[1]/2;var p=(0,T.hV)(e.get("symbolOffset"),c);p&&(o.x=(o.x||0)+p[0],o.y=(o.y||0)+p[1]);var g=e.get("symbolRotate");return o.rotation=(g||0)*Math.PI/180||0,i.attr(o),i.updateTransform(),i}function Y(e,t,n,o,i,r){if(!e.dragging){var a=i.getModel("checkpointStyle"),l=o.dataToCoord(i.getData().get("value",n));if(r||!a.get("animation",!0))e.attr({x:l,y:0}),t&&t.attr({shape:{x2:l}});else{var s={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:l,y:0},s),t&&t.animateTo({shape:{x2:l}},s)}}}var H=B;function $(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var o=t.getComponent("timeline");return o&&null!=e.currentIndex&&(o.setCurrentIndex(e.currentIndex),!o.get("loop",!0)&&o.isIndexMax()&&o.getPlayState()&&(o.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:o.get("replaceMerge",!0)}),(0,a.NT)({currentIndex:o.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function j(e){var t=e&&e.timeline;a.cy(t)||(t=t?[t]:[]),a.__(t,(function(e){e&&K(e)}))}function K(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),J(e),q(e,"controlPosition")){var o=e.controlStyle||(e.controlStyle={});q(o,"position")||(o.position=e.controlPosition),"none"!==o.position||q(o,"show")||(o.show=!1,delete o.position),delete e.controlPosition}a.__(e.data||[],(function(e){a.Gv(e)&&!a.cy(e)&&(!q(e,"value")&&q(e,"name")&&(e.value=e.name),J(e))}))}function J(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),o=e.label||e.label||{},i=o.normal||(o.normal={}),r={normal:1,emphasis:1};a.__(o,(function(e,t){r[t]||q(i,t)||(i[t]=e)})),n.label&&!q(o,"emphasis")&&(o.emphasis=n.label,delete n.label)}function q(e,t){return e.hasOwnProperty(t)}function Z(e){e.registerComponentModel(d),e.registerComponentView(H),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),$(e),e.registerPreprocessor(j)}},74064:function(e,t,n){n.d(t,{a:function(){return f}});var o=n(15215),i=n(98026),r=n(82980),a=n(10992),l=n(69622),s=n(89632),u=n(34253),c=n(15915),p=n(59109),g=n(83412),d=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,o.C6)(t,e),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}(c.A),h=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return(0,o.C6)(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var o=this.group,c=e.getModel("textStyle"),p=e.getModel("subtextStyle"),d=e.get("textAlign"),h=i.bZ(e.get("textBaseline"),e.get("textVerticalAlign")),f=new r.Ay({style:(0,s.VB)(c,{text:e.get("text"),fill:c.getTextColor()},{disableBox:!0}),z2:10}),m=f.getBoundingRect(),y=e.get("subtext"),v=new r.Ay({style:(0,s.VB)(p,{text:y,fill:p.getTextColor(),y:m.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),_=e.get("link"),x=e.get("sublink"),b=e.get("triggerEvent",!0);f.silent=!_&&!b,v.silent=!x&&!b,_&&f.on("click",(function(){(0,g.JW)(_,"_"+e.get("target"))})),x&&v.on("click",(function(){(0,g.JW)(x,"_"+e.get("subtarget"))})),(0,l.z)(f).eventData=(0,l.z)(v).eventData=b?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(f),y&&o.add(v);var S=o.getBoundingRect(),A=e.getBoxLayoutParams();A.width=S.width,A.height=S.height;var w=(0,u.dV)(A,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));d||(d=e.get("left")||e.get("right"),"middle"===d&&(d="center"),"right"===d?w.x+=w.width:"center"===d&&(w.x+=w.width/2)),h||(h=e.get("top")||e.get("bottom"),"center"===h&&(h="middle"),"bottom"===h?w.y+=w.height:"middle"===h&&(w.y+=w.height/2),h=h||"top"),o.x=w.x,o.y=w.y,o.markRedraw();var C={align:d,verticalAlign:h};f.setStyle(C),v.setStyle(C),S=o.getBoundingRect();var I=w.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var T=new a.A({shape:{x:S.x-I[3],y:S.y-I[0],width:S.width+I[1]+I[3],height:S.height+I[0]+I[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});o.add(T)}},t.type="title",t}(p.A);function f(e){e.registerComponentModel(d),e.registerComponentView(h)}}}]);
|