0?1:a<0?-1:0}function r(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function a(e,t,n,o,i,r,a,l,s,c){var u=s.valueDim,d=s.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,"symbolSize");A.isArray(p)?p=p.slice():(null==p&&(p="100%"),p=[p,p]),p[d.index]=L(p[d.index],f),p[u.index]=L(p[u.index],o?f:Math.abs(r)),c.symbolSize=p,(c.symbolScale=[p[0]/l,p[1]/l])[u.index]*=(s.isHorizontal?-1:1)*a}function l(e,t,n,o,i){var r=e.get(R)||0;r&&(B.attr({scale:t.slice(),rotation:n}),B.updateTransform(),r/=B.getLineScale(),r*=t[o.valueDim.index]),i.valueLineWidth=r}function s(e,t,n,o,i,r,a,l,s,c,u,d){var f=u.categoryDim,p=u.valueDim,h=d.pxSign,g=Math.max(t[p.index]+l,0),m=g;if(o){var v=Math.abs(s),b=A.retrieve(e.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1)),b=L(b,t[p.index]);var y=Math.max(g+2*b,0),_=x?0:2*b,w=P(o),k=w?o:M((v+_)/y);b=(v-k*g)/2/(x?k:k-1),y=g+2*b,_=x?0:2*b,w||"fixed"===o||(k=c?M((Math.abs(c)+_)/y):0),m=k*y-_,d.repeatTimes=k,d.symbolMargin=b}var S=h*(m/2),C=d.pathPosition=[];C[f.index]=n[f.wh]/2,C[p.index]="start"===a?S:"end"===a?s-S:s/2,r&&(C[0]+=r[0],C[1]+=r[1]);var T=d.bundlePosition=[];T[f.index]=n[f.xy],T[p.index]=n[p.xy];var E=d.barRectShape=A.extend({},n);E[p.wh]=h*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+S)),E[f.wh]=n[f.wh];var I=d.clipShape={};I[f.xy]=-n[f.xy],I[f.wh]=u.ecSize[f.wh],I[p.xy]=0,I[p.wh]=n[p.wh]}function c(e){var t=e.symbolPatternSize,n=I(e.symbolType,-t/2,-t/2,t,t,e.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function u(e,t,n,o){function i(e){var t=d.slice(),o=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?o>0:o<0)&&(i=p-1-e),t[f.index]=g*(i-p/2+.5)+d[f.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function r(){w(e,function(e){e.trigger("emphasis")})}function a(){w(e,function(e){e.trigger("normal")})}var l=e.__pictorialBundle,s=n.symbolSize,u=n.valueLineWidth,d=n.pathPosition,f=t.valueDim,p=n.repeatTimes||0,h=0,g=s[t.valueDim.index]+u+2*n.symbolMargin;for(w(e,function(e){e.__pictorialAnimationIndex=h,e.__pictorialRepeatTimes=p,h0)],d=e.__pictorialBarRect;z(d.style,c,r,o,t.seriesModel,i,u),T.setHoverStyle(d,c)}function M(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var C=n(1),A=n(0),T=n(2),E=n(23),I=E.createSymbol,O=n(3),L=O.parsePercent,P=O.isNumeric,D=n(166),z=D.setLabel,R=["itemStyle","normal","borderWidth"],N=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],B=new T.Circle,F=C.extendChartView({type:"pictorialBar",render:function(e,t,n){var i=this.group,r=e.getData(),a=this._data,l=e.coordinateSystem,s=l.getBaseAxis(),c=!!s.isHorizontal(),u=l.grid.getRect(),d={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:c,valueDim:N[+c],categoryDim:N[1-c]};return r.diff(a).add(function(e){if(r.hasValue(e)){var t=h(r,e),n=o(r,e,t,d),a=b(r,d,n);r.setItemGraphicEl(e,a),i.add(a),S(a,d,n)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e))return void i.remove(n);var l=h(r,e),s=o(r,e,l,d),c=_(r,s);n&&c!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?x(n,d,s):n=b(r,d,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),S(n,d,s)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&y(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute(),this._data=r,this.group},dispose:A.noop,remove:function(e,t){var n=this.group,o=this._data;e.get("animation")?o&&o.eachItemGraphicEl(function(t){y(o,t.dataIndex,e,t)}):n.removeAll()}}),V=F;e.exports=V},function(e,t,n){var o=n(56),i=o([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getBarItemStyle:function(e){var t=i(this,e);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(t.lineDash=n)}return t}};e.exports=r},function(e,t,n){var o=n(1);n(365),n(366);var i=n(368),r=n(367);o.registerVisual(i),o.registerLayout(r)},function(e,t,n){var o=n(0),i=n(18),r=n(83),a=r.seriesModelMixin,l=i.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});o.mixin(l,a,!0);var s=l;e.exports=s},function(e,t,n){function o(e,t,n){var o=t.getItemModel(n),i=o.getModel(u),r=t.getItemVisual(n,"color"),l=i.getItemStyle(["borderColor"]),s=e.childAt(e.whiskerIndex);s.style.set(l),s.style.stroke=r,s.dirty();var c=e.childAt(e.bodyIndex);c.style.set(l),c.style.stroke=r,c.dirty();var f=o.getModel(d).getItemStyle();a.setHoverStyle(e,f)}var i=n(0),r=n(36),a=n(2),l=n(83),s=l.viewMixin,c=r.extend({type:"boxplot",getStyleUpdater:function(){return o},dispose:i.noop});i.mixin(c,s,!0);var u=["itemStyle","normal"],d=["itemStyle","emphasis"],f=c;e.exports=f},function(e,t,n){function o(e){var t=i(e);u(t,function(e){var t=e.seriesModels;t.length&&(r(e),u(t,function(t,n){a(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}function i(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(e){var o=e.getBaseAxis(),i=l.indexOf(n,o);i<0&&(i=n.length,n[i]=o,t[i]={axis:o,seriesModels:[]}),t[i].seriesModels.push(e)}),t}function r(e){var t,n,o=e.axis,i=e.seriesModels,r=i.length,a=e.boxWidthList=[],s=e.boxOffsetList=[],d=[];if("category"===o.type)n=o.getBandWidth();else{var f=0;u(i,function(e){f=Math.max(f,e.getData().count())}),t=o.getExtent(),Math.abs(t[1]-t[0])}u(i,function(e){var t=e.get("boxWidth");l.isArray(t)||(t=[t,t]),d.push([c(t[0],n)||0,c(t[1],n)||0])});var p=.8*n-2,h=p/r*.3,g=(p-h*(r-1))/r,m=g/2-p/2;u(i,function(e,t){s.push(m),m+=h+g,a.push(Math.min(Math.max(g,d[t][0]),d[t][1]))})}function a(e,t,n){var o,i=e.coordinateSystem,r=e.getData(),a=n/2,s=e.get("layout"),c="horizontal"===s?0:1,u=1-c,d=["x","y"],f=[];l.each(r.dimensions,function(e){var t=r.getDimensionInfo(e),n=t.coordDim;n===d[u]?f.push(e):n===d[c]&&(o=e)}),null==o||f.length<5||r.each([o].concat(f),function(){function e(e){var n=[];n[c]=d,n[u]=e;var o;return isNaN(d)||isNaN(e)?o=[NaN,NaN]:(o=i.dataToPoint(n),o[c]+=t),o}function n(e,t){var n=e.slice(),o=e.slice();n[c]+=a,o[c]-=a,t?b.push(n,o):b.push(o,n)}function o(e){var t=[e.slice(),e.slice()];t[0][c]-=a,t[1][c]+=a,v.push(t)}var l=arguments,d=l[0],p=l[f.length+1],h=e(l[3]),g=e(l[1]),m=e(l[5]),v=[[g,e(l[2])],[m,e(l[4])]];o(g),o(m),o(h);var b=[];n(v[0][1],0),n(v[1][1],1),r.setItemLayout(p,{chartLayout:s,initBaseline:h[u],median:h,bodyEnds:b,whiskerEnds:v})})}var l=n(0),s=n(3),c=s.parsePercent,u=l.each;e.exports=o},function(e,t){function n(e,t){var n=e.get("color");e.eachRawSeriesByType("boxplot",function(t){var i=n[t.seriesIndex%n.length],r=t.getData();r.setVisual({legendSymbol:"roundRect",color:t.get(o)||i}),e.isSeriesFiltered(t)||r.each(function(e){var t=r.getItemModel(e);r.setItemVisual(e,{color:t.get(o,!0)})})})}var o=["itemStyle","normal","borderColor"];e.exports=n},function(e,t,n){var o=n(1);n(370),n(371);var i=n(374),r=n(373),a=n(372);o.registerPreprocessor(i),o.registerVisual(r),o.registerLayout(a)},function(e,t,n){var o=n(0),i=n(18),r=n(83),a=r.seriesModelMixin,l=i.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,n){var o=t.getItemLayout(e);return n.rect(o.brushRect)}});o.mixin(l,a,!0);var s=l;e.exports=s},function(e,t,n){function o(e,t,n){var o=t.getItemModel(n),i=o.getModel(u),r=t.getItemVisual(n,"color"),l=t.getItemVisual(n,"borderColor")||r,s=i.getItemStyle(["color","color0","borderColor","borderColor0"]),c=e.childAt(e.whiskerIndex);c.useStyle(s),c.style.stroke=l;var f=e.childAt(e.bodyIndex);f.useStyle(s),f.style.fill=r,f.style.stroke=l;var p=o.getModel(d).getItemStyle();a.setHoverStyle(e,p)}var i=n(0),r=n(36),a=n(2),l=n(83),s=l.viewMixin,c=r.extend({type:"candlestick",getStyleUpdater:function(){return o},dispose:i.noop});i.mixin(c,s,!0);var u=["itemStyle","normal"],d=["itemStyle","emphasis"],f=c;e.exports=f},function(e,t,n){function o(e){e.eachSeriesByType("candlestick",function(e){var t,n=e.coordinateSystem,o=e.getData(),a=i(e,o),l=e.get("layout"),s="horizontal"===l?0:1,u=1-s,d=["x","y"],f=[];if(r.each(o.dimensions,function(e){var n=o.getDimensionInfo(e),i=n.coordDim;i===d[u]?f.push(e):i===d[s]&&(t=e)}),!(null==t||f.length<4)){var p=0;o.each([t].concat(f),function(){function e(e){var t=[];return t[s]=d,t[u]=e,isNaN(d)||isNaN(e)?[NaN,NaN]:n.dataToPoint(t)}function t(e,t){var n=e.slice(),o=e.slice();n[s]=c(n[s]+a/2,1,!1),o[s]=c(o[s]-a/2,1,!0),t?C.push(n,o):C.push(o,n)}function i(e){return e[s]=c(e[s],1),e}var r=arguments,d=r[0],h=r[f.length+1],g=r[1],m=r[2],v=r[3],b=r[4],x=Math.min(g,m),y=Math.max(g,m),_=e(x),w=e(y),k=e(v),S=e(b),M=[[i(S),i(w)],[i(k),i(_)]],C=[];t(w,0),t(_,1);var A;A=g>m?-1:g0?o.getItemModel(p-1).get()[2]<=m?1:-1:1,o.setItemLayout(h,{chartLayout:l,sign:A,initBaseline:g>m?w[u]:_[u],bodyEnds:C,whiskerEnds:M,brushRect:function(){var t=e(Math.min(g,m,v,b)),n=e(Math.max(g,m,v,b));return t[s]-=a/2,n[s]-=a/2,{x:t[0],y:t[1],width:u?a:n[0]-t[0],height:u?n[1]-t[1]:a}}()}),++p},!0)}})}function i(e,t){var n,o=e.getBaseAxis(),i="category"===o.type?o.getBandWidth():(n=o.getExtent(),Math.abs(n[1]-n[0])/t.count()),r=l(u(e.get("barMaxWidth"),i),i),a=l(u(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?l(s,i):Math.max(Math.min(i/2,r),a)}var r=n(0),a=n(3),l=a.parsePercent,s=n(2),c=s.subPixelOptimize,u=r.retrieve2;e.exports=o},function(e,t){function n(e,t){e.eachRawSeriesByType("candlestick",function(t){var n=t.getData();n.setVisual({legendSymbol:"roundRect"}),e.isSeriesFiltered(t)||n.each(function(e){var t=n.getItemModel(e),l=n.getItemLayout(e).sign;n.setItemVisual(e,{color:t.get(l>0?r:a),borderColor:t.get(l>0?o:i)})})})}var o=["itemStyle","normal","borderColor"],i=["itemStyle","normal","borderColor0"],r=["itemStyle","normal","color"],a=["itemStyle","normal","color0"];e.exports=n},function(e,t,n){function o(e){e&&i.isArray(e.series)&&i.each(e.series,function(e){i.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}var i=n(0);e.exports=o},function(e,t,n){function o(e){var t,n=e.type;if("path"===n){var o=e.shape;t=v.makePath(o.pathData,null,{x:o.x||0,y:o.y||0,width:o.width||0,height:o.height||0},"center"),t.__customPathData=e.pathData}else if("image"===n)t=new v.Image({}),t.__customImagePath=e.style.image;else if("text"===n)t=new v.Text({}),t.__customText=e.style.text;else{var i=v[n.charAt(0).toUpperCase()+n.slice(1)];t=new i}return t.__customGraphicType=n,t.name=e.name,t}function i(e,t,n,o,i,a){var l={},s=n.style||{};if(n.shape&&(l.shape=m.clone(n.shape)),n.position&&(l.position=n.position.slice()),n.scale&&(l.scale=n.scale.slice()),n.origin&&(l.origin=n.origin.slice()),n.rotation&&(l.rotation=n.rotation),"image"===e.type&&n.style){var c=l.style={};m.each(["x","y","width","height"],function(t){r(t,c,s,e.style,a)})}if("text"===e.type&&n.style){var c=l.style={};m.each(["x","y"],function(t){r(t,c,s,e.style,a)}),!s.hasOwnProperty("textFill")&&s.fill&&(s.textFill=s.fill),!s.hasOwnProperty("textStroke")&&s.stroke&&(s.textStroke=s.stroke)}if("group"!==e.type&&(e.useStyle(s),a)){e.style.opacity=0;var u=s.opacity;null==u&&(u=1),v.initProps(e,{style:{opacity:u}},o,t)}a?e.attr(l):v.updateProps(e,l,o,t),e.attr({z2:n.z2||0,silent:n.silent}),!1!==n.styleEmphasis&&v.setHoverStyle(e,n.styleEmphasis)}function r(e,t,n,o,i){null==n[e]||i||(t[e]=n[e],n[e]=o[e])}function a(e,t,n,o){function i(e){null==e&&(e=b),L&&(y=t.getItemModel(e),w=y.getModel(I),k=y.getModel(O),S=x(t),M=t.getItemVisual(e,"color"),L=!1)}function r(e,n){return null==n&&(n=b),t.get(t.getDimension(e||0),n)}function a(n,o){null==o&&(o=b),i(o);var r=y.getModel(T).getItemStyle();null!=M&&(r.fill=M);var a=t.getItemVisual(o,"opacity");return null!=a&&(r.opacity=a),null!=S&&(v.setTextStyle(r,w,null,{autoColor:M,isRectText:!0}),r.text=w.getShallow("show")?m.retrieve2(e.getFormattedLabel(o,"normal"),t.get(S,o)):null),n&&m.extend(r,n),r}function s(n,o){null==o&&(o=b),i(o);var r=y.getModel(E).getItemStyle();return null!=S&&(v.setTextStyle(r,k,null,{isRectText:!0},!0),r.text=k.getShallow("show")?m.retrieve3(e.getFormattedLabel(o,"emphasis"),e.getFormattedLabel(o,"normal"),t.get(S,o)):null),n&&m.extend(r,n),r}function c(e,n){return null==n&&(n=b),t.getItemVisual(n,e)}function u(e){if(h.getBaseAxis){var t=h.getBaseAxis();return _.getLayoutOnAxis(m.defaults({axis:t},e),o)}}function d(){return n.getCurrentSeriesIndices()}function f(e){return v.getFont(e,n)}var p=e.get("renderItem"),h=e.coordinateSystem,g={};h&&(g=h.prepareCustoms?h.prepareCustoms():P[h.type](h));var b,y,w,k,S,M,C=m.defaults({getWidth:o.getWidth,getHeight:o.getHeight,getZr:o.getZr,getDevicePixelRatio:o.getDevicePixelRatio,value:r,style:a,styleEmphasis:s,visual:c,barLayout:u,currentSeriesIndices:d,font:f},g.api||{}),A={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:g.coordSys,dataInsideLength:t.count(),encode:l(e.getData())},L=!0;return function(e){return b=e,L=!0,p&&p(m.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e)},A),C)||{}}}function l(e){var t={};return m.each(e.dimensions,function(n,o){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(t[r]=t[r]||[])[i.coordDimIndex]=o}}),t}function s(e,t,n,o,i,r){(e=c(e,t,n,o,i,r))&&r.setItemGraphicEl(t,e)}function c(e,t,n,r,a,l){var s=n.type;if(!e||s===e.__customGraphicType||"path"===s&&n.pathData===e.__customPathData||"image"===s&&n.style.image===e.__customImagePath||"text"===s&&n.style.text===e.__customText||(a.remove(e),e=null),null!=s){var d=!e;if(!e&&(e=o(n)),i(e,t,n,r,l,d),"group"===s){var f=e.children()||[],p=n.children||[];if(n.diffChildrenByName)u({oldChildren:f,newChildren:p,dataIndex:t,animatableModel:r,group:e,data:l});else{for(var h=0;h=e&&(0===t?0:o[t-1][0]).4?"bottom":"middle",textAlign:O<-.4?"left":O>.4?"right":"center"},{autoColor:R}),silent:!0}))}if(x.get("show")&&I!==_){for(var N=0;N<=w;N++){var O=Math.cos(M),L=Math.sin(M),B=new a.Line({shape:{x1:O*g+p,y1:L*g+h,x2:O*(g-S)+p,y2:L*(g-S)+h},silent:!0,style:E});"auto"===E.stroke&&B.setStyle({stroke:o((I+N/w)/_)}),f.add(B),M+=A}M-=A}else M+=C}},_renderPointer:function(e,t,n,o,i,l,s,u){var f=this.group,p=this._data;if(!e.get("pointer.show"))return void(p&&p.eachItemGraphicEl(function(e){f.remove(e)}));var h=[+e.get("min"),+e.get("max")],g=[l,s],m=e.getData();m.diff(p).add(function(t){var n=new r({shape:{angle:l}});a.initProps(n,{shape:{angle:d(m.get("value",t),h,g,!0)}},e),f.add(n),m.setItemGraphicEl(t,n)}).update(function(t,n){var o=p.getItemGraphicEl(n);a.updateProps(o,{shape:{angle:d(m.get("value",t),h,g,!0)}},e),f.add(o),m.setItemGraphicEl(t,o)}).remove(function(e){var t=p.getItemGraphicEl(e);f.remove(t)}).execute(),m.eachItemGraphicEl(function(e,t){var n=m.getItemModel(t),r=n.getModel("pointer");e.setShape({x:i.cx,y:i.cy,width:c(r.get("width"),i.r),r:c(r.get("length"),i.r)}),e.useStyle(n.getModel("itemStyle.normal").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",o(d(m.get("value",t),h,[0,1],!0))),a.setHoverStyle(e,n.getModel("itemStyle.emphasis").getItemStyle())}),this._data=m},_renderTitle:function(e,t,n,o,i){var r=e.getModel("title");if(r.get("show")){var l=r.get("offsetCenter"),s=i.cx+c(l[0],i.r),u=i.cy+c(l[1],i.r),f=+e.get("min"),p=+e.get("max"),h=e.getData().get("value",0),g=o(d(h,[f,p],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},r,{x:s,y:u,text:e.getData().getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}},_renderDetail:function(e,t,n,o,r){var l=e.getModel("detail"),s=+e.get("min"),u=+e.get("max");if(l.get("show")){var f=l.get("offsetCenter"),p=r.cx+c(f[0],r.r),h=r.cy+c(f[1],r.r),g=c(l.get("width"),r.r),m=c(l.get("height"),r.r),v=e.getData().get("value",0),b=o(d(v,[s,u],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},l,{x:p,y:h,text:i(v,l.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:b,forceRich:!0})}))}}}),h=p;e.exports=h},function(e,t,n){var o=n(16),i=o.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var n=Math.cos,o=Math.sin,i=t.r,r=t.width,a=t.angle,l=t.x-n(a)*r*(r>=i/3?1:2),s=t.y-o(a)*r*(r>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(l,s),e.lineTo(t.x+n(a)*r,t.y+o(a)*r),e.lineTo(t.x+n(t.angle)*i,t.y+o(t.angle)*i),e.lineTo(t.x-n(a)*r,t.y-o(a)*r),e.lineTo(l,s)}});e.exports=i},function(e,t,n){var o=n(1),i=n(0);n(388),n(389),n(398);var r=n(391),a=n(46),l=n(392),s=n(395),c=n(399),u=n(393),d=n(397),f=n(394);o.registerProcessor(r),o.registerVisual(i.curry(a,"graph","circle",null)),o.registerVisual(l),o.registerVisual(s),o.registerLayout(c),o.registerLayout(u),o.registerLayout(d),o.registerCoordinateSystem("graphView",{create:f})},function(e,t,n){var o=n(1),i=n(13),r=n(0),a=n(5),l=a.defaultEmphasis,s=n(12),c=n(8),u=c.encodeHTML,d=n(171),f=o.extendSeriesModel({type:"series.graph",init:function(e){f.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){f.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){f.superApply(this,"mergeDefaultAndTheme",arguments),l(e.edgeLabel,["show"])},getInitialData:function(e,t){function n(e,n){function o(e){return e=this.parsePath(e),e&&"label"===e[0]?a:this.parentModel}e.wrapMethod("getItemModel",function(e){var t=r._categoriesModels,n=e.getShallow("category"),o=t[n];return o&&(o.parentModel=e.parentModel,e.parentModel=o),e});var i=r.getModel("edgeLabel"),a=new s({label:i.option},i.parentModel,t);n.wrapMethod("getItemModel",function(e){return e.customizeGetParent(o),e})}var o=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&o)return d(i,o,this,!0,n).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,n){if("edge"===n){var o=this.getData(),i=this.getDataParams(e,n),r=o.graph.getEdgeByIndex(e),a=o.getName(r.node1.dataIndex),l=o.getName(r.node2.dataIndex),s=[];return null!=a&&s.push(a),null!=l&&s.push(l),s=u(s.join(" > ")),i.value&&(s+=" : "+u(i.value)),s}return f.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=r.map(this.option.categories||[],function(e){return null!=e.value?e:r.extend({value:0},e)}),t=new i(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return f.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}}),p=f;e.exports=p},function(e,t,n){function o(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function i(e,t,n){var i=e.getGraphicEl(),r=o(e,t);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",r)})}function r(e,t){var n=o(e,t),i=e.getGraphicEl();i.highlight&&i.highlight(),i.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",n)})}var a=n(1),l=n(0),s=n(64),c=n(115),u=n(86),d=n(191),f=n(119),p=f.onIrrelevantElement,h=n(2),g=n(390),m=["itemStyle","normal","opacity"],v=["lineStyle","normal","opacity"],b=a.extendChartView({type:"graph",init:function(e,t){var n=new s,o=new c,i=this.group;this._controller=new u(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(o.group),this._symbolDraw=n,this._lineDraw=o,this._firstRender=!0},render:function(e,t,n){var o=e.coordinateSystem;this._model=e,this._nodeScaleRatio=e.get("nodeScaleRatio");var i=this._symbolDraw,r=this._lineDraw,a=this.group;if("view"===o.type){var l={position:o.position,scale:o.scale};this._firstRender?a.attr(l):h.updateProps(a,l,e)}g(e.getGraph(),this._getNodeGlobalScale(e));var s=e.getData();i.updateData(s);var c=e.getEdgeData();r.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var u=e.forceLayout,d=e.get("force.layoutAnimation");u&&this._startForceLayoutIteration(u,d),s.eachItemGraphicEl(function(t,o){var i=s.getItemModel(o);t.off("drag").off("dragend");var r=s.getItemModel(o).get("draggable");r&&t.on("drag",function(){u&&(u.warmUp(),!this._layouting&&this._startForceLayoutIteration(u,d),u.setFixed(o),s.setItemLayout(o,t.position))},this).on("dragend",function(){u&&u.setUnfixed(o)},this),t.setDraggable(r&&u),t.off("mouseover",t.__focusNodeAdjacency),t.off("mouseout",t.__unfocusNodeAdjacency),i.get("focusNodeAdjacency")&&(t.on("mouseover",t.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))},this),s.graph.eachEdge(function(t){var o=t.getGraphicEl();o.off("mouseover",o.__focusNodeAdjacency),o.off("mouseout",o.__unfocusNodeAdjacency),t.getModel().get("focusNodeAdjacency")&&(o.on("mouseover",o.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),o.on("mouseout",o.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))});var f="circular"===e.get("layout")&&e.get("circular.rotateLabel"),p=s.getLayout("cx"),m=s.getLayout("cy");s.eachItemGraphicEl(function(e,t){var n=e.getSymbolPath();if(f){var o=s.getItemLayout(t),i=Math.atan2(o[1]-m,o[0]-p);i<0&&(i=2*Math.PI+i);var r=o[0]=0?o+=g:o-=g:y>=0?o-=g:o+=g}return o}function i(e,t){function n(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),t}var i=[],l=r.quadraticSubdivide,s=[[],[],[]],c=[[],[]],u=[];t/=2,e.eachEdge(function(e,r){var d=e.getLayout(),f=e.getVisual("fromSymbol"),p=e.getVisual("toSymbol");d.__original||(d.__original=[a.clone(d[0]),a.clone(d[1])],d[2]&&d.__original.push(a.clone(d[2])));var h=d.__original;if(null!=d[2]){if(a.copy(s[0],h[0]),a.copy(s[1],h[2]),a.copy(s[2],h[1]),f&&"none"!=f){var g=n(e.node1),m=o(s,h[0],g*t);l(s[0][0],s[1][0],s[2][0],m,i),s[0][0]=i[3],s[1][0]=i[4],l(s[0][1],s[1][1],s[2][1],m,i),s[0][1]=i[3],s[1][1]=i[4]}if(p&&"none"!=p){var g=n(e.node2),m=o(s,h[1],g*t);l(s[0][0],s[1][0],s[2][0],m,i),s[1][0]=i[1],s[2][0]=i[2],l(s[0][1],s[1][1],s[2][1],m,i),s[1][1]=i[1],s[2][1]=i[2]}a.copy(d[0],s[0]),a.copy(d[1],s[2]),a.copy(d[2],s[1])}else{if(a.copy(c[0],h[0]),a.copy(c[1],h[1]),a.sub(u,c[1],c[0]),a.normalize(u,u),f&&"none"!=f){var g=n(e.node1);a.scaleAndAdd(c[0],c[0],u,g*t)}if(p&&"none"!=p){var g=n(e.node2);a.scaleAndAdd(c[1],c[1],u,-g*t)}a.copy(d[0],c[0]),a.copy(d[1],c[1])}})}var r=n(39),a=n(7),l=[],s=[],c=[],u=r.quadraticAt,d=a.distSquare,f=Math.abs;e.exports=i},function(e,t){function n(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),o=e.getGraph(),i=o.data,r=n.mapArray(n.getName);i.filterSelf(function(e){var n=i.getItemModel(e),o=n.getShallow("category");if(null!=o){"number"==typeof o&&(o=r[o]);for(var a=0;a0){var A=r(b)?l:s;b>0&&(b=b*M+k),y[_++]=A[C],y[_++]=A[C+1],y[_++]=A[C+2],y[_++]=A[C+3]*b*256}else _+=4}return d.putImageData(x,0,0),u},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=i.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var o=e.getContext("2d");return o.clearRect(0,0,n,n),o.shadowOffsetX=n,o.shadowBlur=this.blurSize,o.shadowColor="#000",o.beginPath(),o.arc(-t,t,this.pointSize,0,2*Math.PI,!0),o.closePath(),o.fill(),e},_getGradient:function(e,t,n){for(var o=this._gradientPixels,i=o[n]||(o[n]=new Uint8ClampedArray(1024)),r=[0,0,0,0],a=0,l=0;l<256;l++)t[n](l/255,!0,r),i[a++]=r[0],i[a++]=r[1],i[a++]=r[2],i[a++]=r[3];return i}};var r=o;e.exports=r},function(e,t,n){var o=n(18),i=n(33),r=o.extend({type:"series.heatmap",getInitialData:function(e,t){return i(e.data,this,t)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=r},function(e,t,n){function o(e,t,n){var o=e[1]-e[0];t=u.map(t,function(t){return{interval:[(t.interval[0]-e[0])/o,(t.interval[1]-e[0])/o]}});var i=t.length,r=0;return function(e){for(var o=r;o=0;o--){var a=t[o].interval;if(a[0]<=e&&e<=a[1]){r=o;break}}return o>=0&&o=t[0]&&e<=t[1]}}function r(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var a=n(4),l=(a.__DEV__,n(1)),s=n(2),c=n(401),u=n(0),d=l.extendChartView({type:"heatmap",render:function(e,t,n){var o;t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(n){n===e&&(o=t)})}),this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(i,e,n):r(i)&&this._renderOnGeo(i,e,o,n)},dispose:function(){},_renderOnCartesianAndCalendar:function(e,t,n){if("cartesian2d"===e.type)var o=e.getAxis("x"),i=e.getAxis("y"),r=o.getBandWidth(),a=i.getBandWidth();var l=this.group,c=t.getData(),d=t.getModel("itemStyle.normal").getItemStyle(["color"]),f=t.getModel("itemStyle.emphasis").getItemStyle(),p=t.getModel("label.normal"),h=t.getModel("label.emphasis"),g=e.type,m="cartesian2d"===g?[t.coordDimToDataDim("x")[0],t.coordDimToDataDim("y")[0],t.coordDimToDataDim("value")[0]]:[t.coordDimToDataDim("time")[0],t.coordDimToDataDim("value")[0]];c.each(function(n){var o;if("cartesian2d"===g){if(isNaN(c.get(m[2],n)))return;var i=e.dataToPoint([c.get(m[0],n),c.get(m[1],n)]);o=new s.Rect({shape:{x:i[0]-r/2,y:i[1]-a/2,width:r,height:a},style:{fill:c.getItemVisual(n,"color"),opacity:c.getItemVisual(n,"opacity")}})}else{if(isNaN(c.get(m[1],n)))return;o=new s.Rect({z2:1,shape:e.dataToRect([c.get(m[0],n)]).contentShape,style:{fill:c.getItemVisual(n,"color"),opacity:c.getItemVisual(n,"opacity")}})}var v=c.getItemModel(n);c.hasItemOption&&(d=v.getModel("itemStyle.normal").getItemStyle(["color"]),f=v.getModel("itemStyle.emphasis").getItemStyle(),p=v.getModel("label.normal"),h=v.getModel("label.emphasis"));var b=t.getRawValue(n),x="-";b&&null!=b[2]&&(x=b[2]),s.setLabelStyle(d,f,p,h,{labelFetcher:t,labelDataIndex:n,defaultText:x,isRectText:!0}),o.setStyle(d),s.setHoverStyle(o,c.hasItemOption?f:u.extend({},f)),l.add(o),c.setItemGraphicEl(n,o)})},_renderOnGeo:function(e,t,n,r){var a=n.targetVisuals.inRange,l=n.targetVisuals.outOfRange,u=t.getData(),d=this._hmLayer||this._hmLayer||new c;d.blurSize=t.get("blurSize"),d.pointSize=t.get("pointSize"),d.minOpacity=t.get("minOpacity"),d.maxOpacity=t.get("maxOpacity");var f=e.getViewRect().clone(),p=e.getRoamTransform().transform;f.applyTransform(p);var h=Math.max(f.x,0),g=Math.max(f.y,0),m=Math.min(f.width+f.x,r.getWidth()),v=Math.min(f.height+f.y,r.getHeight()),b=m-h,x=v-g,y=u.mapArray(["lng","lat","value"],function(t,n,o){var i=e.dataToPoint([t,n]);return i[0]-=h,i[1]-=g,i.push(o),i}),_=n.getExtent(),w="visualMap.continuous"===n.type?i(_,n.option.range):o(_,n.getPieceList(),n.option.selected);d.update(y,b,x,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:l.color.getColorMapper()},w);var k=new s.Image({style:{width:b,height:x,x:h,y:g,image:d.canvas},silent:!0});this.group.add(k)}});e.exports=d},function(e,t,n){function o(e,t,n){a.call(this,e,t,n),this._lastFrame=0,this._lastFramePercent=0}var i=n(170),r=n(0),a=n(169),l=n(7),s=o.prototype;s.createLine=function(e,t,n){return new i(e,t,n)},s.updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],o=0,i=1;i=0&&!(o[r]<=t);r--);r=Math.min(r,i-2)}else{for(var r=a;rt);r++);r=Math.min(r-1,i-2)}l.lerp(e.position,n[r],n[r+1],(t-o[r])/(o[r+1]-o[r]));var c=n[r+1][0]-n[r][0],u=n[r+1][1]-n[r][1];e.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=t,e.ignore=!1}},r.inherits(o,a);var c=o;e.exports=c},function(e,t,n){function o(e){return a.isArray(e)||(e=[+e,+e]),e}function i(e,t){e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?t.color:null,fill:"fill"===t.brushType?t.color:null}})})}function r(e,t){u.call(this);var n=new p(e,t),o=new u;this.add(n),this.add(o),o.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(e,t)}var a=n(0),l=n(23),s=l.createSymbol,c=n(2),u=c.Group,d=n(3),f=d.parsePercent,p=n(82),h=r.prototype;h.stopEffectAnimation=function(){this.childAt(1).removeAll()},h.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,o=this.childAt(1),r=0;r<3;r++){var a=s(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var l=-r/3*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(l).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(l).start(),o.add(a)}i(o,e)},h.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),o=["symbolType","period","rippleScale"],r=0;r2?e.quadraticCurveTo(r[2][0],r[2][1],r[1][0],r[1][1]):e.lineTo(r[1][0],r[1][1])}},findDataIndex:function(e,t){for(var n=this.shape,o=n.segs,i=n.polyline,l=Math.max(this.style.lineWidth,1),s=0;s2){if(a.containStroke(c[0][0],c[0][1],c[2][0],c[2][1],c[1][0],c[1][1],l,e,t))return s}else if(r.containStroke(c[0][0],c[0][1],c[1][0],c[1][1],l,e,t))return s}return-1}}),s=o.prototype;s.updateData=function(e){this.group.removeAll();var t=this._lineEl,n=e.hostModel;t.setShape({segs:e.mapArray(e.getItemLayout),polyline:n.get("polyline")}),t.useStyle(n.getModel("lineStyle.normal").getLineStyle());var o=e.getVisual("color");o&&t.setStyle("stroke",o),t.setStyle("fill"),t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n)}),this.group.add(t)},s.updateLayout=function(e){var t=e.getData();this._lineEl.setShape({segs:t.mapArray(t.getItemLayout)})},s.remove=function(){this.group.removeAll()};var c=o;e.exports=c},function(e,t,n){function o(){this.group=new i.Group,this._symbolEl=new l({})}var i=n(2),r=n(23),a=r.createSymbol,l=i.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(e,t){for(var n=t.points,o=t.sizes,i=this.symbolProxy,r=i.shape,a=0;a=0;r--){var a=o[r],l=i[r],s=a[0]-l[0]/2,c=a[1]-l[1]/2;if(e>=s&&t>=c&&e<=s+l[0]&&t<=c+l[1])return r}return-1}}),s=o.prototype;s.updateData=function(e){this.group.removeAll();var t=this._symbolEl,n=e.hostModel;t.setShape({points:e.mapArray(e.getItemLayout),sizes:e.mapArray(function(t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array||(n=[n,n]),n})}),t.symbolProxy=a(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor,t.useStyle(n.getModel("itemStyle.normal").getItemStyle(["color"]));var o=e.getVisual("color");o&&t.setColor(o),t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n)}),this.group.add(t)},s.updateLayout=function(e){var t=e.getData();this._symbolEl.setShape({points:t.mapArray(t.getItemLayout)})},s.remove=function(){this.group.removeAll()};var c=o;e.exports=c},function(e,t,n){function o(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var i=n(2),r=n(7),a=i.Line.prototype,l=i.BezierCurve.prototype,s=i.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){(o(t)?a:l).buildPath(e,t)},pointAt:function(e){return o(this.shape)?a.pointAt.call(this,e):l.pointAt.call(this,e)},tangentAt:function(e){var t=this.shape,n=o(t)?[t.x2-t.x1,t.y2-t.y1]:l.tangentAt.call(this,e);return r.normalize(n,n)}});e.exports=s},function(e,t,n){function o(e,t,n,o){s.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=n,this._createContent(e,t,o),this.updateData(e,t,o),this._seriesModel}function i(e,t,n){return l.map(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function r(e){var t={};return l.each(e,function(e,n){t["ends"+n]=e}),t}function a(e){this.group=new s.Group,this.styleUpdater=e}var l=n(0),s=n(2),c=n(16),u=c.extend({type:"whiskerInBox",shape:{},buildPath:function(e,t){for(var n in t)if(t.hasOwnProperty(n)&&0===n.indexOf("ends")){var o=t[n];e.moveTo(o[0][0],o[0][1]),e.lineTo(o[1][0],o[1][1])}}}),d=o.prototype;d._createContent=function(e,t,n){var o=e.getItemLayout(t),a="horizontal"===o.chartLayout?1:0,c=0;this.add(new s.Polygon({shape:{points:n?i(o.bodyEnds,a,o):o.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=c++;var d=l.map(o.whiskerEnds,function(e){return n?i(e,a,o):e});this.add(new u({shape:r(d),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=c++},d.updateData=function(e,t,n){var o=this._seriesModel=e.hostModel,i=e.getItemLayout(t),a=s[n?"initProps":"updateProps"];a(this.childAt(this.bodyIndex),{shape:{points:i.bodyEnds}},o,t),a(this.childAt(this.whiskerIndex),{shape:r(i.whiskerEnds)},o,t),this.styleUpdater.call(null,this,e,t)},l.inherits(o,s.Group);var f=a.prototype;f.updateData=function(e){var t=this.group,n=this._data,i=this.styleUpdater;e.diff(n).add(function(n){if(e.hasValue(n)){var r=new o(e,n,i,!0);e.setItemGraphicEl(n,r),t.add(r)}}).update(function(r,a){var l=n.getItemGraphicEl(a);if(!e.hasValue(r))return void t.remove(l);l?l.updateData(e,r):l=new o(e,r,i),t.add(l),e.setItemGraphicEl(r,l)}).remove(function(e){var o=n.getItemGraphicEl(e);o&&t.remove(o)}).execute(),this._data=e},f.remove=function(){var e=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(t){t&&e.remove(t)})};var p=a;e.exports=p},function(e,t,n){var o=n(1),i=n(0);n(411),n(412);var r=n(46),a=n(127),l=n(600);n(69),o.registerVisual(i.curry(r,"line","circle","line")),o.registerLayout(i.curry(a,"line")),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,i.curry(l,"line"))},function(e,t,n){var o=n(4),i=(o.__DEV__,n(33)),r=n(18),a=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return i(e.data,this,t)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});e.exports=a},function(e,t,n){function o(e,t){if(e.length===t.length){for(var n=0;nt[0]?1:-1;t[0]+=o*n,t[1]-=o*n}return t}function a(e){return e>=0?1:-1}function l(e,t){var n=e.getBaseAxis(),o=e.getOtherAxis(n),i=0;if(!n.onZero){var r=o.scale.getExtent();r[0]>0?i=r[0]:r[1]<0&&(i=r[1])}var l=o.dim,s="x"===l||"radius"===l?1:0;return t.mapArray([l],function(o,r){for(var c,u=t.stackedOn;u&&a(u.get(l,r))===a(o);){c=u;break}var d=[];return d[s]=t.get(n.dim,r),d[1-s]=c?c.get(l,r,!0):i,e.dataToPoint(d)},!0)}function s(e,t,n){var o=r(e.getAxis("x")),i=r(e.getAxis("y")),a=e.getBaseAxis().isHorizontal(),l=Math.min(o[0],o[1]),s=Math.min(i[0],i[1]),c=Math.max(o[0],o[1])-l,u=Math.max(i[0],i[1])-s,d=n.get("lineStyle.normal.width")||2,f=n.get("clipOverflow")?d/2:Math.max(c,u);a?(s-=f,u+=2*f):(l-=f,c+=2*f);var p=new b.Rect({shape:{x:l,y:s,width:c,height:u}});return t&&(p.shape[a?"width":"height"]=0,b.initProps(p,{shape:{width:c,height:u}},n)),p}function c(e,t,n){var o=e.getAngleAxis(),i=e.getRadiusAxis(),r=i.getExtent(),a=o.getExtent(),l=Math.PI/180,s=new b.Sector({shape:{cx:e.cx,cy:e.cy,r0:r[0],r:r[1],startAngle:-a[0]*l,endAngle:-a[1]*l,clockwise:o.inverse}});return t&&(s.shape.endAngle=-a[0]*l,b.initProps(s,{shape:{endAngle:-a[1]*l}},n)),s}function u(e,t,n){return"polar"===e.type?c(e,t,n):s(e,t,n)}function d(e,t,n){for(var o=t.getBaseAxis(),i="x"===o.dim||"radius"===o.dim?0:1,r=[],a=0;a=0;i--)if(n[i].dimension<2){o=n[i];break}if(o&&"cartesian2d"===t.type){var r=o.dimension,a=e.dimensions[r],l=t.getAxis(a),s=h.map(o.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),c=s.length,u=o.outerColors.slice();c&&s[0].coord>s[c-1].coord&&(s.reverse(),u.reverse());var d=s[0].coord-10,f=s[c-1].coord+10,p=f-d;if(p<.001)return"transparent";h.each(s,function(e){e.offset=(e.coord-d)/p}),s.push({offset:c?s[c-1].offset:.5,color:u[1]||"transparent"}),s.unshift({offset:c?s[0].offset:.5,color:u[0]||"transparent"});var g=new b.LinearGradient(0,0,0,0,s,!0);return g[a]=d,g[a+"2"]=f,g}}}var p=n(4),h=(p.__DEV__,n(0)),g=n(64),m=n(82),v=n(413),b=n(2),x=n(5),y=n(173),_=y.Polyline,w=y.Polygon,k=n(36),S=k.extend({type:"line",init:function(){var e=new b.Group,t=new g;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var r=e.coordinateSystem,a=this.group,s=e.getData(),c=e.getModel("lineStyle.normal"),p=e.getModel("areaStyle.normal"),g=s.mapArray(s.getItemLayout,!0),m="polar"===r.type,v=this._coordSys,b=this._symbolDraw,x=this._polyline,y=this._polygon,_=this._lineGroup,w=e.get("animation"),k=!p.isEmpty(),S=l(r,s),M=e.get("showSymbol"),C=M&&!m&&!e.get("showAllSymbol")&&this._getSymbolIgnoreFunc(s,r),A=this._data;A&&A.eachItemGraphicEl(function(e,t){e.__temp&&(a.remove(e),A.setItemGraphicEl(t,null))}),M||b.remove(),a.add(_);var T=!m&&e.get("step");x&&v.type===r.type&&T===this._step?(k&&!y?y=this._newPolygon(g,S,r,w):y&&!k&&(_.remove(y),y=this._polygon=null),_.setClipPath(u(r,!1,e)),M&&b.updateData(s,C),s.eachItemGraphicEl(function(e){e.stopAnimation(!0)}),o(this._stackedOnPoints,S)&&o(this._points,g)||(w?this._updateAnimation(s,S,r,n,T):(T&&(g=d(g,r,T),S=d(S,r,T)),x.setShape({points:g}),y&&y.setShape({points:g,stackedOnPoints:S})))):(M&&b.updateData(s,C),T&&(g=d(g,r,T),S=d(S,r,T)),x=this._newPolyline(g,r,w),k&&(y=this._newPolygon(g,S,r,w)),_.setClipPath(u(r,!0,e)));var E=f(s,r)||s.getVisual("color");x.useStyle(h.defaults(c.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"}));var I=e.get("smooth");if(I=i(e.get("smooth")),x.setShape({smooth:I,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),y){var O=s.stackedOn,L=0;y.useStyle(h.defaults(p.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel"})),O&&(L=i(O.hostModel.get("smooth"))),y.setShape({smooth:I,stackedOnSmooth:L,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=s,this._coordSys=r,this._stackedOnPoints=S,this._points=g,this._step=T},dispose:function(){},highlight:function(e,t,n,o){var i=e.getData(),r=x.queryDataIndex(i,o);if(!(r instanceof Array)&&null!=r&&r>=0){var a=i.getItemGraphicEl(r);if(!a){var l=i.getItemLayout(r);if(!l)return;a=new m(i,r),a.position=l,a.setZ(e.get("zlevel"),e.get("z")),a.ignore=isNaN(l[0])||isNaN(l[1]),a.__temp=!0,i.setItemGraphicEl(r,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else k.prototype.highlight.call(this,e,t,n,o)},downplay:function(e,t,n,o){var i=e.getData(),r=x.queryDataIndex(i,o);if(null!=r&&r>=0){var a=i.getItemGraphicEl(r);a&&(a.__temp?(i.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else k.prototype.downplay.call(this,e,t,n,o)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new _({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new w({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(e,t){var n=t.getAxesByScale("ordinal")[0];if(n&&n.isLabelIgnored)return h.bind(n.isLabelIgnored,n)},_updateAnimation:function(e,t,n,o,i){var r=this._polyline,a=this._polygon,l=e.hostModel,s=v(this._data,e,this._stackedOnPoints,t,this._coordSys,n),c=s.current,u=s.stackedOnCurrent,f=s.next,p=s.stackedOnNext;i&&(c=d(s.current,n,i),u=d(s.stackedOnCurrent,n,i),f=d(s.next,n,i),p=d(s.stackedOnNext,n,i)),r.shape.__points=s.current,r.shape.points=c,b.updateProps(r,{shape:{points:f}},l),a&&(a.setShape({points:c,stackedOnPoints:u}),b.updateProps(a,{shape:{points:f,stackedOnPoints:p}},l));for(var h=[],g=s.status,m=0;m=0?1:-1}function o(e,t,o){for(var i,r=e.getBaseAxis(),a=e.getOtherAxis(r),l=r.onZero?0:a.scale.getExtent()[0],s=a.dim,c="x"===s||"radius"===s?1:0,u=t.stackedOn,d=t.get(s,o);u&&n(u.get(s,o))===n(d);){i=u;break}var f=[];return f[c]=t.get(r.dim,o),f[1-c]=i?i.get(s,o,!0):l,e.dataToPoint(f)}function i(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:"+",idx:e})}).update(function(e,t){n.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){n.push({cmd:"-",idx:e})}).execute(),n}function r(e,t,n,r,a,l){for(var s=i(e,t),c=[],u=[],d=[],f=[],p=[],h=[],g=[],m=l.dimensions,v=0;v "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}})),d=u;e.exports=d},function(e,t,n){var o=n(4),i=(o.__DEV__,n(1)),r=n(115),a=n(169),l=n(114),s=n(170),c=n(404),u=n(406),d=i.extendChartView({type:"lines",init:function(){},render:function(e,t,n){var o=e.getData(),i=this._lineDraw,d=e.get("effect.show"),f=e.get("polyline"),p=e.get("large")&&o.count()>=e.get("largeThreshold");d===this._hasEffet&&f===this._isPolyline&&p===this._isLarge||(i&&i.remove(),i=this._lineDraw=p?new u:new r(f?d?c:s:d?a:l),this._hasEffet=d,this._isPolyline=f,this._isLarge=p);var h=e.get("zlevel"),g=e.get("effect.trailLength"),m=n.getZr(),v="svg"===m.painter.getType();v||m.painter.getLayer(h).clear(!0),null==this._lastZlevel||v||m.configLayer(this._lastZlevel,{motionBlur:!1}),d&&g&&(v||m.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(g/10+.9,1),0)})),this.group.add(i.group),i.updateData(o),this._lastZlevel=h},updateLayout:function(e,t,n){this._lineDraw.updateLayout(e);var o=n.getZr();"svg"===o.painter.getType()||o.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(t,!0);var n=t.getZr();"svg"===n.painter.getType()||n.painter.getLayer(this._lastZlevel).clear(!0)},dispose:function(){}});e.exports=d},function(e,t,n){function o(e){e.eachSeriesByType("lines",function(e){var t=e.coordinateSystem,n=e.getData();n.each(function(o){var i=n.getItemModel(o),r=i.option instanceof Array?i.option:i.get("coords"),a=[];if(e.get("polyline"))for(var l=0;l"+s(o+" : "+n)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,o=n.getRegion(t);return o&&n.dataToPoint(o.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,color:"#000"},emphasis:{show:!0,color:"rgb(100,0,0)"}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});o.mixin(f,u);var p=f;e.exports=p},function(e,t,n){var o=n(1),i=n(0),r=n(2),a=n(187),l=o.extendChartView({type:"map",render:function(e,t,n,o){if(!o||"mapToggleSelect"!==o.type||o.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(o&&"geoRoam"===o.type&&"series"===o.componentType&&o.seriesId===e.id){var r=this._mapDraw;r&&i.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new a(n,!0);i.add(r.group),r.draw(e,t,n,this,o),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,n){var o=e.originalData,a=this.group;o.each("value",function(t,n){if(!isNaN(t)){var l=o.getItemLayout(n);if(l&&l.point){var s=l.point,c=l.offset,u=new r.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:s[0]+9*c,cy:s[1],r:3},silent:!0,z2:c?8:10});if(!c){var d=e.mainSeries.getData(),f=o.getName(n),p=d.indexOfName(f),h=o.getItemModel(n),g=h.getModel("label.normal"),m=h.getModel("label.emphasis"),v=d.getItemGraphicEl(p),b=i.retrieve2(e.getFormattedLabel(n,"normal"),f),x=i.retrieve2(e.getFormattedLabel(n,"emphasis"),b),y=function(){var e=r.setTextStyle({},m,{text:m.get("show")?x:null},{isRectText:!0,useInsideStyle:!1},!0);u.style.extendFrom(e),u.__mapOriginalZ2=u.z2,u.z2+=1},_=function(){r.setTextStyle(u.style,g,{text:g.get("show")?b:null,textPosition:g.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=u.__mapOriginalZ2&&(u.z2=u.__mapOriginalZ2,u.__mapOriginalZ2=null)};v.on("mouseover",y).on("mouseout",_).on("emphasis",y).on("normal",_),_()}a.add(u)}}})}});e.exports=l},function(e,t,n){function o(e){var t=[];i.each(e.series,function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,i.defaults(e,e.mapLocation))})}var i=n(0);e.exports=o},function(e,t,n){function o(e,t){var n={},o=["value"];return r.each(e,function(e){e.each(o,function(t,o){var i="ec-"+e.getName(o);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(o,function(o,i){for(var r="ec-"+e[0].getName(i),a=0,l=1/0,s=-1/0,c=n[r].length,u=0;u=0?t:NaN}})}function i(e){return+e.replace("dim","")}function r(e,t){var n=0;l.each(e,function(e){var t=i(e);t>n&&(n=t)});var o=t[0];o&&o.length-1>n&&(n=o.length-1);for(var r=[],a=0;a<=n;a++)r.push("dim"+a);return r}var a=n(13),l=n(0),s=n(18),c=n(25),u=s.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(e,t){var n=t.getComponent("parallel",this.get("parallelIndex")),i=n.parallelAxisIndex,s=e.data,u=n.dimensions,d=r(u,s),f=l.map(d,function(e,n){var r=l.indexOf(u,e),a=r>=0&&t.getComponent("parallelAxis",i[r]);return a&&"category"===a.get("type")?(o(a,e,s),{name:e,type:"ordinal"}):r<0&&c.guessOrdinal(s,n)?{name:e,type:"ordinal"}:e}),p=new a(f,this);return p.initData(s),this.option.progressive&&(this.option.animation=!1),p},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,n=this.getData(),o=[];return t.eachActiveState(n,function(t,i){e===t&&o.push(n.getRawIndex(i))}),o},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}});e.exports=u},function(e,t,n){function o(e,t,n){var o=e.model,i=e.getRect(),r=new s.Rect({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===o.get("layout")?"width":"height";return r.setShape(a,0),s.initProps(r,{shape:{width:i.width,height:i.height}},t,n),r}function i(e,t,n,o){for(var i=[],r=0;r0&&"scale"!==f){var g=l.getItemLayout(0),m=Math.max(n.getWidth(),n.getHeight())/2,v=a.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,e))}this._data=l}},dispose:function(){},_createClipPath:function(e,t,n,o,i,r,a){var s=new l.Sector({shape:{cx:e,cy:t,r0:0,r:n,startAngle:o,endAngle:o,clockwise:i}});return l.initProps(s,{shape:{endAngle:o+(i?1:-1)*Math.PI*2}},a,r),s},containPoint:function(e,t){var n=t.getData(),o=n.getItemLayout(0);if(o){var i=e[0]-o.cx,r=e[1]-o.cy,a=Math.sqrt(i*i+r*r);return a<=o.r&&a>=o.r0}}}),d=u;e.exports=d},function(e,t,n){function o(e,t,n,o,i,r,a){function l(t,n){for(var o=t;o>=0&&(e[o].y-=n,!(o>0&&e[o].y>e[o-1].y+e[o-1].height));o--);}function s(e,t,n,o,i,r){for(var a=t?Number.MAX_VALUE:0,l=0,s=e.length;l=a&&(f=a-10),!t&&f<=a&&(f=a+10),e[l].x=n+f*r,a=f}}e.sort(function(e,t){return e.y-t.y});for(var c,u=0,d=e.length,f=[],p=[],h=0;ht&&r+1e[r].y+e[r].height)return void l(r,o/2);l(n-1,o/2)}(h,d,-c),u=e[h].y+e[h].height;a-u<0&&l(d-1,u-a);for(var h=0;h=n?p.push(e[h]):f.push(e[h]);s(f,!1,t,n,o,i),s(p,!0,t,n,o,i)}function i(e,t,n,i,r,a){for(var l=[],s=[],c=0;c0?"left":"right"}var I=g.getFont(),O=g.get("rotate")?_<0?-y+Math.PI:-y:0,L=e.getFormattedLabel(n,"normal")||s.getName(n),P=a.getBoundingRect(L,I,f,"top");u=!!O,p.label={x:o,y:i,position:m,height:P.height,len:b,len2:x,linePoints:d,textAlign:f,verticalAlign:"middle",rotation:O,inside:k},k||c.push(p.label)}),!u&&e.get("avoidLabelOverlap")&&i(c,r,l,t,n,o)}var a=n(27);e.exports=r},function(e,t,n){function o(e,t,n,o){t.eachSeriesByType(e,function(e){var t=e.get("center"),o=e.get("radius");s.isArray(o)||(o=[0,o]),s.isArray(t)||(t=[t,t]);var i=n.getWidth(),d=n.getHeight(),f=Math.min(i,d),p=r(t[0],i),h=r(t[1],d),g=r(o[0],f/2),m=r(o[1],f/2),v=e.getData(),b=-e.get("startAngle")*u,x=e.get("minAngle")*u,y=0;v.each("value",function(e){!isNaN(e)&&y++});var _=v.getSum("value"),w=Math.PI/(_||y)*2,k=e.get("clockwise"),S=e.get("roseType"),M=e.get("stillShowZeroSum"),C=v.getDataExtent("value");C[0]=0;var A=c,T=0,E=b,I=k?1:-1;if(v.each("value",function(e,t){var n;if(isNaN(e))return void v.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:k,cx:p,cy:h,r0:g,r:S?NaN:m});n="area"!==S?0===_&&M?w:e*w:c/y,n"+a.map(o,function(e,n){return s(e.name+" : "+t[n])}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}}),u=c;e.exports=u},function(e,t,n){function o(e){return a.isArray(e)||(e=[+e,+e]),e}var i=n(1),r=n(2),a=n(0),l=n(23),s=i.extendChartView({type:"radar",render:function(e,t,n){function i(e,t){var n=e.getItemVisual(t,"symbol")||"circle",i=e.getItemVisual(t,"color");if("none"!==n){var r=o(e.getItemVisual(t,"symbolSize")),a=l.createSymbol(n,-1,-1,2,2,i);return a.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),a}}function s(t,n,o,a,l,s){o.removeAll();for(var c=0;c0;i--)a*=.99,p(r,a),f(r,o,n),g(r,a),f(r,o,n)}function d(e,t,n,o,i){var r=[];A.each(t,function(e){var t=e.length,n=0;A.each(e,function(e){n+=e.getLayout().value});var a=(o-(t-1)*i)/n;r.push(a)}),r.sort(function(e,t){return e-t});var a=r[0];A.each(t,function(e){A.each(e,function(e,t){e.setLayout({y:t},!0);var n=e.getLayout().value*a;e.setLayout({dy:n},!0)})}),A.each(n,function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)})}function f(e,t,n){A.each(e,function(e){var o,i,r,a=0,l=e.length;for(e.sort(w),r=0;r0){var s=o.getLayout().y+i;o.setLayout({y:s},!0)}a=o.getLayout().y+o.getLayout().dy+t}if((i=a-t-n)>0){var s=o.getLayout().y-i;for(o.setLayout({y:s},!0),a=o.getLayout().y,r=l-2;r>=0;--r)o=e[r],i=o.getLayout().y+o.getLayout().dy+t-a,i>0&&(s=o.getLayout().y-i,o.setLayout({y:s},!0)),a=o.getLayout().y}})}function p(e,t){A.each(e.slice().reverse(),function(e){A.each(e,function(e){if(e.outEdges.length){var n=y(e.outEdges,h)/y(e.outEdges,S),o=e.getLayout().y+(n-_(e))*t;e.setLayout({y:o},!0)}})})}function h(e){return _(e.node2)*e.getValue()}function g(e,t){A.each(e,function(e){A.each(e,function(e){if(e.inEdges.length){var n=y(e.inEdges,m)/y(e.inEdges,S),o=e.getLayout().y+(n-_(e))*t;e.setLayout({y:o},!0)}})})}function m(e){return _(e.node1)*e.getValue()}function v(e){A.each(e,function(e){e.outEdges.sort(b),e.inEdges.sort(x)}),A.each(e,function(e){var t=0,n=0;A.each(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),A.each(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}function b(e,t){return e.node2.getLayout().y-t.node2.getLayout().y}function x(e,t){return e.node1.getLayout().y-t.node1.getLayout().y}function y(e,t){for(var n=0,o=e.length,i=-1;++it?1:e===t?0:NaN}function S(e){return e.getValue()}var M=n(6),C=n(216),A=n(0);e.exports=o},function(e,t,n){function o(e,t){e.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes;n.sort(function(e,t){return e.getLayout().value-t.getLayout().value});var o=n[0].getLayout().value,a=n[n.length-1].getLayout().value;r.each(n,function(t){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value);t.setVisual("color",r);var l=t.getModel(),s=l.get("itemStyle.normal.color");null!=s&&t.setVisual("color",s)})})}var i=n(45),r=n(0);e.exports=o},function(e,t,n){var o=n(1),i=n(0);n(446),n(447);var r=n(46),a=n(127);n(69),o.registerVisual(i.curry(r,"scatter","circle",null)),o.registerLayout(i.curry(a,"scatter"))},function(e,t,n){var o=n(33),i=n(18),r=i.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return o(e.data,this,t)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}});e.exports=r},function(e,t,n){var o=n(1),i=n(64),r=n(407);o.extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new i,this._largeSymbolDraw=new r},render:function(e,t,n){var o=e.getData(),i=this._largeSymbolDraw,r=this._normalSymbolDraw,a=this.group,l=e.get("large")&&o.count()>e.get("largeThreshold")?i:r;this._symbolDraw=l,l.updateData(o),a.add(l.group),a.remove(l===i?r.group:i.group)},updateLayout:function(e){this._symbolDraw.updateLayout(e)},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t,!0)},dispose:function(){}})},function(e,t,n){var o=n(1),i=n(0);n(195),n(449),n(450);var r=n(451),a=n(452),l=n(89);o.registerLayout(r),o.registerVisual(a),o.registerProcessor(i.curry(l,"themeRiver"))},function(e,t,n){var o=n(25),i=n(18),r=n(13),a=n(0),l=n(8),s=l.encodeHTML,c=n(216),u=i.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(e){for(var t=e.length,n=c().key(function(e){return e[2]}).entries(e),o=a.map(n,function(e){return{name:e.key,dataList:e.values}}),i=o.length,r=-1,l=-1,s=0;sr&&(r=u,l=s)}for(var d=0;da&&(a=t),i.push(t)}for(var u=0;ua&&(a=f)}return l.y0=r,l.max=a,l}var a=n(0),l=n(3);e.exports=o},function(e,t,n){function o(e){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.getRawData(),o=e.get("color"),i=r();t.each(function(e){i.set(t.getRawIndex(e),e)}),n.each(function(r){var a=n.getName(r),l=o[(e.nameMap.get(a)-1)%o.length];n.setItemVisual(r,"color",l);var s=i.get(r);null!=s&&t.setItemVisual(s,"color",l)})})}var i=n(0),r=i.createHashMap;e.exports=o},function(e,t,n){var o=n(1),i=n(0);n(454),n(455),n(459);var r=n(46),a=n(456),l=n(457);o.registerVisual(i.curry(r,"tree","circle",null)),o.registerLayout(a),o.registerLayout(l)},function(e,t,n){var o=n(18),i=n(211),r=n(8),a=r.encodeHTML,l=o.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},n=e.leaves||{},o={};o.leaves=n;var r=i.createTree(t,this,o),a=0;r.eachNode("preorder",function(e){e.depth>a&&(a=e.depth)});var l=e.expandAndCollapse,s=l&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=s}),r.data},formatTooltip:function(e){for(var t=this.getData().tree,n=t.root.children[0],o=t.getNodeByDataIndex(e),i=o.getValue(),r=o.name;o&&o!==n;)r=o.parentNode.name+"."+r,o=o.parentNode;return a(r+(isNaN(i)||null==i?"":" : "+i))},defaultOption:{zlevel:0,z:2,left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",orient:"horizontal",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{normal:{color:"#ccc",width:1.5,curveness:.5}},itemStyle:{normal:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5}},label:{normal:{show:!0,color:"#555"}},leaves:{label:{normal:{show:!0}}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=l},function(e,t,n){function o(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==e.getItemVisual(t,"symbol")}function i(e,t,n){return n.itemModel=t,n.itemStyle=t.getModel("itemStyle.normal").getItemStyle(),n.hoverItemStyle=t.getModel("itemStyle.emphasis").getItemStyle(),n.lineStyle=t.getModel("lineStyle.normal").getLineStyle(),n.labelModel=t.getModel("label.normal"),n.hoverLabelModel=t.getModel("label.emphasis"),!1===e.isExpand&&0!==e.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function r(e,t,n,o,r,a){var d=!n,f=e.tree.getNodeByDataIndex(t),p=f.getModel(),a=i(f,p,a),h=e.tree.root,g=f.parentNode===h?f:f.parentNode||f,m=e.getItemGraphicEl(g.dataIndex),v=g.getLayout(),b=m?{x:m.position[0],y:m.position[1],rawX:m.__radialOldRawX,rawY:m.__radialOldRawY}:v,x=f.getLayout();d?(n=new u(e,t,a),n.attr("position",[b.x,b.y])):n.updateData(e,t,a),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=x.rawX,n.__radialRawY=x.rawY,o.add(n),e.setItemGraphicEl(t,n),c.updateProps(n,{position:[x.x,x.y]},r);var y=n.getSymbolPath();if("radial"===a.layout){var _,w,k=h.children[0],S=k.getLayout(),M=k.children.length;if(x.x===S.x&&!0===f.isExpand){var C={};C.x=(k.children[0].getLayout().x+k.children[M-1].getLayout().x)/2,C.y=(k.children[0].getLayout().y+k.children[M-1].getLayout().y)/2,_=Math.atan2(C.y-S.y,C.x-S.x),_<0&&(_=2*Math.PI+_),(w=C.xS.x)||(_-=Math.PI);var A=w?"left":"right";y.setStyle({textPosition:A,textRotation:-_,textOrigin:"center",verticalAlign:"middle"})}if(f.parentNode&&f.parentNode!==h){var T=n.__edge;T||(T=n.__edge=new c.BezierCurve({shape:l(a,b,b),style:s.defaults({opacity:0},a.lineStyle)})),c.updateProps(T,{shape:l(a,v,x),style:{opacity:1}},r),o.add(T)}}function a(e,t,n,o,r,a){for(var s,u=e.tree.getNodeByDataIndex(t),d=e.tree.root,f=u.getModel(),a=i(u,f,a),p=u.parentNode===d?u:u.parentNode||u;null==(s=p.getLayout());)p=p.parentNode===d?p:p.parentNode||p;c.updateProps(n,{position:[s.x+1,s.y+1]},r,function(){o.remove(n),e.setItemGraphicEl(t,null)}),n.fadeOut(null,{keepLabel:!0});var h=n.__edge;h&&c.updateProps(h,{shape:l(a,s,s),style:{opacity:0}},r,function(){o.remove(h)})}function l(e,t,n){var o,i,r,a,l=e.orient;if("radial"===e.layout){var s=t.rawX,c=t.rawY,u=n.rawX,d=n.rawY,p=f(s,c),h=f(s,c+(d-c)*e.curvature),g=f(u,d+(c-d)*e.curvature),m=f(u,d);return{x1:p.x,y1:p.y,x2:m.x,y2:m.y,cpx1:h.x,cpy1:h.y,cpx2:g.x,cpy2:g.y}}var s=t.x,c=t.y,u=n.x,d=n.y;return"horizontal"===l&&(o=s+(u-s)*e.curvature,i=c,r=u+(s-u)*e.curvature,a=d),"vertical"===l&&(o=s,i=c+(d-c)*e.curvature,r=u,a=d+(c-d)*e.curvature),{x1:s,y1:c,x2:u,y2:d,cpx1:o,cpy1:i,cpx2:r,cpy2:a}}var s=n(0),c=n(2),u=n(82),d=n(176),f=d.radialCoordinate,p=n(1),h=p.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new c.Group,this.group.add(this._mainGroup)},render:function(e,t,n,i){var l=e.getData(),s=e.layoutInfo,c=this._mainGroup,u=e.get("layout");"radial"===u?c.attr("position",[s.x+s.width/2,s.y+s.height/2]):c.attr("position",[s.x,s.y]);var d=this._data,f={expandAndCollapse:e.get("expandAndCollapse"),layout:u,orient:e.get("orient"),curvature:e.get("lineStyle.normal.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};l.diff(d).add(function(t){o(l,t)&&r(l,t,null,c,e,f)}).update(function(t,n){var i=d.getItemGraphicEl(n);if(!o(l,t))return void(i&&a(l,t,i,c,e,f));r(l,t,i,c,e,f)}).remove(function(t){var n=d.getItemGraphicEl(t);a(l,t,n,c,e,f)}).execute(),!0===f.expandAndCollapse&&l.eachItemGraphicEl(function(t,o){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:o})})}),this._data=l},dispose:function(){},remove:function(){this._mainGroup.removeAll(),this._data=null}});e.exports=h},function(e,t,n){function o(e,t){e.eachSeriesByType("tree",function(e){i(e,t)})}var i=n(175);e.exports=o},function(e,t,n){function o(e,t){e.eachSeriesByType("tree",function(e){i(e,t)})}var i=n(175);e.exports=o},function(e,t){function n(e,t,n){for(var o,i=[e],r=[];o=i.pop();)if(r.push(o),o.isExpand){var a=o.children;if(a.length)for(var l=0;l=0;r--)o.push(i[r])}}t.eachAfter=n,t.eachBefore=o},function(e,t,n){n(1).registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var n=e.dataIndex,o=t.getData().tree,i=o.getNodeByDataIndex(n);i.isExpand=!i.isExpand})})},function(e,t,n){var o=n(1);n(462),n(463),n(464);var i=n(466),r=n(465);o.registerVisual(i),o.registerLayout(r)},function(e,t,n){function o(e){this.group=new a.Group,e.add(this.group)}function i(e,t,n,o,i,r){var a=[[i?e:e-d,t],[e+n,t],[e+n,t+o],[i?e:e-d,t+o]];return!r&&a.splice(2,0,[e+n+d,t+o/2]),!i&&a.push([e,t+o/2]),a}function r(e,t,n){e.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&u(n,t)}}var a=n(2),l=n(6),s=n(0),c=n(65),u=c.wrapTreePathInfo,d=5;o.prototype={constructor:o,render:function(e,t,n,o){var i=e.getModel("breadcrumb"),r=this.group;if(r.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle.normal"),s=a.getModel("textStyle"),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,s),this._renderContent(e,c,a,s,o),l.positionElement(r,c.pos,c.box)}},_prepare:function(e,t,n){for(var o=e;o;o=o.parentNode){var i=o.getModel().get("name"),r=n.getTextRect(i),a=Math.max(r.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:o,text:i,width:a})}},_renderContent:function(e,t,n,o,c){for(var u=0,d=t.emptyItemWidth,f=e.get("breadcrumb.height"),p=l.getAvailableSize(t.pos,t.box),h=t.totalWidth,g=t.renderList,m=g.length-1;m>=0;m--){var v=g[m],b=v.node,x=v.width,y=v.text;h>p.width&&(h-=x-d,x=d,y=null);var _=new a.Polygon({shape:{points:i(u,0,x,f,m===g.length-1,0===m)},style:s.defaults(n.getItemStyle(),{lineJoin:"bevel",text:y,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:s.curry(c,b)});this.group.add(_),r(_,e,b),u+=x+8}},remove:function(){this.group.removeAll()}};var f=o;e.exports=f},function(e,t,n){function o(e){var t=0;r.each(e.children,function(e){o(e);var n=e.value;r.isArray(n)&&(n=n[0]),t+=n});var n=e.value;r.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),r.isArray(e.value)?e.value[0]=n:e.value=n}function i(e,t){var n=t.get("color");if(n){e=e||[];var o;return r.each(e,function(e){var t=new s(e),n=t.get("color");(t.get("itemStyle.normal.color")||n&&"none"!==n)&&(o=!0)}),o||((e[0]||(e[0]={})).color=n.slice()),e}}var r=n(0),a=n(18),l=n(211),s=n(12),c=n(8),u=c.encodeHTML,d=c.addCommas,f=n(65),p=f.wrapTreePathInfo,h=a.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0}},upperLabel:{normal:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},emphasis:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var n={name:e.name,children:e.data};o(n);var r=e.levels||[];r=e.levels=i(r,t);var a={};return a.levels=r,l.createTree(n,this,a).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),o=d(r.isArray(n)?n[0]:n),i=t.getName(e);return u(i+": "+o)},getDataParams:function(e){var t=a.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=p(n,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},r.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=r.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});e.exports=h},function(e,t,n){function o(){return{nodeGroup:[],background:[],content:[]}}function i(e,t,n,o,i,a,c,u,d,f){function p(e,t){L?!e.invisible&&a.push(e):(t(),e.__tmWillVisible||(e.invisible=!1))}function h(t,n,o,i,r,a){var u=c.getModel(),d=l.retrieve(e.getFormattedLabel(c.dataIndex,"normal",null,null,a?"upperLabel":"label"),u.get("name"));if(!a&&y.isLeafRoot){var f=e.get("drillDownIcon",!0);d=f?f+" "+d:d}var p=u.getModel(a?k:_),h=u.getModel(a?S:w),g=p.getShallow("show");s.setLabelStyle(t,n,p,h,{defaultText:g?d:null,autoColor:o,isRectText:!0}),a&&(t.textRect=l.clone(a)),t.truncate=g&&p.get("ellipsis")?{outerWidth:i,outerHeight:r,minChar:2}:null}function g(e,o,a,l){var s=null!=D&&n[e][D],c=i[e];return s?(n[e][D]=null,m(c,s,e)):L||(s=new o({z:r(a,l)}),s.__tmDepth=a,s.__tmStorageName=e,v(c,s,e)),t[e][P]=s}function m(e,t,n){(e[P]={}).old="nodeGroup"===n?t.position.slice():l.extend({},t.shape)}function v(e,t,n){var r=e[P]={},a=c.parentNode;if(a&&(!o||"drillDown"===o.direction)){var l=0,s=0,u=i.background[a.getRawIndex()];!o&&u&&u.old&&(l=u.old.width,s=u.old.height),r.old="nodeGroup"===n?[0,s]:{x:l,y:s,width:0,height:0}}r.fadein="nodeGroup"!==n}if(c){var y=c.getLayout();if(y&&y.isInView){var M=y.width,I=y.height,O=y.borderWidth,L=y.invisible,P=c.getRawIndex(),D=u&&u.getRawIndex(),z=c.viewChildren,R=y.upperHeight,N=z&&z.length,B=c.getModel("itemStyle.normal"),F=c.getModel("itemStyle.emphasis"),V=g("nodeGroup",b);if(V){if(d.add(V),V.attr("position",[y.x||0,y.y||0]),V.__tmNodeWidth=M,V.__tmNodeHeight=I,y.isAboveViewRoot)return V;var j=g("background",x,f,C);if(j&&function(t,n,o){n.dataIndex=c.dataIndex,n.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:M,height:I});var i=c.getVisual("borderColor",!0),r=F.get("borderColor");p(n,function(){var e=E(B);e.fill=i;var t=T(F);if(t.fill=r,o){var a=M-2*O;h(e,t,i,a,R,{x:O,y:0,width:a,height:R})}else e.text=t.text=null;n.setStyle(e),s.setHoverStyle(n,t)}),t.add(n)}(V,j,N&&y.upperHeight),!N){var $=g("content",x,f,A);$&&function(t,n){n.dataIndex=c.dataIndex,n.seriesIndex=e.seriesIndex;var o=Math.max(M-2*O,0),i=Math.max(I-2*O,0);n.culling=!0,n.setShape({x:O,y:O,width:o,height:i});var r=c.getVisual("color",!0);p(n,function(){var e=E(B);e.fill=r;var t=T(F);h(e,t,r,o,i),n.setStyle(e),s.setHoverStyle(n,t)}),t.add(n)}(V,$)}return V}}}}function r(e,t){var n=e*M+t;return(n-1)/n}var a=n(1),l=n(0),s=n(2),c=n(54),u=n(65),d=n(461),f=n(86),p=n(10),h=n(24),g=n(604),m=n(56),v=l.bind,b=s.Group,x=s.Rect,y=l.each,_=["label","normal"],w=["label","emphasis"],k=["upperLabel","normal"],S=["upperLabel","emphasis"],M=10,C=1,A=2,T=m([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),E=function(e){var t=T(e);return t.stroke=t.fill=t.lineWidth=null,t},I=a.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=o(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,n,o){var i=t.findComponents({mainType:"series",subType:"treemap",query:o});if(!(l.indexOf(i,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var r=u.retrieveTargetInfo(o,e),a=o&&o.type,s=e.layoutInfo,c=!this._oldTree,d=this._storage,f="treemapRootToNode"===a&&r&&d?{rootNodeGroup:d.nodeGroup[r.node.getRawIndex()],direction:o.direction}:null,p=this._giveContainerGroup(s),h=this._doRender(p,e,f);c||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?h.renderFinally():this._doAnimation(p,h,e,f),this._resetController(n),this._renderBreadcrumb(e,n,r)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new b,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,n){function r(e,t,n,o,i){function a(e){return e.getId()}function s(a,l){var s=null!=a?e[a]:null,c=null!=l?t[l]:null,u=g(s,c,n,i);u&&r(s&&s.viewChildren||[],c&&c.viewChildren||[],u,o,i+1)}o?(t=e,y(e,function(e,t){!e.isRemoved()&&s(t,t)})):new c(t,e,a,a).add(s).update(s).remove(l.curry(s,null)).execute()}function a(){y(m,function(e){y(e,function(e){e.parent&&e.parent.remove(e)})}),y(h,function(e){e.invisible=!0,e.dirty()})}var s=t.getData().tree,u=this._oldTree,d=o(),f=o(),p=this._storage,h=[],g=l.curry(i,t,f,p,n,d,h);r(s.root?[s.root]:[],u&&u.root?[u.root]:[],e,s===u||!u,0);var m=function(e){var t=o();return e&&y(e,function(e,n){var o=t[n];y(e,function(e){e&&(o.push(e),e.__tmWillDelete=1)})}),t}(p);return this._oldTree=s,this._storage=f,{lastsForAnimation:d,willDeleteEls:m,renderFinally:a}},_doAnimation:function(e,t,n,o){if(n.get("animation")){var i=n.get("animationDurationUpdate"),r=n.get("animationEasing"),a=g.createWrap();y(t.willDeleteEls,function(e,t){y(e,function(e,n){if(!e.invisible){var l,s=e.parent;if(o&&"drillDown"===o.direction)l=s===o.rootNodeGroup?{shape:{x:0,y:0,width:s.__tmNodeWidth,height:s.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,u=0;s.__tmWillDelete||(c=s.__tmNodeWidth/2,u=s.__tmNodeHeight/2),l="nodeGroup"===t?{position:[c,u],style:{opacity:0}}:{shape:{x:c,y:u,width:0,height:0},style:{opacity:0}}}l&&a.add(e,l,i,r)}})}),y(this._storage,function(e,n){y(e,function(e,o){var s=t.lastsForAnimation[n][o],c={};s&&("nodeGroup"===n?s.old&&(c.position=e.position.slice(),e.attr("position",s.old)):(s.old&&(c.shape=l.extend({},e.shape),e.setShape(s.old)),s.fadein?(e.setStyle("opacity",0),c.style={opacity:1}):1!==e.style.opacity&&(c.style={opacity:1})),a.add(e,c,i,r))})},this),this._state="animating",a.done(v(function(){this._state="ready",t.renderFinally()},this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new f(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",v(this._onPan,this)),t.on("zoom",v(this._onZoom,this)));var n=new p(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,o){return n.contain(t,o)})},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e,t){if("animating"!==this._state&&(Math.abs(e)>3||Math.abs(t)>3)){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x+e,y:o.y+t,width:o.width,height:o.height}})}},_onZoom:function(e,t,n){if("animating"!==this._state){var o=this.seriesModel.getData().tree.root;if(!o)return;var i=o.getLayout();if(!i)return;var r=new p(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var l=h.create();h.translate(l,l,[-t,-n]),h.scale(l,l,[e,e]),h.translate(l,l,[t,n]),r.applyTransform(l),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(e){e.on("click",function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var n=this.findTarget(e.offsetX,e.offsetY);if(n){var o=n.node;if(o.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===t)this._zoomToNode(n);else if("link"===t){var i=o.hostTree.data.getItemModel(o.dataIndex),r=i.get("link",!0),a=i.get("target",!0)||"blank";r&&window.open(r,a)}}}}},this)},_renderBreadcrumb:function(e,t,n){function o(t){"animating"!==this._state&&(u.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new d(this.group))).render(e,t,n.node,v(o,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=o(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(o){var i=this._storage.background[o.getRawIndex()];if(i){var r=i.transformCoordToLocal(e,t),a=i.shape;if(!(a.x<=r[0]&&r[0]<=a.x+a.width&&a.y<=r[1]&&r[1]<=a.y+a.height))return!1;n={node:o,offsetX:r[0],offsetY:r[1]}}},this),n}});e.exports=I},function(e,t,n){for(var o=n(1),i=n(65),r=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],l=0;l=0;s--){var c=i["asc"===o?a-s-1:s].getValue();c/n*ta[1]&&(a[1]=t)})}else a=[NaN,NaN];return{sum:o,dataExtent:a}}function c(e,t,n){for(var o,i=0,r=1/0,a=0,l=e.length;ai&&(i=o));var s=e.area*e.area,c=t*t*n;return s?w(c*i/s,s/(c*r)):1/0}function u(e,t,n,o,i){var r=t===n.width?0:1,a=1-r,l=["x","y"],s=["width","height"],c=n[l[r]],u=t?e.area/t:0;(i||u>n[s[a]])&&(u=n[s[a]]);for(var d=0,f=e.length;dx&&(c=x),r=l}c=s.length||e===s[e.depth])&&i(e,d(f,x,e,t,k,u),n,o,s,u)})}else g=a(x),e.setVisual("color",g)}}function r(e,t,n,o){var i=h.extend({},t);return h.each(["color","colorAlpha","colorSaturation"],function(r){var a=e.get(r,!0);null==a&&n&&(a=n[r]),null==a&&(a=t[r]),null==a&&(a=o.get(r)),null!=a&&(i[r]=a)}),i}function a(e){var t=s(e,"color");if(t){var n=s(e,"colorAlpha"),o=s(e,"colorSaturation");return o&&(t=p.modifyHSL(t,null,null,o)),n&&(t=p.modifyAlpha(t,n)),t}}function l(e,t){return null!=t?p.modifyHSL(t,null,null,e):null}function s(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function c(e,t,n,o,i,r){if(r&&r.length){var a=u(t,"color")||null!=i.color&&"none"!==i.color&&(u(t,"colorAlpha")||u(t,"colorSaturation"));if(a){var l=t.get("visualMin"),s=t.get("visualMax"),c=n.dataExtent.slice();null!=l&&lc[1]&&(c[1]=s);var d=t.get("colorMappingBy"),p={type:a.name,dataExtent:c,visual:a.range};"color"!==p.type||"index"!==d&&"id"!==d?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var h=new f(p);return h.__drColorMappingBy=d,h}}}function u(e,t){var n=e.get(t);return g(n)&&n.length?{name:t,range:n}:null}function d(e,t,n,o,i,r){var a=h.extend({},t);if(i){var l=i.type,s="color"===l&&i.__drColorMappingBy,c="index"===s?o:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[l]=i.mapValueToVisual(c)}return a}var f=n(45),p=n(31),h=n(0),g=h.isArray,m="itemStyle.normal";e.exports=o},function(e,t,n){n(125),n(469)},function(e,t,n){n(207),n(470)},function(e,t,n){function o(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var o=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:o[0],y1:o[1],x2:i[0],y2:i[1]}}function i(e){return e.getRadiusAxis().inverse?0:1}var r=n(0),a=n(2),l=n(12),s=n(43),c=["axisLine","axisLabel","axisTick","splitLine","splitArea"],u=s.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,o=n.polar,i=o.getRadiusAxis().getExtent(),a=n.getTicksCoords();"category"!==n.type&&a.pop(),r.each(c,function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,o,a,i)},this)}},_axisLine:function(e,t,n,o){var r=e.getModel("axisLine.lineStyle"),l=new a.Circle({shape:{cx:t.cx,cy:t.cy,r:o[i(t)]},style:r.getLineStyle(),z2:1,silent:!0});l.style.fill=null,this.group.add(l)},_axisTick:function(e,t,n,l){var s=e.getModel("axisTick"),c=(s.get("inside")?-1:1)*s.get("length"),u=l[i(t)],d=r.map(n,function(e){return new a.Line({shape:o(t,[u,u+c],e)})});this.group.add(a.mergePath(d,{style:r.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_axisLabel:function(e,t,n,o){for(var r=e.axis,s=e.get("data"),c=e.getModel("axisLabel"),u=e.getFormattedLabels(),d=c.get("margin"),f=r.getLabelsCoords(),p=0;pm?"left":"right",x=Math.abs(g[1]-v)/h<.3?"middle":g[1]>v?"top":"bottom";s&&s[p]&&s[p].textStyle&&(c=new l(s[p].textStyle,c,c.ecModel));var y=new a.Text({silent:!0});this.group.add(y),a.setTextStyle(y.style,c,{x:g[0],y:g[1],textFill:c.getTextColor()||e.get("axisLine.lineStyle.color"),text:u[p],textAlign:b,textVerticalAlign:x})}},_splitLine:function(e,t,n,i){var l=e.getModel("splitLine"),s=l.getModel("lineStyle"),c=s.get("color"),u=0;c=c instanceof Array?c:[c];for(var d=[],f=0;f=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(e,t){i.unregister(t.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(e,t){i.unregister("axisPointer",t),r.superApply(this._model,"dispose",arguments)}}),a=r;e.exports=a},function(e,t,n){function o(e,t,n,o,i){var r=t.axis,l=r.dataToCoord(e),u=o.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var d,f,p,h=o.getRadiusAxis().getExtent();if("radius"===r.dim){var g=s.create();s.rotate(g,g,u),s.translate(g,g,[o.cx,o.cy]),d=a.applyTransform([l,-i],g);var m=t.getModel("axisLabel").get("rotate")||0,v=c.innerTextLayout(u,m*Math.PI/180,-1);f=v.textAlign,p=v.textVerticalAlign}else{var b=h[1];d=o.coordToPoint([b+i,l]);var x=o.cx,y=o.cy;f=Math.abs(d[0]-x)/b<.3?"center":d[0]>x?"left":"right",p=Math.abs(d[1]-y)/b<.3?"middle":d[1]>y?"top":"bottom"}return{position:d,align:f,verticalAlign:p}}var i=n(8),r=n(116),a=n(2),l=n(85),s=n(24),c=n(42),u=n(43),d=r.extend({makeElOption:function(e,t,n,r,a){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var c,u=s.polar,d=u.getOtherAxis(s),p=d.getExtent();c=s["dataTo"+i.capitalFirst(s.dim)](t);var h=r.get("type");if(h&&"none"!==h){var g=l.buildElStyle(r),m=f[h](s,u,c,p,g);m.style=g,e.graphicKey=m.type,e.pointer=m}var v=r.get("label.margin"),b=o(t,n,r,u,v);l.buildLabelElOption(e,n,r,a,b)}}),f={line:function(e,t,n,o,i){return"angle"===e.dim?{type:"Line",shape:l.makeLineShape(t.coordToPoint([o[0],n]),t.coordToPoint([o[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,o,i){var r=e.getBandWidth(),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:l.makeSectorShape(t.cx,t.cy,o[0],o[1],(-n-r/2)*a,(r/2-n)*a)}:{type:"Sector",shape:l.makeSectorShape(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",d);var p=d;e.exports=p},function(e,t,n){function o(e){return e.isHorizontal()?0:1}function i(e,t){var n=e.getRect();return[n[u[t]],n[u[t]]+n[d[t]]]}var r=n(2),a=n(116),l=n(85),s=n(178),c=n(43),u=["x","y"],d=["width","height"],f=a.extend({makeElOption:function(e,t,n,r,a){var c=n.axis,u=c.coordinateSystem,d=i(u,1-o(c)),f=u.dataToPoint(t)[0],h=r.get("type");if(h&&"none"!==h){var g=l.buildElStyle(r),m=p[h](c,f,d,g);m.style=g,e.graphicKey=m.type,e.pointer=m}var v=s.layout(n);l.buildCartesianSingleLabelElOption(t,e,v,n,r,a)},getHandleTransform:function(e,t,n){var o=s.layout(t,{labelInside:!1});return o.labelMargin=n.get("handle.margin"),{position:l.getTransformedPosition(t.axis,e,o),rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,r){var a=n.axis,l=a.coordinateSystem,s=o(a),c=i(l,s),u=e.position;u[s]+=t[s],u[s]=Math.min(c[1],u[s]),u[s]=Math.max(c[0],u[s]);var d=i(l,1-s),f=(d[1]+d[0])/2,p=[f,f];return p[s]=u[s],{position:u,rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),p={line:function(e,t,n,i){var a=l.makeLineShape([t,n[0]],[t,n[1]],o(e));return r.subPixelOptimizeLine({shape:a,style:i}),{type:"Line",shape:a}},shadow:function(e,t,n,i){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:l.makeRectShape([t-r/2,n[0]],[r,a],o(e))}}};c.registerAxisPointerClass("SingleAxisPointer",f);var h=f;e.exports=h},function(e,t,n){function o(e,t,n){var o=e.currTrigger,r=[e.x,e.y],g=e,m=e.dispatchAction||h.bind(n.dispatchAction,n),y=t.getComponent("axisPointer").coordSysAxesInfo;if(y){p(r)&&(r=v({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},t).point);var _=p(r),w=g.axesInfo,k=y.axesInfo,S="leave"===o||p(r),M={},C={},A={list:[],map:{}},T={showPointer:x(a,C),showTooltip:x(l,A)};b(y.coordSysMap,function(e,t){var n=_||e.containPoint(r);b(y.coordSysAxesInfo[t],function(e,t){var o=e.axis,a=d(w,e);if(!S&&n&&(!w||a)){var l=a&&a.value;null!=l||_||(l=o.pointToData(r)),null!=l&&i(e,l,T,!1,M)}})});var E={};return b(k,function(e,t){var n=e.linkGroup;n&&!C[t]&&b(n.axesInfo,function(t,o){var i=C[o];if(t!==e&&i){var r=i.value;n.mapper&&(r=e.axis.scale.parse(n.mapper(r,f(t),f(e)))),E[e.key]=r}})}),b(E,function(e,t){i(k[t],e,T,!0,M)}),s(C,k,M),c(A,r,e,m),u(k,m,n),M}}function i(e,t,n,o,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries)return void n.showPointer(e,t);var l=r(t,e),s=l.payloadBatch,c=l.snapToValue;s[0]&&null==i.seriesIndex&&h.extend(i,s[0]),!o&&e.snap&&a.containData(c)&&null!=c&&(t=c),n.showPointer(e,t,s,i),n.showTooltip(e,l,c)}}function r(e,t){var n=t.axis,o=n.dim,i=e,r=[],a=Number.MAX_VALUE,l=-1;return b(t.seriesModels,function(t,s){var c,u,d=t.coordDimToDataDim(o);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(d,e,n);u=f.dataIndices,c=f.nestestValue}else{if(u=t.getData().indicesOfNearest(d[0],e,!1,"category"===n.type?.5:null),!u.length)return;c=t.getData().get(d[0],u[0])}if(null!=c&&isFinite(c)){var p=e-c,h=Math.abs(p);h<=a&&((h=0&&l<0)&&(a=h,l=p,i=c,r.length=0),b(u,function(e){r.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:r,snapToValue:i}}function a(e,t,n,o){e[t.key]={value:n,payloadBatch:o}}function l(e,t,n,o){var i=n.payloadBatch,r=t.axis,a=r.model,l=t.axisPointerModel;if(t.triggerTooltip&&i.length){var s=t.coordSys.model,c=m.makeKey(s),u=e.map[c];u||(u=e.map[c]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:o,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:i.slice()})}}function s(e,t,n){var o=n.axesInfo=[];b(t,function(t,n){var i=t.axisPointerModel.option,r=e[n];r?(!t.useHandle&&(i.status="show"),i.value=r.value,i.seriesDataIndices=(r.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&o.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function c(e,t,n,o){if(p(t)||!e.list.length)return void o({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function u(e,t,n){var o=n.getZr(),i=y(o).axisPointerLastHighlights||{},r=y(o).axisPointerLastHighlights={};b(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&b(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;r[t]=e})});var a=[],l=[];h.each(i,function(e,t){!r[t]&&l.push(e)}),h.each(r,function(e,t){!i[t]&&a.push(e)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:a})}function d(e,t){for(var n=0;n<(e||[]).length;n++){var o=e[n];if(t.axis.dim===o.axisDim&&t.axis.model.componentIndex===o.axisIndex)return o}}function f(e){var t=e.axis.model,n={},o=n.axisDim=e.axis.dim;return n.axisIndex=n[o+"AxisIndex"]=t.componentIndex,n.axisName=n[o+"AxisName"]=t.name,n.axisId=n[o+"AxisId"]=t.id,n}function p(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}var h=n(0),g=n(5),m=n(84),v=n(180),b=h.each,x=h.curry,y=g.makeGetter();e.exports=o},function(e,t,n){var o=n(1),i=n(484);n(486),n(481),n(482),n(483),n(536),o.registerPreprocessor(i)},function(e,t,n){function o(e,t){return a.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new s(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var i=n(4),r=(i.__DEV__,n(1)),a=n(0),l=n(92),s=n(12),c=["#ddd"],u=r.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var n=this.option;!t&&l.replaceVisualOption(n,e,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{},n.outOfBrush=n.outOfBrush||{color:c}},setAreas:function(e){e&&(this.areas=a.map(e,function(e){return o(this.option,e)},this))},setBrushOption:function(e){this.brushOption=o(this.option,e),this.brushType=this.brushOption.brushType}}),d=u;e.exports=d},function(e,t,n){function o(e,t,n,o){(!o||o.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}var i=n(1),r=n(0),a=n(118),l=i.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new a(t.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,o.apply(this,arguments)},updateView:o,updateLayout:o,updateVisual:o,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:r.clone(e),$from:n})}});e.exports=l},function(e,t,n){var o=n(1);o.registerAction({type:"brush",event:"brush",update:"updateView"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),o.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){})},function(e,t,n){function o(e,t){var n=e&&e.brush;if(r.isArray(n)||(n=n?[n]:[]),n.length){var o=[];r.each(n,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(o=o.concat(t))});var l=e&&e.toolbox;r.isArray(l)&&(l=l[0]),l||(l={feature:{}},e.toolbox=[l]);var s=l.feature||(l.feature={}),c=s.brush||(s.brush={}),u=c.type||(c.type=[]);u.push.apply(u,o),i(u),t&&!u.length&&u.push.apply(u,a)}}function i(e){var t={};r.each(e,function(e){t[e]=1}),e.length=0,r.each(t,function(t,n){e.push(n)})}var r=n(0),a=["rect","polygon","keep","clear"];e.exports=o},function(e,t,n){function o(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,o){if(t){var r=o.range;return i(t[e],r)}},rect:function(o,r,a){if(o){var l=a.range,s=[o[t[e]],o[t[e]]+o[n[e]]];return s[1]1)return!1;var f=s(n-e,i-e,o-t,r-t)/u;return!(f<0||f>1)}function l(e){return e<=1e-6&&e>=-1e-6}function s(e,t,n,o){return e*o-t*n}var c=n(238),u=n(10),d={lineX:o(0),lineY:o(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&c.contain(n.range,e[0],e[1])},rect:function(e,t,n){var o=n.range;if(!e||o.length<=1)return!1;var i=e.x,a=e.y,l=e.width,s=e.height,d=o[0];return!!(c.contain(o,i,a)||c.contain(o,i+l,a)||c.contain(o,i,a+s)||c.contain(o,i+l,a+s)||u.create(e).contain(d[0],d[1])||r(i,a,i+l,a,o)||r(i,a,i,a+s,o)||r(i+l,a,i+l,a+s,o)||r(i,a+s,i+l,a+s,o))||void 0}}},f=d;e.exports=f},function(e,t,n){function o(e,t,n,o,r){if(r){var a=e.getZr();a[x]||(a[b]||(a[b]=i),g.createOrUpdate(a,b,n,t)(e,o))}}function i(e,t){if(!e.isDisposed()){var n=e.getZr();n[x]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[x]=!1}}function r(e,t,n,o){for(var i=0,r=t.length;it[0][1]&&(t[0][1]=r[0]),r[1]t[1][1]&&(t[1][1]=r[1])}return t&&c(t)}}},function(e,t,n){n(552),n(553),n(488)},function(e,t,n){var o=n(1),i=n(0),r=n(2),a=n(8),l=n(3),s={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},u=o.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,n){var o=this.group;o.removeAll();var i=e.coordinateSystem,r=i.getRangeInfo(),a=i.getOrient();this._renderDayRect(e,r,o),this._renderLines(e,r,a,o),this._renderYearText(e,r,a,o),this._renderMonthText(e,a,o),this._renderWeekText(e,r,a,o)},_renderDayRect:function(e,t,n){for(var o=e.coordinateSystem,i=e.getModel("itemStyle.normal").getItemStyle(),a=o.getCellWidth(),l=o.getCellHeight(),s=t.start.time;s<=t.end.time;s=o.getNextNDay(s,1).time){var c=o.dataToRect([s],!1).tl,u=new r.Rect({shape:{x:c[0],y:c[1],width:a,height:l},cursor:"default",style:i});n.add(u)}},_renderLines:function(e,t,n,o){function i(t){r._firstDayOfMonth.push(a.getDateInfo(t)),r._firstDayPoints.push(a.dataToRect([t],!1).tl);var i=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(i[0]),r._blpoints.push(i[i.length-1]),s&&r._drawSplitline(i,l,o)}var r=this,a=e.coordinateSystem,l=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,d=0;u.time<=t.end.time;d++){i(u.formatedDate),0===d&&(u=a.getDateInfo(t.start.y+"-"+t.start.m));var f=u.date;f.setMonth(f.getMonth()+1),u=a.getDateInfo(f)}i(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,c,n),l,o),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,c,n),l,o)},_getEdgesPoints:function(e,t,n){var o=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return o[0][i]=o[0][i]-t/2,o[1][i]=o[1][i]+t/2,o},_drawSplitline:function(e,t,n){var o=new r.Polyline({z2:20,shape:{points:e},style:t});n.add(o)},_getLinePointsOfOneWeek:function(e,t,n){var o=e.coordinateSystem;t=o.getDateInfo(t);for(var i=[],r=0;r<7;r++){var a=o.getNextNDay(t.time,r),l=o.dataToRect([a.time],!1);i[2*a.day]=l.tl,i[2*a.day+1]=l["horizontal"===n?"bl":"tr"]}return i},_formatterLabel:function(e,t){return"string"==typeof e&&e?a.formatTplSimple(e,t):"function"==typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,n,o,i){t=t.slice();var r=["center","bottom"];"bottom"===o?(t[1]+=i,r=["center","top"]):"left"===o?t[0]-=i:"right"===o?(t[0]+=i,r=["center","top"]):t[1]-=i;var a=0;return"left"!==o&&"right"!==o||(a=Math.PI/2),{rotation:a,position:t,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(e,t,n,o){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),l=i.get("position");l||(l="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,d="horizontal"===n?0:1,f={top:[c,s[d][1]],bottom:[c,s[1-d][1]],left:[s[1-d][0],u],right:[s[d][0],u]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var h=i.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:p},m=this._formatterLabel(h,g),v=new r.Text({z2:30});r.setTextStyle(v.style,i,{text:m}),v.attr(this._yearTextPositionControl(v,f[l],n,l,a)),o.add(v)}},_monthTextPositionControl:function(e,t,n,o,i){var r="left",a="top",l=e[0],s=e[1];return"horizontal"===n?(s+=i,t&&(r="center"),"start"===o&&(a="bottom")):(l+=i,t&&(a="middle"),"start"===o&&(r="right")),{x:l,y:s,textAlign:r,textVerticalAlign:a}},_renderMonthText:function(e,t,n){var o=e.getModel("monthLabel");if(o.get("show")){var a=o.get("nameMap"),l=o.get("margin"),c=o.get("position"),u=o.get("align"),d=[this._tlpoints,this._blpoints];i.isString(a)&&(a=s[a.toUpperCase()]||[]);var f="start"===c?0:1,p="horizontal"===t?0:1;l="start"===c?-l:l;for(var h="center"===u,g=0;go[1]&&(o[1]=t[1])})}),o[1]0?0:NaN);var a=n.getMax(!0);return null!=a&&"dataMax"!==a&&"function"!=typeof a?t[1]=a:i&&(t[1]=r>0?r-1:NaN),n.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function r(e,t){var n=e.getAxisModel(),o=e._percentWindow,i=e._valueWindow;if(o){var r=s.getPixelPrecision(i,[0,500]);r=Math.min(r,20);var a=t||0===o[0]&&100===o[1];n.setRange(a?null:+i[0].toFixed(r),a?null:+i[1].toFixed(r))}}function a(e){var t=e._minMaxSpan={},n=e._dataZoomModel;u(["min","max"],function(o){t[o+"Span"]=n.get(o+"Span");var i=n.get(o+"ValueSpan");if(null!=i&&(t[o+"ValueSpan"]=i,null!=(i=e.getAxisModel().axis.scale.parse(i)))){var r=e._dataExtent;t[o+"Span"]=s.linearMap(r[0]+i,r,[0,100],!0)}})}var l=n(0),s=n(3),c=n(117),u=l.each,d=s.asc,f=function(e,t,n,o){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=o,this._dataZoomModel=n};f.prototype={constructor:f,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries(function(n){if(c.isCoordSupported(n.get("coordinateSystem"))){var o=this._dimName,i=t.queryComponents({mainType:o+"Axis",index:n.get(o+"AxisIndex"),id:n.get(o+"AxisId")})[0];this._axisIndex===(i&&i.componentIndex)&&e.push(n)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,n=this._dimName,o=this.ecModel,i=this.getAxisModel();"x"===n||"y"===n?(t="gridIndex",e="x"===n?"y":"x"):(t="polarIndex",e="angle"===n?"radius":"angle");var r;return o.eachComponent(e+"Axis",function(e){(e.get(t)||0)===(i.get(t)||0)&&(r=e)}),r},getMinMaxSpan:function(){return l.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t=this._dataExtent,n=this.getAxisModel(),o=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),r=[0,100],a=[e.start,e.end],l=[];return u(["startValue","endValue"],function(t){l.push(null!=e[t]?o.parse(e[t]):null)}),u([0,1],function(e){var n=l[e],c=a[e];"percent"===i[e]?(null==c&&(c=r[e]),n=o.parse(s.linearMap(c,r,t,!0))):c=s.linearMap(n,t,r,!0),l[e]=n,a[e]=c}),{valueWindow:d(l),percentWindow:d(a)}},reset:function(e){if(e===this._dataZoomModel){this._dataExtent=o(this,this._dimName,this.getTargetSeriesModels());var t=this.calculateDataWindow(e.option);this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,a(this),r(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,r(this,!0))},filterData:function(e){function t(e){return e>=r[0]&&e<=r[1]}if(e===this._dataZoomModel){var n=this._dimName,o=this.getTargetSeriesModels(),i=e.get("filterMode"),r=this._valueWindow;if("none"!==i){var a=this.getOtherAxisModel();e.get("$fromToolbox")&&a&&"category"===a.get("type")&&(i="empty"),u(o,function(e){var o=e.getData(),a=e.coordDimToDataDim(n);"weakFilter"===i?o&&o.filterSelf(function(e){for(var t,n,i,l=0;lr[1];if(c&&!u&&!d)return!0;c&&(i=!0),u&&(t=!0),d&&(n=!0)}return i&&t&&n}):o&&u(a,function(n){"empty"===i?e.setData(o.map(n,function(e){return t(e)?e:NaN})):o.filterSelf(n,t)})})}}}};var p=f;e.exports=p},function(e,t,n){var o=n(67),i=o.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}});e.exports=i},function(e,t,n){var o=n(0),i=n(68),r=n(70),a=n(497),l=o.bind,s=i.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,n,i){s.superApply(this,"render",arguments),a.shouldRecordRange(i,e.id)&&(this._range=e.getPercentRange()),o.each(this.getTargetCoordInfo(),function(t,i){var r=o.map(t,function(e){return a.generateCoordId(e.model)});o.each(t,function(t){var o=t.model,s=e.option;a.register(n,{coordId:a.generateCoordId(o),allCoordIds:r,containsPoint:function(e,t,n){return o.coordinateSystem.containPoint([t,n])},dataZoomId:e.id,throttleRate:e.get("throttle",!0),panGetRange:l(this._onPan,this,t,i),zoomGetRange:l(this._onZoom,this,t,i),zoomLock:s.zoomLock,disabled:s.disabled,roamControllerOpt:{zoomOnMouseWheel:s.zoomOnMouseWheel,moveOnMouseMove:s.moveOnMouseMove,preventDefaultMouseMove:s.preventDefaultMouseMove}})},this)},this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),s.superApply(this,"dispose",arguments),this._range=null},_onPan:function(e,t,n,o,i,a,l,s,u){var d=this._range.slice(),f=e.axisModels[0];if(f){var p=c[t]([a,l],[s,u],f,n,e),h=p.signal*(d[1]-d[0])*p.pixel/p.pixelLength;return r(h,d,[0,100],"all"),this._range=d}},_onZoom:function(e,t,n,o,i,a){var l=this._range.slice(),s=e.axisModels[0];if(s){var u=c[t](null,[i,a],s,n,e),d=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(l[1]-l[0])+l[0];o=Math.max(1/o,0),l[0]=(l[0]-d)*o+d,l[1]=(l[1]-d)*o+d;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return r(0,l,[0,100],0,f.minSpan,f.maxSpan),this._range=l}}}),c={grid:function(e,t,n,o,i){var r=n.axis,a={},l=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(a.pixel=t[0]-e[0],a.pixelLength=l.width,a.pixelStart=l.x,a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=l.height,a.pixelStart=l.y,a.signal=r.inverse?-1:1),a},polar:function(e,t,n,o,i){var r=n.axis,a={},l=i.model.coordinateSystem,s=l.getRadiusAxis().getExtent(),c=l.getAngleAxis().getExtent();return e=e?l.pointToCoord(e):[0,0],t=l.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=r.inverse?-1:1),a},singleAxis:function(e,t,n,o,i){var r=n.axis,a=i.model.coordinateSystem.getRect(),l={};return e=e||[0,0],"horizontal"===r.orient?(l.pixel=t[0]-e[0],l.pixelLength=a.width,l.pixelStart=a.x,l.signal=r.inverse?1:-1):(l.pixel=t[1]-e[1],l.pixelLength=a.height,l.pixelStart=a.y,l.signal=r.inverse?-1:1),l}},u=s;e.exports=u},function(e,t,n){var o=n(67),i=o.extend({type:"dataZoom.select"});e.exports=i},function(e,t,n){var o=n(68),i=o.extend({type:"dataZoom.select"});e.exports=i},function(e,t,n){var o=n(67),i=o.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),r=i;e.exports=r},function(e,t,n){function o(e){return{x:"y",y:"x",radius:"angle",angle:"radius"}[e]}function i(e){return"vertical"===e?"ns-resize":"ew-resize"}var r=n(0),a=n(30),l=n(2),s=n(44),c=n(68),u=n(3),d=n(6),f=n(70),p=l.Rect,h=u.linearMap,g=u.asc,m=r.bind,v=r.each,b="horizontal",x=5,y=["line","bar","candlestick","scatter"],_=c.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,o){if(_.superApply(this,"render",arguments),s.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1===this.dataZoomModel.get("show"))return void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()},remove:function(){_.superApply(this,"remove",arguments),s.clear(this,"_dispatchZoomAction")},dispose:function(){_.superApply(this,"dispose",arguments),s.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new l.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},i=this._orient===b?{right:o.width-n.x-n.width,top:o.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},a=d.getLayoutParams(e.option);r.each(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=i[e])});var l=d.getLayoutRect(a,o,e.padding);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),i=o&&o.get("inverse"),r=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==b||i?n===b&&i?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==n||i?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var l=e.getBoundingRect([r]);e.attr("position",[t.x-l.x,t.y-l.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new p({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new p({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:r.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,o=n.getRawData(),i=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=i){var a=o.getDataExtent(i),s=.3*(a[1]-a[0]);a=[a[0]-s,a[1]+s];var c,u=[0,t[1]],d=[0,t[0]],f=[[t[0],0],[0,0]],p=[],g=d[1]/(o.count()-1),m=0,v=Math.round(o.count()/t[0]);o.each([i],function(e,t){if(v>0&&t%v)return void(m+=g);var n=null==e||isNaN(e)||""===e,o=n?0:h(e,a,u,!0);n&&!c&&t?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&c&&(f.push([m,0]),p.push([m,0])),f.push([m,o]),p.push([m,o]),m+=g,c=n});var b=this.dataZoomModel;this._displayables.barGroup.add(new l.Polygon({shape:{points:f},style:r.defaults({fill:b.get("dataBackgroundColor")},b.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new l.Polyline({shape:{points:p},style:b.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis(function(a,l){var s=e.getAxisProxy(a.name,l).getTargetSeriesModels();r.each(s,function(e){if(!(n||!0!==t&&r.indexOf(y,e.get("type"))<0)){var s,c=i.getComponent(a.axis,l).axis,u=o(a.name),d=e.coordinateSystem;null!=u&&d.getOtherAxis&&(s=d.getOtherAxis(c).inverse),n={thisAxis:c,series:e,thisDim:a.name,otherDim:u,otherAxisInverse:s}}},this)},this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],o=this._displayables.barGroup,r=this._size,s=this.dataZoomModel;o.add(e.filler=new p({draggable:!0,cursor:i(this._orient),drift:m(this._onDragMove,this,"all"),onmousemove:function(e){a.stop(e.event)},ondragstart:m(this._showDataInfo,this,!0),ondragend:m(this._onDragEnd,this),onmouseover:m(this._showDataInfo,this,!0),onmouseout:m(this._showDataInfo,this,!1),style:{fill:s.get("fillerColor"),textPosition:"inside"}})),o.add(new p(l.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),v([0,1],function(e){var r=l.createIcon(s.get("handleIcon"),{cursor:i(this._orient),draggable:!0,drift:m(this._onDragMove,this,e),onmousemove:function(e){a.stop(e.event)},ondragend:m(this._onDragEnd,this),onmouseover:m(this._showDataInfo,this,!0),onmouseout:m(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),c=r.getBoundingRect();this._handleHeight=u.parsePercent(s.get("handleSize"),this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,r.setStyle(s.getModel("handleStyle").getItemStyle());var d=s.get("handleColor");null!=d&&(r.style.fill=d),o.add(t[e]=r);var f=s.textStyleModel;this.group.add(n[e]=new l.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:f.getTextColor(),textFont:f.getFont()},z2:10}))},this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[h(e[0],[0,100],t,!0),h(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,o=this._handleEnds,i=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];f(t,o,i,n.get("zoomLock")?"all":e,null!=r.minSpan?h(r.minSpan,a,i,!0):null,null!=r.maxSpan?h(r.maxSpan,a,i,!0):null),this._range=g([h(o[0],i,a,!0),h(o[1],i,a,!0)])},_updateView:function(e){var t=this._displayables,n=this._handleEnds,o=g(n.slice()),i=this._size;v([0,1],function(e){var o=t.handles[e],r=this._handleHeight;o.attr({scale:[r/2,r/2],position:[n[e],i[1]/2-r/2]})},this),t.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:i[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){function t(e){var t=l.getTransform(o.handles[e].parent,this.group),n=l.transformDirection(0===e?"right":"left",t),s=this._handleWidth/2+x,c=l.applyTransform([f[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:c[0],y:c[1],textVerticalAlign:r===b?"middle":n,textAlign:r===b?n:"center",text:a[e]})}var n=this.dataZoomModel,o=this._displayables,i=o.handleLabels,r=this._orient,a=["",""];if(n.get("showDetail")){var s=n.findRepresentativeAxisProxy();if(s){var c=s.getAxisModel().axis,u=this._range,d=e?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(d[0],c),this._formatLabel(d[1],c)]}}var f=g(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,o=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(i,20));return r.isFunction(o)?o(e,a):r.isString(o)?o.replace("{value}",a):a},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n){this._dragging=!0;var o=this._displayables.barGroup.getLocalTransform(),i=l.applyTransform([t,n],o,!0);this._updateInterval(e,i[0]);var r=this.dataZoomModel.get("realtime");this._updateView(!r),r&&r&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,n=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var o=this._handleEnds,i=(o[0]+o[1])/2;this._updateInterval("all",n[0]-i),this._updateView(),this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(v(this.getTargetCoordInfo(),function(t){if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}}),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}}),w=_;e.exports=w},function(e,t,n){function o(e,t){var n=l(e),o=t.dataZoomId,i=t.coordId;g.each(n,function(e,n){var r=e.dataZoomInfos;r[o]&&g.indexOf(t.allCoordIds,i)<0&&(delete r[o],e.count--)}),c(n);var r=n[i];r||(r=n[i]={coordId:i,dataZoomInfos:{},count:0},r.controller=s(e,r),r.dispatchAction=g.curry(p,e)),!r.dataZoomInfos[o]&&r.count++,r.dataZoomInfos[o]=t;var a=h(r.dataZoomInfos);r.controller.enable(a.controlType,a.opt),r.controller.setPointerChecker(t.containsPoint),v.createOrUpdate(r,"dispatchAction",t.throttleRate,"fixRate")}function i(e,t){var n=l(e);g.each(n,function(e){e.controller.dispose();var n=e.dataZoomInfos;n[t]&&(delete n[t],e.count--)}),c(n)}function r(e,t){if(e&&"dataZoom"===e.type&&e.batch)for(var n=0,o=e.batch.length;no[t]&&(t=i),g.extend(n,e.roamControllerOpt)}),{controlType:t,opt:n}}var g=n(0),m=n(86),v=n(44),b=g.curry,x="\0_ec_dataZoom_roams";t.register=o,t.unregister=i,t.shouldRecordRange=r,t.generateCoordId=a},function(e,t,n){n(185),n(67),n(68),n(493),n(494),n(183),n(182)},function(e,t,n){function o(e,t){t.update="updateView",i.registerAction(t,function(t,n){var o={};return n.eachComponent({mainType:"geo",query:t},function(n){n[e](t.name);var i=n.coordinateSystem;r.each(i.regions,function(e){o[e.name]=n.isSelected(e.name)||!1})}),{selected:o,name:t.name}})}var i=n(1),r=n(0);n(561),n(88),n(500),n(162),o("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),o("select",{type:"geoSelect",event:"geoselected"}),o("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(e,t,n){var o=n(187),i=n(1),r=i.extendComponentView({type:"geo",init:function(e,t){var n=new o(t,!0);this._mapDraw=n,this.group.add(n.group)},render:function(e,t,n,o){if(!o||"geoToggleSelect"!==o.type||o.from!==this.uid){var i=this._mapDraw;e.get("show")?i.draw(e,t,n,this,o):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=r},function(e,t,n){function o(e,t,n,o){var i=n.type,r=h[i.charAt(0).toUpperCase()+i.slice(1)],a=new r(n);t.add(a),o.set(e,a),a.__ecGraphicId=e}function i(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse(function(e){i(e,t)}),t.removeKey(e.__ecGraphicId),n.remove(e))}function r(e){return e=f.extend({},e),f.each(["id","parentId","$action","hv","bounding"].concat(g.LOCATION_PARAMS),function(t){delete e[t]}),e}function a(e,t){var n;return f.each(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}function l(e,t){var n=e.exist;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 s(e,t,n){var o=f.extend({},n),i=e[t],r=n.$action||"merge";"merge"===r?i?(f.merge(i,o,!0),g.mergeLayoutParam(i,o,{ignoreSize:!0}),g.copyLayoutParams(n,i)):e[t]=o:"replace"===r?e[t]=o:"remove"===r&&i&&(e[t]=null)}function c(e,t){e&&(e.hv=t.hv=[a(t,["left","right"]),a(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}var u=n(4),d=(u.__DEV__,n(1)),f=n(0),p=n(5),h=n(2),g=n(6);d.registerPreprocessor(function(e){var t=e.graphic;f.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])});var m=d.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,m.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var n=this.option,o=(t?n:e).elements,i=n.elements=t?[]:n.elements,r=[];this._flatten(o,r);var a=p.mappingToExists(i,r);p.makeIdAndName(a);var u=this._elOptionsToUpdate=[];f.each(a,function(e,t){var n=e.option;n&&(u.push(n),l(e,n),s(i,t,n),c(i[t],n))},this);for(var d=i.length-1;d>=0;d--)null==i[d]?i.splice(d,1):delete i[d].$action},_flatten:function(e,t,n){f.each(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var o=e.children;"group"===e.type&&o&&this._flatten(o,t,e),delete e.children}},this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});d.extendComponentView({type:"graphic",init:function(e,t){this._elMap=f.createHashMap(),this._lastGraphicModel},render:function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e,n),this._relocate(e,n)},_updateElements:function(e,t){var n=e.useElOptionsToUpdate();if(n){var a=this._elMap,l=this.group;f.each(n,function(e){var t=e.$action,n=e.id,s=a.get(n),c=e.parentId,u=null!=c?a.get(c):l;if("text"===e.type){var d=e.style;e.hv&&e.hv[1]&&(d.textVerticalAlign=d.textBaseline=null),!d.hasOwnProperty("textFill")&&d.fill&&(d.textFill=d.fill),!d.hasOwnProperty("textStroke")&&d.stroke&&(d.textStroke=d.stroke)}var f=r(e);t&&"merge"!==t?"replace"===t?(i(s,a),o(n,u,f,a)):"remove"===t&&i(s,a):s?s.attr(f):o(n,u,f,a);var p=a.get(n);p&&(p.__ecGraphicWidth=e.width,p.__ecGraphicHeight=e.height)})}},_relocate:function(e,t){for(var n=e.option.elements,o=this.group,i=this._elMap,r=n.length-1;r>=0;r--){var a=n[r],l=i.get(a.id);if(l){var s=l.parent,c=s===o?{width:t.getWidth(),height:t.getHeight()}:{width:s.__ecGraphicWidth||0,height:s.__ecGraphicHeight||0};g.positionElement(l,a,c,null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var e=this._elMap;e.each(function(t){i(t,e)}),this._elMap=f.createHashMap()},dispose:function(){this._clear()}})},function(e,t,n){n(69),n(179),n(66)},function(e,t,n){var o=n(1);n(192),n(506),n(193);var i=n(507),r=n(14);o.registerProcessor(i),r.registerSubTypeDefaulter("legend",function(){return"plain"})},function(e,t,n){function o(e,t,n){var o=e.getOrient(),i=[1,1];i[o.index]=0,a(t,n,{type:"box",ignoreSize:i})}var i=n(192),r=n(6),a=r.mergeLayoutParam,l=r.getLayoutParams,s=i.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},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},init:function(e,t,n,i){var r=l(e);s.superCall(this,"init",e,t,n,i),o(this,e,r)},mergeOption:function(e,t){s.superCall(this,"mergeOption",e,t),o(this,this.option,e)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}}),c=s;e.exports=c},function(e,t,n){var o=n(0),i=n(2),r=n(6),a=n(193),l=i.Group,s=["width","height"],c=["x","y"],u=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new l),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new l),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,r){function a(e,n){var a=e+"DataIndex",u=i.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:o.bind(l._pageGo,l,a,t,r)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});u.name=e,s.add(u)}var l=this;u.superCall(this,"renderInner",e,t,n,r);var s=this._controllerGroup,c=t.get("pageIconSize",!0);o.isArray(c)||(c=[c,c]),a("pagePrev",0);var d=t.getModel("pageTextStyle");s.add(new i.Text({name:"pageText",style:{textFill:d.getTextColor(),font:d.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),a("pageNext",1)},layoutInner:function(e,t,n){var a=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup,d=e.getOrient().index,f=s[d],p=s[1-d],h=c[1-d];r.box(e.get("orient"),a,e.get("itemGap"),d?n.width:null,d?null:n.height),r.box("horizontal",u,e.get("pageButtonItemGap",!0));var g=a.getBoundingRect(),m=u.getBoundingRect(),v=this._showController=g[f]>n[f],b=[-g.x,-g.y];b[d]=a.position[d];var x=[0,0],y=[-m.x,-m.y],_=o.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));v&&("end"===e.get("pageButtonPosition",!0)?y[d]+=n[f]-m[f]:x[d]+=m[f]+_),y[1-d]+=g[p]/2-m[p]/2,a.attr("position",b),l.attr("position",x),u.attr("position",y);var w=this.group.getBoundingRect(),w={x:0,y:0};if(w[f]=v?n[f]:g[f],w[p]=Math.max(g[p],m[p]),w[h]=Math.min(0,m[h]+y[1-d]),l.__rectSize=n[f],v){var k={x:0,y:0};k[f]=Math.max(n[f]-m[f]-_,0),k[p]=w[p],l.setClipPath(new i.Rect({shape:k})),l.__rectSize=k[f]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(e);return null!=S.pageIndex&&i.updateProps(a,{position:S.contentPosition},!!v&&e),this._updatePageInfoView(e,S),w},_pageGo:function(e,t,n){var o=this._getPageInfo(t)[e];null!=o&&n.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;o.each(["pagePrev","pageNext"],function(o){var i=null!=t[o+"DataIndex"],r=n.childOfName(o);r&&(r.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=i?"pointer":"default")});var i=n.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,l=null!=a?a+1:0,s=t.pageCount;i&&r&&i.setStyle("text",o.isString(r)?r.replace("{current}",l).replace("{total}",s):r({current:l,total:s}))},_getPageInfo:function(e){function t(e){var t=e.getBoundingRect().clone();return t[g]+=e.position[f],t}var n,o,i,r,a=e.get("scrollDataIndex",!0),l=this.getContentGroup(),u=l.getBoundingRect(),d=this._containerGroup.__rectSize,f=e.getOrient().index,p=s[f],h=s[1-f],g=c[f],m=l.position.slice();this._showController?l.eachChild(function(e){e.__legendDataIndex===a&&(r=e)}):r=l.childAt(0);var v=d?Math.ceil(u[p]/d):0;if(r){var b=r.getBoundingRect(),x=r.position[f]+b[g];m[f]=-x-u[g],n=Math.floor(v*(x+b[g]+d/2)/u[p]),n=u[p]&&v?Math.max(0,Math.min(v-1,n)):-1;var y={x:0,y:0};y[p]=d,y[h]=u[h],y[g]=-m[f]-u[g];var _,w=l.children();if(l.eachChild(function(e,n){var o=t(e);o.intersect(y)&&(null==_&&(_=n),i=e.__legendDataIndex),n===w.length-1&&o[g]+o[p]<=y[g]+y[p]&&(i=null)}),null!=_){var k=w[_],S=t(k);if(y[g]=S[g]+S[p]-y[p],_<=0&&S[g]>=y[g])o=null;else{for(;_>0&&t(w[_-1]).intersect(y);)_--;o=w[_].__legendDataIndex}}}return{contentPosition:m,pageIndex:n,pageCount:v,pagePrevDataIndex:o,pageNextDataIndex:i}}}),d=u;e.exports=d},function(e,t,n){function o(e,t,n){var o,i={},a="toggleSelected"===e;return n.eachComponent("legend",function(n){a&&null!=o?n[o?"select":"unSelect"](t.name):(n[e](t.name),o=n.isSelected(t.name));var l=n.getData();r.each(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}})}),{name:t.name,selected:i}}var i=n(1),r=n(0);i.registerAction("legendToggleSelect","legendselectchanged",r.curry(o,"toggleSelected")),i.registerAction("legendSelect","legendselected",r.curry(o,"select")),i.registerAction("legendUnSelect","legendunselected",r.curry(o,"unSelect"))},function(e,t){function n(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n=0&&"number"==typeof l&&(l=+l.toFixed(Math.min(g,20))),p.coord[u]=h.coord[u]=l,o=[p,h,{type:r,valueIndex:o.valueIndex,value:l}]}return o=[d.dataTransform(e,o[0]),d.dataTransform(e,o[1]),s.extend({},o[2])],o[2].type=o[2].type||"",s.merge(o[2],o[0]),s.merge(o[2],o[1]),o},g=p.extend({type:"markLine",updateLayout:function(e,t,n){t.eachSeries(function(e){var t=e.markLineModel;if(t){var o=t.getData(),i=t.__from,r=t.__to;i.each(function(t){a(i,t,!0,e,n),a(r,t,!1,e,n)}),o.each(function(e){o.setItemLayout(e,[i.getItemLayout(e),r.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},renderSeries:function(e,t,n,o){function i(t,n,i){var r=t.getItemModel(n);a(t,n,i,e,o),t.setItemVisual(n,{symbolSize:r.get("symbolSize")||x[i?0:1],symbol:r.get("symbol",!0)||b[i?0:1],color:r.get("itemStyle.normal.color")||u.getVisual("color")})}var r=e.coordinateSystem,c=e.id,u=e.getData(),d=this.markerGroupMap,p=d.get(c)||d.set(c,new f);this.group.add(p.group);var h=l(r,e,t),g=h.from,m=h.to,v=h.line;t.__from=g,t.__to=m,t.setData(v);var b=t.get("symbol"),x=t.get("symbolSize");s.isArray(b)||(b=[b,b]),"number"==typeof x&&(x=[x,x]),h.from.each(function(e){i(g,e,!0),i(m,e,!1)}),v.each(function(e){var t=v.getItemModel(e).get("lineStyle.normal.color");v.setItemVisual(e,{color:t||g.getItemVisual(e,"color")}),v.setItemLayout(e,[g.getItemLayout(e),m.getItemLayout(e)]),v.setItemVisual(e,{fromSymbolSize:g.getItemVisual(e,"symbolSize"),fromSymbol:g.getItemVisual(e,"symbol"),toSymbolSize:m.getItemVisual(e,"symbolSize"),toSymbol:m.getItemVisual(e,"symbol")})}),p.updateData(v),h.line.eachItemGraphicEl(function(e,n){e.traverse(function(e){e.dataModel=t})}),p.__keep=!0,p.group.silent=t.get("silent")||e.get("silent")}});e.exports=g},function(e,t,n){var o=n(121),i=o.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2}}}});e.exports=i},function(e,t,n){function o(e,t,n){var o=t.coordinateSystem;e.each(function(i){var r,a=e.getItemModel(i),s=l.parsePercent(a.get("x"),n.getWidth()),c=l.parsePercent(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(c)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(o){var u=e.get(o.dimensions[0],i),d=e.get(o.dimensions[1],i);r=o.dataToPoint([u,d])}}else r=[s,c];isNaN(s)||(r[0]=s),isNaN(c)||(r[1]=c),e.setItemLayout(i,r)})}function i(e,t,n){var o;o=e?r.map(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.coordDimToDataDim(e)[0])||{};return n.name=e,n}):[{name:"value",type:"float"}];var i=new s(o,n),a=r.map(n.get("data"),r.curry(c.dataTransform,t));return e&&(a=r.filter(a,r.curry(c.dataFilter,e))),i.initData(a,null,e?c.dimValueGetter:function(e){return e.value}),i}var r=n(0),a=n(64),l=n(3),s=n(13),c=n(123),u=n(122),d=u.extend({type:"markPoint",updateLayout:function(e,t,n){t.eachSeries(function(e){var t=e.markPointModel;t&&(o(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(t))},this)},renderSeries:function(e,t,n,r){var l=e.coordinateSystem,s=e.id,c=e.getData(),u=this.markerGroupMap,d=u.get(s)||u.set(s,new a),f=i(l,e,t);t.setData(f),o(t.getData(),e,r),f.each(function(e){var n=f.getItemModel(e),o=n.getShallow("symbolSize");"function"==typeof o&&(o=o(t.getRawValue(e),t.getDataParams(e))),f.setItemVisual(e,{symbolSize:o,color:n.get("itemStyle.normal.color")||c.getVisual("color"),symbol:n.getShallow("symbol")})}),d.updateData(f),this.group.add(d.group),f.eachItemGraphicEl(function(e){e.traverse(function(e){e.dataModel=t})}),d.__keep=!0,d.group.silent=t.get("silent")||e.get("silent")}});e.exports=d},function(e,t,n){n(210),n(474),n(471)},function(e,t,n){var o=n(1),i=n(0),r=n(588);n(125),n(467),n(523),n(66),n(477),o.registerLayout(i.curry(r,"bar")),o.extendComponentView({type:"polar"})},function(e,t,n){n(579),n(580),n(522)},function(e,t,n){var o=n(4),i=(o.__DEV__,n(1)),r=n(0),a=n(42),l=n(2),s=["axisLine","axisTickLabel","axisName"],c=i.extendComponentView({type:"radar",render:function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),o=r.map(n,function(e){return new a(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});r.each(o,function(e){r.each(s,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(e){function t(e,t,n){var o=n%t.length;return e[o]=e[o]||[],o}var n=e.coordinateSystem,o=n.getIndicatorAxes();if(o.length){var i=e.get("shape"),a=e.getModel("splitLine"),s=e.getModel("splitArea"),c=a.getModel("lineStyle"),u=s.getModel("areaStyle"),d=a.get("show"),f=s.get("show"),p=c.get("color"),h=u.get("color");p=r.isArray(p)?p:[p],h=r.isArray(h)?h:[h];var g=[],m=[];if("circle"===i)for(var v=o[0].getTicksCoords(),b=n.cx,x=n.cy,y=0;y=0||"+"===n?"left":"right"},l={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:w/2},c="vertical"===i?r.height:r.width,u=e.getModel("controlStyle"),d=u.get("show"),f=d?u.get("itemSize"):0,p=d?u.get("itemGap"):0,h=f+p,g=e.get("label.normal.rotate")||0;g=g*w/180;var m,v,b,x,y=u.get("position",!0),d=u.get("show",!0),_=d&&u.get("showPlayBtn",!0),k=d&&u.get("showPrevBtn",!0),S=d&&u.get("showNextBtn",!0),M=0,C=c;return"left"===y||"bottom"===y?(_&&(m=[0,0],M+=h),k&&(v=[M,0],M+=h),S&&(b=[C-f,0],C-=h)):(_&&(m=[C-f,0],C-=h),k&&(v=[0,0],M+=h),S&&(b=[C-f,0],C-=h)),x=[M,C],e.get("inverse")&&x.reverse(),{viewRect:r,mainLength:c,orient:i,rotation:s[i],labelRotation:g,labelPosOpt:n,labelAlign:e.get("label.normal.align")||a[i],labelBaseline:e.get("label.normal.verticalAlign")||e.get("label.normal.baseline")||l[i],playPosition:m,prevBtnPosition:v,nextBtnPosition:b,axisExtent:x,controlSize:f,controlGap:p}},_position:function(e,t){function n(e){var t=e.position;e.origin=[f[0][0]-t[0],f[1][0]-t[1]]}function o(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function i(e,t,n,o,i){e[o]+=n[o][i]-t[o][i]}var r=this._mainGroup,a=this._labelGroup,l=e.viewRect;if("vertical"===e.orient){var s=c.create(),u=l.x,d=l.y+l.height;c.translate(s,s,[-u,-d]),c.rotate(s,s,-w/2),c.translate(s,s,[u,d]),l=l.clone(),l.applyTransform(s)}var f=o(l),p=o(r.getBoundingRect()),h=o(a.getBoundingRect()),g=r.position,m=a.position;m[0]=g[0]=f[0][0];var v=e.labelPosOpt;if(isNaN(v)){var b="+"===v?0:1;i(g,p,f,1,b),i(m,h,f,1,1-b)}else{var b=v>=0?0:1;i(g,p,f,1,b),m[1]=g[1]+v}r.attr("position",g),a.attr("position",m),r.rotation=a.rotation=e.rotation,n(r),n(a)},_createAxis:function(e,t){var n=t.getData(),o=t.get("axisType"),i=m.createScaleByModel(t,o),r=n.getDataExtent("value");i.setExtent(r[0],r[1]),this._customizeScale(i,n),i.niceTicks();var a=new p("value",i,e.axisExtent,o);return a.model=t,a},_customizeScale:function(e,t){e.getTicks=function(){return t.mapArray(["value"],function(e){return e})},e.getTicksLabels=function(){return l.map(this.getTicks(),e.getLabel,e)}},_createGroup:function(e){var t=this["_"+e]=new u.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,n,o){var i=n.getExtent();o.get("lineStyle.show")&&t.add(new u.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:l.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,o){var i=o.getData(),a=n.scale.getTicks();_(a,function(e,a){var l=n.dataToCoord(e),s=i.getItemModel(a),c=s.getModel("itemStyle.normal"),d=s.getModel("itemStyle.emphasis"),f={position:[l,0],onclick:y(this._changeTimeline,this,a)},p=r(s,c,t,f);u.setHoverStyle(p,d.getItemStyle()),s.get("tooltip")?(p.dataIndex=a,p.dataModel=o):p.dataIndex=p.dataModel=null},this)},_renderAxisLabel:function(e,t,n,o){var i=o.getModel("label.normal");if(i.get("show")){var r=o.getData(),a=n.scale.getTicks(),l=m.getFormattedLabels(n,i.get("formatter")),s=n.getLabelInterval();_(a,function(o,i){if(!n.isLabelIgnored(i,s)){var a=r.getItemModel(i),c=a.getModel("label.normal"),d=a.getModel("label.emphasis"),f=n.dataToCoord(o),p=new u.Text({position:[f,0],rotation:e.labelRotation-e.rotation,onclick:y(this._changeTimeline,this,i),silent:!1});u.setTextStyle(p.style,c,{text:l[i],textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(p),u.setHoverStyle(p,u.setTextStyle({},d))}},this)}},_renderControl:function(e,t,n,o){function r(e,n,r,f){if(e){var p={position:e,origin:[a/2,0],rotation:f?-l:0,rectHover:!0,style:s,onclick:r},h=i(o,n,d,p);t.add(h),u.setHoverStyle(h,c)}}var a=e.controlSize,l=e.rotation,s=o.getModel("controlStyle.normal").getItemStyle(),c=o.getModel("controlStyle.emphasis").getItemStyle(),d=[0,-a/2,a,a],f=o.getPlayState(),p=o.get("inverse",!0);r(e.nextBtnPosition,"controlStyle.nextIcon",y(this._changeTimeline,this,p?"-":"+")),r(e.prevBtnPosition,"controlStyle.prevIcon",y(this._changeTimeline,this,p?"+":"-")),r(e.playPosition,"controlStyle."+(f?"stopIcon":"playIcon"),y(this._handlePlayClick,this,!f),!0)},_renderCurrentPointer:function(e,t,n,o){var i=o.getData(),l=o.getCurrentIndex(),s=i.getItemModel(l).getModel("checkpointStyle"),c=this,u={onCreate:function(e){e.draggable=!0,e.drift=y(c._handlePointerDrag,c),e.ondragend=y(c._handlePointerDragend,c),a(e,l,n,o,!0)},onUpdate:function(e){a(e,l,n,o)}};this._currentPointer=r(s,s,this._mainGroup,{},this._currentPointer,u)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],o=this._axis,i=v.asc(o.getExtent().slice());n>i[1]&&(n=i[1]),n=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],n=e.axisType,i=this._names=[];if("category"===n){var l=[];o.each(t,function(e,t){var n,r=a.getDataItemValue(e);o.isObject(e)?(n=o.clone(e),n.value=t):n=t,l.push(n),o.isString(r)||null!=r&&!isNaN(r)||(r=""),i.push(r+"")}),t=l}var s={category:"ordinal",time:"time"}[n]||"number";(this._data=new r([{name:"value",type:s}],this)).initData(t,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),s=l;e.exports=s},function(e,t,n){var o=n(129),i=o.extend({type:"timeline"});e.exports=i},function(e,t,n){function o(e){var t=e&&e.timeline;l.isArray(t)||(t=t?[t]:[]),l.each(t,function(e){e&&i(e)})}function i(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),r(e),a(e,"controlPosition")){var o=e.controlStyle||(e.controlStyle={});a(o,"position")||(o.position=e.controlPosition),"none"!==o.position||a(o,"show")||(o.show=!1,delete o.position),delete e.controlPosition}l.each(e.data||[],function(e){l.isObject(e)&&!l.isArray(e)&&(!a(e,"value")&&a(e,"name")&&(e.value=e.name),r(e))})}function r(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};l.each(o,function(e,t){r[t]||a(i,t)||(i[t]=e)}),n.label&&!a(o,"emphasis")&&(o.emphasis=n.label,delete n.label)}function a(e,t){return e.hasOwnProperty(t)}var l=n(0);e.exports=o},function(e,t,n){var o=n(1),i=n(0);o.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline"),i.defaults({currentIndex:n.option.currentIndex},e)}),o.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)})},function(e,t,n){n(14).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(e,t,n){n(534),n(535),n(541),n(539),n(537),n(538),n(540)},function(e,t,n){var o=n(1),i=n(0),r=n(34),a=o.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(e){a.superApply(this,"mergeDefaultAndTheme",arguments),i.each(this.option.feature,function(e,t){var n=r.get(t);n&&i.merge(e,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}}),l=a;e.exports=l},function(e,t,n){function o(e){return 0===e.indexOf("my")}var i=n(1),r=n(0),a=n(27),l=n(34),s=n(2),c=n(12),u=n(54),d=n(190),f=i.extendComponentView({type:"toolbox",render:function(e,t,n,i){function f(r,a){var s,u=b[r],d=b[a],f=m[u],h=new c(f,e,e.ecModel);if(u&&!d){if(o(u))s={model:h,onclick:h.option.onclick,featureName:u};else{var g=l.get(u);if(!g)return;s=new g(h,t,n)}v[u]=s}else{if(!(s=v[d]))return;s.model=h,s.ecModel=t,s.api=n}return!u&&d?void(s.dispose&&s.dispose(t,n)):!h.get("show")||s.unusable?void(s.remove&&s.remove(t,n)):(p(h,s,u),h.setIconStatus=function(e,t){var n=this.option,o=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,o[e]&&o[e].trigger(t)},void(s.render&&s.render(h,t,n,i)))}function p(o,i,a){var l=o.getModel("iconStyle"),c=i.getIcons?i.getIcons():o.get("icon"),u=o.get("title")||{};if("string"==typeof c){var d=c,f=u;c={},u={},c[a]=d,u[a]=f}var p=o.iconPaths={};r.each(c,function(a,c){var d=s.createIcon(a,{},{x:-g/2,y:-g/2,width:g,height:g});d.setStyle(l.getModel("normal").getItemStyle()),d.hoverStyle=l.getModel("emphasis").getItemStyle(),s.setHoverStyle(d),e.get("showTitle")&&(d.__title=u[c],d.on("mouseover",function(){var e=l.getModel("emphasis").getItemStyle();d.setStyle({text:u[c],textPosition:e.textPosition||"bottom",textFill:e.fill||e.stroke||"#000",textAlign:e.textAlign||"center"})}).on("mouseout",function(){d.setStyle({textFill:null})})),d.trigger(o.get("iconStatus."+c)||"normal"),h.add(d),d.on("click",r.bind(i.onclick,i,t,n,c)),p[c]=d})}var h=this.group;if(h.removeAll(),e.get("show")){var g=+e.get("itemSize"),m=e.get("feature")||{},v=this._features||(this._features={}),b=[];r.each(m,function(e,t){b.push(t)}),new u(this._featureNames||[],b).add(f).update(f).remove(r.curry(f,null)).execute(),this._featureNames=b,d.layout(h,e,n),h.add(d.makeBackground(h.getBoundingRect(),e)),h.eachChild(function(e){var t=e.__title,o=e.hoverStyle;if(o&&t){var i=a.getBoundingRect(t,a.makeFont(o)),r=e.position[0]+h.position[0],l=e.position[1]+h.position[1]+g,s=!1;l+i.height>n.getHeight()&&(o.textPosition="top",s=!0);var c=s?-5-i.height:g+8;r+i.width/2>n.getWidth()?(o.textPosition=["100%",c],o.textAlign="right"):r-i.width/2<0&&(o.textPosition=[0,c],o.textAlign="left")}})}},updateView:function(e,t,n,o){r.each(this._features,function(e){e.updateView&&e.updateView(e.model,t,n,o)})},updateLayout:function(e,t,n,o){r.each(this._features,function(e){e.updateLayout&&e.updateLayout(e.model,t,n,o)})},remove:function(e,t){r.each(this._features,function(n){n.remove&&n.remove(e,t)}),this.group.removeAll()},dispose:function(e,t){r.each(this._features,function(n){n.dispose&&n.dispose(e,t)})}});e.exports=f},function(e,t,n){function o(e,t,n){this.model=e,this.ecModel=t,this.api=n,this._brushType,this._brushMode}var i=n(0),r=n(34),a=n(55),l=a.toolbox.brush;o.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:i.clone(l.title)};var s=o.prototype;s.render=s.updateView=s.updateLayout=function(e,t,n){var o,r,a;t.eachComponent({mainType:"brush"},function(e){o=e.brushType,r=e.brushOption.brushMode||"single",a|=e.areas.length}),this._brushType=o,this._brushMode=r,i.each(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?a:t===o)?"emphasis":"normal")})},s.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return i.each(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},s.onclick=function(e,t,n){var o=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?o:o!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},r.register("brush",o);var c=o;e.exports=c},function(e,t,n){function o(e){var t={},n=[],o=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var r=i.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;t[a]||(t[a]={categoryAxis:r,valueAxis:i.getOtherAxis(r),series:[]},o.push({axisDim:r.dim,axisIndex:r.index})),t[a].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:o}}function i(e){var t=[];return g.each(e,function(e,n){var o=e.categoryAxis,i=e.valueAxis,r=i.dim,a=[" "].concat(g.map(e.series,function(e){return e.name})),l=[o.model.getCategories()];g.each(e.series,function(e){l.push(e.getRawData().mapArray(r,function(e){return e}))});for(var s=[a.join(_)],c=0;c=0)return!0}function c(e){for(var t=e.split(/\n+/g),n=l(t.shift()).split(w),o=[],i=g.map(n,function(e){return{name:e,data:[]}}),r=0;r1?"emphasis":"normal")}function a(e,t,n,o,r){var a=n._isZoomActive;o&&"takeGlobalCursor"===o.type&&(a="dataZoomSelect"===o.key&&o.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var l=new u(i(e.option),t,{include:["grid"]});n._brushController.setPanels(l.makePanelOpts(r,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"})).enableBrush(!!a&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}var l=n(1),s=n(0),c=n(118),u=n(186),d=n(184),f=n(70),p=n(55),h=n(34);n(498);var g=p.toolbox.dataZoom,m=s.each,v="\0_ec_\0toolbox-dataZoom_";o.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:s.clone(g.title)};var b=o.prototype;b.render=function(e,t,n,o){this.model=e,this.ecModel=t,this.api=n,a(e,t,this,o,n),r(e,t)},b.onclick=function(e,t,n){x[n].call(this)},b.remove=function(e,t){this._brushController.unmount()},b.dispose=function(e,t){this._brushController.dispose()};var x={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(d.pop(this.ecModel))}};b._onBrush=function(e,t){function n(e,t,n){var i=t.getAxis(e),l=i.model,s=o(e,l,a),c=s.findRepresentativeAxisProxy(l).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(n=f(0,n.slice(),i.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),s&&(r[s.id]={dataZoomId:s.id,startValue:n[0],endValue:n[1]})}function o(e,t,n){var o;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(e,t.componentIndex)&&(o=n)}),o}if(t.isEnd&&e.length){var r={},a=this.ecModel;this._brushController.updateCovers([]),new u(i(this.model.option),a,{include:["grid"]}).matchOutputRanges(e,a,function(e,t,o){if("cartesian2d"===o.type){var i=e.brushType;"rect"===i?(n("x",o,t[0]),n("y",o,t[1])):n({lineX:"x",lineY:"y"}[i],o,t)}}),d.push(a,r),this._dispatchZoomAction(r)}},b._dispatchZoomAction=function(e){var t=[];m(e,function(e,n){t.push(s.clone(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},h.register("dataZoom",o),l.registerPreprocessor(function(e){function t(e,t){if(t){var i=e+"Index",r=t[i];null==r||"all"==r||s.isArray(r)||(r=!1===r||"none"===r?[]:[r]),n(e,function(t,n){if(null==r||"all"==r||-1!==s.indexOf(r,n)){var a={type:"select",$fromToolbox:!0,id:v+e+n};a[i]=n,o.push(a)}})}}function n(t,n){var o=e[t];s.isArray(o)||(o=o?[o]:[]),m(o,n)}if(e){var o=e.dataZoom||(e.dataZoom=[]);s.isArray(o)||(e.dataZoom=o=[o]);var i=e.toolbox;if(i&&(s.isArray(i)&&(i=i[0]),i&&i.feature)){var r=i.feature.dataZoom;t("xAxis",r),t("yAxis",r)}}});var y=o;e.exports=y},function(e,t,n){function o(e){this.model=e}var i=n(1),r=n(0),a=n(55),l=n(34),s=a.toolbox.magicType;o.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:r.clone(s.title),option:{},seriesIndex:{}};var c=o.prototype;c.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return r.each(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n};var u={line:function(e,t,n,o){if("bar"===e)return r.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},o.get("option.line")||{},!0)},bar:function(e,t,n,o){if("line"===e)return r.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},o.get("option.bar")||{},!0)},stack:function(e,t,n,o){if("line"===e||"bar"===e)return r.merge({id:t,stack:"__ec_magicType_stack__"},o.get("option.stack")||{},!0)},tiled:function(e,t,n,o){if("line"===e||"bar"===e)return r.merge({id:t,stack:""},o.get("option.tiled")||{},!0)}},d=[["line","bar"],["stack","tiled"]];c.onclick=function(e,t,n){var o=this.model,i=o.get("seriesIndex."+n);if(u[n]){var a={series:[]},l=function(t){var i=t.subType,l=t.id,s=u[n](i,l,t,o);s&&(r.defaults(s,t.option),a.series.push(s));var c=t.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var d=c.getAxesByScale("ordinal")[0];if(d){var f=d.dim,p=f+"Axis",h=e.queryComponents({mainType:p,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],g=h.componentIndex;a[p]=a[p]||[];for(var m=0;m<=g;m++)a[p][g]=a[p][g]||{};a[p][g].boundaryGap="bar"===n}}};r.each(d,function(e){r.indexOf(e,n)>=0&&r.each(e,function(e){o.setIconStatus(e,"normal")})}),o.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},l),t.dispatchAction({type:"changeMagicType",currentType:n,newOption:a})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)}),l.register("magicType",o);var f=o;e.exports=f},function(e,t,n){function o(e){this.model=e}var i=n(1),r=n(184),a=n(55),l=n(34),s=a.toolbox.restore;o.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title},o.prototype.onclick=function(e,t,n){r.clear(e),t.dispatchAction({type:"restore",from:this.uid})},l.register("restore",o),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var c=o;e.exports=c},function(e,t,n){function o(e){this.model=e}var i=n(15),r=n(55),a=n(34),l=r.toolbox.saveAsImage;o.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:l.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:l.lang.slice()},o.prototype.unusable=!i.canvasSupported,o.prototype.onclick=function(e,t){var n=this.model,o=n.get("name")||e.get("title.0.text")||"echarts",r=document.createElement("a"),a=n.get("type",!0)||"png";r.download=o+"."+a,r.target="_blank";var l=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(r.href=l,"function"!=typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(l.split(",")[1]),c=s.length,u=new Uint8Array(c);c--;)u[c]=s.charCodeAt(c);var d=new Blob([u]);window.navigator.msSaveOrOpenBlob(d,o+"."+a)}else{var f=n.get("lang"),p='',h=window.open();h.document.write(p)}else{var g=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(g)}},a.register("saveAsImage",o);var s=o;e.exports=s},function(e,t,n){function o(e){var t="left "+e+"s cubic-bezier(0.23, 1, 0.32, 1),top "+e+"s cubic-bezier(0.23, 1, 0.32, 1)";return l.map(h,function(e){return e+"transition:"+t}).join(";")}function i(e){var t=[],n=e.get("fontSize"),o=e.getTextColor();return o&&t.push("color:"+o),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px"),f(["decoration","align"],function(n){var o=e.get(n);o&&t.push("text-"+n+":"+o)}),t.join(";")}function r(e){var t=[],n=e.get("transitionDuration"),r=e.get("backgroundColor"),a=e.getModel("textStyle"),l=e.get("padding");return n&&t.push(o(n)),r&&(u.canvasSupported?t.push("background-Color:"+r):(t.push("background-Color:#"+s.toHex(r)),t.push("filter:alpha(opacity=70)"))),f(["width","color","radius"],function(n){var o="border-"+n,i=p(o),r=e.get(i);null!=r&&t.push(o+":"+r+("color"===n?"":"px"))}),t.push(i(a)),null!=l&&t.push("padding:"+d.normalizeCssArray(l).join("px ")+"px"),t.join(";")+";"}function a(e,t){var n=document.createElement("div"),o=this._zr=t.getZr();this.el=n,this._x=t.getWidth()/2,this._y=t.getHeight()/2,e.appendChild(n),this._container=e,this._show=!1,this._hideTimeout;var i=this;n.onmouseenter=function(){i._enterable&&(clearTimeout(i._hideTimeout),i._show=!0),i._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!i._enterable){var n=o.handler;c.normalizeEvent(e,t,!0),n.dispatch("mousemove",t)}},n.onmouseleave=function(){i._enterable&&i._show&&i.hideLater(i._hideDelay),i._inContent=!1}}var l=n(0),s=n(31),c=n(30),u=n(15),d=n(8),f=l.each,p=d.toCamelCase,h=["","-webkit-","-moz-","-o-"];a.prototype={constructor:a,_enterable:!0,update:function(){var e=this._container,t=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==t.position&&(n.position="relative")},show:function(e){clearTimeout(this._hideTimeout);var t=this.el;t.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+r(e)+";left:"+this._x+"px;top:"+this._y+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n,o=this._zr;o&&o.painter&&(n=o.painter.getViewportRootOffset())&&(e+=n.offsetLeft,t+=n.offsetTop);var i=this.el.style;i.left=e+"px",i.top=t+"px",this._x=e,this._y=t},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(l.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show}};var g=a;e.exports=g},function(e,t,n){var o=n(1),i=o.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=i},function(e,t,n){function o(e){for(var t=e.pop();e.length;){var n=e.pop();n&&(n instanceof x&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),t=new x(n,t,t.ecModel))}return t}function i(e,t){return e.dispatchAction||d.bind(t.dispatchAction,t)}function r(e,t,n,o,i,r,a){var s=l(n),c=s.width,u=s.height;return null!=r&&(e+c+r>o?e-=c+r:e+=r),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function a(e,t,n,o,i){var r=l(n),a=r.width,s=r.height;return e=Math.min(e+a,o)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function l(e){var t=e.clientWidth,n=e.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var o=document.defaultView.getComputedStyle(e);o&&(t+=parseInt(o.paddingLeft,10)+parseInt(o.paddingRight,10)+parseInt(o.borderLeftWidth,10)+parseInt(o.borderRightWidth,10),n+=parseInt(o.paddingTop,10)+parseInt(o.paddingBottom,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10))}return{width:t,height:n}}function s(e,t,n){var o=n[0],i=n[1],r=0,a=0,l=t.width,s=t.height;switch(e){case"inside":r=t.x+l/2-o/2,a=t.y+s/2-i/2;break;case"top":r=t.x+l/2-o/2,a=t.y-i-5;break;case"bottom":r=t.x+l/2-o/2,a=t.y+s+5;break;case"left":r=t.x-o-5,a=t.y+s/2-i/2;break;case"right":r=t.x+l+5,a=t.y+s/2-i/2}return[r,a]}function c(e){return"center"===e||"middle"===e}var u=n(1),d=n(0),f=n(15),p=n(542),h=n(8),g=n(3),m=n(2),v=n(180),b=n(6),x=n(12),y=n(181),_=n(22),w=n(85),k=d.bind,S=d.each,M=g.parsePercent,C=new m.Rect({shape:{x:-1,y:-1,width:2,height:2}}),A=u.extendComponentView({type:"tooltip",init:function(e,t){if(!f.node){var n=new p(t.getDom(),t);this._tooltipContent=n}},render:function(e,t,n){if(!f.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var o=this._tooltipContent;o.update(),o.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");y.register("itemTooltip",this._api,k(function(e,n,o){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,o):"leave"===e&&this._hide(o))},this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){o.manuallyShowTip(e,t,n,{x:o._lastX,y:o._lastY})})}},manuallyShowTip:function(e,t,n,o){if(o.from!==this.uid&&!f.node){var r=i(o,n);this._ticket="";var a=o.dataByCoordSys;if(o.tooltip&&null!=o.x&&null!=o.y){var l=C;l.position=[o.x,o.y],l.update(),l.tooltip=o.tooltip,this._tryShow({offsetX:o.x,offsetY:o.y,target:l},r)}else if(a)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,event:{},dataByCoordSys:o.dataByCoordSys,tooltipOption:o.tooltipOption},r);else if(null!=o.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,o))return;var s=v(o,t),c=s.point[0],u=s.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:o.position,target:s.el,event:{}},r)}else null!=o.x&&null!=o.y&&(n.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:n.getZr().findHover(o.x,o.y).target,event:{}},r))}},manuallyHideTip:function(e,t,n,o){var r=this._tooltipContent;this._alwaysShowContent||r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,o.from!==this.uid&&this._hide(i(o,n))},_manuallyAxisShowTip:function(e,t,n,i){var r=i.seriesIndex,a=i.dataIndex,l=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=l){var s=t.getSeriesByIndex(r);if(s){var c=s.getData(),e=o([c.getItemModel(a),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},_tryShow:function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;o&&o.length?this._showAxisTooltip(o,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=d.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],a=[],l=[],s=o([t.tooltipOption,i]);S(e,function(e){S(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),o=e.value,i=[];if(t&&null!=o){var r=w.getValueLabel(o,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);d.each(e.seriesDataIndices,function(a){var s=n.getSeriesByIndex(a.seriesIndex),c=a.dataIndexInside,u=s&&s.getDataParams(c);u.axisDim=e.axisDim,u.axisIndex=e.axisIndex,u.axisType=e.axisType,u.axisId=e.axisId,u.axisValue=_.getAxisRawValue(t.axis,o),u.axisValueLabel=r,u&&(l.push(u),i.push(s.formatTooltip(c,!0)))});var s=r;a.push((s?h.encodeHTML(s)+"
":"")+i.join("
"))}})},this),a.reverse(),a=a.join("
");var c=t.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(s,c,r[0],r[1],this._tooltipContent,l):this._showTooltipContent(s,a,l,Math.random(),r[0],r[1],c)})},_showSeriesItemTooltip:function(e,t,n){var i=this._ecModel,r=t.seriesIndex,a=i.getSeriesByIndex(r),l=t.dataModel||a,s=t.dataIndex,c=t.dataType,u=l.getData(),d=o([u.getItemModel(s),l,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),f=d.get("trigger");if(null==f||"item"===f){var p=l.getDataParams(s,c),h=l.formatTooltip(s,!1,c),g="item_"+l.name+"_"+s;this._showOrMove(d,function(){this._showTooltipContent(d,h,p,g,e.offsetX,e.offsetY,e.position,e.target)}),n({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var o=t.tooltip;if("string"==typeof o){var i=o;o={content:i,formatter:i}}var r=new x(o,this._tooltipModel,this._ecModel),a=r.get("content"),l=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},l,e.offsetX,e.offsetY,e.position,t)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,o,i,r,a,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var s=this._tooltipContent,c=e.get("formatter");a=a||e.get("position");var u=t;if(c&&"string"==typeof c)u=h.formatTpl(c,n,!0);else if("function"==typeof c){var d=k(function(t,o){t===this._ticket&&(s.setContent(o),this._updatePosition(e,a,i,r,s,n,l))},this);this._ticket=o,u=c(n,o,d)}s.setContent(u),s.show(e),this._updatePosition(e,a,i,r,s,n,l)}},_updatePosition:function(e,t,n,o,i,l,u){var f=this._api.getWidth(),p=this._api.getHeight();t=t||e.get("position");var h=i.getSize(),g=e.get("align"),m=e.get("verticalAlign"),v=u&&u.getBoundingRect().clone();if(u&&v.applyTransform(u.transform),"function"==typeof t&&(t=t([n,o],l,i.el,v,{viewSize:[f,p],contentSize:h.slice()})),d.isArray(t))n=M(t[0],f),o=M(t[1],p);else if(d.isObject(t)){t.width=h[0],t.height=h[1];var x=b.getLayoutRect(t,{width:f,height:p});n=x.x,o=x.y,g=null,m=null}else if("string"==typeof t&&u){var y=s(t,v,h);n=y[0],o=y[1]}else{var y=r(n,o,i.el,f,p,g?null:20,m?null:20);n=y[0],o=y[1]}if(g&&(n-=c(g)?h[0]/2:"right"===g?h[0]:0),m&&(o-=c(m)?h[1]/2:"bottom"===m?h[1]:0),e.get("confine")){var y=a(n,o,i.el,f,p);n=y[0],o=y[1]}i.moveTo(n,o)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&S(t,function(t,o){var i=t.dataByAxis||{},r=e[o]||{},a=r.dataByAxis||[];(n&=i.length===a.length)&&S(i,function(e,t){var o=a[t]||{},i=e.seriesDataIndices||[],r=o.seriesDataIndices||[];(n&=e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&i.length===r.length)&&S(i,function(e,t){var o=r[t];n&=e.seriesIndex===o.seriesIndex&&e.dataIndex===o.dataIndex})})}),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){f.node||(this._tooltipContent.hide(),y.unregister("itemTooltip",t))}});e.exports=A},function(e,t,n){n(550),n(551)},function(e,t,n){function o(e,t,n){if(n[0]===n[1])return n.slice();for(var o=(n[1]-n[0])/200,i=n[0],r=[],a=0;a<=200&&it[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)},this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=a.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(n){var o=[],i=n.getData();i.each(this.getDataDimension(i),function(t,n){e[0]<=t&&t<=e[1]&&o.push(n)},!0,this),t.push({seriesId:n.id,dataIndex:o})},this),t},getVisualMeta:function(e){function t(t,n){r.push({value:t,color:e(t,n)})}for(var n=o(this,"outOfRange",this.getExtent()),i=o(this,"inRange",this.option.range.slice()),r=[],a=0,l=0,s=i.length,c=n.length;le[1])break;n.push({color:this.getControllerVisual(r,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},_createBarPoints:function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new p.Group("horizontal"!==t||n?"horizontal"===t&&n?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||n?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var n=this._shapes,o=this.visualMapModel,i=n.handleThumbs,r=n.handleLabels;x([0,1],function(a){var l=i[a];l.setStyle("fill",t.handlesColor[a]),l.position[1]=e[a];var s=p.applyTransform(n.handleLabelPoints[a],p.getTransform(l,this.group));r[a].setStyle({x:s[0],y:s[1],text:o.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})},this)}},_showIndicator:function(e,t,n,o){var i=this.visualMapModel,a=i.getExtent(),l=i.itemSize,s=[0,l[1]],c=b(e,a,s,!0),u=this._shapes,d=u.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setShape("points",r(!!n,o,c,l[1]));var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",f);d.setStyle("fill",h);var g=p.applyTransform(u.indicatorLabelPoint,p.getTransform(d,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",u.barGroup),x=this._orient;m.setStyle({text:(n||"")+i.formatValueText(t),textVerticalAlign:"horizontal"===x?v:"middle",textAlign:"horizontal"===x?"center":v,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,o=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);o[1]=y(_(0,o[1]),n[1]),e._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var n=this.visualMapModel,o=n.itemSize;if(n.option.hoverLink){var i=[0,o[1]],r=n.getExtent();e=y(_(i[0],e),i[1]);var s=a(n,r,i),c=[e-s,e+s],u=b(e,i,r,!0),d=[b(c[0],i,r,!0),b(c[1],i,r,!0)];c[0]i[1]&&(d[1]=1/0),t&&(d[0]===-1/0?this._showIndicator(u,d[1],"< ",s):d[1]===1/0?this._showIndicator(u,d[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var f=this._hoverLinkDataIndices,p=[];(t||l(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(d));var h=v.compressBatches(f,p);this._dispatchHighDown("downplay",m.convertDataIndex(h[0])),this._dispatchHighDown("highlight",m.convertDataIndex(h[1]))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=t.dataIndex){var o=this.ecModel.getSeriesByIndex(t.seriesIndex);if(n.isTargetSeries(o)){var i=o.getData(t.dataType),r=i.getDimension(n.getDataDimension(i)),a=i.get(r,t.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",m.convertDataIndex(e)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,n,o){var i=p.getTransform(t,o?null:this.group);return p[c.isArray(e)?"applyTransform":"transformDirection"](e,i,n)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}}),M=S;e.exports=M},function(e,t,n){function o(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var i=n(4),r=(i.__DEV__,n(0)),a=n(198),l=n(45),s=n(217),c=n(3),u=c.reformIntervals,d=a.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){d.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();f[this._mode].call(this),this._resetSelected(e,t);var o=this.option.categories;this.resetVisual(function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=r.clone(o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=r.map(this._pieceList,function(e){var e=r.clone(e);return"inRange"!==t&&(e.visual=null),e}))})},completeVisualOption:function(){function e(e,t,n){return e&&e[t]&&(r.isObject(e[t])?e[t].hasOwnProperty(n):e[t]===n)}var t=this.option,n={},o=l.listVisualTypes(),i=this.isCategory();r.each(t.pieces,function(e){r.each(o,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),r.each(n,function(n,o){var a=0;r.each(this.stateList,function(n){a|=e(t,n,o)||e(t.target,n,o)},this),!a&&r.each(this.stateList,function(e){(t[e]||(t[e]={}))[o]=s.get(o,"inRange"===e?"active":"inactive",i)})},this),a.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var n=this.option,o=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,r.each(o,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),"single"===n.selectedMode){var a=!1;r.each(o,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=r.clone(e)},getValueState:function(e){var t=l.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(n){var o=[],i=n.getData();i.each(this.getDataDimension(i),function(t,n){l.findPieceIndex(t,this._pieceList)===e&&o.push(n)},!0,this),t.push({seriesId:n.id,dataIndex:o})},this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},getVisualMeta:function(e){function t(t,r){var a=i.getRepresentValue({interval:t});r||(r=i.getValueState(a));var l=e(a,r);t[0]===-1/0?o[0]=l:t[1]===1/0?o[1]=l:n.push({value:t[0],color:l},{value:t[1],color:l})}if(!this.isCategory()){var n=[],o=[],i=this,a=this._pieceList.slice();if(a.length){var l=a[0].interval[0];l!==-1/0&&a.unshift({interval:[-1/0,l]}),(l=a[a.length-1].interval[1])!==1/0&&a.push({interval:[l,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(a,function(e){var n=e.interval;n&&(n[0]>s&&t([s,n[0]],"outOfRange"),t(n.slice()),s=n[1])},this),{stops:n,outerColors:o}}}}),f={splitNumber:function(){var e=this.option,t=this._pieceList,n=Math.min(e.precision,20),o=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(o[1]-o[0])/i;+a.toFixed(n)!==a&&n<5;)n++;e.precision=n,a=+a.toFixed(n);var l=0;e.minOpen&&t.push({index:l++,interval:[-1/0,o[0]],close:[0,0]});for(var s=o[0],c=l+i;l","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)},this)}},p=d;e.exports=p},function(e,t,n){var o=n(0),i=n(199),r=n(2),a=n(23),l=a.createSymbol,s=n(6),c=n(200),u=i.extend({type:"visualMap.piecewise",doRender:function(){function e(e){var a=e.piece,s=new r.Group;s.onclick=o.bind(this._onItemClick,this,a),this._enableHoverLink(s,e.indexInModelPieceList);var f=n.getRepresentValue(a);if(this._createItemSymbol(s,f,[0,0,d[0],d[1]]),h){var p=this.visualMapModel.getValueState(f);s.add(new r.Text({style:{x:"right"===u?-i:d[0]+i,y:d[1]/2,text:a.text,textVerticalAlign:"middle",textAlign:u,textFont:l,textFill:c,opacity:"outOfRange"===p?.5:1}}))}t.add(s)}var t=this.group;t.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,l=a.getFont(),c=a.getTextColor(),u=this._getItemAlign(),d=n.itemSize,f=this._getViewData(),p=f.endsText,h=o.retrieve(n.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],d,h,u),o.each(f.viewPieceList,e,this),p&&this._renderEndsText(t,p[1],d,h,u),s.box(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(e,t){function n(e){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:e,batch:c.convertDataIndex(n.findTargetDataIndices(t))})}e.on("mouseover",o.bind(n,this,"highlight")).on("mouseout",o.bind(n,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return c.getItemAlign(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(e,t,n,o,i){if(t){var a=new r.Group,l=this.visualMapModel.textStyleModel;a.add(new r.Text({style:{x:o?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:o?i:"center",text:t,textFont:l.getFont(),textFill:l.getTextColor()}})),e.add(a)}},_getViewData:function(){var e=this.visualMapModel,t=o.map(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},_createItemSymbol:function(e,t,n){e.add(l(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,n=t.option,i=o.clone(n.selected),r=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[r]=!0,o.each(i,function(e,t){i[t]=t===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}}),d=u;e.exports=d},function(e,t,n){var o=n(1),i=n(201);n(202),n(203),n(546),n(547),n(204),o.registerPreprocessor(i)},function(e,t,n){var o=n(1),i=n(201);n(202),n(203),n(548),n(549),n(204),o.registerPreprocessor(i)},function(e,t,n){function o(e,t,n){this._model=e}function i(e,t,n,o){var i=n.calendarModel,r=n.seriesModel,a=i?i.coordinateSystem:r?r.coordinateSystem:null;return a===this?a[e](o):null}var r=n(0),a=n(6),l=n(3),s=n(26);o.prototype={constructor:o,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"}]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){e=l.parseDate(e);var t=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var o=e.getDate();o=o<10?"0"+o:o;var i=e.getDay();return i=Math.abs((i+7-this.getFirstDayOfWeek())%7),{y:t,m:n,d:o,day:i,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},getNextNDay:function(e,t){return 0===(t=t||0)?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},update:function(e,t){function n(e,t){return null!=e[t]&&"auto"!==e[t]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle.normal").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var o=this._rangeInfo.weeks||1,i=["width","height"],l=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),c="horizontal"===this._orient?[o,7]:[7,o];r.each([0,1],function(e){n(l,e)&&(s[i[e]]=l[e]*c[e])});var u={width:t.getWidth(),height:t.getHeight()},d=this._rect=a.getLayoutRect(s,u);r.each([0,1],function(e){n(l,e)||(l[e]=d[i[e]]/c[e])}),this._sw=l[0],this._sh=l[1]},dataToPoint:function(e,t){r.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),o=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=o.start.time&&n.time<=o.end.time))return[NaN,NaN];var a=n.day,l=this._getRangeInfo([o.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,o):this._getDateByWeeksAndDay(t,n-1,o)},convertToPixel:r.curry(i,"dataToPoint"),convertFromPixel:r.curry(i,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(r.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var n=this.getDateInfo(t),o=n.date;o.setMonth(o.getMonth()+1);var i=this.getNextNDay(o,-1);e=[n.formatedDate,i.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},_getRangeInfo:function(e){e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];var t;e[0].time>e[1].time&&(t=!0,e.reverse());var n=Math.floor(e[1].time/864e5)-Math.floor(e[0].time/864e5)+1,o=new Date(e[0].time),i=o.getDate(),r=e[1].date.getDate();if(o.setDate(i+n-1),o.getDate()!==r)for(var a=o.getTime()-e[1].time>0?1:-1;o.getDate()!==r&&(o.getTime()-e[1].time)*a>0;)n-=a,o.setDate(i+n-1);var l=Math.floor((n+e[0].day+6)/7),s=t?1-l:l-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:l,nthWeek:s,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,n){var o=this._getRangeInfo(n);if(e>o.weeks||0===e&&to.lweek)return!1;var i=7*(e-1)-o.fweek+t,r=new Date(o.start.time);return r.setDate(o.start.d+i),this.getDateInfo(r)}},o.dimensions=o.prototype.dimensions,o.getDimensionsInfo=o.prototype.getDimensionsInfo,o.create=function(e,t){var n=[];return e.eachComponent("calendar",function(i){var r=new o(i,e,t);n.push(r),i.coordinateSystem=r}),e.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])}),n},s.register("calendar",o);var c=o;e.exports=c},function(e,t,n){function o(e,t){var n=e.cellSize;i.isArray(n)?1===n.length&&(n[1]=n[0]):n=e.cellSize=[n,n];var o=i.map([0,1],function(e){return s(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});c(e,t,{type:"box",ignoreSize:o})}var i=n(0),r=n(14),a=n(6),l=a.getLayoutParams,s=a.sizeCalculable,c=a.mergeLayoutParam,u=r.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{normal:{color:"#fff",borderWidth:1,borderColor:"#ccc"}},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e,t,n,i){var r=l(e);u.superApply(this,"init",arguments),o(e,r)},mergeOption:function(e,t){u.superApply(this,"mergeOption",arguments),o(this.option,e)}}),d=u;e.exports=d},function(e,t,n){function o(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:i.bind(e.dataToPoint,e)}}}var i=n(0);e.exports=o},function(e,t,n){var o=n(0),i=n(35),r=function(e,t,n,o,r){i.call(this,e,t,n),this.type=o||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},isLabelIgnored:function(e){if("category"===this.type){var t=this.getLabelInterval();return"function"==typeof t&&!t(e,this.scale.getLabel(e))||e%(t+1)}},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},o.inherits(r,i);var a=r;e.exports=a},function(e,t,n){function o(e){return this._axes[e]}var i=n(0),r=function(e){this._axes={},this._dimList=[],this.name=e||""};r.prototype={constructor:r,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return i.map(this._dimList,o,this)},getAxesByScale:function(e){return e=e.toLowerCase(),i.filter(this.getAxes(),function(t){return t.scale.type===e})},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,o=e instanceof Array?[]:{},i=0;i=0;n--)s.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e)return"inactive";for(var n=0,o=t.length;n=n&&r<=n+t.axisLength&&a>=o&&a<=o+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var o=n.getData();g(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(o,e),u.niceScaleExtent(t.scale,t.model)},this)}},this)},resize:function(e,t){this._rect=c.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,n=this._rect,o=["x","y"],r=["width","height"],a=t.get("layout"),l="horizontal"===a?0:1,s=n[r[l]],c=[0,s],u=this.dimensions.length,d=i(t.get("axisExpandWidth"),c),f=i(t.get("axisExpandCount")||0,[0,u]),p=t.get("axisExpandable")&&u>3&&u>f&&f>1&&d>0&&s>0,h=t.get("axisExpandWindow");h?(e=i(h[1]-h[0],c),h[1]=h[0]+e):(e=i(d*(f-1),c),h=[d*(t.get("axisExpandCenter")||b(u/2))-e/2],h[1]=h[0]+e);var g=(s-e)/(u-f);g<3&&(g=0);var m=[b(y(h[0]/d,1))+1,x(y(h[1]/d,1))-1],v=g/d*h[0];return{layout:a,pixelDimIndex:l,layoutBase:n[o[l]],layoutLength:s,axisBase:n[o[1-l]],axisLength:n[r[1-l]],axisExpandable:p,axisExpandWidth:d,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:v}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,n=this.dimensions,o=this._makeLayoutInfo(),i=o.layout;t.each(function(e){var t=[0,o.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),g(n,function(n,l){var c=(o.axisExpandable?a:r)(l,o),u={horizontal:{x:c.position,y:o.axisLength},vertical:{x:0,y:c.position}},d={horizontal:_/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],p=d[i],h=s.create();s.rotate(h,h,p),s.translate(h,h,f),this._axesLayout[n]={position:f,rotation:p,transform:h,axisNameAvailableWidth:c.axisNameAvailableWidth,axisLabelShow:c.axisLabelShow,nameTruncateMaxWidth:c.nameTruncateMaxWidth,tickDirection:1,labelDirection:1,labelInterval:t.get(n).getLabelInterval()}},this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,n){for(var o=this.dimensions,i=this._axesMap,r=this.hasAxisBrushed(),a=0,l=e.count();ai*(1-u[0])?(s="jump",a=l-i*(1-u[2])):(a=l-i*u[1])>=0&&(a=l-i*(1-u[1]))<=0&&(a=0),a*=t.axisExpandWidth/c,a?h(a,o,r,"all"):s="none";else{var i=o[1]-o[0];o=[v(0,r[1]*l/i-i/2)],o[1]=m(r[1],o[0]+i),o[0]=o[1]-i}return{axisExpandWindow:o,behavior:s}}};var w=o;e.exports=w},function(e,t,n){var o=n(0),i=n(35),r=function(e,t,n,o,r){i.call(this,e,t,n),this.type=o||"value",this.axisIndex=r};r.prototype={constructor:r,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},o.inherits(r,i);var a=r;e.exports=a},function(e,t,n){var o=n(0),i=n(14);n(567);var r=i.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){i.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&o.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},setAxisExpand:function(e){o.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=o.filter(this.dependentModels.parallelAxis,function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this);o.each(n,function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)})}});e.exports=r},function(e,t,n){function o(e){i(e),r(e)}function i(e){if(!e.parallel){var t=!1;a.each(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}}function r(e){var t=l.normalizeToArray(e.parallelAxis);a.each(t,function(t){if(a.isObject(t)){var n=t.parallelIndex||0,o=l.normalizeToArray(e.parallel)[n];o&&o.parallelAxisDefault&&a.merge(t,o.parallelAxisDefault,!1)}})}var a=n(0),l=n(5);e.exports=o},function(e,t,n){function o(e,t){t=t||[0,360],r.call(this,"angle",e,t),this.type="category"}var i=n(0),r=n(35);o.prototype={constructor:o,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData},i.inherits(o,r);var a=o;e.exports=a},function(e,t,n){function o(e,t){return t.type||(t.data?"category":"value")}var i=n(0),r=n(14),a=n(87),l=n(53),s=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(s.prototype,l);var c={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};a("angle",s,o,c.angle),a("radius",s,o,c.radius)},function(e,t,n){var o=n(576),i=n(572),r=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new o,this._angleAxis=new i,this._radiusAxis.polar=this._angleAxis.polar=this};r.prototype={type:"polar",axisPointerEnabled:!0,constructor:r,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],n=this._angleAxis,o=this._radiusAxis;return n.scale.type===e&&t.push(n),o.scale.type===e&&t.push(o),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,n=e[1]-this.cy,o=this.getAngleAxis(),i=o.getExtent(),r=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);o.inverse?r=a-360:a=r+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var s=Math.atan2(-n,t)/Math.PI*180,c=sa;)s+=360*c;return[l,s]},coordToPoint:function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]}};var a=r;e.exports=a},function(e,t,n){var o=n(1);n(573);var i=o.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=i},function(e,t,n){function o(e,t){r.call(this,"radius",e,t),this.type="category"}var i=n(0),r=n(35);o.prototype={constructor:o,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},i.inherits(o,r);var a=o;e.exports=a},function(e,t,n){function o(e,t){return r.map(["Radius","Angle"],function(n,o){var i=this["get"+n+"Axis"](),r=t[o],a=e[o]/2,l="dataTo"+n,s="category"===i.type?i.getBandWidth():Math.abs(i[l](r-a)-i[l](r+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function i(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:r.bind(function(o){var i=t.dataToRadius(o[0]),r=n.dataToAngle(o[1]),a=e.coordToPoint([i,r]);return a.push(i,r*Math.PI/180),a}),size:r.bind(o,e)}}}var r=n(0);e.exports=i},function(e,t,n){function o(e,t,n){r.call(this,e,t,n),this.type="value",this.angle=0,this.name="",this.model}var i=n(0),r=n(35);i.inherits(o,r);var a=o;e.exports=a},function(e,t,n){function o(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=i.map(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,o=new r(n,new a);return o.name=e.get("name"),o.model=e,e.axis=o,this.dimensions.push(n),o},this),this.resize(e,n),this.cx,this.cy,this.r,this.startAngle}var i=n(0),r=n(578),a=n(90),l=n(3),s=n(22),c=s.getScaleExtent,u=s.niceScaleExtent,d=n(26);o.prototype.getIndicatorAxes=function(){return this._indicatorAxes},o.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},o.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],o=n.angle;return[this.cx+e*Math.cos(o),this.cy-e*Math.sin(o)]},o.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,o=Math.sqrt(t*t+n*n);t/=o,n/=o;for(var i,r=Math.atan2(-n,t),a=1/0,l=-1,s=0;so[0]&&isFinite(h)&&isFinite(o[0]))}else{var g=r.getTicks().length-1;g>a&&(f=n(f));var m=Math.round((o[0]+o[1])/2/f)*f,v=Math.round(a/2);r.setExtent(l.round(m-v*f),l.round(m+(a-v)*f)),r.setInterval(f)}})},o.dimensions=[],o.create=function(e,t){var n=[];return e.eachComponent("radar",function(i){var r=new o(i,e,t);n.push(r),i.coordinateSystem=r}),e.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("radarIndex")||0])}),n},d.register("radar",o);var f=o;e.exports=f},function(e,t,n){function o(e,t){return r.defaults({show:t},e)}var i=n(1),r=n(0),a=n(206),l=n(12),s=n(53),c=a.valueAxis,u=i.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),o=this.get("axisLine"),i=this.get("axisTick"),a=this.get("axisLabel"),c=this.get("name"),u=this.get("name.show"),d=this.get("name.formatter"),f=this.get("nameGap"),p=this.get("triggerEvent"),h=r.map(this.get("indicator")||[],function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var g=c;if(null!=h.color&&(g=r.defaults({color:h.color},c)),h=r.merge(r.clone(h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:o,axisTick:i,axisLabel:a,name:h.text,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:p},!1),u||(h.name=""),"string"==typeof d){var m=h.name;h.name=d.replace("{value}",null!=m?m:"")}else"function"==typeof d&&(h.name=d(h.name,h));var v=r.extend(new l(h,null,this.ecModel),s);return v.mainType="radar",v.componentIndex=this.componentIndex,v},this);this.getIndicatorModels=function(){return h}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:r.merge({lineStyle:{color:"#bbb"}},c.axisLine),axisLabel:o(c.axisLabel,!1),axisTick:o(c.axisTick,!1),splitLine:o(c.splitLine,!0),splitArea:o(c.splitArea,!0),indicator:[]}}),d=u;e.exports=d},function(e,t,n){function o(e,t){return t.type||(t.data?"category":"value")}var i=n(0),r=n(14),a=n(87),l=n(53),s=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),c={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};i.merge(s.prototype,l),a("single",s,o,c);var u=s;e.exports=u},function(e,t,n){function o(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}var i=n(583),r=n(22),a=n(6),l=a.getLayoutRect;o.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:o,_init:function(e,t,n){var o=this.dimension,a=new i(o,r.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),l="category"===a.type;a.onBand=l&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},update:function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData(),n=this.dimension;this._axis.scale.unionExtentFromData(t,e.coordDimToDataDim(n)),r.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(e,t){this._rect=l({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),o=n?[0,e.width]:[0,e.height],i=t.reverse?1:0;t.setExtent(o[i],o[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),o=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return o-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return o-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),o=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),o[i]=t.toGlobalCoord(t.dataToCoord(+e)),o[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,o}};var s=o;e.exports=s},function(e,t,n){var o=n(0),i=n(35),r=function(e,t,n,o,r){i.call(this,e,t,n),this.type=o||"value",this.position=r||"bottom",this.orient=null,this._labelInterval=null};r.prototype={constructor:r,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},o.inherits(r,i);var a=r;e.exports=a},function(e,t,n){function o(e,t){var n=this.getAxis(),o=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(o-i)-n.dataToCoord(o+i))}function i(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:r.bind(e.dataToPoint,e),size:r.bind(o,e)}}}var r=n(0);e.exports=i},function(e,t,n){function o(e,t){var n=[];return e.eachComponent("singleAxis",function(o,r){var a=new i(o,e,t);a.name="single_"+r,a.resize(o,t),o.coordinateSystem=a,n.push(a)}),e.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=n&&n.coordinateSystem}}),n}var i=n(582);n(26).register("single",{create:o,dimensions:i.prototype.dimensions})},function(e,t,n){function o(e){return"_EC_"+e}function i(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function r(e,t,n){this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}var a=n(4),l=(a.__DEV__,n(0)),s=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=s.prototype;c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(e,t){e=e||""+t;var n=this._nodesMap;if(!n[o(e)]){var r=new i(e,t);return r.hostGraph=this,this.nodes.push(r),n[o(e)]=r,r}},c.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},c.getNodeById=function(e){return this._nodesMap[o(e)]},c.addEdge=function(e,t,n){var a=this._nodesMap,l=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),e instanceof i||(e=a[o(e)]),t instanceof i||(t=a[o(t)]),e&&t){var s=e.id+"-"+t.id;if(!l[s]){var c=new r(e,t,n);return c.hostGraph=this,this._directed&&(e.outEdges.push(c),t.inEdges.push(c)),e.edges.push(c),e!==t&&t.edges.push(c),this.edges.push(c),l[s]=c,c}}},c.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},c.getEdge=function(e,t){e instanceof i&&(e=e.id),t instanceof i&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},c.eachNode=function(e,t){for(var n=this.nodes,o=n.length,i=0;i=0&&e.call(t,n[i],i)},c.eachEdge=function(e,t){for(var n=this.edges,o=n.length,i=0;i